Class CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupSelection.BackupSelectionResourceTypeProperty>
- Enclosing interface:
CfnBackupSelection.BackupSelectionResourceTypeProperty
@Stability(Stable)
public static final class CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupSelection.BackupSelectionResourceTypeProperty>
A builder for
CfnBackupSelection.BackupSelectionResourceTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conditions(Object conditions) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getConditions()iamRoleArn(String iamRoleArn) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getIamRoleArn()listOfTags(List<? extends Object> listOfTags) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getListOfTags()listOfTags(IResolvable listOfTags) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getListOfTags()notResources(List<String> notResources) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getNotResources()Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getResources()selectionName(String selectionName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoleArn
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder iamRoleArn(String iamRoleArn) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getIamRoleArn()- Parameters:
iamRoleArn- The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;. This parameter is required. for example,arn:aws:iam::123456789012:role/S3Access.- Returns:
this
-
selectionName
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder selectionName(String selectionName) - Parameters:
selectionName- The display name of a resource selection document. This parameter is required.- Returns:
this
-
conditions
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder conditions(Object conditions) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getConditions()- Parameters:
conditions- A list of conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. Condition operators are case sensitive.Conditionsdiffers fromListOfTagsas follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.ListOfTagsonly supportsStringEquals.
- Returns:
this
-
listOfTags
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder listOfTags(IResolvable listOfTags) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getListOfTags()- Parameters:
listOfTags- A list of conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
- Returns:
this
-
listOfTags
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder listOfTags(List<? extends Object> listOfTags) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getListOfTags()- Parameters:
listOfTags- A list of conditions that you define to assign resources to your backup plans using tags. For example,"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },. Condition operators are case sensitive.ListOfTagsdiffers fromConditionsas follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTagsonly supportsStringEquals.ConditionssupportsStringEquals,StringLike,StringNotEquals, andStringNotLike.
- Returns:
this
-
notResources
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder notResources(List<String> notResources) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getNotResources()- Parameters:
notResources- A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
- Returns:
this
-
resources
@Stability(Stable) public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder resources(List<String> resources) Sets the value ofCfnBackupSelection.BackupSelectionResourceTypeProperty.getResources()- Parameters:
resources- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBackupSelection.BackupSelectionResourceTypeProperty>- Returns:
- a new instance of
CfnBackupSelection.BackupSelectionResourceTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-