Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . backup ]

get-backup-selection

Description

Returns selection metadata and a document in JSON format that specifies a list of resources that are associated with a backup plan.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  get-backup-selection
--backup-plan-id <value>
--selection-id <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--backup-plan-id (string)

Uniquely identifies a backup plan.

--selection-id (string)

Uniquely identifies the body of a request to assign a set of resources to a backup plan.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

BackupSelection -> (structure)

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

It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service that the resource belongs to, and an optional array of tags used to identify a set of resources.

SelectionName -> (string)

The display name of a resource selection document.

IamRoleArn -> (string)

The ARN of the IAM role that AWS Backup uses to authenticate when restoring the target resource; for example, arn:aws:iam::123456789012:role/S3Access .

Resources -> (list)

An array of strings that either contain Amazon Resource Names (ARNs) or match patterns such as "arn:aws:ec2:us-east-1:123456789012:volume/* " of resources to assign to a backup plan.

(string)

ListOfTags -> (list)

An array of conditions used to specify a set of resources to assign to a backup plan; for example, "StringEquals": {"ec2:ResourceTag/Department": "accounting" .

(structure)

Contains an array of triplets made up of a condition type (such as StringEquals ), a key, and a value. Conditions are used to filter resources in a selection that is assigned to a backup plan.

ConditionType -> (string)

An operation, such as StringEquals , that is applied to a key-value pair used to filter resources in a selection.

ConditionKey -> (string)

The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting" , "ec2:ResourceTag/Department" is the key.

ConditionValue -> (string)

The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting" , "accounting" is the value.

SelectionId -> (string)

Uniquely identifies the body of a request to assign a set of resources to a backup plan.

BackupPlanId -> (string)

Uniquely identifies a backup plan.

CreationDate -> (timestamp)

The date and time a backup selection is created, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

CreatorRequestId -> (string)

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