aws_sdk_emr/client/
set_termination_protection.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`SetTerminationProtection`](crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`job_flow_ids(impl Into<String>)`](crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder::job_flow_ids) / [`set_job_flow_ids(Option<Vec::<String>>)`](crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder::set_job_flow_ids):<br>required: **true**<br><p>A list of strings that uniquely identify the clusters to protect. This identifier is returned by <code>RunJobFlow</code> and can also be obtained from <code>DescribeJobFlows</code> .</p><br>
7    ///   - [`termination_protected(bool)`](crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder::termination_protected) / [`set_termination_protected(Option<bool>)`](crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder::set_termination_protected):<br>required: **true**<br><p>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.</p><br>
8    /// - On success, responds with [`SetTerminationProtectionOutput`](crate::operation::set_termination_protection::SetTerminationProtectionOutput)
9    /// - On failure, responds with [`SdkError<SetTerminationProtectionError>`](crate::operation::set_termination_protection::SetTerminationProtectionError)
10    pub fn set_termination_protection(&self) -> crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder {
11        crate::operation::set_termination_protection::builders::SetTerminationProtectionFluentBuilder::new(self.handle.clone())
12    }
13}