We recommend new projects start with resources from the AWS provider.
aws-native.apigatewayv2.Api
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGatewayV2::Api
resource creates an API. WebSocket APIs and HTTP APIs are supported. For more information about WebSocket APIs, see About WebSocket APIs in API Gateway in the API Gateway Developer Guide. For more information about HTTP APIs, see HTTP APIs in the API Gateway Developer Guide.
Create Api Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Api(name: string, args?: ApiArgs, opts?: CustomResourceOptions);
@overload
def Api(resource_name: str,
args: Optional[ApiArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Api(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_key_selection_expression: Optional[str] = None,
base_path: Optional[str] = None,
body: Optional[Any] = None,
body_s3_location: Optional[ApiBodyS3LocationArgs] = None,
cors_configuration: Optional[ApiCorsArgs] = None,
credentials_arn: Optional[str] = None,
description: Optional[str] = None,
disable_execute_api_endpoint: Optional[bool] = None,
disable_schema_validation: Optional[bool] = None,
fail_on_warnings: Optional[bool] = None,
name: Optional[str] = None,
protocol_type: Optional[str] = None,
route_key: Optional[str] = None,
route_selection_expression: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
target: Optional[str] = None,
version: Optional[str] = None)
func NewApi(ctx *Context, name string, args *ApiArgs, opts ...ResourceOption) (*Api, error)
public Api(string name, ApiArgs? args = null, CustomResourceOptions? opts = null)
type: aws-native:apigatewayv2:Api
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Api Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Api resource accepts the following input properties:
- Api
Key stringSelection Expression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- Base
Path string - Specifies how to interpret the base path of the API during import. Valid values are
ignore
,prepend
, andsplit
. The default value isignore
. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs. - Body object
The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Api
for more information about the expected schema for this property.- Body
S3Location Pulumi.Aws Native. Api Gateway V2. Inputs. Api Body S3Location - The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources. - Cors
Configuration Pulumi.Aws Native. Api Gateway V2. Inputs. Api Cors - A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- Credentials
Arn string - This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify
arn:aws:iam::*:user/*
. To use resource-based permissions on supported AWS services, specifynull
. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs. - Description string
- The description of the API.
- Disable
Execute boolApi Endpoint - Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. - Disable
Schema boolValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- Fail
On boolWarnings - Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
- Name string
- The name of the API. Required unless you specify an OpenAPI definition for
Body
orS3BodyLocation
. - Protocol
Type string - The API protocol. Valid values are
WEBSOCKET
orHTTP
. Required unless you specify an OpenAPI definition forBody
orS3BodyLocation
. - Route
Key string - This property is part of quick create. If you don't specify a
routeKey
, a default route of$default
is created. The$default
route acts as a catch-all for any request made to your API, for a particular stage. The$default
route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs. - Route
Selection stringExpression - The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression
must be${request.method} ${request.path}
. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs. - Dictionary<string, string>
- The collection of tags. Each tag element is associated with a given resource.
- Target string
- This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
- Version string
- A version identifier for the API.
- Api
Key stringSelection Expression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- Base
Path string - Specifies how to interpret the base path of the API during import. Valid values are
ignore
,prepend
, andsplit
. The default value isignore
. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs. - Body interface{}
The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Api
for more information about the expected schema for this property.- Body
S3Location ApiBody S3Location Args - The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources. - Cors
Configuration ApiCors Args - A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- Credentials
Arn string - This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify
arn:aws:iam::*:user/*
. To use resource-based permissions on supported AWS services, specifynull
. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs. - Description string
- The description of the API.
- Disable
Execute boolApi Endpoint - Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. - Disable
Schema boolValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- Fail
On boolWarnings - Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
- Name string
- The name of the API. Required unless you specify an OpenAPI definition for
Body
orS3BodyLocation
. - Protocol
Type string - The API protocol. Valid values are
WEBSOCKET
orHTTP
. Required unless you specify an OpenAPI definition forBody
orS3BodyLocation
. - Route
Key string - This property is part of quick create. If you don't specify a
routeKey
, a default route of$default
is created. The$default
route acts as a catch-all for any request made to your API, for a particular stage. The$default
route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs. - Route
Selection stringExpression - The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression
must be${request.method} ${request.path}
. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs. - map[string]string
- The collection of tags. Each tag element is associated with a given resource.
- Target string
- This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
- Version string
- A version identifier for the API.
- api
Key StringSelection Expression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- base
Path String - Specifies how to interpret the base path of the API during import. Valid values are
ignore
,prepend
, andsplit
. The default value isignore
. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs. - body Object
The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Api
for more information about the expected schema for this property.- body
S3Location ApiBody S3Location - The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources. - cors
Configuration ApiCors - A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentials
Arn String - This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify
arn:aws:iam::*:user/*
. To use resource-based permissions on supported AWS services, specifynull
. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs. - description String
- The description of the API.
- disable
Execute BooleanApi Endpoint - Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. - disable
Schema BooleanValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- fail
On BooleanWarnings - Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
- name String
- The name of the API. Required unless you specify an OpenAPI definition for
Body
orS3BodyLocation
. - protocol
Type String - The API protocol. Valid values are
WEBSOCKET
orHTTP
. Required unless you specify an OpenAPI definition forBody
orS3BodyLocation
. - route
Key String - This property is part of quick create. If you don't specify a
routeKey
, a default route of$default
is created. The$default
route acts as a catch-all for any request made to your API, for a particular stage. The$default
route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs. - route
Selection StringExpression - The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression
must be${request.method} ${request.path}
. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs. - Map<String,String>
- The collection of tags. Each tag element is associated with a given resource.
- target String
- This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
- version String
- A version identifier for the API.
- api
Key stringSelection Expression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- base
Path string - Specifies how to interpret the base path of the API during import. Valid values are
ignore
,prepend
, andsplit
. The default value isignore
. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs. - body any
The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Api
for more information about the expected schema for this property.- body
S3Location ApiBody S3Location - The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources. - cors
Configuration ApiCors - A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentials
Arn string - This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify
arn:aws:iam::*:user/*
. To use resource-based permissions on supported AWS services, specifynull
. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs. - description string
- The description of the API.
- disable
Execute booleanApi Endpoint - Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. - disable
Schema booleanValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- fail
On booleanWarnings - Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
- name string
- The name of the API. Required unless you specify an OpenAPI definition for
Body
orS3BodyLocation
. - protocol
Type string - The API protocol. Valid values are
WEBSOCKET
orHTTP
. Required unless you specify an OpenAPI definition forBody
orS3BodyLocation
. - route
Key string - This property is part of quick create. If you don't specify a
routeKey
, a default route of$default
is created. The$default
route acts as a catch-all for any request made to your API, for a particular stage. The$default
route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs. - route
Selection stringExpression - The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression
must be${request.method} ${request.path}
. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs. - {[key: string]: string}
- The collection of tags. Each tag element is associated with a given resource.
- target string
- This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
- version string
- A version identifier for the API.
- api_
key_ strselection_ expression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- base_
path str - Specifies how to interpret the base path of the API during import. Valid values are
ignore
,prepend
, andsplit
. The default value isignore
. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs. - body Any
The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Api
for more information about the expected schema for this property.- body_
s3_ Apilocation Body S3Location Args - The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources. - cors_
configuration ApiCors Args - A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentials_
arn str - This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify
arn:aws:iam::*:user/*
. To use resource-based permissions on supported AWS services, specifynull
. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs. - description str
- The description of the API.
- disable_
execute_ boolapi_ endpoint - Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. - disable_
schema_ boolvalidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- fail_
on_ boolwarnings - Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
- name str
- The name of the API. Required unless you specify an OpenAPI definition for
Body
orS3BodyLocation
. - protocol_
type str - The API protocol. Valid values are
WEBSOCKET
orHTTP
. Required unless you specify an OpenAPI definition forBody
orS3BodyLocation
. - route_
key str - This property is part of quick create. If you don't specify a
routeKey
, a default route of$default
is created. The$default
route acts as a catch-all for any request made to your API, for a particular stage. The$default
route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs. - route_
selection_ strexpression - The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression
must be${request.method} ${request.path}
. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs. - Mapping[str, str]
- The collection of tags. Each tag element is associated with a given resource.
- target str
- This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
- version str
- A version identifier for the API.
- api
Key StringSelection Expression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- base
Path String - Specifies how to interpret the base path of the API during import. Valid values are
ignore
,prepend
, andsplit
. The default value isignore
. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs. - body Any
The OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Api
for more information about the expected schema for this property.- body
S3Location Property Map - The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a
Body
orBodyS3Location
. If you specify aBody
orBodyS3Location
, don't specify CloudFormation resources such asAWS::ApiGatewayV2::Authorizer
orAWS::ApiGatewayV2::Route
. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources. - cors
Configuration Property Map - A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentials
Arn String - This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify
arn:aws:iam::*:user/*
. To use resource-based permissions on supported AWS services, specifynull
. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs. - description String
- The description of the API.
- disable
Execute BooleanApi Endpoint - Specifies whether clients can invoke your API by using the default
execute-api
endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint. - disable
Schema BooleanValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- fail
On BooleanWarnings - Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.
- name String
- The name of the API. Required unless you specify an OpenAPI definition for
Body
orS3BodyLocation
. - protocol
Type String - The API protocol. Valid values are
WEBSOCKET
orHTTP
. Required unless you specify an OpenAPI definition forBody
orS3BodyLocation
. - route
Key String - This property is part of quick create. If you don't specify a
routeKey
, a default route of$default
is created. The$default
route acts as a catch-all for any request made to your API, for a particular stage. The$default
route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs. - route
Selection StringExpression - The route selection expression for the API. For HTTP APIs, the
routeSelectionExpression
must be${request.method} ${request.path}
. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs. - Map<String>
- The collection of tags. Each tag element is associated with a given resource.
- target String
- This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.
- version String
- A version identifier for the API.
Outputs
All input properties are implicitly available as output properties. Additionally, the Api resource produces the following output properties:
- Api
Endpoint string - The default endpoint for an API. For example:
https://abcdef.execute-api.us-west-2.amazonaws.com
. - Api
Id string - The API identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Api
Endpoint string - The default endpoint for an API. For example:
https://abcdef.execute-api.us-west-2.amazonaws.com
. - Api
Id string - The API identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- api
Endpoint String - The default endpoint for an API. For example:
https://abcdef.execute-api.us-west-2.amazonaws.com
. - api
Id String - The API identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- api
Endpoint string - The default endpoint for an API. For example:
https://abcdef.execute-api.us-west-2.amazonaws.com
. - api
Id string - The API identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- api_
endpoint str - The default endpoint for an API. For example:
https://abcdef.execute-api.us-west-2.amazonaws.com
. - api_
id str - The API identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- api
Endpoint String - The default endpoint for an API. For example:
https://abcdef.execute-api.us-west-2.amazonaws.com
. - api
Id String - The API identifier.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ApiBodyS3Location, ApiBodyS3LocationArgs
ApiCors, ApiCorsArgs
- Allow
Credentials bool - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- Allow
Headers List<string> - Represents a collection of allowed headers. Supported only for HTTP APIs.
- Allow
Methods List<string> - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- Allow
Origins List<string> - Represents a collection of allowed origins. Supported only for HTTP APIs.
- Expose
Headers List<string> - Represents a collection of exposed headers. Supported only for HTTP APIs.
- Max
Age int - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- Allow
Credentials bool - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- Allow
Headers []string - Represents a collection of allowed headers. Supported only for HTTP APIs.
- Allow
Methods []string - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- Allow
Origins []string - Represents a collection of allowed origins. Supported only for HTTP APIs.
- Expose
Headers []string - Represents a collection of exposed headers. Supported only for HTTP APIs.
- Max
Age int - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- allow
Credentials Boolean - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allow
Headers List<String> - Represents a collection of allowed headers. Supported only for HTTP APIs.
- allow
Methods List<String> - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allow
Origins List<String> - Represents a collection of allowed origins. Supported only for HTTP APIs.
- expose
Headers List<String> - Represents a collection of exposed headers. Supported only for HTTP APIs.
- max
Age Integer - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- allow
Credentials boolean - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allow
Headers string[] - Represents a collection of allowed headers. Supported only for HTTP APIs.
- allow
Methods string[] - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allow
Origins string[] - Represents a collection of allowed origins. Supported only for HTTP APIs.
- expose
Headers string[] - Represents a collection of exposed headers. Supported only for HTTP APIs.
- max
Age number - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- allow_
credentials bool - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allow_
headers Sequence[str] - Represents a collection of allowed headers. Supported only for HTTP APIs.
- allow_
methods Sequence[str] - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allow_
origins Sequence[str] - Represents a collection of allowed origins. Supported only for HTTP APIs.
- expose_
headers Sequence[str] - Represents a collection of exposed headers. Supported only for HTTP APIs.
- max_
age int - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- allow
Credentials Boolean - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allow
Headers List<String> - Represents a collection of allowed headers. Supported only for HTTP APIs.
- allow
Methods List<String> - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allow
Origins List<String> - Represents a collection of allowed origins. Supported only for HTTP APIs.
- expose
Headers List<String> - Represents a collection of exposed headers. Supported only for HTTP APIs.
- max
Age Number - The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.