AWS::ApiGateway::DomainNameThe AWS::ApiGateway::DomainName resource specifies a public custom domain name for your API in API Gateway. To create a custom domain name for private APIs, use [AWS::ApiGateway::DomainNameV2](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainnamev2.html). You can use a custom domain name to provide a URL that's more intuitive and easier to recall. For more information about using custom domain names, see [Set up Custom Domain Name for an API i...
10 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
CertificateArn | string | |
DomainName | string | Create-only |
EndpointAccessMode | string | |
EndpointConfiguration | EndpointConfiguration | |
MutualTlsAuthentication | MutualTlsAuthentication | |
OwnershipVerificationCertificateArn | string | |
RegionalCertificateArn | string | |
RoutingMode | string | |
SecurityPolicy | string | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
DistributionDomainName | string | - |
DistributionHostedZoneId | string | - |
DomainNameArn | string | - |
RegionalDomainName | string | - |
RegionalHostedZoneId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::DomainName
Resources:
MyResource:
Type: AWS::ApiGateway::DomainName
Properties:
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:PUTapigateway:GETapigateway:GETapigateway:GETapigateway:PUTapigateway:PATCHapigateway:GETapigateway:DELETEapigateway:GETEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicDomainNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DomainName