Interface CfnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.913Z")
@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") .destinationCidrBlock("destinationCidrBlock") .destinationIpv6CidrBlock("destinationIpv6CidrBlock") .egressOnlyInternetGatewayId("egressOnlyInternetGatewayId") .gatewayId("gatewayId") .instanceId("instanceId") .localGatewayId("localGatewayId") .natGatewayId("natGatewayId") .networkInterfaceId("networkInterfaceId") .transitGatewayId("transitGatewayId") .vpcEndpointId("vpcEndpointId") .vpcPeeringConnectionId("vpcPeeringConnectionId") .build();
-
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 IPv4 CIDR address block used for the destination match.default String
The IPv6 CIDR block 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. -
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.
-
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
. -
getDestinationIpv6CidrBlock
The IPv6 CIDR block used for the destination match.Routing decisions are based on the most specific match.
-
getEgressOnlyInternetGatewayId
[IPv6 traffic only] The ID of an egress-only internet gateway. -
getGatewayId
The ID of an internet gateway or virtual private gateway attached to your VPC. -
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.
-
getLocalGatewayId
The ID of the local gateway. -
getNatGatewayId
[IPv4 traffic only] The ID of a NAT gateway. -
getNetworkInterfaceId
The ID of a network interface. -
getTransitGatewayId
The ID of a transit gateway. -
getVpcEndpointId
The ID of a VPC endpoint.Supported for Gateway Load Balancer endpoints only.
-
getVpcPeeringConnectionId
The ID of a VPC peering connection. -
builder
- Returns:
- a
CfnRouteProps.Builder
ofCfnRouteProps
-