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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb

Overview

Note:

When making an API call, you may pass BackupSelection data as a 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.

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)


499
500
501
502
503
504
505
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 499

class BackupSelection < Struct.new(
  :selection_name,
  :iam_role_arn,
  :resources,
  :list_of_tags)
  include Aws::Structure
end

#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:



499
500
501
502
503
504
505
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 499

class BackupSelection < Struct.new(
  :selection_name,
  :iam_role_arn,
  :resources,
  :list_of_tags)
  include Aws::Structure
end

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


499
500
501
502
503
504
505
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 499

class BackupSelection < Struct.new(
  :selection_name,
  :iam_role_arn,
  :resources,
  :list_of_tags)
  include Aws::Structure
end

#selection_nameString

The display name of a resource selection document.

Returns:

  • (String)


499
500
501
502
503
504
505
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 499

class BackupSelection < Struct.new(
  :selection_name,
  :iam_role_arn,
  :resources,
  :list_of_tags)
  include Aws::Structure
end