We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS
hostname of a linked EC2-Classic instance resolves to its private IP address when
addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname
of an instance in a VPC resolves to its private IP address when addressed from a linked
EC2-Classic instance. For more information, see ClassicLink in the
Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
example
Use a bare-bones client and the command you need to make an API call.
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, EnableVpcClassicLinkDnsSupportCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, EnableVpcClassicLinkDnsSupportCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new EnableVpcClassicLinkDnsSupportCommand(input); const response = await client.send(command);
EnableVpcClassicLinkDnsSupportCommandInput for command's
input
shape.EnableVpcClassicLinkDnsSupportCommandOutput for command's
response
shape.config for EC2Client's
config
shape.