Class CfnDomain
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.amplify.CfnDomain
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-19T18:01:28.294Z")
@Stability(Stable)
public class CfnDomain
extends CfnResource
implements IInspectable
Specifies the AWS::Amplify::Domain resource that enables 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") .certificateSettings(CertificateSettingsProperty.builder() .certificateType("certificateType") .customCertificateArn("customCertificateArn") .build()) .enableAutoSubDomain(false) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDomain
.static interface
Describes the SSL/TLS certificate for the domain association.static interface
The type of SSL/TLS certificate to use for your custom domain.static interface
The 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnDomain
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDomain
(software.amazon.jsii.JsiiObjectRef objRef) CfnDomain
(software.constructs.Construct scope, String id, CfnDomainProps props) -
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.The status of the domain update operation that is currently in progress.Sets the branch patterns for automatic subdomain creation.The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.The type of SSL/TLS certificate to use for your custom domain.The domain name for the domain association.Enables the automated creation of subdomains for branches.The setting for the subdomain.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The unique ID for an Amplify app.void
Sets the branch patterns for automatic subdomain creation.void
setAutoSubDomainIamRole
(String value) The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.void
The type of SSL/TLS certificate to use for your custom domain.void
The type of SSL/TLS certificate to use for your custom domain.void
setDomainName
(String value) The domain name for the domain association.void
setEnableAutoSubDomain
(Boolean value) Enables the automated creation of subdomains for branches.void
Enables the automated creation of subdomains for branches.void
setSubDomainSettings
(List<Object> value) The setting for the subdomain.void
setSubDomainSettings
(IResolvable value) The setting for the subdomain.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDomainProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in 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. -
getAttrCertificate
-
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. -
getAttrUpdateStatus
The status of the domain update operation that is currently in progress.The following list describes the valid update states.
- REQUESTING_CERTIFICATE - The certificate is in the process of being updated.
- PENDING_VERIFICATION - Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE - Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT - Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME - Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on RouteĀ 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide .
- UPDATE_COMPLETE - The certificate has been associated with a domain.
- UPDATE_FAILED - The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAppId
The unique ID for an Amplify app. -
setAppId
The unique ID for an Amplify app. -
getDomainName
The domain name for the domain association. -
setDomainName
The domain name for the domain association. -
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 (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. -
setAutoSubDomainIamRole
The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. -
getCertificateSettings
The type of SSL/TLS certificate to use for your custom domain. -
setCertificateSettings
The type of SSL/TLS certificate to use for your custom domain. -
setCertificateSettings
@Stability(Stable) public void setCertificateSettings(@Nullable CfnDomain.CertificateSettingsProperty value) The type of SSL/TLS certificate to use for your custom domain. -
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.
-