v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465378349.0 KB

You can use the SetKeepJobFlowAliveWhenNoSteps to configure a cluster (job flow) to terminate after the step execution, i.e., all your steps are executed. If you want a transient cluster that shuts down after the last of the current executing steps are completed, you can configure SetKeepJobFlowAliveWhenNoSteps to false. If you want a long running cluster, configure SetKeepJobFlowAliveWhenNoSteps to true.

For more information, see Managing Cluster Termination in the Amazon EMR Management Guide.

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

Headers

X-Amz-Target'ElasticMapReduce.SetKeepJobFlowAliveWhenNoSteps' required

Request body

JobFlowIdsXmlString[] required

A list of strings that uniquely identify the clusters to protect. This identifier is returned by <a href="https://docs.aws.amazon.com/emr/latest/APIReference/API_RunJobFlow.html">RunJobFlow</a> and can also be obtained from <a href="https://docs.aws.amazon.com/emr/latest/APIReference/API_DescribeJobFlows.html">DescribeJobFlows</a>.

KeepJobFlowAliveWhenNoStepsboolean required

A Boolean that indicates whether to terminate the cluster after all steps are executed.

Response

Success