aws-cdk-lib.aws_amplify.CfnDomainProps

interface CfnDomainProps

LanguageType name
.NETAmazon.CDK.AWS.Amplify.CfnDomainProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsamplify#CfnDomainProps
Javasoftware.amazon.awscdk.services.amplify.CfnDomainProps
Pythonaws_cdk.aws_amplify.CfnDomainProps
TypeScript aws-cdk-lib » aws_amplify » CfnDomainProps

Properties for defining a CfnDomain.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplify as amplify } from 'aws-cdk-lib';
const cfnDomainProps: amplify.CfnDomainProps = {
  appId: 'appId',
  domainName: 'domainName',
  subDomainSettings: [{
    branchName: 'branchName',
    prefix: 'prefix',
  }],

  // the properties below are optional
  autoSubDomainCreationPatterns: ['autoSubDomainCreationPatterns'],
  autoSubDomainIamRole: 'autoSubDomainIamRole',
  enableAutoSubDomain: false,
};

Properties

NameTypeDescription
appIdstringThe unique ID for an Amplify app.
domainNamestringThe domain name for the domain association.
subDomainSettingsIResolvable | IResolvable | SubDomainSettingProperty[]The setting for the subdomain.
autoSubDomainCreationPatterns?string[]Sets the branch patterns for automatic subdomain creation.
autoSubDomainIamRole?stringThe required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
enableAutoSubDomain?boolean | IResolvableEnables the automated creation of subdomains for branches.

appId

Type: string

The unique ID for an Amplify app.

Length Constraints: Minimum length of 1. Maximum length of 20.

Pattern: d[a-z0-9]+


domainName

Type: string

The domain name for the domain association.

Length Constraints: Maximum length of 255.

Pattern: ^(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9]).)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])(.)?$


subDomainSettings

Type: IResolvable | IResolvable | SubDomainSettingProperty[]

The setting for the subdomain.


autoSubDomainCreationPatterns?

Type: string[] (optional)

Sets the branch patterns for automatic subdomain creation.


autoSubDomainIamRole?

Type: string (optional)

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

Length Constraints: Maximum length of 1000.

Pattern: ^$|^arn:aws:iam::\d{12}:role.+


enableAutoSubDomain?

Type: boolean | IResolvable (optional)

Enables the automated creation of subdomains for branches.