AWS::Amplify::DomainSpecifies the AWS::Amplify::Domain resource that enables you to connect a custom domain to your app.
import { CfnDomain } from 'aws-cdk-lib/aws-amplify';Or use the module namespace:
import * as amplify from 'aws-cdk-lib/aws-amplify';
// amplify.CfnDomainConfiguration passed to the constructor as CfnDomainProps.
appIdRequiredstringThe unique ID for an Amplify app.
domainNameRequiredstringThe domain name for the domain association.
subDomainSettingsRequiredIResolvable | IResolvable | SubDomainSettingProperty[]The setting for the subdomain.
autoSubDomainCreationPatternsOptionalstring[]Sets the branch patterns for automatic subdomain creation.
autoSubDomainIamRoleOptionalstring | IRoleRefThe required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
certificateSettingsOptionalIResolvable | CertificateSettingsPropertyThe type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you.
enableAutoSubDomainOptionalboolean | IResolvableEnables the automated creation of subdomains for branches.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-amplifyAWS::Amplify::Domain