BackupResource

class aws_cdk.aws_backup.BackupResource(resource=None, tag_condition=None, construct=None)

Bases: object

A resource to backup.

stability :stability: experimental

__init__(resource=None, tag_condition=None, construct=None)
Parameters
  • resource (Optional[str]) –

  • tag_condition (Optional[TagCondition]) –

  • construct (Optional[Construct]) –

stability :stability: experimental

Return type

None

Attributes

construct

A construct.

stability :stability: experimental

Return type

Optional[Construct]

resource

A resource.

stability :stability: experimental

Return type

Optional[str]

tag_condition

A condition on a tag.

stability :stability: experimental

Return type

Optional[TagCondition]

Static Methods

classmethod from_arn(arn)

A list of ARNs or match patterns such as arn:aws:ec2:us-east-1:123456789012:volume/*.

Parameters

arn (str) –

stability :stability: experimental

Return type

BackupResource

classmethod from_construct(construct)

Adds all supported resources in a construct.

Parameters

construct (Construct) – The construct containing resources to backup.

stability :stability: experimental

Return type

BackupResource

classmethod from_dynamo_db_table(table)

A DynamoDB table.

Parameters

table (ITable) –

stability :stability: experimental

Return type

BackupResource

classmethod from_ec2_instance(instance)

An EC2 instance.

Parameters

instance (IInstance) –

stability :stability: experimental

Return type

BackupResource

classmethod from_efs_file_system(file_system)

An EFS file system.

Parameters

file_system (IFileSystem) –

stability :stability: experimental

Return type

BackupResource

classmethod from_rds_database_instance(instance)

A RDS database instance.

Parameters

instance (IDatabaseInstance) –

stability :stability: experimental

Return type

BackupResource

classmethod from_tag(key, value, operation=None)

A tag condition.

Parameters
  • key (str) –

  • value (str) –

  • operation (Optional[TagOperation]) –

stability :stability: experimental

Return type

BackupResource