emr_set_termination_protection: SetTerminationProtection locks a cluster (job flow) so the...

View source: R/emr_operations.R

emr_set_termination_protectionR Documentation

SetTerminationProtection locks a cluster (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

Description

SetTerminationProtection locks a cluster (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 set_termination_protection on a cluster is similar to calling the Amazon EC2 DisableAPITermination API on all Amazon EC2 instances in a cluster.

See https://www.paws-r-sdk.com/docs/emr_set_termination_protection/ for full documentation.

Usage

emr_set_termination_protection(JobFlowIds, TerminationProtected)

Arguments

JobFlowIds

[required] A list of strings that uniquely identify the clusters to protect. This identifier is returned by run_job_flow and can also be obtained from describe_job_flows .

TerminationProtected

[required] A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.


paws.analytics documentation built on Sept. 11, 2023, 5:06 p.m.