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

********************************
get_default_credit_specification
********************************



.. py:method:: EC2.Client.get_default_credit_specification(**kwargs)

  

  Describes the default credit option for CPU usage of a burstable performance instance family.

   

  For more information, see `Burstable performance instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html>`__ in the *Amazon EC2 User Guide*.

  

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


  **Request Syntax**
  ::

    response = client.get_default_credit_specification(
        DryRun=True|False,
        InstanceFamily='t2'|'t3'|'t3a'|'t4g'
    )
    
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the operation, 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 InstanceFamily: string
  :param InstanceFamily: **[REQUIRED]** 

    The instance family.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'InstanceFamilyCreditSpecification': {
              'InstanceFamily': 't2'|'t3'|'t3a'|'t4g',
              'CpuCredits': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **InstanceFamilyCreditSpecification** *(dict) --* 

        The default credit option for CPU usage of the instance family.

        
        

        - **InstanceFamily** *(string) --* 

          The instance family.

          
        

        - **CpuCredits** *(string) --* 

          The default credit option for CPU usage of the instance family. Valid values are ``standard`` and ``unlimited``.

          
    
  