AWS SDK Version 3 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.

Describes a route in a route table.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.Route

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class Route

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 IPv4 CIDR block used for the destination match.

Public Property DestinationIpv6CidrBlock System.String

Gets and sets the property DestinationIpv6CidrBlock.

The IPv6 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 EgressOnlyInternetGatewayId System.String

Gets and sets the property EgressOnlyInternetGatewayId.

The ID of the egress-only Internet gateway.

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 NatGatewayId System.String

Gets and sets the property NatGatewayId.

The ID of a NAT gateway.

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 - The route was automatically created when the route table was created.

  • CreateRoute - The route was manually added to the route table.

  • EnableVgwRoutePropagation - 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 Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms