Learn R Programming

paws.storage (version 0.1.9)

backup_create_backup_selection: Creates a JSON document that specifies a set of resources to assign to a backup plan

Description

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.

Usage

backup_create_backup_selection(BackupPlanId, BackupSelection,
  CreatorRequestId)

Arguments

BackupPlanId

[required] Uniquely identifies the backup plan to be associated with the selection of resources.

BackupSelection

[required] Specifies the body of a request to assign a set of resources to a backup plan.

CreatorRequestId

A unique string that identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

Request syntax

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"
)

Details

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.