aws_sdk_ecs/client/
submit_task_state_change.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 [`SubmitTaskStateChange`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`cluster(impl Into<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::cluster) / [`set_cluster(Option<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_cluster):<br>required: **false**<br><p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.</p><br>
7    ///   - [`task(impl Into<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::task) / [`set_task(Option<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_task):<br>required: **false**<br><p>The task ID or full ARN of the task in the state change request.</p><br>
8    ///   - [`status(impl Into<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::status) / [`set_status(Option<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_status):<br>required: **false**<br><p>The status of the state change request.</p><br>
9    ///   - [`reason(impl Into<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::reason) / [`set_reason(Option<String>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_reason):<br>required: **false**<br><p>The reason for the state change request.</p><br>
10    ///   - [`containers(ContainerStateChange)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::containers) / [`set_containers(Option<Vec::<ContainerStateChange>>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_containers):<br>required: **false**<br><p>Any containers that's associated with the state change request.</p><br>
11    ///   - [`attachments(AttachmentStateChange)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::attachments) / [`set_attachments(Option<Vec::<AttachmentStateChange>>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_attachments):<br>required: **false**<br><p>Any attachments associated with the state change request.</p><br>
12    ///   - [`managed_agents(ManagedAgentStateChange)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::managed_agents) / [`set_managed_agents(Option<Vec::<ManagedAgentStateChange>>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_managed_agents):<br>required: **false**<br><p>The details for the managed agent that's associated with the task.</p><br>
13    ///   - [`pull_started_at(DateTime)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::pull_started_at) / [`set_pull_started_at(Option<DateTime>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_pull_started_at):<br>required: **false**<br><p>The Unix timestamp for the time when the container image pull started.</p><br>
14    ///   - [`pull_stopped_at(DateTime)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::pull_stopped_at) / [`set_pull_stopped_at(Option<DateTime>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_pull_stopped_at):<br>required: **false**<br><p>The Unix timestamp for the time when the container image pull completed.</p><br>
15    ///   - [`execution_stopped_at(DateTime)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::execution_stopped_at) / [`set_execution_stopped_at(Option<DateTime>)`](crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::set_execution_stopped_at):<br>required: **false**<br><p>The Unix timestamp for the time when the task execution stopped.</p><br>
16    /// - On success, responds with [`SubmitTaskStateChangeOutput`](crate::operation::submit_task_state_change::SubmitTaskStateChangeOutput) with field(s):
17    ///   - [`acknowledgment(Option<String>)`](crate::operation::submit_task_state_change::SubmitTaskStateChangeOutput::acknowledgment): <p>Acknowledgement of the state change.</p>
18    /// - On failure, responds with [`SdkError<SubmitTaskStateChangeError>`](crate::operation::submit_task_state_change::SubmitTaskStateChangeError)
19    pub fn submit_task_state_change(&self) -> crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder {
20        crate::operation::submit_task_state_change::builders::SubmitTaskStateChangeFluentBuilder::new(self.handle.clone())
21    }
22}