AWS::ApiGatewayV2::ApiMappingThe AWS::ApiGatewayV2::ApiMapping resource contains an API mapping. An API mapping relates a path of your custom domain name to a stage of your API. A custom domain name can have multiple API mappings, but the paths can't overlap. A custom domain can map only to APIs of the same protocol type. For more information, see [CreateApiMapping](https://docs.aws.amazon.com/apigatewayv2/latest/api-reference/domainnames-domainname-apimappings.html#CreateApiMapping) in the *Amazon API Gateway V2 API...
4 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ApiId | string | Required |
DomainName | string | RequiredCreate-only |
Stage | string | Required |
ApiMappingKey | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ApiMappingId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGatewayV2::ApiMapping
Resources:
MyResource:
Type: AWS::ApiGatewayV2::ApiMapping
Properties:
DomainName: "my-domainname"
Stage: "value"
ApiId: "my-apiid"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:PATCHapigateway:GETapigateway:PUTapigateway:GETapigateway:DELETEapigateway:GETOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterApiMappingIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DomainName