Struct aws_sdk_ecs::client::fluent_builders::SubmitTaskStateChange
source · [−]pub struct SubmitTaskStateChange { /* private fields */ }
Expand description
Fluent builder constructing a request to SubmitTaskStateChange
.
This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.
Sent to acknowledge that a task changed states.
Implementations
sourceimpl SubmitTaskStateChange
impl SubmitTaskStateChange
sourcepub async fn send(
self
) -> Result<SubmitTaskStateChangeOutput, SdkError<SubmitTaskStateChangeError>>
pub async fn send(
self
) -> Result<SubmitTaskStateChangeOutput, SdkError<SubmitTaskStateChangeError>>
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 cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
sourcepub fn task(self, input: impl Into<String>) -> Self
pub fn task(self, input: impl Into<String>) -> Self
The task ID or full ARN of the task in the state change request.
sourcepub fn set_task(self, input: Option<String>) -> Self
pub fn set_task(self, input: Option<String>) -> Self
The task ID or full ARN of the task in the state change request.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the state change request.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason for the state change request.
sourcepub fn containers(self, input: ContainerStateChange) -> Self
pub fn containers(self, input: ContainerStateChange) -> Self
Appends an item to containers
.
To override the contents of this collection use set_containers
.
Any containers that's associated with the state change request.
sourcepub fn set_containers(self, input: Option<Vec<ContainerStateChange>>) -> Self
pub fn set_containers(self, input: Option<Vec<ContainerStateChange>>) -> Self
Any containers that's associated with the state change request.
sourcepub fn attachments(self, input: AttachmentStateChange) -> Self
pub fn attachments(self, input: AttachmentStateChange) -> Self
Appends an item to attachments
.
To override the contents of this collection use set_attachments
.
Any attachments associated with the state change request.
sourcepub fn set_attachments(self, input: Option<Vec<AttachmentStateChange>>) -> Self
pub fn set_attachments(self, input: Option<Vec<AttachmentStateChange>>) -> Self
Any attachments associated with the state change request.
sourcepub fn managed_agents(self, input: ManagedAgentStateChange) -> Self
pub fn managed_agents(self, input: ManagedAgentStateChange) -> Self
Appends an item to managedAgents
.
To override the contents of this collection use set_managed_agents
.
The details for the managed agent that's associated with the task.
sourcepub fn set_managed_agents(
self,
input: Option<Vec<ManagedAgentStateChange>>
) -> Self
pub fn set_managed_agents(
self,
input: Option<Vec<ManagedAgentStateChange>>
) -> Self
The details for the managed agent that's associated with the task.
sourcepub fn pull_started_at(self, input: DateTime) -> Self
pub fn pull_started_at(self, input: DateTime) -> Self
The Unix timestamp for the time when the container image pull started.
sourcepub fn set_pull_started_at(self, input: Option<DateTime>) -> Self
pub fn set_pull_started_at(self, input: Option<DateTime>) -> Self
The Unix timestamp for the time when the container image pull started.
sourcepub fn pull_stopped_at(self, input: DateTime) -> Self
pub fn pull_stopped_at(self, input: DateTime) -> Self
The Unix timestamp for the time when the container image pull completed.
sourcepub fn set_pull_stopped_at(self, input: Option<DateTime>) -> Self
pub fn set_pull_stopped_at(self, input: Option<DateTime>) -> Self
The Unix timestamp for the time when the container image pull completed.
sourcepub fn execution_stopped_at(self, input: DateTime) -> Self
pub fn execution_stopped_at(self, input: DateTime) -> Self
The Unix timestamp for the time when the task execution stopped.
sourcepub fn set_execution_stopped_at(self, input: Option<DateTime>) -> Self
pub fn set_execution_stopped_at(self, input: Option<DateTime>) -> Self
The Unix timestamp for the time when the task execution stopped.
Trait Implementations
sourceimpl Clone for SubmitTaskStateChange
impl Clone for SubmitTaskStateChange
sourcefn clone(&self) -> SubmitTaskStateChange
fn clone(&self) -> SubmitTaskStateChange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SubmitTaskStateChange
impl Send for SubmitTaskStateChange
impl Sync for SubmitTaskStateChange
impl Unpin for SubmitTaskStateChange
impl !UnwindSafe for SubmitTaskStateChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more