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 .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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.certificatemanager.ICertificate
ICertificate.Jsii$Default, ICertificate.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
DnsValidatedCertificate
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protected
DnsValidatedCertificate
(software.amazon.jsii.JsiiObjectRef objRef) Deprecated.DnsValidatedCertificate
(software.constructs.Construct scope, String id, DnsValidatedCertificateProps props) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyRemovalPolicy
(RemovalPolicy policy) Deprecated.Deprecated.protected String
Deprecated.getTags()
Deprecated.Deprecated.metricDaysToExpiry
(MetricOptions props) Deprecated.Methods inherited from class software.amazon.awscdk.Resource
generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
applyRemovalPolicy
in interfaceIResource
- Overrides:
applyRemovalPolicy
in 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:
metricDaysToExpiry
in 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:
metricDaysToExpiry
in interfaceICertificate
-
getCertificateArn
Deprecated.(deprecated) The certificate's ARN.- Specified by:
getCertificateArn
in 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 createMetric
instances.
-
Certificate
instead