:doc:`EMR <../../emr>` / Client / get_auto_termination_policy

***************************
get_auto_termination_policy
***************************



.. py:method:: EMR.Client.get_auto_termination_policy(**kwargs)

  

  Returns the auto-termination policy for an Amazon EMR cluster.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/GetAutoTerminationPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_auto_termination_policy(
        ClusterId='string'
    )
    
  :type ClusterId: string
  :param ClusterId: **[REQUIRED]** 

    Specifies the ID of the Amazon EMR cluster for which the auto-termination policy will be fetched.

    

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

    
    ::

      {
          'AutoTerminationPolicy': {
              'IdleTimeout': 123
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AutoTerminationPolicy** *(dict) --* 

        Specifies the auto-termination policy that is attached to an Amazon EMR cluster.

        
        

        - **IdleTimeout** *(integer) --* 

          Specifies the amount of idle time in seconds after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).

          
    
  