Class CfnDomain
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.amplify.CfnDomain
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.121Z")
@Stability(Stable)
public class CfnDomain
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Amplify::Domain.
The AWS::Amplify::Domain resource allows you to connect a custom domain to your app.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplify.*;
CfnDomain cfnDomain = CfnDomain.Builder.create(this, "MyCfnDomain")
.appId("appId")
.domainName("domainName")
.subDomainSettings(List.of(SubDomainSettingProperty.builder()
.branchName("branchName")
.prefix("prefix")
.build()))
// the properties below are optional
.autoSubDomainCreationPatterns(List.of("autoSubDomainCreationPatterns"))
.autoSubDomainIamRole("autoSubDomainIamRole")
.enableAutoSubDomain(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDomain.static interfaceThe SubDomainSetting property type enables you to connect a subdomain (for example, example.exampledomain.com) to a specific branch.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()The unique ID for an Amplify app.ARN for the Domain Association.Branch patterns for the automatically created subdomain.The IAM service role for the subdomain.DNS Record for certificate verification.Name of the domain.Status for the Domain Association.Specifies whether the automated creation of subdomains for branches is enabled.Reason for the current status of the domain.Sets the branch patterns for automatic subdomain creation.The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.The domain name for the domain association.Enables the automated creation of subdomains for branches.The setting for the subdomain.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe unique ID for an Amplify app.voidSets the branch patterns for automatic subdomain creation.voidsetAutoSubDomainIamRole(String value) The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.voidsetDomainName(String value) The domain name for the domain association.voidsetEnableAutoSubDomain(Boolean value) Enables the automated creation of subdomains for branches.voidEnables the automated creation of subdomains for branches.voidsetSubDomainSettings(List<Object> value) The setting for the subdomain.voidsetSubDomainSettings(IResolvable value) The setting for the subdomain.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDomain
protected CfnDomain(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDomain
protected CfnDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDomain
@Stability(Stable) public CfnDomain(@NotNull Construct scope, @NotNull String id, @NotNull CfnDomainProps props) Create a newAWS::Amplify::Domain.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
ARN for the Domain Association. -
getAttrAutoSubDomainCreationPatterns
Branch patterns for the automatically created subdomain. -
getAttrAutoSubDomainIamRole
The IAM service role for the subdomain. -
getAttrCertificateRecord
DNS Record for certificate verification. -
getAttrDomainName
Name of the domain. -
getAttrDomainStatus
Status for the Domain Association. -
getAttrEnableAutoSubDomain
Specifies whether the automated creation of subdomains for branches is enabled. -
getAttrStatusReason
Reason for the current status of the domain. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAppId
The unique ID for an Amplify app.Length Constraints: Minimum length of 1. Maximum length of 20.
Pattern: d[a-z0-9]+
-
setAppId
The unique ID for an Amplify app.Length Constraints: Minimum length of 1. Maximum length of 20.
Pattern: d[a-z0-9]+
-
getDomainName
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])(.)?$
-
setDomainName
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])(.)?$
-
getSubDomainSettings
The setting for the subdomain. -
setSubDomainSettings
The setting for the subdomain. -
setSubDomainSettings
The setting for the subdomain. -
getAutoSubDomainCreationPatterns
Sets the branch patterns for automatic subdomain creation. -
setAutoSubDomainCreationPatterns
Sets the branch patterns for automatic subdomain creation. -
getAutoSubDomainIamRole
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.+
-
setAutoSubDomainIamRole
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.+
-
getEnableAutoSubDomain
Enables the automated creation of subdomains for branches. -
setEnableAutoSubDomain
Enables the automated creation of subdomains for branches. -
setEnableAutoSubDomain
Enables the automated creation of subdomains for branches.
-