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. 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.

Namespace: Amazon.EC2.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class CreateRouteRequest
Public Class CreateRouteRequest
public ref class CreateRouteRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
CreateRouteRequest()()()()
Initializes a new instance of the CreateRouteRequest class
DestinationCidrBlock
Gets and sets the DestinationCidrBlock property. The CIDR address block used for the destination match. For example: 0.0.0.0/0. Routing decisions are based on the most specific match.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GatewayId
Gets and sets the GatewayId property. 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
Gets and sets the InstanceId property. 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
NetworkInterfaceId
Gets and sets the NetworkInterfaceId property
RouteTableId
Gets and sets the RouteTableId property. The ID of the route table where the route will be added.
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WithDestinationCidrBlock(String)
Sets the DestinationCidrBlock property
WithGatewayId(String)
Sets the GatewayId property
WithInstanceId(String)
Sets the InstanceId property
WithNetworkInterfaceId(String)
Sets the NetworkInterfaceId property
WithRouteTableId(String)
Sets the RouteTableId property

Inheritance Hierarchy

System..::..Object
  Amazon.EC2.Model..::..CreateRouteRequest

See Also