Struct aws_sdk_dlm::types::builders::CrossRegionCopyRuleBuilder
source · #[non_exhaustive]pub struct CrossRegionCopyRuleBuilder { /* private fields */ }
Expand description
A builder for CrossRegionCopyRule
.
Implementations§
source§impl CrossRegionCopyRuleBuilder
impl CrossRegionCopyRuleBuilder
sourcepub fn target_region(self, input: impl Into<String>) -> Self
pub fn target_region(self, input: impl Into<String>) -> Self
Use this parameter for AMI policies only. For snapshot policies, use Target instead. For snapshot policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
sourcepub fn set_target_region(self, input: Option<String>) -> Self
pub fn set_target_region(self, input: Option<String>) -> Self
Use this parameter for AMI policies only. For snapshot policies, use Target instead. For snapshot policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
sourcepub fn get_target_region(&self) -> &Option<String>
pub fn get_target_region(&self) -> &Option<String>
Use this parameter for AMI policies only. For snapshot policies, use Target instead. For snapshot policies created before the Target parameter was introduced, this parameter indicates the target Region for snapshot copies.
[Custom AMI policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
sourcepub fn target(self, input: impl Into<String>) -> Self
pub fn target(self, input: impl Into<String>) -> Self
Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
sourcepub fn set_target(self, input: Option<String>) -> Self
pub fn set_target(self, input: Option<String>) -> Self
Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
sourcepub fn get_target(&self) -> &Option<String>
pub fn get_target(&self) -> &Option<String>
Use this parameter for snapshot policies only. For AMI policies, use TargetRegion instead.
[Custom snapshot policies only] The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
sourcepub fn encrypted(self, input: bool) -> Self
pub fn encrypted(self, input: bool) -> Self
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
This field is required.sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter. Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
sourcepub fn cmk_arn(self, input: impl Into<String>) -> Self
pub fn cmk_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
sourcepub fn set_cmk_arn(self, input: Option<String>) -> Self
pub fn set_cmk_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
sourcepub fn get_cmk_arn(&self) -> &Option<String>
pub fn get_cmk_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the KMS key to use for EBS encryption. If this parameter is not specified, the default KMS key for the account is used.
Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.
Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.
Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.
sourcepub fn retain_rule(self, input: CrossRegionCopyRetainRule) -> Self
pub fn retain_rule(self, input: CrossRegionCopyRetainRule) -> Self
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.
sourcepub fn set_retain_rule(self, input: Option<CrossRegionCopyRetainRule>) -> Self
pub fn set_retain_rule(self, input: Option<CrossRegionCopyRetainRule>) -> Self
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.
sourcepub fn get_retain_rule(&self) -> &Option<CrossRegionCopyRetainRule>
pub fn get_retain_rule(&self) -> &Option<CrossRegionCopyRetainRule>
The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.
sourcepub fn deprecate_rule(self, input: CrossRegionCopyDeprecateRule) -> Self
pub fn deprecate_rule(self, input: CrossRegionCopyDeprecateRule) -> Self
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.
sourcepub fn set_deprecate_rule(
self,
input: Option<CrossRegionCopyDeprecateRule>
) -> Self
pub fn set_deprecate_rule( self, input: Option<CrossRegionCopyDeprecateRule> ) -> Self
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.
sourcepub fn get_deprecate_rule(&self) -> &Option<CrossRegionCopyDeprecateRule>
pub fn get_deprecate_rule(&self) -> &Option<CrossRegionCopyDeprecateRule>
[Custom AMI policies only] The AMI deprecation rule for cross-Region AMI copies created by the rule.
sourcepub fn build(self) -> CrossRegionCopyRule
pub fn build(self) -> CrossRegionCopyRule
Consumes the builder and constructs a CrossRegionCopyRule
.
Trait Implementations§
source§impl Clone for CrossRegionCopyRuleBuilder
impl Clone for CrossRegionCopyRuleBuilder
source§fn clone(&self) -> CrossRegionCopyRuleBuilder
fn clone(&self) -> CrossRegionCopyRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CrossRegionCopyRuleBuilder
impl Debug for CrossRegionCopyRuleBuilder
source§impl Default for CrossRegionCopyRuleBuilder
impl Default for CrossRegionCopyRuleBuilder
source§fn default() -> CrossRegionCopyRuleBuilder
fn default() -> CrossRegionCopyRuleBuilder
source§impl PartialEq for CrossRegionCopyRuleBuilder
impl PartialEq for CrossRegionCopyRuleBuilder
source§fn eq(&self, other: &CrossRegionCopyRuleBuilder) -> bool
fn eq(&self, other: &CrossRegionCopyRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CrossRegionCopyRuleBuilder
Auto Trait Implementations§
impl Freeze for CrossRegionCopyRuleBuilder
impl RefUnwindSafe for CrossRegionCopyRuleBuilder
impl Send for CrossRegionCopyRuleBuilder
impl Sync for CrossRegionCopyRuleBuilder
impl Unpin for CrossRegionCopyRuleBuilder
impl UnwindSafe for CrossRegionCopyRuleBuilder
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