2016/01/12 - Amazon Elastic Compute Cloud - 3 new api methods
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. For more information about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
Request Syntax
client.describe_vpc_classic_link_dns_support(
VpcIds=[
'string',
],
MaxResults=123,
NextToken='string'
)
list
One or more VPC IDs.
(string) --
integer
The maximum number of items to return for this request. The request returns a token that you can specify in a subsequent call to get the next set of results.
string
The token for the next set of items to return. (You received this token from a prior call.)
dict
Response Syntax
{
'Vpcs': [
{
'VpcId': 'string',
'ClassicLinkDnsSupported': True|False
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Vpcs (list) --
Information about the ClassicLink DNS support status of the VPCs.
(dict) --
Describes the ClassicLink DNS support status of a VPC.
VpcId (string) --
The ID of the VPC.
ClassicLinkDnsSupported (boolean) --
Indicates whether ClassicLink DNS support is enabled for the VPC.
NextToken (string) --
The token to use when requesting the next set of items.
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 about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
Request Syntax
client.disable_vpc_classic_link_dns_support(
VpcId='string'
)
string
The ID of the VPC.
dict
Response Syntax
{
'Return': True|False
}
Response Structure
(dict) --
Return (boolean) --
Returns true if the request succeeds; otherwise, it returns an error.
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 about ClassicLink, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
Request Syntax
client.enable_vpc_classic_link_dns_support(
VpcId='string'
)
string
The ID of the VPC.
dict
Response Syntax
{
'Return': True|False
}
Response Structure
(dict) --
Return (boolean) --
Returns true if the request succeeds; otherwise, it returns an error.