Struct aws_sdk_backup::model::backup_selection::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for BackupSelection
Implementations
sourceimpl Builder
impl Builder
sourcepub fn selection_name(self, input: impl Into<String>) -> Self
pub fn selection_name(self, input: impl Into<String>) -> Self
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn set_selection_name(self, input: Option<String>) -> Self
pub fn set_selection_name(self, input: Option<String>) -> Self
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example, arn:aws:iam::123456789012:role/S3Access
.
sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that Backup uses to authenticate when backing up the target resource; for example, arn:aws:iam::123456789012:role/S3Access
.
sourcepub fn resources(self, input: impl Into<String>) -> Self
pub fn resources(self, input: impl Into<String>) -> Self
Appends an item to resources
.
To override the contents of this collection use set_resources
.
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
sourcepub fn set_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_resources(self, input: Option<Vec<String>>) -> Self
A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to assign many resources to a backup plan, consider a different resource selection strategy, such as assigning all resources of a resource type or refining your resource selection using tags.
Appends an item to list_of_tags
.
To override the contents of this collection use set_list_of_tags
.
A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": {"Department": "accounting"
. Condition operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": {"Department": "accounting"
. Condition operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
-
When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
-
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
sourcepub fn not_resources(self, input: impl Into<String>) -> Self
pub fn not_resources(self, input: impl Into<String>) -> Self
Appends an item to not_resources
.
To override the contents of this collection use set_not_resources
.
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
sourcepub fn set_not_resources(self, input: Option<Vec<String>>) -> Self
pub fn set_not_resources(self, input: Option<Vec<String>>) -> Self
A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
sourcepub fn conditions(self, input: Conditions) -> Self
pub fn conditions(self, input: Conditions) -> Self
A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": {"Department": "accounting"
. Condition operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
-
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
-
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
sourcepub fn set_conditions(self, input: Option<Conditions>) -> Self
pub fn set_conditions(self, input: Option<Conditions>) -> Self
A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": {"Department": "accounting"
. Condition operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
-
When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
-
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
sourcepub fn build(self) -> BackupSelection
pub fn build(self) -> BackupSelection
Consumes the builder and constructs a BackupSelection
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more