Skip to content

describe_vpc_classic_link async

describe_vpc_classic_link(
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    vpc_ids: Optional[VpcClassicLinkIdList] = None,
    filters: Optional[FilterList] = None,
) -> DescribeVpcClassicLinkResult

This action is deprecated.

Describes the ClassicLink status of the specified VPCs.

Parameters:

  • dry_run (Optional[Boolean], default: None ) –

    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.

  • vpc_ids (Optional[VpcClassicLinkIdList], default: None ) –

    The VPCs for which you want to describe the ClassicLink status.

  • filters (Optional[FilterList], default: None ) –

    The filters.

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

    • tag - 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.

Raises:

Source code in docs_src/capo_ec2/_services/async_ec2.py
async def describe_vpc_classic_link(
    self,
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    vpc_ids: Optional[
        "capo_ec2.types.vpc_classic_link_id_list.VpcClassicLinkIdList"
    ] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
) -> "capo_ec2.types.describe_vpc_classic_link_result.DescribeVpcClassicLinkResult":
    """<note> <p>This action is deprecated.</p> </note> <p>Describes the ClassicLink status of the specified VPCs.</p>

    Args:
        dry_run: <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
        vpc_ids: <p>The VPCs for which you want to describe the ClassicLink status.</p>
        filters: <p>The filters.</p> <ul> <li> <p> <code>is-classic-link-enabled</code> - Whether the VPC is enabled for ClassicLink (<code>true</code> | <code>false</code>).</p> </li> <li> <p> <code>tag</code> - 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 <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p> </li> <li> <p> <code>tag-key</code> - 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.</p> </li> </ul>

    Raises:
        capo_ec2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ec2.types.describe_vpc_classic_link_request.DescribeVpcClassicLinkRequest]",
    ) -> AsyncOperationResponse[
        "capo_ec2.types.describe_vpc_classic_link_result.DescribeVpcClassicLinkResult"
    ]:
        import capo_ec2._operations.amazon_ec2.describe_vpc_classic_link

        (
            output,
            http_response,
        ) = await capo_ec2._operations.amazon_ec2.describe_vpc_classic_link.async_describe_vpc_classic_link(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeVpcClassicLink")
    )
    input_: capo_ec2.types.describe_vpc_classic_link_request.DescribeVpcClassicLinkRequest = {}
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if vpc_ids is not None:
        input_["vpc_ids"] = vpc_ids
    if filters is not None:
        input_["filters"] = filters

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output