Struct aws_sdk_opensearchserverless::operation::list_lifecycle_policies::ListLifecyclePoliciesInput
source · #[non_exhaustive]pub struct ListLifecyclePoliciesInput {
pub type: Option<LifecyclePolicyType>,
pub resources: Option<Vec<String>>,
pub next_token: Option<String>,
pub max_results: Option<i32>,
}
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.type: Option<LifecyclePolicyType>
The type of lifecycle policy.
resources: Option<Vec<String>>
Resource filters that policies can apply to. Currently, the only supported resource type is index
.
next_token: Option<String>
If your initial ListLifecyclePolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListLifecyclePolicies
operations, which returns results in the next page.
max_results: Option<i32>
An optional parameter that specifies the maximum number of results to return. You can use use nextToken
to get the next page of results. The default is 10.
Implementations§
source§impl ListLifecyclePoliciesInput
impl ListLifecyclePoliciesInput
sourcepub fn type(&self) -> Option<&LifecyclePolicyType>
pub fn type(&self) -> Option<&LifecyclePolicyType>
The type of lifecycle policy.
sourcepub fn resources(&self) -> &[String]
pub fn resources(&self) -> &[String]
Resource filters that policies can apply to. Currently, the only supported resource type is index
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resources.is_none()
.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
If your initial ListLifecyclePolicies
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListLifecyclePolicies
operations, which returns results in the next page.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
An optional parameter that specifies the maximum number of results to return. You can use use nextToken
to get the next page of results. The default is 10.
source§impl ListLifecyclePoliciesInput
impl ListLifecyclePoliciesInput
sourcepub fn builder() -> ListLifecyclePoliciesInputBuilder
pub fn builder() -> ListLifecyclePoliciesInputBuilder
Creates a new builder-style object to manufacture ListLifecyclePoliciesInput
.
Trait Implementations§
source§impl Clone for ListLifecyclePoliciesInput
impl Clone for ListLifecyclePoliciesInput
source§fn clone(&self) -> ListLifecyclePoliciesInput
fn clone(&self) -> ListLifecyclePoliciesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListLifecyclePoliciesInput
impl Debug for ListLifecyclePoliciesInput
source§impl PartialEq for ListLifecyclePoliciesInput
impl PartialEq for ListLifecyclePoliciesInput
source§fn eq(&self, other: &ListLifecyclePoliciesInput) -> bool
fn eq(&self, other: &ListLifecyclePoliciesInput) -> bool
self
and other
values to be equal, and is used
by ==
.