EMR.Client.
put_auto_termination_policy
(**kwargs)¶Note
Auto-termination is supported in Amazon EMR versions 5.30.0 and 6.1.0 and later. 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
}
)
[REQUIRED]
Specifies the ID of the Amazon EMR cluster to which the auto-termination policy will be attached.
Specifies the auto-termination policy to attach to the cluster.
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).
dict
Response Syntax
{}
Response Structure