apigateway

package
v3.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	pulumi.CustomResourceState

	// The ID of the api of api gateway.
	ApiId pulumi.StringOutput `pulumi:"apiId"`
	// The authorization Type including APP and ANONYMOUS. Defaults to null.
	AuthType pulumi.StringOutput `pulumi:"authType"`
	// constant_parameters defines the constant parameters of the api. See `constantParameters` below.
	ConstantParameters ApiConstantParameterArrayOutput `pulumi:"constantParameters"`
	// The description of the api. Defaults to null.
	Description pulumi.StringOutput `pulumi:"description"`
	// fc_service_config defines the config when serviceType selected 'FunctionCompute'. See `fcServiceConfig` below.
	FcServiceConfig ApiFcServiceConfigPtrOutput `pulumi:"fcServiceConfig"`
	// Whether to prevent API replay attack. Default value: `false`.
	ForceNonceCheck pulumi.BoolOutput `pulumi:"forceNonceCheck"`
	// The api gateway that the api belongs to. Defaults to null.
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// http_service_config defines the config when serviceType selected 'HTTP'. See `httpServiceConfig` below.
	HttpServiceConfig ApiHttpServiceConfigPtrOutput `pulumi:"httpServiceConfig"`
	// http_vpc_service_config defines the config when serviceType selected 'HTTP-VPC'. See `httpVpcServiceConfig` below.
	HttpVpcServiceConfig ApiHttpVpcServiceConfigPtrOutput `pulumi:"httpVpcServiceConfig"`
	// http_service_config defines the config when serviceType selected 'MOCK'. See `mockServiceConfig` below.
	MockServiceConfig ApiMockServiceConfigPtrOutput `pulumi:"mockServiceConfig"`
	// The name of the api gateway api. Defaults to null.
	Name pulumi.StringOutput `pulumi:"name"`
	// Request_config defines how users can send requests to your API. See `requestConfig` below.
	RequestConfig ApiRequestConfigOutput `pulumi:"requestConfig"`
	// request_parameters defines the request parameters of the api. See `requestParameters` below.
	RequestParameters ApiRequestParameterArrayOutput `pulumi:"requestParameters"`
	// The type of backend service. Type including HTTP,VPC and MOCK. Defaults to null.
	ServiceType pulumi.StringOutput `pulumi:"serviceType"`
	// Stages that the api need to be deployed. Valid value: `RELEASE`,`PRE`,`TEST`.
	StageNames pulumi.StringArrayOutput `pulumi:"stageNames"`
	// system_parameters defines the system parameters of the api. See `systemParameters` below.
	SystemParameters ApiSystemParameterArrayOutput `pulumi:"systemParameters"`
}

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := apigateway.NewGroup(ctx, "example", &apigateway.GroupArgs{
			Name:        pulumi.String("tf-example"),
			Description: pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		_, err = apigateway.NewApi(ctx, "example", &apigateway.ApiArgs{
			GroupId:         example.ID(),
			Name:            pulumi.String("tf-example"),
			Description:     pulumi.String("tf-example"),
			AuthType:        pulumi.String("APP"),
			ForceNonceCheck: pulumi.Bool(false),
			RequestConfig: &apigateway.ApiRequestConfigArgs{
				Protocol: pulumi.String("HTTP"),
				Method:   pulumi.String("GET"),
				Path:     pulumi.String("/example/path"),
				Mode:     pulumi.String("MAPPING"),
			},
			ServiceType: pulumi.String("HTTP"),
			HttpServiceConfig: &apigateway.ApiHttpServiceConfigArgs{
				Address:  pulumi.String("http://apigateway-backend.alicloudapi.com:8080"),
				Method:   pulumi.String("GET"),
				Path:     pulumi.String("/web/cloudapi"),
				Timeout:  pulumi.Int(12),
				AoneName: pulumi.String("cloudapi-openapi"),
			},
			RequestParameters: apigateway.ApiRequestParameterArray{
				&apigateway.ApiRequestParameterArgs{
					Name:        pulumi.String("example"),
					Type:        pulumi.String("STRING"),
					Required:    pulumi.String("OPTIONAL"),
					In:          pulumi.String("QUERY"),
					InService:   pulumi.String("QUERY"),
					NameService: pulumi.String("exampleservice"),
				},
			},
			StageNames: pulumi.StringArray{
				pulumi.String("RELEASE"),
				pulumi.String("TEST"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api gateway api can be imported using the id.Format to `<API Group Id>:<API Id>` e.g.

```sh $ pulumi import alicloud:apigateway/api:Api example "ab2351f2ce904edaa8d92a0510832b91:e4f728fca5a94148b023b99a3e5d0b62" ```

func GetApi

func GetApi(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ApiState, opts ...pulumi.ResourceOption) (*Api, error)

GetApi gets an existing Api resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewApi

func NewApi(ctx *pulumi.Context,
	name string, args *ApiArgs, opts ...pulumi.ResourceOption) (*Api, error)

NewApi registers a new resource with the given unique name, arguments, and options.

func (*Api) ElementType

func (*Api) ElementType() reflect.Type

func (*Api) ToApiOutput

func (i *Api) ToApiOutput() ApiOutput

func (*Api) ToApiOutputWithContext

func (i *Api) ToApiOutputWithContext(ctx context.Context) ApiOutput

type ApiArgs

type ApiArgs struct {
	// The authorization Type including APP and ANONYMOUS. Defaults to null.
	AuthType pulumi.StringInput
	// constant_parameters defines the constant parameters of the api. See `constantParameters` below.
	ConstantParameters ApiConstantParameterArrayInput
	// The description of the api. Defaults to null.
	Description pulumi.StringInput
	// fc_service_config defines the config when serviceType selected 'FunctionCompute'. See `fcServiceConfig` below.
	FcServiceConfig ApiFcServiceConfigPtrInput
	// Whether to prevent API replay attack. Default value: `false`.
	ForceNonceCheck pulumi.BoolPtrInput
	// The api gateway that the api belongs to. Defaults to null.
	GroupId pulumi.StringInput
	// http_service_config defines the config when serviceType selected 'HTTP'. See `httpServiceConfig` below.
	HttpServiceConfig ApiHttpServiceConfigPtrInput
	// http_vpc_service_config defines the config when serviceType selected 'HTTP-VPC'. See `httpVpcServiceConfig` below.
	HttpVpcServiceConfig ApiHttpVpcServiceConfigPtrInput
	// http_service_config defines the config when serviceType selected 'MOCK'. See `mockServiceConfig` below.
	MockServiceConfig ApiMockServiceConfigPtrInput
	// The name of the api gateway api. Defaults to null.
	Name pulumi.StringPtrInput
	// Request_config defines how users can send requests to your API. See `requestConfig` below.
	RequestConfig ApiRequestConfigInput
	// request_parameters defines the request parameters of the api. See `requestParameters` below.
	RequestParameters ApiRequestParameterArrayInput
	// The type of backend service. Type including HTTP,VPC and MOCK. Defaults to null.
	ServiceType pulumi.StringInput
	// Stages that the api need to be deployed. Valid value: `RELEASE`,`PRE`,`TEST`.
	StageNames pulumi.StringArrayInput
	// system_parameters defines the system parameters of the api. See `systemParameters` below.
	SystemParameters ApiSystemParameterArrayInput
}

The set of arguments for constructing a Api resource.

func (ApiArgs) ElementType

func (ApiArgs) ElementType() reflect.Type

type ApiArray

type ApiArray []ApiInput

func (ApiArray) ElementType

func (ApiArray) ElementType() reflect.Type

func (ApiArray) ToApiArrayOutput

func (i ApiArray) ToApiArrayOutput() ApiArrayOutput

func (ApiArray) ToApiArrayOutputWithContext

func (i ApiArray) ToApiArrayOutputWithContext(ctx context.Context) ApiArrayOutput

type ApiArrayInput

type ApiArrayInput interface {
	pulumi.Input

	ToApiArrayOutput() ApiArrayOutput
	ToApiArrayOutputWithContext(context.Context) ApiArrayOutput
}

ApiArrayInput is an input type that accepts ApiArray and ApiArrayOutput values. You can construct a concrete instance of `ApiArrayInput` via:

ApiArray{ ApiArgs{...} }

type ApiArrayOutput

type ApiArrayOutput struct{ *pulumi.OutputState }

func (ApiArrayOutput) ElementType

func (ApiArrayOutput) ElementType() reflect.Type

func (ApiArrayOutput) Index

func (ApiArrayOutput) ToApiArrayOutput

func (o ApiArrayOutput) ToApiArrayOutput() ApiArrayOutput

func (ApiArrayOutput) ToApiArrayOutputWithContext

func (o ApiArrayOutput) ToApiArrayOutputWithContext(ctx context.Context) ApiArrayOutput

type ApiConstantParameter

type ApiConstantParameter struct {
	// The description of Constant parameter.
	Description *string `pulumi:"description"`
	// Constant parameter location; values: 'HEAD' and 'QUERY'.
	In string `pulumi:"in"`
	// Constant parameter name.
	Name string `pulumi:"name"`
	// Constant parameter value.
	Value string `pulumi:"value"`
}

type ApiConstantParameterArgs

type ApiConstantParameterArgs struct {
	// The description of Constant parameter.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Constant parameter location; values: 'HEAD' and 'QUERY'.
	In pulumi.StringInput `pulumi:"in"`
	// Constant parameter name.
	Name pulumi.StringInput `pulumi:"name"`
	// Constant parameter value.
	Value pulumi.StringInput `pulumi:"value"`
}

func (ApiConstantParameterArgs) ElementType

func (ApiConstantParameterArgs) ElementType() reflect.Type

func (ApiConstantParameterArgs) ToApiConstantParameterOutput

func (i ApiConstantParameterArgs) ToApiConstantParameterOutput() ApiConstantParameterOutput

func (ApiConstantParameterArgs) ToApiConstantParameterOutputWithContext

func (i ApiConstantParameterArgs) ToApiConstantParameterOutputWithContext(ctx context.Context) ApiConstantParameterOutput

type ApiConstantParameterArray

type ApiConstantParameterArray []ApiConstantParameterInput

func (ApiConstantParameterArray) ElementType

func (ApiConstantParameterArray) ElementType() reflect.Type

func (ApiConstantParameterArray) ToApiConstantParameterArrayOutput

func (i ApiConstantParameterArray) ToApiConstantParameterArrayOutput() ApiConstantParameterArrayOutput

func (ApiConstantParameterArray) ToApiConstantParameterArrayOutputWithContext

func (i ApiConstantParameterArray) ToApiConstantParameterArrayOutputWithContext(ctx context.Context) ApiConstantParameterArrayOutput

type ApiConstantParameterArrayInput

type ApiConstantParameterArrayInput interface {
	pulumi.Input

	ToApiConstantParameterArrayOutput() ApiConstantParameterArrayOutput
	ToApiConstantParameterArrayOutputWithContext(context.Context) ApiConstantParameterArrayOutput
}

ApiConstantParameterArrayInput is an input type that accepts ApiConstantParameterArray and ApiConstantParameterArrayOutput values. You can construct a concrete instance of `ApiConstantParameterArrayInput` via:

ApiConstantParameterArray{ ApiConstantParameterArgs{...} }

type ApiConstantParameterArrayOutput

type ApiConstantParameterArrayOutput struct{ *pulumi.OutputState }

func (ApiConstantParameterArrayOutput) ElementType

func (ApiConstantParameterArrayOutput) Index

func (ApiConstantParameterArrayOutput) ToApiConstantParameterArrayOutput

func (o ApiConstantParameterArrayOutput) ToApiConstantParameterArrayOutput() ApiConstantParameterArrayOutput

func (ApiConstantParameterArrayOutput) ToApiConstantParameterArrayOutputWithContext

func (o ApiConstantParameterArrayOutput) ToApiConstantParameterArrayOutputWithContext(ctx context.Context) ApiConstantParameterArrayOutput

type ApiConstantParameterInput

type ApiConstantParameterInput interface {
	pulumi.Input

	ToApiConstantParameterOutput() ApiConstantParameterOutput
	ToApiConstantParameterOutputWithContext(context.Context) ApiConstantParameterOutput
}

ApiConstantParameterInput is an input type that accepts ApiConstantParameterArgs and ApiConstantParameterOutput values. You can construct a concrete instance of `ApiConstantParameterInput` via:

ApiConstantParameterArgs{...}

type ApiConstantParameterOutput

type ApiConstantParameterOutput struct{ *pulumi.OutputState }

func (ApiConstantParameterOutput) Description

The description of Constant parameter.

func (ApiConstantParameterOutput) ElementType

func (ApiConstantParameterOutput) ElementType() reflect.Type

func (ApiConstantParameterOutput) In

Constant parameter location; values: 'HEAD' and 'QUERY'.

func (ApiConstantParameterOutput) Name

Constant parameter name.

func (ApiConstantParameterOutput) ToApiConstantParameterOutput

func (o ApiConstantParameterOutput) ToApiConstantParameterOutput() ApiConstantParameterOutput

func (ApiConstantParameterOutput) ToApiConstantParameterOutputWithContext

func (o ApiConstantParameterOutput) ToApiConstantParameterOutputWithContext(ctx context.Context) ApiConstantParameterOutput

func (ApiConstantParameterOutput) Value

Constant parameter value.

type ApiFcServiceConfig

type ApiFcServiceConfig struct {
	// RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
	ArnRole string `pulumi:"arnRole"`
	// The base url of function compute service. Required if `functionType` is `HttpTrigger`.
	FunctionBaseUrl *string `pulumi:"functionBaseUrl"`
	// The function name of function compute service. Required if `functionType` is `FCEvent`.
	FunctionName *string `pulumi:"functionName"`
	// The type of function compute service. Supports values of `FCEvent`,`HttpTrigger`. Default value: `FCEvent`.
	FunctionType *string `pulumi:"functionType"`
	// The http method of function compute service. Required if `functionType` is `HttpTrigger`.
	Method *string `pulumi:"method"`
	// Whether to filter path in `functionBaseUrl`. Optional if `functionType` is `HttpTrigger`.
	OnlyBusinessPath *bool `pulumi:"onlyBusinessPath"`
	// The path of function compute service. Required if `functionType` is `HttpTrigger`.
	Path *string `pulumi:"path"`
	// The qualifier of function name of compute service.
	Qualifier *string `pulumi:"qualifier"`
	// The region that the function compute service belongs to.
	Region string `pulumi:"region"`
	// The service name of function compute service. Required if `functionType` is `FCEvent`.
	ServiceName *string `pulumi:"serviceName"`
	// Backend service time-out time; unit: millisecond.
	Timeout int `pulumi:"timeout"`
}

type ApiFcServiceConfigArgs

type ApiFcServiceConfigArgs struct {
	// RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
	ArnRole pulumi.StringInput `pulumi:"arnRole"`
	// The base url of function compute service. Required if `functionType` is `HttpTrigger`.
	FunctionBaseUrl pulumi.StringPtrInput `pulumi:"functionBaseUrl"`
	// The function name of function compute service. Required if `functionType` is `FCEvent`.
	FunctionName pulumi.StringPtrInput `pulumi:"functionName"`
	// The type of function compute service. Supports values of `FCEvent`,`HttpTrigger`. Default value: `FCEvent`.
	FunctionType pulumi.StringPtrInput `pulumi:"functionType"`
	// The http method of function compute service. Required if `functionType` is `HttpTrigger`.
	Method pulumi.StringPtrInput `pulumi:"method"`
	// Whether to filter path in `functionBaseUrl`. Optional if `functionType` is `HttpTrigger`.
	OnlyBusinessPath pulumi.BoolPtrInput `pulumi:"onlyBusinessPath"`
	// The path of function compute service. Required if `functionType` is `HttpTrigger`.
	Path pulumi.StringPtrInput `pulumi:"path"`
	// The qualifier of function name of compute service.
	Qualifier pulumi.StringPtrInput `pulumi:"qualifier"`
	// The region that the function compute service belongs to.
	Region pulumi.StringInput `pulumi:"region"`
	// The service name of function compute service. Required if `functionType` is `FCEvent`.
	ServiceName pulumi.StringPtrInput `pulumi:"serviceName"`
	// Backend service time-out time; unit: millisecond.
	Timeout pulumi.IntInput `pulumi:"timeout"`
}

func (ApiFcServiceConfigArgs) ElementType

func (ApiFcServiceConfigArgs) ElementType() reflect.Type

func (ApiFcServiceConfigArgs) ToApiFcServiceConfigOutput

func (i ApiFcServiceConfigArgs) ToApiFcServiceConfigOutput() ApiFcServiceConfigOutput

func (ApiFcServiceConfigArgs) ToApiFcServiceConfigOutputWithContext

func (i ApiFcServiceConfigArgs) ToApiFcServiceConfigOutputWithContext(ctx context.Context) ApiFcServiceConfigOutput

func (ApiFcServiceConfigArgs) ToApiFcServiceConfigPtrOutput

func (i ApiFcServiceConfigArgs) ToApiFcServiceConfigPtrOutput() ApiFcServiceConfigPtrOutput

func (ApiFcServiceConfigArgs) ToApiFcServiceConfigPtrOutputWithContext

func (i ApiFcServiceConfigArgs) ToApiFcServiceConfigPtrOutputWithContext(ctx context.Context) ApiFcServiceConfigPtrOutput

type ApiFcServiceConfigInput

type ApiFcServiceConfigInput interface {
	pulumi.Input

	ToApiFcServiceConfigOutput() ApiFcServiceConfigOutput
	ToApiFcServiceConfigOutputWithContext(context.Context) ApiFcServiceConfigOutput
}

ApiFcServiceConfigInput is an input type that accepts ApiFcServiceConfigArgs and ApiFcServiceConfigOutput values. You can construct a concrete instance of `ApiFcServiceConfigInput` via:

ApiFcServiceConfigArgs{...}

type ApiFcServiceConfigOutput

type ApiFcServiceConfigOutput struct{ *pulumi.OutputState }

func (ApiFcServiceConfigOutput) ArnRole

RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.

func (ApiFcServiceConfigOutput) ElementType

func (ApiFcServiceConfigOutput) ElementType() reflect.Type

func (ApiFcServiceConfigOutput) FunctionBaseUrl added in v3.51.0

func (o ApiFcServiceConfigOutput) FunctionBaseUrl() pulumi.StringPtrOutput

The base url of function compute service. Required if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigOutput) FunctionName

The function name of function compute service. Required if `functionType` is `FCEvent`.

func (ApiFcServiceConfigOutput) FunctionType added in v3.51.0

The type of function compute service. Supports values of `FCEvent`,`HttpTrigger`. Default value: `FCEvent`.

func (ApiFcServiceConfigOutput) Method added in v3.51.0

The http method of function compute service. Required if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigOutput) OnlyBusinessPath added in v3.51.0

func (o ApiFcServiceConfigOutput) OnlyBusinessPath() pulumi.BoolPtrOutput

Whether to filter path in `functionBaseUrl`. Optional if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigOutput) Path added in v3.51.0

The path of function compute service. Required if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigOutput) Qualifier added in v3.51.0

The qualifier of function name of compute service.

func (ApiFcServiceConfigOutput) Region

The region that the function compute service belongs to.

func (ApiFcServiceConfigOutput) ServiceName

The service name of function compute service. Required if `functionType` is `FCEvent`.

func (ApiFcServiceConfigOutput) Timeout

Backend service time-out time; unit: millisecond.

func (ApiFcServiceConfigOutput) ToApiFcServiceConfigOutput

func (o ApiFcServiceConfigOutput) ToApiFcServiceConfigOutput() ApiFcServiceConfigOutput

func (ApiFcServiceConfigOutput) ToApiFcServiceConfigOutputWithContext

func (o ApiFcServiceConfigOutput) ToApiFcServiceConfigOutputWithContext(ctx context.Context) ApiFcServiceConfigOutput

func (ApiFcServiceConfigOutput) ToApiFcServiceConfigPtrOutput

func (o ApiFcServiceConfigOutput) ToApiFcServiceConfigPtrOutput() ApiFcServiceConfigPtrOutput

func (ApiFcServiceConfigOutput) ToApiFcServiceConfigPtrOutputWithContext

func (o ApiFcServiceConfigOutput) ToApiFcServiceConfigPtrOutputWithContext(ctx context.Context) ApiFcServiceConfigPtrOutput

type ApiFcServiceConfigPtrInput

type ApiFcServiceConfigPtrInput interface {
	pulumi.Input

	ToApiFcServiceConfigPtrOutput() ApiFcServiceConfigPtrOutput
	ToApiFcServiceConfigPtrOutputWithContext(context.Context) ApiFcServiceConfigPtrOutput
}

ApiFcServiceConfigPtrInput is an input type that accepts ApiFcServiceConfigArgs, ApiFcServiceConfigPtr and ApiFcServiceConfigPtrOutput values. You can construct a concrete instance of `ApiFcServiceConfigPtrInput` via:

        ApiFcServiceConfigArgs{...}

or:

        nil

type ApiFcServiceConfigPtrOutput

type ApiFcServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (ApiFcServiceConfigPtrOutput) ArnRole

RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.

func (ApiFcServiceConfigPtrOutput) Elem

func (ApiFcServiceConfigPtrOutput) ElementType

func (ApiFcServiceConfigPtrOutput) FunctionBaseUrl added in v3.51.0

The base url of function compute service. Required if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigPtrOutput) FunctionName

The function name of function compute service. Required if `functionType` is `FCEvent`.

func (ApiFcServiceConfigPtrOutput) FunctionType added in v3.51.0

The type of function compute service. Supports values of `FCEvent`,`HttpTrigger`. Default value: `FCEvent`.

func (ApiFcServiceConfigPtrOutput) Method added in v3.51.0

The http method of function compute service. Required if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigPtrOutput) OnlyBusinessPath added in v3.51.0

func (o ApiFcServiceConfigPtrOutput) OnlyBusinessPath() pulumi.BoolPtrOutput

Whether to filter path in `functionBaseUrl`. Optional if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigPtrOutput) Path added in v3.51.0

The path of function compute service. Required if `functionType` is `HttpTrigger`.

func (ApiFcServiceConfigPtrOutput) Qualifier added in v3.51.0

The qualifier of function name of compute service.

func (ApiFcServiceConfigPtrOutput) Region

The region that the function compute service belongs to.

func (ApiFcServiceConfigPtrOutput) ServiceName

The service name of function compute service. Required if `functionType` is `FCEvent`.

func (ApiFcServiceConfigPtrOutput) Timeout

Backend service time-out time; unit: millisecond.

func (ApiFcServiceConfigPtrOutput) ToApiFcServiceConfigPtrOutput

func (o ApiFcServiceConfigPtrOutput) ToApiFcServiceConfigPtrOutput() ApiFcServiceConfigPtrOutput

func (ApiFcServiceConfigPtrOutput) ToApiFcServiceConfigPtrOutputWithContext

func (o ApiFcServiceConfigPtrOutput) ToApiFcServiceConfigPtrOutputWithContext(ctx context.Context) ApiFcServiceConfigPtrOutput

type ApiHttpServiceConfig

type ApiHttpServiceConfig struct {
	// The address of backend service.
	Address string `pulumi:"address"`
	// The name of aone.
	AoneName *string `pulumi:"aoneName"`
	// The http method of backend service.
	Method string `pulumi:"method"`
	// The path of backend service.
	Path string `pulumi:"path"`
	// Backend service time-out time; unit: millisecond.
	Timeout int `pulumi:"timeout"`
}

type ApiHttpServiceConfigArgs

type ApiHttpServiceConfigArgs struct {
	// The address of backend service.
	Address pulumi.StringInput `pulumi:"address"`
	// The name of aone.
	AoneName pulumi.StringPtrInput `pulumi:"aoneName"`
	// The http method of backend service.
	Method pulumi.StringInput `pulumi:"method"`
	// The path of backend service.
	Path pulumi.StringInput `pulumi:"path"`
	// Backend service time-out time; unit: millisecond.
	Timeout pulumi.IntInput `pulumi:"timeout"`
}

func (ApiHttpServiceConfigArgs) ElementType

func (ApiHttpServiceConfigArgs) ElementType() reflect.Type

func (ApiHttpServiceConfigArgs) ToApiHttpServiceConfigOutput

func (i ApiHttpServiceConfigArgs) ToApiHttpServiceConfigOutput() ApiHttpServiceConfigOutput

func (ApiHttpServiceConfigArgs) ToApiHttpServiceConfigOutputWithContext

func (i ApiHttpServiceConfigArgs) ToApiHttpServiceConfigOutputWithContext(ctx context.Context) ApiHttpServiceConfigOutput

func (ApiHttpServiceConfigArgs) ToApiHttpServiceConfigPtrOutput

func (i ApiHttpServiceConfigArgs) ToApiHttpServiceConfigPtrOutput() ApiHttpServiceConfigPtrOutput

func (ApiHttpServiceConfigArgs) ToApiHttpServiceConfigPtrOutputWithContext

func (i ApiHttpServiceConfigArgs) ToApiHttpServiceConfigPtrOutputWithContext(ctx context.Context) ApiHttpServiceConfigPtrOutput

type ApiHttpServiceConfigInput

type ApiHttpServiceConfigInput interface {
	pulumi.Input

	ToApiHttpServiceConfigOutput() ApiHttpServiceConfigOutput
	ToApiHttpServiceConfigOutputWithContext(context.Context) ApiHttpServiceConfigOutput
}

ApiHttpServiceConfigInput is an input type that accepts ApiHttpServiceConfigArgs and ApiHttpServiceConfigOutput values. You can construct a concrete instance of `ApiHttpServiceConfigInput` via:

ApiHttpServiceConfigArgs{...}

type ApiHttpServiceConfigOutput

type ApiHttpServiceConfigOutput struct{ *pulumi.OutputState }

func (ApiHttpServiceConfigOutput) Address

The address of backend service.

func (ApiHttpServiceConfigOutput) AoneName

The name of aone.

func (ApiHttpServiceConfigOutput) ElementType

func (ApiHttpServiceConfigOutput) ElementType() reflect.Type

func (ApiHttpServiceConfigOutput) Method

The http method of backend service.

func (ApiHttpServiceConfigOutput) Path

The path of backend service.

func (ApiHttpServiceConfigOutput) Timeout

Backend service time-out time; unit: millisecond.

func (ApiHttpServiceConfigOutput) ToApiHttpServiceConfigOutput

func (o ApiHttpServiceConfigOutput) ToApiHttpServiceConfigOutput() ApiHttpServiceConfigOutput

func (ApiHttpServiceConfigOutput) ToApiHttpServiceConfigOutputWithContext

func (o ApiHttpServiceConfigOutput) ToApiHttpServiceConfigOutputWithContext(ctx context.Context) ApiHttpServiceConfigOutput

func (ApiHttpServiceConfigOutput) ToApiHttpServiceConfigPtrOutput

func (o ApiHttpServiceConfigOutput) ToApiHttpServiceConfigPtrOutput() ApiHttpServiceConfigPtrOutput

func (ApiHttpServiceConfigOutput) ToApiHttpServiceConfigPtrOutputWithContext

func (o ApiHttpServiceConfigOutput) ToApiHttpServiceConfigPtrOutputWithContext(ctx context.Context) ApiHttpServiceConfigPtrOutput

type ApiHttpServiceConfigPtrInput

type ApiHttpServiceConfigPtrInput interface {
	pulumi.Input

	ToApiHttpServiceConfigPtrOutput() ApiHttpServiceConfigPtrOutput
	ToApiHttpServiceConfigPtrOutputWithContext(context.Context) ApiHttpServiceConfigPtrOutput
}

ApiHttpServiceConfigPtrInput is an input type that accepts ApiHttpServiceConfigArgs, ApiHttpServiceConfigPtr and ApiHttpServiceConfigPtrOutput values. You can construct a concrete instance of `ApiHttpServiceConfigPtrInput` via:

        ApiHttpServiceConfigArgs{...}

or:

        nil

type ApiHttpServiceConfigPtrOutput

type ApiHttpServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (ApiHttpServiceConfigPtrOutput) Address

The address of backend service.

func (ApiHttpServiceConfigPtrOutput) AoneName

The name of aone.

func (ApiHttpServiceConfigPtrOutput) Elem

func (ApiHttpServiceConfigPtrOutput) ElementType

func (ApiHttpServiceConfigPtrOutput) Method

The http method of backend service.

func (ApiHttpServiceConfigPtrOutput) Path

The path of backend service.

func (ApiHttpServiceConfigPtrOutput) Timeout

Backend service time-out time; unit: millisecond.

func (ApiHttpServiceConfigPtrOutput) ToApiHttpServiceConfigPtrOutput

func (o ApiHttpServiceConfigPtrOutput) ToApiHttpServiceConfigPtrOutput() ApiHttpServiceConfigPtrOutput

func (ApiHttpServiceConfigPtrOutput) ToApiHttpServiceConfigPtrOutputWithContext

func (o ApiHttpServiceConfigPtrOutput) ToApiHttpServiceConfigPtrOutputWithContext(ctx context.Context) ApiHttpServiceConfigPtrOutput

type ApiHttpVpcServiceConfig

type ApiHttpVpcServiceConfig struct {
	// The name of aone.
	AoneName *string `pulumi:"aoneName"`
	// The http method of backend service.
	Method string `pulumi:"method"`
	// The name of vpc instance.
	Name string `pulumi:"name"`
	// The path of backend service.
	Path string `pulumi:"path"`
	// Backend service time-out time. Unit: millisecond.
	Timeout int `pulumi:"timeout"`
}

type ApiHttpVpcServiceConfigArgs

type ApiHttpVpcServiceConfigArgs struct {
	// The name of aone.
	AoneName pulumi.StringPtrInput `pulumi:"aoneName"`
	// The http method of backend service.
	Method pulumi.StringInput `pulumi:"method"`
	// The name of vpc instance.
	Name pulumi.StringInput `pulumi:"name"`
	// The path of backend service.
	Path pulumi.StringInput `pulumi:"path"`
	// Backend service time-out time. Unit: millisecond.
	Timeout pulumi.IntInput `pulumi:"timeout"`
}

func (ApiHttpVpcServiceConfigArgs) ElementType

func (ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigOutput

func (i ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigOutput() ApiHttpVpcServiceConfigOutput

func (ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigOutputWithContext

func (i ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigOutputWithContext(ctx context.Context) ApiHttpVpcServiceConfigOutput

func (ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigPtrOutput

func (i ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigPtrOutput() ApiHttpVpcServiceConfigPtrOutput

func (ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigPtrOutputWithContext

func (i ApiHttpVpcServiceConfigArgs) ToApiHttpVpcServiceConfigPtrOutputWithContext(ctx context.Context) ApiHttpVpcServiceConfigPtrOutput

type ApiHttpVpcServiceConfigInput

type ApiHttpVpcServiceConfigInput interface {
	pulumi.Input

	ToApiHttpVpcServiceConfigOutput() ApiHttpVpcServiceConfigOutput
	ToApiHttpVpcServiceConfigOutputWithContext(context.Context) ApiHttpVpcServiceConfigOutput
}

ApiHttpVpcServiceConfigInput is an input type that accepts ApiHttpVpcServiceConfigArgs and ApiHttpVpcServiceConfigOutput values. You can construct a concrete instance of `ApiHttpVpcServiceConfigInput` via:

ApiHttpVpcServiceConfigArgs{...}

type ApiHttpVpcServiceConfigOutput

type ApiHttpVpcServiceConfigOutput struct{ *pulumi.OutputState }

func (ApiHttpVpcServiceConfigOutput) AoneName

The name of aone.

func (ApiHttpVpcServiceConfigOutput) ElementType

func (ApiHttpVpcServiceConfigOutput) Method

The http method of backend service.

func (ApiHttpVpcServiceConfigOutput) Name

The name of vpc instance.

func (ApiHttpVpcServiceConfigOutput) Path

The path of backend service.

func (ApiHttpVpcServiceConfigOutput) Timeout

Backend service time-out time. Unit: millisecond.

func (ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigOutput

func (o ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigOutput() ApiHttpVpcServiceConfigOutput

func (ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigOutputWithContext

func (o ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigOutputWithContext(ctx context.Context) ApiHttpVpcServiceConfigOutput

func (ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigPtrOutput

func (o ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigPtrOutput() ApiHttpVpcServiceConfigPtrOutput

func (ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigPtrOutputWithContext

func (o ApiHttpVpcServiceConfigOutput) ToApiHttpVpcServiceConfigPtrOutputWithContext(ctx context.Context) ApiHttpVpcServiceConfigPtrOutput

type ApiHttpVpcServiceConfigPtrInput

type ApiHttpVpcServiceConfigPtrInput interface {
	pulumi.Input

	ToApiHttpVpcServiceConfigPtrOutput() ApiHttpVpcServiceConfigPtrOutput
	ToApiHttpVpcServiceConfigPtrOutputWithContext(context.Context) ApiHttpVpcServiceConfigPtrOutput
}

ApiHttpVpcServiceConfigPtrInput is an input type that accepts ApiHttpVpcServiceConfigArgs, ApiHttpVpcServiceConfigPtr and ApiHttpVpcServiceConfigPtrOutput values. You can construct a concrete instance of `ApiHttpVpcServiceConfigPtrInput` via:

        ApiHttpVpcServiceConfigArgs{...}

or:

        nil

type ApiHttpVpcServiceConfigPtrOutput

type ApiHttpVpcServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (ApiHttpVpcServiceConfigPtrOutput) AoneName

The name of aone.

func (ApiHttpVpcServiceConfigPtrOutput) Elem

func (ApiHttpVpcServiceConfigPtrOutput) ElementType

func (ApiHttpVpcServiceConfigPtrOutput) Method

The http method of backend service.

func (ApiHttpVpcServiceConfigPtrOutput) Name

The name of vpc instance.

func (ApiHttpVpcServiceConfigPtrOutput) Path

The path of backend service.

func (ApiHttpVpcServiceConfigPtrOutput) Timeout

Backend service time-out time. Unit: millisecond.

func (ApiHttpVpcServiceConfigPtrOutput) ToApiHttpVpcServiceConfigPtrOutput

func (o ApiHttpVpcServiceConfigPtrOutput) ToApiHttpVpcServiceConfigPtrOutput() ApiHttpVpcServiceConfigPtrOutput

func (ApiHttpVpcServiceConfigPtrOutput) ToApiHttpVpcServiceConfigPtrOutputWithContext

func (o ApiHttpVpcServiceConfigPtrOutput) ToApiHttpVpcServiceConfigPtrOutputWithContext(ctx context.Context) ApiHttpVpcServiceConfigPtrOutput

type ApiInput

type ApiInput interface {
	pulumi.Input

	ToApiOutput() ApiOutput
	ToApiOutputWithContext(ctx context.Context) ApiOutput
}

type ApiMap

type ApiMap map[string]ApiInput

func (ApiMap) ElementType

func (ApiMap) ElementType() reflect.Type

func (ApiMap) ToApiMapOutput

func (i ApiMap) ToApiMapOutput() ApiMapOutput

func (ApiMap) ToApiMapOutputWithContext

func (i ApiMap) ToApiMapOutputWithContext(ctx context.Context) ApiMapOutput

type ApiMapInput

type ApiMapInput interface {
	pulumi.Input

	ToApiMapOutput() ApiMapOutput
	ToApiMapOutputWithContext(context.Context) ApiMapOutput
}

ApiMapInput is an input type that accepts ApiMap and ApiMapOutput values. You can construct a concrete instance of `ApiMapInput` via:

ApiMap{ "key": ApiArgs{...} }

type ApiMapOutput

type ApiMapOutput struct{ *pulumi.OutputState }

func (ApiMapOutput) ElementType

func (ApiMapOutput) ElementType() reflect.Type

func (ApiMapOutput) MapIndex

func (o ApiMapOutput) MapIndex(k pulumi.StringInput) ApiOutput

func (ApiMapOutput) ToApiMapOutput

func (o ApiMapOutput) ToApiMapOutput() ApiMapOutput

func (ApiMapOutput) ToApiMapOutputWithContext

func (o ApiMapOutput) ToApiMapOutputWithContext(ctx context.Context) ApiMapOutput

type ApiMockServiceConfig

type ApiMockServiceConfig struct {
	// The name of aone.
	AoneName *string `pulumi:"aoneName"`
	// The result of the mock service.
	Result string `pulumi:"result"`
}

type ApiMockServiceConfigArgs

type ApiMockServiceConfigArgs struct {
	// The name of aone.
	AoneName pulumi.StringPtrInput `pulumi:"aoneName"`
	// The result of the mock service.
	Result pulumi.StringInput `pulumi:"result"`
}

func (ApiMockServiceConfigArgs) ElementType

func (ApiMockServiceConfigArgs) ElementType() reflect.Type

func (ApiMockServiceConfigArgs) ToApiMockServiceConfigOutput

func (i ApiMockServiceConfigArgs) ToApiMockServiceConfigOutput() ApiMockServiceConfigOutput

func (ApiMockServiceConfigArgs) ToApiMockServiceConfigOutputWithContext

func (i ApiMockServiceConfigArgs) ToApiMockServiceConfigOutputWithContext(ctx context.Context) ApiMockServiceConfigOutput

func (ApiMockServiceConfigArgs) ToApiMockServiceConfigPtrOutput

func (i ApiMockServiceConfigArgs) ToApiMockServiceConfigPtrOutput() ApiMockServiceConfigPtrOutput

func (ApiMockServiceConfigArgs) ToApiMockServiceConfigPtrOutputWithContext

func (i ApiMockServiceConfigArgs) ToApiMockServiceConfigPtrOutputWithContext(ctx context.Context) ApiMockServiceConfigPtrOutput

type ApiMockServiceConfigInput

type ApiMockServiceConfigInput interface {
	pulumi.Input

	ToApiMockServiceConfigOutput() ApiMockServiceConfigOutput
	ToApiMockServiceConfigOutputWithContext(context.Context) ApiMockServiceConfigOutput
}

ApiMockServiceConfigInput is an input type that accepts ApiMockServiceConfigArgs and ApiMockServiceConfigOutput values. You can construct a concrete instance of `ApiMockServiceConfigInput` via:

ApiMockServiceConfigArgs{...}

type ApiMockServiceConfigOutput

type ApiMockServiceConfigOutput struct{ *pulumi.OutputState }

func (ApiMockServiceConfigOutput) AoneName

The name of aone.

func (ApiMockServiceConfigOutput) ElementType

func (ApiMockServiceConfigOutput) ElementType() reflect.Type

func (ApiMockServiceConfigOutput) Result

The result of the mock service.

func (ApiMockServiceConfigOutput) ToApiMockServiceConfigOutput

func (o ApiMockServiceConfigOutput) ToApiMockServiceConfigOutput() ApiMockServiceConfigOutput

func (ApiMockServiceConfigOutput) ToApiMockServiceConfigOutputWithContext

func (o ApiMockServiceConfigOutput) ToApiMockServiceConfigOutputWithContext(ctx context.Context) ApiMockServiceConfigOutput

func (ApiMockServiceConfigOutput) ToApiMockServiceConfigPtrOutput

func (o ApiMockServiceConfigOutput) ToApiMockServiceConfigPtrOutput() ApiMockServiceConfigPtrOutput

func (ApiMockServiceConfigOutput) ToApiMockServiceConfigPtrOutputWithContext

func (o ApiMockServiceConfigOutput) ToApiMockServiceConfigPtrOutputWithContext(ctx context.Context) ApiMockServiceConfigPtrOutput

type ApiMockServiceConfigPtrInput

type ApiMockServiceConfigPtrInput interface {
	pulumi.Input

	ToApiMockServiceConfigPtrOutput() ApiMockServiceConfigPtrOutput
	ToApiMockServiceConfigPtrOutputWithContext(context.Context) ApiMockServiceConfigPtrOutput
}

ApiMockServiceConfigPtrInput is an input type that accepts ApiMockServiceConfigArgs, ApiMockServiceConfigPtr and ApiMockServiceConfigPtrOutput values. You can construct a concrete instance of `ApiMockServiceConfigPtrInput` via:

        ApiMockServiceConfigArgs{...}

or:

        nil

type ApiMockServiceConfigPtrOutput

type ApiMockServiceConfigPtrOutput struct{ *pulumi.OutputState }

func (ApiMockServiceConfigPtrOutput) AoneName

The name of aone.

func (ApiMockServiceConfigPtrOutput) Elem

func (ApiMockServiceConfigPtrOutput) ElementType

func (ApiMockServiceConfigPtrOutput) Result

The result of the mock service.

func (ApiMockServiceConfigPtrOutput) ToApiMockServiceConfigPtrOutput

func (o ApiMockServiceConfigPtrOutput) ToApiMockServiceConfigPtrOutput() ApiMockServiceConfigPtrOutput

func (ApiMockServiceConfigPtrOutput) ToApiMockServiceConfigPtrOutputWithContext

func (o ApiMockServiceConfigPtrOutput) ToApiMockServiceConfigPtrOutputWithContext(ctx context.Context) ApiMockServiceConfigPtrOutput

type ApiOutput

type ApiOutput struct{ *pulumi.OutputState }

func (ApiOutput) ApiId added in v3.27.0

func (o ApiOutput) ApiId() pulumi.StringOutput

The ID of the api of api gateway.

func (ApiOutput) AuthType added in v3.27.0

func (o ApiOutput) AuthType() pulumi.StringOutput

The authorization Type including APP and ANONYMOUS. Defaults to null.

func (ApiOutput) ConstantParameters added in v3.27.0

func (o ApiOutput) ConstantParameters() ApiConstantParameterArrayOutput

constant_parameters defines the constant parameters of the api. See `constantParameters` below.

func (ApiOutput) Description added in v3.27.0

func (o ApiOutput) Description() pulumi.StringOutput

The description of the api. Defaults to null.

func (ApiOutput) ElementType

func (ApiOutput) ElementType() reflect.Type

func (ApiOutput) FcServiceConfig added in v3.27.0

func (o ApiOutput) FcServiceConfig() ApiFcServiceConfigPtrOutput

fc_service_config defines the config when serviceType selected 'FunctionCompute'. See `fcServiceConfig` below.

func (ApiOutput) ForceNonceCheck added in v3.27.0

func (o ApiOutput) ForceNonceCheck() pulumi.BoolOutput

Whether to prevent API replay attack. Default value: `false`.

func (ApiOutput) GroupId added in v3.27.0

func (o ApiOutput) GroupId() pulumi.StringOutput

The api gateway that the api belongs to. Defaults to null.

func (ApiOutput) HttpServiceConfig added in v3.27.0

func (o ApiOutput) HttpServiceConfig() ApiHttpServiceConfigPtrOutput

http_service_config defines the config when serviceType selected 'HTTP'. See `httpServiceConfig` below.

func (ApiOutput) HttpVpcServiceConfig added in v3.27.0

func (o ApiOutput) HttpVpcServiceConfig() ApiHttpVpcServiceConfigPtrOutput

http_vpc_service_config defines the config when serviceType selected 'HTTP-VPC'. See `httpVpcServiceConfig` below.

func (ApiOutput) MockServiceConfig added in v3.27.0

func (o ApiOutput) MockServiceConfig() ApiMockServiceConfigPtrOutput

http_service_config defines the config when serviceType selected 'MOCK'. See `mockServiceConfig` below.

func (ApiOutput) Name added in v3.27.0

func (o ApiOutput) Name() pulumi.StringOutput

The name of the api gateway api. Defaults to null.

func (ApiOutput) RequestConfig added in v3.27.0

func (o ApiOutput) RequestConfig() ApiRequestConfigOutput

Request_config defines how users can send requests to your API. See `requestConfig` below.

func (ApiOutput) RequestParameters added in v3.27.0

func (o ApiOutput) RequestParameters() ApiRequestParameterArrayOutput

request_parameters defines the request parameters of the api. See `requestParameters` below.

func (ApiOutput) ServiceType added in v3.27.0

func (o ApiOutput) ServiceType() pulumi.StringOutput

The type of backend service. Type including HTTP,VPC and MOCK. Defaults to null.

func (ApiOutput) StageNames added in v3.27.0

func (o ApiOutput) StageNames() pulumi.StringArrayOutput

Stages that the api need to be deployed. Valid value: `RELEASE`,`PRE`,`TEST`.

func (ApiOutput) SystemParameters added in v3.27.0

func (o ApiOutput) SystemParameters() ApiSystemParameterArrayOutput

system_parameters defines the system parameters of the api. See `systemParameters` below.

func (ApiOutput) ToApiOutput

func (o ApiOutput) ToApiOutput() ApiOutput

func (ApiOutput) ToApiOutputWithContext

func (o ApiOutput) ToApiOutputWithContext(ctx context.Context) ApiOutput

type ApiRequestConfig

type ApiRequestConfig struct {
	// The body format of the api, which support the values of 'STREAM' and 'FORM'.
	BodyFormat *string `pulumi:"bodyFormat"`
	// The method of the api, including 'GET','POST','PUT' etc.
	Method string `pulumi:"method"`
	// The mode of the parameters between request parameters and service parameters, which support the values of 'MAPPING' and 'PASSTHROUGH'.
	Mode string `pulumi:"mode"`
	// The request path of the api.
	Path string `pulumi:"path"`
	// The protocol of api which supports values of 'HTTP','HTTPS' or 'HTTP,HTTPS'.
	Protocol string `pulumi:"protocol"`
}

type ApiRequestConfigArgs

type ApiRequestConfigArgs struct {
	// The body format of the api, which support the values of 'STREAM' and 'FORM'.
	BodyFormat pulumi.StringPtrInput `pulumi:"bodyFormat"`
	// The method of the api, including 'GET','POST','PUT' etc.
	Method pulumi.StringInput `pulumi:"method"`
	// The mode of the parameters between request parameters and service parameters, which support the values of 'MAPPING' and 'PASSTHROUGH'.
	Mode pulumi.StringInput `pulumi:"mode"`
	// The request path of the api.
	Path pulumi.StringInput `pulumi:"path"`
	// The protocol of api which supports values of 'HTTP','HTTPS' or 'HTTP,HTTPS'.
	Protocol pulumi.StringInput `pulumi:"protocol"`
}

func (ApiRequestConfigArgs) ElementType

func (ApiRequestConfigArgs) ElementType() reflect.Type

func (ApiRequestConfigArgs) ToApiRequestConfigOutput

func (i ApiRequestConfigArgs) ToApiRequestConfigOutput() ApiRequestConfigOutput

func (ApiRequestConfigArgs) ToApiRequestConfigOutputWithContext

func (i ApiRequestConfigArgs) ToApiRequestConfigOutputWithContext(ctx context.Context) ApiRequestConfigOutput

func (ApiRequestConfigArgs) ToApiRequestConfigPtrOutput

func (i ApiRequestConfigArgs) ToApiRequestConfigPtrOutput() ApiRequestConfigPtrOutput

func (ApiRequestConfigArgs) ToApiRequestConfigPtrOutputWithContext

func (i ApiRequestConfigArgs) ToApiRequestConfigPtrOutputWithContext(ctx context.Context) ApiRequestConfigPtrOutput

type ApiRequestConfigInput

type ApiRequestConfigInput interface {
	pulumi.Input

	ToApiRequestConfigOutput() ApiRequestConfigOutput
	ToApiRequestConfigOutputWithContext(context.Context) ApiRequestConfigOutput
}

ApiRequestConfigInput is an input type that accepts ApiRequestConfigArgs and ApiRequestConfigOutput values. You can construct a concrete instance of `ApiRequestConfigInput` via:

ApiRequestConfigArgs{...}

type ApiRequestConfigOutput

type ApiRequestConfigOutput struct{ *pulumi.OutputState }

func (ApiRequestConfigOutput) BodyFormat

The body format of the api, which support the values of 'STREAM' and 'FORM'.

func (ApiRequestConfigOutput) ElementType

func (ApiRequestConfigOutput) ElementType() reflect.Type

func (ApiRequestConfigOutput) Method

The method of the api, including 'GET','POST','PUT' etc.

func (ApiRequestConfigOutput) Mode

The mode of the parameters between request parameters and service parameters, which support the values of 'MAPPING' and 'PASSTHROUGH'.

func (ApiRequestConfigOutput) Path

The request path of the api.

func (ApiRequestConfigOutput) Protocol

The protocol of api which supports values of 'HTTP','HTTPS' or 'HTTP,HTTPS'.

func (ApiRequestConfigOutput) ToApiRequestConfigOutput

func (o ApiRequestConfigOutput) ToApiRequestConfigOutput() ApiRequestConfigOutput

func (ApiRequestConfigOutput) ToApiRequestConfigOutputWithContext

func (o ApiRequestConfigOutput) ToApiRequestConfigOutputWithContext(ctx context.Context) ApiRequestConfigOutput

func (ApiRequestConfigOutput) ToApiRequestConfigPtrOutput

func (o ApiRequestConfigOutput) ToApiRequestConfigPtrOutput() ApiRequestConfigPtrOutput

func (ApiRequestConfigOutput) ToApiRequestConfigPtrOutputWithContext

func (o ApiRequestConfigOutput) ToApiRequestConfigPtrOutputWithContext(ctx context.Context) ApiRequestConfigPtrOutput

type ApiRequestConfigPtrInput

type ApiRequestConfigPtrInput interface {
	pulumi.Input

	ToApiRequestConfigPtrOutput() ApiRequestConfigPtrOutput
	ToApiRequestConfigPtrOutputWithContext(context.Context) ApiRequestConfigPtrOutput
}

ApiRequestConfigPtrInput is an input type that accepts ApiRequestConfigArgs, ApiRequestConfigPtr and ApiRequestConfigPtrOutput values. You can construct a concrete instance of `ApiRequestConfigPtrInput` via:

        ApiRequestConfigArgs{...}

or:

        nil

type ApiRequestConfigPtrOutput

type ApiRequestConfigPtrOutput struct{ *pulumi.OutputState }

func (ApiRequestConfigPtrOutput) BodyFormat

The body format of the api, which support the values of 'STREAM' and 'FORM'.

func (ApiRequestConfigPtrOutput) Elem

func (ApiRequestConfigPtrOutput) ElementType

func (ApiRequestConfigPtrOutput) ElementType() reflect.Type

func (ApiRequestConfigPtrOutput) Method

The method of the api, including 'GET','POST','PUT' etc.

func (ApiRequestConfigPtrOutput) Mode

The mode of the parameters between request parameters and service parameters, which support the values of 'MAPPING' and 'PASSTHROUGH'.

func (ApiRequestConfigPtrOutput) Path

The request path of the api.

func (ApiRequestConfigPtrOutput) Protocol

The protocol of api which supports values of 'HTTP','HTTPS' or 'HTTP,HTTPS'.

func (ApiRequestConfigPtrOutput) ToApiRequestConfigPtrOutput

func (o ApiRequestConfigPtrOutput) ToApiRequestConfigPtrOutput() ApiRequestConfigPtrOutput

func (ApiRequestConfigPtrOutput) ToApiRequestConfigPtrOutputWithContext

func (o ApiRequestConfigPtrOutput) ToApiRequestConfigPtrOutputWithContext(ctx context.Context) ApiRequestConfigPtrOutput

type ApiRequestParameter

type ApiRequestParameter struct {
	// The default value of the parameter.
	DefaultValue *string `pulumi:"defaultValue"`
	// The description of parameter.
	Description *string `pulumi:"description"`
	// Request's parameter location; values: BODY, HEAD, QUERY, and PATH.
	In string `pulumi:"in"`
	// Backend service's parameter location; values: BODY, HEAD, QUERY, and PATH.
	InService string `pulumi:"inService"`
	// Request's parameter name.
	Name string `pulumi:"name"`
	// Backend service's parameter name.
	NameService string `pulumi:"nameService"`
	// Parameter required or not; values: REQUIRED and OPTIONAL.
	Required string `pulumi:"required"`
	// Parameter type which supports values of 'STRING','INT','BOOLEAN','LONG',"FLOAT" and "DOUBLE".
	Type string `pulumi:"type"`
}

type ApiRequestParameterArgs

type ApiRequestParameterArgs struct {
	// The default value of the parameter.
	DefaultValue pulumi.StringPtrInput `pulumi:"defaultValue"`
	// The description of parameter.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Request's parameter location; values: BODY, HEAD, QUERY, and PATH.
	In pulumi.StringInput `pulumi:"in"`
	// Backend service's parameter location; values: BODY, HEAD, QUERY, and PATH.
	InService pulumi.StringInput `pulumi:"inService"`
	// Request's parameter name.
	Name pulumi.StringInput `pulumi:"name"`
	// Backend service's parameter name.
	NameService pulumi.StringInput `pulumi:"nameService"`
	// Parameter required or not; values: REQUIRED and OPTIONAL.
	Required pulumi.StringInput `pulumi:"required"`
	// Parameter type which supports values of 'STRING','INT','BOOLEAN','LONG',"FLOAT" and "DOUBLE".
	Type pulumi.StringInput `pulumi:"type"`
}

func (ApiRequestParameterArgs) ElementType

func (ApiRequestParameterArgs) ElementType() reflect.Type

func (ApiRequestParameterArgs) ToApiRequestParameterOutput

func (i ApiRequestParameterArgs) ToApiRequestParameterOutput() ApiRequestParameterOutput

func (ApiRequestParameterArgs) ToApiRequestParameterOutputWithContext

func (i ApiRequestParameterArgs) ToApiRequestParameterOutputWithContext(ctx context.Context) ApiRequestParameterOutput

type ApiRequestParameterArray

type ApiRequestParameterArray []ApiRequestParameterInput

func (ApiRequestParameterArray) ElementType

func (ApiRequestParameterArray) ElementType() reflect.Type

func (ApiRequestParameterArray) ToApiRequestParameterArrayOutput

func (i ApiRequestParameterArray) ToApiRequestParameterArrayOutput() ApiRequestParameterArrayOutput

func (ApiRequestParameterArray) ToApiRequestParameterArrayOutputWithContext

func (i ApiRequestParameterArray) ToApiRequestParameterArrayOutputWithContext(ctx context.Context) ApiRequestParameterArrayOutput

type ApiRequestParameterArrayInput

type ApiRequestParameterArrayInput interface {
	pulumi.Input

	ToApiRequestParameterArrayOutput() ApiRequestParameterArrayOutput
	ToApiRequestParameterArrayOutputWithContext(context.Context) ApiRequestParameterArrayOutput
}

ApiRequestParameterArrayInput is an input type that accepts ApiRequestParameterArray and ApiRequestParameterArrayOutput values. You can construct a concrete instance of `ApiRequestParameterArrayInput` via:

ApiRequestParameterArray{ ApiRequestParameterArgs{...} }

type ApiRequestParameterArrayOutput

type ApiRequestParameterArrayOutput struct{ *pulumi.OutputState }

func (ApiRequestParameterArrayOutput) ElementType

func (ApiRequestParameterArrayOutput) Index

func (ApiRequestParameterArrayOutput) ToApiRequestParameterArrayOutput

func (o ApiRequestParameterArrayOutput) ToApiRequestParameterArrayOutput() ApiRequestParameterArrayOutput

func (ApiRequestParameterArrayOutput) ToApiRequestParameterArrayOutputWithContext

func (o ApiRequestParameterArrayOutput) ToApiRequestParameterArrayOutputWithContext(ctx context.Context) ApiRequestParameterArrayOutput

type ApiRequestParameterInput

type ApiRequestParameterInput interface {
	pulumi.Input

	ToApiRequestParameterOutput() ApiRequestParameterOutput
	ToApiRequestParameterOutputWithContext(context.Context) ApiRequestParameterOutput
}

ApiRequestParameterInput is an input type that accepts ApiRequestParameterArgs and ApiRequestParameterOutput values. You can construct a concrete instance of `ApiRequestParameterInput` via:

ApiRequestParameterArgs{...}

type ApiRequestParameterOutput

type ApiRequestParameterOutput struct{ *pulumi.OutputState }

func (ApiRequestParameterOutput) DefaultValue

The default value of the parameter.

func (ApiRequestParameterOutput) Description

The description of parameter.

func (ApiRequestParameterOutput) ElementType

func (ApiRequestParameterOutput) ElementType() reflect.Type

func (ApiRequestParameterOutput) In

Request's parameter location; values: BODY, HEAD, QUERY, and PATH.

func (ApiRequestParameterOutput) InService

Backend service's parameter location; values: BODY, HEAD, QUERY, and PATH.

func (ApiRequestParameterOutput) Name

Request's parameter name.

func (ApiRequestParameterOutput) NameService

Backend service's parameter name.

func (ApiRequestParameterOutput) Required

Parameter required or not; values: REQUIRED and OPTIONAL.

func (ApiRequestParameterOutput) ToApiRequestParameterOutput

func (o ApiRequestParameterOutput) ToApiRequestParameterOutput() ApiRequestParameterOutput

func (ApiRequestParameterOutput) ToApiRequestParameterOutputWithContext

func (o ApiRequestParameterOutput) ToApiRequestParameterOutputWithContext(ctx context.Context) ApiRequestParameterOutput

func (ApiRequestParameterOutput) Type

Parameter type which supports values of 'STRING','INT','BOOLEAN','LONG',"FLOAT" and "DOUBLE".

type ApiState

type ApiState struct {
	// The ID of the api of api gateway.
	ApiId pulumi.StringPtrInput
	// The authorization Type including APP and ANONYMOUS. Defaults to null.
	AuthType pulumi.StringPtrInput
	// constant_parameters defines the constant parameters of the api. See `constantParameters` below.
	ConstantParameters ApiConstantParameterArrayInput
	// The description of the api. Defaults to null.
	Description pulumi.StringPtrInput
	// fc_service_config defines the config when serviceType selected 'FunctionCompute'. See `fcServiceConfig` below.
	FcServiceConfig ApiFcServiceConfigPtrInput
	// Whether to prevent API replay attack. Default value: `false`.
	ForceNonceCheck pulumi.BoolPtrInput
	// The api gateway that the api belongs to. Defaults to null.
	GroupId pulumi.StringPtrInput
	// http_service_config defines the config when serviceType selected 'HTTP'. See `httpServiceConfig` below.
	HttpServiceConfig ApiHttpServiceConfigPtrInput
	// http_vpc_service_config defines the config when serviceType selected 'HTTP-VPC'. See `httpVpcServiceConfig` below.
	HttpVpcServiceConfig ApiHttpVpcServiceConfigPtrInput
	// http_service_config defines the config when serviceType selected 'MOCK'. See `mockServiceConfig` below.
	MockServiceConfig ApiMockServiceConfigPtrInput
	// The name of the api gateway api. Defaults to null.
	Name pulumi.StringPtrInput
	// Request_config defines how users can send requests to your API. See `requestConfig` below.
	RequestConfig ApiRequestConfigPtrInput
	// request_parameters defines the request parameters of the api. See `requestParameters` below.
	RequestParameters ApiRequestParameterArrayInput
	// The type of backend service. Type including HTTP,VPC and MOCK. Defaults to null.
	ServiceType pulumi.StringPtrInput
	// Stages that the api need to be deployed. Valid value: `RELEASE`,`PRE`,`TEST`.
	StageNames pulumi.StringArrayInput
	// system_parameters defines the system parameters of the api. See `systemParameters` below.
	SystemParameters ApiSystemParameterArrayInput
}

func (ApiState) ElementType

func (ApiState) ElementType() reflect.Type

type ApiSystemParameter

type ApiSystemParameter struct {
	// System parameter location; values: 'HEAD' and 'QUERY'.
	In string `pulumi:"in"`
	// System parameter name which supports values including in [system parameter list](https://www.alibabacloud.com/help/doc-detail/43677.html).
	Name string `pulumi:"name"`
	// Backend service's parameter name.
	NameService string `pulumi:"nameService"`
}

type ApiSystemParameterArgs

type ApiSystemParameterArgs struct {
	// System parameter location; values: 'HEAD' and 'QUERY'.
	In pulumi.StringInput `pulumi:"in"`
	// System parameter name which supports values including in [system parameter list](https://www.alibabacloud.com/help/doc-detail/43677.html).
	Name pulumi.StringInput `pulumi:"name"`
	// Backend service's parameter name.
	NameService pulumi.StringInput `pulumi:"nameService"`
}

func (ApiSystemParameterArgs) ElementType

func (ApiSystemParameterArgs) ElementType() reflect.Type

func (ApiSystemParameterArgs) ToApiSystemParameterOutput

func (i ApiSystemParameterArgs) ToApiSystemParameterOutput() ApiSystemParameterOutput

func (ApiSystemParameterArgs) ToApiSystemParameterOutputWithContext

func (i ApiSystemParameterArgs) ToApiSystemParameterOutputWithContext(ctx context.Context) ApiSystemParameterOutput

type ApiSystemParameterArray

type ApiSystemParameterArray []ApiSystemParameterInput

func (ApiSystemParameterArray) ElementType

func (ApiSystemParameterArray) ElementType() reflect.Type

func (ApiSystemParameterArray) ToApiSystemParameterArrayOutput

func (i ApiSystemParameterArray) ToApiSystemParameterArrayOutput() ApiSystemParameterArrayOutput

func (ApiSystemParameterArray) ToApiSystemParameterArrayOutputWithContext

func (i ApiSystemParameterArray) ToApiSystemParameterArrayOutputWithContext(ctx context.Context) ApiSystemParameterArrayOutput

type ApiSystemParameterArrayInput

type ApiSystemParameterArrayInput interface {
	pulumi.Input

	ToApiSystemParameterArrayOutput() ApiSystemParameterArrayOutput
	ToApiSystemParameterArrayOutputWithContext(context.Context) ApiSystemParameterArrayOutput
}

ApiSystemParameterArrayInput is an input type that accepts ApiSystemParameterArray and ApiSystemParameterArrayOutput values. You can construct a concrete instance of `ApiSystemParameterArrayInput` via:

ApiSystemParameterArray{ ApiSystemParameterArgs{...} }

type ApiSystemParameterArrayOutput

type ApiSystemParameterArrayOutput struct{ *pulumi.OutputState }

func (ApiSystemParameterArrayOutput) ElementType

func (ApiSystemParameterArrayOutput) Index

func (ApiSystemParameterArrayOutput) ToApiSystemParameterArrayOutput

func (o ApiSystemParameterArrayOutput) ToApiSystemParameterArrayOutput() ApiSystemParameterArrayOutput

func (ApiSystemParameterArrayOutput) ToApiSystemParameterArrayOutputWithContext

func (o ApiSystemParameterArrayOutput) ToApiSystemParameterArrayOutputWithContext(ctx context.Context) ApiSystemParameterArrayOutput

type ApiSystemParameterInput

type ApiSystemParameterInput interface {
	pulumi.Input

	ToApiSystemParameterOutput() ApiSystemParameterOutput
	ToApiSystemParameterOutputWithContext(context.Context) ApiSystemParameterOutput
}

ApiSystemParameterInput is an input type that accepts ApiSystemParameterArgs and ApiSystemParameterOutput values. You can construct a concrete instance of `ApiSystemParameterInput` via:

ApiSystemParameterArgs{...}

type ApiSystemParameterOutput

type ApiSystemParameterOutput struct{ *pulumi.OutputState }

func (ApiSystemParameterOutput) ElementType

func (ApiSystemParameterOutput) ElementType() reflect.Type

func (ApiSystemParameterOutput) In

System parameter location; values: 'HEAD' and 'QUERY'.

func (ApiSystemParameterOutput) Name

System parameter name which supports values including in [system parameter list](https://www.alibabacloud.com/help/doc-detail/43677.html).

func (ApiSystemParameterOutput) NameService

Backend service's parameter name.

func (ApiSystemParameterOutput) ToApiSystemParameterOutput

func (o ApiSystemParameterOutput) ToApiSystemParameterOutput() ApiSystemParameterOutput

func (ApiSystemParameterOutput) ToApiSystemParameterOutputWithContext

func (o ApiSystemParameterOutput) ToApiSystemParameterOutputWithContext(ctx context.Context) ApiSystemParameterOutput

type App

type App struct {
	pulumi.CustomResourceState

	// The description of the app. Defaults to null.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of the app.
	Name pulumi.StringOutput `pulumi:"name"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.NewApp(ctx, "example", &apigateway.AppArgs{
			Name:        pulumi.String("tf_example"),
			Description: pulumi.String("tf_example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api gateway app can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/app:App example "7379660" ```

func GetApp

func GetApp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AppState, opts ...pulumi.ResourceOption) (*App, error)

GetApp gets an existing App resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewApp

func NewApp(ctx *pulumi.Context,
	name string, args *AppArgs, opts ...pulumi.ResourceOption) (*App, error)

NewApp registers a new resource with the given unique name, arguments, and options.

func (*App) ElementType

func (*App) ElementType() reflect.Type

func (*App) ToAppOutput

func (i *App) ToAppOutput() AppOutput

func (*App) ToAppOutputWithContext

func (i *App) ToAppOutputWithContext(ctx context.Context) AppOutput

type AppArgs

type AppArgs struct {
	// The description of the app. Defaults to null.
	Description pulumi.StringPtrInput
	// The name of the app.
	Name pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

The set of arguments for constructing a App resource.

func (AppArgs) ElementType

func (AppArgs) ElementType() reflect.Type

type AppArray

type AppArray []AppInput

func (AppArray) ElementType

func (AppArray) ElementType() reflect.Type

func (AppArray) ToAppArrayOutput

func (i AppArray) ToAppArrayOutput() AppArrayOutput

func (AppArray) ToAppArrayOutputWithContext

func (i AppArray) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput

type AppArrayInput

type AppArrayInput interface {
	pulumi.Input

	ToAppArrayOutput() AppArrayOutput
	ToAppArrayOutputWithContext(context.Context) AppArrayOutput
}

AppArrayInput is an input type that accepts AppArray and AppArrayOutput values. You can construct a concrete instance of `AppArrayInput` via:

AppArray{ AppArgs{...} }

type AppArrayOutput

type AppArrayOutput struct{ *pulumi.OutputState }

func (AppArrayOutput) ElementType

func (AppArrayOutput) ElementType() reflect.Type

func (AppArrayOutput) Index

func (AppArrayOutput) ToAppArrayOutput

func (o AppArrayOutput) ToAppArrayOutput() AppArrayOutput

func (AppArrayOutput) ToAppArrayOutputWithContext

func (o AppArrayOutput) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput

type AppAttachment

type AppAttachment struct {
	pulumi.CustomResourceState

	// The apiId that app apply to access.
	ApiId pulumi.StringOutput `pulumi:"apiId"`
	// The app that apply to the authorization.
	AppId pulumi.StringOutput `pulumi:"appId"`
	// The group that the api belongs to.
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// Stage that the app apply to access.
	StageName pulumi.StringOutput `pulumi:"stageName"`
}

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		example, err := apigateway.NewGroup(ctx, "example", &apigateway.GroupArgs{
			Name:        pulumi.String(name),
			Description: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		exampleApi, err := apigateway.NewApi(ctx, "example", &apigateway.ApiArgs{
			GroupId:         example.ID(),
			Name:            pulumi.String(name),
			Description:     pulumi.String(name),
			AuthType:        pulumi.String("APP"),
			ForceNonceCheck: pulumi.Bool(false),
			RequestConfig: &apigateway.ApiRequestConfigArgs{
				Protocol: pulumi.String("HTTP"),
				Method:   pulumi.String("GET"),
				Path:     pulumi.String("/example/path"),
				Mode:     pulumi.String("MAPPING"),
			},
			ServiceType: pulumi.String("HTTP"),
			HttpServiceConfig: &apigateway.ApiHttpServiceConfigArgs{
				Address:  pulumi.String("http://apigateway-backend.alicloudapi.com:8080"),
				Method:   pulumi.String("GET"),
				Path:     pulumi.String("/web/cloudapi"),
				Timeout:  pulumi.Int(12),
				AoneName: pulumi.String("cloudapi-openapi"),
			},
			RequestParameters: apigateway.ApiRequestParameterArray{
				&apigateway.ApiRequestParameterArgs{
					Name:        pulumi.String("example"),
					Type:        pulumi.String("STRING"),
					Required:    pulumi.String("OPTIONAL"),
					In:          pulumi.String("QUERY"),
					InService:   pulumi.String("QUERY"),
					NameService: pulumi.String("exampleservice"),
				},
			},
			StageNames: pulumi.StringArray{
				pulumi.String("RELEASE"),
				pulumi.String("TEST"),
			},
		})
		if err != nil {
			return err
		}
		exampleApp, err := apigateway.NewApp(ctx, "example", &apigateway.AppArgs{
			Name:        pulumi.String(name),
			Description: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = apigateway.NewAppAttachment(ctx, "example", &apigateway.AppAttachmentArgs{
			ApiId:     exampleApi.ApiId,
			GroupId:   example.ID(),
			AppId:     exampleApp.ID(),
			StageName: pulumi.String("PRE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAppAttachment

func GetAppAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AppAttachmentState, opts ...pulumi.ResourceOption) (*AppAttachment, error)

GetAppAttachment gets an existing AppAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAppAttachment

func NewAppAttachment(ctx *pulumi.Context,
	name string, args *AppAttachmentArgs, opts ...pulumi.ResourceOption) (*AppAttachment, error)

NewAppAttachment registers a new resource with the given unique name, arguments, and options.

func (*AppAttachment) ElementType

func (*AppAttachment) ElementType() reflect.Type

func (*AppAttachment) ToAppAttachmentOutput

func (i *AppAttachment) ToAppAttachmentOutput() AppAttachmentOutput

func (*AppAttachment) ToAppAttachmentOutputWithContext

func (i *AppAttachment) ToAppAttachmentOutputWithContext(ctx context.Context) AppAttachmentOutput

type AppAttachmentArgs

type AppAttachmentArgs struct {
	// The apiId that app apply to access.
	ApiId pulumi.StringInput
	// The app that apply to the authorization.
	AppId pulumi.StringInput
	// The group that the api belongs to.
	GroupId pulumi.StringInput
	// Stage that the app apply to access.
	StageName pulumi.StringInput
}

The set of arguments for constructing a AppAttachment resource.

func (AppAttachmentArgs) ElementType

func (AppAttachmentArgs) ElementType() reflect.Type

type AppAttachmentArray

type AppAttachmentArray []AppAttachmentInput

func (AppAttachmentArray) ElementType

func (AppAttachmentArray) ElementType() reflect.Type

func (AppAttachmentArray) ToAppAttachmentArrayOutput

func (i AppAttachmentArray) ToAppAttachmentArrayOutput() AppAttachmentArrayOutput

func (AppAttachmentArray) ToAppAttachmentArrayOutputWithContext

func (i AppAttachmentArray) ToAppAttachmentArrayOutputWithContext(ctx context.Context) AppAttachmentArrayOutput

type AppAttachmentArrayInput

type AppAttachmentArrayInput interface {
	pulumi.Input

	ToAppAttachmentArrayOutput() AppAttachmentArrayOutput
	ToAppAttachmentArrayOutputWithContext(context.Context) AppAttachmentArrayOutput
}

AppAttachmentArrayInput is an input type that accepts AppAttachmentArray and AppAttachmentArrayOutput values. You can construct a concrete instance of `AppAttachmentArrayInput` via:

AppAttachmentArray{ AppAttachmentArgs{...} }

type AppAttachmentArrayOutput

type AppAttachmentArrayOutput struct{ *pulumi.OutputState }

func (AppAttachmentArrayOutput) ElementType

func (AppAttachmentArrayOutput) ElementType() reflect.Type

func (AppAttachmentArrayOutput) Index

func (AppAttachmentArrayOutput) ToAppAttachmentArrayOutput

func (o AppAttachmentArrayOutput) ToAppAttachmentArrayOutput() AppAttachmentArrayOutput

func (AppAttachmentArrayOutput) ToAppAttachmentArrayOutputWithContext

func (o AppAttachmentArrayOutput) ToAppAttachmentArrayOutputWithContext(ctx context.Context) AppAttachmentArrayOutput

type AppAttachmentInput

type AppAttachmentInput interface {
	pulumi.Input

	ToAppAttachmentOutput() AppAttachmentOutput
	ToAppAttachmentOutputWithContext(ctx context.Context) AppAttachmentOutput
}

type AppAttachmentMap

type AppAttachmentMap map[string]AppAttachmentInput

func (AppAttachmentMap) ElementType

func (AppAttachmentMap) ElementType() reflect.Type

func (AppAttachmentMap) ToAppAttachmentMapOutput

func (i AppAttachmentMap) ToAppAttachmentMapOutput() AppAttachmentMapOutput

func (AppAttachmentMap) ToAppAttachmentMapOutputWithContext

func (i AppAttachmentMap) ToAppAttachmentMapOutputWithContext(ctx context.Context) AppAttachmentMapOutput

type AppAttachmentMapInput

type AppAttachmentMapInput interface {
	pulumi.Input

	ToAppAttachmentMapOutput() AppAttachmentMapOutput
	ToAppAttachmentMapOutputWithContext(context.Context) AppAttachmentMapOutput
}

AppAttachmentMapInput is an input type that accepts AppAttachmentMap and AppAttachmentMapOutput values. You can construct a concrete instance of `AppAttachmentMapInput` via:

AppAttachmentMap{ "key": AppAttachmentArgs{...} }

type AppAttachmentMapOutput

type AppAttachmentMapOutput struct{ *pulumi.OutputState }

func (AppAttachmentMapOutput) ElementType

func (AppAttachmentMapOutput) ElementType() reflect.Type

func (AppAttachmentMapOutput) MapIndex

func (AppAttachmentMapOutput) ToAppAttachmentMapOutput

func (o AppAttachmentMapOutput) ToAppAttachmentMapOutput() AppAttachmentMapOutput

func (AppAttachmentMapOutput) ToAppAttachmentMapOutputWithContext

func (o AppAttachmentMapOutput) ToAppAttachmentMapOutputWithContext(ctx context.Context) AppAttachmentMapOutput

type AppAttachmentOutput

type AppAttachmentOutput struct{ *pulumi.OutputState }

func (AppAttachmentOutput) ApiId added in v3.27.0

The apiId that app apply to access.

func (AppAttachmentOutput) AppId added in v3.27.0

The app that apply to the authorization.

func (AppAttachmentOutput) ElementType

func (AppAttachmentOutput) ElementType() reflect.Type

func (AppAttachmentOutput) GroupId added in v3.27.0

The group that the api belongs to.

func (AppAttachmentOutput) StageName added in v3.27.0

func (o AppAttachmentOutput) StageName() pulumi.StringOutput

Stage that the app apply to access.

func (AppAttachmentOutput) ToAppAttachmentOutput

func (o AppAttachmentOutput) ToAppAttachmentOutput() AppAttachmentOutput

func (AppAttachmentOutput) ToAppAttachmentOutputWithContext

func (o AppAttachmentOutput) ToAppAttachmentOutputWithContext(ctx context.Context) AppAttachmentOutput

type AppAttachmentState

type AppAttachmentState struct {
	// The apiId that app apply to access.
	ApiId pulumi.StringPtrInput
	// The app that apply to the authorization.
	AppId pulumi.StringPtrInput
	// The group that the api belongs to.
	GroupId pulumi.StringPtrInput
	// Stage that the app apply to access.
	StageName pulumi.StringPtrInput
}

func (AppAttachmentState) ElementType

func (AppAttachmentState) ElementType() reflect.Type

type AppInput

type AppInput interface {
	pulumi.Input

	ToAppOutput() AppOutput
	ToAppOutputWithContext(ctx context.Context) AppOutput
}

type AppMap

type AppMap map[string]AppInput

func (AppMap) ElementType

func (AppMap) ElementType() reflect.Type

func (AppMap) ToAppMapOutput

func (i AppMap) ToAppMapOutput() AppMapOutput

func (AppMap) ToAppMapOutputWithContext

func (i AppMap) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput

type AppMapInput

type AppMapInput interface {
	pulumi.Input

	ToAppMapOutput() AppMapOutput
	ToAppMapOutputWithContext(context.Context) AppMapOutput
}

AppMapInput is an input type that accepts AppMap and AppMapOutput values. You can construct a concrete instance of `AppMapInput` via:

AppMap{ "key": AppArgs{...} }

type AppMapOutput

type AppMapOutput struct{ *pulumi.OutputState }

func (AppMapOutput) ElementType

func (AppMapOutput) ElementType() reflect.Type

func (AppMapOutput) MapIndex

func (o AppMapOutput) MapIndex(k pulumi.StringInput) AppOutput

func (AppMapOutput) ToAppMapOutput

func (o AppMapOutput) ToAppMapOutput() AppMapOutput

func (AppMapOutput) ToAppMapOutputWithContext

func (o AppMapOutput) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput

type AppOutput

type AppOutput struct{ *pulumi.OutputState }

func (AppOutput) Description added in v3.27.0

func (o AppOutput) Description() pulumi.StringPtrOutput

The description of the app. Defaults to null.

func (AppOutput) ElementType

func (AppOutput) ElementType() reflect.Type

func (AppOutput) Name added in v3.27.0

func (o AppOutput) Name() pulumi.StringOutput

The name of the app.

func (AppOutput) Tags added in v3.27.0

func (o AppOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

func (AppOutput) ToAppOutput

func (o AppOutput) ToAppOutput() AppOutput

func (AppOutput) ToAppOutputWithContext

func (o AppOutput) ToAppOutputWithContext(ctx context.Context) AppOutput

type AppState

type AppState struct {
	// The description of the app. Defaults to null.
	Description pulumi.StringPtrInput
	// The name of the app.
	Name pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

func (AppState) ElementType

func (AppState) ElementType() reflect.Type

type Backend added in v3.28.0

type Backend struct {
	pulumi.CustomResourceState

	// The name of the Backend.
	BackendName pulumi.StringOutput `pulumi:"backendName"`
	// The type of the Backend. Valid values: `HTTP`, `VPC`, `FC_EVENT`, `FC_HTTP`, `OSS`, `MOCK`.
	BackendType pulumi.StringOutput `pulumi:"backendType"`
	// Whether to create an Event bus service association role.
	CreateEventBridgeServiceLinkedRole pulumi.BoolPtrOutput `pulumi:"createEventBridgeServiceLinkedRole"`
	// The description of the Backend.
	Description pulumi.StringPtrOutput `pulumi:"description"`
}

Provides a Api Gateway Backend resource.

For information about Api Gateway Backend and how to use it, see [What is Backend](https://www.alibabacloud.com/help/en/api-gateway/developer-reference/api-cloudapi-2016-07-14-createbackend).

> **NOTE:** Available since v1.181.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := apigateway.NewBackend(ctx, "default", &apigateway.BackendArgs{
			BackendName: pulumi.String(name),
			Description: pulumi.String(name),
			BackendType: pulumi.String("HTTP"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api Gateway Backend can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/backend:Backend example <id> ```

func GetBackend added in v3.28.0

func GetBackend(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BackendState, opts ...pulumi.ResourceOption) (*Backend, error)

GetBackend gets an existing Backend resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBackend added in v3.28.0

func NewBackend(ctx *pulumi.Context,
	name string, args *BackendArgs, opts ...pulumi.ResourceOption) (*Backend, error)

NewBackend registers a new resource with the given unique name, arguments, and options.

func (*Backend) ElementType added in v3.28.0

func (*Backend) ElementType() reflect.Type

func (*Backend) ToBackendOutput added in v3.28.0

func (i *Backend) ToBackendOutput() BackendOutput

func (*Backend) ToBackendOutputWithContext added in v3.28.0

func (i *Backend) ToBackendOutputWithContext(ctx context.Context) BackendOutput

type BackendArgs added in v3.28.0

type BackendArgs struct {
	// The name of the Backend.
	BackendName pulumi.StringInput
	// The type of the Backend. Valid values: `HTTP`, `VPC`, `FC_EVENT`, `FC_HTTP`, `OSS`, `MOCK`.
	BackendType pulumi.StringInput
	// Whether to create an Event bus service association role.
	CreateEventBridgeServiceLinkedRole pulumi.BoolPtrInput
	// The description of the Backend.
	Description pulumi.StringPtrInput
}

The set of arguments for constructing a Backend resource.

func (BackendArgs) ElementType added in v3.28.0

func (BackendArgs) ElementType() reflect.Type

type BackendArray added in v3.28.0

type BackendArray []BackendInput

func (BackendArray) ElementType added in v3.28.0

func (BackendArray) ElementType() reflect.Type

func (BackendArray) ToBackendArrayOutput added in v3.28.0

func (i BackendArray) ToBackendArrayOutput() BackendArrayOutput

func (BackendArray) ToBackendArrayOutputWithContext added in v3.28.0

func (i BackendArray) ToBackendArrayOutputWithContext(ctx context.Context) BackendArrayOutput

type BackendArrayInput added in v3.28.0

type BackendArrayInput interface {
	pulumi.Input

	ToBackendArrayOutput() BackendArrayOutput
	ToBackendArrayOutputWithContext(context.Context) BackendArrayOutput
}

BackendArrayInput is an input type that accepts BackendArray and BackendArrayOutput values. You can construct a concrete instance of `BackendArrayInput` via:

BackendArray{ BackendArgs{...} }

type BackendArrayOutput added in v3.28.0

type BackendArrayOutput struct{ *pulumi.OutputState }

func (BackendArrayOutput) ElementType added in v3.28.0

func (BackendArrayOutput) ElementType() reflect.Type

func (BackendArrayOutput) Index added in v3.28.0

func (BackendArrayOutput) ToBackendArrayOutput added in v3.28.0

func (o BackendArrayOutput) ToBackendArrayOutput() BackendArrayOutput

func (BackendArrayOutput) ToBackendArrayOutputWithContext added in v3.28.0

func (o BackendArrayOutput) ToBackendArrayOutputWithContext(ctx context.Context) BackendArrayOutput

type BackendInput added in v3.28.0

type BackendInput interface {
	pulumi.Input

	ToBackendOutput() BackendOutput
	ToBackendOutputWithContext(ctx context.Context) BackendOutput
}

type BackendMap added in v3.28.0

type BackendMap map[string]BackendInput

func (BackendMap) ElementType added in v3.28.0

func (BackendMap) ElementType() reflect.Type

func (BackendMap) ToBackendMapOutput added in v3.28.0

func (i BackendMap) ToBackendMapOutput() BackendMapOutput

func (BackendMap) ToBackendMapOutputWithContext added in v3.28.0

func (i BackendMap) ToBackendMapOutputWithContext(ctx context.Context) BackendMapOutput

type BackendMapInput added in v3.28.0

type BackendMapInput interface {
	pulumi.Input

	ToBackendMapOutput() BackendMapOutput
	ToBackendMapOutputWithContext(context.Context) BackendMapOutput
}

BackendMapInput is an input type that accepts BackendMap and BackendMapOutput values. You can construct a concrete instance of `BackendMapInput` via:

BackendMap{ "key": BackendArgs{...} }

type BackendMapOutput added in v3.28.0

type BackendMapOutput struct{ *pulumi.OutputState }

func (BackendMapOutput) ElementType added in v3.28.0

func (BackendMapOutput) ElementType() reflect.Type

func (BackendMapOutput) MapIndex added in v3.28.0

func (BackendMapOutput) ToBackendMapOutput added in v3.28.0

func (o BackendMapOutput) ToBackendMapOutput() BackendMapOutput

func (BackendMapOutput) ToBackendMapOutputWithContext added in v3.28.0

func (o BackendMapOutput) ToBackendMapOutputWithContext(ctx context.Context) BackendMapOutput

type BackendOutput added in v3.28.0

type BackendOutput struct{ *pulumi.OutputState }

func (BackendOutput) BackendName added in v3.28.0

func (o BackendOutput) BackendName() pulumi.StringOutput

The name of the Backend.

func (BackendOutput) BackendType added in v3.28.0

func (o BackendOutput) BackendType() pulumi.StringOutput

The type of the Backend. Valid values: `HTTP`, `VPC`, `FC_EVENT`, `FC_HTTP`, `OSS`, `MOCK`.

func (BackendOutput) CreateEventBridgeServiceLinkedRole added in v3.28.0

func (o BackendOutput) CreateEventBridgeServiceLinkedRole() pulumi.BoolPtrOutput

Whether to create an Event bus service association role.

func (BackendOutput) Description added in v3.28.0

func (o BackendOutput) Description() pulumi.StringPtrOutput

The description of the Backend.

func (BackendOutput) ElementType added in v3.28.0

func (BackendOutput) ElementType() reflect.Type

func (BackendOutput) ToBackendOutput added in v3.28.0

func (o BackendOutput) ToBackendOutput() BackendOutput

func (BackendOutput) ToBackendOutputWithContext added in v3.28.0

func (o BackendOutput) ToBackendOutputWithContext(ctx context.Context) BackendOutput

type BackendState added in v3.28.0

type BackendState struct {
	// The name of the Backend.
	BackendName pulumi.StringPtrInput
	// The type of the Backend. Valid values: `HTTP`, `VPC`, `FC_EVENT`, `FC_HTTP`, `OSS`, `MOCK`.
	BackendType pulumi.StringPtrInput
	// Whether to create an Event bus service association role.
	CreateEventBridgeServiceLinkedRole pulumi.BoolPtrInput
	// The description of the Backend.
	Description pulumi.StringPtrInput
}

func (BackendState) ElementType added in v3.28.0

func (BackendState) ElementType() reflect.Type

type GetApisApi

type GetApisApi struct {
	// API description.
	Description string `pulumi:"description"`
	// ID of the specified group.
	GroupId string `pulumi:"groupId"`
	// The group name that the apis belong to.
	GroupName string `pulumi:"groupName"`
	// API ID, which is generated by the system and globally unique.
	Id string `pulumi:"id"`
	// API name.
	Name string `pulumi:"name"`
	// The ID of the region where the API is located.
	RegionId string `pulumi:"regionId"`
}

type GetApisApiArgs

type GetApisApiArgs struct {
	// API description.
	Description pulumi.StringInput `pulumi:"description"`
	// ID of the specified group.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// The group name that the apis belong to.
	GroupName pulumi.StringInput `pulumi:"groupName"`
	// API ID, which is generated by the system and globally unique.
	Id pulumi.StringInput `pulumi:"id"`
	// API name.
	Name pulumi.StringInput `pulumi:"name"`
	// The ID of the region where the API is located.
	RegionId pulumi.StringInput `pulumi:"regionId"`
}

func (GetApisApiArgs) ElementType

func (GetApisApiArgs) ElementType() reflect.Type

func (GetApisApiArgs) ToGetApisApiOutput

func (i GetApisApiArgs) ToGetApisApiOutput() GetApisApiOutput

func (GetApisApiArgs) ToGetApisApiOutputWithContext

func (i GetApisApiArgs) ToGetApisApiOutputWithContext(ctx context.Context) GetApisApiOutput

type GetApisApiArray

type GetApisApiArray []GetApisApiInput

func (GetApisApiArray) ElementType

func (GetApisApiArray) ElementType() reflect.Type

func (GetApisApiArray) ToGetApisApiArrayOutput

func (i GetApisApiArray) ToGetApisApiArrayOutput() GetApisApiArrayOutput

func (GetApisApiArray) ToGetApisApiArrayOutputWithContext

func (i GetApisApiArray) ToGetApisApiArrayOutputWithContext(ctx context.Context) GetApisApiArrayOutput

type GetApisApiArrayInput

type GetApisApiArrayInput interface {
	pulumi.Input

	ToGetApisApiArrayOutput() GetApisApiArrayOutput
	ToGetApisApiArrayOutputWithContext(context.Context) GetApisApiArrayOutput
}

GetApisApiArrayInput is an input type that accepts GetApisApiArray and GetApisApiArrayOutput values. You can construct a concrete instance of `GetApisApiArrayInput` via:

GetApisApiArray{ GetApisApiArgs{...} }

type GetApisApiArrayOutput

type GetApisApiArrayOutput struct{ *pulumi.OutputState }

func (GetApisApiArrayOutput) ElementType

func (GetApisApiArrayOutput) ElementType() reflect.Type

func (GetApisApiArrayOutput) Index

func (GetApisApiArrayOutput) ToGetApisApiArrayOutput

func (o GetApisApiArrayOutput) ToGetApisApiArrayOutput() GetApisApiArrayOutput

func (GetApisApiArrayOutput) ToGetApisApiArrayOutputWithContext

func (o GetApisApiArrayOutput) ToGetApisApiArrayOutputWithContext(ctx context.Context) GetApisApiArrayOutput

type GetApisApiInput

type GetApisApiInput interface {
	pulumi.Input

	ToGetApisApiOutput() GetApisApiOutput
	ToGetApisApiOutputWithContext(context.Context) GetApisApiOutput
}

GetApisApiInput is an input type that accepts GetApisApiArgs and GetApisApiOutput values. You can construct a concrete instance of `GetApisApiInput` via:

GetApisApiArgs{...}

type GetApisApiOutput

type GetApisApiOutput struct{ *pulumi.OutputState }

func (GetApisApiOutput) Description

func (o GetApisApiOutput) Description() pulumi.StringOutput

API description.

func (GetApisApiOutput) ElementType

func (GetApisApiOutput) ElementType() reflect.Type

func (GetApisApiOutput) GroupId

func (o GetApisApiOutput) GroupId() pulumi.StringOutput

ID of the specified group.

func (GetApisApiOutput) GroupName

func (o GetApisApiOutput) GroupName() pulumi.StringOutput

The group name that the apis belong to.

func (GetApisApiOutput) Id

API ID, which is generated by the system and globally unique.

func (GetApisApiOutput) Name

API name.

func (GetApisApiOutput) RegionId

func (o GetApisApiOutput) RegionId() pulumi.StringOutput

The ID of the region where the API is located.

func (GetApisApiOutput) ToGetApisApiOutput

func (o GetApisApiOutput) ToGetApisApiOutput() GetApisApiOutput

func (GetApisApiOutput) ToGetApisApiOutputWithContext

func (o GetApisApiOutput) ToGetApisApiOutputWithContext(ctx context.Context) GetApisApiOutput

type GetApisArgs

type GetApisArgs struct {
	// (It has been deprecated from version 1.52.2, and use field 'ids' to replace.) ID of the specified API.
	//
	// Deprecated: Field 'api_id' has been deprecated from provider version 1.52.2. New field 'ids' replaces it.
	ApiId *string `pulumi:"apiId"`
	// ID of the specified group.
	GroupId *string `pulumi:"groupId"`
	// A list of api IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter api gateway apis by name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getApis.

type GetApisOutputArgs added in v3.9.0

type GetApisOutputArgs struct {
	// (It has been deprecated from version 1.52.2, and use field 'ids' to replace.) ID of the specified API.
	//
	// Deprecated: Field 'api_id' has been deprecated from provider version 1.52.2. New field 'ids' replaces it.
	ApiId pulumi.StringPtrInput `pulumi:"apiId"`
	// ID of the specified group.
	GroupId pulumi.StringPtrInput `pulumi:"groupId"`
	// A list of api IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter api gateway apis by name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getApis.

func (GetApisOutputArgs) ElementType added in v3.9.0

func (GetApisOutputArgs) ElementType() reflect.Type

type GetApisResult

type GetApisResult struct {
	// Deprecated: Field 'api_id' has been deprecated from provider version 1.52.2. New field 'ids' replaces it.
	ApiId *string `pulumi:"apiId"`
	// A list of apis. Each element contains the following attributes:
	Apis []GetApisApi `pulumi:"apis"`
	// The group id that the apis belong to.
	GroupId *string `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of api IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of api names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getApis.

func GetApis

func GetApis(ctx *pulumi.Context, args *GetApisArgs, opts ...pulumi.InvokeOption) (*GetApisResult, error)

This data source provides the apis of the current Alibaba Cloud user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.GetApis(ctx, &apigateway.GetApisArgs{
			OutputFile: pulumi.StringRef("output_ApiGatawayApis"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstApiId", dataApigatway.Apis[0].Id)
		return nil
	})
}

```

type GetApisResultOutput added in v3.9.0

type GetApisResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getApis.

func GetApisOutput added in v3.9.0

func GetApisOutput(ctx *pulumi.Context, args GetApisOutputArgs, opts ...pulumi.InvokeOption) GetApisResultOutput

func (GetApisResultOutput) ApiId deprecated added in v3.9.0

Deprecated: Field 'api_id' has been deprecated from provider version 1.52.2. New field 'ids' replaces it.

func (GetApisResultOutput) Apis added in v3.9.0

A list of apis. Each element contains the following attributes:

func (GetApisResultOutput) ElementType added in v3.9.0

func (GetApisResultOutput) ElementType() reflect.Type

func (GetApisResultOutput) GroupId added in v3.9.0

The group id that the apis belong to.

func (GetApisResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetApisResultOutput) Ids added in v3.9.0

A list of api IDs.

func (GetApisResultOutput) NameRegex added in v3.9.0

func (GetApisResultOutput) Names added in v3.9.0

A list of api names.

func (GetApisResultOutput) OutputFile added in v3.9.0

func (GetApisResultOutput) ToGetApisResultOutput added in v3.9.0

func (o GetApisResultOutput) ToGetApisResultOutput() GetApisResultOutput

func (GetApisResultOutput) ToGetApisResultOutputWithContext added in v3.9.0

func (o GetApisResultOutput) ToGetApisResultOutputWithContext(ctx context.Context) GetApisResultOutput

type GetAppsApp

type GetAppsApp struct {
	// App code.
	AppCode string `pulumi:"appCode"`
	// Creation time (Greenwich mean time).
	CreatedTime string `pulumi:"createdTime"`
	// App description.
	Description string `pulumi:"description"`
	// App ID, which is generated by the system and globally unique.
	Id int `pulumi:"id"`
	// Last modification time (Greenwich mean time).
	ModifiedTime string `pulumi:"modifiedTime"`
	// App name.
	Name string `pulumi:"name"`
}

type GetAppsAppArgs

type GetAppsAppArgs struct {
	// App code.
	AppCode pulumi.StringInput `pulumi:"appCode"`
	// Creation time (Greenwich mean time).
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// App description.
	Description pulumi.StringInput `pulumi:"description"`
	// App ID, which is generated by the system and globally unique.
	Id pulumi.IntInput `pulumi:"id"`
	// Last modification time (Greenwich mean time).
	ModifiedTime pulumi.StringInput `pulumi:"modifiedTime"`
	// App name.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetAppsAppArgs) ElementType

func (GetAppsAppArgs) ElementType() reflect.Type

func (GetAppsAppArgs) ToGetAppsAppOutput

func (i GetAppsAppArgs) ToGetAppsAppOutput() GetAppsAppOutput

func (GetAppsAppArgs) ToGetAppsAppOutputWithContext

func (i GetAppsAppArgs) ToGetAppsAppOutputWithContext(ctx context.Context) GetAppsAppOutput

type GetAppsAppArray

type GetAppsAppArray []GetAppsAppInput

func (GetAppsAppArray) ElementType

func (GetAppsAppArray) ElementType() reflect.Type

func (GetAppsAppArray) ToGetAppsAppArrayOutput

func (i GetAppsAppArray) ToGetAppsAppArrayOutput() GetAppsAppArrayOutput

func (GetAppsAppArray) ToGetAppsAppArrayOutputWithContext

func (i GetAppsAppArray) ToGetAppsAppArrayOutputWithContext(ctx context.Context) GetAppsAppArrayOutput

type GetAppsAppArrayInput

type GetAppsAppArrayInput interface {
	pulumi.Input

	ToGetAppsAppArrayOutput() GetAppsAppArrayOutput
	ToGetAppsAppArrayOutputWithContext(context.Context) GetAppsAppArrayOutput
}

GetAppsAppArrayInput is an input type that accepts GetAppsAppArray and GetAppsAppArrayOutput values. You can construct a concrete instance of `GetAppsAppArrayInput` via:

GetAppsAppArray{ GetAppsAppArgs{...} }

type GetAppsAppArrayOutput

type GetAppsAppArrayOutput struct{ *pulumi.OutputState }

func (GetAppsAppArrayOutput) ElementType

func (GetAppsAppArrayOutput) ElementType() reflect.Type

func (GetAppsAppArrayOutput) Index

func (GetAppsAppArrayOutput) ToGetAppsAppArrayOutput

func (o GetAppsAppArrayOutput) ToGetAppsAppArrayOutput() GetAppsAppArrayOutput

func (GetAppsAppArrayOutput) ToGetAppsAppArrayOutputWithContext

func (o GetAppsAppArrayOutput) ToGetAppsAppArrayOutputWithContext(ctx context.Context) GetAppsAppArrayOutput

type GetAppsAppInput

type GetAppsAppInput interface {
	pulumi.Input

	ToGetAppsAppOutput() GetAppsAppOutput
	ToGetAppsAppOutputWithContext(context.Context) GetAppsAppOutput
}

GetAppsAppInput is an input type that accepts GetAppsAppArgs and GetAppsAppOutput values. You can construct a concrete instance of `GetAppsAppInput` via:

GetAppsAppArgs{...}

type GetAppsAppOutput

type GetAppsAppOutput struct{ *pulumi.OutputState }

func (GetAppsAppOutput) AppCode

func (o GetAppsAppOutput) AppCode() pulumi.StringOutput

App code.

func (GetAppsAppOutput) CreatedTime

func (o GetAppsAppOutput) CreatedTime() pulumi.StringOutput

Creation time (Greenwich mean time).

func (GetAppsAppOutput) Description

func (o GetAppsAppOutput) Description() pulumi.StringOutput

App description.

func (GetAppsAppOutput) ElementType

func (GetAppsAppOutput) ElementType() reflect.Type

func (GetAppsAppOutput) Id

App ID, which is generated by the system and globally unique.

func (GetAppsAppOutput) ModifiedTime

func (o GetAppsAppOutput) ModifiedTime() pulumi.StringOutput

Last modification time (Greenwich mean time).

func (GetAppsAppOutput) Name

App name.

func (GetAppsAppOutput) ToGetAppsAppOutput

func (o GetAppsAppOutput) ToGetAppsAppOutput() GetAppsAppOutput

func (GetAppsAppOutput) ToGetAppsAppOutputWithContext

func (o GetAppsAppOutput) ToGetAppsAppOutputWithContext(ctx context.Context) GetAppsAppOutput

type GetAppsArgs

type GetAppsArgs struct {
	// A list of app IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter apps by name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// A mapping of tags to assign to the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getApps.

type GetAppsOutputArgs added in v3.9.0

type GetAppsOutputArgs struct {
	// A list of app IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter apps by name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
}

A collection of arguments for invoking getApps.

func (GetAppsOutputArgs) ElementType added in v3.9.0

func (GetAppsOutputArgs) ElementType() reflect.Type

type GetAppsResult

type GetAppsResult struct {
	// A list of apps. Each element contains the following attributes:
	Apps []GetAppsApp `pulumi:"apps"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of app IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of app names.
	Names      []string               `pulumi:"names"`
	OutputFile *string                `pulumi:"outputFile"`
	Tags       map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getApps.

func GetApps

func GetApps(ctx *pulumi.Context, args *GetAppsArgs, opts ...pulumi.InvokeOption) (*GetAppsResult, error)

This data source provides the apps of the current Alibaba Cloud user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dataApigatway, err := apigateway.GetApps(ctx, &apigateway.GetAppsArgs{
			OutputFile: pulumi.StringRef("outapps"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstAppId", dataApigatway.Apps[0].Id)
		return nil
	})
}

```

type GetAppsResultOutput added in v3.9.0

type GetAppsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getApps.

func GetAppsOutput added in v3.9.0

func GetAppsOutput(ctx *pulumi.Context, args GetAppsOutputArgs, opts ...pulumi.InvokeOption) GetAppsResultOutput

func (GetAppsResultOutput) Apps added in v3.9.0

A list of apps. Each element contains the following attributes:

func (GetAppsResultOutput) ElementType added in v3.9.0

func (GetAppsResultOutput) ElementType() reflect.Type

func (GetAppsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetAppsResultOutput) Ids added in v3.9.0

A list of app IDs.

func (GetAppsResultOutput) NameRegex added in v3.9.0

func (GetAppsResultOutput) Names added in v3.9.0

A list of app names.

func (GetAppsResultOutput) OutputFile added in v3.9.0

func (GetAppsResultOutput) Tags added in v3.9.0

func (GetAppsResultOutput) ToGetAppsResultOutput added in v3.9.0

func (o GetAppsResultOutput) ToGetAppsResultOutput() GetAppsResultOutput

func (GetAppsResultOutput) ToGetAppsResultOutputWithContext added in v3.9.0

func (o GetAppsResultOutput) ToGetAppsResultOutputWithContext(ctx context.Context) GetAppsResultOutput

type GetBackendsArgs added in v3.28.0

type GetBackendsArgs struct {
	// A list of Backends IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter Api Gateway Backends by name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
}

A collection of arguments for invoking getBackends.

type GetBackendsBackend added in v3.28.0

type GetBackendsBackend struct {
	// The id of the Backend.
	BackendId string `pulumi:"backendId"`
	// The name of the Backend.
	BackendName string `pulumi:"backendName"`
	// The type of the Backend.
	BackendType string `pulumi:"backendType"`
	// The created time of the Backend.
	CreateTime string `pulumi:"createTime"`
	// The description of the Backend.
	Description string `pulumi:"description"`
	Id          string `pulumi:"id"`
	// The modified time of the Backend.
	ModifiedTime string `pulumi:"modifiedTime"`
}

type GetBackendsBackendArgs added in v3.28.0

type GetBackendsBackendArgs struct {
	// The id of the Backend.
	BackendId pulumi.StringInput `pulumi:"backendId"`
	// The name of the Backend.
	BackendName pulumi.StringInput `pulumi:"backendName"`
	// The type of the Backend.
	BackendType pulumi.StringInput `pulumi:"backendType"`
	// The created time of the Backend.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the Backend.
	Description pulumi.StringInput `pulumi:"description"`
	Id          pulumi.StringInput `pulumi:"id"`
	// The modified time of the Backend.
	ModifiedTime pulumi.StringInput `pulumi:"modifiedTime"`
}

func (GetBackendsBackendArgs) ElementType added in v3.28.0

func (GetBackendsBackendArgs) ElementType() reflect.Type

func (GetBackendsBackendArgs) ToGetBackendsBackendOutput added in v3.28.0

func (i GetBackendsBackendArgs) ToGetBackendsBackendOutput() GetBackendsBackendOutput

func (GetBackendsBackendArgs) ToGetBackendsBackendOutputWithContext added in v3.28.0

func (i GetBackendsBackendArgs) ToGetBackendsBackendOutputWithContext(ctx context.Context) GetBackendsBackendOutput

type GetBackendsBackendArray added in v3.28.0

type GetBackendsBackendArray []GetBackendsBackendInput

func (GetBackendsBackendArray) ElementType added in v3.28.0

func (GetBackendsBackendArray) ElementType() reflect.Type

func (GetBackendsBackendArray) ToGetBackendsBackendArrayOutput added in v3.28.0

func (i GetBackendsBackendArray) ToGetBackendsBackendArrayOutput() GetBackendsBackendArrayOutput

func (GetBackendsBackendArray) ToGetBackendsBackendArrayOutputWithContext added in v3.28.0

func (i GetBackendsBackendArray) ToGetBackendsBackendArrayOutputWithContext(ctx context.Context) GetBackendsBackendArrayOutput

type GetBackendsBackendArrayInput added in v3.28.0

type GetBackendsBackendArrayInput interface {
	pulumi.Input

	ToGetBackendsBackendArrayOutput() GetBackendsBackendArrayOutput
	ToGetBackendsBackendArrayOutputWithContext(context.Context) GetBackendsBackendArrayOutput
}

GetBackendsBackendArrayInput is an input type that accepts GetBackendsBackendArray and GetBackendsBackendArrayOutput values. You can construct a concrete instance of `GetBackendsBackendArrayInput` via:

GetBackendsBackendArray{ GetBackendsBackendArgs{...} }

type GetBackendsBackendArrayOutput added in v3.28.0

type GetBackendsBackendArrayOutput struct{ *pulumi.OutputState }

func (GetBackendsBackendArrayOutput) ElementType added in v3.28.0

func (GetBackendsBackendArrayOutput) Index added in v3.28.0

func (GetBackendsBackendArrayOutput) ToGetBackendsBackendArrayOutput added in v3.28.0

func (o GetBackendsBackendArrayOutput) ToGetBackendsBackendArrayOutput() GetBackendsBackendArrayOutput

func (GetBackendsBackendArrayOutput) ToGetBackendsBackendArrayOutputWithContext added in v3.28.0

func (o GetBackendsBackendArrayOutput) ToGetBackendsBackendArrayOutputWithContext(ctx context.Context) GetBackendsBackendArrayOutput

type GetBackendsBackendInput added in v3.28.0

type GetBackendsBackendInput interface {
	pulumi.Input

	ToGetBackendsBackendOutput() GetBackendsBackendOutput
	ToGetBackendsBackendOutputWithContext(context.Context) GetBackendsBackendOutput
}

GetBackendsBackendInput is an input type that accepts GetBackendsBackendArgs and GetBackendsBackendOutput values. You can construct a concrete instance of `GetBackendsBackendInput` via:

GetBackendsBackendArgs{...}

type GetBackendsBackendOutput added in v3.28.0

type GetBackendsBackendOutput struct{ *pulumi.OutputState }

func (GetBackendsBackendOutput) BackendId added in v3.28.0

The id of the Backend.

func (GetBackendsBackendOutput) BackendName added in v3.28.0

The name of the Backend.

func (GetBackendsBackendOutput) BackendType added in v3.28.0

The type of the Backend.

func (GetBackendsBackendOutput) CreateTime added in v3.28.0

The created time of the Backend.

func (GetBackendsBackendOutput) Description added in v3.28.0

The description of the Backend.

func (GetBackendsBackendOutput) ElementType added in v3.28.0

func (GetBackendsBackendOutput) ElementType() reflect.Type

func (GetBackendsBackendOutput) Id added in v3.28.0

func (GetBackendsBackendOutput) ModifiedTime added in v3.28.0

func (o GetBackendsBackendOutput) ModifiedTime() pulumi.StringOutput

The modified time of the Backend.

func (GetBackendsBackendOutput) ToGetBackendsBackendOutput added in v3.28.0

func (o GetBackendsBackendOutput) ToGetBackendsBackendOutput() GetBackendsBackendOutput

func (GetBackendsBackendOutput) ToGetBackendsBackendOutputWithContext added in v3.28.0

func (o GetBackendsBackendOutput) ToGetBackendsBackendOutputWithContext(ctx context.Context) GetBackendsBackendOutput

type GetBackendsOutputArgs added in v3.28.0

type GetBackendsOutputArgs struct {
	// A list of Backends IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter Api Gateway Backends by name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
}

A collection of arguments for invoking getBackends.

func (GetBackendsOutputArgs) ElementType added in v3.28.0

func (GetBackendsOutputArgs) ElementType() reflect.Type

type GetBackendsResult added in v3.28.0

type GetBackendsResult struct {
	Backends []GetBackendsBackend `pulumi:"backends"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	PageNumber *int     `pulumi:"pageNumber"`
	PageSize   *int     `pulumi:"pageSize"`
}

A collection of values returned by getBackends.

func GetBackends added in v3.28.0

func GetBackends(ctx *pulumi.Context, args *GetBackendsArgs, opts ...pulumi.InvokeOption) (*GetBackendsResult, error)

This data source provides the Api Gateway Backends of the current Alibaba Cloud user.

> **NOTE:** Available in v1.181.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := apigateway.GetBackends(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayBackendId1", ids.Backends[0].Id)
		return nil
	})
}

```

type GetBackendsResultOutput added in v3.28.0

type GetBackendsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBackends.

func GetBackendsOutput added in v3.28.0

func GetBackendsOutput(ctx *pulumi.Context, args GetBackendsOutputArgs, opts ...pulumi.InvokeOption) GetBackendsResultOutput

func (GetBackendsResultOutput) Backends added in v3.28.0

func (GetBackendsResultOutput) ElementType added in v3.28.0

func (GetBackendsResultOutput) ElementType() reflect.Type

func (GetBackendsResultOutput) Id added in v3.28.0

The provider-assigned unique ID for this managed resource.

func (GetBackendsResultOutput) Ids added in v3.28.0

func (GetBackendsResultOutput) NameRegex added in v3.28.0

func (GetBackendsResultOutput) Names added in v3.28.0

func (GetBackendsResultOutput) OutputFile added in v3.28.0

func (GetBackendsResultOutput) PageNumber added in v3.28.0

func (GetBackendsResultOutput) PageSize added in v3.28.0

func (GetBackendsResultOutput) ToGetBackendsResultOutput added in v3.28.0

func (o GetBackendsResultOutput) ToGetBackendsResultOutput() GetBackendsResultOutput

func (GetBackendsResultOutput) ToGetBackendsResultOutputWithContext added in v3.28.0

func (o GetBackendsResultOutput) ToGetBackendsResultOutputWithContext(ctx context.Context) GetBackendsResultOutput

type GetGroupsArgs

type GetGroupsArgs struct {
	// A list of api group IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter api gateway groups by name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getGroups.

type GetGroupsGroup

type GetGroupsGroup struct {
	// Billing status.
	// - NORMAL: The API group is normal.
	// - LOCKED: Locked due to outstanding payment.
	BillingStatus string `pulumi:"billingStatus"`
	// Creation time (Greenwich mean time).
	CreatedTime string `pulumi:"createdTime"`
	// API group description.
	Description string `pulumi:"description"`
	// API group ID, which is generated by the system and globally unique.
	Id string `pulumi:"id"`
	// Locking in invalid state.
	// - NORMAL: The API group is normal.
	// - LOCKED: Locked due to illegality.
	IllegalStatus string `pulumi:"illegalStatus"`
	// Last modification time (Greenwich mean time).
	ModifiedTime string `pulumi:"modifiedTime"`
	// API group name.
	Name string `pulumi:"name"`
	// The ID of the region where the API group is located.
	RegionId string `pulumi:"regionId"`
	// Second-level domain name automatically assigned to the API group.
	SubDomain string `pulumi:"subDomain"`
	// Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.
	TrafficLimit int `pulumi:"trafficLimit"`
}

type GetGroupsGroupArgs

type GetGroupsGroupArgs struct {
	// Billing status.
	// - NORMAL: The API group is normal.
	// - LOCKED: Locked due to outstanding payment.
	BillingStatus pulumi.StringInput `pulumi:"billingStatus"`
	// Creation time (Greenwich mean time).
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// API group description.
	Description pulumi.StringInput `pulumi:"description"`
	// API group ID, which is generated by the system and globally unique.
	Id pulumi.StringInput `pulumi:"id"`
	// Locking in invalid state.
	// - NORMAL: The API group is normal.
	// - LOCKED: Locked due to illegality.
	IllegalStatus pulumi.StringInput `pulumi:"illegalStatus"`
	// Last modification time (Greenwich mean time).
	ModifiedTime pulumi.StringInput `pulumi:"modifiedTime"`
	// API group name.
	Name pulumi.StringInput `pulumi:"name"`
	// The ID of the region where the API group is located.
	RegionId pulumi.StringInput `pulumi:"regionId"`
	// Second-level domain name automatically assigned to the API group.
	SubDomain pulumi.StringInput `pulumi:"subDomain"`
	// Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.
	TrafficLimit pulumi.IntInput `pulumi:"trafficLimit"`
}

func (GetGroupsGroupArgs) ElementType

func (GetGroupsGroupArgs) ElementType() reflect.Type

func (GetGroupsGroupArgs) ToGetGroupsGroupOutput

func (i GetGroupsGroupArgs) ToGetGroupsGroupOutput() GetGroupsGroupOutput

func (GetGroupsGroupArgs) ToGetGroupsGroupOutputWithContext

func (i GetGroupsGroupArgs) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput

type GetGroupsGroupArray

type GetGroupsGroupArray []GetGroupsGroupInput

func (GetGroupsGroupArray) ElementType

func (GetGroupsGroupArray) ElementType() reflect.Type

func (GetGroupsGroupArray) ToGetGroupsGroupArrayOutput

func (i GetGroupsGroupArray) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput

func (GetGroupsGroupArray) ToGetGroupsGroupArrayOutputWithContext

func (i GetGroupsGroupArray) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput

type GetGroupsGroupArrayInput

type GetGroupsGroupArrayInput interface {
	pulumi.Input

	ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput
	ToGetGroupsGroupArrayOutputWithContext(context.Context) GetGroupsGroupArrayOutput
}

GetGroupsGroupArrayInput is an input type that accepts GetGroupsGroupArray and GetGroupsGroupArrayOutput values. You can construct a concrete instance of `GetGroupsGroupArrayInput` via:

GetGroupsGroupArray{ GetGroupsGroupArgs{...} }

type GetGroupsGroupArrayOutput

type GetGroupsGroupArrayOutput struct{ *pulumi.OutputState }

func (GetGroupsGroupArrayOutput) ElementType

func (GetGroupsGroupArrayOutput) ElementType() reflect.Type

func (GetGroupsGroupArrayOutput) Index

func (GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput

func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutput() GetGroupsGroupArrayOutput

func (GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext

func (o GetGroupsGroupArrayOutput) ToGetGroupsGroupArrayOutputWithContext(ctx context.Context) GetGroupsGroupArrayOutput

type GetGroupsGroupInput

type GetGroupsGroupInput interface {
	pulumi.Input

	ToGetGroupsGroupOutput() GetGroupsGroupOutput
	ToGetGroupsGroupOutputWithContext(context.Context) GetGroupsGroupOutput
}

GetGroupsGroupInput is an input type that accepts GetGroupsGroupArgs and GetGroupsGroupOutput values. You can construct a concrete instance of `GetGroupsGroupInput` via:

GetGroupsGroupArgs{...}

type GetGroupsGroupOutput

type GetGroupsGroupOutput struct{ *pulumi.OutputState }

func (GetGroupsGroupOutput) BillingStatus

func (o GetGroupsGroupOutput) BillingStatus() pulumi.StringOutput

Billing status. - NORMAL: The API group is normal. - LOCKED: Locked due to outstanding payment.

func (GetGroupsGroupOutput) CreatedTime

func (o GetGroupsGroupOutput) CreatedTime() pulumi.StringOutput

Creation time (Greenwich mean time).

func (GetGroupsGroupOutput) Description

func (o GetGroupsGroupOutput) Description() pulumi.StringOutput

API group description.

func (GetGroupsGroupOutput) ElementType

func (GetGroupsGroupOutput) ElementType() reflect.Type

func (GetGroupsGroupOutput) Id

API group ID, which is generated by the system and globally unique.

func (GetGroupsGroupOutput) IllegalStatus

func (o GetGroupsGroupOutput) IllegalStatus() pulumi.StringOutput

Locking in invalid state. - NORMAL: The API group is normal. - LOCKED: Locked due to illegality.

func (GetGroupsGroupOutput) ModifiedTime

func (o GetGroupsGroupOutput) ModifiedTime() pulumi.StringOutput

Last modification time (Greenwich mean time).

func (GetGroupsGroupOutput) Name

API group name.

func (GetGroupsGroupOutput) RegionId

The ID of the region where the API group is located.

func (GetGroupsGroupOutput) SubDomain

Second-level domain name automatically assigned to the API group.

func (GetGroupsGroupOutput) ToGetGroupsGroupOutput

func (o GetGroupsGroupOutput) ToGetGroupsGroupOutput() GetGroupsGroupOutput

func (GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext

func (o GetGroupsGroupOutput) ToGetGroupsGroupOutputWithContext(ctx context.Context) GetGroupsGroupOutput

func (GetGroupsGroupOutput) TrafficLimit

func (o GetGroupsGroupOutput) TrafficLimit() pulumi.IntOutput

Upper QPS limit of the API group; default value: 500, which can be increased by submitting an application.

type GetGroupsOutputArgs added in v3.9.0

type GetGroupsOutputArgs struct {
	// A list of api group IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter api gateway groups by name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getGroups.

func (GetGroupsOutputArgs) ElementType added in v3.9.0

func (GetGroupsOutputArgs) ElementType() reflect.Type

type GetGroupsResult

type GetGroupsResult struct {
	// A list of api groups. Each element contains the following attributes:
	Groups []GetGroupsGroup `pulumi:"groups"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of api group IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of api group names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getGroups.

func GetGroups

func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error)

This data source provides the api groups of the current Alibaba Cloud user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		dataApigatway, err := apigateway.GetGroups(ctx, &apigateway.GetGroupsArgs{
			OutputFile: pulumi.StringRef("outgroups"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstGroupId", dataApigatway.Groups[0].Id)
		return nil
	})
}

```

type GetGroupsResultOutput added in v3.9.0

type GetGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getGroups.

func GetGroupsOutput added in v3.9.0

func GetGroupsOutput(ctx *pulumi.Context, args GetGroupsOutputArgs, opts ...pulumi.InvokeOption) GetGroupsResultOutput

func (GetGroupsResultOutput) ElementType added in v3.9.0

func (GetGroupsResultOutput) ElementType() reflect.Type

func (GetGroupsResultOutput) Groups added in v3.9.0

A list of api groups. Each element contains the following attributes:

func (GetGroupsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetGroupsResultOutput) Ids added in v3.9.0

A list of api group IDs.

func (GetGroupsResultOutput) NameRegex added in v3.9.0

func (GetGroupsResultOutput) Names added in v3.9.0

A list of api group names.

func (GetGroupsResultOutput) OutputFile added in v3.9.0

func (GetGroupsResultOutput) ToGetGroupsResultOutput added in v3.9.0

func (o GetGroupsResultOutput) ToGetGroupsResultOutput() GetGroupsResultOutput

func (GetGroupsResultOutput) ToGetGroupsResultOutputWithContext added in v3.9.0

func (o GetGroupsResultOutput) ToGetGroupsResultOutputWithContext(ctx context.Context) GetGroupsResultOutput

type GetLogConfigsArgs added in v3.29.0

type GetLogConfigsArgs struct {
	// A list of Log Config IDs.
	Ids []string `pulumi:"ids"`
	// The type the of log.
	LogType *string `pulumi:"logType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getLogConfigs.

type GetLogConfigsConfig added in v3.29.0

type GetLogConfigsConfig struct {
	// The ID of the Log Config.
	Id string `pulumi:"id"`
	// The type the of log.
	LogType string `pulumi:"logType"`
	// The region ID of the Log Config.
	RegionId string `pulumi:"regionId"`
	// The name of the Log Store.
	SlsLogStore string `pulumi:"slsLogStore"`
	// The name of the Project.
	SlsProject string `pulumi:"slsProject"`
}

type GetLogConfigsConfigArgs added in v3.29.0

type GetLogConfigsConfigArgs struct {
	// The ID of the Log Config.
	Id pulumi.StringInput `pulumi:"id"`
	// The type the of log.
	LogType pulumi.StringInput `pulumi:"logType"`
	// The region ID of the Log Config.
	RegionId pulumi.StringInput `pulumi:"regionId"`
	// The name of the Log Store.
	SlsLogStore pulumi.StringInput `pulumi:"slsLogStore"`
	// The name of the Project.
	SlsProject pulumi.StringInput `pulumi:"slsProject"`
}

func (GetLogConfigsConfigArgs) ElementType added in v3.29.0

func (GetLogConfigsConfigArgs) ElementType() reflect.Type

func (GetLogConfigsConfigArgs) ToGetLogConfigsConfigOutput added in v3.29.0

func (i GetLogConfigsConfigArgs) ToGetLogConfigsConfigOutput() GetLogConfigsConfigOutput

func (GetLogConfigsConfigArgs) ToGetLogConfigsConfigOutputWithContext added in v3.29.0

func (i GetLogConfigsConfigArgs) ToGetLogConfigsConfigOutputWithContext(ctx context.Context) GetLogConfigsConfigOutput

type GetLogConfigsConfigArray added in v3.29.0

type GetLogConfigsConfigArray []GetLogConfigsConfigInput

func (GetLogConfigsConfigArray) ElementType added in v3.29.0

func (GetLogConfigsConfigArray) ElementType() reflect.Type

func (GetLogConfigsConfigArray) ToGetLogConfigsConfigArrayOutput added in v3.29.0

func (i GetLogConfigsConfigArray) ToGetLogConfigsConfigArrayOutput() GetLogConfigsConfigArrayOutput

func (GetLogConfigsConfigArray) ToGetLogConfigsConfigArrayOutputWithContext added in v3.29.0

func (i GetLogConfigsConfigArray) ToGetLogConfigsConfigArrayOutputWithContext(ctx context.Context) GetLogConfigsConfigArrayOutput

type GetLogConfigsConfigArrayInput added in v3.29.0

type GetLogConfigsConfigArrayInput interface {
	pulumi.Input

	ToGetLogConfigsConfigArrayOutput() GetLogConfigsConfigArrayOutput
	ToGetLogConfigsConfigArrayOutputWithContext(context.Context) GetLogConfigsConfigArrayOutput
}

GetLogConfigsConfigArrayInput is an input type that accepts GetLogConfigsConfigArray and GetLogConfigsConfigArrayOutput values. You can construct a concrete instance of `GetLogConfigsConfigArrayInput` via:

GetLogConfigsConfigArray{ GetLogConfigsConfigArgs{...} }

type GetLogConfigsConfigArrayOutput added in v3.29.0

type GetLogConfigsConfigArrayOutput struct{ *pulumi.OutputState }

func (GetLogConfigsConfigArrayOutput) ElementType added in v3.29.0

func (GetLogConfigsConfigArrayOutput) Index added in v3.29.0

func (GetLogConfigsConfigArrayOutput) ToGetLogConfigsConfigArrayOutput added in v3.29.0

func (o GetLogConfigsConfigArrayOutput) ToGetLogConfigsConfigArrayOutput() GetLogConfigsConfigArrayOutput

func (GetLogConfigsConfigArrayOutput) ToGetLogConfigsConfigArrayOutputWithContext added in v3.29.0

func (o GetLogConfigsConfigArrayOutput) ToGetLogConfigsConfigArrayOutputWithContext(ctx context.Context) GetLogConfigsConfigArrayOutput

type GetLogConfigsConfigInput added in v3.29.0

type GetLogConfigsConfigInput interface {
	pulumi.Input

	ToGetLogConfigsConfigOutput() GetLogConfigsConfigOutput
	ToGetLogConfigsConfigOutputWithContext(context.Context) GetLogConfigsConfigOutput
}

GetLogConfigsConfigInput is an input type that accepts GetLogConfigsConfigArgs and GetLogConfigsConfigOutput values. You can construct a concrete instance of `GetLogConfigsConfigInput` via:

GetLogConfigsConfigArgs{...}

type GetLogConfigsConfigOutput added in v3.29.0

type GetLogConfigsConfigOutput struct{ *pulumi.OutputState }

func (GetLogConfigsConfigOutput) ElementType added in v3.29.0

func (GetLogConfigsConfigOutput) ElementType() reflect.Type

func (GetLogConfigsConfigOutput) Id added in v3.29.0

The ID of the Log Config.

func (GetLogConfigsConfigOutput) LogType added in v3.29.0

The type the of log.

func (GetLogConfigsConfigOutput) RegionId added in v3.29.0

The region ID of the Log Config.

func (GetLogConfigsConfigOutput) SlsLogStore added in v3.29.0

The name of the Log Store.

func (GetLogConfigsConfigOutput) SlsProject added in v3.29.0

The name of the Project.

func (GetLogConfigsConfigOutput) ToGetLogConfigsConfigOutput added in v3.29.0

func (o GetLogConfigsConfigOutput) ToGetLogConfigsConfigOutput() GetLogConfigsConfigOutput

func (GetLogConfigsConfigOutput) ToGetLogConfigsConfigOutputWithContext added in v3.29.0

func (o GetLogConfigsConfigOutput) ToGetLogConfigsConfigOutputWithContext(ctx context.Context) GetLogConfigsConfigOutput

type GetLogConfigsOutputArgs added in v3.29.0

type GetLogConfigsOutputArgs struct {
	// A list of Log Config IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The type the of log.
	LogType pulumi.StringPtrInput `pulumi:"logType"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getLogConfigs.

func (GetLogConfigsOutputArgs) ElementType added in v3.29.0

func (GetLogConfigsOutputArgs) ElementType() reflect.Type

type GetLogConfigsResult added in v3.29.0

type GetLogConfigsResult struct {
	Configs []GetLogConfigsConfig `pulumi:"configs"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	LogType    *string  `pulumi:"logType"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getLogConfigs.

func GetLogConfigs added in v3.29.0

func GetLogConfigs(ctx *pulumi.Context, args *GetLogConfigsArgs, opts ...pulumi.InvokeOption) (*GetLogConfigsResult, error)

This data source provides the Api Gateway Log Configs of the current Alibaba Cloud user.

> **NOTE:** Available in v1.185.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := apigateway.GetLogConfigs(ctx, &apigateway.GetLogConfigsArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayLogConfigId1", ids.Configs[0].Id)
		logType, err := apigateway.GetLogConfigs(ctx, &apigateway.GetLogConfigsArgs{
			LogType: pulumi.StringRef("PROVIDER"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayLogConfigId2", logType.Configs[0].Id)
		return nil
	})
}

```

type GetLogConfigsResultOutput added in v3.29.0

type GetLogConfigsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLogConfigs.

func GetLogConfigsOutput added in v3.29.0

func GetLogConfigsOutput(ctx *pulumi.Context, args GetLogConfigsOutputArgs, opts ...pulumi.InvokeOption) GetLogConfigsResultOutput

func (GetLogConfigsResultOutput) Configs added in v3.29.0

func (GetLogConfigsResultOutput) ElementType added in v3.29.0

func (GetLogConfigsResultOutput) ElementType() reflect.Type

func (GetLogConfigsResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetLogConfigsResultOutput) Ids added in v3.29.0

func (GetLogConfigsResultOutput) LogType added in v3.29.0

func (GetLogConfigsResultOutput) OutputFile added in v3.29.0

func (GetLogConfigsResultOutput) ToGetLogConfigsResultOutput added in v3.29.0

func (o GetLogConfigsResultOutput) ToGetLogConfigsResultOutput() GetLogConfigsResultOutput

func (GetLogConfigsResultOutput) ToGetLogConfigsResultOutputWithContext added in v3.29.0

func (o GetLogConfigsResultOutput) ToGetLogConfigsResultOutputWithContext(ctx context.Context) GetLogConfigsResultOutput

type GetModelsArgs added in v3.29.0

type GetModelsArgs struct {
	// The ID of the api group.
	GroupId string `pulumi:"groupId"`
	// A list of Model IDs.
	Ids []string `pulumi:"ids"`
	// The name of the Model.
	ModelName *string `pulumi:"modelName"`
	// A regex string to filter results by Model name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
}

A collection of arguments for invoking getModels.

type GetModelsModel added in v3.29.0

type GetModelsModel struct {
	// The creation time of the model.
	CreateTime string `pulumi:"createTime"`
	// The description of the model.
	Description string `pulumi:"description"`
	// The ID of the api group.
	GroupId string `pulumi:"groupId"`
	// The ID of the Api Gateway Model.
	Id string `pulumi:"id"`
	// The id of the model.
	ModelId string `pulumi:"modelId"`
	// The name of the Model.
	ModelName string `pulumi:"modelName"`
	// The reference of the model.
	ModelRef string `pulumi:"modelRef"`
	// The modified time of the model.
	ModifiedTime string `pulumi:"modifiedTime"`
	// The schema of the model.
	Schema string `pulumi:"schema"`
}

type GetModelsModelArgs added in v3.29.0

type GetModelsModelArgs struct {
	// The creation time of the model.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the model.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the api group.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// The ID of the Api Gateway Model.
	Id pulumi.StringInput `pulumi:"id"`
	// The id of the model.
	ModelId pulumi.StringInput `pulumi:"modelId"`
	// The name of the Model.
	ModelName pulumi.StringInput `pulumi:"modelName"`
	// The reference of the model.
	ModelRef pulumi.StringInput `pulumi:"modelRef"`
	// The modified time of the model.
	ModifiedTime pulumi.StringInput `pulumi:"modifiedTime"`
	// The schema of the model.
	Schema pulumi.StringInput `pulumi:"schema"`
}

func (GetModelsModelArgs) ElementType added in v3.29.0

func (GetModelsModelArgs) ElementType() reflect.Type

func (GetModelsModelArgs) ToGetModelsModelOutput added in v3.29.0

func (i GetModelsModelArgs) ToGetModelsModelOutput() GetModelsModelOutput

func (GetModelsModelArgs) ToGetModelsModelOutputWithContext added in v3.29.0

func (i GetModelsModelArgs) ToGetModelsModelOutputWithContext(ctx context.Context) GetModelsModelOutput

type GetModelsModelArray added in v3.29.0

type GetModelsModelArray []GetModelsModelInput

func (GetModelsModelArray) ElementType added in v3.29.0

func (GetModelsModelArray) ElementType() reflect.Type

func (GetModelsModelArray) ToGetModelsModelArrayOutput added in v3.29.0

func (i GetModelsModelArray) ToGetModelsModelArrayOutput() GetModelsModelArrayOutput

func (GetModelsModelArray) ToGetModelsModelArrayOutputWithContext added in v3.29.0

func (i GetModelsModelArray) ToGetModelsModelArrayOutputWithContext(ctx context.Context) GetModelsModelArrayOutput

type GetModelsModelArrayInput added in v3.29.0

type GetModelsModelArrayInput interface {
	pulumi.Input

	ToGetModelsModelArrayOutput() GetModelsModelArrayOutput
	ToGetModelsModelArrayOutputWithContext(context.Context) GetModelsModelArrayOutput
}

GetModelsModelArrayInput is an input type that accepts GetModelsModelArray and GetModelsModelArrayOutput values. You can construct a concrete instance of `GetModelsModelArrayInput` via:

GetModelsModelArray{ GetModelsModelArgs{...} }

type GetModelsModelArrayOutput added in v3.29.0

type GetModelsModelArrayOutput struct{ *pulumi.OutputState }

func (GetModelsModelArrayOutput) ElementType added in v3.29.0

func (GetModelsModelArrayOutput) ElementType() reflect.Type

func (GetModelsModelArrayOutput) Index added in v3.29.0

func (GetModelsModelArrayOutput) ToGetModelsModelArrayOutput added in v3.29.0

func (o GetModelsModelArrayOutput) ToGetModelsModelArrayOutput() GetModelsModelArrayOutput

func (GetModelsModelArrayOutput) ToGetModelsModelArrayOutputWithContext added in v3.29.0

func (o GetModelsModelArrayOutput) ToGetModelsModelArrayOutputWithContext(ctx context.Context) GetModelsModelArrayOutput

type GetModelsModelInput added in v3.29.0

type GetModelsModelInput interface {
	pulumi.Input

	ToGetModelsModelOutput() GetModelsModelOutput
	ToGetModelsModelOutputWithContext(context.Context) GetModelsModelOutput
}

GetModelsModelInput is an input type that accepts GetModelsModelArgs and GetModelsModelOutput values. You can construct a concrete instance of `GetModelsModelInput` via:

GetModelsModelArgs{...}

type GetModelsModelOutput added in v3.29.0

type GetModelsModelOutput struct{ *pulumi.OutputState }

func (GetModelsModelOutput) CreateTime added in v3.29.0

func (o GetModelsModelOutput) CreateTime() pulumi.StringOutput

The creation time of the model.

func (GetModelsModelOutput) Description added in v3.29.0

func (o GetModelsModelOutput) Description() pulumi.StringOutput

The description of the model.

func (GetModelsModelOutput) ElementType added in v3.29.0

func (GetModelsModelOutput) ElementType() reflect.Type

func (GetModelsModelOutput) GroupId added in v3.29.0

The ID of the api group.

func (GetModelsModelOutput) Id added in v3.29.0

The ID of the Api Gateway Model.

func (GetModelsModelOutput) ModelId added in v3.29.0

The id of the model.

func (GetModelsModelOutput) ModelName added in v3.29.0

The name of the Model.

func (GetModelsModelOutput) ModelRef added in v3.29.0

The reference of the model.

func (GetModelsModelOutput) ModifiedTime added in v3.29.0

func (o GetModelsModelOutput) ModifiedTime() pulumi.StringOutput

The modified time of the model.

func (GetModelsModelOutput) Schema added in v3.29.0

The schema of the model.

func (GetModelsModelOutput) ToGetModelsModelOutput added in v3.29.0

func (o GetModelsModelOutput) ToGetModelsModelOutput() GetModelsModelOutput

func (GetModelsModelOutput) ToGetModelsModelOutputWithContext added in v3.29.0

func (o GetModelsModelOutput) ToGetModelsModelOutputWithContext(ctx context.Context) GetModelsModelOutput

type GetModelsOutputArgs added in v3.29.0

type GetModelsOutputArgs struct {
	// The ID of the api group.
	GroupId pulumi.StringInput `pulumi:"groupId"`
	// A list of Model IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The name of the Model.
	ModelName pulumi.StringPtrInput `pulumi:"modelName"`
	// A regex string to filter results by Model name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
}

A collection of arguments for invoking getModels.

func (GetModelsOutputArgs) ElementType added in v3.29.0

func (GetModelsOutputArgs) ElementType() reflect.Type

type GetModelsResult added in v3.29.0

type GetModelsResult struct {
	// The group of the model belongs to.
	GroupId string `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// The name of the Model.
	ModelName *string `pulumi:"modelName"`
	// A list of Api Gateway Models. Each element contains the following attributes:
	Models    []GetModelsModel `pulumi:"models"`
	NameRegex *string          `pulumi:"nameRegex"`
	// A list of Model names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	PageNumber *int     `pulumi:"pageNumber"`
	PageSize   *int     `pulumi:"pageSize"`
}

A collection of values returned by getModels.

func GetModels added in v3.29.0

func GetModels(ctx *pulumi.Context, args *GetModelsArgs, opts ...pulumi.InvokeOption) (*GetModelsResult, error)

This data source provides the Api Gateway Models of the current Alibaba Cloud user.

> **NOTE:** Available in v1.187.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := apigateway.GetModels(ctx, &apigateway.GetModelsArgs{
			Ids: []string{
				"example_id",
			},
			GroupId: "example_group_id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayModelId1", ids.Models[0].Id)
		groupId, err := apigateway.GetModels(ctx, &apigateway.GetModelsArgs{
			GroupId: "example_group_id",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayModelId2", groupId.Models[0].Id)
		return nil
	})
}

```

type GetModelsResultOutput added in v3.29.0

type GetModelsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getModels.

func GetModelsOutput added in v3.29.0

func GetModelsOutput(ctx *pulumi.Context, args GetModelsOutputArgs, opts ...pulumi.InvokeOption) GetModelsResultOutput

func (GetModelsResultOutput) ElementType added in v3.29.0

func (GetModelsResultOutput) ElementType() reflect.Type

func (GetModelsResultOutput) GroupId added in v3.29.0

The group of the model belongs to.

func (GetModelsResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetModelsResultOutput) Ids added in v3.29.0

func (GetModelsResultOutput) ModelName added in v3.29.0

The name of the Model.

func (GetModelsResultOutput) Models added in v3.29.0

A list of Api Gateway Models. Each element contains the following attributes:

func (GetModelsResultOutput) NameRegex added in v3.29.0

func (GetModelsResultOutput) Names added in v3.29.0

A list of Model names.

func (GetModelsResultOutput) OutputFile added in v3.29.0

func (GetModelsResultOutput) PageNumber added in v3.29.0

func (o GetModelsResultOutput) PageNumber() pulumi.IntPtrOutput

func (GetModelsResultOutput) PageSize added in v3.29.0

func (GetModelsResultOutput) ToGetModelsResultOutput added in v3.29.0

func (o GetModelsResultOutput) ToGetModelsResultOutput() GetModelsResultOutput

func (GetModelsResultOutput) ToGetModelsResultOutputWithContext added in v3.29.0

func (o GetModelsResultOutput) ToGetModelsResultOutputWithContext(ctx context.Context) GetModelsResultOutput

type GetPluginsArgs added in v3.29.0

type GetPluginsArgs struct {
	// A list of Plugin IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Plugin name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The name of the plug-in that you want to create.
	PluginName *string `pulumi:"pluginName"`
	// The type of the plug-in.
	PluginType *string `pulumi:"pluginType"`
	// The tag of the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getPlugins.

type GetPluginsOutputArgs added in v3.29.0

type GetPluginsOutputArgs struct {
	// A list of Plugin IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Plugin name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The name of the plug-in that you want to create.
	PluginName pulumi.StringPtrInput `pulumi:"pluginName"`
	// The type of the plug-in.
	PluginType pulumi.StringPtrInput `pulumi:"pluginType"`
	// The tag of the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
}

A collection of arguments for invoking getPlugins.

func (GetPluginsOutputArgs) ElementType added in v3.29.0

func (GetPluginsOutputArgs) ElementType() reflect.Type

type GetPluginsPlugin added in v3.29.0

type GetPluginsPlugin struct {
	// The CreateTime of the resource.
	CreateTime string `pulumi:"createTime"`
	// The description of the plug-in, which cannot exceed 200 characters.
	Description string `pulumi:"description"`
	// The ID of the Plugin.
	Id string `pulumi:"id"`
	// The ModifiedTime of the resource.
	ModifiedTime string `pulumi:"modifiedTime"`
	// The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.
	PluginData string `pulumi:"pluginData"`
	// The first ID of the resource.
	PluginId string `pulumi:"pluginId"`
	// The name of the plug-in that you want to create.
	PluginName string `pulumi:"pluginName"`
	// The type of the plug-in.
	PluginType string `pulumi:"pluginType"`
	// The tag of the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

type GetPluginsPluginArgs added in v3.29.0

type GetPluginsPluginArgs struct {
	// The CreateTime of the resource.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the plug-in, which cannot exceed 200 characters.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Plugin.
	Id pulumi.StringInput `pulumi:"id"`
	// The ModifiedTime of the resource.
	ModifiedTime pulumi.StringInput `pulumi:"modifiedTime"`
	// The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.
	PluginData pulumi.StringInput `pulumi:"pluginData"`
	// The first ID of the resource.
	PluginId pulumi.StringInput `pulumi:"pluginId"`
	// The name of the plug-in that you want to create.
	PluginName pulumi.StringInput `pulumi:"pluginName"`
	// The type of the plug-in.
	PluginType pulumi.StringInput `pulumi:"pluginType"`
	// The tag of the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
}

func (GetPluginsPluginArgs) ElementType added in v3.29.0

func (GetPluginsPluginArgs) ElementType() reflect.Type

func (GetPluginsPluginArgs) ToGetPluginsPluginOutput added in v3.29.0

func (i GetPluginsPluginArgs) ToGetPluginsPluginOutput() GetPluginsPluginOutput

func (GetPluginsPluginArgs) ToGetPluginsPluginOutputWithContext added in v3.29.0

func (i GetPluginsPluginArgs) ToGetPluginsPluginOutputWithContext(ctx context.Context) GetPluginsPluginOutput

type GetPluginsPluginArray added in v3.29.0

type GetPluginsPluginArray []GetPluginsPluginInput

func (GetPluginsPluginArray) ElementType added in v3.29.0

func (GetPluginsPluginArray) ElementType() reflect.Type

func (GetPluginsPluginArray) ToGetPluginsPluginArrayOutput added in v3.29.0

func (i GetPluginsPluginArray) ToGetPluginsPluginArrayOutput() GetPluginsPluginArrayOutput

func (GetPluginsPluginArray) ToGetPluginsPluginArrayOutputWithContext added in v3.29.0

func (i GetPluginsPluginArray) ToGetPluginsPluginArrayOutputWithContext(ctx context.Context) GetPluginsPluginArrayOutput

type GetPluginsPluginArrayInput added in v3.29.0

type GetPluginsPluginArrayInput interface {
	pulumi.Input

	ToGetPluginsPluginArrayOutput() GetPluginsPluginArrayOutput
	ToGetPluginsPluginArrayOutputWithContext(context.Context) GetPluginsPluginArrayOutput
}

GetPluginsPluginArrayInput is an input type that accepts GetPluginsPluginArray and GetPluginsPluginArrayOutput values. You can construct a concrete instance of `GetPluginsPluginArrayInput` via:

GetPluginsPluginArray{ GetPluginsPluginArgs{...} }

type GetPluginsPluginArrayOutput added in v3.29.0

type GetPluginsPluginArrayOutput struct{ *pulumi.OutputState }

func (GetPluginsPluginArrayOutput) ElementType added in v3.29.0

func (GetPluginsPluginArrayOutput) Index added in v3.29.0

func (GetPluginsPluginArrayOutput) ToGetPluginsPluginArrayOutput added in v3.29.0

func (o GetPluginsPluginArrayOutput) ToGetPluginsPluginArrayOutput() GetPluginsPluginArrayOutput

func (GetPluginsPluginArrayOutput) ToGetPluginsPluginArrayOutputWithContext added in v3.29.0

func (o GetPluginsPluginArrayOutput) ToGetPluginsPluginArrayOutputWithContext(ctx context.Context) GetPluginsPluginArrayOutput

type GetPluginsPluginInput added in v3.29.0

type GetPluginsPluginInput interface {
	pulumi.Input

	ToGetPluginsPluginOutput() GetPluginsPluginOutput
	ToGetPluginsPluginOutputWithContext(context.Context) GetPluginsPluginOutput
}

GetPluginsPluginInput is an input type that accepts GetPluginsPluginArgs and GetPluginsPluginOutput values. You can construct a concrete instance of `GetPluginsPluginInput` via:

GetPluginsPluginArgs{...}

type GetPluginsPluginOutput added in v3.29.0

type GetPluginsPluginOutput struct{ *pulumi.OutputState }

func (GetPluginsPluginOutput) CreateTime added in v3.29.0

The CreateTime of the resource.

func (GetPluginsPluginOutput) Description added in v3.29.0

func (o GetPluginsPluginOutput) Description() pulumi.StringOutput

The description of the plug-in, which cannot exceed 200 characters.

func (GetPluginsPluginOutput) ElementType added in v3.29.0

func (GetPluginsPluginOutput) ElementType() reflect.Type

func (GetPluginsPluginOutput) Id added in v3.29.0

The ID of the Plugin.

func (GetPluginsPluginOutput) ModifiedTime added in v3.29.0

func (o GetPluginsPluginOutput) ModifiedTime() pulumi.StringOutput

The ModifiedTime of the resource.

func (GetPluginsPluginOutput) PluginData added in v3.29.0

The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.

func (GetPluginsPluginOutput) PluginId added in v3.29.0

The first ID of the resource.

func (GetPluginsPluginOutput) PluginName added in v3.29.0

The name of the plug-in that you want to create.

func (GetPluginsPluginOutput) PluginType added in v3.29.0

The type of the plug-in.

func (GetPluginsPluginOutput) Tags added in v3.29.0

The tag of the resource.

func (GetPluginsPluginOutput) ToGetPluginsPluginOutput added in v3.29.0

func (o GetPluginsPluginOutput) ToGetPluginsPluginOutput() GetPluginsPluginOutput

func (GetPluginsPluginOutput) ToGetPluginsPluginOutputWithContext added in v3.29.0

func (o GetPluginsPluginOutput) ToGetPluginsPluginOutputWithContext(ctx context.Context) GetPluginsPluginOutput

type GetPluginsResult added in v3.29.0

type GetPluginsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	NameRegex  *string                `pulumi:"nameRegex"`
	Names      []string               `pulumi:"names"`
	OutputFile *string                `pulumi:"outputFile"`
	PageNumber *int                   `pulumi:"pageNumber"`
	PageSize   *int                   `pulumi:"pageSize"`
	PluginName *string                `pulumi:"pluginName"`
	PluginType *string                `pulumi:"pluginType"`
	Plugins    []GetPluginsPlugin     `pulumi:"plugins"`
	Tags       map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getPlugins.

func GetPlugins added in v3.29.0

func GetPlugins(ctx *pulumi.Context, args *GetPluginsArgs, opts ...pulumi.InvokeOption) (*GetPluginsResult, error)

This data source provides the Api Gateway Plugins of the current Alibaba Cloud user.

> **NOTE:** Available in v1.187.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := apigateway.GetPlugins(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayPluginId1", ids.Plugins[0].Id)
		nameRegex, err := apigateway.GetPlugins(ctx, &apigateway.GetPluginsArgs{
			NameRegex: pulumi.StringRef("^my-Plugin"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("apiGatewayPluginId2", nameRegex.Plugins[0].Id)
		return nil
	})
}

```

type GetPluginsResultOutput added in v3.29.0

type GetPluginsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPlugins.

func GetPluginsOutput added in v3.29.0

func GetPluginsOutput(ctx *pulumi.Context, args GetPluginsOutputArgs, opts ...pulumi.InvokeOption) GetPluginsResultOutput

func (GetPluginsResultOutput) ElementType added in v3.29.0

func (GetPluginsResultOutput) ElementType() reflect.Type

func (GetPluginsResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetPluginsResultOutput) Ids added in v3.29.0

func (GetPluginsResultOutput) NameRegex added in v3.29.0

func (GetPluginsResultOutput) Names added in v3.29.0

func (GetPluginsResultOutput) OutputFile added in v3.29.0

func (GetPluginsResultOutput) PageNumber added in v3.29.0

func (GetPluginsResultOutput) PageSize added in v3.29.0

func (GetPluginsResultOutput) PluginName added in v3.29.0

func (GetPluginsResultOutput) PluginType added in v3.29.0

func (GetPluginsResultOutput) Plugins added in v3.29.0

func (GetPluginsResultOutput) Tags added in v3.29.0

func (GetPluginsResultOutput) ToGetPluginsResultOutput added in v3.29.0

func (o GetPluginsResultOutput) ToGetPluginsResultOutput() GetPluginsResultOutput

func (GetPluginsResultOutput) ToGetPluginsResultOutputWithContext added in v3.29.0

func (o GetPluginsResultOutput) ToGetPluginsResultOutputWithContext(ctx context.Context) GetPluginsResultOutput

type GetServiceArgs

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	//
	// > **NOTE:** Setting `enable = "On"` to open the API gateway service that means you have read and agreed the [API Gateway Terms of Service](https://help.aliyun.com/document_detail/35391.html). The service can not closed once it is opened.
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getService.

type GetServiceOutputArgs added in v3.9.0

type GetServiceOutputArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	//
	// > **NOTE:** Setting `enable = "On"` to open the API gateway service that means you have read and agreed the [API Gateway Terms of Service](https://help.aliyun.com/document_detail/35391.html). The service can not closed once it is opened.
	Enable pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType added in v3.9.0

func (GetServiceOutputArgs) ElementType() reflect.Type

type GetServiceResult

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can enable API gateway service automatically. If the service has been enabled, it will return `Opened`.

For information about API Gateway and how to use it, see [What is API Gateway](https://www.alibabacloud.com/help/product/29462.htm).

> **NOTE:** Available in v1.96.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.GetService(ctx, &apigateway.GetServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetServiceResultOutput added in v3.9.0

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func GetServiceOutput added in v3.9.0

func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput

func (GetServiceResultOutput) ElementType added in v3.9.0

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable added in v3.9.0

func (GetServiceResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status added in v3.9.0

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput

type Group

type Group struct {
	pulumi.CustomResourceState

	// The description of the api gateway group. Defaults to null.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The id of the api gateway.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The name of the api gateway group. Defaults to null.
	Name pulumi.StringOutput `pulumi:"name"`
	// (Available in 1.69.0+)	Second-level domain name automatically assigned to the API group.
	SubDomain pulumi.StringOutput `pulumi:"subDomain"`
	// (Available in 1.69.0+)	Second-level VPC domain name automatically assigned to the API group.
	VpcDomain pulumi.StringOutput `pulumi:"vpcDomain"`
}

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.NewGroup(ctx, "default", &apigateway.GroupArgs{
			Name:        pulumi.String("tf_example"),
			Description: pulumi.String("tf_example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api gateway group can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/group:Group example "ab2351f2ce904edaa8d92a0510832b91" ```

func GetGroup

func GetGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)

GetGroup gets an existing Group resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewGroup

func NewGroup(ctx *pulumi.Context,
	name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)

NewGroup registers a new resource with the given unique name, arguments, and options.

func (*Group) ElementType

func (*Group) ElementType() reflect.Type

func (*Group) ToGroupOutput

func (i *Group) ToGroupOutput() GroupOutput

func (*Group) ToGroupOutputWithContext

func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupArgs

type GroupArgs struct {
	// The description of the api gateway group. Defaults to null.
	Description pulumi.StringPtrInput
	// The id of the api gateway.
	InstanceId pulumi.StringPtrInput
	// The name of the api gateway group. Defaults to null.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Group resource.

func (GroupArgs) ElementType

func (GroupArgs) ElementType() reflect.Type

type GroupArray

type GroupArray []GroupInput

func (GroupArray) ElementType

func (GroupArray) ElementType() reflect.Type

func (GroupArray) ToGroupArrayOutput

func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput

func (GroupArray) ToGroupArrayOutputWithContext

func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupArrayInput

type GroupArrayInput interface {
	pulumi.Input

	ToGroupArrayOutput() GroupArrayOutput
	ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput
}

GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:

GroupArray{ GroupArgs{...} }

type GroupArrayOutput

type GroupArrayOutput struct{ *pulumi.OutputState }

func (GroupArrayOutput) ElementType

func (GroupArrayOutput) ElementType() reflect.Type

func (GroupArrayOutput) Index

func (GroupArrayOutput) ToGroupArrayOutput

func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput

func (GroupArrayOutput) ToGroupArrayOutputWithContext

func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupInput

type GroupInput interface {
	pulumi.Input

	ToGroupOutput() GroupOutput
	ToGroupOutputWithContext(ctx context.Context) GroupOutput
}

type GroupMap

type GroupMap map[string]GroupInput

func (GroupMap) ElementType

func (GroupMap) ElementType() reflect.Type

func (GroupMap) ToGroupMapOutput

func (i GroupMap) ToGroupMapOutput() GroupMapOutput

func (GroupMap) ToGroupMapOutputWithContext

func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupMapInput

type GroupMapInput interface {
	pulumi.Input

	ToGroupMapOutput() GroupMapOutput
	ToGroupMapOutputWithContext(context.Context) GroupMapOutput
}

GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:

GroupMap{ "key": GroupArgs{...} }

type GroupMapOutput

type GroupMapOutput struct{ *pulumi.OutputState }

func (GroupMapOutput) ElementType

func (GroupMapOutput) ElementType() reflect.Type

func (GroupMapOutput) MapIndex

func (GroupMapOutput) ToGroupMapOutput

func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput

func (GroupMapOutput) ToGroupMapOutputWithContext

func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupOutput

type GroupOutput struct{ *pulumi.OutputState }

func (GroupOutput) Description added in v3.27.0

func (o GroupOutput) Description() pulumi.StringPtrOutput

The description of the api gateway group. Defaults to null.

func (GroupOutput) ElementType

func (GroupOutput) ElementType() reflect.Type

func (GroupOutput) InstanceId added in v3.27.0

func (o GroupOutput) InstanceId() pulumi.StringOutput

The id of the api gateway.

func (GroupOutput) Name added in v3.27.0

func (o GroupOutput) Name() pulumi.StringOutput

The name of the api gateway group. Defaults to null.

func (GroupOutput) SubDomain added in v3.27.0

func (o GroupOutput) SubDomain() pulumi.StringOutput

(Available in 1.69.0+) Second-level domain name automatically assigned to the API group.

func (GroupOutput) ToGroupOutput

func (o GroupOutput) ToGroupOutput() GroupOutput

func (GroupOutput) ToGroupOutputWithContext

func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput

func (GroupOutput) VpcDomain added in v3.27.0

func (o GroupOutput) VpcDomain() pulumi.StringOutput

(Available in 1.69.0+) Second-level VPC domain name automatically assigned to the API group.

type GroupState

type GroupState struct {
	// The description of the api gateway group. Defaults to null.
	Description pulumi.StringPtrInput
	// The id of the api gateway.
	InstanceId pulumi.StringPtrInput
	// The name of the api gateway group. Defaults to null.
	Name pulumi.StringPtrInput
	// (Available in 1.69.0+)	Second-level domain name automatically assigned to the API group.
	SubDomain pulumi.StringPtrInput
	// (Available in 1.69.0+)	Second-level VPC domain name automatically assigned to the API group.
	VpcDomain pulumi.StringPtrInput
}

func (GroupState) ElementType

func (GroupState) ElementType() reflect.Type

type Instance added in v3.50.0

type Instance struct {
	pulumi.CustomResourceState

	// Creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The time of the instance package. Valid values:
	// - PricingCycle is **Month**, indicating monthly payment. The value range is **1** to **9**.
	// - PricingCycle is **Year**, indicating annual payment. The value range is **1** to **3**.
	//
	// When the value of> ChargeType is **PrePaid**, this parameter is available and must be passed in.
	Duration pulumi.IntPtrOutput `pulumi:"duration"`
	// Does IPV6 Capability Support.
	EgressIpv6Enable pulumi.BoolPtrOutput `pulumi:"egressIpv6Enable"`
	// Https policy.
	HttpsPolicy pulumi.StringOutput `pulumi:"httpsPolicy"`
	// Instance name.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Instance type.
	InstanceSpec pulumi.StringOutput `pulumi:"instanceSpec"`
	// Instance type-normal: traditional exclusive instance.
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// The payment type of the resource.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The subscription instance is of the subscription year or month type. The value range is as follows:
	// - **year**: year
	// - **month**: month
	// > **NOTE:**  If the Payment type is PrePaid, this parameter is required.
	PricingCycle pulumi.StringPtrOutput `pulumi:"pricingCycle"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// Does ipv6 support.
	SupportIpv6 pulumi.BoolPtrOutput `pulumi:"supportIpv6"`
	// User's VpcID.
	UserVpcId pulumi.StringPtrOutput `pulumi:"userVpcId"`
	// Whether the slb of the Vpc supports.
	VpcSlbIntranetEnable pulumi.BoolPtrOutput `pulumi:"vpcSlbIntranetEnable"`
	// The zone where the instance is deployed.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a Api Gateway Instance resource.

For information about Api Gateway Instance and how to use it, see [What is Instance](https://www.alibabacloud.com/help/en/api-gateway/product-overview/dedicated-instances).

> **NOTE:** Available since v1.218.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := apigateway.NewInstance(ctx, "default", &apigateway.InstanceArgs{
			InstanceName: pulumi.String(name),
			InstanceSpec: pulumi.String("api.s1.small"),
			HttpsPolicy:  pulumi.String("HTTPS2_TLS1_0"),
			ZoneId:       pulumi.String("cn-hangzhou-MAZ6"),
			PaymentType:  pulumi.String("PayAsYouGo"),
			UserVpcId:    pulumi.String("1709116870"),
			InstanceType: pulumi.String("normal"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api Gateway Instance can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/instance:Instance example <id> ```

func GetInstance added in v3.50.0

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstance added in v3.50.0

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) ElementType added in v3.50.0

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput added in v3.50.0

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext added in v3.50.0

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs added in v3.50.0

type InstanceArgs struct {
	// The time of the instance package. Valid values:
	// - PricingCycle is **Month**, indicating monthly payment. The value range is **1** to **9**.
	// - PricingCycle is **Year**, indicating annual payment. The value range is **1** to **3**.
	//
	// When the value of> ChargeType is **PrePaid**, this parameter is available and must be passed in.
	Duration pulumi.IntPtrInput
	// Does IPV6 Capability Support.
	EgressIpv6Enable pulumi.BoolPtrInput
	// Https policy.
	HttpsPolicy pulumi.StringInput
	// Instance name.
	InstanceName pulumi.StringInput
	// Instance type.
	InstanceSpec pulumi.StringInput
	// Instance type-normal: traditional exclusive instance.
	InstanceType pulumi.StringPtrInput
	// The payment type of the resource.
	PaymentType pulumi.StringInput
	// The subscription instance is of the subscription year or month type. The value range is as follows:
	// - **year**: year
	// - **month**: month
	// > **NOTE:**  If the Payment type is PrePaid, this parameter is required.
	PricingCycle pulumi.StringPtrInput
	// Does ipv6 support.
	SupportIpv6 pulumi.BoolPtrInput
	// User's VpcID.
	UserVpcId pulumi.StringPtrInput
	// Whether the slb of the Vpc supports.
	VpcSlbIntranetEnable pulumi.BoolPtrInput
	// The zone where the instance is deployed.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType added in v3.50.0

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray added in v3.50.0

type InstanceArray []InstanceInput

func (InstanceArray) ElementType added in v3.50.0

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput added in v3.50.0

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext added in v3.50.0

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput added in v3.50.0

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput added in v3.50.0

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType added in v3.50.0

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index added in v3.50.0

func (InstanceArrayOutput) ToInstanceArrayOutput added in v3.50.0

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext added in v3.50.0

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceInput added in v3.50.0

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap added in v3.50.0

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType added in v3.50.0

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput added in v3.50.0

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext added in v3.50.0

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput added in v3.50.0

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput added in v3.50.0

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType added in v3.50.0

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex added in v3.50.0

func (InstanceMapOutput) ToInstanceMapOutput added in v3.50.0

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext added in v3.50.0

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput added in v3.50.0

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) CreateTime added in v3.50.0

func (o InstanceOutput) CreateTime() pulumi.StringOutput

Creation time.

func (InstanceOutput) Duration added in v3.50.0

func (o InstanceOutput) Duration() pulumi.IntPtrOutput

The time of the instance package. Valid values: - PricingCycle is **Month**, indicating monthly payment. The value range is **1** to **9**. - PricingCycle is **Year**, indicating annual payment. The value range is **1** to **3**.

When the value of> ChargeType is **PrePaid**, this parameter is available and must be passed in.

func (InstanceOutput) EgressIpv6Enable added in v3.50.0

func (o InstanceOutput) EgressIpv6Enable() pulumi.BoolPtrOutput

Does IPV6 Capability Support.

func (InstanceOutput) ElementType added in v3.50.0

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) HttpsPolicy added in v3.50.0

func (o InstanceOutput) HttpsPolicy() pulumi.StringOutput

Https policy.

func (InstanceOutput) InstanceName added in v3.50.0

func (o InstanceOutput) InstanceName() pulumi.StringOutput

Instance name.

func (InstanceOutput) InstanceSpec added in v3.50.0

func (o InstanceOutput) InstanceSpec() pulumi.StringOutput

Instance type.

func (InstanceOutput) InstanceType added in v3.50.0

func (o InstanceOutput) InstanceType() pulumi.StringOutput

Instance type-normal: traditional exclusive instance.

func (InstanceOutput) PaymentType added in v3.50.0

func (o InstanceOutput) PaymentType() pulumi.StringOutput

The payment type of the resource.

func (InstanceOutput) PricingCycle added in v3.50.0

func (o InstanceOutput) PricingCycle() pulumi.StringPtrOutput

The subscription instance is of the subscription year or month type. The value range is as follows: - **year**: year - **month**: month > **NOTE:** If the Payment type is PrePaid, this parameter is required.

func (InstanceOutput) Status added in v3.50.0

func (o InstanceOutput) Status() pulumi.StringOutput

The status of the resource.

func (InstanceOutput) SupportIpv6 added in v3.50.0

func (o InstanceOutput) SupportIpv6() pulumi.BoolPtrOutput

Does ipv6 support.

func (InstanceOutput) ToInstanceOutput added in v3.50.0

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext added in v3.50.0

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (InstanceOutput) UserVpcId added in v3.50.0

func (o InstanceOutput) UserVpcId() pulumi.StringPtrOutput

User's VpcID.

func (InstanceOutput) VpcSlbIntranetEnable added in v3.50.0

func (o InstanceOutput) VpcSlbIntranetEnable() pulumi.BoolPtrOutput

Whether the slb of the Vpc supports.

func (InstanceOutput) ZoneId added in v3.50.0

func (o InstanceOutput) ZoneId() pulumi.StringOutput

The zone where the instance is deployed.

type InstanceState added in v3.50.0

type InstanceState struct {
	// Creation time.
	CreateTime pulumi.StringPtrInput
	// The time of the instance package. Valid values:
	// - PricingCycle is **Month**, indicating monthly payment. The value range is **1** to **9**.
	// - PricingCycle is **Year**, indicating annual payment. The value range is **1** to **3**.
	//
	// When the value of> ChargeType is **PrePaid**, this parameter is available and must be passed in.
	Duration pulumi.IntPtrInput
	// Does IPV6 Capability Support.
	EgressIpv6Enable pulumi.BoolPtrInput
	// Https policy.
	HttpsPolicy pulumi.StringPtrInput
	// Instance name.
	InstanceName pulumi.StringPtrInput
	// Instance type.
	InstanceSpec pulumi.StringPtrInput
	// Instance type-normal: traditional exclusive instance.
	InstanceType pulumi.StringPtrInput
	// The payment type of the resource.
	PaymentType pulumi.StringPtrInput
	// The subscription instance is of the subscription year or month type. The value range is as follows:
	// - **year**: year
	// - **month**: month
	// > **NOTE:**  If the Payment type is PrePaid, this parameter is required.
	PricingCycle pulumi.StringPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// Does ipv6 support.
	SupportIpv6 pulumi.BoolPtrInput
	// User's VpcID.
	UserVpcId pulumi.StringPtrInput
	// Whether the slb of the Vpc supports.
	VpcSlbIntranetEnable pulumi.BoolPtrInput
	// The zone where the instance is deployed.
	ZoneId pulumi.StringPtrInput
}

func (InstanceState) ElementType added in v3.50.0

func (InstanceState) ElementType() reflect.Type

type LogConfig added in v3.29.0

type LogConfig struct {
	pulumi.CustomResourceState

	// The type the of log. Valid values: `PROVIDER`.
	LogType pulumi.StringOutput `pulumi:"logType"`
	// The name of the Log Store.
	SlsLogStore pulumi.StringOutput `pulumi:"slsLogStore"`
	// The name of the Project.
	SlsProject pulumi.StringOutput `pulumi:"slsProject"`
}

Provides a Api Gateway Log Config resource.

For information about Api Gateway Log Config and how to use it, see [What is Log Config](https://www.alibabacloud.com/help/en/api-gateway/latest/api-cloudapi-2016-07-14-createlogconfig).

> **NOTE:** Available since v1.185.0.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		example, err := log.NewProject(ctx, "example", &log.ProjectArgs{
			ProjectName: pulumi.String(fmt.Sprintf("%v-%v", name, _default.Result)),
			Description: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
			ProjectName:        example.ProjectName,
			LogstoreName:       pulumi.String(fmt.Sprintf("%v-%v", name, _default.Result)),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = apigateway.NewLogConfig(ctx, "example", &apigateway.LogConfigArgs{
			SlsProject:  example.ProjectName,
			SlsLogStore: exampleStore.LogstoreName,
			LogType:     pulumi.String("PROVIDER"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api Gateway Log Config can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/logConfig:LogConfig example <log_type> ```

func GetLogConfig added in v3.29.0

func GetLogConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LogConfigState, opts ...pulumi.ResourceOption) (*LogConfig, error)

GetLogConfig gets an existing LogConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLogConfig added in v3.29.0

func NewLogConfig(ctx *pulumi.Context,
	name string, args *LogConfigArgs, opts ...pulumi.ResourceOption) (*LogConfig, error)

NewLogConfig registers a new resource with the given unique name, arguments, and options.

func (*LogConfig) ElementType added in v3.29.0

func (*LogConfig) ElementType() reflect.Type

func (*LogConfig) ToLogConfigOutput added in v3.29.0

func (i *LogConfig) ToLogConfigOutput() LogConfigOutput

func (*LogConfig) ToLogConfigOutputWithContext added in v3.29.0

func (i *LogConfig) ToLogConfigOutputWithContext(ctx context.Context) LogConfigOutput

type LogConfigArgs added in v3.29.0

type LogConfigArgs struct {
	// The type the of log. Valid values: `PROVIDER`.
	LogType pulumi.StringInput
	// The name of the Log Store.
	SlsLogStore pulumi.StringInput
	// The name of the Project.
	SlsProject pulumi.StringInput
}

The set of arguments for constructing a LogConfig resource.

func (LogConfigArgs) ElementType added in v3.29.0

func (LogConfigArgs) ElementType() reflect.Type

type LogConfigArray added in v3.29.0

type LogConfigArray []LogConfigInput

func (LogConfigArray) ElementType added in v3.29.0

func (LogConfigArray) ElementType() reflect.Type

func (LogConfigArray) ToLogConfigArrayOutput added in v3.29.0

func (i LogConfigArray) ToLogConfigArrayOutput() LogConfigArrayOutput

func (LogConfigArray) ToLogConfigArrayOutputWithContext added in v3.29.0

func (i LogConfigArray) ToLogConfigArrayOutputWithContext(ctx context.Context) LogConfigArrayOutput

type LogConfigArrayInput added in v3.29.0

type LogConfigArrayInput interface {
	pulumi.Input

	ToLogConfigArrayOutput() LogConfigArrayOutput
	ToLogConfigArrayOutputWithContext(context.Context) LogConfigArrayOutput
}

LogConfigArrayInput is an input type that accepts LogConfigArray and LogConfigArrayOutput values. You can construct a concrete instance of `LogConfigArrayInput` via:

LogConfigArray{ LogConfigArgs{...} }

type LogConfigArrayOutput added in v3.29.0

type LogConfigArrayOutput struct{ *pulumi.OutputState }

func (LogConfigArrayOutput) ElementType added in v3.29.0

func (LogConfigArrayOutput) ElementType() reflect.Type

func (LogConfigArrayOutput) Index added in v3.29.0

func (LogConfigArrayOutput) ToLogConfigArrayOutput added in v3.29.0

func (o LogConfigArrayOutput) ToLogConfigArrayOutput() LogConfigArrayOutput

func (LogConfigArrayOutput) ToLogConfigArrayOutputWithContext added in v3.29.0

func (o LogConfigArrayOutput) ToLogConfigArrayOutputWithContext(ctx context.Context) LogConfigArrayOutput

type LogConfigInput added in v3.29.0

type LogConfigInput interface {
	pulumi.Input

	ToLogConfigOutput() LogConfigOutput
	ToLogConfigOutputWithContext(ctx context.Context) LogConfigOutput
}

type LogConfigMap added in v3.29.0

type LogConfigMap map[string]LogConfigInput

func (LogConfigMap) ElementType added in v3.29.0

func (LogConfigMap) ElementType() reflect.Type

func (LogConfigMap) ToLogConfigMapOutput added in v3.29.0

func (i LogConfigMap) ToLogConfigMapOutput() LogConfigMapOutput

func (LogConfigMap) ToLogConfigMapOutputWithContext added in v3.29.0

func (i LogConfigMap) ToLogConfigMapOutputWithContext(ctx context.Context) LogConfigMapOutput

type LogConfigMapInput added in v3.29.0

type LogConfigMapInput interface {
	pulumi.Input

	ToLogConfigMapOutput() LogConfigMapOutput
	ToLogConfigMapOutputWithContext(context.Context) LogConfigMapOutput
}

LogConfigMapInput is an input type that accepts LogConfigMap and LogConfigMapOutput values. You can construct a concrete instance of `LogConfigMapInput` via:

LogConfigMap{ "key": LogConfigArgs{...} }

type LogConfigMapOutput added in v3.29.0

type LogConfigMapOutput struct{ *pulumi.OutputState }

func (LogConfigMapOutput) ElementType added in v3.29.0

func (LogConfigMapOutput) ElementType() reflect.Type

func (LogConfigMapOutput) MapIndex added in v3.29.0

func (LogConfigMapOutput) ToLogConfigMapOutput added in v3.29.0

func (o LogConfigMapOutput) ToLogConfigMapOutput() LogConfigMapOutput

func (LogConfigMapOutput) ToLogConfigMapOutputWithContext added in v3.29.0

func (o LogConfigMapOutput) ToLogConfigMapOutputWithContext(ctx context.Context) LogConfigMapOutput

type LogConfigOutput added in v3.29.0

type LogConfigOutput struct{ *pulumi.OutputState }

func (LogConfigOutput) ElementType added in v3.29.0

func (LogConfigOutput) ElementType() reflect.Type

func (LogConfigOutput) LogType added in v3.29.0

func (o LogConfigOutput) LogType() pulumi.StringOutput

The type the of log. Valid values: `PROVIDER`.

func (LogConfigOutput) SlsLogStore added in v3.29.0

func (o LogConfigOutput) SlsLogStore() pulumi.StringOutput

The name of the Log Store.

func (LogConfigOutput) SlsProject added in v3.29.0

func (o LogConfigOutput) SlsProject() pulumi.StringOutput

The name of the Project.

func (LogConfigOutput) ToLogConfigOutput added in v3.29.0

func (o LogConfigOutput) ToLogConfigOutput() LogConfigOutput

func (LogConfigOutput) ToLogConfigOutputWithContext added in v3.29.0

func (o LogConfigOutput) ToLogConfigOutputWithContext(ctx context.Context) LogConfigOutput

type LogConfigState added in v3.29.0

type LogConfigState struct {
	// The type the of log. Valid values: `PROVIDER`.
	LogType pulumi.StringPtrInput
	// The name of the Log Store.
	SlsLogStore pulumi.StringPtrInput
	// The name of the Project.
	SlsProject pulumi.StringPtrInput
}

func (LogConfigState) ElementType added in v3.29.0

func (LogConfigState) ElementType() reflect.Type

type Model added in v3.29.0

type Model struct {
	pulumi.CustomResourceState

	// The description of the model.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The group of the model belongs to.
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// The name of the model.
	ModelName pulumi.StringOutput `pulumi:"modelName"`
	// The schema of the model.
	Schema pulumi.StringOutput `pulumi:"schema"`
}

Provides a Api Gateway Model resource.

For information about Api Gateway Model and how to use it, see [What is Model](https://www.alibabacloud.com/help/en/api-gateway/latest/api-cloudapi-2016-07-14-createmodel).

> **NOTE:** Available since v1.187.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.NewGroup(ctx, "default", &apigateway.GroupArgs{
			Name:        pulumi.String("example_value"),
			Description: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = apigateway.NewModel(ctx, "default", &apigateway.ModelArgs{
			GroupId:     _default.ID(),
			ModelName:   pulumi.String("example_value"),
			Schema:      pulumi.String("{\"type\":\"object\",\"properties\":{\"id\":{\"format\":\"int64\",\"maximum\":100,\"exclusiveMaximum\":true,\"type\":\"integer\"},\"name\":{\"maxLength\":10,\"type\":\"string\"}}}"),
			Description: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api Gateway Model can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/model:Model example <group_id>:<model_name> ```

func GetModel added in v3.29.0

func GetModel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ModelState, opts ...pulumi.ResourceOption) (*Model, error)

GetModel gets an existing Model resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewModel added in v3.29.0

func NewModel(ctx *pulumi.Context,
	name string, args *ModelArgs, opts ...pulumi.ResourceOption) (*Model, error)

NewModel registers a new resource with the given unique name, arguments, and options.

func (*Model) ElementType added in v3.29.0

func (*Model) ElementType() reflect.Type

func (*Model) ToModelOutput added in v3.29.0

func (i *Model) ToModelOutput() ModelOutput

func (*Model) ToModelOutputWithContext added in v3.29.0

func (i *Model) ToModelOutputWithContext(ctx context.Context) ModelOutput

type ModelArgs added in v3.29.0

type ModelArgs struct {
	// The description of the model.
	Description pulumi.StringPtrInput
	// The group of the model belongs to.
	GroupId pulumi.StringInput
	// The name of the model.
	ModelName pulumi.StringInput
	// The schema of the model.
	Schema pulumi.StringInput
}

The set of arguments for constructing a Model resource.

func (ModelArgs) ElementType added in v3.29.0

func (ModelArgs) ElementType() reflect.Type

type ModelArray added in v3.29.0

type ModelArray []ModelInput

func (ModelArray) ElementType added in v3.29.0

func (ModelArray) ElementType() reflect.Type

func (ModelArray) ToModelArrayOutput added in v3.29.0

func (i ModelArray) ToModelArrayOutput() ModelArrayOutput

func (ModelArray) ToModelArrayOutputWithContext added in v3.29.0

func (i ModelArray) ToModelArrayOutputWithContext(ctx context.Context) ModelArrayOutput

type ModelArrayInput added in v3.29.0

type ModelArrayInput interface {
	pulumi.Input

	ToModelArrayOutput() ModelArrayOutput
	ToModelArrayOutputWithContext(context.Context) ModelArrayOutput
}

ModelArrayInput is an input type that accepts ModelArray and ModelArrayOutput values. You can construct a concrete instance of `ModelArrayInput` via:

ModelArray{ ModelArgs{...} }

type ModelArrayOutput added in v3.29.0

type ModelArrayOutput struct{ *pulumi.OutputState }

func (ModelArrayOutput) ElementType added in v3.29.0

func (ModelArrayOutput) ElementType() reflect.Type

func (ModelArrayOutput) Index added in v3.29.0

func (ModelArrayOutput) ToModelArrayOutput added in v3.29.0

func (o ModelArrayOutput) ToModelArrayOutput() ModelArrayOutput

func (ModelArrayOutput) ToModelArrayOutputWithContext added in v3.29.0

func (o ModelArrayOutput) ToModelArrayOutputWithContext(ctx context.Context) ModelArrayOutput

type ModelInput added in v3.29.0

type ModelInput interface {
	pulumi.Input

	ToModelOutput() ModelOutput
	ToModelOutputWithContext(ctx context.Context) ModelOutput
}

type ModelMap added in v3.29.0

type ModelMap map[string]ModelInput

func (ModelMap) ElementType added in v3.29.0

func (ModelMap) ElementType() reflect.Type

func (ModelMap) ToModelMapOutput added in v3.29.0

func (i ModelMap) ToModelMapOutput() ModelMapOutput

func (ModelMap) ToModelMapOutputWithContext added in v3.29.0

func (i ModelMap) ToModelMapOutputWithContext(ctx context.Context) ModelMapOutput

type ModelMapInput added in v3.29.0

type ModelMapInput interface {
	pulumi.Input

	ToModelMapOutput() ModelMapOutput
	ToModelMapOutputWithContext(context.Context) ModelMapOutput
}

ModelMapInput is an input type that accepts ModelMap and ModelMapOutput values. You can construct a concrete instance of `ModelMapInput` via:

ModelMap{ "key": ModelArgs{...} }

type ModelMapOutput added in v3.29.0

type ModelMapOutput struct{ *pulumi.OutputState }

func (ModelMapOutput) ElementType added in v3.29.0

func (ModelMapOutput) ElementType() reflect.Type

func (ModelMapOutput) MapIndex added in v3.29.0

func (ModelMapOutput) ToModelMapOutput added in v3.29.0

func (o ModelMapOutput) ToModelMapOutput() ModelMapOutput

func (ModelMapOutput) ToModelMapOutputWithContext added in v3.29.0

func (o ModelMapOutput) ToModelMapOutputWithContext(ctx context.Context) ModelMapOutput

type ModelOutput added in v3.29.0

type ModelOutput struct{ *pulumi.OutputState }

func (ModelOutput) Description added in v3.29.0

func (o ModelOutput) Description() pulumi.StringPtrOutput

The description of the model.

func (ModelOutput) ElementType added in v3.29.0

func (ModelOutput) ElementType() reflect.Type

func (ModelOutput) GroupId added in v3.29.0

func (o ModelOutput) GroupId() pulumi.StringOutput

The group of the model belongs to.

func (ModelOutput) ModelName added in v3.29.0

func (o ModelOutput) ModelName() pulumi.StringOutput

The name of the model.

func (ModelOutput) Schema added in v3.29.0

func (o ModelOutput) Schema() pulumi.StringOutput

The schema of the model.

func (ModelOutput) ToModelOutput added in v3.29.0

func (o ModelOutput) ToModelOutput() ModelOutput

func (ModelOutput) ToModelOutputWithContext added in v3.29.0

func (o ModelOutput) ToModelOutputWithContext(ctx context.Context) ModelOutput

type ModelState added in v3.29.0

type ModelState struct {
	// The description of the model.
	Description pulumi.StringPtrInput
	// The group of the model belongs to.
	GroupId pulumi.StringPtrInput
	// The name of the model.
	ModelName pulumi.StringPtrInput
	// The schema of the model.
	Schema pulumi.StringPtrInput
}

func (ModelState) ElementType added in v3.29.0

func (ModelState) ElementType() reflect.Type

type Plugin added in v3.29.0

type Plugin struct {
	pulumi.CustomResourceState

	// The description of the plug-in, which cannot exceed 200 characters.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.
	PluginData pulumi.StringOutput `pulumi:"pluginData"`
	// The name of the plug-in that you want to create. It can contain uppercase English letters, lowercase English letters, Chinese characters, numbers, and underscores (_). It must be 4 to 50 characters in length and cannot start with an underscore (_).
	PluginName pulumi.StringOutput `pulumi:"pluginName"`
	// The type of the plug-in. Valid values: `backendSignature`, `caching`, `cors`, `ipControl`, `jwtAuth`, `trafficControl`.
	// - ipControl: indicates IP address-based access control.
	// - trafficControl: indicates throttling.
	// - backendSignature: indicates backend signature.
	// - jwtAuth: indicates JWT (OpenId Connect).
	// - cors: indicates cross-origin resource access (CORS).
	// - caching: indicates caching.
	PluginType pulumi.StringOutput `pulumi:"pluginType"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides a Api Gateway Plugin resource.

For information about Api Gateway Plugin and how to use it, see [What is Plugin](https://www.alibabacloud.com/help/en/api-gateway/developer-reference/api-cloudapi-2016-07-14-createplugin).

> **NOTE:** Available since v1.187.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.NewPlugin(ctx, "default", &apigateway.PluginArgs{
			Description: pulumi.String("tf_example"),
			PluginName:  pulumi.String("tf_example"),
			PluginData:  pulumi.String("{\"allowOrigins\": \"api.foo.com\",\"allowMethods\": \"GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH\",\"allowHeaders\": \"Authorization,Accept,Accept-Ranges,Cache-Control,Range,Date,Content-Type,Content-Length,Content-MD5,User-Agent,X-Ca-Signature,X-Ca-Signature-Headers,X-Ca-Signature-Method,X-Ca-Key,X-Ca-Timestamp,X-Ca-Nonce,X-Ca-Stage,X-Ca-Request-Mode,x-ca-deviceid\",\"exposeHeaders\": \"Content-MD5,Server,Date,Latency,X-Ca-Request-Id,X-Ca-Error-Code,X-Ca-Error-Message\",\"maxAge\": 172800,\"allowCredentials\": true}"),
			PluginType:  pulumi.String("cors"),
			Tags: pulumi.Map{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("example"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api Gateway Plugin can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/plugin:Plugin example <id> ```

func GetPlugin added in v3.29.0

func GetPlugin(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PluginState, opts ...pulumi.ResourceOption) (*Plugin, error)

GetPlugin gets an existing Plugin resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPlugin added in v3.29.0

func NewPlugin(ctx *pulumi.Context,
	name string, args *PluginArgs, opts ...pulumi.ResourceOption) (*Plugin, error)

NewPlugin registers a new resource with the given unique name, arguments, and options.

func (*Plugin) ElementType added in v3.29.0

func (*Plugin) ElementType() reflect.Type

func (*Plugin) ToPluginOutput added in v3.29.0

func (i *Plugin) ToPluginOutput() PluginOutput

func (*Plugin) ToPluginOutputWithContext added in v3.29.0

func (i *Plugin) ToPluginOutputWithContext(ctx context.Context) PluginOutput

type PluginArgs added in v3.29.0

type PluginArgs struct {
	// The description of the plug-in, which cannot exceed 200 characters.
	Description pulumi.StringPtrInput
	// The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.
	PluginData pulumi.StringInput
	// The name of the plug-in that you want to create. It can contain uppercase English letters, lowercase English letters, Chinese characters, numbers, and underscores (_). It must be 4 to 50 characters in length and cannot start with an underscore (_).
	PluginName pulumi.StringInput
	// The type of the plug-in. Valid values: `backendSignature`, `caching`, `cors`, `ipControl`, `jwtAuth`, `trafficControl`.
	// - ipControl: indicates IP address-based access control.
	// - trafficControl: indicates throttling.
	// - backendSignature: indicates backend signature.
	// - jwtAuth: indicates JWT (OpenId Connect).
	// - cors: indicates cross-origin resource access (CORS).
	// - caching: indicates caching.
	PluginType pulumi.StringInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Plugin resource.

func (PluginArgs) ElementType added in v3.29.0

func (PluginArgs) ElementType() reflect.Type

type PluginArray added in v3.29.0

type PluginArray []PluginInput

func (PluginArray) ElementType added in v3.29.0

func (PluginArray) ElementType() reflect.Type

func (PluginArray) ToPluginArrayOutput added in v3.29.0

func (i PluginArray) ToPluginArrayOutput() PluginArrayOutput

func (PluginArray) ToPluginArrayOutputWithContext added in v3.29.0

func (i PluginArray) ToPluginArrayOutputWithContext(ctx context.Context) PluginArrayOutput

type PluginArrayInput added in v3.29.0

type PluginArrayInput interface {
	pulumi.Input

	ToPluginArrayOutput() PluginArrayOutput
	ToPluginArrayOutputWithContext(context.Context) PluginArrayOutput
}

PluginArrayInput is an input type that accepts PluginArray and PluginArrayOutput values. You can construct a concrete instance of `PluginArrayInput` via:

PluginArray{ PluginArgs{...} }

type PluginArrayOutput added in v3.29.0

type PluginArrayOutput struct{ *pulumi.OutputState }

func (PluginArrayOutput) ElementType added in v3.29.0

func (PluginArrayOutput) ElementType() reflect.Type

func (PluginArrayOutput) Index added in v3.29.0

func (PluginArrayOutput) ToPluginArrayOutput added in v3.29.0

func (o PluginArrayOutput) ToPluginArrayOutput() PluginArrayOutput

func (PluginArrayOutput) ToPluginArrayOutputWithContext added in v3.29.0

func (o PluginArrayOutput) ToPluginArrayOutputWithContext(ctx context.Context) PluginArrayOutput

type PluginAttachment added in v3.51.0

type PluginAttachment struct {
	pulumi.CustomResourceState

	// The apiId that plugin attaches to.
	ApiId pulumi.StringOutput `pulumi:"apiId"`
	// The group that the api belongs to.
	GroupId pulumi.StringOutput `pulumi:"groupId"`
	// The plugin that attaches to the api.
	PluginId pulumi.StringOutput `pulumi:"pluginId"`
	// Stage that the plugin attaches to.
	StageName pulumi.StringOutput `pulumi:"stageName"`
}

## Example Usage

Basic Usage

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		example, err := apigateway.NewGroup(ctx, "example", &apigateway.GroupArgs{
			Name:        pulumi.String(name),
			Description: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		exampleApi, err := apigateway.NewApi(ctx, "example", &apigateway.ApiArgs{
			GroupId:         example.ID(),
			Name:            pulumi.String(name),
			Description:     pulumi.String(name),
			AuthType:        pulumi.String("APP"),
			ForceNonceCheck: pulumi.Bool(false),
			RequestConfig: &apigateway.ApiRequestConfigArgs{
				Protocol: pulumi.String("HTTP"),
				Method:   pulumi.String("GET"),
				Path:     pulumi.String("/example/path"),
				Mode:     pulumi.String("MAPPING"),
			},
			ServiceType: pulumi.String("HTTP"),
			HttpServiceConfig: &apigateway.ApiHttpServiceConfigArgs{
				Address:  pulumi.String("http://apigateway-backend.alicloudapi.com:8080"),
				Method:   pulumi.String("GET"),
				Path:     pulumi.String("/web/cloudapi"),
				Timeout:  pulumi.Int(12),
				AoneName: pulumi.String("cloudapi-openapi"),
			},
			RequestParameters: apigateway.ApiRequestParameterArray{
				&apigateway.ApiRequestParameterArgs{
					Name:        pulumi.String("example"),
					Type:        pulumi.String("STRING"),
					Required:    pulumi.String("OPTIONAL"),
					In:          pulumi.String("QUERY"),
					InService:   pulumi.String("QUERY"),
					NameService: pulumi.String("exampleservice"),
				},
			},
			StageNames: pulumi.StringArray{
				pulumi.String("RELEASE"),
				pulumi.String("TEST"),
			},
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"allowOrigins":     "api.foo.com",
			"allowMethods":     "GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH",
			"allowHeaders":     "Authorization,Accept,Accept-Ranges,Cache-Control,Range,Date,Content-Type,Content-Length,Content-MD5,User-Agent,X-Ca-Signature,X-Ca-Signature-Headers,X-Ca-Signature-Method,X-Ca-Key,X-Ca-Timestamp,X-Ca-Nonce,X-Ca-Stage,X-Ca-Request-Mode,x-ca-deviceid",
			"exposeHeaders":    "Content-MD5,Server,Date,Latency,X-Ca-Request-Id,X-Ca-Error-Code,X-Ca-Error-Message",
			"maxAge":           172800,
			"allowCredentials": true,
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		examplePlugin, err := apigateway.NewPlugin(ctx, "example", &apigateway.PluginArgs{
			Description: pulumi.String("tf_example"),
			PluginName:  pulumi.String("tf_example"),
			PluginData:  pulumi.String(json0),
			PluginType:  pulumi.String("cors"),
		})
		if err != nil {
			return err
		}
		_, err = apigateway.NewPluginAttachment(ctx, "example", &apigateway.PluginAttachmentArgs{
			ApiId:     exampleApi.ApiId,
			GroupId:   example.ID(),
			PluginId:  examplePlugin.ID(),
			StageName: pulumi.String("RELEASE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetPluginAttachment added in v3.51.0

func GetPluginAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PluginAttachmentState, opts ...pulumi.ResourceOption) (*PluginAttachment, error)

GetPluginAttachment gets an existing PluginAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPluginAttachment added in v3.51.0

func NewPluginAttachment(ctx *pulumi.Context,
	name string, args *PluginAttachmentArgs, opts ...pulumi.ResourceOption) (*PluginAttachment, error)

NewPluginAttachment registers a new resource with the given unique name, arguments, and options.

func (*PluginAttachment) ElementType added in v3.51.0

func (*PluginAttachment) ElementType() reflect.Type

func (*PluginAttachment) ToPluginAttachmentOutput added in v3.51.0

func (i *PluginAttachment) ToPluginAttachmentOutput() PluginAttachmentOutput

func (*PluginAttachment) ToPluginAttachmentOutputWithContext added in v3.51.0

func (i *PluginAttachment) ToPluginAttachmentOutputWithContext(ctx context.Context) PluginAttachmentOutput

type PluginAttachmentArgs added in v3.51.0

type PluginAttachmentArgs struct {
	// The apiId that plugin attaches to.
	ApiId pulumi.StringInput
	// The group that the api belongs to.
	GroupId pulumi.StringInput
	// The plugin that attaches to the api.
	PluginId pulumi.StringInput
	// Stage that the plugin attaches to.
	StageName pulumi.StringInput
}

The set of arguments for constructing a PluginAttachment resource.

func (PluginAttachmentArgs) ElementType added in v3.51.0

func (PluginAttachmentArgs) ElementType() reflect.Type

type PluginAttachmentArray added in v3.51.0

type PluginAttachmentArray []PluginAttachmentInput

func (PluginAttachmentArray) ElementType added in v3.51.0

func (PluginAttachmentArray) ElementType() reflect.Type

func (PluginAttachmentArray) ToPluginAttachmentArrayOutput added in v3.51.0

func (i PluginAttachmentArray) ToPluginAttachmentArrayOutput() PluginAttachmentArrayOutput

func (PluginAttachmentArray) ToPluginAttachmentArrayOutputWithContext added in v3.51.0

func (i PluginAttachmentArray) ToPluginAttachmentArrayOutputWithContext(ctx context.Context) PluginAttachmentArrayOutput

type PluginAttachmentArrayInput added in v3.51.0

type PluginAttachmentArrayInput interface {
	pulumi.Input

	ToPluginAttachmentArrayOutput() PluginAttachmentArrayOutput
	ToPluginAttachmentArrayOutputWithContext(context.Context) PluginAttachmentArrayOutput
}

PluginAttachmentArrayInput is an input type that accepts PluginAttachmentArray and PluginAttachmentArrayOutput values. You can construct a concrete instance of `PluginAttachmentArrayInput` via:

PluginAttachmentArray{ PluginAttachmentArgs{...} }

type PluginAttachmentArrayOutput added in v3.51.0

type PluginAttachmentArrayOutput struct{ *pulumi.OutputState }

func (PluginAttachmentArrayOutput) ElementType added in v3.51.0

func (PluginAttachmentArrayOutput) Index added in v3.51.0

func (PluginAttachmentArrayOutput) ToPluginAttachmentArrayOutput added in v3.51.0

func (o PluginAttachmentArrayOutput) ToPluginAttachmentArrayOutput() PluginAttachmentArrayOutput

func (PluginAttachmentArrayOutput) ToPluginAttachmentArrayOutputWithContext added in v3.51.0

func (o PluginAttachmentArrayOutput) ToPluginAttachmentArrayOutputWithContext(ctx context.Context) PluginAttachmentArrayOutput

type PluginAttachmentInput added in v3.51.0

type PluginAttachmentInput interface {
	pulumi.Input

	ToPluginAttachmentOutput() PluginAttachmentOutput
	ToPluginAttachmentOutputWithContext(ctx context.Context) PluginAttachmentOutput
}

type PluginAttachmentMap added in v3.51.0

type PluginAttachmentMap map[string]PluginAttachmentInput

func (PluginAttachmentMap) ElementType added in v3.51.0

func (PluginAttachmentMap) ElementType() reflect.Type

func (PluginAttachmentMap) ToPluginAttachmentMapOutput added in v3.51.0

func (i PluginAttachmentMap) ToPluginAttachmentMapOutput() PluginAttachmentMapOutput

func (PluginAttachmentMap) ToPluginAttachmentMapOutputWithContext added in v3.51.0

func (i PluginAttachmentMap) ToPluginAttachmentMapOutputWithContext(ctx context.Context) PluginAttachmentMapOutput

type PluginAttachmentMapInput added in v3.51.0

type PluginAttachmentMapInput interface {
	pulumi.Input

	ToPluginAttachmentMapOutput() PluginAttachmentMapOutput
	ToPluginAttachmentMapOutputWithContext(context.Context) PluginAttachmentMapOutput
}

PluginAttachmentMapInput is an input type that accepts PluginAttachmentMap and PluginAttachmentMapOutput values. You can construct a concrete instance of `PluginAttachmentMapInput` via:

PluginAttachmentMap{ "key": PluginAttachmentArgs{...} }

type PluginAttachmentMapOutput added in v3.51.0

type PluginAttachmentMapOutput struct{ *pulumi.OutputState }

func (PluginAttachmentMapOutput) ElementType added in v3.51.0

func (PluginAttachmentMapOutput) ElementType() reflect.Type

func (PluginAttachmentMapOutput) MapIndex added in v3.51.0

func (PluginAttachmentMapOutput) ToPluginAttachmentMapOutput added in v3.51.0

func (o PluginAttachmentMapOutput) ToPluginAttachmentMapOutput() PluginAttachmentMapOutput

func (PluginAttachmentMapOutput) ToPluginAttachmentMapOutputWithContext added in v3.51.0

func (o PluginAttachmentMapOutput) ToPluginAttachmentMapOutputWithContext(ctx context.Context) PluginAttachmentMapOutput

type PluginAttachmentOutput added in v3.51.0

type PluginAttachmentOutput struct{ *pulumi.OutputState }

func (PluginAttachmentOutput) ApiId added in v3.51.0

The apiId that plugin attaches to.

func (PluginAttachmentOutput) ElementType added in v3.51.0

func (PluginAttachmentOutput) ElementType() reflect.Type

func (PluginAttachmentOutput) GroupId added in v3.51.0

The group that the api belongs to.

func (PluginAttachmentOutput) PluginId added in v3.51.0

The plugin that attaches to the api.

func (PluginAttachmentOutput) StageName added in v3.51.0

Stage that the plugin attaches to.

func (PluginAttachmentOutput) ToPluginAttachmentOutput added in v3.51.0

func (o PluginAttachmentOutput) ToPluginAttachmentOutput() PluginAttachmentOutput

func (PluginAttachmentOutput) ToPluginAttachmentOutputWithContext added in v3.51.0

func (o PluginAttachmentOutput) ToPluginAttachmentOutputWithContext(ctx context.Context) PluginAttachmentOutput

type PluginAttachmentState added in v3.51.0

type PluginAttachmentState struct {
	// The apiId that plugin attaches to.
	ApiId pulumi.StringPtrInput
	// The group that the api belongs to.
	GroupId pulumi.StringPtrInput
	// The plugin that attaches to the api.
	PluginId pulumi.StringPtrInput
	// Stage that the plugin attaches to.
	StageName pulumi.StringPtrInput
}

func (PluginAttachmentState) ElementType added in v3.51.0

func (PluginAttachmentState) ElementType() reflect.Type

type PluginInput added in v3.29.0

type PluginInput interface {
	pulumi.Input

	ToPluginOutput() PluginOutput
	ToPluginOutputWithContext(ctx context.Context) PluginOutput
}

type PluginMap added in v3.29.0

type PluginMap map[string]PluginInput

func (PluginMap) ElementType added in v3.29.0

func (PluginMap) ElementType() reflect.Type

func (PluginMap) ToPluginMapOutput added in v3.29.0

func (i PluginMap) ToPluginMapOutput() PluginMapOutput

func (PluginMap) ToPluginMapOutputWithContext added in v3.29.0

func (i PluginMap) ToPluginMapOutputWithContext(ctx context.Context) PluginMapOutput

type PluginMapInput added in v3.29.0

type PluginMapInput interface {
	pulumi.Input

	ToPluginMapOutput() PluginMapOutput
	ToPluginMapOutputWithContext(context.Context) PluginMapOutput
}

PluginMapInput is an input type that accepts PluginMap and PluginMapOutput values. You can construct a concrete instance of `PluginMapInput` via:

PluginMap{ "key": PluginArgs{...} }

type PluginMapOutput added in v3.29.0

type PluginMapOutput struct{ *pulumi.OutputState }

func (PluginMapOutput) ElementType added in v3.29.0

func (PluginMapOutput) ElementType() reflect.Type

func (PluginMapOutput) MapIndex added in v3.29.0

func (PluginMapOutput) ToPluginMapOutput added in v3.29.0

func (o PluginMapOutput) ToPluginMapOutput() PluginMapOutput

func (PluginMapOutput) ToPluginMapOutputWithContext added in v3.29.0

func (o PluginMapOutput) ToPluginMapOutputWithContext(ctx context.Context) PluginMapOutput

type PluginOutput added in v3.29.0

type PluginOutput struct{ *pulumi.OutputState }

func (PluginOutput) Description added in v3.29.0

func (o PluginOutput) Description() pulumi.StringPtrOutput

The description of the plug-in, which cannot exceed 200 characters.

func (PluginOutput) ElementType added in v3.29.0

func (PluginOutput) ElementType() reflect.Type

func (PluginOutput) PluginData added in v3.29.0

func (o PluginOutput) PluginData() pulumi.StringOutput

The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.

func (PluginOutput) PluginName added in v3.29.0

func (o PluginOutput) PluginName() pulumi.StringOutput

The name of the plug-in that you want to create. It can contain uppercase English letters, lowercase English letters, Chinese characters, numbers, and underscores (_). It must be 4 to 50 characters in length and cannot start with an underscore (_).

func (PluginOutput) PluginType added in v3.29.0

func (o PluginOutput) PluginType() pulumi.StringOutput

The type of the plug-in. Valid values: `backendSignature`, `caching`, `cors`, `ipControl`, `jwtAuth`, `trafficControl`. - ipControl: indicates IP address-based access control. - trafficControl: indicates throttling. - backendSignature: indicates backend signature. - jwtAuth: indicates JWT (OpenId Connect). - cors: indicates cross-origin resource access (CORS). - caching: indicates caching.

func (PluginOutput) Tags added in v3.29.0

func (o PluginOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

func (PluginOutput) ToPluginOutput added in v3.29.0

func (o PluginOutput) ToPluginOutput() PluginOutput

func (PluginOutput) ToPluginOutputWithContext added in v3.29.0

func (o PluginOutput) ToPluginOutputWithContext(ctx context.Context) PluginOutput

type PluginState added in v3.29.0

type PluginState struct {
	// The description of the plug-in, which cannot exceed 200 characters.
	Description pulumi.StringPtrInput
	// The definition statement of the plug-in. Plug-in definition statements in the JSON and YAML formats are supported.
	PluginData pulumi.StringPtrInput
	// The name of the plug-in that you want to create. It can contain uppercase English letters, lowercase English letters, Chinese characters, numbers, and underscores (_). It must be 4 to 50 characters in length and cannot start with an underscore (_).
	PluginName pulumi.StringPtrInput
	// The type of the plug-in. Valid values: `backendSignature`, `caching`, `cors`, `ipControl`, `jwtAuth`, `trafficControl`.
	// - ipControl: indicates IP address-based access control.
	// - trafficControl: indicates throttling.
	// - backendSignature: indicates backend signature.
	// - jwtAuth: indicates JWT (OpenId Connect).
	// - cors: indicates cross-origin resource access (CORS).
	// - caching: indicates caching.
	PluginType pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

func (PluginState) ElementType added in v3.29.0

func (PluginState) ElementType() reflect.Type

type VpcAccess

type VpcAccess struct {
	pulumi.CustomResourceState

	// ID of the instance in VPC (ECS/Server Load Balance).
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The name of the vpc authorization.
	Name pulumi.StringOutput `pulumi:"name"`
	// ID of the port corresponding to the instance.
	Port pulumi.IntOutput `pulumi:"port"`
	// The vpc id of the vpc authorization.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Instance"),
		}, nil)
		if err != nil {
			return err
		}
		exampleGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(example.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String("terraform-example"),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			VswitchName: pulumi.String("terraform-example"),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       exampleNetwork.ID(),
			ZoneId:      pulumi.String(example.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
			Name:        pulumi.String("terraform-example"),
			Description: pulumi.String("New security group"),
			VpcId:       exampleNetwork.ID(),
		})
		if err != nil {
			return err
		}
		exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex: pulumi.StringRef("^ubuntu_[0-9]+_[0-9]+_x64*"),
			Owners:    pulumi.StringRef("system"),
		}, nil)
		if err != nil {
			return err
		}
		exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
			AvailabilityZone: pulumi.String(example.Zones[0].Id),
			InstanceName:     pulumi.String("terraform-example"),
			ImageId:          pulumi.String(exampleGetImages.Images[0].Id),
			InstanceType:     pulumi.String(exampleGetInstanceTypes.InstanceTypes[0].Id),
			SecurityGroups: pulumi.StringArray{
				exampleSecurityGroup.ID(),
			},
			VswitchId: exampleSwitch.ID(),
		})
		if err != nil {
			return err
		}
		_, err = apigateway.NewVpcAccess(ctx, "example", &apigateway.VpcAccessArgs{
			Name:       pulumi.String("terraform-example"),
			VpcId:      exampleNetwork.ID(),
			InstanceId: exampleInstance.ID(),
			Port:       pulumi.Int(8080),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Api gateway app can be imported using the id, e.g.

```sh $ pulumi import alicloud:apigateway/vpcAccess:VpcAccess example "APiGatewayVpc:vpc-aswcj19ajsz:i-ajdjfsdlf:8080" ```

func GetVpcAccess

func GetVpcAccess(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VpcAccessState, opts ...pulumi.ResourceOption) (*VpcAccess, error)

GetVpcAccess gets an existing VpcAccess resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVpcAccess

func NewVpcAccess(ctx *pulumi.Context,
	name string, args *VpcAccessArgs, opts ...pulumi.ResourceOption) (*VpcAccess, error)

NewVpcAccess registers a new resource with the given unique name, arguments, and options.

func (*VpcAccess) ElementType

func (*VpcAccess) ElementType() reflect.Type

func (*VpcAccess) ToVpcAccessOutput

func (i *VpcAccess) ToVpcAccessOutput() VpcAccessOutput

func (*VpcAccess) ToVpcAccessOutputWithContext

func (i *VpcAccess) ToVpcAccessOutputWithContext(ctx context.Context) VpcAccessOutput

type VpcAccessArgs

type VpcAccessArgs struct {
	// ID of the instance in VPC (ECS/Server Load Balance).
	InstanceId pulumi.StringInput
	// The name of the vpc authorization.
	Name pulumi.StringPtrInput
	// ID of the port corresponding to the instance.
	Port pulumi.IntInput
	// The vpc id of the vpc authorization.
	VpcId pulumi.StringInput
}

The set of arguments for constructing a VpcAccess resource.

func (VpcAccessArgs) ElementType

func (VpcAccessArgs) ElementType() reflect.Type

type VpcAccessArray

type VpcAccessArray []VpcAccessInput

func (VpcAccessArray) ElementType

func (VpcAccessArray) ElementType() reflect.Type

func (VpcAccessArray) ToVpcAccessArrayOutput

func (i VpcAccessArray) ToVpcAccessArrayOutput() VpcAccessArrayOutput

func (VpcAccessArray) ToVpcAccessArrayOutputWithContext

func (i VpcAccessArray) ToVpcAccessArrayOutputWithContext(ctx context.Context) VpcAccessArrayOutput

type VpcAccessArrayInput

type VpcAccessArrayInput interface {
	pulumi.Input

	ToVpcAccessArrayOutput() VpcAccessArrayOutput
	ToVpcAccessArrayOutputWithContext(context.Context) VpcAccessArrayOutput
}

VpcAccessArrayInput is an input type that accepts VpcAccessArray and VpcAccessArrayOutput values. You can construct a concrete instance of `VpcAccessArrayInput` via:

VpcAccessArray{ VpcAccessArgs{...} }

type VpcAccessArrayOutput

type VpcAccessArrayOutput struct{ *pulumi.OutputState }

func (VpcAccessArrayOutput) ElementType

func (VpcAccessArrayOutput) ElementType() reflect.Type

func (VpcAccessArrayOutput) Index

func (VpcAccessArrayOutput) ToVpcAccessArrayOutput

func (o VpcAccessArrayOutput) ToVpcAccessArrayOutput() VpcAccessArrayOutput

func (VpcAccessArrayOutput) ToVpcAccessArrayOutputWithContext

func (o VpcAccessArrayOutput) ToVpcAccessArrayOutputWithContext(ctx context.Context) VpcAccessArrayOutput

type VpcAccessInput

type VpcAccessInput interface {
	pulumi.Input

	ToVpcAccessOutput() VpcAccessOutput
	ToVpcAccessOutputWithContext(ctx context.Context) VpcAccessOutput
}

type VpcAccessMap

type VpcAccessMap map[string]VpcAccessInput

func (VpcAccessMap) ElementType

func (VpcAccessMap) ElementType() reflect.Type

func (VpcAccessMap) ToVpcAccessMapOutput

func (i VpcAccessMap) ToVpcAccessMapOutput() VpcAccessMapOutput

func (VpcAccessMap) ToVpcAccessMapOutputWithContext

func (i VpcAccessMap) ToVpcAccessMapOutputWithContext(ctx context.Context) VpcAccessMapOutput

type VpcAccessMapInput

type VpcAccessMapInput interface {
	pulumi.Input

	ToVpcAccessMapOutput() VpcAccessMapOutput
	ToVpcAccessMapOutputWithContext(context.Context) VpcAccessMapOutput
}

VpcAccessMapInput is an input type that accepts VpcAccessMap and VpcAccessMapOutput values. You can construct a concrete instance of `VpcAccessMapInput` via:

VpcAccessMap{ "key": VpcAccessArgs{...} }

type VpcAccessMapOutput

type VpcAccessMapOutput struct{ *pulumi.OutputState }

func (VpcAccessMapOutput) ElementType

func (VpcAccessMapOutput) ElementType() reflect.Type

func (VpcAccessMapOutput) MapIndex

func (VpcAccessMapOutput) ToVpcAccessMapOutput

func (o VpcAccessMapOutput) ToVpcAccessMapOutput() VpcAccessMapOutput

func (VpcAccessMapOutput) ToVpcAccessMapOutputWithContext

func (o VpcAccessMapOutput) ToVpcAccessMapOutputWithContext(ctx context.Context) VpcAccessMapOutput

type VpcAccessOutput

type VpcAccessOutput struct{ *pulumi.OutputState }

func (VpcAccessOutput) ElementType

func (VpcAccessOutput) ElementType() reflect.Type

func (VpcAccessOutput) InstanceId added in v3.27.0

func (o VpcAccessOutput) InstanceId() pulumi.StringOutput

ID of the instance in VPC (ECS/Server Load Balance).

func (VpcAccessOutput) Name added in v3.27.0

The name of the vpc authorization.

func (VpcAccessOutput) Port added in v3.27.0

func (o VpcAccessOutput) Port() pulumi.IntOutput

ID of the port corresponding to the instance.

func (VpcAccessOutput) ToVpcAccessOutput

func (o VpcAccessOutput) ToVpcAccessOutput() VpcAccessOutput

func (VpcAccessOutput) ToVpcAccessOutputWithContext

func (o VpcAccessOutput) ToVpcAccessOutputWithContext(ctx context.Context) VpcAccessOutput

func (VpcAccessOutput) VpcId added in v3.27.0

The vpc id of the vpc authorization.

type VpcAccessState

type VpcAccessState struct {
	// ID of the instance in VPC (ECS/Server Load Balance).
	InstanceId pulumi.StringPtrInput
	// The name of the vpc authorization.
	Name pulumi.StringPtrInput
	// ID of the port corresponding to the instance.
	Port pulumi.IntPtrInput
	// The vpc id of the vpc authorization.
	VpcId pulumi.StringPtrInput
}

func (VpcAccessState) ElementType

func (VpcAccessState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL