Interface CfnBackupSelection.BackupSelectionResourceTypeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBackupSelection.BackupSelectionResourceTypeProperty.Jsii$Proxy
- Enclosing class:
CfnBackupSelection
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.backup.*; Object conditions; BackupSelectionResourceTypeProperty backupSelectionResourceTypeProperty = BackupSelectionResourceTypeProperty.builder() .iamRoleArn("iamRoleArn") .selectionName("selectionName") // the properties below are optional .conditions(conditions) .listOfTags(List.of(ConditionResourceTypeProperty.builder() .conditionKey("conditionKey") .conditionType("conditionType") .conditionValue("conditionValue") .build())) .notResources(List.of("notResources")) .resources(List.of("resources")) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBackupSelection.BackupSelectionResourceTypeProperty
static final class
An implementation forCfnBackupSelection.BackupSelectionResourceTypeProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
A list of conditions that you define to assign resources to your backup plans using tags.The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;default Object
A list of conditions that you define to assign resources to your backup plans using tags.A list of Amazon Resource Names (ARNs) to exclude from a backup plan.An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.The display name of a resource selection document.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIamRoleArn
The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;for example,
arn:aws:iam::123456789012:role/S3Access
. -
getSelectionName
The display name of a resource selection document. -
getConditions
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.Conditions
differs fromListOfTags
as follows:- When you specify more than one condition, you only assign the resources that match ALL conditions (using AND logic).
Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.ListOfTags
only supportsStringEquals
.
-
getListOfTags
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.ListOfTags
differs fromConditions
as follows:- When you specify more than one condition, you assign all resources that match AT LEAST ONE condition (using OR logic).
ListOfTags
only supportsStringEquals
.Conditions
supportsStringEquals
,StringLike
,StringNotEquals
, andStringNotLike
.
-
getNotResources
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.
-
getResources
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan. -
builder
-