Method: Fog::Compute::AWS::Real#create_dhcp_options

Defined in:
lib/fog/aws/requests/compute/create_dhcp_options.rb

#create_dhcp_options(dhcp_configurations = {}) ⇒ Object

Creates a set of DHCP options for your VPC

Parameters

  • DhcpConfigurationOptions<~Hash> - hash of key value dhcp options to assign

Returns

  • response<~Excon::Response>:

    • body<~Hash>:

      • ‘requestId’<~String> - Id of request

Amazon API Reference


19
20
21
22
23
24
25
26
27
# File 'lib/fog/aws/requests/compute/create_dhcp_options.rb', line 19

def create_dhcp_options(dhcp_configurations = {})
  params = {}
  params.merge!(indexed_multidimensional_params(dhcp_configurations))
  request({
    'Action'    => 'CreateDhcpOptions',
    :idempotent => true,
    :parser     => Fog::Parsers::Compute::AWS::CreateDhcpOptions.new
  }.merge!(params))
end