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.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(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
vpcId
The ID of the VPC.- Parameters:
vpcId
- The ID of the VPC. This parameter is required.- Returns:
this
- See Also:
-
options
The VPC attachment options.- Parameters:
options
- The VPC attachment options. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags for the attachment.- Parameters:
tags
- The tags for the attachment. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayAttachment>
- Returns:
- a newly built instance of
CfnTransitGatewayAttachment
.
-