CertificateValidation

class aws_cdk.aws_certificatemanager.CertificateValidation(*args: Any, **kwargs)

Bases: object

How to validate a certificate.

Example:

# Example automatically generated from non-compiling source. May contain errors.
import aws_cdk.aws_certificatemanager as acm
import aws_cdk.aws_route53 as route53

my_hosted_zone = route53.HostedZone(self, "HostedZone",
    zone_name="example.com"
)
acm.Certificate(self, "Certificate",
    domain_name="hello.example.com",
    validation=acm.CertificateValidation.from_dns(my_hosted_zone)
)

Attributes

method

The validation method.

Return type

ValidationMethod

props

Certification validation properties.

Return type

CertificationValidationProps

Static Methods

classmethod from_dns(hosted_zone=None)

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.

Parameters

hosted_zone (Optional[IHostedZone]) – the hosted zone where DNS records must be created.

Return type

CertificateValidation

classmethod from_dns_multi_zone(hosted_zones)

Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones.

Parameters

hosted_zones (Mapping[str, IHostedZone]) – a map of hosted zones where DNS records must be created for the domains in the certificate.

Return type

CertificateValidation

classmethod from_email(validation_domains=None)

Validate the certificate with Email.

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.com administrator@domain.com hostmaster@domain.com postmaster@domain.com webmaster@domain.com

For every domain that you register.

Parameters

validation_domains (Optional[Mapping[str, str]]) – a map of validation domains to use for domains in the certificate.

Return type

CertificateValidation