BackupResource

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

Bases: object

(experimental) A resource to backup.

Stability

experimental

Parameters
  • resource (Optional[str]) –

  • tag_condition (Optional[TagCondition]) –

  • construct (Optional[Construct]) –

Stability

experimental

Attributes

construct

(experimental) A construct.

Stability

experimental

Return type

Optional[Construct]

resource

(experimental) A resource.

Stability

experimental

Return type

Optional[str]

tag_condition

(experimental) A condition on a tag.

Stability

experimental

Return type

Optional[TagCondition]

Static Methods

classmethod from_arn(arn)

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

Parameters

arn (str) –

Stability

experimental

Return type

BackupResource

classmethod from_construct(construct)

(experimental) Adds all supported resources in a construct.

Parameters

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

Stability

experimental

Return type

BackupResource

classmethod from_dynamo_db_table(table)

(experimental) A DynamoDB table.

Parameters

table (ITable) –

Stability

experimental

Return type

BackupResource

classmethod from_ec2_instance(instance)

(experimental) An EC2 instance.

Parameters

instance (IInstance) –

Stability

experimental

Return type

BackupResource

classmethod from_efs_file_system(file_system)

(experimental) An EFS file system.

Parameters

file_system (IFileSystem) –

Stability

experimental

Return type

BackupResource

classmethod from_rds_database_instance(instance)

(experimental) A RDS database instance.

Parameters

instance (IDatabaseInstance) –

Stability

experimental

Return type

BackupResource

classmethod from_tag(key, value, operation=None)

(experimental) A tag condition.

Parameters
  • key (str) –

  • value (str) –

  • operation (Optional[TagOperation]) –

Stability

experimental

Return type

BackupResource