Struct aws_sdk_dlm::types::PolicyDetails
source · #[non_exhaustive]pub struct PolicyDetails { /* private fields */ }Expand description
[All policy types] Specifies the configuration of a lifecycle policy.
Implementations§
source§impl PolicyDetails
impl PolicyDetails
sourcepub fn policy_type(&self) -> Option<&PolicyTypeValues>
pub fn policy_type(&self) -> Option<&PolicyTypeValues>
[All policy types] The valid target resource types and actions a policy can manage. Specify EBS_SNAPSHOT_MANAGEMENT to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify IMAGE_MANAGEMENT to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify EVENT_BASED_POLICY to create an event-based policy that performs specific actions when a defined event occurs in your Amazon Web Services account.
The default is EBS_SNAPSHOT_MANAGEMENT.
sourcepub fn resource_types(&self) -> Option<&[ResourceTypeValues]>
pub fn resource_types(&self) -> Option<&[ResourceTypeValues]>
[Snapshot policies only] The target resource type for snapshot and AMI lifecycle policies. Use VOLUME to create snapshots of individual volumes or use INSTANCE to create multi-volume snapshots from the volumes for an instance.
sourcepub fn resource_locations(&self) -> Option<&[ResourceLocationValues]>
pub fn resource_locations(&self) -> Option<&[ResourceLocationValues]>
[Snapshot and AMI policies only] The location of the resources to backup. If the source resources are located in an Amazon Web Services Region, specify CLOUD. If the source resources are located on an Outpost in your account, specify OUTPOST.
If you specify OUTPOST, Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.
[Snapshot and AMI policies only] The single tag that identifies targeted resources for this policy.
sourcepub fn schedules(&self) -> Option<&[Schedule]>
pub fn schedules(&self) -> Option<&[Schedule]>
[Snapshot and AMI policies only] The schedules of policy-defined actions for snapshot and AMI lifecycle policies. A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.
sourcepub fn parameters(&self) -> Option<&Parameters>
pub fn parameters(&self) -> Option<&Parameters>
[Snapshot and AMI policies only] A set of optional parameters for snapshot and AMI lifecycle policies.
If you are modifying a policy that was created or previously modified using the Amazon Data Lifecycle Manager console, then you must include this parameter and specify either the default values or the new values that you require. You can't omit this parameter or set its values to null.
sourcepub fn event_source(&self) -> Option<&EventSource>
pub fn event_source(&self) -> Option<&EventSource>
[Event-based policies only] The event that activates the event-based policy.
source§impl PolicyDetails
impl PolicyDetails
sourcepub fn builder() -> PolicyDetailsBuilder
pub fn builder() -> PolicyDetailsBuilder
Creates a new builder-style object to manufacture PolicyDetails.
Trait Implementations§
source§impl Clone for PolicyDetails
impl Clone for PolicyDetails
source§fn clone(&self) -> PolicyDetails
fn clone(&self) -> PolicyDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PolicyDetails
impl Debug for PolicyDetails
source§impl PartialEq<PolicyDetails> for PolicyDetails
impl PartialEq<PolicyDetails> for PolicyDetails
source§fn eq(&self, other: &PolicyDetails) -> bool
fn eq(&self, other: &PolicyDetails) -> bool
self and other values to be equal, and is used
by ==.