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

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



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

  

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

   

  For more information about EBS volumes, see `Amazon EBS volumes <https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html>`__ in the *Amazon EBS User Guide*.

  

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


  **Request Syntax**
  ::

    response = volume.describe_attribute(
        Attribute='autoEnableIO'|'productCodes',
        DryRun=True|False
    )
    
  :type Attribute: string
  :param Attribute: **[REQUIRED]** 

    The attribute of the volume. This parameter is required.

    

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

    
    ::

      {
          'AutoEnableIO': {
              'Value': True|False
          },
          'ProductCodes': [
              {
                  'ProductCodeId': 'string',
                  'ProductCodeType': 'devpay'|'marketplace'
              },
          ],
          'VolumeId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AutoEnableIO** *(dict) --* 

        The state of ``autoEnableIO`` attribute.

        
        

        - **Value** *(boolean) --* 

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

          
    
      

      - **ProductCodes** *(list) --* 

        A list of product codes.

        
        

        - *(dict) --* 

          Describes a product code.

          
          

          - **ProductCodeId** *(string) --* 

            The product code.

            
          

          - **ProductCodeType** *(string) --* 

            The type of product code.

            
      
    
      

      - **VolumeId** *(string) --* 

        The ID of the volume.

        
  