Class CfnTransitGateway.Builder

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

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

    • create

      @Stability(Stable) public static CfnTransitGateway.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTransitGateway.Builder.
    • amazonSideAsn

      @Stability(Stable) public CfnTransitGateway.Builder amazonSideAsn(Number amazonSideAsn)
      A private Autonomous System Number (ASN) for the Amazon side of a BGP session.

      The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.

      Parameters:
      amazonSideAsn - A private Autonomous System Number (ASN) for the Amazon side of a BGP session. This parameter is required.
      Returns:
      this
    • associationDefaultRouteTableId

      @Stability(Stable) public CfnTransitGateway.Builder associationDefaultRouteTableId(String associationDefaultRouteTableId)
      The ID of the default association route table.

      Parameters:
      associationDefaultRouteTableId - The ID of the default association route table. This parameter is required.
      Returns:
      this
    • autoAcceptSharedAttachments

      @Stability(Stable) public CfnTransitGateway.Builder autoAcceptSharedAttachments(String autoAcceptSharedAttachments)
      Enable or disable automatic acceptance of attachment requests.

      Disabled by default.

      Parameters:
      autoAcceptSharedAttachments - Enable or disable automatic acceptance of attachment requests. This parameter is required.
      Returns:
      this
    • defaultRouteTableAssociation

      @Stability(Stable) public CfnTransitGateway.Builder defaultRouteTableAssociation(String defaultRouteTableAssociation)
      Enable or disable automatic association with the default association route table.

      Enabled by default.

      Parameters:
      defaultRouteTableAssociation - Enable or disable automatic association with the default association route table. This parameter is required.
      Returns:
      this
    • defaultRouteTablePropagation

      @Stability(Stable) public CfnTransitGateway.Builder defaultRouteTablePropagation(String defaultRouteTablePropagation)
      Enable or disable automatic propagation of routes to the default propagation route table.

      Enabled by default.

      Parameters:
      defaultRouteTablePropagation - Enable or disable automatic propagation of routes to the default propagation route table. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnTransitGateway.Builder description(String description)
      The description of the transit gateway.

      Parameters:
      description - The description of the transit gateway. This parameter is required.
      Returns:
      this
    • dnsSupport

      @Stability(Stable) public CfnTransitGateway.Builder dnsSupport(String dnsSupport)
      Enable or disable DNS support.

      Enabled by default.

      Parameters:
      dnsSupport - Enable or disable DNS support. This parameter is required.
      Returns:
      this
    • multicastSupport

      @Stability(Stable) public CfnTransitGateway.Builder multicastSupport(String multicastSupport)
      Indicates whether multicast is enabled on the transit gateway.

      Parameters:
      multicastSupport - Indicates whether multicast is enabled on the transit gateway. This parameter is required.
      Returns:
      this
    • propagationDefaultRouteTableId

      @Stability(Stable) public CfnTransitGateway.Builder propagationDefaultRouteTableId(String propagationDefaultRouteTableId)
      The ID of the default propagation route table.

      Parameters:
      propagationDefaultRouteTableId - The ID of the default propagation route table. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTransitGateway.Builder tags(List<? extends CfnTag> tags)
      The tags for the transit gateway.

      Parameters:
      tags - The tags for the transit gateway. This parameter is required.
      Returns:
      this
    • transitGatewayCidrBlocks

      @Stability(Stable) public CfnTransitGateway.Builder transitGatewayCidrBlocks(List<String> transitGatewayCidrBlocks)
      The transit gateway CIDR blocks.

      Parameters:
      transitGatewayCidrBlocks - The transit gateway CIDR blocks. This parameter is required.
      Returns:
      this
    • vpnEcmpSupport

      @Stability(Stable) public CfnTransitGateway.Builder vpnEcmpSupport(String vpnEcmpSupport)
      Enable or disable Equal Cost Multipath Protocol support.

      Enabled by default.

      Parameters:
      vpnEcmpSupport - Enable or disable Equal Cost Multipath Protocol support. This parameter is required.
      Returns:
      this
    • build

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