Class DnsValidatedCertificate
- All Implemented Interfaces:
IResource,ITaggable,ICertificate,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Will be automatically validated using DNS validation against the specified Route 53 hosted zone.
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;
DnsValidatedCertificate dnsValidatedCertificate = DnsValidatedCertificate.Builder.create(this, "MyDnsValidatedCertificate")
.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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.certificatemanager.ICertificate
ICertificate.Jsii$Default, ICertificate.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDnsValidatedCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedDnsValidatedCertificate(software.amazon.jsii.JsiiObjectRef objRef) Deprecated.DnsValidatedCertificate(software.constructs.Construct scope, String id, DnsValidatedCertificateProps props) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRemovalPolicy(RemovalPolicy policy) Deprecated.Deprecated.protected StringDeprecated.getTags()Deprecated.Deprecated.metricDaysToExpiry(MetricOptions props) Deprecated.Methods inherited from class software.amazon.awscdk.Resource
generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Deprecated.(deprecated) Uniquely identifies this class.
-
-
Constructor Details
-
DnsValidatedCertificate
protected DnsValidatedCertificate(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
DnsValidatedCertificate
protected DnsValidatedCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
DnsValidatedCertificate
@Stability(Deprecated) @Deprecated public DnsValidatedCertificate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DnsValidatedCertificateProps props) Deprecated.- Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
applyRemovalPolicy
Deprecated.(deprecated) Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Overrides:
applyRemovalPolicyin classResource- Parameters:
policy- This parameter is required.
-
metricDaysToExpiry
@Stability(Deprecated) @Deprecated @NotNull public Metric metricDaysToExpiry(@Nullable MetricOptions props) Deprecated.(deprecated) Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day.This metric is no longer emitted once the certificate has effectively expired, so alarms configured on this metric should probably treat missing data as "breaching".
- Specified by:
metricDaysToExpiryin interfaceICertificate- Parameters:
props-
-
metricDaysToExpiry
Deprecated.(deprecated) Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day.This metric is no longer emitted once the certificate has effectively expired, so alarms configured on this metric should probably treat missing data as "breaching".
- Specified by:
metricDaysToExpiryin interfaceICertificate
-
getCertificateArn
Deprecated.(deprecated) The certificate's ARN.- Specified by:
getCertificateArnin interfaceICertificate
-
getTags
Deprecated.(deprecated) Resource Tags. -
getRegion
Deprecated.(deprecated) If the certificate is provisionned in a different region than the containing stack, this should be the region in which the certificate lives so we can correctly createMetricinstances.
-
Certificateinstead