# File lib/fog/aws/models/compute/dhcp_option.rb, line 13 def initialize(attributes={}) super end
Associates an existing dhcp configration set with a VPC
dhcp_option.attach(dopt-id, vpc-id)
True or false depending on the result
# File lib/fog/aws/models/compute/dhcp_option.rb, line 25 def associate(vpc_id) requires :id connection.attach_dhcp_option(id, vpc_id) #reload end
Removes an existing dhcp configuration set
dhcp_option.destroy
True or false depending on the result
# File lib/fog/aws/models/compute/dhcp_option.rb, line 40 def destroy requires :id connection.delete_dhcp_options(id) true end
Create a dhcp configuration set
>> g = AWS.dhcp_options.new() >> g.save
requestId and a dhcpOptions object
# File lib/fog/aws/models/compute/dhcp_option.rb, line 56 def save requires :dhcp_configuration_set data = connection.create_dhcp_options(dhcp_configuration_set).body['dhcpOptionsSet'].first new_attributes = data.reject {|key,value| key == 'requestId'} merge_attributes(new_attributes) true true end