Skip to content
v2.274.0

CertificateProps Struct ​

Properties for your certificate.

Example ​

ts
const exampleCom = new route53.HostedZone(this, 'ExampleCom', {
  zoneName: 'example.com',
});
const exampleNet = new route53.HostedZone(this, 'ExampleNet', {
  zoneName: 'example.net',
});

const cert = new acm.Certificate(this, 'Certificate', {
  domainName: 'test.example.com',
  subjectAlternativeNames: ['cool.example.com', 'test.example.net'],
  validation: acm.CertificateValidation.fromDnsMultiZone({
    'test.example.com': exampleCom,
    'cool.example.com': exampleCom,
    'test.example.net': exampleNet,
  }),
});

Properties ​

allowExportoptionalbooleanallow_exportoptionalboolallowExportoptionalBooleanAllowExportoptionalboolAllowExportoptional*bool= false#
Enable or disable export of this certificate.

If you issue an exportable public certificate, there is a charge at certificate issuance and again when the certificate renews. Ref: https://aws.amazon.com/certificate-manager/pricing

certificateNameoptionalstringcertificate_nameoptionalstrcertificateNameoptionalStringCertificateNameoptionalstringCertificateNameoptional*string#
The Certificate name.

Default: the full, absolute path of this construct

Since the Certificate resource doesn't support providing a physical name, the value provided here will be recorded in the Name tag

domainNamestringdomain_namestrdomainNameStringDomainNamestringDomainName*stringrequired#
Fully-qualified domain name to request a certificate for.

May contain wildcards, such as *.domain.com.

keyAlgorithmoptionalKeyAlgorithmkey_algorithmoptionalKeyAlgorithmkeyAlgorithmoptionalKeyAlgorithmKeyAlgorithmoptionalKeyAlgorithmKeyAlgorithmoptionalKeyAlgorithm= KeyAlgorithm.RSA_2048#
Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.
subjectAlternativeNamesoptionalstring[]subject_alternative_namesoptionaltyping.List[str]subjectAlternativeNamesoptionalList<String>SubjectAlternativeNamesoptionalstring[]SubjectAlternativeNamesoptional*[]*string#
Alternative domain names on your certificate.

Default: No additional FQDNs will be included as alternative domain names.

Use this to register alternative domain names that represent the same site.

transparencyLoggingEnabledoptionalbooleantransparency_logging_enabledoptionalbooltransparencyLoggingEnabledoptionalBooleanTransparencyLoggingEnabledoptionalboolTransparencyLoggingEnabledoptional*bool= true#
Enable or disable transparency logging for this certificate.
notes

Once a certificate has been logged, it cannot be removed from the log. Opting out at that point will have no effect. If you opt out of logging when you request a certificate and then choose later to opt back in, your certificate will not be logged until it is renewed. If you want the certificate to be logged immediately, we recommend that you issue a new one.

validationoptionalCertificateValidationvalidationoptionalCertificateValidationvalidationoptionalCertificateValidationValidationoptionalCertificateValidationValidationoptionalCertificateValidation#
How to validate this certificate.

Default: CertificateValidation.fromEmail()