class RemoveTag
Language | Type name |
---|---|
.NET | Amazon.CDK.RemoveTag |
Java | software.amazon.awscdk.core.RemoveTag |
Python | aws_cdk.core.RemoveTag |
TypeScript (source) | @aws-cdk/core » RemoveTag |
Implements
IAspect
The RemoveTag Aspect will handle removing tags from this node and children.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from '@aws-cdk/core';
const removeTag = new cdk.RemoveTag('key', /* all optional props */ {
applyToLaunchedInstances: false,
excludeResourceTypes: ['excludeResourceTypes'],
includeResourceTypes: ['includeResourceTypes'],
priority: 123,
});
Initializer
new RemoveTag(key: string, props?: TagProps)
Parameters
- key
string
- props
Tag
Props
Properties
Name | Type | Description |
---|---|---|
key | string | The string key for the tag. |
props | Tag |
key
Type:
string
The string key for the tag.
props
Type:
Tag
Methods
Name | Description |
---|---|
visit(construct) | All aspects can visit an IConstruct. |
protected apply |
visit(construct)
public visit(construct: IConstruct): void
Parameters
- construct
IConstruct
All aspects can visit an IConstruct.
Tag(resource)
protected applyprotected applyTag(resource: ITaggable): void
Parameters
- resource
ITaggable