Class CfnCertificate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.acmpca.CfnCertificate
- All Implemented Interfaces:
IInspectable,ICertificateRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:29.972Z")
@Stability(Stable)
public class CfnCertificate
extends CfnResource
implements IInspectable, ICertificateRef
The
AWS::ACMPCA::Certificate resource is used to issue a certificate using your private certificate authority.
For more information, see the IssueCertificate action.
Example:
// 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.*;
CfnCertificate cfnCertificate = CfnCertificate.Builder.create(this, "MyCfnCertificate")
.certificateAuthorityArn("certificateAuthorityArn")
.certificateSigningRequest("certificateSigningRequest")
.signingAlgorithm("signingAlgorithm")
.validity(ValidityProperty.builder()
.type("type")
.value(123)
.build())
// the properties below are optional
.apiPassthrough(ApiPassthroughProperty.builder()
.extensions(ExtensionsProperty.builder()
.certificatePolicies(List.of(PolicyInformationProperty.builder()
.certPolicyId("certPolicyId")
// the properties below are optional
.policyQualifiers(List.of(PolicyQualifierInfoProperty.builder()
.policyQualifierId("policyQualifierId")
.qualifier(QualifierProperty.builder()
.cpsUri("cpsUri")
.build())
.build()))
.build()))
.customExtensions(List.of(CustomExtensionProperty.builder()
.objectIdentifier("objectIdentifier")
.value("value")
// the properties below are optional
.critical(false)
.build()))
.extendedKeyUsage(List.of(ExtendedKeyUsageProperty.builder()
.extendedKeyUsageObjectIdentifier("extendedKeyUsageObjectIdentifier")
.extendedKeyUsageType("extendedKeyUsageType")
.build()))
.keyUsage(KeyUsageProperty.builder()
.crlSign(false)
.dataEncipherment(false)
.decipherOnly(false)
.digitalSignature(false)
.encipherOnly(false)
.keyAgreement(false)
.keyCertSign(false)
.keyEncipherment(false)
.nonRepudiation(false)
.build())
.subjectAlternativeNames(List.of(GeneralNameProperty.builder()
.directoryName(SubjectProperty.builder()
.commonName("commonName")
.country("country")
.customAttributes(List.of(CustomAttributeProperty.builder()
.objectIdentifier("objectIdentifier")
.value("value")
.build()))
.distinguishedNameQualifier("distinguishedNameQualifier")
.generationQualifier("generationQualifier")
.givenName("givenName")
.initials("initials")
.locality("locality")
.organization("organization")
.organizationalUnit("organizationalUnit")
.pseudonym("pseudonym")
.serialNumber("serialNumber")
.state("state")
.surname("surname")
.title("title")
.build())
.dnsName("dnsName")
.ediPartyName(EdiPartyNameProperty.builder()
.nameAssigner("nameAssigner")
.partyName("partyName")
.build())
.ipAddress("ipAddress")
.otherName(OtherNameProperty.builder()
.typeId("typeId")
.value("value")
.build())
.registeredId("registeredId")
.rfc822Name("rfc822Name")
.uniformResourceIdentifier("uniformResourceIdentifier")
.build()))
.build())
.subject(SubjectProperty.builder()
.commonName("commonName")
.country("country")
.customAttributes(List.of(CustomAttributeProperty.builder()
.objectIdentifier("objectIdentifier")
.value("value")
.build()))
.distinguishedNameQualifier("distinguishedNameQualifier")
.generationQualifier("generationQualifier")
.givenName("givenName")
.initials("initials")
.locality("locality")
.organization("organization")
.organizationalUnit("organizationalUnit")
.pseudonym("pseudonym")
.serialNumber("serialNumber")
.state("state")
.surname("surname")
.title("title")
.build())
.build())
.templateArn("templateArn")
.validityNotBefore(ValidityProperty.builder()
.type("type")
.value(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains X.509 certificate information to be placed in an issued certificate.static final classA fluent builder forCfnCertificate.static interfaceDefines the X.500 relative distinguished name (RDN).static interfaceSpecifies the X.509 extension information for a certificate.static interfaceDescribes an Electronic Data Interchange (EDI) entity as described in as defined in Subject Alternative Name in RFC 5280.static interfaceSpecifies additional purposes for which the certified public key may be used other than basic purposes indicated in theKeyUsageextension.static interfaceContains X.509 extension information for a certificate.static interfaceDescribes an ASN.1 X.400GeneralNameas defined in RFC 5280 .static interfaceDefines one or more purposes for which the key contained in the certificate can be used.static interfaceDefines a custom ASN.1 X.400GeneralNameusing an object identifier (OID) and value.static interfaceDefines the X.509CertificatePoliciesextension.static interfaceModifies theCertPolicyIdof aPolicyInformationobject with a qualifier.static interfaceDefines aPolicyInformationqualifier.static interfaceContains information about the certificate subject.static interfaceLength of time for which the certificate issued by your private certificate authority (CA), or by the private CA itself, is valid in days, months, or years.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.acmpca.ICertificateRef
ICertificateRef.Jsii$Default, ICertificateRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCertificate(software.amazon.jsii.JsiiObjectRef objRef) CfnCertificate(software.constructs.Construct scope, String id, CfnCertificateProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies X.509 certificate information to be included in the issued certificate.The Amazon Resource Name (ARN) of the issued certificate.The issued Base64 PEM-encoded certificate.The Amazon Resource Name (ARN) for the private CA issues the certificate.A reference to a Certificate resource.The certificate signing request (CSR) for the certificate.The name of the algorithm that will be used to sign the certificate to be issued.Specifies a custom configuration template to use when issuing a certificate.The period of time during which the certificate will be valid.Information describing the start of the validity period of the certificate.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApiPassthrough(IResolvable value) Specifies X.509 certificate information to be included in the issued certificate.voidSpecifies X.509 certificate information to be included in the issued certificate.voidsetCertificateAuthorityArn(String value) The Amazon Resource Name (ARN) for the private CA issues the certificate.voidThe certificate signing request (CSR) for the certificate.voidsetSigningAlgorithm(String value) The name of the algorithm that will be used to sign the certificate to be issued.voidsetTemplateArn(String value) Specifies a custom configuration template to use when issuing a certificate.voidsetValidity(IResolvable value) The period of time during which the certificate will be valid.voidThe period of time during which the certificate will be valid.voidsetValidityNotBefore(IResolvable value) Information describing the start of the validity period of the certificate.voidInformation describing the start of the validity period of the certificate.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods 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
-
CfnCertificate
protected CfnCertificate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCertificate
protected CfnCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCertificate
@Stability(Stable) public CfnCertificate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCertificateProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the issued certificate. -
getAttrCertificate
The issued Base64 PEM-encoded certificate. -
getCertificateRef
A reference to a Certificate resource.- Specified by:
getCertificateRefin interfaceICertificateRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCertificateAuthorityArn
The Amazon Resource Name (ARN) for the private CA issues the certificate. -
setCertificateAuthorityArn
The Amazon Resource Name (ARN) for the private CA issues the certificate. -
getCertificateSigningRequest
The certificate signing request (CSR) for the certificate. -
setCertificateSigningRequest
The certificate signing request (CSR) for the certificate. -
getSigningAlgorithm
The name of the algorithm that will be used to sign the certificate to be issued. -
setSigningAlgorithm
The name of the algorithm that will be used to sign the certificate to be issued. -
getValidity
The period of time during which the certificate will be valid.Returns union: either
IResolvableorCfnCertificate.ValidityProperty -
setValidity
The period of time during which the certificate will be valid. -
setValidity
The period of time during which the certificate will be valid. -
getApiPassthrough
Specifies X.509 certificate information to be included in the issued certificate. AnAPIPassthroughorAPICSRPassthroughtemplate variant must be selected, or else this parameter is ignored.Returns union: either
IResolvableorCfnCertificate.ApiPassthroughProperty -
setApiPassthrough
Specifies X.509 certificate information to be included in the issued certificate. AnAPIPassthroughorAPICSRPassthroughtemplate variant must be selected, or else this parameter is ignored. -
setApiPassthrough
@Stability(Stable) public void setApiPassthrough(@Nullable CfnCertificate.ApiPassthroughProperty value) Specifies X.509 certificate information to be included in the issued certificate. AnAPIPassthroughorAPICSRPassthroughtemplate variant must be selected, or else this parameter is ignored. -
getTemplateArn
Specifies a custom configuration template to use when issuing a certificate. -
setTemplateArn
Specifies a custom configuration template to use when issuing a certificate. -
getValidityNotBefore
Information describing the start of the validity period of the certificate.Returns union: either
IResolvableorCfnCertificate.ValidityProperty -
setValidityNotBefore
Information describing the start of the validity period of the certificate. -
setValidityNotBefore
@Stability(Stable) public void setValidityNotBefore(@Nullable CfnCertificate.ValidityProperty value) Information describing the start of the validity period of the certificate.
-