Class PrivateCertificate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.certificatemanager.PrivateCertificate
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,ICertificate
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.102Z")
@Stability(Stable)
public class PrivateCertificate
extends Resource
implements ICertificate
A private certificate managed by AWS Certificate Manager.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.certificatemanager.ICertificate
ICertificate.Jsii$Default, ICertificate.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
PrivateCertificate
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
PrivateCertificate
(software.amazon.jsii.JsiiObjectRef objRef) PrivateCertificate
(software.constructs.Construct scope, String id, PrivateCertificateProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ICertificate
fromCertificateArn
(software.constructs.Construct scope, String id, String certificateArn) Import a certificate.The certificate's ARN.protected String
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 createMetric
instances.Return the DaysToExpiry metric for this AWS Certificate Manager Certificate.metricDaysToExpiry
(MetricOptions props) Return the DaysToExpiry metric for this AWS Certificate Manager Certificate.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
PrivateCertificate
protected PrivateCertificate(software.amazon.jsii.JsiiObjectRef objRef) -
PrivateCertificate
protected PrivateCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PrivateCertificate
@Stability(Stable) public PrivateCertificate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrivateCertificateProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromCertificateArn
@Stability(Stable) @NotNull public static ICertificate fromCertificateArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String certificateArn) Import a certificate.- Parameters:
scope
- This parameter is required.id
- This parameter is required.certificateArn
- This parameter is required.
-
metricDaysToExpiry
Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day.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".
- Specified by:
metricDaysToExpiry
in interfaceICertificate
- Parameters:
props
-
-
metricDaysToExpiry
Return the DaysToExpiry metric for this AWS Certificate Manager Certificate. By default, this is the minimum value over 1 day.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".
- Specified by:
metricDaysToExpiry
in interfaceICertificate
-
getCertificateArn
The certificate's ARN.- Specified by:
getCertificateArn
in interfaceICertificate
-
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 createMetric
instances.
-