AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateDhcpOptions operation. Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.

Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the domain-name-servers option either to AmazonProvidedDNS or to a domain name server of your choice. For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

Inheritance Hierarchy


Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z


public class CreateDhcpOptionsRequest : AmazonEC2Request

The CreateDhcpOptionsRequest type exposes the following members


Public Method CreateDhcpOptionsRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method CreateDhcpOptionsRequest(List<DhcpConfiguration>)

Instantiates CreateDhcpOptionsRequest with the parameterized properties


Public Property DhcpConfigurations System.Collections.Generic.List<Amazon.EC2.Model.DhcpConfiguration>

Gets and sets the property DhcpConfigurations.

A DHCP configuration option.


This example creates a DHCP options set.

To create a DHCP options set

var response = client.CreateDhcpOptions(new CreateDhcpOptionsRequest 
    DhcpConfigurations = new List {
        new DhcpConfiguration {
            Key = "domain-name-servers",
            Values = new List {

DhcpOptions dhcpOptions = response.DhcpOptions;


Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms