PutAutoTerminationPolicy
Note
Auto-termination is supported in Amazon EMR releases 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.
Request Syntax
{
"AutoTerminationPolicy": {
"IdleTimeout": number
},
"ClusterId": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- AutoTerminationPolicy
-
Specifies the auto-termination policy to attach to the cluster.
Type: AutoTerminationPolicy object
Required: No
- ClusterId
-
Specifies the ID of the Amazon EMR cluster to which the auto-termination policy will be attached.
Type: String
Required: Yes
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: