pub struct DeactivatePipeline { /* private fields */ }
Expand description
Fluent builder constructing a request to DeactivatePipeline
.
Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING
state until the deactivation process completes.
To resume a deactivated pipeline, use ActivatePipeline
. By default, the pipeline resumes from the last completed execution. Optionally, you can specify the date and time to resume the pipeline.
Implementations
sourceimpl DeactivatePipeline
impl DeactivatePipeline
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeactivatePipeline, AwsResponseRetryClassifier>, SdkError<DeactivatePipelineError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeactivatePipeline, AwsResponseRetryClassifier>, SdkError<DeactivatePipelineError>>
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<DeactivatePipelineOutput, SdkError<DeactivatePipelineError>>
pub async fn send(
self
) -> Result<DeactivatePipelineOutput, SdkError<DeactivatePipelineError>>
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 pipeline_id(self, input: impl Into<String>) -> Self
pub fn pipeline_id(self, input: impl Into<String>) -> Self
The ID of the pipeline.
sourcepub fn set_pipeline_id(self, input: Option<String>) -> Self
pub fn set_pipeline_id(self, input: Option<String>) -> Self
The ID of the pipeline.
sourcepub fn cancel_active(self, input: bool) -> Self
pub fn cancel_active(self, input: bool) -> Self
Indicates whether to cancel any running objects. The default is true, which sets the state of any running objects to CANCELED
. If this value is false, the pipeline is deactivated after all running objects finish.
sourcepub fn set_cancel_active(self, input: Option<bool>) -> Self
pub fn set_cancel_active(self, input: Option<bool>) -> Self
Indicates whether to cancel any running objects. The default is true, which sets the state of any running objects to CANCELED
. If this value is false, the pipeline is deactivated after all running objects finish.
Trait Implementations
sourceimpl Clone for DeactivatePipeline
impl Clone for DeactivatePipeline
sourcefn clone(&self) -> DeactivatePipeline
fn clone(&self) -> DeactivatePipeline
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more