@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:46.092Z") public class PrivateCertificate extends Resource implements ICertificate
Example:
import software.amazon.awscdk.services.acmpca.*; PrivateCertificate.Builder.create(this, "PrivateCertificate") .domainName("test.example.com") .subjectAlternativeNames(List.of("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")) .build();
Modifier and Type | Class and Description |
---|---|
static class |
PrivateCertificate.Builder
A fluent builder for
PrivateCertificate . |
ICertificate.Jsii$Default, ICertificate.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
PrivateCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PrivateCertificate(software.amazon.jsii.JsiiObjectRef objRef) |
|
PrivateCertificate(software.constructs.Construct scope,
java.lang.String id,
PrivateCertificateProps props) |
Modifier and Type | Method and Description |
---|---|
static ICertificate |
fromCertificateArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String certificateArn)
Import a certificate.
|
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.
|
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.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected PrivateCertificate(software.amazon.jsii.JsiiObjectRef objRef)
protected PrivateCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public PrivateCertificate(software.constructs.Construct scope, java.lang.String id, PrivateCertificateProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static ICertificate fromCertificateArn(software.constructs.Construct scope, java.lang.String id, java.lang.String certificateArn)
scope
- This parameter is required.id
- This parameter is required.certificateArn
- 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
public java.lang.String getCertificateArn()
getCertificateArn
in interface ICertificate
protected java.lang.String getRegion()