Class: Chef::Resource::AwsNetworkAcl
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsNetworkAcl
- Includes:
- Provisioning::AWSDriver::AWSTaggable
- Defined in:
- lib/chef/resource/aws_network_acl.rb
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
aws_sdk_type, #delete_managed_entry, #get_id_from_managed_entry, managed_entry_id_name, managed_entry_type, #save_managed_entry, #to_s
Methods inherited from Provisioning::AWSDriver::AWSResource
#action, #action=, attribute, aws_id_attribute, aws_id_prefix, #aws_object_id, aws_option_handlers, aws_sdk_class, aws_sdk_class_id, aws_sdk_option_name, aws_sdk_type, 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
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/chef/resource/aws_network_acl.rb', line 51 def aws_object driver, id = get_driver_and_id result = driver.ec2.network_acls[id] if id begin # network_acls don't have an `exists?` method so have to query an attribute result.vpc_id result rescue AWS::EC2::Errors::InvalidNetworkAclID::NotFound nil end end |