DescribeVpcClassicLink - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

DescribeVpcClassicLink

Describes the ClassicLink status of one or more VPCs.

Note

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.

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

Filter.N

One or more filters.

  • is-classic-link-enabled - Whether the VPC is enabled for ClassicLink (true | false).

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

Type: Array of Filter objects

Required: No

VpcId.N

One or more VPCs for which you want to describe the ClassicLink status.

Type: Array of strings

Required: No

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

vpcSet

The ClassicLink status of one or more VPCs.

Type: Array of VpcClassicLink objects

For information about the errors that are common to all actions, see Common client error codes.

This example lists the ClassicLink status of vpc-88888888.

https://ec2.amazonaws.com/?Action=DescribeVpcClassicLink &VpcId.1=vpc-88888888 &AUTHPARAMS
<DescribeVpcClassicLinkResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <vpcSet> <item> <vpcId>vpc-0441b461</vpcId> <classicLinkEnabled>true</classicLinkEnabled> <tagSet/> </item> </vpcSet> </DescribeVpcClassicLinkResponse>

For more information about using this API in one of the language-specific Amazon SDKs, see the following: