CfnBackupPlanProps

class aws_cdk.aws_backup.CfnBackupPlanProps(*, backup_plan, backup_plan_tags=None)

Bases: object

Properties for defining a CfnBackupPlan.

Parameters:
  • backup_plan (Union[IResolvable, BackupPlanResourceTypeProperty, Dict[str, Any]]) – Uniquely identifies the backup plan to be associated with the selection of resources.

  • backup_plan_tags (Optional[Mapping[str, str]]) – The tags to assign to the backup plan.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupplan.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup

# backup_options: Any

cfn_backup_plan_props = backup.CfnBackupPlanProps(
    backup_plan=backup.CfnBackupPlan.BackupPlanResourceTypeProperty(
        backup_plan_name="backupPlanName",
        backup_plan_rule=[backup.CfnBackupPlan.BackupRuleResourceTypeProperty(
            rule_name="ruleName",
            target_backup_vault="targetBackupVault",

            # the properties below are optional
            completion_window_minutes=123,
            copy_actions=[backup.CfnBackupPlan.CopyActionResourceTypeProperty(
                destination_backup_vault_arn="destinationBackupVaultArn",

                # the properties below are optional
                lifecycle=backup.CfnBackupPlan.LifecycleResourceTypeProperty(
                    delete_after_days=123,
                    move_to_cold_storage_after_days=123,
                    opt_in_to_archive_for_supported_resources=False
                )
            )],
            enable_continuous_backup=False,
            lifecycle=backup.CfnBackupPlan.LifecycleResourceTypeProperty(
                delete_after_days=123,
                move_to_cold_storage_after_days=123,
                opt_in_to_archive_for_supported_resources=False
            ),
            recovery_point_tags={
                "recovery_point_tags_key": "recoveryPointTags"
            },
            schedule_expression="scheduleExpression",
            schedule_expression_timezone="scheduleExpressionTimezone",
            start_window_minutes=123
        )],

        # the properties below are optional
        advanced_backup_settings=[backup.CfnBackupPlan.AdvancedBackupSettingResourceTypeProperty(
            backup_options=backup_options,
            resource_type="resourceType"
        )]
    ),

    # the properties below are optional
    backup_plan_tags={
        "backup_plan_tags_key": "backupPlanTags"
    }
)

Attributes

backup_plan

Uniquely identifies the backup plan to be associated with the selection of resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupplan.html#cfn-backup-backupplan-backupplan

backup_plan_tags

The tags to assign to the backup plan.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-backupplan.html#cfn-backup-backupplan-backupplantags