Creates a JSON document that specifies a set of resources to assign to a
backup plan. Resources can be included by specifying patterns for a
ListOfTags
and selected Resources
.
backup_create_backup_selection(BackupPlanId, BackupSelection,
CreatorRequestId)
[required] Uniquely identifies the backup plan to be associated with the selection of resources.
[required] Specifies the body of a request to assign a set of resources to a backup plan.
A unique string that identifies the request and allows failed requests to be retried without the risk of executing the operation twice.
svc$create_backup_selection( BackupPlanId = "string", BackupSelection = list( SelectionName = "string", IamRoleArn = "string", Resources = list( "string" ), ListOfTags = list( list( ConditionType = "STRINGEQUALS", ConditionKey = "string", ConditionValue = "string" ) ) ), CreatorRequestId = "string" )
For example, consider the following patterns:
Resources: "arn:aws:ec2:region:account-id:volume/volume-id"
ConditionKey:"department"
ConditionValue:"finance"
ConditionType:"STRINGEQUALS"
ConditionKey:"importance"
ConditionValue:"critical"
ConditionType:"STRINGEQUALS"
Using these patterns would back up all Amazon Elastic Block Store
(Amazon EBS) volumes that are tagged as "department=finance"
,
"importance=critical"
, in addition to an EBS volume with the specified
volume Id.
Resources and conditions are additive in that all resources that match the pattern are selected. This shouldn\'t be confused with a logical AND, where all conditions must match. The matching patterns are logically \'put together using the OR operator. In other words, all patterns that match are selected for backup.