AWS SDK Version 2 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.

.NET Framework 4.5
 
Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual AssociateDhcpOptionsResponse AssociateDhcpOptions(
         AssociateDhcpOptionsRequest request
)

Parameters

request
Type: Amazon.EC2.Model.AssociateDhcpOptionsRequest

Container for the necessary parameters to execute the AssociateDhcpOptions service method.

Return Value
Type: Amazon.EC2.Model.AssociateDhcpOptionsResponse
The response from the AssociateDhcpOptions service method, as returned by EC2.

Version Information

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