class BackupSelection (construct)
A backup selection.
new BackupSelection(scope: Construct, id: string, props: BackupSelectionProps)
|backup||The backup plan for this selection.|
|resources||The resources to backup.|
|allow||Whether to automatically give restores permissions to the role that AWS Backup uses.|
|backup||The name for this selection.|
|role?||The role that AWS Backup uses to authenticate when backuping or restoring the resources.|
The backup plan for this selection.
The resources to backup.
Use the helper static methods defined on
(optional, default: false)
Whether to automatically give restores permissions to the role that AWS Backup uses.
policy will be attached to the role.
(optional, default: a CDK generated name)
The name for this selection.
(optional, default: a new role will be created)
The role that AWS Backup uses to authenticate when backuping or restoring the resources.
AWSBackupServiceRolePolicyForBackup managed policy
will be attached to this role.
|backup||The identifier of the backup plan.|
|env||The environment this resource belongs to.|
|grant||The principal to grant permissions to.|
|node||The construct tree node associated with this construct.|
|selection||The identifier of the backup selection.|
|stack||The stack in which this resource is defined.|
The identifier of the backup plan.
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
The principal to grant permissions to.
The construct tree node associated with this construct.
The identifier of the backup selection.
The stack in which this resource is defined.
|to||Returns a string representation of this construct.|
public toString(): string
Returns a string representation of this construct.