RevocationConfigurationProperty
Struct External
Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions. Your private certificate authority (CA) can configure Online Certificate Status Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). OCSP returns validation information about certificates as requested by clients, and a CRL contains an updated list of certificates revoked by your CA. For more information, see RevokeCertificate in the AWS Private CA API Reference and Setting up a certificate revocation method in the AWS Private CA User Guide .
The following requirements and constraints apply to revocation configurations.
- A configuration disabling CRLs or OCSP must contain only the
Enabled=Falseparameter, and will fail if other parameters such asCustomCnameorExpirationInDaysare included. - In a CRL configuration, the
S3BucketNameparameter must conform to the Amazon S3 bucket naming rules . - A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use of special characters in a CNAME.
- In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol prefix such as "http://" or "https://".
- To revoke a certificate, delete the resource from your template, and call the AWS Private CA RevokeCertificate API and specify the resource's certificate authority ARN.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_acmpca as acmpca } from 'aws-cdk-lib';
const revocationConfigurationProperty: acmpca.CfnCertificateAuthority.RevocationConfigurationProperty = {
crlConfiguration: {
enabled: false,
// the properties below are optional
crlDistributionPointExtensionConfiguration: {
omitExtension: false,
},
crlType: 'crlType',
customCname: 'customCname',
customPath: 'customPath',
expirationInDays: 123,
s3BucketName: 's3BucketName',
s3ObjectAcl: 's3ObjectAcl',
},
ocspConfiguration: {
enabled: false,
// the properties below are optional
ocspCustomCname: 'ocspCustomCname',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_acmpca as acmpca
revocation_configuration_property = acmpca.CfnCertificateAuthority.RevocationConfigurationProperty(
crl_configuration=acmpca.CfnCertificateAuthority.CrlConfigurationProperty(
enabled=False,
# the properties below are optional
crl_distribution_point_extension_configuration=acmpca.CfnCertificateAuthority.CrlDistributionPointExtensionConfigurationProperty(
omit_extension=False
),
crl_type="crlType",
custom_cname="customCname",
custom_path="customPath",
expiration_in_days=123,
s3_bucket_name="s3BucketName",
s3_object_acl="s3ObjectAcl"
),
ocsp_configuration=acmpca.CfnCertificateAuthority.OcspConfigurationProperty(
enabled=False,
# the properties below are optional
ocsp_custom_cname="ocspCustomCname"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.acmpca.*;
RevocationConfigurationProperty revocationConfigurationProperty = RevocationConfigurationProperty.builder()
.crlConfiguration(CrlConfigurationProperty.builder()
.enabled(false)
// the properties below are optional
.crlDistributionPointExtensionConfiguration(CrlDistributionPointExtensionConfigurationProperty.builder()
.omitExtension(false)
.build())
.crlType("crlType")
.customCname("customCname")
.customPath("customPath")
.expirationInDays(123)
.s3BucketName("s3BucketName")
.s3ObjectAcl("s3ObjectAcl")
.build())
.ocspConfiguration(OcspConfigurationProperty.builder()
.enabled(false)
// the properties below are optional
.ocspCustomCname("ocspCustomCname")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ACMPCA;
var revocationConfigurationProperty = new RevocationConfigurationProperty {
CrlConfiguration = new CrlConfigurationProperty {
Enabled = false,
// the properties below are optional
CrlDistributionPointExtensionConfiguration = new CrlDistributionPointExtensionConfigurationProperty {
OmitExtension = false
},
CrlType = "crlType",
CustomCname = "customCname",
CustomPath = "customPath",
ExpirationInDays = 123,
S3BucketName = "s3BucketName",
S3ObjectAcl = "s3ObjectAcl"
},
OcspConfiguration = new OcspConfigurationProperty {
Enabled = false,
// the properties below are optional
OcspCustomCname = "ocspCustomCname"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
revocationConfigurationProperty := &RevocationConfigurationProperty{
CrlConfiguration: &CrlConfigurationProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
CrlDistributionPointExtensionConfiguration: &CrlDistributionPointExtensionConfigurationProperty{
OmitExtension: jsii.Boolean(false),
},
CrlType: jsii.String("crlType"),
CustomCname: jsii.String("customCname"),
CustomPath: jsii.String("customPath"),
ExpirationInDays: jsii.Number(123),
S3BucketName: jsii.String("s3BucketName"),
S3ObjectAcl: jsii.String("s3ObjectAcl"),
},
OcspConfiguration: &OcspConfigurationProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
OcspCustomCname: jsii.String("ocspCustomCname"),
},
}
Properties
crlConfigurationoptionalIResolvable | CfnCertificateAuthority.crl_configurationoptionaltyping.Union[IResolvable, CrlConfigurationProperty]crlConfigurationoptionalIResolvableCrlConfigurationoptionalIResolvableCrlConfigurationoptionalinterface{} #Configuration of the certificate revocation list (CRL), if any, maintained by your private CA.
ocspConfigurationoptionalIResolvable | CfnCertificateAuthority.ocsp_configurationoptionaltyping.Union[IResolvable, OcspConfigurationProperty]ocspConfigurationoptionalIResolvableOcspConfigurationoptionalIResolvableOcspConfigurationoptionalinterface{} #Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained by your private CA.