interface ConditionsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Backup.CfnBackupSelection.ConditionsProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbackup#CfnBackupSelection_ConditionsProperty |
Java | software.amazon.awscdk.services.backup.CfnBackupSelection.ConditionsProperty |
Python | aws_cdk.aws_backup.CfnBackupSelection.ConditionsProperty |
TypeScript | aws-cdk-lib » aws_backup » CfnBackupSelection » ConditionsProperty |
Contains information about which resources to include or exclude from a backup plan using their tags.
Conditions are case sensitive.
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';
const conditionsProperty: backup.CfnBackupSelection.ConditionsProperty = {
stringEquals: [{
conditionKey: 'conditionKey',
conditionValue: 'conditionValue',
}],
stringLike: [{
conditionKey: 'conditionKey',
conditionValue: 'conditionValue',
}],
stringNotEquals: [{
conditionKey: 'conditionKey',
conditionValue: 'conditionValue',
}],
stringNotLike: [{
conditionKey: 'conditionKey',
conditionValue: 'conditionValue',
}],
};
Properties
Name | Type | Description |
---|---|---|
string | IResolvable | IResolvable | Condition [] | Filters the values of your tagged resources for only those resources that you tagged with the same value. |
string | IResolvable | IResolvable | Condition [] | Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string. |
string | IResolvable | IResolvable | Condition [] | Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. |
string | IResolvable | IResolvable | Condition [] | Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string. |
stringEquals?
Type:
IResolvable
|
IResolvable
|
Condition
[]
(optional)
Filters the values of your tagged resources for only those resources that you tagged with the same value.
Also called "exact matching."
stringLike?
Type:
IResolvable
|
IResolvable
|
Condition
[]
(optional)
Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) anywhere in the string.
For example, "prod" or "rod*" matches the tag value "production".
stringNotEquals?
Type:
IResolvable
|
IResolvable
|
Condition
[]
(optional)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value.
Also called "negated matching."
stringNotLike?
Type:
IResolvable
|
IResolvable
|
Condition
[]
(optional)
Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) anywhere in the string.