TagCondition

class aws_cdk.aws_backup.TagCondition(*, key, value, operation=None)

Bases: object

A tag condition.

Parameters:
  • key (str) – The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", ec2:ResourceTag/Department is the key.

  • value (str) – The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", accounting is the value.

  • operation (Optional[TagOperation]) – An operation that is applied to a key-value pair used to filter resources in a selection. Default: STRING_EQUALS

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_backup as backup

tag_condition = backup.TagCondition(
    key="key",
    value="value",

    # the properties below are optional
    operation=backup.TagOperation.STRING_EQUALS
)

Attributes

key

The key in a key-value pair.

For example, in "ec2:ResourceTag/Department": "accounting", ec2:ResourceTag/Department is the key.

operation

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

Default:

STRING_EQUALS

value

The value in a key-value pair.

For example, in "ec2:ResourceTag/Department": "accounting", accounting is the value.