@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.363Z") @Stability(value=Stable) public class Certificate extends Resource implements ICertificate
Example:
UserPool pool = new UserPool(this, "Pool");
pool.addDomain("CognitoDomain", UserPoolDomainOptions.builder()
.cognitoDomain(CognitoDomainOptions.builder()
.domainPrefix("my-awesome-app")
.build())
.build());
String certificateArn = "arn:aws:acm:us-east-1:123456789012:certificate/11-3336f1-44483d-adc7-9cd375c5169d";
ICertificate domainCert = Certificate.fromCertificateArn(this, "domainCert", certificateArn);
pool.addDomain("CustomDomain", UserPoolDomainOptions.builder()
.customDomain(CustomDomainOptions.builder()
.domainName("user.myapp.com")
.certificate(domainCert)
.build())
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
Certificate.Builder
A fluent builder for
Certificate. |
software.amazon.jsii.JsiiObject.InitializationModeICertificate.Jsii$Default, ICertificate.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Certificate(software.constructs.Construct scope,
String id,
CertificateProps props) |
protected |
Certificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Certificate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static ICertificate |
fromCertificateArn(software.constructs.Construct scope,
String id,
String certificateArn)
Import a certificate.
|
String |
getCertificateArn()
The certificate's ARN.
|
protected 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, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Certificate(software.amazon.jsii.JsiiObjectRef objRef)
protected Certificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Certificate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CertificateProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static ICertificate fromCertificateArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String certificateArn)
scope - This parameter is required.id - This parameter is required.certificateArn - This parameter is required.@Stability(value=Stable) @NotNull public Metric metricDaysToExpiry(@Nullable 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 ICertificateprops - @Stability(value=Stable) @NotNull 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@Stability(value=Stable) @NotNull public String getCertificateArn()
getCertificateArn in interface ICertificate@Stability(value=Stable) @Nullable protected String getRegion()
Copyright © 2022. All rights reserved.