public static final class CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder
extends java.lang.Object
CfnBackupSelection.BackupSelectionResourceTypeProperty
Constructor and Description |
---|
Builder() |
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder iamRoleArn(java.lang.String iamRoleArn)
CfnBackupSelection.BackupSelectionResourceTypeProperty.getIamRoleArn()
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
.this
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder selectionName(java.lang.String selectionName)
selectionName
- The display name of a resource selection document. This parameter is required.this
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder conditions(java.lang.Object conditions)
CfnBackupSelection.BackupSelectionResourceTypeProperty.getConditions()
conditions
- A list of conditions that you define to assign resources to your backup plans using tags.
For example, "StringEquals": {"Department": "accounting"
. Condition operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
Conditions
supports StringEquals
, StringLike
, StringNotEquals
, and StringNotLike
. ListOfTags
only supports StringEquals
.this
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder listOfTags(IResolvable listOfTags)
CfnBackupSelection.BackupSelectionResourceTypeProperty.getListOfTags()
listOfTags
- An array of conditions used to specify a set of resources to assign to a backup plan;.
for example, "STRINGEQUALS": {"Department":"accounting"
.this
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder listOfTags(java.util.List<? extends java.lang.Object> listOfTags)
CfnBackupSelection.BackupSelectionResourceTypeProperty.getListOfTags()
listOfTags
- An array of conditions used to specify a set of resources to assign to a backup plan;.
for example, "STRINGEQUALS": {"Department":"accounting"
.this
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder notResources(java.util.List<java.lang.String> notResources)
CfnBackupSelection.BackupSelectionResourceTypeProperty.getNotResources()
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.
this
public CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder resources(java.util.List<java.lang.String> resources)
CfnBackupSelection.BackupSelectionResourceTypeProperty.getResources()
resources
- An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.this
public CfnBackupSelection.BackupSelectionResourceTypeProperty build()
CfnBackupSelection.BackupSelectionResourceTypeProperty
java.lang.NullPointerException
- if any required attribute was not provided