- class aws_cdk.core.TreeInspector
Inspector that maintains an attribute bag.
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.core as cdk tree_inspector = cdk.TreeInspector()
- add_attribute(key, 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
key for metadata.
value of metadata.
- Return type:
Represents the bag of attributes as key-value pairs.