CfnBackupSelectionProps
- class aws_cdk.aws_backup.CfnBackupSelectionProps(*, backup_plan_id, backup_selection)
Bases:
object
Properties for defining a
CfnBackupSelection
.- Parameters:
backup_plan_id (
str
) – Uniquely identifies a backup plan.backup_selection (
Union
[IResolvable
,BackupSelectionResourceTypeProperty
,Dict
[str
,Any
]]) – Specifies the body of a request to assign a set of resources to a backup plan. It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
- See:
- 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 # conditions: Any cfn_backup_selection_props = backup.CfnBackupSelectionProps( backup_plan_id="backupPlanId", backup_selection=backup.CfnBackupSelection.BackupSelectionResourceTypeProperty( iam_role_arn="iamRoleArn", selection_name="selectionName", # the properties below are optional conditions=conditions, list_of_tags=[backup.CfnBackupSelection.ConditionResourceTypeProperty( condition_key="conditionKey", condition_type="conditionType", condition_value="conditionValue" )], not_resources=["notResources"], resources=["resources"] ) )
Attributes
- backup_plan_id
Uniquely identifies a backup plan.
- backup_selection
Specifies the body of a request to assign a set of resources to a backup plan.
It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.