class Chef::Resource::AwsRouteTable
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:
Public Instance Methods
aws_object()
click to toggle source
# File lib/chef/resource/aws_route_table.rb, line 99 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