aws-cdk-lib.aws_backup.CfnBackupSelection.BackupSelectionResourceTypeProperty

interface BackupSelectionResourceTypeProperty

LanguageType name
.NETAmazon.CDK.AWS.Backup.CfnBackupSelection.BackupSelectionResourceTypeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbackup#CfnBackupSelection_BackupSelectionResourceTypeProperty
Javasoftware.amazon.awscdk.services.backup.CfnBackupSelection.BackupSelectionResourceTypeProperty
Pythonaws_cdk.aws_backup.CfnBackupSelection.BackupSelectionResourceTypeProperty
TypeScript aws-cdk-lib » aws_backup » CfnBackupSelection » BackupSelectionResourceTypeProperty

Specifies an object containing properties used to assign a set of resources to a backup plan.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';

declare const conditions: any;
const backupSelectionResourceTypeProperty: backup.CfnBackupSelection.BackupSelectionResourceTypeProperty = {
  iamRoleArn: 'iamRoleArn',
  selectionName: 'selectionName',

  // the properties below are optional
  conditions: conditions,
  listOfTags: [{
    conditionKey: 'conditionKey',
    conditionType: 'conditionType',
    conditionValue: 'conditionValue',
  }],
  notResources: ['notResources'],
  resources: ['resources'],
};

Properties

NameTypeDescription
iamRoleArnstringThe ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;
selectionNamestringThe display name of a resource selection document.
conditions?anyA list of conditions that you define to assign resources to your backup plans using tags.
listOfTags?IResolvable | IResolvable | ConditionResourceTypeProperty[]A list of conditions that you define to assign resources to your backup plans using tags.
notResources?string[]A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
resources?string[]An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.

iamRoleArn

Type: string

The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;

for example, arn:aws:iam::123456789012:role/S3Access .


selectionName

Type: string

The display name of a resource selection document.


conditions?

Type: any (optional)

A list of conditions that you define to assign resources to your backup plans using tags.

For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" }, . Condition operators are case sensitive.

Conditions differs from ListOfTags as follows:

  • When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
  • Conditions supports StringEquals , StringLike , StringNotEquals , and StringNotLike . ListOfTags only supports StringEquals .

listOfTags?

Type: IResolvable | IResolvable | ConditionResourceTypeProperty[] (optional)

A list of conditions that you define to assign resources to your backup plans using tags.

For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" }, . Condition operators are case sensitive.

ListOfTags differs from Conditions as follows:

  • When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
  • ListOfTags only supports StringEquals . Conditions supports StringEquals , StringLike , StringNotEquals , and StringNotLike .

notResources?

Type: string[] (optional)

A list of Amazon Resource Names (ARNs) to exclude from a backup plan.

The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.

If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.


resources?

Type: string[] (optional)

An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.