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 Summary
Modifier and TypeMethodDescriptionamazonSideAsn
(Number amazonSideAsn) A private Autonomous System Number (ASN) for the Amazon side of a BGP session.associationDefaultRouteTableId
(String associationDefaultRouteTableId) The ID of the default association route table.autoAcceptSharedAttachments
(String autoAcceptSharedAttachments) Enable or disable automatic acceptance of attachment requests.build()
static CfnTransitGateway.Builder
defaultRouteTableAssociation
(String defaultRouteTableAssociation) Enable or disable automatic association with the default association route table.defaultRouteTablePropagation
(String defaultRouteTablePropagation) Enable or disable automatic propagation of routes to the default propagation route table.description
(String description) The description of the transit gateway.dnsSupport
(String dnsSupport) Enable or disable DNS support.multicastSupport
(String multicastSupport) Indicates whether multicast is enabled on the transit gateway.propagationDefaultRouteTableId
(String propagationDefaultRouteTableId) The ID of the default propagation route table.The tags for the transit gateway.transitGatewayCidrBlocks
(List<String> transitGatewayCidrBlocks) The transit gateway CIDR blocks.vpnEcmpSupport
(String vpnEcmpSupport) Enable or disable Equal Cost Multipath Protocol support.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnTransitGateway.Builder
.
-
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
-
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
The description of the transit gateway.- Parameters:
description
- The description of the transit gateway. This parameter is required.- Returns:
this
-
dnsSupport
Enable or disable DNS support.Enabled by default.
- Parameters:
dnsSupport
- Enable or disable DNS support. This parameter is required.- Returns:
this
-
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGateway>
- Returns:
- a newly built instance of
CfnTransitGateway
.
-