Struct aws_sdk_dlm::types::EventParameters
source · #[non_exhaustive]pub struct EventParameters {
pub event_type: Option<EventTypeValues>,
pub snapshot_owner: Option<Vec<String>>,
pub description_regex: Option<String>,
}
Expand description
[Event-based policies only] Specifies an event that activates an event-based policy.
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.event_type: Option<EventTypeValues>
The type of event. Currently, only snapshot sharing events are supported.
snapshot_owner: Option<Vec<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.
description_regex: Option<String>
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.
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) -> &[String]
pub fn snapshot_owner(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .snapshot_owner.is_none()
.
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 for EventParameters
impl PartialEq 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 ==
.impl StructuralPartialEq for EventParameters
Auto Trait Implementations§
impl Freeze for EventParameters
impl RefUnwindSafe for EventParameters
impl Send for EventParameters
impl Sync for EventParameters
impl Unpin for EventParameters
impl UnwindSafe for EventParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more