@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:35.572Z") public class DnsValidatedCertificate extends Resource implements ICertificate, ITaggable
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();
Modifier and Type | Class and Description |
---|---|
static class |
DnsValidatedCertificate.Builder
A fluent builder for
DnsValidatedCertificate . |
ICertificate.Jsii$Default, ICertificate.Jsii$Proxy
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
DnsValidatedCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DnsValidatedCertificate(software.amazon.jsii.JsiiObjectRef objRef) |
|
DnsValidatedCertificate(software.constructs.Construct scope,
java.lang.String id,
DnsValidatedCertificateProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCertificateArn()
The certificate's ARN.
|
protected java.lang.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.
|
TagManager |
getTags()
Resource Tags.
|
Metric |
metricDaysToExpiry()
Return the DaysToExpiry metric for this AWS Certificate Manager Certificate.
|
Metric |
metricDaysToExpiry(MetricOptions props)
Return the DaysToExpiry metric for this AWS Certificate Manager Certificate.
|
protected java.util.List<java.lang.String> |
validate()
Validate the current construct.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected DnsValidatedCertificate(software.amazon.jsii.JsiiObjectRef objRef)
protected DnsValidatedCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public DnsValidatedCertificate(software.constructs.Construct scope, java.lang.String id, DnsValidatedCertificateProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public Metric metricDaysToExpiry(MetricOptions props)
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".
metricDaysToExpiry
in interface ICertificate
props
- public Metric metricDaysToExpiry()
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".
metricDaysToExpiry
in interface ICertificate
protected java.util.List<java.lang.String> validate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
public java.lang.String getCertificateArn()
getCertificateArn
in interface ICertificate
public TagManager getTags()
protected java.lang.String getRegion()