Class CfnDomain.DomainEntryProperty.Builder

java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDomain.DomainEntryProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.DomainEntryProperty>
Enclosing interface:
CfnDomain.DomainEntryProperty

@Stability(Stable) public static final class CfnDomain.DomainEntryProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnDomain.DomainEntryProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public CfnDomain.DomainEntryProperty.Builder name(String name)
      Parameters:
      name - The name of the domain. This parameter is required.
      Returns:
      this
    • target

      @Stability(Stable) public CfnDomain.DomainEntryProperty.Builder target(String target)
      Parameters:
      target - The target IP address ( 192.0.2.0 ), or AWS name server ( ns-111.awsdns-22.com. ). This parameter is required. For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com . For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net . For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com . Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.
      Returns:
      this
    • type

      @Stability(Stable) public CfnDomain.DomainEntryProperty.Builder type(String type)
      Parameters:
      type - The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT). This parameter is required. The following domain entry types can be used:

      • A
      • AAAA
      • CNAME
      • MX
      • NS
      • SOA
      • SRV
      • TXT
      Returns:
      this
    • id

      @Stability(Stable) public CfnDomain.DomainEntryProperty.Builder id(String id)
      Parameters:
      id - The ID of the domain recordset entry.
      Returns:
      this
    • isAlias

      @Stability(Stable) public CfnDomain.DomainEntryProperty.Builder isAlias(Boolean isAlias)
      Parameters:
      isAlias - When true , specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another AWS resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other AWS resource and routes traffic to that resource.
      Returns:
      this
    • isAlias

      @Stability(Stable) public CfnDomain.DomainEntryProperty.Builder isAlias(IResolvable isAlias)
      Parameters:
      isAlias - When true , specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another AWS resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other AWS resource and routes traffic to that resource.
      Returns:
      this
    • build

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