Class DnsValidatedCertificate

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.098Z") @Stability(Stable) public class DnsValidatedCertificate extends Resource implements ICertificate, ITaggable
A certificate managed by AWS Certificate Manager.

Will be automatically validated using DNS validation against the specified Route 53 hosted zone.

Example:

 HostedZone myHostedZone;
 DnsValidatedCertificate.Builder.create(this, "CrossRegionCertificate")
         .domainName("hello.example.com")
         .hostedZone(myHostedZone)
         .region("us-east-1")
         .build();
 
  • Constructor Details

    • DnsValidatedCertificate

      protected DnsValidatedCertificate(software.amazon.jsii.JsiiObjectRef objRef)
    • DnsValidatedCertificate

      protected DnsValidatedCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • DnsValidatedCertificate

      @Stability(Stable) public DnsValidatedCertificate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DnsValidatedCertificateProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • metricDaysToExpiry

      @Stability(Stable) @NotNull public Metric metricDaysToExpiry(@Nullable MetricOptions props)
      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(Stable) @NotNull public Metric metricDaysToExpiry()
      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
    • validate

      @Stability(Stable) @NotNull protected List<String> validate()
      Validate the current construct.

      This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

      Overrides:
      validate in class Construct
      Returns:
      An array of validation error messages, or an empty array if the construct is valid.
    • getCertificateArn

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

      @Stability(Stable) @NotNull public TagManager getTags()
      Resource Tags.

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

      @Stability(Stable) @Nullable protected String getRegion()
      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.