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

import ros_cdk_core
ros_cdk_core.Construct(
  scope: Construct,
  id: str
)
Name Type Description
scope Construct No description.
id str No description.

scopeRequired


idRequired

  • Type: str

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

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
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_core
ros_cdk_core.Construct.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

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

nodeRequired

node: ConstructNode

The construct tree node associated with this construct.