Struct aws_sdk_backup::types::builders::BackupSelectionBuilder   
source · #[non_exhaustive]pub struct BackupSelectionBuilder { /* private fields */ }Expand description
A builder for BackupSelection.
Implementations§
source§impl BackupSelectionBuilder
 
impl BackupSelectionBuilder
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": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. 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). 
-  ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
A list of conditions that you define to assign resources to your backup plans using tags. For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. 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). 
-  ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,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": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. 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). 
-  ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly 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": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. 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). 
-  ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly supportsStringEquals.
sourcepub fn build(self) -> BackupSelection
 
pub fn build(self) -> BackupSelection
Consumes the builder and constructs a BackupSelection.
Trait Implementations§
source§impl Clone for BackupSelectionBuilder
 
impl Clone for BackupSelectionBuilder
source§fn clone(&self) -> BackupSelectionBuilder
 
fn clone(&self) -> BackupSelectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BackupSelectionBuilder
 
impl Debug for BackupSelectionBuilder
source§impl Default for BackupSelectionBuilder
 
impl Default for BackupSelectionBuilder
source§fn default() -> BackupSelectionBuilder
 
fn default() -> BackupSelectionBuilder
source§impl PartialEq<BackupSelectionBuilder> for BackupSelectionBuilder
 
impl PartialEq<BackupSelectionBuilder> for BackupSelectionBuilder
source§fn eq(&self, other: &BackupSelectionBuilder) -> bool
 
fn eq(&self, other: &BackupSelectionBuilder) -> bool
self and other values to be equal, and is used
by ==.