Class RemoveTag
The RemoveTag Aspect will handle removing tags from this node and children.
Implements
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RemoveTag : DeputyBase, IAspect
Syntax (vb)
Public Class RemoveTag 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 removeTag = new RemoveTag("key", new TagProps {
ApplyToLaunchedInstances = false,
ExcludeResourceTypes = new [] { "excludeResourceTypes" },
IncludeResourceTypes = new [] { "includeResourceTypes" },
Priority = 123
});
Synopsis
Constructors
RemoveTag(string, ITagProps?) | The RemoveTag Aspect will handle removing tags from this node and children. |
Properties
Key | The string key for the tag. |
Props | The RemoveTag Aspect will handle removing tags from this node and children. |
Methods
ApplyTag(ITaggable) | The RemoveTag Aspect will handle removing tags from this node and children. |
ApplyTagV2(ITaggableV2) | The RemoveTag Aspect will handle removing tags from this node and children. |
Visit(IConstruct) | All aspects can visit an IConstruct. |
Constructors
RemoveTag(string, ITagProps?)
The RemoveTag Aspect will handle removing tags from this node and children.
public RemoveTag(string key, ITagProps? props = null)
Parameters
Remarks
ExampleMetadata: fixture=_generated
Properties
Key
The string key for the tag.
public virtual string Key { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Props
The RemoveTag Aspect will handle removing tags from this node and children.
protected virtual ITagProps Props { get; }
Property Value
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 removeTag = new RemoveTag("key", new TagProps {
ApplyToLaunchedInstances = false,
ExcludeResourceTypes = new [] { "excludeResourceTypes" },
IncludeResourceTypes = new [] { "includeResourceTypes" },
Priority = 123
});
Methods
ApplyTag(ITaggable)
The RemoveTag Aspect will handle removing tags from this node and children.
protected virtual void ApplyTag(ITaggable resource)
Parameters
- resource ITaggable
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 removeTag = new RemoveTag("key", new TagProps {
ApplyToLaunchedInstances = false,
ExcludeResourceTypes = new [] { "excludeResourceTypes" },
IncludeResourceTypes = new [] { "includeResourceTypes" },
Priority = 123
});
ApplyTagV2(ITaggableV2)
The RemoveTag Aspect will handle removing tags from this node and children.
protected virtual void ApplyTagV2(ITaggableV2 resource)
Parameters
- resource ITaggableV2
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 removeTag = new RemoveTag("key", new TagProps {
ApplyToLaunchedInstances = false,
ExcludeResourceTypes = new [] { "excludeResourceTypes" },
IncludeResourceTypes = new [] { "includeResourceTypes" },
Priority = 123
});
Visit(IConstruct)
All aspects can visit an IConstruct.
public virtual void Visit(IConstruct construct)
Parameters
- construct IConstruct
Remarks
ExampleMetadata: fixture=_generated