backup_create_backup_selection: Creates a JSON document that specifies a set of resources to...

Description Usage Arguments Value Request syntax

View source: R/backup_operations.R

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.

For example, consider the following patterns:

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.

Usage

1
2
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 running the operation twice.

Value

A list with the following syntax:

1
2
3
4
5
6
7
list(
  SelectionId = "string",
  BackupPlanId = "string",
  CreationDate = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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"
)

paws.storage documentation built on Aug. 23, 2021, 1:06 a.m.