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.104.0 (build e79254c)", date="2024-11-06T23:25:05.261Z") @Stability(Stable) public class CertificateValidation extends software.amazon.jsii.JsiiObject
How to validate a certificate.

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();
 
  • 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.