Amazon Elastic Compute Cloud

2016/01/12 - Amazon Elastic Compute Cloud - 3 new api methods

DisableVpcClassicLinkDnsSupport (new) Link ¶

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'
)
type VpcId

string

param VpcId

The ID of the VPC.

rtype

dict

returns

Response Syntax

{
    'Return': True|False
}

Response Structure

  • (dict) --

    • Return (boolean) --

      Returns true if the request succeeds; otherwise, it returns an error.

DescribeVpcClassicLinkDnsSupport (new) Link ¶

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'
)
type VpcIds

list

param VpcIds

One or more VPC IDs.

  • (string) --

type MaxResults

integer

param MaxResults

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.

type NextToken

string

param NextToken

The token for the next set of items to return. (You received this token from a prior call.)

rtype

dict

returns

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.

EnableVpcClassicLinkDnsSupport (new) Link ¶

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'
)
type VpcId

string

param VpcId

The ID of the VPC.

rtype

dict

returns

Response Syntax

{
    'Return': True|False
}

Response Structure

  • (dict) --

    • Return (boolean) --

      Returns true if the request succeeds; otherwise, it returns an error.