aws_sdk_sfn/client/get_activity_task.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 [`GetActivityTask`](crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`activity_arn(impl Into<String>)`](crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder::activity_arn) / [`set_activity_arn(Option<String>)`](crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder::set_activity_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned when you create the task using <code>CreateActivity</code>.)</p><br>
7 /// - [`worker_name(impl Into<String>)`](crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder::worker_name) / [`set_worker_name(Option<String>)`](crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder::set_worker_name):<br>required: **false**<br><p>You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is used when it is logged in the execution history.</p><br>
8 /// - On success, responds with [`GetActivityTaskOutput`](crate::operation::get_activity_task::GetActivityTaskOutput) with field(s):
9 /// - [`task_token(Option<String>)`](crate::operation::get_activity_task::GetActivityTaskOutput::task_token): <p>A token that identifies the scheduled task. This token must be copied and included in subsequent calls to <code>SendTaskHeartbeat</code>, <code>SendTaskSuccess</code> or <code>SendTaskFailure</code> in order to report the progress or completion of the task.</p>
10 /// - [`input(Option<String>)`](crate::operation::get_activity_task::GetActivityTaskOutput::input): <p>The string that contains the JSON input data for the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.</p>
11 /// - On failure, responds with [`SdkError<GetActivityTaskError>`](crate::operation::get_activity_task::GetActivityTaskError)
12 pub fn get_activity_task(&self) -> crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder {
13 crate::operation::get_activity_task::builders::GetActivityTaskFluentBuilder::new(self.handle.clone())
14 }
15}