Construct
- Implements: IConstruct
Represents the building block of the construct graph.
All constructs besides the root construct must be created within the scope of another construct.
Initializers
import { Construct } from '@alicloud/ros-cdk-core'
new Construct(scope: Construct, id: string)
Name | Type | Description |
---|---|---|
scope |
Construct |
No description. |
id |
string |
No description. |
scope
Required
- Type: Construct
id
Required
- Type: string
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
toString
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: ISynthesisSession
The synthesis session.
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import { Construct } from '@alicloud/ros-cdk-core'
Construct.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
Name | Type | Description |
---|---|---|
node |
ConstructNode |
The construct tree node associated with this construct. |
node
Required
public readonly node: ConstructNode;
- Type: ConstructNode
The construct tree node associated with this construct.