Class CertificateValidation
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Example:
HostedZone exampleCom = HostedZone.Builder.create(this, "ExampleCom") .zoneName("example.com") .build(); HostedZone exampleNet = HostedZone.Builder.create(this, "ExampleNet") .zoneName("example.net") .build(); Certificate cert = Certificate.Builder.create(this, "Certificate") .domainName("test.example.com") .subjectAlternativeNames(List.of("cool.example.com", "test.example.net")) .validation(CertificateValidation.fromDnsMultiZone(Map.of( "test.example.com", exampleCom, "cool.example.com", exampleCom, "test.example.net", exampleNet))) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
CertificateValidation
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CertificateValidation
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificateValidation
fromDns()
Validate the certificate with DNS.static CertificateValidation
fromDns
(IHostedZone hostedZone) Validate the certificate with DNS.static CertificateValidation
fromDnsMultiZone
(Map<String, ? extends IHostedZone> hostedZones) Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones.static CertificateValidation
Validate the certificate with Email.static CertificateValidation
Validate the certificate with Email.The validation method.getProps()
Certification validation properties.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, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CertificateValidation
protected CertificateValidation(software.amazon.jsii.JsiiObjectRef objRef) -
CertificateValidation
protected CertificateValidation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromDns
@Stability(Stable) @NotNull public static CertificateValidation fromDns(@Nullable IHostedZone hostedZone) Validate the certificate with DNS.IMPORTANT: If
hostedZone
is not specified, DNS records must be added manually and the stack will not complete creating until the records are added.- Parameters:
hostedZone
- the hosted zone where DNS records must be created.
-
fromDns
Validate the certificate with DNS.IMPORTANT: If
hostedZone
is not specified, DNS records must be added manually and the stack will not complete creating until the records are added. -
fromDnsMultiZone
@Stability(Stable) @NotNull public static CertificateValidation fromDnsMultiZone(@NotNull Map<String, ? extends IHostedZone> hostedZones) Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones.- Parameters:
hostedZones
- a map of hosted zones where DNS records must be created for the domains in the certificate. This parameter is required.
-
fromEmail
@Stability(Stable) @NotNull public static CertificateValidation fromEmail(@Nullable Map<String, String> validationDomains) Validate the certificate with Email.IMPORTANT: if you are creating a certificate as part of your stack, the stack will not complete creating until you read and follow the instructions in the email that you will receive.
ACM will send validation emails to the following addresses:
admin@domain.com administrator@domain.com hostmaster@domain.com postmaster@domain.com webmaster@domain.com
For every domain that you register.
- Parameters:
validationDomains
- a map of validation domains to use for domains in the certificate.
-
fromEmail
Validate the certificate with Email.IMPORTANT: if you are creating a certificate as part of your stack, the stack will not complete creating until you read and follow the instructions in the email that you will receive.
ACM will send validation emails to the following addresses:
admin@domain.com administrator@domain.com hostmaster@domain.com postmaster@domain.com webmaster@domain.com
For every domain that you register.
-
getMethod
The validation method. -
getProps
Certification validation properties.
-