Table of Contents

Class RemoveTag

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

The RemoveTag Aspect will handle removing tags from this node and children.

public class RemoveTag : DeputyBase, IAspect
Inheritance
RemoveTag
Implements

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
            });

Remarks

ExampleMetadata: fixture=_generated

Constructors

RemoveTag(string, ITagProps?)

public RemoveTag(string key, ITagProps? props = null)

Parameters

key string
props ITagProps

Properties

Key

The string key for the tag.

public virtual string Key { get; }

Property Value

string

Props

protected virtual ITagProps Props { get; }

Property Value

ITagProps

Methods

ApplyTag(ITaggable)

protected virtual void ApplyTag(ITaggable resource)

Parameters

resource ITaggable

Visit(IConstruct)

All aspects can visit an IConstruct.

public virtual void Visit(IConstruct construct)

Parameters

construct IConstruct