@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.951Z") @Stability(value=Stable) public class Tags extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
Mesh mesh;
Service service;
VirtualNode node = VirtualNode.Builder.create(this, "node")
.mesh(mesh)
.serviceDiscovery(ServiceDiscovery.cloudMap(service))
.listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder()
.port(8080)
.healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
.healthyThreshold(3)
.interval(Duration.seconds(5))
.path("/ping")
.timeout(Duration.seconds(2))
.unhealthyThreshold(2)
.build()))
.timeout(HttpTimeout.builder()
.idle(Duration.seconds(5))
.build())
.build())))
.backendDefaults(BackendDefaults.builder()
.tlsClientPolicy(TlsClientPolicy.builder()
.validation(TlsValidation.builder()
.trust(TlsValidationTrust.file("/keys/local_cert_chain.pem"))
.build())
.build())
.build())
.accessLog(AccessLog.fromFilePath("/dev/stdout"))
.build();
Tags.of(node).add("Environment", "Dev");
| Modifier | Constructor and Description |
|---|---|
protected |
Tags(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Tags(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
String value)
add tags to the node of a construct and all its the taggable children.
|
void |
add(String key,
String value,
TagProps props)
add tags to the node of a construct and all its the taggable children.
|
static Tags |
of(software.constructs.IConstruct scope)
Returns the tags API for this scope.
|
void |
remove(String key)
remove tags to the node of a construct and all its the taggable children.
|
void |
remove(String key,
TagProps props)
remove tags to the node of a construct and all its the taggable children.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Tags(software.amazon.jsii.JsiiObjectRef objRef)
protected Tags(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static Tags of(@NotNull software.constructs.IConstruct scope)
scope - The scope. This parameter is required.@Stability(value=Stable)
public void add(@NotNull
String key,
@NotNull
String value,
@Nullable
TagProps props)
key - This parameter is required.value - This parameter is required.props - @Stability(value=Stable)
public void add(@NotNull
String key,
@NotNull
String value)
key - This parameter is required.value - This parameter is required.@Stability(value=Stable)
public void remove(@NotNull
String key,
@Nullable
TagProps props)
key - This parameter is required.props - @Stability(value=Stable)
public void remove(@NotNull
String key)
key - This parameter is required.Copyright © 2022. All rights reserved.