Class: Chef::Resource::AwsRouteTable
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsRouteTable
- Includes:
- Provisioning::AWSDriver::AWSTaggable
- Defined in:
- lib/chef/resource/aws_route_table.rb
Overview
An AWS route table, specifying where to route traffic destined for particular sets of IPs.
‘name` is not guaranteed unique for an AWS account; therefore, Chef will store the route table ID associated with this name in your Chef server in the data bag `data/aws_route_Table/<name>`.
API documentation for the AWS Ruby SDK for VPCs (and the object returned from ‘aws_object` can be found here:
Constant Summary
Constants inherited from Provisioning::AWSDriver::AWSResource
Provisioning::AWSDriver::AWSResource::NOT_PASSED
Instance Method Summary collapse
Methods included from Provisioning::AWSDriver::AWSTaggable
Methods inherited from Provisioning::AWSDriver::AWSResourceWithEntry
#delete_managed_entry, #get_id_from_managed_entry, #save_managed_entry, #to_s
Methods inherited from Provisioning::AWSDriver::AWSResource
#action, #action=, #aws_object_id, get_aws_object, get_aws_object_id, #initialize, lookup_options
Methods inherited from Provisioning::AWSDriver::SuperLWRP
Constructor Details
This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource
Instance Method Details
#aws_object ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/chef/resource/aws_route_table.rb', line 98 def aws_object driver, id = get_driver_and_id result = driver.ec2_resource.route_table(id) if id begin # try accessing it to find out if it exists result.vpc_id if result rescue ::Aws::EC2::Errors::InvalidRouteTableIDNotFound result = nil end result end |