INodeFactory

class constructs.INodeFactory(*args, **kwds)

Bases: Protocol

A factory for attaching ``Node``s to the construct.

Methods

create_node(host, scope, id)

Returns a new Node associated with host.

Parameters:
  • host (Construct) – the associated construct.

  • scope (IConstruct) – the construct’s scope (parent).

  • id (str) – the construct id.

Return type:

Node