CreateDhcpOptions#

Description#

Creates a set of DHCP options for your VPC.

Request Parameters#

Required parameters#

  • DhcpConfiguration.n.Key — A DHCP configuration option.

    • Type: String

    • Required: Yes

    • Valid values: domain-name | domain-name-servers | ntp-servers | netbios-name-servers | netbios-node-type

  • DhcpConfiguration.n.Value.n — The DHCP option values.

    • Type: String

    • Required: Yes

Optional parameters#

  • TagSpecification.N — The tags assigned to the resource when it is created.

Response Elements#

  • dhcpOptions — The description of DHCP options.

  • requestId — The request ID.

    • Type: String

Examples#

c2-ec2 CreateDhcpOptions DhcpConfiguration.1.Key domain-name-servers DhcpConfiguration.1.Value.1 AmazonProvidedDNS DhcpConfiguration.1.Value.2 8.8.8.8

c2-ec2 CreateDhcpOptions DhcpConfiguration.1.Key domain-name DhcpConfiguration.1.Value.1 example.com DhcpConfiguration.2.Key domain-name-servers DhcpConfiguration.2.Value.1 10.0.0.60 DhcpConfiguration.2.Value.2 8.8.8.8 DhcpConfiguration.3.Key ntp-servers DhcpConfiguration.3.Value.1 10.0.0.53

c2-ec2 CreateDhcpOptions DhcpConfiguration.1.Key domain-name-servers DhcpConfiguration.1.Value.1 AmazonProvidedDNS \
                         DhcpConfiguration.1.Value.2 8.8.8.8 TagSpecification.0.ResourceType dhcp-options \
                         TagSpecification.0.Tag.0.Key "tag_key" TagSpecification.0.Tag.0.Value "tag_value"