EC2.Client.
enable_vpc_classic_link_dns_support
(**kwargs)¶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 .
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. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide .
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'
)
{
'Return': True|False
}
Response Structure
Returns true
if the request succeeds; otherwise, it returns an error.