Struct aws_sdk_emr::client::fluent_builders::TerminateJobFlows
source · pub struct TerminateJobFlows { /* private fields */ }Expand description
Fluent builder constructing a request to TerminateJobFlows.
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.
Implementations§
source§impl TerminateJobFlows
impl TerminateJobFlows
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<TerminateJobFlows, AwsResponseRetryClassifier>, SdkError<TerminateJobFlowsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<TerminateJobFlows, AwsResponseRetryClassifier>, SdkError<TerminateJobFlowsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<TerminateJobFlowsOutput, SdkError<TerminateJobFlowsError>>
pub async fn send(
self
) -> Result<TerminateJobFlowsOutput, SdkError<TerminateJobFlowsError>>
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, which can be set when configuring the client.
sourcepub fn job_flow_ids(self, input: impl Into<String>) -> Self
pub fn job_flow_ids(self, input: impl Into<String>) -> Self
Appends an item to JobFlowIds.
To override the contents of this collection use set_job_flow_ids.
A list of job flows to be shut down.
sourcepub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_job_flow_ids(self, input: Option<Vec<String>>) -> Self
A list of job flows to be shut down.
Trait Implementations§
source§impl Clone for TerminateJobFlows
impl Clone for TerminateJobFlows
source§fn clone(&self) -> TerminateJobFlows
fn clone(&self) -> TerminateJobFlows
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more