aws-cdk-lib.aws_backup.CfnBackupSelectionProps

interface CfnBackupSelectionProps

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

Properties for defining a CfnBackupSelection.

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 cfnBackupSelectionProps: backup.CfnBackupSelectionProps = {
  backupPlanId: 'backupPlanId',
  backupSelection: {
    iamRoleArn: 'iamRoleArn',
    selectionName: 'selectionName',

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

Properties

NameTypeDescription
backupPlanIdstringUniquely identifies a backup plan.
backupSelectionIResolvable | BackupSelectionResourceTypePropertySpecifies the body of a request to assign a set of resources to a backup plan.

backupPlanId

Type: string

Uniquely identifies a backup plan.


backupSelection

Type: IResolvable | BackupSelectionResourceTypeProperty

Specifies the body of a request to assign a set of resources to a backup plan.

It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.