Interface CfnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRouteProps.Jsii$Proxy
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoutePropsstatic final classAn implementation forCfnRouteProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRouteProps.Builderbuilder()default ObjectThe ID of the carrier gateway.default StringThe Amazon Resource Name (ARN) of the core network.default StringThe IPv4 CIDR address block used for the destination match.default StringThe IPv6 CIDR block used for the destination match.default StringThe ID of a prefix list used for the destination match.default Object[IPv6 traffic only] The ID of an egress-only internet gateway.default ObjectThe ID of an internet gateway or virtual private gateway attached to your VPC.default ObjectThe ID of a NAT instance in your VPC.default StringThe ID of the local gateway.default Object[IPv4 traffic only] The ID of a NAT gateway.default StringThe ID of a network interface.The ID of the route table for the route.default ObjectThe ID of a transit gateway.default StringThe ID of a VPC endpoint.default ObjectThe 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.Returns union: either
StringorIRouteTableRef- 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.
Returns union: either
StringorICarrierGatewayRef- 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.Returns union: either
StringorIEgressOnlyInternetGatewayRef- See Also:
-
getGatewayId
The ID of an internet gateway or virtual private gateway attached to your VPC.Returns union: either
StringorIInternetGatewayReforIVPNGatewayRef- 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.
Returns union: either
StringorIInstanceRef- See Also:
-
getLocalGatewayId
The ID of the local gateway.- See Also:
-
getNatGatewayId
[IPv4 traffic only] The ID of a NAT gateway.Returns union: either
StringorINatGatewayRef- See Also:
-
getNetworkInterfaceId
The ID of a network interface.- See Also:
-
getTransitGatewayId
The ID of a transit gateway.Returns union: either
StringorITransitGatewayRef- 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.Returns union: either
StringorIVPCPeeringConnectionRef- See Also:
-
builder
- Returns:
- a
CfnRouteProps.BuilderofCfnRouteProps
-