Class: Chef::Resource::AwsDhcpOptions
- Inherits:
-
Provisioning::AWSDriver::AWSResourceWithEntry
- Object
- Provisioning::AWSDriver::AWSResourceWithEntry
- Chef::Resource::AwsDhcpOptions
- 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:
Instance Method Summary collapse
Instance Method Details
#aws_object ⇒ Object
52 53 54 55 56 |
# File 'lib/chef/resource/aws_dhcp_options.rb', line 52 def aws_object driver, id = get_driver_and_id result = driver.ec2.[id] if id result && result.exists? ? result : nil end |