Class TreeInspector
Inspector that maintains an attribute bag.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TreeInspector : DeputyBase
Syntax (vb)
Public Class TreeInspector Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
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();
Synopsis
Constructors
| TreeInspector() | Inspector that maintains an attribute bag. |
Properties
| Attributes | Represents the bag of attributes as key-value pairs. |
Methods
| AddAttribute(string, object) | Adds attribute to bag. |
Constructors
TreeInspector()
Inspector that maintains an attribute bag.
public TreeInspector()
Remarks
ExampleMetadata: fixture=_generated
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();
Properties
Attributes
Represents the bag of attributes as key-value pairs.
public virtual IDictionary<string, object> Attributes { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
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