#[non_exhaustive]pub struct GetLifecyclePoliciesInput {
pub policy_ids: Option<Vec<String>>,
pub state: Option<GettablePolicyStateValues>,
pub resource_types: Option<Vec<ResourceTypeValues>>,
pub target_tags: Option<Vec<String>>,
pub tags_to_add: Option<Vec<String>>,
pub default_policy_type: Option<DefaultPoliciesTypeValues>,
}
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.policy_ids: Option<Vec<String>>
The identifiers of the data lifecycle policies.
state: Option<GettablePolicyStateValues>
The activation state.
resource_types: Option<Vec<ResourceTypeValues>>
The resource type.
The target tag for a policy.
Tags are strings in the format key=value
.
The tags to add to objects created by the policy.
Tags are strings in the format key=value
.
These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
default_policy_type: Option<DefaultPoliciesTypeValues>
[Default policies only] Specifies the type of default policy to get. Specify one of the following:
-
VOLUME
- To get only the default policy for EBS snapshots -
INSTANCE
- To get only the default policy for EBS-backed AMIs -
ALL
- To get all default policies
Implementations§
source§impl GetLifecyclePoliciesInput
impl GetLifecyclePoliciesInput
sourcepub fn policy_ids(&self) -> &[String]
pub fn policy_ids(&self) -> &[String]
The identifiers of the data lifecycle policies.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .policy_ids.is_none()
.
sourcepub fn state(&self) -> Option<&GettablePolicyStateValues>
pub fn state(&self) -> Option<&GettablePolicyStateValues>
The activation state.
sourcepub fn resource_types(&self) -> &[ResourceTypeValues]
pub fn resource_types(&self) -> &[ResourceTypeValues]
The resource type.
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_types.is_none()
.
The target tag for a policy.
Tags are strings in the format key=value
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_tags.is_none()
.
The tags to add to objects created by the policy.
Tags are strings in the format key=value
.
These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags_to_add.is_none()
.
sourcepub fn default_policy_type(&self) -> Option<&DefaultPoliciesTypeValues>
pub fn default_policy_type(&self) -> Option<&DefaultPoliciesTypeValues>
[Default policies only] Specifies the type of default policy to get. Specify one of the following:
-
VOLUME
- To get only the default policy for EBS snapshots -
INSTANCE
- To get only the default policy for EBS-backed AMIs -
ALL
- To get all default policies
source§impl GetLifecyclePoliciesInput
impl GetLifecyclePoliciesInput
sourcepub fn builder() -> GetLifecyclePoliciesInputBuilder
pub fn builder() -> GetLifecyclePoliciesInputBuilder
Creates a new builder-style object to manufacture GetLifecyclePoliciesInput
.
Trait Implementations§
source§impl Clone for GetLifecyclePoliciesInput
impl Clone for GetLifecyclePoliciesInput
source§fn clone(&self) -> GetLifecyclePoliciesInput
fn clone(&self) -> GetLifecyclePoliciesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetLifecyclePoliciesInput
impl Debug for GetLifecyclePoliciesInput
source§impl PartialEq for GetLifecyclePoliciesInput
impl PartialEq for GetLifecyclePoliciesInput
source§fn eq(&self, other: &GetLifecyclePoliciesInput) -> bool
fn eq(&self, other: &GetLifecyclePoliciesInput) -> bool
self
and other
values to be equal, and is used
by ==
.