You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Backup::Types::BackupSelection

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing BackupSelection as input to an Aws::Client method, you can use a vanilla Hash:

{
  selection_name: "BackupSelectionName", # required
  iam_role_arn: "IAMRoleArn", # required
  resources: ["ARN"],
  list_of_tags: [
    {
      condition_type: "STRINGEQUALS", # required, accepts STRINGEQUALS
      condition_key: "ConditionKey", # required
      condition_value: "ConditionValue", # required
    },
  ],
}

Used to specify a set of resources to a backup plan.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#iam_role_arnString

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.

Returns:

  • (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.

#list_of_tagsArray<Types::Condition>

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

Returns:

  • (Array<Types::Condition>)

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

#resourcesArray<String>

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.

Returns:

  • (Array<String>)

    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.

#selection_nameString

The display name of a resource selection document.

Returns:

  • (String)

    The display name of a resource selection document.