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.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()
-
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. Length Constraints: Minimum length of 1. Maximum length of 20.Pattern: d[a-z0-9]+
- Returns:
this
-
domainName
Sets the value ofCfnDomainProps.getDomainName()- Parameters:
domainName- The domain name for the domain association. This parameter is required. 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])(.)?$
- 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 (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.+
- 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
-
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
-