AWS SDK for .NET Documentation
CreateRouteRequest Class
AmazonAmazon.EC2.ModelCreateRouteRequest Did this page help you?   Yes   No    Tell us about it...
Creates a new route in a route table within a VPC. The route's target can be either a gateway attached to the VPC or a NAT instance in the VPC.
Declaration Syntax
C#
public class CreateRouteRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
CreateRouteRequest()()()()
Initializes a new instance of the CreateRouteRequest class

DestinationCidrBlock
The CIDR address block used for the destination match.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GatewayId
The ID of a gateway attached to your VPC.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstanceId
The ID of a NAT instance in your VPC.

IsSetDestinationCidrBlock()()()()
Checks if DestinationCidrBlock property is set

IsSetGatewayId()()()()
Checks if GatewayId property is set

IsSetInstanceId()()()()
Checks if InstanceId property is set

IsSetNetworkInterfaceId()()()()
Checks if the NetworkInterfaceId property is set

IsSetRouteTableId()()()()
Checks if RouteTableId property is set

IsSetVpcPeeringConnectionId()()()()
Checks if VpcPeeringConnectionId is set

NetworkInterfaceId
Allows the routing of network interface IDs.
Remarks
Exactly one interface must be attached when specifying an instance ID or it fails. Value provided must be one of the following: GatewayID, InstanceID, or NetworkdInterfaceId.

RouteTableId
The ID of the route table where the route will be added.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
VpcPeeringConnectionId
The ID of a VPC peering connection.

WithDestinationCidrBlock(String) Obsolete.
Sets the CIDR address block used for the destination match.

WithGatewayId(String) Obsolete.
Sets the ID of a gateway attached to your VPC.

WithInstanceId(String) Obsolete.
Sets the ID of a NAT instance in your VPC.

WithNetworkInterfaceId(String) Obsolete.
Sets the network interface id.

WithRouteTableId(String) Obsolete.
Sets the ID of the route table where the route will be added.

WithVpcPeeringConnectionId(String) Obsolete.
Sets the VpcPeeringConnectionId The VpcPeeringConnectionId.

Remarks
When determining how to route traffic, we use the route with the most specific match. For example, let's say the traffic is destined for 192.0.2.3, and the route table includes the following two routes: 192.0.2.0/24 (goes to some target A) 192.0.2.0/28 (goes to some target B) Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list is more specific, so we use that route to determine where to target the traffic. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.
Inheritance Hierarchy
Object
EC2Request
 CreateRouteRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)