Class CfnCertificate
- All Implemented Interfaces:
IInspectable,ITaggable,ICertificateRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::CertificateManager::Certificate resource requests an Certificate Manager ( ACM ) certificate that you can use to enable secure connections.
For example, you can deploy an ACM certificate to an Elastic Load Balancer to enable HTTPS support. For more information, see RequestCertificate in the Certificate Manager API Reference.
When you use the
AWS::CertificateManager::Certificateresource in a CloudFormation stack, domain validation is handled automatically if all three of the following are true: The certificate domain is hosted in Amazon Route 53, the domain resides in your AWS account , and you are using DNS validation.However, if the certificate uses email validation, or if the domain is not hosted in Route 53, then the stack will remain in the
CREATE_IN_PROGRESSstate. Further stack operations are delayed until you validate the certificate request, either by acting upon the instructions in the validation email, or by adding a CNAME record to your DNS configuration. For more information, see Option 1: DNS Validation and Option 2: Email Validation .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.certificatemanager.*;
CfnCertificate cfnCertificate = CfnCertificate.Builder.create(this, "MyCfnCertificate")
.domainName("domainName")
// the properties below are optional
.certificateAuthorityArn("certificateAuthorityArn")
.certificateExport("certificateExport")
.certificateTransparencyLoggingPreference("certificateTransparencyLoggingPreference")
.domainValidationOptions(List.of(DomainValidationOptionProperty.builder()
.domainName("domainName")
// the properties below are optional
.hostedZoneId("hostedZoneId")
.validationDomain("validationDomain")
.build()))
.keyAlgorithm("keyAlgorithm")
.subjectAlternativeNames(List.of("subjectAlternativeNames"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.validationMethod("validationMethod")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCertificate.static interfaceDomainValidationOptionis a property of the AWS::CertificateManager::Certificate resource that specifies the Certificate Manager ( ACM ) certificate domain to validate.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.certificatemanager.ICertificateRef
ICertificateRef.Jsii$Default, ICertificateRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCertificate(software.amazon.jsii.JsiiObjectRef objRef) CfnCertificate(software.constructs.Construct scope, String id, CfnCertificateProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ICertificateReffromCertificateId(software.constructs.Construct scope, String id, String certificateId) Creates a new ICertificateRef from a certificateId.The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate.You can opt out of allowing export of your certificate by specifying theDISABLEDoption.A reference to a Certificate resource.You can opt out of certificate transparency logging by specifying theDISABLEDoption.The fully qualified domain name (FQDN), such as www.example.com, with which you want to secure an ACM certificate.Domain information that domain name registrars use to verify your identity.Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate.getTags()Tag Manager which manages the tags for this resource.Key-value pairs that can identify the certificate.The method you want to use to validate that you own or control the domain associated with a public certificate.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCertificateAuthorityArn(String value) The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate.voidsetCertificateExport(String value) You can opt out of allowing export of your certificate by specifying theDISABLEDoption.voidYou can opt out of certificate transparency logging by specifying theDISABLEDoption.voidsetDomainName(String value) The fully qualified domain name (FQDN), such as www.example.com, with which you want to secure an ACM certificate.voidsetDomainValidationOptions(List<Object> value) Domain information that domain name registrars use to verify your identity.voidDomain information that domain name registrars use to verify your identity.voidsetKeyAlgorithm(String value) Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.voidsetSubjectAlternativeNames(List<String> value) Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate.voidsetTagsRaw(List<CfnTag> value) Key-value pairs that can identify the certificate.voidsetValidationMethod(String value) The method you want to use to validate that you own or control the domain associated with a public certificate.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCertificate
protected CfnCertificate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCertificate
protected CfnCertificate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCertificate
@Stability(Stable) public CfnCertificate(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCertificateProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromCertificateId
@Stability(Stable) @NotNull public static ICertificateRef fromCertificateId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String certificateId) Creates a new ICertificateRef from a certificateId.- Parameters:
scope- This parameter is required.id- This parameter is required.certificateId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCertificateRef
A reference to a Certificate resource.- Specified by:
getCertificateRefin interfaceICertificateRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getDomainName
The fully qualified domain name (FQDN), such as www.example.com, with which you want to secure an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example,*.example.comprotectswww.example.com,site.example.com, andimages.example.com.. -
setDomainName
The fully qualified domain name (FQDN), such as www.example.com, with which you want to secure an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example,*.example.comprotectswww.example.com,site.example.com, andimages.example.com.. -
getCertificateAuthorityArn
The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. -
setCertificateAuthorityArn
The Amazon Resource Name (ARN) of the private certificate authority (CA) that will be used to issue the certificate. -
getCertificateExport
You can opt out of allowing export of your certificate by specifying theDISABLEDoption. -
setCertificateExport
You can opt out of allowing export of your certificate by specifying theDISABLEDoption. -
getCertificateTransparencyLoggingPreference
You can opt out of certificate transparency logging by specifying theDISABLEDoption. -
setCertificateTransparencyLoggingPreference
You can opt out of certificate transparency logging by specifying theDISABLEDoption. -
getDomainValidationOptions
Domain information that domain name registrars use to verify your identity.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCertificate.DomainValidationOptionProperty> -
setDomainValidationOptions
Domain information that domain name registrars use to verify your identity. -
setDomainValidationOptions
Domain information that domain name registrars use to verify your identity. -
getKeyAlgorithm
Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. -
setKeyAlgorithm
Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. -
getSubjectAlternativeNames
Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. -
setSubjectAlternativeNames
Additional FQDNs to be included in the Subject Alternative Name extension of the ACM certificate. -
getTagsRaw
Key-value pairs that can identify the certificate. -
setTagsRaw
Key-value pairs that can identify the certificate. -
getValidationMethod
The method you want to use to validate that you own or control the domain associated with a public certificate. -
setValidationMethod
The method you want to use to validate that you own or control the domain associated with a public certificate.
-