class AWS::EC2::DHCPOptionsCollection

def [] dhcp_options_id

Returns:
  • (DHCPOptions) -

Parameters:
  • dhcp_options_id (String) --
def [] dhcp_options_id
  DHCPOptions.new(dhcp_options_id, :config => config)
end

def _each_item options = {}, &block

def _each_item options = {}, &block
  response = filtered_request(:describe_dhcp_options, options, &block)
  response.dhcp_options_set.each do |opts|
    options = DHCPOptions.new_from(:describe_dhcp_options, opts, 
      opts.dhcp_options_id, :config => config)
    yield(options)
  end
end

def create options = {}

Options Hash: (**options)
  • :netbios_node_type (String) -- Value indicating the
  • :netbios_name_servers (Array) --
  • :ntp_servers (Array) --
  • :domain_name_servers (Array) --
  • :domain_name (required, String) -- A domain name of your

Parameters:
  • options (Hash) --
def create options = {}
  configurations = []
  options.each_pair do |opt,values|
    opt = opt.to_s.gsub(/_/, '-')
    values = values.is_a?(Array) ? values : [values]
    configurations << { :key => opt, :values => values.map(&:to_s) }
  end
  client_opts = {}
  client_opts[:dhcp_configurations] = configurations
  resp = client.create_dhcp_options(client_opts)
  DHCPOptions.new_from(:create_dhcp_options, 
    resp.dhcp_options,
    resp.dhcp_options.dhcp_options_id,
    :config => config)
end