AWS SDK Version 2 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.

.NET Framework 4.5
 
SetTerminationProtection locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a job flow is analogous to calling the Amazon EC2 DisableAPITermination API on all of the EC2 instances in a cluster.

SetTerminationProtection is used to prevent accidental termination of a job flow and to ensure that in the event of an error, the instances will persist so you can recover any data stored in their ephemeral instance storage.

To terminate a job flow that has been locked by setting SetTerminationProtection to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false.

For more information, go to Protecting a Job Flow from Termination in the Amazon Elastic MapReduce Developer's Guide.

Namespace: Amazon.ElasticMapReduce
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual SetTerminationProtectionResponse SetTerminationProtection(
         SetTerminationProtectionRequest request
)

Parameters

request
Type: Amazon.ElasticMapReduce.Model.SetTerminationProtectionRequest

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

Return Value
Type: Amazon.ElasticMapReduce.Model.SetTerminationProtectionResponse
The response from the SetTerminationProtection service method, as returned by ElasticMapReduce.

Exceptions

ExceptionCondition
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