CertificateValidation
- class aws_cdk.aws_certificatemanager.CertificateValidation(*args: Any, **kwargs)
Bases:
object
How to validate a certificate.
- ExampleMetadata:
infused
Example:
example_com = route53.HostedZone(self, "ExampleCom", zone_name="example.com" ) example_net = route53.HostedZone(self, "ExampleNet", zone_name="example.net" ) cert = acm.Certificate(self, "Certificate", domain_name="test.example.com", subject_alternative_names=["cool.example.com", "test.example.net"], validation=acm.CertificateValidation.from_dns_multi_zone({ "test.example.com": example_com, "cool.example.com": example_com, "test.example.net": example_net }) )
Attributes
- method
The validation method.
- props
Certification validation properties.
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:
- 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:
- 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: