Struct aws_sdk_shield::client::fluent_builders::ListProtections [−][src]
pub struct ListProtections<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ListProtections
.
Lists all Protection objects for the account.
Implementations
impl<C, M, R> ListProtections<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListProtections<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ListProtectionsOutput, SdkError<ListProtectionsError>> where
R::Policy: SmithyRetryPolicy<ListProtectionsInputOperationOutputAlias, ListProtectionsOutput, ListProtectionsError, ListProtectionsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ListProtectionsOutput, SdkError<ListProtectionsError>> where
R::Policy: SmithyRetryPolicy<ListProtectionsInputOperationOutputAlias, ListProtectionsOutput, ListProtectionsError, ListProtectionsInputOperationRetryAlias>,
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.
The ListProtectionsRequest.NextToken
value from a previous call to ListProtections
. Pass null if this is the first call.
The ListProtectionsRequest.NextToken
value from a previous call to ListProtections
. Pass null if this is the first call.
The maximum number of Protection objects to return. If you leave this blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults
, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
The maximum number of Protection objects to return. If you leave this blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of objects returned could be less than MaxResults
, even if there are still more objects yet to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ListProtections<C, M, R>
impl<C, M, R> Send for ListProtections<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ListProtections<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ListProtections<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ListProtections<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