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
    • certificateName

      @Stability(Stable) public Certificate.Builder certificateName(String certificateName)
      The Certificate name.

      Since the Certificate resource doesn't support providing a physical name, the value provided here will be recorded in the Name tag

      Default: the full, absolute path of this construct

      Parameters:
      certificateName - The Certificate name. This parameter is required.
      Returns:
      this
    • keyAlgorithm

      @Stability(Stable) public Certificate.Builder keyAlgorithm(KeyAlgorithm keyAlgorithm)
      Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.

      Default: KeyAlgorithm.RSA_2048

      Parameters:
      keyAlgorithm - Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data. This parameter is required.
      Returns:
      this
      See Also:
    • 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
    • transparencyLoggingEnabled

      @Stability(Stable) public Certificate.Builder transparencyLoggingEnabled(Boolean transparencyLoggingEnabled)
      Enable or disable transparency logging for this certificate.

      Once a certificate has been logged, it cannot be removed from the log. Opting out at that point will have no effect. If you opt out of logging when you request a certificate and then choose later to opt back in, your certificate will not be logged until it is renewed. If you want the certificate to be logged immediately, we recommend that you issue a new one.

      Default: true

      Parameters:
      transparencyLoggingEnabled - Enable or disable transparency logging for this certificate. This parameter is required.
      Returns:
      this
      See Also:
    • 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
    • build

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