Class CfnCertificateAuthority
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::ACMPCA::CertificateAuthority
.
Use the AWS::ACMPCA::CertificateAuthority
resource to create a private CA. Once the CA exists, you can use the AWS::ACMPCA::Certificate
resource to issue a new CA certificate. Alternatively, you can issue a CA certificate using an on-premises CA, and then use the AWS::ACMPCA::CertificateAuthorityActivation
resource to import the new CA certificate and activate the CA.
Before removing a
AWS::ACMPCA::CertificateAuthority
resource from the CloudFormation stack, disable the affected CA. Otherwise, the action will fail. You can disable the CA by removing its associatedAWS::ACMPCA::CertificateAuthorityActivation
resource from CloudFormation.
Example:
CfnCertificateAuthority cfnCertificateAuthority = CfnCertificateAuthority.Builder.create(this, "CA") .type("ROOT") .keyAlgorithm("RSA_2048") .signingAlgorithm("SHA256WITHRSA") .subject(SubjectProperty.builder() .country("US") .organization("string") .organizationalUnit("string") .distinguishedNameQualifier("string") .state("string") .commonName("123") .serialNumber("string") .locality("string") .title("string") .surname("string") .givenName("string") .initials("DG") .pseudonym("string") .generationQualifier("DBG") .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Provides access information used by theauthorityInfoAccess
andsubjectInfoAccess
extensions described in RFC 5280 .static interface
Describes the type and format of extension access.static final class
A fluent builder forCfnCertificateAuthority
.static interface
Contains configuration information for a certificate revocation list (CRL).static interface
Describes the certificate extensions to be added to the certificate signing request (CSR).static interface
Defines the X.500 relative distinguished name (RDN).static interface
Describes an Electronic Data Interchange (EDI) entity as described in as defined in Subject Alternative Name in RFC 5280.static interface
Describes an ASN.1 X.400GeneralName
as defined in RFC 5280 .static interface
Defines one or more purposes for which the key contained in the certificate can be used.static interface
Contains information to enable and configure Online Certificate Status Protocol (OCSP) for validating certificate revocation status.static interface
Defines a custom ASN.1 X.400GeneralName
using an object identifier (OID) and value.static interface
Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.static interface
ASN1 subject for the certificate authority.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnCertificateAuthority
(Construct scope, String id, CfnCertificateAuthorityProps props) Create a newAWS::ACMPCA::CertificateAuthority
.protected
CfnCertificateAuthority
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCertificateAuthority
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for the private CA that issued the certificate.The Base64 PEM-encoded certificate signing request (CSR) for your certificate authority certificate.Specifies information to be added to the extension section of the certificate signing request (CSR).Type of the public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.Specifies a cryptographic key management compliance standard used for handling CA keys.Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.Name of the algorithm your private CA uses to sign certificate requests.Structure that contains X.500 distinguished name information for your private CA.getTags()
Key-value pairs that will be attached to the new private CA.getType()
Type of your private CA.Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCsrExtensions
(IResolvable value) Specifies information to be added to the extension section of the certificate signing request (CSR).void
Specifies information to be added to the extension section of the certificate signing request (CSR).void
setKeyAlgorithm
(String value) Type of the public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.void
Specifies a cryptographic key management compliance standard used for handling CA keys.void
Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.void
Certificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.void
setSigningAlgorithm
(String value) Name of the algorithm your private CA uses to sign certificate requests.void
setSubject
(IResolvable value) Structure that contains X.500 distinguished name information for your private CA.void
Structure that contains X.500 distinguished name information for your private CA.void
Type of your private CA.void
setUsageMode
(String value) Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCertificateAuthority
protected CfnCertificateAuthority(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCertificateAuthority
protected CfnCertificateAuthority(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCertificateAuthority
@Stability(Stable) public CfnCertificateAuthority(@NotNull Construct scope, @NotNull String id, @NotNull CfnCertificateAuthorityProps props) Create a newAWS::ACMPCA::CertificateAuthority
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) for the private CA that issued the certificate. -
getAttrCertificateSigningRequest
The Base64 PEM-encoded certificate signing request (CSR) for your certificate authority certificate. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Key-value pairs that will be attached to the new private CA.You can associate up to 50 tags with a private CA. For information using tags with IAM to manage permissions, see Controlling Access Using IAM Tags .
-
getKeyAlgorithm
Type of the public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.When you create a subordinate CA, you must use a key algorithm supported by the parent CA.
-
setKeyAlgorithm
Type of the public key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.When you create a subordinate CA, you must use a key algorithm supported by the parent CA.
-
getSigningAlgorithm
Name of the algorithm your private CA uses to sign certificate requests.This parameter should not be confused with the
SigningAlgorithm
parameter used to sign certificates when they are issued. -
setSigningAlgorithm
Name of the algorithm your private CA uses to sign certificate requests.This parameter should not be confused with the
SigningAlgorithm
parameter used to sign certificates when they are issued. -
getSubject
Structure that contains X.500 distinguished name information for your private CA. -
setSubject
Structure that contains X.500 distinguished name information for your private CA. -
setSubject
Structure that contains X.500 distinguished name information for your private CA. -
getType
Type of your private CA. -
setType
Type of your private CA. -
getCsrExtensions
Specifies information to be added to the extension section of the certificate signing request (CSR). -
setCsrExtensions
Specifies information to be added to the extension section of the certificate signing request (CSR). -
setCsrExtensions
@Stability(Stable) public void setCsrExtensions(@Nullable CfnCertificateAuthority.CsrExtensionsProperty value) Specifies information to be added to the extension section of the certificate signing request (CSR). -
getKeyStorageSecurityStandard
Specifies a cryptographic key management compliance standard used for handling CA keys.Default: FIPS_140_2_LEVEL_3_OR_HIGHER
Some AWS Regions do not support the default. When creating a CA in these Regions, you must provide
FIPS_140_2_LEVEL_2_OR_HIGHER
as the argument forKeyStorageSecurityStandard
. Failure to do this results in anInvalidArgsException
with the message, "A certificate authority cannot be created in this region with the specified security standard."For information about security standard support in various Regions, see Storage and security compliance of AWS Private CA private keys .
-
setKeyStorageSecurityStandard
Specifies a cryptographic key management compliance standard used for handling CA keys.Default: FIPS_140_2_LEVEL_3_OR_HIGHER
Some AWS Regions do not support the default. When creating a CA in these Regions, you must provide
FIPS_140_2_LEVEL_2_OR_HIGHER
as the argument forKeyStorageSecurityStandard
. Failure to do this results in anInvalidArgsException
with the message, "A certificate authority cannot be created in this region with the specified security standard."For information about security standard support in various Regions, see Storage and security compliance of AWS Private CA private keys .
-
getRevocationConfiguration
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 apply to revocation configurations.
- A configuration disabling CRLs or OCSP must contain only the
Enabled=False
parameter, and will fail if other parameters such asCustomCname
orExpirationInDays
are included. - In a CRL configuration, the
S3BucketName
parameter 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://".
- A configuration disabling CRLs or OCSP must contain only the
-
setRevocationConfiguration
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 apply to revocation configurations.
- A configuration disabling CRLs or OCSP must contain only the
Enabled=False
parameter, and will fail if other parameters such asCustomCname
orExpirationInDays
are included. - In a CRL configuration, the
S3BucketName
parameter 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://".
- A configuration disabling CRLs or OCSP must contain only the
-
setRevocationConfiguration
@Stability(Stable) public void setRevocationConfiguration(@Nullable CfnCertificateAuthority.RevocationConfigurationProperty value) 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 apply to revocation configurations.
- A configuration disabling CRLs or OCSP must contain only the
Enabled=False
parameter, and will fail if other parameters such asCustomCname
orExpirationInDays
are included. - In a CRL configuration, the
S3BucketName
parameter 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://".
- A configuration disabling CRLs or OCSP must contain only the
-
getUsageMode
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.Short-lived certificate validity is limited to seven days.
The default value is GENERAL_PURPOSE.
-
setUsageMode
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.Short-lived certificate validity is limited to seven days.
The default value is GENERAL_PURPOSE.
-