Class PrivateCertificate
A private certificate managed by AWS Certificate Manager.
Inherited Members
Namespace: Amazon.CDK.AWS.CertificateManager
Assembly: Amazon.CDK.AWS.CertificateManager.dll
Syntax (csharp)
public class PrivateCertificate : Resource, ICertificate, IResource, IConstruct, IDependable
Syntax (vb)
Public Class PrivateCertificate
Inherits Resource
Implements ICertificate, IResource, IConstruct, IDependable
Remarks
Resource: AWS::CertificateManager::Certificate
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.ACMPCA;
new PrivateCertificate(this, "PrivateCertificate", new PrivateCertificateProps {
DomainName = "test.example.com",
SubjectAlternativeNames = new [] { "cool.example.com", "test.example.net" }, // optional
CertificateAuthority = CertificateAuthority.FromCertificateAuthorityArn(this, "CA", "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/023077d8-2bfa-4eb0-8f22-05c96deade77")
});
Synopsis
Constructors
PrivateCertificate(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PrivateCertificate(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
PrivateCertificate(Construct, String, IPrivateCertificateProps) |
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 |
Methods
FromCertificateArn(Construct, String, String) | Import a certificate. |
MetricDaysToExpiry(IMetricOptions) | Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day. |
Constructors
PrivateCertificate(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PrivateCertificate(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PrivateCertificate(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PrivateCertificate(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
PrivateCertificate(Construct, String, IPrivateCertificateProps)
public PrivateCertificate(Construct scope, string id, IPrivateCertificateProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IPrivateCertificateProps
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
Methods
FromCertificateArn(Construct, String, String)
Import a certificate.
public static ICertificate FromCertificateArn(Construct scope, string id, string certificateArn)
Parameters
- scope Constructs.Construct
- id System.String
- certificateArn System.String
Returns
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".