Skip to content

Data source: awsBackupSelection

Use this data source to get information on an existing backup selection.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsBackupSelection.DataAwsBackupSelection(this, "example", {
  planId: "${data.aws_backup_plan.example.id}",
  selectionId: "selection-id-example",
});

Argument Reference

The following arguments are supported:

  • planId - (Required) Backup plan ID associated with the selection of resources.
  • selectionId - (Required) Backup selection ID.

Attributes Reference

In addition to all arguments above, the following attributes are available:

  • name - Display name of a resource selection document.
  • iamRoleArn - 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..