Class: Serverspec::Type::AWS::EC2::RouteTable
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::AWS::EC2::RouteTable
- Defined in:
- lib/resources/ec2/route_table.rb
Overview
The RouteTable class exposes the EC2::RouteTable resources
Instance Method Summary collapse
-
#associations ⇒ Array(Hash)
The associations between the route table and one or more subnets.
-
#initialize(rtb_id, instance = nil) ⇒ RouteTable
constructor
AWS SDK for Ruby v2 Aws::EC2::Client wrapper for initializing a RouteTable resource.
-
#propagating_vgws ⇒ Array(Hash)
Any virtual private gateway (VGW) propagating routes.
-
#routes ⇒ Array(Hash)
The routes in the route table.
-
#tags ⇒ Array(Hash)
Any tags assigned to the route table.
-
#to_s ⇒ String
Returns the string representation of EC2::RouteTable.
-
#vpc_id ⇒ String
The ID of the VPC.
Constructor Details
#initialize(rtb_id, instance = nil) ⇒ RouteTable
AWS SDK for Ruby v2 Aws::EC2::Client wrapper for initializing a RouteTable resource
15 16 17 18 19 20 |
# File 'lib/resources/ec2/route_table.rb', line 15 def initialize(rtb_id, instance = nil) check_init_arg 'rtb_id', 'EC2::RouteTable', rtb_id @rtb_id = rtb_id @aws = instance.nil? ? Aws::EC2::Client.new : instance get_rtb rtb_id end |
Instance Method Details
#associations ⇒ Array(Hash)
The associations between the route table and one or more subnets
42 43 44 |
# File 'lib/resources/ec2/route_table.rb', line 42 def associations @rtb.associations end |
#propagating_vgws ⇒ Array(Hash)
Any virtual private gateway (VGW) propagating routes
54 55 56 |
# File 'lib/resources/ec2/route_table.rb', line 54 def propagating_vgws @rtb.propagating_vgws end |
#routes ⇒ Array(Hash)
The routes in the route table
36 37 38 |
# File 'lib/resources/ec2/route_table.rb', line 36 def routes @rtb.routes end |
#tags ⇒ Array(Hash)
Any tags assigned to the route table
48 49 50 |
# File 'lib/resources/ec2/route_table.rb', line 48 def @rtb. end |
#to_s ⇒ String
Returns the string representation of EC2::RouteTable
24 25 26 |
# File 'lib/resources/ec2/route_table.rb', line 24 def to_s "EC2 RouteTable: #{@rtb_id}" end |
#vpc_id ⇒ String
The ID of the VPC
30 31 32 |
# File 'lib/resources/ec2/route_table.rb', line 30 def vpc_id @rtb.vpc_id end |