interface CfnDomainProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Amplify.CfnDomainProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsamplify#CfnDomainProps |
Java | software.amazon.awscdk.services.amplify.CfnDomainProps |
Python | aws_cdk.aws_amplify.CfnDomainProps |
TypeScript | aws-cdk-lib » aws_amplify » CfnDomainProps |
Properties for defining a CfnDomain
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-domain.html
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',
certificateSettings: {
certificateType: 'certificateType',
customCertificateArn: 'customCertificateArn',
},
enableAutoSubDomain: false,
};
Properties
Name | Type | Description |
---|---|---|
app | string | The unique ID for an Amplify app. |
domain | string | The domain name for the domain association. |
sub | IResolvable | IResolvable | Sub [] | The setting for the subdomain. |
auto | string[] | Sets the branch patterns for automatic subdomain creation. |
auto | string | The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. |
certificate | IResolvable | Certificate | The type of SSL/TLS certificate to use for your custom domain. |
enable | boolean | IResolvable | Enables the automated creation of subdomains for branches. |
appId
Type:
string
The unique ID for an Amplify app.
domainName
Type:
string
The domain name for the domain association.
subDomainSettings
Type:
IResolvable
|
IResolvable
|
Sub
[]
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 (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
certificateSettings?
Type:
IResolvable
|
Certificate
(optional)
The 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.
enableAutoSubDomain?
Type:
boolean |
IResolvable
(optional)
Enables the automated creation of subdomains for branches.