Class DnsValidatedCertificate
A certificate managed by AWS Certificate Manager.
Inherited Members
Namespace: Amazon.CDK.AWS.CertificateManager
Assembly: Amazon.CDK.AWS.CertificateManager.dll
Syntax (csharp)
public class DnsValidatedCertificate : Resource, ICertificate, IResource, IConstruct, IDependable, ITaggable
Syntax (vb)
Public Class DnsValidatedCertificate
Inherits Resource
Implements ICertificate, IResource, IConstruct, IDependable, ITaggable
Remarks
Will be automatically validated using DNS validation against the specified Route 53 hosted zone.
Resource: AWS::CertificateManager::Certificate
ExampleMetadata: infused
Examples
HostedZone myHostedZone;
new DnsValidatedCertificate(this, "CrossRegionCertificate", new DnsValidatedCertificateProps {
DomainName = "hello.example.com",
HostedZone = myHostedZone,
Region = "us-east-1"
});
Synopsis
Constructors
DnsValidatedCertificate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
DnsValidatedCertificate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
DnsValidatedCertificate(Construct, String, IDnsValidatedCertificateProps) |
Properties
CertificateArn | The certificate's ARN. |
Region | 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 |
Tags | Resource Tags. |
Methods
MetricDaysToExpiry(IMetricOptions) | Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day. |
Validate() | Validate the current construct. |
Constructors
DnsValidatedCertificate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected DnsValidatedCertificate(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
DnsValidatedCertificate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected DnsValidatedCertificate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
DnsValidatedCertificate(Construct, String, IDnsValidatedCertificateProps)
public DnsValidatedCertificate(Construct scope, string id, IDnsValidatedCertificateProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IDnsValidatedCertificateProps
Properties
CertificateArn
The certificate's ARN.
public virtual string CertificateArn { get; }
Property Value
System.String
Region
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.
protected virtual string Region { get; }
Property Value
System.String
Tags
Resource Tags.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
MetricDaysToExpiry(IMetricOptions)
Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day.
public virtual Metric MetricDaysToExpiry(IMetricOptions props = null)
Parameters
- props IMetricOptions
Returns
Remarks
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".
Validate()
Validate the current construct.
protected override string[] Validate()
Returns
System.String[]
Overrides
Remarks
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.