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
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ContinueServiceDeployment`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`service_deployment_arn(impl Into<String>)`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::service_deployment_arn) / [`set_service_deployment_arn(Option<String>)`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::set_service_deployment_arn):<br>required: **true**<br><p>The ARN of the service deployment to continue or roll back.</p><br>
    ///   - [`hook_id(impl Into<String>)`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::hook_id) / [`set_hook_id(Option<String>)`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::set_hook_id):<br>required: **true**<br><p>The ID of the paused lifecycle hook to act on. You can find the <code>hookId</code> by calling <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeServiceDeployments.html">DescribeServiceDeployments</a> and inspecting the <code>lifecycleHookDetails</code> field of the service deployment.</p><br>
    ///   - [`action(DeploymentLifecycleHookAction)`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::action) / [`set_action(Option<DeploymentLifecycleHookAction>)`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::set_action):<br>required: **false**<br><p>The action to take on the paused lifecycle hook. Valid values are:</p> <ul>  <li>   <p><code>CONTINUE</code> - Proceeds the deployment to the next lifecycle stage.</p></li>  <li>   <p><code>ROLLBACK</code> - Rolls back the deployment to the previous service revision.</p></li> </ul> <p>If no value is specified, the default action is <code>CONTINUE</code>.</p><br>
    /// - On success, responds with [`ContinueServiceDeploymentOutput`](crate::operation::continue_service_deployment::ContinueServiceDeploymentOutput) with field(s):
    ///   - [`service_deployment_arn(Option<String>)`](crate::operation::continue_service_deployment::ContinueServiceDeploymentOutput::service_deployment_arn): <p>The ARN of the service deployment that was continued or rolled back.</p>
    /// - On failure, responds with [`SdkError<ContinueServiceDeploymentError>`](crate::operation::continue_service_deployment::ContinueServiceDeploymentError)
    pub fn continue_service_deployment(&self) -> crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder {
        crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::new(self.handle.clone())
    }
}