TagCondition

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

Bases: object

__init__(*, key, value, operation=None)

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

stability :stability: experimental

Return type

None

Attributes

key

The key in a key-value pair.

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

stability :stability: experimental

Return type

str

operation

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

default :default: STRING_EQUALS

stability :stability: experimental

Return type

Optional[TagOperation]

value

The value in a key-value pair.

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

stability :stability: experimental

Return type

str