Use this data source to get information on an existing backup selection.
data "aws_backup_selection" "example" {
plan_id = data.aws_backup_plan.example.id
selection_id = "selection-id-example"
}
This data source supports the following arguments:
plan_id
- (Required) Backup plan ID associated with the selection of resources.selection_id
- (Required) Backup selection ID.This data source exports the following attributes in addition to the arguments above:
name
- Display name of a resource selection document.iam_role_arn
- ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource. See the AWS Backup Developer Guide for additional information about using AWS managed policies or creating custom policies attached to the IAM role.resources
- An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan..