Package software.amazon.awscdk
Class Tags
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Tags
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:02.269Z")
@Stability(Stable)
public class Tags
extends software.amazon.jsii.JsiiObject
Manages AWS tags for all resources within a construct scope.
Example:
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");
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd tags to the node of a construct and all its the taggable children.voidadd tags to the node of a construct and all its the taggable children.static Tagsof(software.constructs.IConstruct scope) Returns the tags API for this scope.voidremove tags to the node of a construct and all its the taggable children.voidremove tags to the node of a construct and all its the taggable children.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Tags
protected Tags(software.amazon.jsii.JsiiObjectRef objRef) -
Tags
protected Tags(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
Returns the tags API for this scope.- Parameters:
scope- The scope. This parameter is required.
-
add
@Stability(Stable) public void add(@NotNull String key, @NotNull String value, @Nullable TagProps props) add tags to the node of a construct and all its the taggable children.- Parameters:
key- This parameter is required.value- This parameter is required.props-
-
add
add tags to the node of a construct and all its the taggable children.- Parameters:
key- This parameter is required.value- This parameter is required.
-
remove
remove tags to the node of a construct and all its the taggable children.- Parameters:
key- This parameter is required.props-
-
remove
remove tags to the node of a construct and all its the taggable children.- Parameters:
key- This parameter is required.
-