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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Api resource accepts the following input properties:
- ApiKey stringSelection Expression 
- An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- BasePath 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 - Bodyor- BodyS3Location. If you specify a- Bodyor- BodyS3Location, don't specify CloudFormation resources such as- AWS::ApiGatewayV2::Authorizeror- AWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.- Search the CloudFormation User Guide for - AWS::ApiGatewayV2::Apifor more information about the expected schema for this property.
- BodyS3Location 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 BodyorBodyS3Location. If you specify aBodyorBodyS3Location, don't specify CloudFormation resources such asAWS::ApiGatewayV2::AuthorizerorAWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
- CorsConfiguration Pulumi.Aws Native. Api Gateway V2. Inputs. Api Cors 
- A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- CredentialsArn 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.
- DisableExecute boolApi Endpoint 
- Specifies whether clients can invoke your API by using the default execute-apiendpoint. 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.
- DisableSchema boolValidation 
- Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- FailOn 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 BodyorS3BodyLocation.
- ProtocolType string
- The API protocol. Valid values are WEBSOCKETorHTTP. Required unless you specify an OpenAPI definition forBodyorS3BodyLocation.
- RouteKey string
- This property is part of quick create. If you don't specify a routeKey, a default route of$defaultis created. The$defaultroute acts as a catch-all for any request made to your API, for a particular stage. The$defaultroute 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.
- RouteSelection stringExpression 
- The route selection expression for the API. For HTTP APIs, the routeSelectionExpressionmust 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.
- ApiKey stringSelection Expression 
- An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- BasePath 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 - Bodyor- BodyS3Location. If you specify a- Bodyor- BodyS3Location, don't specify CloudFormation resources such as- AWS::ApiGatewayV2::Authorizeror- AWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.- Search the CloudFormation User Guide for - AWS::ApiGatewayV2::Apifor more information about the expected schema for this property.
- BodyS3Location ApiBody S3Location Args 
- The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a BodyorBodyS3Location. If you specify aBodyorBodyS3Location, don't specify CloudFormation resources such asAWS::ApiGatewayV2::AuthorizerorAWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
- CorsConfiguration ApiCors Args 
- A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- CredentialsArn 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.
- DisableExecute boolApi Endpoint 
- Specifies whether clients can invoke your API by using the default execute-apiendpoint. 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.
- DisableSchema boolValidation 
- Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- FailOn 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 BodyorS3BodyLocation.
- ProtocolType string
- The API protocol. Valid values are WEBSOCKETorHTTP. Required unless you specify an OpenAPI definition forBodyorS3BodyLocation.
- RouteKey string
- This property is part of quick create. If you don't specify a routeKey, a default route of$defaultis created. The$defaultroute acts as a catch-all for any request made to your API, for a particular stage. The$defaultroute 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.
- RouteSelection stringExpression 
- The route selection expression for the API. For HTTP APIs, the routeSelectionExpressionmust 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.
- apiKey StringSelection Expression 
- An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- basePath 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 - Bodyor- BodyS3Location. If you specify a- Bodyor- BodyS3Location, don't specify CloudFormation resources such as- AWS::ApiGatewayV2::Authorizeror- AWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.- Search the CloudFormation User Guide for - AWS::ApiGatewayV2::Apifor more information about the expected schema for this property.
- bodyS3Location ApiBody S3Location 
- The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a BodyorBodyS3Location. If you specify aBodyorBodyS3Location, don't specify CloudFormation resources such asAWS::ApiGatewayV2::AuthorizerorAWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
- corsConfiguration ApiCors 
- A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentialsArn 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.
- disableExecute BooleanApi Endpoint 
- Specifies whether clients can invoke your API by using the default execute-apiendpoint. 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.
- disableSchema BooleanValidation 
- Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- failOn 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 BodyorS3BodyLocation.
- protocolType String
- The API protocol. Valid values are WEBSOCKETorHTTP. Required unless you specify an OpenAPI definition forBodyorS3BodyLocation.
- routeKey String
- This property is part of quick create. If you don't specify a routeKey, a default route of$defaultis created. The$defaultroute acts as a catch-all for any request made to your API, for a particular stage. The$defaultroute 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.
- routeSelection StringExpression 
- The route selection expression for the API. For HTTP APIs, the routeSelectionExpressionmust 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.
- apiKey stringSelection Expression 
- An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- basePath 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 - Bodyor- BodyS3Location. If you specify a- Bodyor- BodyS3Location, don't specify CloudFormation resources such as- AWS::ApiGatewayV2::Authorizeror- AWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.- Search the CloudFormation User Guide for - AWS::ApiGatewayV2::Apifor more information about the expected schema for this property.
- bodyS3Location ApiBody S3Location 
- The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a BodyorBodyS3Location. If you specify aBodyorBodyS3Location, don't specify CloudFormation resources such asAWS::ApiGatewayV2::AuthorizerorAWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
- corsConfiguration ApiCors 
- A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentialsArn 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.
- disableExecute booleanApi Endpoint 
- Specifies whether clients can invoke your API by using the default execute-apiendpoint. 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.
- disableSchema booleanValidation 
- Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- failOn 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 BodyorS3BodyLocation.
- protocolType string
- The API protocol. Valid values are WEBSOCKETorHTTP. Required unless you specify an OpenAPI definition forBodyorS3BodyLocation.
- routeKey string
- This property is part of quick create. If you don't specify a routeKey, a default route of$defaultis created. The$defaultroute acts as a catch-all for any request made to your API, for a particular stage. The$defaultroute 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.
- routeSelection stringExpression 
- The route selection expression for the API. For HTTP APIs, the routeSelectionExpressionmust 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 - Bodyor- BodyS3Location. If you specify a- Bodyor- BodyS3Location, don't specify CloudFormation resources such as- AWS::ApiGatewayV2::Authorizeror- AWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.- Search the CloudFormation User Guide for - AWS::ApiGatewayV2::Apifor 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 BodyorBodyS3Location. If you specify aBodyorBodyS3Location, don't specify CloudFormation resources such asAWS::ApiGatewayV2::AuthorizerorAWS::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-apiendpoint. 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 BodyorS3BodyLocation.
- protocol_type str
- The API protocol. Valid values are WEBSOCKETorHTTP. Required unless you specify an OpenAPI definition forBodyorS3BodyLocation.
- route_key str
- This property is part of quick create. If you don't specify a routeKey, a default route of$defaultis created. The$defaultroute acts as a catch-all for any request made to your API, for a particular stage. The$defaultroute 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 routeSelectionExpressionmust 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.
- apiKey StringSelection Expression 
- An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.
- basePath 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 - Bodyor- BodyS3Location. If you specify a- Bodyor- BodyS3Location, don't specify CloudFormation resources such as- AWS::ApiGatewayV2::Authorizeror- AWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.- Search the CloudFormation User Guide for - AWS::ApiGatewayV2::Apifor more information about the expected schema for this property.
- bodyS3Location Property Map
- The S3 location of an OpenAPI definition. Supported only for HTTP APIs. To import an HTTP API, you must specify a BodyorBodyS3Location. If you specify aBodyorBodyS3Location, don't specify CloudFormation resources such asAWS::ApiGatewayV2::AuthorizerorAWS::ApiGatewayV2::Route. API Gateway doesn't support the combination of OpenAPI and CloudFormation resources.
- corsConfiguration Property Map
- A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.
- credentialsArn 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.
- disableExecute BooleanApi Endpoint 
- Specifies whether clients can invoke your API by using the default execute-apiendpoint. 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.
- disableSchema BooleanValidation 
- Avoid validating models when creating a deployment. Supported only for WebSocket APIs.
- failOn 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 BodyorS3BodyLocation.
- protocolType String
- The API protocol. Valid values are WEBSOCKETorHTTP. Required unless you specify an OpenAPI definition forBodyorS3BodyLocation.
- routeKey String
- This property is part of quick create. If you don't specify a routeKey, a default route of$defaultis created. The$defaultroute acts as a catch-all for any request made to your API, for a particular stage. The$defaultroute 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.
- routeSelection StringExpression 
- The route selection expression for the API. For HTTP APIs, the routeSelectionExpressionmust 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:
- ApiEndpoint string
- The default endpoint for an API. For example: https://abcdef.execute-api.us-west-2.amazonaws.com.
- ApiId string
- The API identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- ApiEndpoint string
- The default endpoint for an API. For example: https://abcdef.execute-api.us-west-2.amazonaws.com.
- ApiId string
- The API identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- apiEndpoint String
- The default endpoint for an API. For example: https://abcdef.execute-api.us-west-2.amazonaws.com.
- apiId String
- The API identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- apiEndpoint string
- The default endpoint for an API. For example: https://abcdef.execute-api.us-west-2.amazonaws.com.
- apiId 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.
- apiEndpoint String
- The default endpoint for an API. For example: https://abcdef.execute-api.us-west-2.amazonaws.com.
- apiId String
- The API identifier.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ApiBodyS3Location, ApiBodyS3LocationArgs      
ApiCors, ApiCorsArgs    
- AllowCredentials bool
- Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- AllowHeaders List<string>
- Represents a collection of allowed headers. Supported only for HTTP APIs.
- AllowMethods List<string>
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- AllowOrigins List<string>
- Represents a collection of allowed origins. Supported only for HTTP APIs.
- ExposeHeaders List<string>
- Represents a collection of exposed headers. Supported only for HTTP APIs.
- MaxAge int
- The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- AllowCredentials bool
- Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- AllowHeaders []string
- Represents a collection of allowed headers. Supported only for HTTP APIs.
- AllowMethods []string
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- AllowOrigins []string
- Represents a collection of allowed origins. Supported only for HTTP APIs.
- ExposeHeaders []string
- Represents a collection of exposed headers. Supported only for HTTP APIs.
- MaxAge int
- The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- allowCredentials Boolean
- Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allowHeaders List<String>
- Represents a collection of allowed headers. Supported only for HTTP APIs.
- allowMethods List<String>
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allowOrigins List<String>
- Represents a collection of allowed origins. Supported only for HTTP APIs.
- exposeHeaders List<String>
- Represents a collection of exposed headers. Supported only for HTTP APIs.
- maxAge Integer
- The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- allowCredentials boolean
- Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allowHeaders string[]
- Represents a collection of allowed headers. Supported only for HTTP APIs.
- allowMethods string[]
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allowOrigins string[]
- Represents a collection of allowed origins. Supported only for HTTP APIs.
- exposeHeaders string[]
- Represents a collection of exposed headers. Supported only for HTTP APIs.
- maxAge 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.
- allowCredentials Boolean
- Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- allowHeaders List<String>
- Represents a collection of allowed headers. Supported only for HTTP APIs.
- allowMethods List<String>
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- allowOrigins List<String>
- Represents a collection of allowed origins. Supported only for HTTP APIs.
- exposeHeaders List<String>
- Represents a collection of exposed headers. Supported only for HTTP APIs.
- maxAge 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.