@Stability(value=Stable)
public static interface CfnBackupSelection.BackupSelectionResourceTypeProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder
A builder for
CfnBackupSelection.BackupSelectionResourceTypeProperty |
static class |
CfnBackupSelection.BackupSelectionResourceTypeProperty.Jsii$Proxy
An implementation for
CfnBackupSelection.BackupSelectionResourceTypeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder |
builder() |
default Object |
getConditions()
A list of conditions that you define to assign resources to your backup plans using tags.
|
String |
getIamRoleArn()
The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;
|
default Object |
getListOfTags()
An array of conditions used to specify a set of resources to assign to a backup plan;
|
default List<String> |
getNotResources()
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
|
default List<String> |
getResources()
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
|
String |
getSelectionName()
The display name of a resource selection document.
|
@Stability(value=Stable) @NotNull String getIamRoleArn()
for example, arn:aws:iam::123456789012:role/S3Access .
@Stability(value=Stable) @NotNull String getSelectionName()
@Stability(value=Stable) @Nullable default Object getConditions()
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 .@Stability(value=Stable) @Nullable default Object getListOfTags()
for example, "STRINGEQUALS": {"Department":"accounting" .
@Stability(value=Stable) @Nullable default List<String> getNotResources()
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.
@Stability(value=Stable) @Nullable default List<String> getResources()
@Stability(value=Stable) static CfnBackupSelection.BackupSelectionResourceTypeProperty.Builder builder()
Copyright © 2022. All rights reserved.