Interface TagCondition
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TagCondition.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:07.770Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTagConditionstatic final classAn implementation forTagCondition -
Method Summary
Modifier and TypeMethodDescriptionstatic TagCondition.Builderbuilder()getKey()The key in a key-value pair.default TagOperationAn operation that is applied to a key-value pair used to filter resources in a selection.getValue()The value in a key-value pair.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKey
The key in a key-value pair.For example, in
"ec2:ResourceTag/Department": "accounting",ec2:ResourceTag/Departmentis the key. -
getValue
The value in a key-value pair.For example, in
"ec2:ResourceTag/Department": "accounting",accountingis the value. -
getOperation
An operation that is applied to a key-value pair used to filter resources in a selection.Default: STRING_EQUALS
-
builder
- Returns:
- a
TagCondition.BuilderofTagCondition
-