Skip to content

Construct

Represents the building block of the construct graph.

All constructs besides the root construct must be created within the scope of another construct.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Core;
new Construct(Construct Scope, string Id);
Name Type Description
Scope Construct No description.
Id string No description.

ScopeRequired


IdRequired

  • 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

private string ToString()

Returns a string representation of this construct.

Synthesize

private void Synthesize(ISynthesisSession Session)

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.

SessionRequired

The synthesis session.


Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Core;
Construct.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node ConstructNode The construct tree node associated with this construct.

NodeRequired

public ConstructNode Node { get; }

The construct tree node associated with this construct.