You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::Route
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::EC2::Route
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#carrier_gateway_id ⇒ String
readonly
The ID of the carrier gateway.
-
#destination_cidr_block ⇒ String
readonly
-
#destination_ipv_6_cidr_block ⇒ String
readonly
The IPv6 CIDR block used for the destination match.
-
#destination_prefix_list_id ⇒ String
readonly
The prefix of the AWS service.
-
#egress_only_internet_gateway_id ⇒ String
readonly
The ID of the egress-only internet gateway.
-
#gateway_id ⇒ String
readonly
The ID of a gateway attached to your VPC.
-
#instance_id ⇒ String
readonly
The ID of a NAT instance in your VPC.
-
#instance_owner_id ⇒ String
readonly
The AWS account ID of the owner of the instance.
-
#local_gateway_id ⇒ String
readonly
The ID of the local gateway.
-
#nat_gateway_id ⇒ String
readonly
The ID of a NAT gateway.
-
#network_interface_id ⇒ String
readonly
The ID of the network interface.
-
#origin ⇒ String
readonly
Describes how the route was created.
-
#route_table_id ⇒ String
readonly
-
#state ⇒ String
readonly
The state of the route.
-
#transit_gateway_id ⇒ String
readonly
The ID of a transit gateway.
-
#vpc_peering_connection_id ⇒ String
readonly
The ID of a VPC peering connection.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#delete(options = {}) ⇒ Struct
Deletes the specified route from the specified route table.
.
-
#initialize ⇒ Object
constructor
-
#replace(options = {}) ⇒ Struct
Replaces an existing route within a route table in a VPC.
-
#route_table ⇒ RouteTable
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(route_table_id, destination_cidr_block, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#carrier_gateway_id ⇒ String (readonly)
The ID of the carrier gateway.
#destination_cidr_block ⇒ String (readonly)
#destination_ipv_6_cidr_block ⇒ String (readonly)
The IPv6 CIDR block used for the destination match.
#destination_prefix_list_id ⇒ String (readonly)
The prefix of the AWS service.
#egress_only_internet_gateway_id ⇒ String (readonly)
The ID of the egress-only internet gateway.
#gateway_id ⇒ String (readonly)
The ID of a gateway attached to your VPC.
#instance_id ⇒ String (readonly)
The ID of a NAT instance in your VPC.
#instance_owner_id ⇒ String (readonly)
The AWS account ID of the owner of the instance.
#local_gateway_id ⇒ String (readonly)
The ID of the local gateway.
#nat_gateway_id ⇒ String (readonly)
The ID of a NAT gateway.
#network_interface_id ⇒ String (readonly)
The ID of the network interface.
#origin ⇒ String (readonly)
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.Possible values:
- CreateRouteTable
- CreateRoute
- EnableVgwRoutePropagation
#route_table_id ⇒ String (readonly)
#state ⇒ String (readonly)
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).
Possible values:
- active
- blackhole
#transit_gateway_id ⇒ String (readonly)
The ID of a transit gateway.
#vpc_peering_connection_id ⇒ String (readonly)
The ID of a VPC peering connection.
Instance Method Details
#delete(options = {}) ⇒ Struct
Deletes the specified route from the specified route table.
#replace(options = {}) ⇒ Struct
Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.
For more information, see Route Tables in the Amazon Virtual Private Cloud User Guide.