Struct aws_sdk_rbin::operation::list_rules::ListRulesInput
source · #[non_exhaustive]pub struct ListRulesInput {
pub max_results: Option<i32>,
pub next_token: Option<String>,
pub resource_type: Option<ResourceType>,
pub resource_tags: Option<Vec<ResourceTag>>,
pub lock_state: Option<LockState>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.max_results: Option<i32>
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned NextToken
value.
next_token: Option<String>
The token for the next page of results.
resource_type: Option<ResourceType>
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
.
Information about the resource tags used to identify resources that are retained by the retention rule.
lock_state: Option<LockState>
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
Implementations§
source§impl ListRulesInput
impl ListRulesInput
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
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) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token for the next page of results.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
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
.
Information about the resource tags used to identify resources that are retained by the retention rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_tags.is_none()
.
sourcepub fn lock_state(&self) -> Option<&LockState>
pub fn lock_state(&self) -> Option<&LockState>
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
source§impl ListRulesInput
impl ListRulesInput
sourcepub fn builder() -> ListRulesInputBuilder
pub fn builder() -> ListRulesInputBuilder
Creates a new builder-style object to manufacture ListRulesInput
.
Trait Implementations§
source§impl Clone for ListRulesInput
impl Clone for ListRulesInput
source§fn clone(&self) -> ListRulesInput
fn clone(&self) -> ListRulesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListRulesInput
impl Debug for ListRulesInput
source§impl PartialEq for ListRulesInput
impl PartialEq for ListRulesInput
source§fn eq(&self, other: &ListRulesInput) -> bool
fn eq(&self, other: &ListRulesInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListRulesInput
Auto Trait Implementations§
impl Freeze for ListRulesInput
impl RefUnwindSafe for ListRulesInput
impl Send for ListRulesInput
impl Sync for ListRulesInput
impl Unpin for ListRulesInput
impl UnwindSafe for ListRulesInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more