EC2 / Client / disable_vpc_classic_link_dns_support
disable_vpc_classic_link_dns_support#
- EC2.Client.disable_vpc_classic_link_dns_support(**kwargs)#
Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it’s linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
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.
See also: AWS API Documentation
Request Syntax
response = client.disable_vpc_classic_link_dns_support( VpcId='string' )
- Parameters:
VpcId (string) – The ID of the VPC.
- Return type:
dict
- Returns:
Response Syntax
{ 'Return': True|False }
Response Structure
(dict) –
Return (boolean) –
Returns
true
if the request succeeds; otherwise, it returns an error.