Class | AWS::EC2::RouteTable |
In: |
lib/aws/ec2/route_table.rb
lib/aws/ec2/route_table/association.rb lib/aws/ec2/route_table/route.rb |
Parent: | Resource |
Represents a single route in a {RouteTable}.
# enumerating routes within a route table ec2 = AWS::EC2.new route_table = ec2.route_tables.first route_table.routes.each do |route| # ... end
route_table_id | -> | id |
route_table_id | [R] | @return [String] |
@return [Array<RouteTable::Association>] Returns an array of
{RouteTable::Association} objects (association to subnets).
Creates a new route in this route route. The route must be attached to a gateway, instance or network interface.
@param [String] destination_cidr_block 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.
@param [Hash] options
@option options [InternetGateway,String] :internet_gateway
An {InternetGateway} object or an internet gateway id string to attach the route to.
@option options [Instance,String] :instance An {Instance} object
or instance id string to attach the route to.
@option options [NetworkInterface,String] :network_interface
A {NetworkInterface} object or network interface id string to attach the route to.
@return [nil]
Deletes this route table. The route table must not be associated with a subnet. You can‘t delete the main route table. @return [nil]
Replaces an existing route within a route table in a VPC. @param (see create_route) @option (see create_route) @return [nil]