Interface TagCondition
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TagCondition.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.668Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forTagCondition
static final class
An implementation forTagCondition
-
Method Summary
Modifier and TypeMethodDescriptionstatic TagCondition.Builder
builder()
getKey()
The key in a key-value pair.default TagOperation
An 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/Department
is the key. -
getValue
The value in a key-value pair.For example, in
"ec2:ResourceTag/Department": "accounting"
,accounting
is 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.Builder
ofTagCondition
-