Struct aws_sdk_backup::model::BackupSelection [−][src]
#[non_exhaustive]pub struct BackupSelection {
pub selection_name: Option<String>,
pub iam_role_arn: Option<String>,
pub resources: Option<Vec<String>>,
pub list_of_tags: Option<Vec<Condition>>,
pub not_resources: Option<Vec<String>>,
pub conditions: Option<Conditions>,
}
Expand description
Used to specify a set of resources to a backup plan.
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.selection_name: Option<String>
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
iam_role_arn: Option<String>
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
.
resources: Option<Vec<String>>
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.
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
.
not_resources: Option<Vec<String>>
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.
conditions: Option<Conditions>
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
.
Implementations
The display name of a resource selection document. Must contain 1 to 50 alphanumeric or '-_.' characters.
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
.
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.
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 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.
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
.
Creates a new builder-style object to manufacture BackupSelection
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BackupSelection
impl Send for BackupSelection
impl Sync for BackupSelection
impl Unpin for BackupSelection
impl UnwindSafe for BackupSelection
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more