interface BackupSelectionResourceTypeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Backup.Mixins.CfnBackupSelectionPropsMixin.BackupSelectionResourceTypeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbackup/mixins#CfnBackupSelectionPropsMixin_BackupSelectionResourceTypeProperty |
Java | software.amazon.awscdk.mixins.preview.services.backup.mixins.CfnBackupSelectionPropsMixin.BackupSelectionResourceTypeProperty |
Python | aws_cdk.mixins_preview.aws_backup.mixins.CfnBackupSelectionPropsMixin.BackupSelectionResourceTypeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_backup » mixins » CfnBackupSelectionPropsMixin » 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 { mixins as backup_mixins } from '@aws-cdk/mixins-preview/aws-backup';
declare const conditions: any;
const backupSelectionResourceTypeProperty: backup_mixins.CfnBackupSelectionPropsMixin.BackupSelectionResourceTypeProperty = {
conditions: conditions,
iamRoleArn: 'iamRoleArn',
listOfTags: [{
conditionKey: 'conditionKey',
conditionType: 'conditionType',
conditionValue: 'conditionValue',
}],
notResources: ['notResources'],
resources: ['resources'],
selectionName: 'selectionName',
};
Properties
| Name | Type | Description |
|---|---|---|
| conditions? | any | A list of conditions that you define to assign resources to your backup plans using tags. |
| iam | string | The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; |
| list | IResolvable | (IResolvable | Condition)[] | A list of conditions that you define to assign resources to your backup plans using tags. |
| not | 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. |
| selection | 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).
ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly supportsStringEquals.
iamRoleArn?
Type:
string
(optional)
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 .
listOfTags?
Type:
IResolvable | (IResolvable | Condition)[]
(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).
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
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.
selectionName?
Type:
string
(optional)
The display name of a resource selection document.

.NET
Go
Java
Python
TypeScript