#[non_exhaustive]pub struct EffectiveLifecyclePolicyDetail {
pub type: Option<LifecyclePolicyType>,
pub resource: Option<String>,
pub policy_name: Option<String>,
pub resource_type: Option<ResourceType>,
pub retention_period: Option<String>,
pub no_min_retention_period: Option<bool>,
}
Expand description
Error information for an OpenSearch Serverless request.
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.
resource: Option<String>
The name of the OpenSearch Serverless index resource.
policy_name: Option<String>
The name of the lifecycle policy.
resource_type: Option<ResourceType>
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
retention_period: Option<String>
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
no_min_retention_period: Option<bool>
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
Implementations§
source§impl EffectiveLifecyclePolicyDetail
impl EffectiveLifecyclePolicyDetail
sourcepub fn type(&self) -> Option<&LifecyclePolicyType>
pub fn type(&self) -> Option<&LifecyclePolicyType>
The type of lifecycle policy.
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the lifecycle policy.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The type of OpenSearch Serverless resource. Currently, the only supported resource is index
.
sourcepub fn retention_period(&self) -> Option<&str>
pub fn retention_period(&self) -> Option<&str>
The minimum number of index retention in days or hours. This is an optional parameter that will return only if it’s set.
sourcepub fn no_min_retention_period(&self) -> Option<bool>
pub fn no_min_retention_period(&self) -> Option<bool>
The minimum number of index retention days set. That is an optional param that will return as true
if the minimum number of days or hours is not set to a index resource.
source§impl EffectiveLifecyclePolicyDetail
impl EffectiveLifecyclePolicyDetail
sourcepub fn builder() -> EffectiveLifecyclePolicyDetailBuilder
pub fn builder() -> EffectiveLifecyclePolicyDetailBuilder
Creates a new builder-style object to manufacture EffectiveLifecyclePolicyDetail
.
Trait Implementations§
source§impl Clone for EffectiveLifecyclePolicyDetail
impl Clone for EffectiveLifecyclePolicyDetail
source§fn clone(&self) -> EffectiveLifecyclePolicyDetail
fn clone(&self) -> EffectiveLifecyclePolicyDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for EffectiveLifecyclePolicyDetail
impl PartialEq for EffectiveLifecyclePolicyDetail
source§fn eq(&self, other: &EffectiveLifecyclePolicyDetail) -> bool
fn eq(&self, other: &EffectiveLifecyclePolicyDetail) -> bool
self
and other
values to be equal, and is used
by ==
.