Show / Hide Table of Contents

Class TagCondition

A tag condition.

Inheritance
object
TagCondition
Implements
ITagCondition
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

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 TagOperation? Operation { get; set; }
Property Value

TagOperation?

Remarks

Default: STRING_EQUALS

Value

The value in a key-value pair.

public string Value { get; set; }
Property Value

string

Remarks

For example, in "ec2:ResourceTag/Department": "accounting", accounting is the value.

Implements

ITagCondition
Back to top Generated by DocFX