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

Gets and sets the property CarrierGatewayId.

The ID of the carrier gateway.

Public Property CoreNetworkArn System.String

Gets and sets the property CoreNetworkArn.

The Amazon Resource Name (ARN) of the core network.

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 Amazon Web 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 ID of Amazon Web Services account that owns the instance.

Public Property LocalGatewayId System.String

Gets and sets the property LocalGatewayId.

The ID of the local gateway.

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

Gets and sets the property TransitGatewayId.

The ID of a transit gateway.

Public Property VpcPeeringConnectionId System.String

Gets and sets the property VpcPeeringConnectionId.

The ID of a VPC peering connection.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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