Represents the building block of the construct graph.
All constructs besides the root construct must be created within the scope of another construct.
new Construct(scope: Construct, id: string)
Construct— The scope in which to define this construct.
string— The scoped construct ID.
Creates a new construct node.
|node||Construct tree node which offers APIs for interacting with the construct tree.|
Construct tree node which offers APIs for interacting with the construct tree.
|to||Returns a string representation of this construct.|
|protected prepare()||Perform final modifications before synthesis.|
|protected synthesize(session)||Allows this construct to emit artifacts into the cloud assembly during synthesis.|
|protected validate()||Validate the current construct.|
|static is||Return whether the given object is a Construct.|
public toString(): string
Returns a string representation of this construct.
protected prepare(): void
Perform final modifications before synthesis.
This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.
This is an advanced framework feature. Only use this if you understand the implications.
protected synthesize(session: ISynthesis<wbr>Session): void
ISynthesis— The synthesis session.
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as
as they participate in synthesizing the cloud assembly.
protected validate(): Array<string>
Validate the current construct.
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
public static isConstruct(x: any): boolean
Return whether the given object is a Construct.