EMR / Client / put_auto_termination_policy

put_auto_termination_policy#

EMR.Client.put_auto_termination_policy(**kwargs)#

Note

Auto-termination is supported in Amazon EMR releases 5.30.0 and 6.1.0 and higher. For more information, see Using an auto-termination policy.

Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see Control cluster termination.

See also: AWS API Documentation

Request Syntax

response = client.put_auto_termination_policy(
    ClusterId='string',
    AutoTerminationPolicy={
        'IdleTimeout': 123
    }
)
Parameters:
  • ClusterId (string) –

    [REQUIRED]

    Specifies the ID of the Amazon EMR cluster to which the auto-termination policy will be attached.

  • AutoTerminationPolicy (dict) –

    Specifies the auto-termination policy to attach to the 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).

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –