2023/12/27 - Amazon EMR - 1 new api methods
Changes Add support for customers to modify cluster attribute auto-terminate post cluster launch
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 .
See also: AWS API Documentation
Request Syntax
client.set_keep_job_flow_alive_when_no_steps( JobFlowIds=[ 'string', ], KeepJobFlowAliveWhenNoSteps=True|False )
list
[REQUIRED]
A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
(string) --
boolean
[REQUIRED]
A Boolean that indicates whether to terminate the cluster after all steps are executed.
None