Class TreeInspector
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
Methods
AddAttribute(string, object)
Adds attribute to bag.
public virtual void AddAttribute(string key, object value)
Parameters
Remarks
Keys should be added by convention to prevent conflicts i.e. L1 constructs will contain attributes with keys prefixed with aws:cdk:cloudformation