Class TreeInspector

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:25.167Z") @Stability(Stable) public class TreeInspector extends software.amazon.jsii.JsiiObject
Inspector that maintains an attribute bag.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 TreeInspector treeInspector = new TreeInspector();
 
  • 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
    TreeInspector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    TreeInspector(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAttribute(String key, Object value)
    Adds attribute to bag.
    Represents the bag of attributes as key-value pairs.

    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

    • TreeInspector

      protected TreeInspector(software.amazon.jsii.JsiiObjectRef objRef)
    • TreeInspector

      protected TreeInspector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • TreeInspector

      @Stability(Stable) public TreeInspector()
  • Method Details

    • addAttribute

      @Stability(Stable) public void addAttribute(@NotNull String key, @NotNull Object value)
      Adds attribute to bag.

      Keys should be added by convention to prevent conflicts i.e. L1 constructs will contain attributes with keys prefixed with aws:cdk:cloudformation

      Parameters:
      key -
      • key for metadata.
      This parameter is required.
      value -
      • value of metadata.
      This parameter is required.
    • getAttributes

      @Stability(Stable) @NotNull public Map<String,Object> getAttributes()
      Represents the bag of attributes as key-value pairs.