Class CfnCertificateAuthority.CrlConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateAuthority.CrlConfigurationProperty>
- Enclosing interface:
CfnCertificateAuthority.CrlConfigurationProperty
CfnCertificateAuthority.CrlConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.crlDistributionPointExtensionConfiguration
(IResolvable crlDistributionPointExtensionConfiguration) crlDistributionPointExtensionConfiguration
(CfnCertificateAuthority.CrlDistributionPointExtensionConfigurationProperty crlDistributionPointExtensionConfiguration) customCname
(String customCname) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getCustomCname()
Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getEnabled()
expirationInDays
(Number expirationInDays) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getExpirationInDays()
s3BucketName
(String s3BucketName) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getS3BucketName()
s3ObjectAcl
(String s3ObjectAcl) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getS3ObjectAcl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getEnabled()
- Parameters:
enabled
- Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. This parameter is required. You can use this value to enable certificate revocation for a new CA when you call theCreateCertificateAuthority
operation or for an existing CA when you call theUpdateCertificateAuthority
operation.- Returns:
this
-
enabled
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getEnabled()
- Parameters:
enabled
- Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. This parameter is required. You can use this value to enable certificate revocation for a new CA when you call theCreateCertificateAuthority
operation or for an existing CA when you call theUpdateCertificateAuthority
operation.- Returns:
this
-
crlDistributionPointExtensionConfiguration
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder crlDistributionPointExtensionConfiguration(IResolvable crlDistributionPointExtensionConfiguration) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getCrlDistributionPointExtensionConfiguration()
- Parameters:
crlDistributionPointExtensionConfiguration
- Configures the default behavior of the CRL Distribution Point extension for certificates issued by your CA. If this field is not provided, then the CRL Distribution Point extension will be present and contain the default CRL URL.- Returns:
this
-
crlDistributionPointExtensionConfiguration
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder crlDistributionPointExtensionConfiguration(CfnCertificateAuthority.CrlDistributionPointExtensionConfigurationProperty crlDistributionPointExtensionConfiguration) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getCrlDistributionPointExtensionConfiguration()
- Parameters:
crlDistributionPointExtensionConfiguration
- Configures the default behavior of the CRL Distribution Point extension for certificates issued by your CA. If this field is not provided, then the CRL Distribution Point extension will be present and contain the default CRL URL.- Returns:
this
-
customCname
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder customCname(String customCname) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getCustomCname()
- Parameters:
customCname
- Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public.The content of a Canonical Name (CNAME) record must conform to RFC2396 restrictions on the use of special characters in URIs. Additionally, the value of the CNAME must not include a protocol prefix such as "http://" or "https://".
- Returns:
this
-
expirationInDays
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder expirationInDays(Number expirationInDays) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getExpirationInDays()
- Parameters:
expirationInDays
- Validity period of the CRL in days.- Returns:
this
-
s3BucketName
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder s3BucketName(String s3BucketName) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getS3BucketName()
- Parameters:
s3BucketName
- Name of the S3 bucket that contains the CRL. If you do not provide a value for the CustomCname argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You can change the name of your bucket by calling the UpdateCertificateAuthority operation. You must specify a bucket policy that allows AWS Private CA to write the CRL to your bucket.The
S3BucketName
parameter must conform to the S3 bucket naming rules .- Returns:
this
-
s3ObjectAcl
@Stability(Stable) public CfnCertificateAuthority.CrlConfigurationProperty.Builder s3ObjectAcl(String s3ObjectAcl) Sets the value ofCfnCertificateAuthority.CrlConfigurationProperty.getS3ObjectAcl()
- Parameters:
s3ObjectAcl
- Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. If you choose PUBLIC_READ, the CRL will be accessible over the public internet. If you choose BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket can access the CRL, and your PKI clients may need an alternative method of access.If no value is specified, the default is PUBLIC_READ.
Note: This default can cause CA creation to fail in some circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3 account, then you must specify the value of this parameter as
BUCKET_OWNER_FULL_CONTROL
, and not doing so results in an error. If you have disabled BPA in S3, then you can specify eitherBUCKET_OWNER_FULL_CONTROL
orPUBLIC_READ
as the value.For more information, see Blocking public access to the S3 bucket .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificateAuthority.CrlConfigurationProperty>
- Returns:
- a new instance of
CfnCertificateAuthority.CrlConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-