interface TagCondition
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Backup.TagCondition |
Java | software.amazon.awscdk.services.backup.TagCondition |
Python | aws_cdk.aws_backup.TagCondition |
TypeScript (source) | @aws-cdk/aws-backup » TagCondition |
A tag condition.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as backup from '@aws-cdk/aws-backup';
const tagCondition: backup.TagCondition = {
key: 'key',
value: 'value',
// the properties below are optional
operation: backup.TagOperation.STRING_EQUALS,
};
Properties
| Name | Type | Description |
|---|---|---|
| key | string | The key in a key-value pair. |
| value | string | The value in a key-value pair. |
| operation? | Tag | An operation that is applied to a key-value pair used to filter resources in a selection. |
key
Type:
string
The key in a key-value pair.
For example, in "ec2:ResourceTag/Department": "accounting",
ec2:ResourceTag/Department is the key.
value
Type:
string
The value in a key-value pair.
For example, in "ec2:ResourceTag/Department": "accounting",
accounting is the value.
operation?
Type:
Tag
(optional, default: STRING_EQUALS)
An operation that is applied to a key-value pair used to filter resources in a selection.

.NET
Java
Python
TypeScript (