interface TagCondition
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Backup.TagCondition |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbackup#TagCondition |
![]() | software.amazon.awscdk.services.backup.TagCondition |
![]() | aws_cdk.aws_backup.TagCondition |
![]() | aws-cdk-lib » 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 { aws_backup as backup } from 'aws-cdk-lib';
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.