@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.940Z") @Stability(value=Stable) public class Tag extends software.amazon.jsii.JsiiObject implements IAspect
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
Tag tag = Tag.Builder.create("key", "value")
.applyToLaunchedInstances(false)
.excludeResourceTypes(List.of("excludeResourceTypes"))
.includeResourceTypes(List.of("includeResourceTypes"))
.priority(123)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Tag.Builder
A fluent builder for
Tag. |
software.amazon.jsii.JsiiObject.InitializationModeIAspect.Jsii$Default, IAspect.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Tag(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Tag(software.amazon.jsii.JsiiObjectRef objRef) |
|
Tag(String key,
String value) |
|
Tag(String key,
String value,
TagProps props) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyTag(ITaggable resource) |
String |
getKey()
The string key for the tag.
|
protected TagProps |
getProps() |
String |
getValue()
The string value of the tag.
|
void |
visit(software.constructs.IConstruct construct)
All aspects can visit an IConstruct.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Tag(software.amazon.jsii.JsiiObjectRef objRef)
protected Tag(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Tag(@NotNull
String key,
@NotNull
String value,
@Nullable
TagProps props)
key - This parameter is required.value - This parameter is required.props - @Stability(value=Stable)
protected void applyTag(@NotNull
ITaggable resource)
resource - This parameter is required.@Stability(value=Stable)
public void visit(@NotNull
software.constructs.IConstruct construct)
@Stability(value=Stable) @NotNull public String getKey()
@Stability(value=Stable) @NotNull protected TagProps getProps()
@Stability(value=Stable) @NotNull public String getValue()
Copyright © 2022. All rights reserved.