Class Tags

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.Tags
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.155Z") @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
    Modifier
    Constructor
    Description
    protected
    Tags(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Tags(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    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(IConstruct scope)
    Returns the tags API for this scope.
    void
    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.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      @Stability(Stable) @NotNull public static Tags of(@NotNull IConstruct scope)
      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

      @Stability(Stable) public void add(@NotNull String key, @NotNull String value)
      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

      @Stability(Stable) public void remove(@NotNull String key, @Nullable TagProps props)
      remove tags to the node of a construct and all its the taggable children.

      Parameters:
      key - This parameter is required.
      props -
    • remove

      @Stability(Stable) public void remove(@NotNull String key)
      remove tags to the node of a construct and all its the taggable children.

      Parameters:
      key - This parameter is required.