Struct aws_sdk_dlm::types::ShareRule
source · #[non_exhaustive]pub struct ShareRule {
pub target_accounts: Option<Vec<String>>,
pub unshare_interval: Option<i32>,
pub unshare_interval_unit: Option<RetentionIntervalUnitValues>,
}
Expand description
[Custom snapshot policies only] Specifies a rule for sharing snapshots across Amazon Web Services accounts.
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.target_accounts: Option<Vec<String>>
The IDs of the Amazon Web Services accounts with which to share the snapshots.
The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.
The unit of time for the automatic unsharing interval.
Implementations§
sourcepub fn target_accounts(&self) -> &[String]
pub fn target_accounts(&self) -> &[String]
The IDs of the Amazon Web Services accounts with which to share the snapshots.
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_accounts.is_none()
.
The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.
The unit of time for the automatic unsharing interval.
sourcepub fn builder() -> ShareRuleBuilder
pub fn builder() -> ShareRuleBuilder
Creates a new builder-style object to manufacture ShareRule
.
Trait Implementations§
Auto Trait Implementations§
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