Struct aws_sdk_emr::input::SetTerminationProtectionInput
source · #[non_exhaustive]pub struct SetTerminationProtectionInput { /* private fields */ }Expand description
The input argument to the TerminationProtection operation.
Implementations§
source§impl SetTerminationProtectionInput
impl SetTerminationProtectionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetTerminationProtection, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetTerminationProtection, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SetTerminationProtection>
Examples found in repository?
src/client.rs (line 5556)
5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SetTerminationProtection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SetTerminationProtectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SetTerminationProtectionOutput,
aws_smithy_http::result::SdkError<crate::error::SetTerminationProtectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SetTerminationProtectionInput.
source§impl SetTerminationProtectionInput
impl SetTerminationProtectionInput
sourcepub fn job_flow_ids(&self) -> Option<&[String]>
pub fn job_flow_ids(&self) -> Option<&[String]>
A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
sourcepub fn termination_protected(&self) -> bool
pub fn termination_protected(&self) -> bool
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.
Trait Implementations§
source§impl Clone for SetTerminationProtectionInput
impl Clone for SetTerminationProtectionInput
source§fn clone(&self) -> SetTerminationProtectionInput
fn clone(&self) -> SetTerminationProtectionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more