CertificationValidationProps
Struct Stable
Properties for certificate validation.
| Source | aws-certificatemanager/lib/certificate.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_certificatemanager as certificatemanager } from 'aws-cdk-lib';
import { aws_route53 as route53 } from 'aws-cdk-lib';
declare const hostedZone: route53.HostedZone;
const certificationValidationProps: certificatemanager.CertificationValidationProps = {
hostedZone: hostedZone,
hostedZones: {
hostedZonesKey: hostedZone,
},
method: certificatemanager.ValidationMethod.EMAIL,
validationDomains: {
validationDomainsKey: 'validationDomains',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_certificatemanager as certificatemanager
from aws_cdk import aws_route53 as route53
# hosted_zone: route53.HostedZone
certification_validation_props = certificatemanager.CertificationValidationProps(
hosted_zone=hosted_zone,
hosted_zones={
"hosted_zones_key": hosted_zone
},
method=certificatemanager.ValidationMethod.EMAIL,
validation_domains={
"validation_domains_key": "validationDomains"
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.certificatemanager.*;
import software.amazon.awscdk.services.route53.*;
HostedZone hostedZone;
CertificationValidationProps certificationValidationProps = CertificationValidationProps.builder()
.hostedZone(hostedZone)
.hostedZones(Map.of(
"hostedZonesKey", hostedZone))
.method(ValidationMethod.EMAIL)
.validationDomains(Map.of(
"validationDomainsKey", "validationDomains"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CertificateManager;
using Amazon.CDK.AWS.Route53;
HostedZone hostedZone;
var certificationValidationProps = new CertificationValidationProps {
HostedZone = hostedZone,
HostedZones = new Dictionary<string, IHostedZone> {
{ "hostedZonesKey", hostedZone }
},
Method = ValidationMethod.EMAIL,
ValidationDomains = new Dictionary<string, string> {
{ "validationDomainsKey", "validationDomains" }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var hostedZone HostedZone
certificationValidationProps := &CertificationValidationProps{
HostedZone: hostedZone,
HostedZones: map[string]IHostedZone{
"hostedZonesKey": hostedZone,
},
Method: awscdk.Aws_certificatemanager.ValidationMethod_EMAIL,
ValidationDomains: map[string]*string{
"validationDomainsKey": jsii.String("validationDomains"),
},
}
Properties
hostedZoneoptionalIHostedZonehosted_zoneoptionalIHostedZonehostedZoneoptionalIHostedZoneHostedZoneoptionalIHostedZoneHostedZoneoptionalIHostedZone #Hosted zone to use for DNS validation.
Default: use email validation
hostedZonesoptional{ [key: string]: IHostedZone }hosted_zonesoptionaltyping.Mapping[str, IHostedZone]hostedZonesoptionalMap<String, IHostedZone>HostedZonesoptionalIDictionary<string, IHostedZone>HostedZonesoptional*map[string]IHostedZone #A map of hosted zones to use for DNS validation.
Default: use hostedZone
methodoptionalValidationMethodmethodoptionalValidationMethodmethodoptionalValidationMethodMethodoptionalValidationMethodMethodoptionalValidationMethod = ValidationMethod.EMAIL #Validation method.
validationDomainsoptional{ [key: string]: string }validation_domainsoptionaltyping.Mapping[str, str]validationDomainsoptionalMap<String, String>ValidationDomainsoptionalIDictionary<string, string>ValidationDomainsoptional*map[string]*string #Validation domains to use for email validation.
Default: Apex domain