Class DnsValidatedCertificate
(deprecated) A certificate managed by AWS Certificate Manager.
Inherited Members
Namespace: Amazon.CDK.AWS.CertificateManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DnsValidatedCertificate : Resource, ICertificate, IResource, ITaggable
Syntax (vb)
Public Class DnsValidatedCertificate
Inherits Resource
Implements ICertificate, IResource, ITaggable
Remarks
Will be automatically validated using DNS validation against the specified Route 53 hosted zone.
Stability: Deprecated
Resource: AWS::CertificateManager::Certificate
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CertificateManager;
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.Route53;
CertificateValidation certificateValidation;
HostedZone hostedZone;
KeyAlgorithm keyAlgorithm;
Role role;
var dnsValidatedCertificate = new DnsValidatedCertificate(this, "MyDnsValidatedCertificate", new DnsValidatedCertificateProps {
DomainName = "domainName",
HostedZone = hostedZone,
// the properties below are optional
CertificateName = "certificateName",
CleanupRoute53Records = false,
CustomResourceRole = role,
KeyAlgorithm = keyAlgorithm,
Region = "region",
Route53Endpoint = "route53Endpoint",
SubjectAlternativeNames = new [] { "subjectAlternativeNames" },
TransparencyLoggingEnabled = false,
Validation = certificateValidation
});
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 | (deprecated) The certificate's ARN. |
Region | (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 |
Tags | (deprecated) Resource Tags. |
Methods
ApplyRemovalPolicy(RemovalPolicy) | (deprecated) Apply the given removal policy to this resource. |
MetricDaysToExpiry(IMetricOptions) | (deprecated) Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day. |
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
Remarks
Stability: Deprecated
Properties
CertificateArn
(deprecated) The certificate's ARN.
public virtual string CertificateArn { get; }
Property Value
System.String
Remarks
Stability: Deprecated
Region
(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.
protected virtual string Region { get; }
Property Value
System.String
Remarks
Stability: Deprecated
Tags
(deprecated) Resource Tags.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
ApplyRemovalPolicy(RemovalPolicy)
(deprecated) Apply the given removal policy to this resource.
public override void ApplyRemovalPolicy(RemovalPolicy policy)
Parameters
- policy RemovalPolicy
Overrides
Remarks
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
).
Stability: Deprecated
MetricDaysToExpiry(IMetricOptions)
(deprecated) 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".
Stability: Deprecated