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

Methods

Included Modules

TaggedItem

Classes and Modules

Class AWS::EC2::RouteTable::Association
Class AWS::EC2::RouteTable::Route

External Aliases

route_table_id -> id

Attributes

route_table_id  [R]  @return [String]

Public Class methods

Public Instance methods

@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]

@param [String] destination_cidr_block The CIDR block address of the

  route to delete.

@return [nil]

@return [Boolean] Returns true if this is the main (default)

  route table.

Replaces an existing route within a route table in a VPC. @param (see create_route) @option (see create_route) @return [nil]

@return [Array<Route>] Returns an array of routes ({Route} objects)

  belonging to this route table.

@return [Array<Subnet>] Returns an array of subnets ({Subnet})

  that currently associated to this route table.

@return [VPC] Returns the VPC this route table belongs to.

Protected Instance methods

[Validate]