Class CfnRoute.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute>
- Enclosing class:
CfnRoute
@Stability(Stable)
public static final class CfnRoute.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute>
A fluent builder for
CfnRoute
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
carrierGatewayId
(String carrierGatewayId) The ID of the carrier gateway.coreNetworkArn
(String coreNetworkArn) The Amazon Resource Name (ARN) of the core network.static CfnRoute.Builder
destinationCidrBlock
(String destinationCidrBlock) The IPv4 CIDR address block used for the destination match.destinationIpv6CidrBlock
(String destinationIpv6CidrBlock) The IPv6 CIDR block used for the destination match.destinationPrefixListId
(String destinationPrefixListId) The ID of a prefix list used for the destination match.egressOnlyInternetGatewayId
(String egressOnlyInternetGatewayId) [IPv6 traffic only] The ID of an egress-only internet gateway.The ID of an internet gateway or virtual private gateway attached to your VPC.instanceId
(String instanceId) The ID of a NAT instance in your VPC.localGatewayId
(String localGatewayId) The ID of the local gateway.natGatewayId
(String natGatewayId) [IPv4 traffic only] The ID of a NAT gateway.networkInterfaceId
(String networkInterfaceId) The ID of a network interface.routeTableId
(String routeTableId) The ID of the route table for the route.transitGatewayId
(String transitGatewayId) The ID of a transit gateway.vpcEndpointId
(String vpcEndpointId) The ID of a VPC endpoint.vpcPeeringConnectionId
(String vpcPeeringConnectionId) The ID of a VPC peering connection.
-
Method Details
-
create
@Stability(Stable) public static CfnRoute.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
CfnRoute.Builder
.
-
routeTableId
The ID of the route table for the route.- Parameters:
routeTableId
- The ID of the route table for the route. This parameter is required.- Returns:
this
- See Also:
-
carrierGatewayId
The ID of the carrier gateway.You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.
- Parameters:
carrierGatewayId
- The ID of the carrier gateway. This parameter is required.- Returns:
this
- See Also:
-
coreNetworkArn
The Amazon Resource Name (ARN) of the core network.- Parameters:
coreNetworkArn
- The Amazon Resource Name (ARN) of the core network. This parameter is required.- Returns:
this
- See Also:
-
destinationCidrBlock
The IPv4 CIDR address block used for the destination match.Routing decisions are based on the most specific match. We modify the specified CIDR block to its canonical form; for example, if you specify
100.68.0.18/18
, we modify it to100.68.0.0/18
.- Parameters:
destinationCidrBlock
- The IPv4 CIDR address block used for the destination match. This parameter is required.- Returns:
this
- See Also:
-
destinationIpv6CidrBlock
@Stability(Stable) public CfnRoute.Builder destinationIpv6CidrBlock(String destinationIpv6CidrBlock) The IPv6 CIDR block used for the destination match.Routing decisions are based on the most specific match.
- Parameters:
destinationIpv6CidrBlock
- The IPv6 CIDR block used for the destination match. This parameter is required.- Returns:
this
- See Also:
-
destinationPrefixListId
The ID of a prefix list used for the destination match.- Parameters:
destinationPrefixListId
- The ID of a prefix list used for the destination match. This parameter is required.- Returns:
this
- See Also:
-
egressOnlyInternetGatewayId
@Stability(Stable) public CfnRoute.Builder egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId) [IPv6 traffic only] The ID of an egress-only internet gateway.- Parameters:
egressOnlyInternetGatewayId
- [IPv6 traffic only] The ID of an egress-only internet gateway. This parameter is required.- Returns:
this
- See Also:
-
gatewayId
The ID of an internet gateway or virtual private gateway attached to your VPC.- Parameters:
gatewayId
- The ID of an internet gateway or virtual private gateway attached to your VPC. This parameter is required.- Returns:
this
- See Also:
-
instanceId
The ID of a NAT instance in your VPC.The operation fails if you specify an instance ID unless exactly one network interface is attached.
- Parameters:
instanceId
- The ID of a NAT instance in your VPC. This parameter is required.- Returns:
this
- See Also:
-
localGatewayId
The ID of the local gateway.- Parameters:
localGatewayId
- The ID of the local gateway. This parameter is required.- Returns:
this
- See Also:
-
natGatewayId
[IPv4 traffic only] The ID of a NAT gateway.- Parameters:
natGatewayId
- [IPv4 traffic only] The ID of a NAT gateway. This parameter is required.- Returns:
this
- See Also:
-
networkInterfaceId
The ID of a network interface.- Parameters:
networkInterfaceId
- The ID of a network interface. This parameter is required.- Returns:
this
- See Also:
-
transitGatewayId
The ID of a transit gateway.- Parameters:
transitGatewayId
- The ID of a transit gateway. This parameter is required.- Returns:
this
- See Also:
-
vpcEndpointId
The ID of a VPC endpoint.Supported for Gateway Load Balancer endpoints only.
- Parameters:
vpcEndpointId
- The ID of a VPC endpoint. This parameter is required.- Returns:
this
- See Also:
-
vpcPeeringConnectionId
The ID of a VPC peering connection.- Parameters:
vpcPeeringConnectionId
- The ID of a VPC peering connection. This parameter is required.- Returns:
this
- See Also:
-
build
-