class CertificateValidation
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CertificateManager.CertificateValidation |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscertificatemanager#CertificateValidation |
Java | software.amazon.awscdk.services.certificatemanager.CertificateValidation |
Python | aws_cdk.aws_certificatemanager.CertificateValidation |
TypeScript (source) | aws-cdk-lib » aws_certificatemanager » CertificateValidation |
How to validate a certificate.
Example
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
Name | Type | Description |
---|---|---|
method | Validation | The validation method. |
props | Certification | Certification validation properties. |
method
Type:
Validation
The validation method.
props
Type:
Certification
Certification validation properties.
Methods
Name | Description |
---|---|
static from | Validate the certificate with DNS. |
static from | Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones. |
static from | Validate the certificate with Email. |
Dns(hostedZone?)
static frompublic static fromDns(hostedZone?: IHostedZone): CertificateValidation
Parameters
- hostedZone
IHosted
— the hosted zone where DNS records must be created.Zone
Returns
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.
DnsMultiZone(hostedZones)
static frompublic static fromDnsMultiZone(hostedZones: { [string]: IHostedZone }): CertificateValidation
Parameters
- hostedZones
{ [string]:
IHosted
Zone }
— a map of hosted zones where DNS records must be created for the domains in the certificate.
Returns
Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones.
Email(validationDomains?)
static frompublic static fromEmail(validationDomains?: { [string]: string }): CertificateValidation
Parameters
- validationDomains
{ [string]: string }
— a map of validation domains to use for domains in the certificate.
Returns
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.