- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DescribeVpcClassicLinkDnsSupportCommand
This action is deprecated.
Describes the ClassicLink DNS support status of one or more VPCs. 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.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DescribeVpcClassicLinkDnsSupportCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, DescribeVpcClassicLinkDnsSupportCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const input = { // DescribeVpcClassicLinkDnsSupportRequest
VpcIds: [ // VpcClassicLinkIdList
"STRING_VALUE",
],
MaxResults: Number("int"),
NextToken: "STRING_VALUE",
};
const command = new DescribeVpcClassicLinkDnsSupportCommand(input);
const response = await client.send(command);
// { // DescribeVpcClassicLinkDnsSupportResult
// NextToken: "STRING_VALUE",
// Vpcs: [ // ClassicLinkDnsSupportList
// { // ClassicLinkDnsSupport
// ClassicLinkDnsSupported: true || false,
// VpcId: "STRING_VALUE",
// },
// ],
// };
DescribeVpcClassicLinkDnsSupportCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MaxResults | number | undefined | The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination . |
NextToken | string | undefined | The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. |
VpcIds | string[] | undefined | The IDs of the VPCs. |
DescribeVpcClassicLinkDnsSupportCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
NextToken | string | undefined | The token to include in another request to get the next page of items. This value is |
Vpcs | ClassicLinkDnsSupport[] | undefined | Information about the ClassicLink DNS support status of the VPCs. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
EC2ServiceException | Base exception class for all service exceptions from EC2 service. |