BackupSelectionResourceTypeProperty Struct
Specifies an object containing properties used to assign a set of resources to a backup plan.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
declare const conditions: any;
const backupSelectionResourceTypeProperty: backup.CfnBackupSelection.BackupSelectionResourceTypeProperty = {
iamRoleArn: 'iamRoleArn',
selectionName: 'selectionName',
// the properties below are optional
conditions: conditions,
listOfTags: [{
conditionKey: 'conditionKey',
conditionType: 'conditionType',
conditionValue: 'conditionValue',
}],
notResources: ['notResources'],
resources: ['resources'],
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup
# conditions: Any
backup_selection_resource_type_property = backup.CfnBackupSelection.BackupSelectionResourceTypeProperty(
iam_role_arn="iamRoleArn",
selection_name="selectionName",
# the properties below are optional
conditions=conditions,
list_of_tags=[backup.CfnBackupSelection.ConditionResourceTypeProperty(
condition_key="conditionKey",
condition_type="conditionType",
condition_value="conditionValue"
)],
not_resources=["notResources"],
resources=["resources"]
)
// 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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;
var conditions;
var backupSelectionResourceTypeProperty = new BackupSelectionResourceTypeProperty {
IamRoleArn = "iamRoleArn",
SelectionName = "selectionName",
// the properties below are optional
Conditions = conditions,
ListOfTags = new [] { new ConditionResourceTypeProperty {
ConditionKey = "conditionKey",
ConditionType = "conditionType",
ConditionValue = "conditionValue"
} },
NotResources = new [] { "notResources" },
Resources = new [] { "resources" }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var conditions interface{}
backupSelectionResourceTypeProperty := &BackupSelectionResourceTypeProperty{
IamRoleArn: jsii.String("iamRoleArn"),
SelectionName: jsii.String("selectionName"),
// the properties below are optional
Conditions: conditions,
ListOfTags: []interface{}{
&ConditionResourceTypeProperty{
ConditionKey: jsii.String("conditionKey"),
ConditionType: jsii.String("conditionType"),
ConditionValue: jsii.String("conditionValue"),
},
},
NotResources: []*string{
jsii.String("notResources"),
},
Resources: []*string{
jsii.String("resources"),
},
}
Properties
conditionsoptionalanyconditionsoptionalAnyconditionsoptionalObjectConditionsoptionalobjectConditionsoptionalinterface{} #notes
For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" }, . Condition operators are case sensitive.
Conditions differs from ListOfTags as 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.
for example, arn:aws:iam::123456789012:role/S3Access .
listOfTagsoptionalIResolvable | IResolvable | CfnBackupSelection.list_of_tagsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConditionResourceTypeProperty]]]listOfTagsoptionalIResolvableListOfTagsoptionalIResolvableListOfTagsoptionalinterface{} #notes
For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" }, . Condition operators are case sensitive.
ListOfTags differs from Conditions as 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.
notResourcesoptionalstring[]not_resourcesoptionaltyping.List[str]notResourcesoptionalList<String>NotResourcesoptionalstring[]NotResourcesoptional*[]*string #notes
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.
resourcesoptionalstring[]resourcesoptionaltyping.List[str]resourcesoptionalList<String>Resourcesoptionalstring[]Resourcesoptional*[]*string #selectionNamestringselection_namestrselectionNameStringSelectionNamestringSelectionName*string required #