Class CfnDomain.CertificateSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.CfnDomain.CertificateSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.CertificateSettingsProperty>
- Enclosing interface:
CfnDomain.CertificateSettingsProperty
@Stability(Stable)
public static final class CfnDomain.CertificateSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.CertificateSettingsProperty>
A builder for
CfnDomain.CertificateSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.certificateType
(String certificateType) Sets the value ofCfnDomain.CertificateSettingsProperty.getCertificateType()
customCertificateArn
(String customCertificateArn) Sets the value ofCfnDomain.CertificateSettingsProperty.getCustomCertificateArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateType
@Stability(Stable) public CfnDomain.CertificateSettingsProperty.Builder certificateType(String certificateType) Sets the value ofCfnDomain.CertificateSettingsProperty.getCertificateType()
- Parameters:
certificateType
- The certificate type. SpecifyAMPLIFY_MANAGED
to use the default certificate that Amplify provisions for you.Specify
CUSTOM
to use your own certificate that you have already added to AWS Certificate Manager in your AWS account . Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into AWS Certificate Manager in the ACM User guide .- Returns:
this
-
customCertificateArn
@Stability(Stable) public CfnDomain.CertificateSettingsProperty.Builder customCertificateArn(String customCertificateArn) Sets the value ofCfnDomain.CertificateSettingsProperty.getCustomCertificateArn()
- Parameters:
customCertificateArn
- The Amazon resource name (ARN) for the custom certificate that you have already added to AWS Certificate Manager in your AWS account . This field is required only when the certificate type isCUSTOM
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.CertificateSettingsProperty>
- Returns:
- a new instance of
CfnDomain.CertificateSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-