Class CertificateValidation

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.certificatemanager.CertificateValidation
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.067Z") @Stability(Stable) public class CertificateValidation extends software.amazon.jsii.JsiiObject
How to validate a certificate.

Example:

 HostedZone myHostedZone = HostedZone.Builder.create(this, "HostedZone")
         .zoneName("example.com")
         .build();
 Certificate.Builder.create(this, "Certificate")
         .domainName("hello.example.com")
         .validation(CertificateValidation.fromDns(myHostedZone))
         .build();
 
  • 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

      @Stability(Stable) @NotNull public static CertificateValidation 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

      @Stability(Stable) @NotNull public static CertificateValidation 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

      @Stability(Stable) @NotNull public ValidationMethod getMethod()
      The validation method.
    • getProps

      @Stability(Stable) @NotNull public CertificationValidationProps getProps()
      Certification validation properties.