Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class TerminateJobFlowsCommandProtected

TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut down, any step not yet completed is canceled and the Amazon EC2 instances on which the cluster is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the cluster was created.

The maximum number of clusters allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5 minutes for the cluster to completely terminate and release allocated resources, such as Amazon EC2 instances.

Example

Use a bare-bones client and the command you need to make an API call.

import { EMRClient, TerminateJobFlowsCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, TerminateJobFlowsCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // TerminateJobFlowsInput
JobFlowIds: [ // XmlStringList // required
"STRING_VALUE",
],
};
const command = new TerminateJobFlowsCommand(input);
const response = await client.send(command);
// {};

Param

TerminateJobFlowsCommandInput

Returns

TerminateJobFlowsCommandOutput

See

Throws

InternalServerError (server fault)

Indicates that an error occurred while processing the request and that the request was not completed.

Throws

EMRServiceException

Base exception class for all service exceptions from EMR service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods