AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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 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.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to TerminateJobFlowsAsync.

Namespace: Amazon.ElasticMapReduce
Assembly: AWSSDK.ElasticMapReduce.dll
Version: 3.x.y.z


public abstract TerminateJobFlowsResponse TerminateJobFlows(
         TerminateJobFlowsRequest request
Type: Amazon.ElasticMapReduce.Model.TerminateJobFlowsRequest

Container for the necessary parameters to execute the TerminateJobFlows service method.

Return Value
The response from the TerminateJobFlows service method, as returned by ElasticMapReduce.


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

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also