A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateDhcpOptions.html below:

CreateDhcpOptions - Amazon Elastic Compute Cloud

CreateDhcpOptions

Creates a custom set of DHCP options. After you create a DHCP option set, you associate it with a VPC. After you associate a DHCP option set with a VPC, all existing and newly launched instances in the VPC use this set of DHCP options.

The following are the individual DHCP options you can specify. For more information, see DHCP option sets in the Amazon VPC User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DhcpConfiguration.N

A DHCP configuration option.

Type: Array of NewDhcpConfiguration objects

Required: Yes

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

TagSpecification.N

The tags to assign to the DHCP option.

Type: Array of TagSpecification objects

Required: No

Response Elements

The following elements are returned by the service.

dhcpOptions

A set of DHCP options.

Type: DhcpOptions object

requestId

The ID of the request.

Type: String

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples Example

This example creates a set of DHCP options with a domain name example.com and two DNS servers (10.2.5.1 and 10.2.5.2). The DNS servers' IP addresses are specified in a single parameter, separated by commas, to preserve the order in which they are specified.

Sample Request
https://ec2.amazonaws.com/?Action=CreateDhcpOptions 
&DhcpConfiguration.1.Key=domain-name
&DhcpConfiguration.1.Value.1=example.com
&DhcpConfiguration.2.Key=domain-name-servers
&DhcpConfiguration.2.Value.1=10.2.5.1,10.2.5.2
&DhcpConfiguration.3.Key=ipv6-address-preferred-lease-time
&DhcpConfiguration.3.Value.1=140
&AUTHPARAMS
Sample Response
<CreateDhcpOptionsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
  <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId>
  <dhcpOptions>
      <dhcpOptionsId>dopt-096c1234cade2dabc</dhcpOptionsId>
      <dhcpConfigurationSet>
        <item>
          <key>domain-name</key>
          <valueSet>
            <item>
              <value>example.com</value>
            </item>
          </valueSet>
        </item>
        <item>
          <key>domain-name-servers</key>
          <valueSet>
            <item>
              <value>10.2.5.1</value>
            </item>
            <item>
              <value>10.2.5.2</value>
            </item>
          </valueSet>
        </item>
        <item>
          <key>ipv6-address-preferred-lease-time</key>
          <valueSet>
            <item>
              <value>140</value>
            </item>
          </valueSet>
        </item>
      </dhcpConfigurationSet>
      <tagSet/>
  </dhcpOptions>
</CreateDhcpOptionsResponse>
See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4