Struct aws_sdk_backup::model::backup_selection::Builder
source · [−]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": { "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).
-
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": { "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).
-
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": { "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).
-
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": { "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).
-
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
.