Class Tag
The Tag Aspect will handle adding a tag to this node and cascading tags to children.
Inheritance
Implements
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Tag : DeputyBase, IAspect
Syntax (vb)
Public Class Tag
Inherits DeputyBase
Implements IAspect
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;
var tag = new Tag("key", "value", new TagProps {
ApplyToLaunchedInstances = false,
ExcludeResourceTypes = new [] { "excludeResourceTypes" },
IncludeResourceTypes = new [] { "includeResourceTypes" },
Priority = 123
});
Synopsis
Constructors
Tag(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Tag(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Tag(String, String, ITagProps) |
Properties
Key | The string key for the tag. |
Props | |
Value | The string value of the tag. |
Methods
ApplyTag(ITaggable) | |
ApplyTagV2(ITaggableV2) | |
Visit(IConstruct) | All aspects can visit an IConstruct. |
Constructors
Tag(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Tag(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Tag(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Tag(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Tag(String, String, ITagProps)
public Tag(string key, string value, ITagProps props = null)
Parameters
- key System.String
The string key for the tag.
- value System.String
The string key for the tag.
- props ITagProps
The string key for the tag.
Properties
Key
The string key for the tag.
public virtual string Key { get; }
Property Value
System.String
Props
Value
The string value of the tag.
public virtual string Value { get; }
Property Value
System.String
Methods
ApplyTag(ITaggable)
ApplyTagV2(ITaggableV2)
Visit(IConstruct)
All aspects can visit an IConstruct.
public virtual void Visit(IConstruct construct)
Parameters
- construct Constructs.IConstruct