TreeInspector

class aws_cdk.core.TreeInspector

Bases: object

Inspector that maintains an attribute bag.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Methods

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

Parameters
  • key (str) –

    • key for metadata.

  • value (Any) –

    • value of metadata.

Return type

None

Attributes

attributes

Represents the bag of attributes as key-value pairs.

Return type

Mapping[str, Any]