import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { AssociateDhcpOptionsRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateDhcpOptionsCommand}. */ export interface AssociateDhcpOptionsCommandInput extends AssociateDhcpOptionsRequest { } /** * @public * * The output of {@link AssociateDhcpOptionsCommand}. */ export interface AssociateDhcpOptionsCommandOutput extends __MetadataBearer { } declare const AssociateDhcpOptionsCommand_base: { new (input: AssociateDhcpOptionsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssociateDhcpOptionsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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 option sets * in the Amazon VPC User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, AssociateDhcpOptionsCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, AssociateDhcpOptionsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // AssociateDhcpOptionsRequest * DhcpOptionsId: "STRING_VALUE", // required * VpcId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new AssociateDhcpOptionsCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param AssociateDhcpOptionsCommandInput - {@link AssociateDhcpOptionsCommandInput} * @returns {@link AssociateDhcpOptionsCommandOutput} * @see {@link AssociateDhcpOptionsCommandInput} for command's `input` shape. * @see {@link AssociateDhcpOptionsCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To associate a DHCP options set with a VPC * ```javascript * // This example associates the specified DHCP options set with the specified VPC. * const input = { * DhcpOptionsId: "dopt-d9070ebb", * VpcId: "vpc-a01106c2" * }; * const command = new AssociateDhcpOptionsCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @example To associate the default DHCP options set with a VPC * ```javascript * // This example associates the default DHCP options set with the specified VPC. * const input = { * DhcpOptionsId: "default", * VpcId: "vpc-a01106c2" * }; * const command = new AssociateDhcpOptionsCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class AssociateDhcpOptionsCommand extends AssociateDhcpOptionsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateDhcpOptionsRequest; output: {}; }; sdk: { input: AssociateDhcpOptionsCommandInput; output: AssociateDhcpOptionsCommandOutput; }; }; }