Construct

class aws_cdk.core.Construct(scope, id)

Bases: object

Represents the building block of the construct graph.

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

__init__(scope, id)

Creates a new construct node.

Parameters
  • scope (Construct) – The scope in which to define this construct.

  • id (str) – The scoped construct ID. Must be unique amongst siblings. If the ID includes a path separator (/), then it will be replaced by double dash --.

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

node

Construct tree node which offers APIs for interacting with the construct tree.

Return type

ConstructNode

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool