@Generated(value="jsii-pacmak/1.15.0 (build 585166b)", date="2020-12-01T06:21:18.645Z") @Stability(value=Stable) public class Construct extends software.amazon.jsii.JsiiObject implements IConstruct
All constructs besides the root construct must be created within the scope of another construct.
Modifier and Type | Class and Description |
---|---|
static class |
Construct.Builder
A fluent builder for
Construct . |
software.amazon.jsii.JsiiObject.InitializationMode
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
|
Construct(Construct scope,
String id)
Creates a new construct node.
|
|
Construct(Construct scope,
String id,
ConstructOptions options)
Creates a new construct node.
|
protected |
Construct(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Construct(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected void |
onPrepare()
Perform final modifications before synthesis.
|
protected void |
onSynthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
|
protected List<String> |
onValidate()
Deprecated.
use `Node.addValidation()` to subscribe validation functions on this construct
instead of overriding this method.
|
String |
toString()
Returns a string representation of this construct.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Construct(software.amazon.jsii.JsiiObjectRef objRef)
protected Construct(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public Construct(@NotNull Construct scope, @NotNull String id, @Nullable ConstructOptions options)
scope
- The scope in which to define this construct. This parameter is required.id
- The scoped construct ID. This parameter is required.options
- Options.@Stability(value=Stable) protected void onPrepare()
This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.
This is an advanced framework feature. Only use this if you understand the implications.
@Stability(value=Stable) protected void onSynthesize(@NotNull ISynthesisSession session)
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
session
- The synthesis session. This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull protected List<String> onValidate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Copyright © 2020. All rights reserved.