Struct aws_sdk_dlm::types::EventParameters  
source · #[non_exhaustive]pub struct EventParameters { /* private fields */ }Expand description
[Event-based policies only] Specifies an event that activates an event-based policy.
Implementations§
source§impl EventParameters
 
impl EventParameters
sourcepub fn event_type(&self) -> Option<&EventTypeValues>
 
pub fn event_type(&self) -> Option<&EventTypeValues>
The type of event. Currently, only snapshot sharing events are supported.
sourcepub fn snapshot_owner(&self) -> Option<&[String]>
 
pub fn snapshot_owner(&self) -> Option<&[String]>
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
sourcepub fn description_regex(&self) -> Option<&str>
 
pub fn description_regex(&self) -> Option<&str>
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$ configures the policy to run only if snapshots created by policy policy-1234567890abcdef0 are shared with your account.
source§impl EventParameters
 
impl EventParameters
sourcepub fn builder() -> EventParametersBuilder
 
pub fn builder() -> EventParametersBuilder
Creates a new builder-style object to manufacture EventParameters.
Trait Implementations§
source§impl Clone for EventParameters
 
impl Clone for EventParameters
source§fn clone(&self) -> EventParameters
 
fn clone(&self) -> EventParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EventParameters
 
impl Debug for EventParameters
source§impl PartialEq<EventParameters> for EventParameters
 
impl PartialEq<EventParameters> for EventParameters
source§fn eq(&self, other: &EventParameters) -> bool
 
fn eq(&self, other: &EventParameters) -> bool
self and other values to be equal, and is used
by ==.