EC2 / Client / describe_account_attributes
describe_account_attributes#
- EC2.Client.describe_account_attributes(**kwargs)#
Describes attributes of your Amazon Web Services account. The following are the supported account attributes:
default-vpc
: The ID of the default VPC for your account, ornone
.max-instances
: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide.max-elastic-ips
: The maximum number of Elastic IP addresses that you can allocate.supported-platforms
: This attribute is deprecated.vpc-max-elastic-ips
: The maximum number of Elastic IP addresses that you can allocate.vpc-max-security-groups-per-interface
: The maximum number of security groups that you can assign to a network interface.
See also: AWS API Documentation
Request Syntax
response = client.describe_account_attributes( AttributeNames=[ 'supported-platforms'|'default-vpc', ], DryRun=True|False )
- Parameters:
AttributeNames (list) –
The account attribute names.
(string) –
DryRun (boolean) – 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 isUnauthorizedOperation
.
- Return type:
dict
- Returns:
Response Syntax
{ 'AccountAttributes': [ { 'AttributeName': 'string', 'AttributeValues': [ { 'AttributeValue': 'string' }, ] }, ] }
Response Structure
(dict) –
AccountAttributes (list) –
Information about the account attributes.
(dict) –
Describes an account attribute.
AttributeName (string) –
The name of the account attribute.
AttributeValues (list) –
The values for the account attribute.
(dict) –
Describes a value of an account attribute.
AttributeValue (string) –
The value of the attribute.
Examples
This example describes the supported-platforms attribute for your AWS account.
response = client.describe_account_attributes( AttributeNames=[ 'supported-platforms', ], ) print(response)
Expected Output:
{ 'AccountAttributes': [ { 'AttributeName': 'supported-platforms', 'AttributeValues': [ { 'AttributeValue': 'EC2', }, { 'AttributeValue': 'VPC', }, ], }, ], 'ResponseMetadata': { '...': '...', }, }
This example describes the attributes for your AWS account.
response = client.describe_account_attributes( ) print(response)
Expected Output:
{ 'AccountAttributes': [ { 'AttributeName': 'supported-platforms', 'AttributeValues': [ { 'AttributeValue': 'EC2', }, { 'AttributeValue': 'VPC', }, ], }, { 'AttributeName': 'vpc-max-security-groups-per-interface', 'AttributeValues': [ { 'AttributeValue': '5', }, ], }, { 'AttributeName': 'max-elastic-ips', 'AttributeValues': [ { 'AttributeValue': '5', }, ], }, { 'AttributeName': 'max-instances', 'AttributeValues': [ { 'AttributeValue': '20', }, ], }, { 'AttributeName': 'vpc-max-elastic-ips', 'AttributeValues': [ { 'AttributeValue': '5', }, ], }, { 'AttributeName': 'default-vpc', 'AttributeValues': [ { 'AttributeValue': 'none', }, ], }, ], 'ResponseMetadata': { '...': '...', }, }