:doc:`Vpc <index>` / Action / describe_attribute

******************
describe_attribute
******************



.. py:method:: EC2.Vpc.describe_attribute(**kwargs)

  

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

  

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


  **Request Syntax**
  ::

    response = vpc.describe_attribute(
        Attribute='enableDnsSupport'|'enableDnsHostnames'|'enableNetworkAddressUsageMetrics',
        DryRun=True|False
    )
    
  :type Attribute: string
  :param Attribute: **[REQUIRED]** 

    The VPC attribute.

    

  
  :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**

    
    ::

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

    

    - *(dict) --* 
      

      - **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``.

          
    
      

      - **VpcId** *(string) --* 

        The ID of the VPC.

        
  