Class DnsValidatedCertificate.Builder

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

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

    • create

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

      @Stability(Stable) public DnsValidatedCertificate.Builder domainName(String domainName)
      Deprecated.
      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 DnsValidatedCertificate.Builder certificateName(String certificateName)
      Deprecated.
      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 DnsValidatedCertificate.Builder keyAlgorithm(KeyAlgorithm keyAlgorithm)
      Deprecated.
      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 DnsValidatedCertificate.Builder subjectAlternativeNames(List<String> subjectAlternativeNames)
      Deprecated.
      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 DnsValidatedCertificate.Builder transparencyLoggingEnabled(Boolean transparencyLoggingEnabled)
      Deprecated.
      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 DnsValidatedCertificate.Builder validation(CertificateValidation validation)
      Deprecated.
      How to validate this certificate.

      Default: CertificateValidation.fromEmail()

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

      @Stability(Stable) public DnsValidatedCertificate.Builder hostedZone(IHostedZone hostedZone)
      Deprecated.
      Route 53 Hosted Zone used to perform DNS validation of the request.

      The zone must be authoritative for the domain name specified in the Certificate Request.

      Parameters:
      hostedZone - Route 53 Hosted Zone used to perform DNS validation of the request. This parameter is required.
      Returns:
      this
    • cleanupRoute53Records

      @Stability(Stable) public DnsValidatedCertificate.Builder cleanupRoute53Records(Boolean cleanupRoute53Records)
      Deprecated.
      When set to true, when the DnsValidatedCertificate is deleted, the associated Route53 validation records are removed.

      CAUTION: If multiple certificates share the same domains (and same validation records), this can cause the other certificates to fail renewal and/or not validate. Not recommended for production use.

      Default: false

      Parameters:
      cleanupRoute53Records - When set to true, when the DnsValidatedCertificate is deleted, the associated Route53 validation records are removed. This parameter is required.
      Returns:
      this
    • customResourceRole

      @Stability(Stable) public DnsValidatedCertificate.Builder customResourceRole(IRole customResourceRole)
      Deprecated.
      Role to use for the custom resource that creates the validated certificate.

      Default: - A new role will be created

      Parameters:
      customResourceRole - Role to use for the custom resource that creates the validated certificate. This parameter is required.
      Returns:
      this
    • region

      @Stability(Stable) public DnsValidatedCertificate.Builder region(String region)
      Deprecated.
      AWS region that will host the certificate.

      This is needed especially for certificates used for CloudFront distributions, which require the region to be us-east-1.

      Default: the region the stack is deployed in.

      Parameters:
      region - AWS region that will host the certificate. This parameter is required.
      Returns:
      this
    • route53Endpoint

      @Stability(Stable) public DnsValidatedCertificate.Builder route53Endpoint(String route53Endpoint)
      Deprecated.
      An endpoint of Route53 service, which is not necessary as AWS SDK could figure out the right endpoints for most regions, but for some regions such as those in aws-cn partition, the default endpoint is not working now, hence the right endpoint need to be specified through this prop.

      Route53 is not been officially launched in China, it is only available for AWS internal accounts now. To make DnsValidatedCertificate work for internal accounts now, a special endpoint needs to be provided.

      Default: - The AWS SDK will determine the Route53 endpoint to use based on region

      Parameters:
      route53Endpoint - An endpoint of Route53 service, which is not necessary as AWS SDK could figure out the right endpoints for most regions, but for some regions such as those in aws-cn partition, the default endpoint is not working now, hence the right endpoint need to be specified through this prop. This parameter is required.
      Returns:
      this
    • build

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