DescribeVpcClassicLink
Describes the ClassicLink status of one or more VPCs.
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.
Request Parameters
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 isUnauthorizedOperation
.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 keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
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
Response Elements
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
Errors
For information about the errors that are common to all actions, see Common client error codes.
Examples
Example
This example lists the ClassicLink status of
vpc-88888888
.
Sample Request
https://ec2.amazonaws.com/?Action=DescribeVpcClassicLink
&VpcId.1=vpc-88888888
&AUTHPARAMS
Sample Response
<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>
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: