Interface ITagCondition
A tag condition.
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.AWS.Backup.dll
Syntax (csharp)
public interface ITagCondition
Syntax (vb)
Public Interface 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
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. |
Properties
Key
The key in a key-value pair.
string Key { get; }
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.
virtual Nullable<TagOperation> Operation { get; }
Property Value
System.Nullable<TagOperation>
Remarks
Default: STRING_EQUALS
Value
The value in a key-value pair.
string Value { get; }
Property Value
System.String
Remarks
For example, in "ec2:ResourceTag/Department": "accounting"
,
accounting
is the value.