CfnCertificateProps Struct
Properties for defining a CfnCertificate.
Example
// 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 cfnCertificateProps: acmpca.CfnCertificateProps = {
certificateAuthorityArn: 'certificateAuthorityArn',
certificateSigningRequest: 'certificateSigningRequest',
signingAlgorithm: 'signingAlgorithm',
validity: {
type: 'type',
value: 123,
},
// the properties below are optional
apiPassthrough: {
extensions: {
certificatePolicies: [{
certPolicyId: 'certPolicyId',
// the properties below are optional
policyQualifiers: [{
policyQualifierId: 'policyQualifierId',
qualifier: {
cpsUri: 'cpsUri',
},
}],
}],
customExtensions: [{
objectIdentifier: 'objectIdentifier',
value: 'value',
// the properties below are optional
critical: false,
}],
extendedKeyUsage: [{
extendedKeyUsageObjectIdentifier: 'extendedKeyUsageObjectIdentifier',
extendedKeyUsageType: 'extendedKeyUsageType',
}],
keyUsage: {
crlSign: false,
dataEncipherment: false,
decipherOnly: false,
digitalSignature: false,
encipherOnly: false,
keyAgreement: false,
keyCertSign: false,
keyEncipherment: false,
nonRepudiation: false,
},
subjectAlternativeNames: [{
directoryName: {
commonName: 'commonName',
country: 'country',
customAttributes: [{
objectIdentifier: 'objectIdentifier',
value: 'value',
}],
distinguishedNameQualifier: 'distinguishedNameQualifier',
generationQualifier: 'generationQualifier',
givenName: 'givenName',
initials: 'initials',
locality: 'locality',
organization: 'organization',
organizationalUnit: 'organizationalUnit',
pseudonym: 'pseudonym',
serialNumber: 'serialNumber',
state: 'state',
surname: 'surname',
title: 'title',
},
dnsName: 'dnsName',
ediPartyName: {
nameAssigner: 'nameAssigner',
partyName: 'partyName',
},
ipAddress: 'ipAddress',
otherName: {
typeId: 'typeId',
value: 'value',
},
registeredId: 'registeredId',
rfc822Name: 'rfc822Name',
uniformResourceIdentifier: 'uniformResourceIdentifier',
}],
},
subject: {
commonName: 'commonName',
country: 'country',
customAttributes: [{
objectIdentifier: 'objectIdentifier',
value: 'value',
}],
distinguishedNameQualifier: 'distinguishedNameQualifier',
generationQualifier: 'generationQualifier',
givenName: 'givenName',
initials: 'initials',
locality: 'locality',
organization: 'organization',
organizationalUnit: 'organizationalUnit',
pseudonym: 'pseudonym',
serialNumber: 'serialNumber',
state: 'state',
surname: 'surname',
title: 'title',
},
},
templateArn: 'templateArn',
validityNotBefore: {
type: 'type',
value: 123,
},
};
Properties
apiPassthroughoptionalIResolvable | CfnCertificate.ApiPassthroughPropertyapi_passthroughoptionaltyping.Union[IResolvable, ApiPassthroughProperty]apiPassthroughoptionalIResolvableApiPassthroughoptionalIResolvableApiPassthroughoptionalinterface{}#certificateAuthorityArnstring | ICertificateAuthorityRefcertificate_authority_arntyping.Union[str, ICertificateAuthorityRef]certificateAuthorityArnStringCertificateAuthorityArnstringCertificateAuthorityArninterface{}required#certificateSigningRequeststringcertificate_signing_requeststrcertificateSigningRequestStringCertificateSigningRequeststringCertificateSigningRequest*stringrequired#signingAlgorithmstringsigning_algorithmstrsigningAlgorithmStringSigningAlgorithmstringSigningAlgorithm*stringrequired#notes
This parameter should not be confused with the SigningAlgorithm parameter used to sign a CSR in the CreateCertificateAuthority action.
The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
templateArnoptionalstring | ICertificateAuthorityReftemplate_arnoptionaltyping.Union[str, ICertificateAuthorityRef]templateArnoptionalStringTemplateArnoptionalstringTemplateArnoptionalinterface{}#notes
If this parameter is not provided, AWS Private CA defaults to the EndEntityCertificate/V1 template. For more information about AWS Private CA templates, see Using Templates .
validityIResolvable | CfnCertificate.ValidityPropertyvaliditytyping.Union[IResolvable, ValidityProperty]validityIResolvableValidityIResolvableValidityinterface{}required#validityNotBeforeoptionalIResolvable | CfnCertificate.ValidityPropertyvalidity_not_beforeoptionaltyping.Union[IResolvable, ValidityProperty]validityNotBeforeoptionalIResolvableValidityNotBeforeoptionalIResolvableValidityNotBeforeoptionalinterface{}#notes
This parameter sets the “Not Before" date for the certificate.
By default, when issuing a certificate, AWS Private CA sets the "Not Before" date to the issuance time minus 60 minutes. This compensates for clock inconsistencies across computer systems. The ValidityNotBefore parameter can be used to customize the “Not Before” value.
Unlike the Validity parameter, the ValidityNotBefore parameter is optional.
The ValidityNotBefore value is expressed as an explicit date and time, using the Validity type value ABSOLUTE .