Skip to main content

Initializers


scopeRequired

  • Type: constructs.Construct

idRequired

  • Type: str

Methods


to_string

Returns a string representation of this construct.

with

Applies one or more mixins to this construct. Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.

mixinsRequired

  • Type: *constructs.IMixin
The mixins to apply.

add_dependency

dependencyRequired


add_override

pathRequired

  • Type: str

valueRequired

  • Type: typing.Any

all_providers

depends_on

stackRequired


ensure_backend_exists

get_logical_id

tf_elementRequired


has_resource_move

prepare_stack

register_incoming_cross_stack_reference

from_stackRequired


register_outgoing_cross_stack_reference

identifierRequired

  • Type: str

run_all_validations

Run all validations on the stack.

to_hcl_terraform

to_terraform

Static Functions


is_construct

Checks if x is a construct. Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked. Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

xRequired

  • Type: typing.Any
Any object.

is_stack

xRequired

  • Type: typing.Any

of

constructRequired

  • Type: constructs.IConstruct

Properties


nodeRequired

  • Type: constructs.Node
The tree node.

dependenciesRequired


move_targetsRequired


synthesizerRequired