Struct aws_sdk_sfn::operation::send_task_heartbeat::builders::SendTaskHeartbeatFluentBuilder
source · pub struct SendTaskHeartbeatFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SendTaskHeartbeat
.
Used by activity workers and Task states using the callback pattern, and optionally Task states using the job run pattern to report to Step Functions that the task represented by the specified taskToken
is still making progress. This action resets the Heartbeat
clock. The Heartbeat
threshold is specified in the state machine's Amazon States Language definition (HeartbeatSeconds
). This action does not in itself create an event in the execution history. However, if the task times out, the execution history contains an ActivityTimedOut
entry for activities, or a TaskTimedOut
entry for tasks using the job run or callback pattern.
The Timeout
of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat
requests received. Use HeartbeatSeconds
to configure the timeout interval for heartbeats.
Implementations§
source§impl SendTaskHeartbeatFluentBuilder
impl SendTaskHeartbeatFluentBuilder
sourcepub fn as_input(&self) -> &SendTaskHeartbeatInputBuilder
pub fn as_input(&self) -> &SendTaskHeartbeatInputBuilder
Access the SendTaskHeartbeat as a reference.
sourcepub async fn send(
self
) -> Result<SendTaskHeartbeatOutput, SdkError<SendTaskHeartbeatError, HttpResponse>>
pub async fn send( self ) -> Result<SendTaskHeartbeatOutput, SdkError<SendTaskHeartbeatError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<SendTaskHeartbeatOutput, SendTaskHeartbeatError, Self>
pub fn customize( self ) -> CustomizableOperation<SendTaskHeartbeatOutput, SendTaskHeartbeatError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn task_token(self, input: impl Into<String>) -> Self
pub fn task_token(self, input: impl Into<String>) -> Self
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken
.
sourcepub fn set_task_token(self, input: Option<String>) -> Self
pub fn set_task_token(self, input: Option<String>) -> Self
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken
.
sourcepub fn get_task_token(&self) -> &Option<String>
pub fn get_task_token(&self) -> &Option<String>
The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken
.
Trait Implementations§
source§impl Clone for SendTaskHeartbeatFluentBuilder
impl Clone for SendTaskHeartbeatFluentBuilder
source§fn clone(&self) -> SendTaskHeartbeatFluentBuilder
fn clone(&self) -> SendTaskHeartbeatFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SendTaskHeartbeatFluentBuilder
impl !RefUnwindSafe for SendTaskHeartbeatFluentBuilder
impl Send for SendTaskHeartbeatFluentBuilder
impl Sync for SendTaskHeartbeatFluentBuilder
impl Unpin for SendTaskHeartbeatFluentBuilder
impl !UnwindSafe for SendTaskHeartbeatFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more