Skip to content

describe_vpc_classic_link_dns_support

describe_vpc_classic_link_dns_support(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    vpc_ids: Optional[VpcClassicLinkIdList] = None,
    max_results: Optional[DescribeVpcClassicLinkDnsSupportMaxResults] = None,
    next_token: Optional[DescribeVpcClassicLinkDnsSupportNextToken] = None,
) -> DescribeVpcClassicLinkDnsSupportResult

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.

Parameters:

Raises:

Source code in docs_src/capo_ec2/_services/ec2.py
def describe_vpc_classic_link_dns_support(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    vpc_ids: Optional[
        "capo_ec2.types.vpc_classic_link_id_list.VpcClassicLinkIdList"
    ] = None,
    max_results: Optional[
        "capo_ec2.types.describe_vpc_classic_link_dns_support_max_results.DescribeVpcClassicLinkDnsSupportMaxResults"
    ] = None,
    next_token: Optional[
        "capo_ec2.types.describe_vpc_classic_link_dns_support_next_token.DescribeVpcClassicLinkDnsSupportNextToken"
    ] = None,
) -> "capo_ec2.types.describe_vpc_classic_link_dns_support_result.DescribeVpcClassicLinkDnsSupportResult":
    """<note> <p>This action is deprecated.</p> </note> <p>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.</p>

    Args:
        vpc_ids: <p>The IDs of the VPCs.</p>
        max_results: <p>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 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
        next_token: <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>

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

    def _handler(
        req: "OperationRequest[capo_ec2.types.describe_vpc_classic_link_dns_support_request.DescribeVpcClassicLinkDnsSupportRequest]",
    ) -> OperationResponse[
        "capo_ec2.types.describe_vpc_classic_link_dns_support_result.DescribeVpcClassicLinkDnsSupportResult"
    ]:
        import capo_ec2._operations.amazon_ec2.describe_vpc_classic_link_dns_support

        output, http_response = (
            capo_ec2._operations.amazon_ec2.describe_vpc_classic_link_dns_support.describe_vpc_classic_link_dns_support(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeVpcClassicLinkDnsSupport")
    )
    input_: capo_ec2.types.describe_vpc_classic_link_dns_support_request.DescribeVpcClassicLinkDnsSupportRequest = {}
    if vpc_ids is not None:
        input_["vpc_ids"] = vpc_ids
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output