v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465378349.0 KB

<note> <p>Auto-termination is supported in Amazon EMR releases 5.30.0 and 6.1.0 and later. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-auto-termination-policy.html">Using an auto-termination policy</a>.</p> </note> <p>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 <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>

post/#X-Amz-Target=ElasticMapReduce.PutAutoTerminationPolicy

Headers

X-Amz-Target'ElasticMapReduce.PutAutoTerminationPolicy' required

Request body

ClusterIdstring required

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

Response

Success

PutAutoTerminationPolicyOutput required