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

A backup selection.

stability :stability: experimental

__init__(scope, id, *, backup_plan, resources, allow_restores=None, backup_selection_name=None, role=None)
Parameters
  • scope (Construct) –

  • id (str) –

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

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

  • allow_restores (Optional[bool]) – 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]) – The name for this selection. Default: - a CDK generated name

  • role (Optional[IRole]) – 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 :stability: experimental

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

backup_plan_id

The identifier of the backup plan.

stability :stability: experimental attribute: :attribute:: true

Return type

str

grant_principal

The principal to grant permissions to.

stability :stability: experimental

Return type

IPrincipal

node

The construct tree node associated with this construct.

Return type

ConstructNode

selection_id

The identifier of the backup selection.

stability :stability: experimental attribute: :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