Interface CfnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:17.937Z")
@Stability(Stable)
public interface CfnRouteProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRoute
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ec2.*; CfnRouteProps cfnRouteProps = CfnRouteProps.builder() .routeTableId("routeTableId") // the properties below are optional .carrierGatewayId("carrierGatewayId") .coreNetworkArn("coreNetworkArn") .destinationCidrBlock("destinationCidrBlock") .destinationIpv6CidrBlock("destinationIpv6CidrBlock") .destinationPrefixListId("destinationPrefixListId") .egressOnlyInternetGatewayId("egressOnlyInternetGatewayId") .gatewayId("gatewayId") .instanceId("instanceId") .localGatewayId("localGatewayId") .natGatewayId("natGatewayId") .networkInterfaceId("networkInterfaceId") .transitGatewayId("transitGatewayId") .vpcEndpointId("vpcEndpointId") .vpcPeeringConnectionId("vpcPeeringConnectionId") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRouteProps
static final class
An implementation forCfnRouteProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRouteProps.Builder
builder()
default String
The ID of the carrier gateway.default String
The Amazon Resource Name (ARN) of the core network.default String
The IPv4 CIDR address block used for the destination match.default String
The IPv6 CIDR block used for the destination match.default String
The ID of a prefix list used for the destination match.default String
[IPv6 traffic only] The ID of an egress-only internet gateway.default String
The ID of an internet gateway or virtual private gateway attached to your VPC.default String
The ID of a NAT instance in your VPC.default String
The ID of the local gateway.default String
[IPv4 traffic only] The ID of a NAT gateway.default String
The ID of a network interface.The ID of the route table for the route.default String
The ID of a transit gateway.default String
The ID of a VPC endpoint.default String
The ID of a VPC peering connection.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRouteTableId
The ID of the route table for the route.- See Also:
-
getCarrierGatewayId
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.
- See Also:
-
getCoreNetworkArn
The Amazon Resource Name (ARN) of the core network.- See Also:
-
getDestinationCidrBlock
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
.- See Also:
-
getDestinationIpv6CidrBlock
The IPv6 CIDR block used for the destination match.Routing decisions are based on the most specific match.
- See Also:
-
getDestinationPrefixListId
The ID of a prefix list used for the destination match.- See Also:
-
getEgressOnlyInternetGatewayId
[IPv6 traffic only] The ID of an egress-only internet gateway.- See Also:
-
getGatewayId
The ID of an internet gateway or virtual private gateway attached to your VPC.- See Also:
-
getInstanceId
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.
- See Also:
-
getLocalGatewayId
The ID of the local gateway.- See Also:
-
getNatGatewayId
[IPv4 traffic only] The ID of a NAT gateway.- See Also:
-
getNetworkInterfaceId
The ID of a network interface.- See Also:
-
getTransitGatewayId
The ID of a transit gateway.- See Also:
-
getVpcEndpointId
The ID of a VPC endpoint.Supported for Gateway Load Balancer endpoints only.
- See Also:
-
getVpcPeeringConnectionId
The ID of a VPC peering connection.- See Also:
-
builder
- Returns:
- a
CfnRouteProps.Builder
ofCfnRouteProps
-