Struct aws_sdk_swf::operation::count_pending_activity_tasks::builders::CountPendingActivityTasksFluentBuilder
source · pub struct CountPendingActivityTasksFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CountPendingActivityTasks
.
Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then 0
is returned.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
-
Use a
Resource
element with the domain name to limit the action to only specified domains. -
Use an
Action
element to allow or deny permission to call this action. -
Constrain the
taskList.name
parameter by using aCondition
element with theswf:taskList.name
key to allow the action to access only certain task lists.
If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause
parameter is set to OPERATION_NOT_PERMITTED
. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.
Implementations§
source§impl CountPendingActivityTasksFluentBuilder
impl CountPendingActivityTasksFluentBuilder
sourcepub fn as_input(&self) -> &CountPendingActivityTasksInputBuilder
pub fn as_input(&self) -> &CountPendingActivityTasksInputBuilder
Access the CountPendingActivityTasks as a reference.
sourcepub async fn send(
self
) -> Result<CountPendingActivityTasksOutput, SdkError<CountPendingActivityTasksError, HttpResponse>>
pub async fn send( self ) -> Result<CountPendingActivityTasksOutput, SdkError<CountPendingActivityTasksError, 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<CountPendingActivityTasksOutput, CountPendingActivityTasksError, Self>
pub fn customize( self ) -> CustomizableOperation<CountPendingActivityTasksOutput, CountPendingActivityTasksError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The name of the domain that contains the task list.
sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The name of the domain that contains the task list.
sourcepub fn get_domain(&self) -> &Option<String>
pub fn get_domain(&self) -> &Option<String>
The name of the domain that contains the task list.
sourcepub fn set_task_list(self, input: Option<TaskList>) -> Self
pub fn set_task_list(self, input: Option<TaskList>) -> Self
The name of the task list.
sourcepub fn get_task_list(&self) -> &Option<TaskList>
pub fn get_task_list(&self) -> &Option<TaskList>
The name of the task list.
Trait Implementations§
source§impl Clone for CountPendingActivityTasksFluentBuilder
impl Clone for CountPendingActivityTasksFluentBuilder
source§fn clone(&self) -> CountPendingActivityTasksFluentBuilder
fn clone(&self) -> CountPendingActivityTasksFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more