Interface TagCondition

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
TagCondition.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:13.145Z") @Stability(Stable) public interface TagCondition extends software.amazon.jsii.JsiiSerializable
A tag condition.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.backup.*;
 TagCondition tagCondition = TagCondition.builder()
         .key("key")
         .value("value")
         // the properties below are optional
         .operation(TagOperation.STRING_EQUALS)
         .build();
 
  • Method Details

    • getKey

      @Stability(Stable) @NotNull String getKey()
      The key in a key-value pair.

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

    • getValue

      @Stability(Stable) @NotNull String getValue()
      The value in a key-value pair.

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

    • getOperation

      @Stability(Stable) @Nullable default TagOperation getOperation()
      An operation that is applied to a key-value pair used to filter resources in a selection.

      Default: STRING_EQUALS

    • builder

      @Stability(Stable) static TagCondition.Builder builder()
      Returns:
      a TagCondition.Builder of TagCondition