Class DnsValidatedCertificate

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.certificatemanager.DnsValidatedCertificate
All Implemented Interfaces:
IResource, ITaggable, ICertificate, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:15.217Z") @Stability(Deprecated) @Deprecated public class DnsValidatedCertificate extends Resource implements ICertificate, ITaggable
Deprecated.
use Certificate instead
(deprecated) A certificate managed by AWS Certificate Manager.

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();
 

  • 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

      @Stability(Deprecated) @Deprecated public void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      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 interface IResource
      Overrides:
      applyRemovalPolicy in class Resource
      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 interface ICertificate
      Parameters:
      props -
    • metricDaysToExpiry

      @Stability(Deprecated) @Deprecated @NotNull public Metric 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 interface ICertificate
    • getCertificateArn

      @Stability(Deprecated) @Deprecated @NotNull public String getCertificateArn()
      Deprecated.
      (deprecated) The certificate's ARN.
      Specified by:
      getCertificateArn in interface ICertificate
    • getTags

      @Stability(Deprecated) @Deprecated @NotNull public TagManager getTags()
      Deprecated.
      (deprecated) Resource Tags.

      Specified by:
      getTags in interface ITaggable
      See Also:
    • getRegion

      @Stability(Deprecated) @Deprecated @Nullable protected String 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 create Metric instances.