aws-sdk-ecs 1.128.0

AWS SDK for Amazon EC2 Container Service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StopServiceDeployment`](crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`service_deployment_arn(impl Into<String>)`](crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder::service_deployment_arn) / [`set_service_deployment_arn(Option<String>)`](crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder::set_service_deployment_arn):<br>required: **true**<br><p>The ARN of the service deployment that you want to stop.</p><br>
    ///   - [`stop_type(StopServiceDeploymentStopType)`](crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder::stop_type) / [`set_stop_type(Option<StopServiceDeploymentStopType>)`](crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder::set_stop_type):<br>required: **false**<br><p>How you want Amazon ECS to stop the service.</p> <p>The valid values are <code>ROLLBACK</code>.</p><br>
    /// - On success, responds with [`StopServiceDeploymentOutput`](crate::operation::stop_service_deployment::StopServiceDeploymentOutput) with field(s):
    ///   - [`service_deployment_arn(Option<String>)`](crate::operation::stop_service_deployment::StopServiceDeploymentOutput::service_deployment_arn): <p>The ARN of the stopped service deployment.</p>
    /// - On failure, responds with [`SdkError<StopServiceDeploymentError>`](crate::operation::stop_service_deployment::StopServiceDeploymentError)
    pub fn stop_service_deployment(&self) -> crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder {
        crate::operation::stop_service_deployment::builders::StopServiceDeploymentFluentBuilder::new(self.handle.clone())
    }
}