Class CfnDomainProps.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.CfnDomainProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainProps>
- Enclosing interface:
CfnDomainProps
@Stability(Stable)
public static final class CfnDomainProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainProps>
A builder for
CfnDomainProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDomainProps.getAppId()autoSubDomainCreationPatterns(List<String> autoSubDomainCreationPatterns) Sets the value ofCfnDomainProps.getAutoSubDomainCreationPatterns()autoSubDomainIamRole(String autoSubDomainIamRole) Sets the value ofCfnDomainProps.getAutoSubDomainIamRole()build()Builds the configured instance.certificate(IResolvable certificate) Sets the value ofCfnDomainProps.getCertificate()certificate(CfnDomain.CertificateProperty certificate) Sets the value ofCfnDomainProps.getCertificate()certificateSettings(IResolvable certificateSettings) Sets the value ofCfnDomainProps.getCertificateSettings()certificateSettings(CfnDomain.CertificateSettingsProperty certificateSettings) Sets the value ofCfnDomainProps.getCertificateSettings()domainName(String domainName) Sets the value ofCfnDomainProps.getDomainName()enableAutoSubDomain(Boolean enableAutoSubDomain) Sets the value ofCfnDomainProps.getEnableAutoSubDomain()enableAutoSubDomain(IResolvable enableAutoSubDomain) Sets the value ofCfnDomainProps.getEnableAutoSubDomain()subDomainSettings(List<? extends Object> subDomainSettings) Sets the value ofCfnDomainProps.getSubDomainSettings()subDomainSettings(IResolvable subDomainSettings) Sets the value ofCfnDomainProps.getSubDomainSettings()updateStatus(String updateStatus) Sets the value ofCfnDomainProps.getUpdateStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appId
Sets the value ofCfnDomainProps.getAppId()- Parameters:
appId- The unique ID for an Amplify app. This parameter is required.- Returns:
this
-
domainName
Sets the value ofCfnDomainProps.getDomainName()- Parameters:
domainName- The domain name for the domain association. This parameter is required.- Returns:
this
-
subDomainSettings
Sets the value ofCfnDomainProps.getSubDomainSettings()- Parameters:
subDomainSettings- The setting for the subdomain. This parameter is required.- Returns:
this
-
subDomainSettings
@Stability(Stable) public CfnDomainProps.Builder subDomainSettings(List<? extends Object> subDomainSettings) Sets the value ofCfnDomainProps.getSubDomainSettings()- Parameters:
subDomainSettings- The setting for the subdomain. This parameter is required.- Returns:
this
-
autoSubDomainCreationPatterns
@Stability(Stable) public CfnDomainProps.Builder autoSubDomainCreationPatterns(List<String> autoSubDomainCreationPatterns) Sets the value ofCfnDomainProps.getAutoSubDomainCreationPatterns()- Parameters:
autoSubDomainCreationPatterns- Sets the branch patterns for automatic subdomain creation.- Returns:
this
-
autoSubDomainIamRole
Sets the value ofCfnDomainProps.getAutoSubDomainIamRole()- Parameters:
autoSubDomainIamRole- The required AWS Identity and Access Management (IAMlong) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.- Returns:
this
-
certificate
Sets the value ofCfnDomainProps.getCertificate()- Parameters:
certificate- Describes the SSL/TLS certificate for the domain association. This can be your own custom certificate or the default certificate that Amplify provisions for you.If you are updating your domain to use a different certificate,
Certificatepoints to the new certificate that is being created instead of the current active certificate. Otherwise,Certificatepoints to the current active certificate.- Returns:
this
-
certificate
@Stability(Stable) public CfnDomainProps.Builder certificate(CfnDomain.CertificateProperty certificate) Sets the value ofCfnDomainProps.getCertificate()- Parameters:
certificate- Describes the SSL/TLS certificate for the domain association. This can be your own custom certificate or the default certificate that Amplify provisions for you.If you are updating your domain to use a different certificate,
Certificatepoints to the new certificate that is being created instead of the current active certificate. Otherwise,Certificatepoints to the current active certificate.- Returns:
this
-
certificateSettings
@Stability(Stable) public CfnDomainProps.Builder certificateSettings(IResolvable certificateSettings) Sets the value ofCfnDomainProps.getCertificateSettings()- Parameters:
certificateSettings- 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.- Returns:
this
-
certificateSettings
@Stability(Stable) public CfnDomainProps.Builder certificateSettings(CfnDomain.CertificateSettingsProperty certificateSettings) Sets the value ofCfnDomainProps.getCertificateSettings()- Parameters:
certificateSettings- 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.- Returns:
this
-
enableAutoSubDomain
Sets the value ofCfnDomainProps.getEnableAutoSubDomain()- Parameters:
enableAutoSubDomain- Enables the automated creation of subdomains for branches.- Returns:
this
-
enableAutoSubDomain
@Stability(Stable) public CfnDomainProps.Builder enableAutoSubDomain(IResolvable enableAutoSubDomain) Sets the value ofCfnDomainProps.getEnableAutoSubDomain()- Parameters:
enableAutoSubDomain- Enables the automated creation of subdomains for branches.- Returns:
this
-
updateStatus
Sets the value ofCfnDomainProps.getUpdateStatus()- Parameters:
updateStatus- 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainProps>- Returns:
- a new instance of
CfnDomainProps - Throws:
NullPointerException- if any required attribute was not provided
-