Skip to content
v2.275.0

CertificateValidation Class ​

How to validate a 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 ​

Methods ​

fromDns(hostedZone?: IHostedZone): CertificateValidation // chainable@staticmethod def from_dns(hosted_zone: typing.Optional[IHostedZone] = None) -> CertificateValidationpublic static CertificateValidation fromDns(IHostedZone hostedZone)public static CertificateValidation FromDns(IHostedZone? hostedZone = null)func FromDns(HostedZone IHostedZone) CertificateValidationstatic#
Validate the certificate with DNS.

IMPORTANT: If hostedZone is not specified, DNS records must be added manually and the stack will not complete creating until the records are added.

1 parameter

Parameters

  • hostedZonehosted_zonehostedZonehostedZoneHostedZone — the hosted zone where DNS records must be created.
fromDnsMultiZone(hostedZones: { [key: string]: IHostedZone }): CertificateValidation // chainable@staticmethod def from_dns_multi_zone(hosted_zones: typing.Mapping[str, IHostedZone]) -> CertificateValidationpublic static CertificateValidation fromDnsMultiZone(Map<String, IHostedZone> hostedZones)public static CertificateValidation FromDnsMultiZone(IDictionary<string, IHostedZone> hostedZones)func FromDnsMultiZone(HostedZones *map[string]IHostedZone) CertificateValidationstatic#
Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones.
1 parameter

Parameters

  • hostedZoneshosted_zoneshostedZoneshostedZonesHostedZones — a map of hosted zones where DNS records must be created for the domains in the certificate.
fromEmail(validationDomains?: { [key: string]: string }): CertificateValidation // chainable@staticmethod def from_email(validation_domains: typing.Optional[typing.Mapping[str, str]] = None) -> CertificateValidationpublic static CertificateValidation fromEmail(Map<String, String> validationDomains)public static CertificateValidation FromEmail(IDictionary<string, string>? validationDomains = null)func FromEmail(ValidationDomains *map[string]*string) CertificateValidationstatic#
Validate the certificate with Email.
notes · 1 parameter

IMPORTANT: if you are creating a certificate as part of your stack, the stack will not complete creating until you read and follow the instructions in the email that you will receive.

ACM will send validation emails to the following addresses:

admin@domain.comadministrator@domain.comhostmaster@domain.compostmaster@domain.comwebmaster@domain.com

For every domain that you register.

Parameters

  • validationDomainsvalidation_domainsvalidationDomainsvalidationDomainsValidationDomains — a map of validation domains to use for domains in the certificate.