Struct aws_sdk_rbin::client::fluent_builders::ListRules
source · pub struct ListRules { /* private fields */ }
Expand description
Fluent builder constructing a request to ListRules
.
Lists the Recycle Bin retention rules in the Region.
Implementations§
source§impl ListRules
impl ListRules
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListRules, AwsResponseRetryClassifier>, SdkError<ListRulesError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListRules, AwsResponseRetryClassifier>, SdkError<ListRulesError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<ListRulesOutput, SdkError<ListRulesError>>
pub async fn send(self) -> Result<ListRulesOutput, SdkError<ListRulesError>>
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 into_paginator(self) -> ListRulesPaginator
pub fn into_paginator(self) -> ListRulesPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken
value.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The token for the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The token for the next page of results.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify EC2_IMAGE
.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type retained by the retention rule. Only retention rules that retain the specified resource type are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that retain snapshots, specify EBS_SNAPSHOT
. To list retention rules that retain EBS-backed AMIs, specify EC2_IMAGE
.
Appends an item to ResourceTags
.
To override the contents of this collection use set_resource_tags
.
Information about the resource tags used to identify resources that are retained by the retention rule.
Information about the resource tags used to identify resources that are retained by the retention rule.
sourcepub fn lock_state(self, input: LockState) -> Self
pub fn lock_state(self, input: LockState) -> Self
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
sourcepub fn set_lock_state(self, input: Option<LockState>) -> Self
pub fn set_lock_state(self, input: Option<LockState>) -> Self
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.