Class CfnBackupSelection.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupSelection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupSelection>
- Enclosing class:
- CfnBackupSelection
@Stability(Stable)
public static final class CfnBackupSelection.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupSelection>
A fluent builder for
CfnBackupSelection
.-
Method Summary
Modifier and TypeMethodDescriptionbackupPlanId
(String backupPlanId) Uniquely identifies a backup plan.backupSelection
(IResolvable backupSelection) Specifies the body of a request to assign a set of resources to a backup plan.backupSelection
(CfnBackupSelection.BackupSelectionResourceTypeProperty backupSelection) Specifies the body of a request to assign a set of resources to a backup plan.build()
static CfnBackupSelection.Builder
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnBackupSelection.Builder
.
-
backupPlanId
Uniquely identifies a backup plan.- Parameters:
backupPlanId
- Uniquely identifies a backup plan. This parameter is required.- Returns:
this
-
backupSelection
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.
- Parameters:
backupSelection
- Specifies the body of a request to assign a set of resources to a backup plan. This parameter is required.- Returns:
this
-
backupSelection
@Stability(Stable) public CfnBackupSelection.Builder backupSelection(CfnBackupSelection.BackupSelectionResourceTypeProperty backupSelection) 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.
- Parameters:
backupSelection
- Specifies the body of a request to assign a set of resources to a backup plan. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupSelection>
- Returns:
- a newly built instance of
CfnBackupSelection
.
-