Amazon Elastic Compute Cloud

2022/10/04 - Amazon Elastic Compute Cloud - 2 updated api methods

Changes  Added EnableNetworkAddressUsageMetrics flag for ModifyVpcAttribute, DescribeVpcAttribute APIs.

DescribeVpcAttribute (updated) Link ¶
Changes (request, response)
Request
{'Attribute': {'enableNetworkAddressUsageMetrics'}}
Response
{'EnableNetworkAddressUsageMetrics': {'Value': 'boolean'}}

Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

See also: AWS API Documentation

Request Syntax

client.describe_vpc_attribute(
    Attribute='enableDnsSupport'|'enableDnsHostnames'|'enableNetworkAddressUsageMetrics',
    VpcId='string',
    DryRun=True|False
)
type Attribute

string

param Attribute

[REQUIRED]

The VPC attribute.

type VpcId

string

param VpcId

[REQUIRED]

The ID of the VPC.

type DryRun

boolean

param DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

rtype

dict

returns

Response Syntax

{
    'VpcId': 'string',
    'EnableDnsHostnames': {
        'Value': True|False
    },
    'EnableDnsSupport': {
        'Value': True|False
    },
    'EnableNetworkAddressUsageMetrics': {
        'Value': True|False
    }
}

Response Structure

  • (dict) --

    • VpcId (string) --

      The ID of the VPC.

    • EnableDnsHostnames (dict) --

      Indicates whether the instances launched in the VPC get DNS hostnames. If this attribute is true , instances in the VPC get DNS hostnames; otherwise, they do not.

      • Value (boolean) --

        The attribute value. The valid values are true or false .

    • EnableDnsSupport (dict) --

      Indicates whether DNS resolution is enabled for the VPC. If this attribute is true , the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

      • Value (boolean) --

        The attribute value. The valid values are true or false .

    • EnableNetworkAddressUsageMetrics (dict) --

      Indicates whether Network Address Usage metrics are enabled for your VPC.

      • Value (boolean) --

        The attribute value. The valid values are true or false .

ModifyVpcAttribute (updated) Link ¶
Changes (request)
{'EnableNetworkAddressUsageMetrics': {'Value': 'boolean'}}

Modifies the specified attribute of the specified VPC.

See also: AWS API Documentation

Request Syntax

client.modify_vpc_attribute(
    EnableDnsHostnames={
        'Value': True|False
    },
    EnableDnsSupport={
        'Value': True|False
    },
    VpcId='string',
    EnableNetworkAddressUsageMetrics={
        'Value': True|False
    }
)
type EnableDnsHostnames

dict

param EnableDnsHostnames

Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

  • Value (boolean) --

    The attribute value. The valid values are true or false .

type EnableDnsSupport

dict

param EnableDnsSupport

Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

  • Value (boolean) --

    The attribute value. The valid values are true or false .

type VpcId

string

param VpcId

[REQUIRED]

The ID of the VPC.

type EnableNetworkAddressUsageMetrics

dict

param EnableNetworkAddressUsageMetrics

Indicates whether Network Address Usage metrics are enabled for your VPC.

  • Value (boolean) --

    The attribute value. The valid values are true or false .

returns

None