Table of Contents

Class TreeInspector

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Inspector that maintains an attribute bag.

public class TreeInspector : DeputyBase
Inheritance
TreeInspector

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;
            var treeInspector = new TreeInspector();

Remarks

ExampleMetadata: fixture=_generated

Constructors

TreeInspector()

public TreeInspector()

Properties

Attributes

Represents the bag of attributes as key-value pairs.

public virtual IDictionary<string, object> Attributes { get; }

Property Value

IDictionary<string, object>

Methods

AddAttribute(string, object)

Adds attribute to bag.

public virtual void AddAttribute(string key, object value)

Parameters

key string
  • key for metadata.
value object
  • value of metadata.

Remarks

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