Class CfnTransitGatewayRoute.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayRoute>
- Enclosing class:
CfnTransitGatewayRoute
@Stability(Stable)
public static final class CfnTransitGatewayRoute.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayRoute>
A fluent builder for
CfnTransitGatewayRoute
.-
Method Summary
Modifier and TypeMethodDescriptionIndicates whether to drop traffic that matches this route.blackhole
(IResolvable blackhole) Indicates whether to drop traffic that matches this route.build()
destinationCidrBlock
(String destinationCidrBlock) The CIDR block used for destination matches.transitGatewayAttachmentId
(String transitGatewayAttachmentId) The ID of the attachment.transitGatewayRouteTableId
(String transitGatewayRouteTableId) The ID of the transit gateway route table.
-
Method Details
-
create
@Stability(Stable) public static CfnTransitGatewayRoute.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
CfnTransitGatewayRoute.Builder
.
-
destinationCidrBlock
@Stability(Stable) public CfnTransitGatewayRoute.Builder destinationCidrBlock(String destinationCidrBlock) The CIDR block used for destination matches.- Parameters:
destinationCidrBlock
- The CIDR block used for destination matches. This parameter is required.- Returns:
this
- See Also:
-
transitGatewayRouteTableId
@Stability(Stable) public CfnTransitGatewayRoute.Builder transitGatewayRouteTableId(String transitGatewayRouteTableId) The ID of the transit gateway route table.- Parameters:
transitGatewayRouteTableId
- The ID of the transit gateway route table. This parameter is required.- Returns:
this
- See Also:
-
blackhole
Indicates whether to drop traffic that matches this route.- Parameters:
blackhole
- Indicates whether to drop traffic that matches this route. This parameter is required.- Returns:
this
- See Also:
-
blackhole
Indicates whether to drop traffic that matches this route.- Parameters:
blackhole
- Indicates whether to drop traffic that matches this route. This parameter is required.- Returns:
this
- See Also:
-
transitGatewayAttachmentId
@Stability(Stable) public CfnTransitGatewayRoute.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId) The ID of the attachment.- Parameters:
transitGatewayAttachmentId
- The ID of the attachment. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayRoute>
- Returns:
- a newly built instance of
CfnTransitGatewayRoute
.
-