Interface DnsValidatedCertificateProps
- All Superinterfaces:
CertificateProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DnsValidatedCertificateProps.Jsii$Proxy
Example:
// 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.iam.*;
import software.amazon.awscdk.services.route53.*;
CertificateValidation certificateValidation;
HostedZone hostedZone;
KeyAlgorithm keyAlgorithm;
Role role;
DnsValidatedCertificateProps dnsValidatedCertificateProps = DnsValidatedCertificateProps.builder()
.domainName("domainName")
.hostedZone(hostedZone)
// the properties below are optional
.allowExport(false)
.certificateName("certificateName")
.cleanupRoute53Records(false)
.customResourceRole(role)
.keyAlgorithm(keyAlgorithm)
.region("region")
.route53Endpoint("route53Endpoint")
.subjectAlternativeNames(List.of("subjectAlternativeNames"))
.transparencyLoggingEnabled(false)
.validation(certificateValidation)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDnsValidatedCertificatePropsstatic final classAn implementation forDnsValidatedCertificateProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanWhen set to true, when the DnsValidatedCertificate is deleted, the associated Route53 validation records are removed.default IRoleRole to use for the custom resource that creates the validated certificate.Route 53 Hosted Zone used to perform DNS validation of the request.default StringAWS region that will host the certificate.default StringAn endpoint of Route53 service, which is not necessary as AWS SDK could figure out the right endpoints for most regions, but for some regions such as those in aws-cn partition, the default endpoint is not working now, hence the right endpoint need to be specified through this prop.Methods inherited from interface software.amazon.awscdk.services.certificatemanager.CertificateProps
getAllowExport, getCertificateName, getDomainName, getKeyAlgorithm, getSubjectAlternativeNames, getTransparencyLoggingEnabled, getValidationMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHostedZone
Route 53 Hosted Zone used to perform DNS validation of the request.The zone must be authoritative for the domain name specified in the Certificate Request.
-
getCleanupRoute53Records
When set to true, when the DnsValidatedCertificate is deleted, the associated Route53 validation records are removed.CAUTION: If multiple certificates share the same domains (and same validation records), this can cause the other certificates to fail renewal and/or not validate. Not recommended for production use.
Default: false
-
getCustomResourceRole
Role to use for the custom resource that creates the validated certificate.Default: - A new role will be created
-
getRegion
AWS region that will host the certificate.This is needed especially for certificates used for CloudFront distributions, which require the region to be us-east-1.
Default: the region the stack is deployed in.
-
getRoute53Endpoint
An endpoint of Route53 service, which is not necessary as AWS SDK could figure out the right endpoints for most regions, but for some regions such as those in aws-cn partition, the default endpoint is not working now, hence the right endpoint need to be specified through this prop.Route53 is not been officially launched in China, it is only available for AWS internal accounts now. To make DnsValidatedCertificate work for internal accounts now, a special endpoint needs to be provided.
Default: - The AWS SDK will determine the Route53 endpoint to use based on region
-
builder
-