Class CfnTransitGatewayAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayAttachment>
- Enclosing class:
CfnTransitGatewayAttachment
@Stability(Stable)
public static final class CfnTransitGatewayAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayAttachment>
A fluent builder for
CfnTransitGatewayAttachment
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The VPC attachment options, in JSON or YAML.The IDs of one or more subnets.The tags for the attachment.transitGatewayId
(String transitGatewayId) The ID of the transit gateway.The ID of the VPC.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayAttachment.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnTransitGatewayAttachment.Builder
.
-
subnetIds
The IDs of one or more subnets.You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
- Parameters:
subnetIds
- The IDs of one or more subnets. This parameter is required.- Returns:
this
-
transitGatewayId
@Stability(Stable) public CfnTransitGatewayAttachment.Builder transitGatewayId(String transitGatewayId) The ID of the transit gateway.- Parameters:
transitGatewayId
- The ID of the transit gateway. This parameter is required.- Returns:
this
-
vpcId
The ID of the VPC.- Parameters:
vpcId
- The ID of the VPC. This parameter is required.- Returns:
this
-
options
The VPC attachment options, in JSON or YAML.ApplianceModeSupport
- Set toenable
ordisable
. The default isdisable
.DnsSupport
- Set toenable
ordisable
. The default isenable
.Ipv6Support
- Set toenable
ordisable
. The default isdisable
.
- Parameters:
options
- The VPC attachment options, in JSON or YAML. This parameter is required.- Returns:
this
-
tags
The tags for the attachment.- Parameters:
tags
- The tags for the attachment. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayAttachment>
- Returns:
- a newly built instance of
CfnTransitGatewayAttachment
.
-