Class Certificate.Builder

java.lang.Object
software.amazon.awscdk.services.certificatemanager.Certificate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Certificate>
Enclosing class:
Certificate

@Stability(Stable) public static final class Certificate.Builder extends Object implements software.amazon.jsii.Builder<Certificate>
A fluent builder for Certificate.
  • Method Details

    • create

      @Stability(Stable) public static Certificate.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Certificate.Builder.
    • domainName

      @Stability(Stable) public Certificate.Builder domainName(String domainName)
      Fully-qualified domain name to request a certificate for.

      May contain wildcards, such as *.domain.com.

      Parameters:
      domainName - Fully-qualified domain name to request a certificate for. This parameter is required.
      Returns:
      this
    • subjectAlternativeNames

      @Stability(Stable) public Certificate.Builder subjectAlternativeNames(List<String> subjectAlternativeNames)
      Alternative domain names on your certificate.

      Use this to register alternative domain names that represent the same site.

      Default: - No additional FQDNs will be included as alternative domain names.

      Parameters:
      subjectAlternativeNames - Alternative domain names on your certificate. This parameter is required.
      Returns:
      this
    • validation

      @Stability(Stable) public Certificate.Builder validation(CertificateValidation validation)
      How to validate this certificate.

      Default: CertificateValidation.fromEmail()

      Parameters:
      validation - How to validate this certificate. This parameter is required.
      Returns:
      this
    • validationDomains

      @Stability(Deprecated) @Deprecated public Certificate.Builder validationDomains(Map<String,String> validationDomains)
      Deprecated.
      use validation instead.
      (deprecated) What validation domain to use for every requested domain.

      Has to be a superdomain of the requested domain.

      Default: - Apex domain is used for every domain that's not overridden.

      Parameters:
      validationDomains - What validation domain to use for every requested domain. This parameter is required.
      Returns:
      this
    • validationMethod

      @Stability(Deprecated) @Deprecated public Certificate.Builder validationMethod(ValidationMethod validationMethod)
      Deprecated.
      use validation instead.
      (deprecated) Validation method used to assert domain ownership.

      Default: ValidationMethod.EMAIL

      Parameters:
      validationMethod - Validation method used to assert domain ownership. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Certificate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Certificate>
      Returns:
      a newly built instance of Certificate.