AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Describes a route in a route table.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.Route

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class Route : Object

The Route type exposes the following members

Constructors

NameDescription
Public Method Route()

Properties

NameTypeDescription
Public Property DestinationCidrBlock System.String Gets and sets the property DestinationCidrBlock.

The CIDR block used for the destination match.

Public Property DestinationPrefixListId System.String Gets and sets the property DestinationPrefixListId.

The prefix of the AWS service.

Public Property GatewayId System.String Gets and sets the property GatewayId.

The ID of a gateway attached to your VPC.

Public Property InstanceId System.String Gets and sets the property InstanceId.

The ID of a NAT instance in your VPC.

Public Property InstanceOwnerId System.String Gets and sets the property InstanceOwnerId.

The AWS account ID of the owner of the instance.

Public Property NetworkInterfaceId System.String Gets and sets the property NetworkInterfaceId.

The ID of the network interface.

Public Property Origin Amazon.EC2.RouteOrigin Gets and sets the property Origin.

Describes how the route was created.

  • CreateRouteTable indicates that route was automatically created when the route table was created.
  • CreateRoute indicates that the route was manually added to the route table.
  • EnableVgwRoutePropagation indicates that the route was propagated by route propagation.
Public Property State Amazon.EC2.RouteState Gets and sets the property State.

The state of the route. The blackhole state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).

Public Property VpcPeeringConnectionId System.String Gets and sets the property VpcPeeringConnectionId.

The ID of the VPC peering connection.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8