class RootConstruct
| Language | Type name |
|---|---|
.NET | Constructs.RootConstruct |
Java | software.constructs.RootConstruct |
Python | constructs.RootConstruct |
TypeScript (source) | constructs » RootConstruct |
Implements
IConstruct, IDependable
Extends
Construct
Creates a new root construct node.
The root construct represents the top of the construct tree and is not contained within a parent scope itself. For root constructs, the id is optional.
Initializer
new RootConstruct(id?: string)
Parameters
- id
string— The scoped construct ID.
Creates a new root construct node.
Properties
| Name | Type | Description |
|---|---|---|
| node | Node | The tree node. |
node
Type:
Node
The tree node.
Methods
| Name | Description |
|---|---|
| to | Returns a string representation of this construct. |
| with(...mixins) | Applies one or more mixins to this construct. |
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.

.NET
Java
Python
TypeScript (