Class HttpsRedirectProps.Builder

java.lang.Object
software.amazon.awscdk.services.route53.patterns.HttpsRedirectProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<HttpsRedirectProps>
Enclosing interface:
HttpsRedirectProps

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

    • Builder

      public Builder()
  • Method Details

    • targetDomain

      @Stability(Stable) public HttpsRedirectProps.Builder targetDomain(String targetDomain)
      Parameters:
      targetDomain - The redirect target fully qualified domain name (FQDN). This parameter is required. An alias record will be created that points to your CloudFront distribution. Root domain or sub-domain can be supplied.
      Returns:
      this
    • zone

      @Stability(Stable) public HttpsRedirectProps.Builder zone(IHostedZone zone)
      Parameters:
      zone - Hosted zone of the domain which will be used to create alias record(s) from domain names in the hosted zone to the target domain. This parameter is required. The hosted zone must contain entries for the domain name(s) supplied through recordNames that will redirect to the target domain.

      Domain names in the hosted zone can include a specific domain (example.com) and its subdomains (acme.example.com, zenith.example.com).

      Returns:
      this
    • certificate

      @Stability(Stable) public HttpsRedirectProps.Builder certificate(ICertificate certificate)
      Parameters:
      certificate - The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created. If provided, the certificate must be stored in us-east-1 (N. Virginia)
      Returns:
      this
    • recordNames

      @Stability(Stable) public HttpsRedirectProps.Builder recordNames(List<String> recordNames)
      Parameters:
      recordNames - The domain names that will redirect to targetDomain.
      Returns:
      this
    • build

      @Stability(Stable) public HttpsRedirectProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<HttpsRedirectProps>
      Returns:
      a new instance of HttpsRedirectProps
      Throws:
      NullPointerException - if any required attribute was not provided