1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PollForActivityTask`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain(impl Into<String>)`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that contains the task lists being polled.</p><br>
    ///   - [`task_list(TaskList)`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::task_list) / [`set_task_list(Option<TaskList>)`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::set_task_list):<br>required: **true**<br><p>Specifies the task list to poll for activity tasks.</p> <p>The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon), <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must <i>not</i> be the literal string <code>arn</code>.</p><br>
    ///   - [`identity(impl Into<String>)`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::identity) / [`set_identity(Option<String>)`](crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::set_identity):<br>required: **false**<br><p>Identity of the worker making the request, recorded in the <code>ActivityTaskStarted</code> event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.</p><br>
    /// - On success, responds with [`PollForActivityTaskOutput`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput) with field(s):
    ///   - [`task_token(String)`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput::task_token): <p>The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.</p>
    ///   - [`activity_id(String)`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput::activity_id): <p>The unique ID of the task.</p>
    ///   - [`started_event_id(i64)`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput::started_event_id): <p>The ID of the <code>ActivityTaskStarted</code> event recorded in the history.</p>
    ///   - [`workflow_execution(Option<WorkflowExecution>)`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput::workflow_execution): <p>The workflow execution that started this activity task.</p>
    ///   - [`activity_type(Option<ActivityType>)`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput::activity_type): <p>The type of this activity task.</p>
    ///   - [`input(Option<String>)`](crate::operation::poll_for_activity_task::PollForActivityTaskOutput::input): <p>The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.</p>
    /// - On failure, responds with [`SdkError<PollForActivityTaskError>`](crate::operation::poll_for_activity_task::PollForActivityTaskError)
    pub fn poll_for_activity_task(&self) -> crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder {
        crate::operation::poll_for_activity_task::builders::PollForActivityTaskFluentBuilder::new(self.handle.clone())
    }
}