:doc:`EC2 <../../ec2>` / Client / describe_account_attributes

***************************
describe_account_attributes
***************************



.. py:method:: 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, or ``none``.
   
  * ``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 <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html#ec2-on-demand-instances-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.
  

   

  .. note::

    

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeAccountAttributes>`_  


  **Request Syntax**
  ::

    response = client.describe_account_attributes(
        DryRun=True|False,
        AttributeNames=[
            'supported-platforms'|'default-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``.

    

  
  :type AttributeNames: list
  :param AttributeNames: 

    The account attribute names.

    

  
    - *(string) --* 

    

  
  :rtype: 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': {
            '...': '...',
        },
    }

  