Class TagCondition
A tag condition.
Inheritance
System.Object
TagCondition
Implements
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TagCondition : Object, ITagCondition
Syntax (vb)
Public Class TagCondition
Inherits Object
Implements ITagCondition
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;
var tagCondition = new TagCondition {
Key = "key",
Value = "value",
// the properties below are optional
Operation = TagOperation.STRING_EQUALS
};
Synopsis
Constructors
TagCondition() |
Properties
Key | The key in a key-value pair. |
Operation | An operation that is applied to a key-value pair used to filter resources in a selection. |
Value | The value in a key-value pair. |
Constructors
TagCondition()
public TagCondition()
Properties
Key
The key in a key-value pair.
public string Key { get; set; }
Property Value
System.String
Remarks
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.
public Nullable<TagOperation> Operation { get; set; }
Property Value
System.Nullable<TagOperation>
Remarks
Default: STRING_EQUALS
Value
The value in a key-value pair.
public string Value { get; set; }
Property Value
System.String
Remarks
For example, in "ec2:ResourceTag/Department": "accounting"
,
accounting
is the value.