@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.035Z") @Stability(value=Stable) public class CfnDomain extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDomain.Builder
A fluent builder for
CfnDomain. |
static interface |
CfnDomain.SubDomainSettingProperty
The SubDomainSetting property type enables you to connect a subdomain (for example, example.exampledomain.com) to a specific branch.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDomain(software.constructs.Construct scope,
String id,
CfnDomainProps props)
Create a new `AWS::Amplify::Domain`.
|
protected |
CfnDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDomain(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId()
The unique ID for an Amplify app.
|
String |
getAttrArn()
ARN for the Domain Association.
|
List<String> |
getAttrAutoSubDomainCreationPatterns()
Branch patterns for the automatically created subdomain.
|
String |
getAttrAutoSubDomainIamRole()
The IAM service role for the subdomain.
|
String |
getAttrCertificateRecord()
DNS Record for certificate verification.
|
String |
getAttrDomainName()
Name of the domain.
|
String |
getAttrDomainStatus()
Status for the Domain Association.
|
IResolvable |
getAttrEnableAutoSubDomain()
Specifies whether the automated creation of subdomains for branches is enabled.
|
String |
getAttrStatusReason()
Reason for the current status of the domain.
|
List<String> |
getAutoSubDomainCreationPatterns()
Sets the branch patterns for automatic subdomain creation.
|
String |
getAutoSubDomainIamRole()
The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDomainName()
The domain name for the domain association.
|
Object |
getEnableAutoSubDomain()
Enables the automated creation of subdomains for branches.
|
Object |
getSubDomainSettings()
The setting for the subdomain.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAppId(String value)
The unique ID for an Amplify app.
|
void |
setAutoSubDomainCreationPatterns(List<String> value)
Sets the branch patterns for automatic subdomain creation.
|
void |
setAutoSubDomainIamRole(String value)
The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
|
void |
setDomainName(String value)
The domain name for the domain association.
|
void |
setEnableAutoSubDomain(Boolean value)
Enables the automated creation of subdomains for branches.
|
void |
setEnableAutoSubDomain(IResolvable value)
Enables the automated creation of subdomains for branches.
|
void |
setSubDomainSettings(IResolvable value)
The setting for the subdomain.
|
void |
setSubDomainSettings(List<Object> value)
The setting for the subdomain.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDomain(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDomain(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDomainProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public List<String> getAttrAutoSubDomainCreationPatterns()
@Stability(value=Stable) @NotNull public String getAttrAutoSubDomainIamRole()
@Stability(value=Stable) @NotNull public String getAttrCertificateRecord()
@Stability(value=Stable) @NotNull public String getAttrDomainName()
@Stability(value=Stable) @NotNull public String getAttrDomainStatus()
@Stability(value=Stable) @NotNull public IResolvable getAttrEnableAutoSubDomain()
@Stability(value=Stable) @NotNull public String getAttrStatusReason()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getAppId()
Length Constraints: Minimum length of 1. Maximum length of 20.
Pattern: d[a-z0-9]+
@Stability(value=Stable)
public void setAppId(@NotNull
String value)
Length Constraints: Minimum length of 1. Maximum length of 20.
Pattern: d[a-z0-9]+
@Stability(value=Stable) @NotNull public String getDomainName()
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])(.)?$
@Stability(value=Stable)
public void setDomainName(@NotNull
String value)
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])(.)?$
@Stability(value=Stable) @NotNull public Object getSubDomainSettings()
@Stability(value=Stable)
public void setSubDomainSettings(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setSubDomainSettings(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public List<String> getAutoSubDomainCreationPatterns()
@Stability(value=Stable)
public void setAutoSubDomainCreationPatterns(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public String getAutoSubDomainIamRole()
Length Constraints: Maximum length of 1000.
Pattern: ^$|^arn:aws:iam::\d{12}:role.+
@Stability(value=Stable)
public void setAutoSubDomainIamRole(@Nullable
String value)
Length Constraints: Maximum length of 1000.
Pattern: ^$|^arn:aws:iam::\d{12}:role.+
@Stability(value=Stable) @Nullable public Object getEnableAutoSubDomain()
@Stability(value=Stable)
public void setEnableAutoSubDomain(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEnableAutoSubDomain(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.