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
.