v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1437207152.4 KB

Creates a new domain association for an Amplify app. This action associates a custom domain with the Amplify app

post/apps/{appId}/domains

Path parameters

appIdstring required

The unique ID for an Amplify app.

Request body

domainNamestring required

The domain name for the domain association.

enableAutoSubDomainboolean

Enables the automated creation of subdomains for branches.

autoSubDomainCreationPatternsAutoSubDomainCreationPattern[]

Sets the branch patterns for automatic subdomain creation.

autoSubDomainIAMRolestring

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

Response

Success