Struct aws_sdk_datasync::client::fluent_builders::ListAgents [−][src]
pub struct ListAgents<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ListAgents
.
Returns a list of agents owned by an Amazon Web Services account in the Amazon Web Services Region specified in the request. The returned list is ordered by agent Amazon Resource Name (ARN).
By default, this operation returns a maximum of 100 agents. This operation supports pagination that enables you to optionally reduce the number of agents returned in a response.
If you have more agents than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a marker that you can specify in your next request to fetch the next page of agents.
Implementations
impl<C, M, R> ListAgents<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListAgents<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<ListAgentsOutput, SdkError<ListAgentsError>> where
R::Policy: SmithyRetryPolicy<ListAgentsInputOperationOutputAlias, ListAgentsOutput, ListAgentsError, ListAgentsInputOperationRetryAlias>,
pub async fn send(self) -> Result<ListAgentsOutput, SdkError<ListAgentsError>> where
R::Policy: SmithyRetryPolicy<ListAgentsInputOperationOutputAlias, ListAgentsOutput, ListAgentsError, ListAgentsInputOperationRetryAlias>,
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.
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
The maximum number of agents to list.
The maximum number of agents to list.
An opaque string that indicates the position at which to begin the next list of agents.
An opaque string that indicates the position at which to begin the next list of agents.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ListAgents<C, M, R>
impl<C, M, R> Unpin for ListAgents<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ListAgents<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more