Struct aws_sdk_datasync::client::fluent_builders::ListLocations [−][src]
pub struct ListLocations<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ListLocations
.
Returns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.
Implementations
impl<C, M, R> ListLocations<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListLocations<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ListLocationsOutput, SdkError<ListLocationsError>> where
R::Policy: SmithyRetryPolicy<ListLocationsInputOperationOutputAlias, ListLocationsOutput, ListLocationsError, ListLocationsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ListLocationsOutput, SdkError<ListLocationsError>> where
R::Policy: SmithyRetryPolicy<ListLocationsInputOperationOutputAlias, ListLocationsOutput, ListLocationsError, ListLocationsInputOperationRetryAlias>,
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 locations to return.
The maximum number of locations to return.
An opaque string that indicates the position at which to begin the next list of locations.
An opaque string that indicates the position at which to begin the next list of locations.
Appends an item to Filters
.
To override the contents of this collection use set_filters
.
You can use API filters to narrow down the list of resources returned by ListLocations
. For example, to retrieve all tasks on a specific source location, you can use ListLocations
with filter name LocationType S3
and Operator Equals
.
You can use API filters to narrow down the list of resources returned by ListLocations
. For example, to retrieve all tasks on a specific source location, you can use ListLocations
with filter name LocationType S3
and Operator Equals
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ListLocations<C, M, R>
impl<C, M, R> Unpin for ListLocations<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ListLocations<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