Class TagCondition
A tag condition.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TagCondition : ITagCondition
Syntax (vb)
Public Class TagCondition 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() | A tag condition. |
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()
A tag condition.
public TagCondition()
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
};
Properties
Key
The key in a key-value pair.
public string Key { get; set; }
Property Value
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 TagOperation? Operation { get; set; }
Property Value
Remarks
Default: STRING_EQUALS
Value
The value in a key-value pair.
public string Value { get; set; }
Property Value
Remarks
For example, in "ec2:ResourceTag/Department": "accounting",
accounting is the value.