aws_sdk_ecs/client/continue_service_deployment.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ContinueServiceDeployment`](crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`ContinueServiceDeploymentOutput`](crate::operation::continue_service_deployment::ContinueServiceDeploymentOutput) with field(s):
10 /// - [`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>
11 /// - On failure, responds with [`SdkError<ContinueServiceDeploymentError>`](crate::operation::continue_service_deployment::ContinueServiceDeploymentError)
12 pub fn continue_service_deployment(&self) -> crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder {
13 crate::operation::continue_service_deployment::builders::ContinueServiceDeploymentFluentBuilder::new(self.handle.clone())
14 }
15}