Class: Chef::Resource::AwsNatGateway

Constant Summary

Constants inherited from Provisioning::AWSDriver::AWSResource

Provisioning::AWSDriver::AWSResource::NOT_PASSED

Instance Method Summary collapse

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

#_pv_is, attribute, lazy

Constructor Details

This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource

Instance Method Details

#aws_objectObject



93
94
95
96
97
# File 'lib/chef/resource/aws_nat_gateway.rb', line 93

def aws_object
  driver, nat_gateway_id = get_driver_and_id
  result = driver.ec2_resource.nat_gateway(nat_gateway_id) if nat_gateway_id
  result && result.id ? result : nil
end