AWS::Amplify::Domain - AWS CloudFormation

AWS::Amplify::Domain

The AWS::Amplify::Domain resource allows you to connect a custom domain to your app.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Amplify::Domain", "Properties" : { "AppId" : String, "AutoSubDomainCreationPatterns" : [ String, ... ], "AutoSubDomainIAMRole" : String, "DomainName" : String, "EnableAutoSubDomain" : Boolean, "SubDomainSettings" : [ SubDomainSetting, ... ] } }

YAML

Type: AWS::Amplify::Domain Properties: AppId: String AutoSubDomainCreationPatterns: - String AutoSubDomainIAMRole: String DomainName: String EnableAutoSubDomain: Boolean SubDomainSettings: - SubDomainSetting

Properties

AppId

The unique ID for an Amplify app.

Required: Yes

Type: String

Update requires: Replacement

AutoSubDomainCreationPatterns

Sets the branch patterns for automatic subdomain creation.

Required: No

Type: List of String

Update requires: No interruption

AutoSubDomainIAMRole

The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.

Required: No

Type: String

Update requires: No interruption

DomainName

The domain name for the domain association.

Required: Yes

Type: String

Update requires: Replacement

EnableAutoSubDomain

Enables the automated creation of subdomains for branches.

Required: No

Type: Boolean

Update requires: No interruption

SubDomainSettings

The setting for the subdomain.

Required: Yes

Type: List of SubDomainSetting

Update requires: No interruption

Return values

Fn::GetAtt

Arn

ARN for the Domain Association.

AutoSubDomainCreationPatterns

Branch patterns for the automatically created subdomain.

AutoSubDomainIAMRole

The IAM service role for the subdomain.

CertificateRecord

DNS Record for certificate verification.

DomainName

Name of the domain.

DomainStatus

Status for the Domain Association.

EnableAutoSubDomain

Specifies whether the automated creation of subdomains for branches is enabled.

StatusReason

Reason for the current status of the domain.