BackupSelection

class aws_cdk.aws_backup.BackupSelection(scope, id, *, backup_plan, resources, allow_restores=None, backup_selection_name=None, role=None)

Bases: aws_cdk.core.Resource

(experimental) A backup selection.

Stability

experimental

Parameters
  • scope (Construct) –

  • id (str) –

  • backup_plan (IBackupPlan) – (experimental) The backup plan for this selection.

  • resources (List[BackupResource]) – (experimental) The resources to backup. Use the helper static methods defined on BackupResource.

  • allow_restores (Optional[bool]) – (experimental) Whether to automatically give restores permissions to the role that AWS Backup uses. If true, the AWSBackupServiceRolePolicyForRestores managed policy will be attached to the role. Default: false

  • backup_selection_name (Optional[str]) – (experimental) The name for this selection. Default: - a CDK generated name

  • role (Optional[IRole]) – (experimental) The role that AWS Backup uses to authenticate when backuping or restoring the resources. The AWSBackupServiceRolePolicyForBackup managed policy will be attached to this role. Default: - a new role will be created

Stability

experimental

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

backup_plan_id

(experimental) The identifier of the backup plan.

Stability

experimental

Attribute

true

Return type

str

env

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.

Return type

ResourceEnvironment

grant_principal

(experimental) The principal to grant permissions to.

Stability

experimental

Return type

IPrincipal

node

The construct tree node associated with this construct.

Return type

ConstructNode

selection_id

(experimental) The identifier of the backup selection.

Stability

experimental

Attribute

true

Return type

str

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool