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();
 
  • Method Details

    • getRouteTableId

      @Stability(Stable) @NotNull String getRouteTableId()
      The ID of the route table for the route.
    • getCarrierGatewayId

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String 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 to 100.68.0.0/18 .

    • getDestinationIpv6CidrBlock

      @Stability(Stable) @Nullable default String getDestinationIpv6CidrBlock()
      The IPv6 CIDR block used for the destination match.

      Routing decisions are based on the most specific match.

    • getEgressOnlyInternetGatewayId

      @Stability(Stable) @Nullable default String getEgressOnlyInternetGatewayId()
      [IPv6 traffic only] The ID of an egress-only internet gateway.
    • getGatewayId

      @Stability(Stable) @Nullable default String getGatewayId()
      The ID of an internet gateway or virtual private gateway attached to your VPC.
    • getInstanceId

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getLocalGatewayId()
      The ID of the local gateway.
    • getNatGatewayId

      @Stability(Stable) @Nullable default String getNatGatewayId()
      [IPv4 traffic only] The ID of a NAT gateway.
    • getNetworkInterfaceId

      @Stability(Stable) @Nullable default String getNetworkInterfaceId()
      The ID of a network interface.
    • getTransitGatewayId

      @Stability(Stable) @Nullable default String getTransitGatewayId()
      The ID of a transit gateway.
    • getVpcEndpointId

      @Stability(Stable) @Nullable default String getVpcEndpointId()
      The ID of a VPC endpoint.

      Supported for Gateway Load Balancer endpoints only.

    • getVpcPeeringConnectionId

      @Stability(Stable) @Nullable default String getVpcPeeringConnectionId()
      The ID of a VPC peering connection.
    • builder

      @Stability(Stable) static CfnRouteProps.Builder builder()
      Returns:
      a CfnRouteProps.Builder of CfnRouteProps