Class: Chef::Resource::AwsDhcpOptions
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- LWRPBase
- Provisioning::AWSDriver::SuperLWRP
- Provisioning::AWSDriver::AWSResource
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsDhcpOptions
- Includes:
- Provisioning::AWSDriver::AWSTaggable
- Defined in:
- lib/chef/resource/aws_dhcp_options.rb
Overview
DHCP options for use by VPCs.
If you specify nothing, the DHCP options set will use ‘AmazonProvidedDNS’ for its domain name servers and all other values will be empty.
API documentation for the AWS Ruby SDK for DHCP Options (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
54 55 56 57 58 |
# File 'lib/chef/resource/aws_dhcp_options.rb', line 54 def aws_object driver, id = get_driver_and_id result = driver.ec2.[id] if id result && result.exists? ? result : nil end |