aws-cdk-lib.aws_backup.TagCondition

interface TagCondition

LanguageType name
.NETAmazon.CDK.AWS.Backup.TagCondition
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsbackup#TagCondition
Javasoftware.amazon.awscdk.services.backup.TagCondition
Pythonaws_cdk.aws_backup.TagCondition
TypeScript (source)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

NameTypeDescription
keystringThe key in a key-value pair.
valuestringThe value in a key-value pair.
operation?TagOperationAn 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: TagOperation (optional, default: STRING_EQUALS)

An operation that is applied to a key-value pair used to filter resources in a selection.