EC2 / Client / enable_vpc_classic_link_dns_support
enable_vpc_classic_link_dns_support#
- EC2.Client.enable_vpc_classic_link_dns_support(**kwargs)#
Note
This action is deprecated.
Enables a VPC to support DNS hostname resolution for ClassicLink. 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.
You must specify a VPC ID in the request.
See also: AWS API Documentation
Request Syntax
response = client.enable_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.