@Generated(value="jsii-pacmak/0.14.3 (build 1b1062d)", date="2019-08-14T08:10:20.276Z") @Stability(value=Stable) public class ConstructNode extends software.amazon.jsii.JsiiObject
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SEP
Separator used to delimit construct path components.
|
| Modifier | Constructor and Description |
|---|---|
|
ConstructNode(Construct host,
IConstruct scope,
String id) |
protected |
ConstructNode(software.amazon.jsii.JsiiObject.InitializationMode mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(IDependable... dependencies)
Add an ordering dependency on another Construct.
|
void |
addError(String message)
Adds an { error:
|
void |
addInfo(String message)
Adds a { "aws:cdk:info":
|
void |
addMetadata(String type,
Object data)
Adds a metadata entry to this construct.
|
void |
addMetadata(String type,
Object data,
Object from)
Adds a metadata entry to this construct.
|
void |
addReference(IResolvable... refs)
Record a reference originating from this construct node.
|
void |
addWarning(String message)
Adds a { warning:
|
void |
applyAspect(IAspect aspect)
Applies the aspect to this Constructs node.
|
List<IConstruct> |
findAll()
Return this construct and all of its children in the given order.
|
List<IConstruct> |
findAll(ConstructOrder order)
Return this construct and all of its children in the given order.
|
IConstruct |
findChild(String id)
Return a direct child by id.
|
List<IConstruct> |
getChildren()
All direct children of this construct.
|
IConstruct |
getDefaultChild()
Returns the child construct that has the id `Default` or `Resource"` Override the defaultChild property.
|
List<Dependency> |
getDependencies()
Return all dependencies registered on this node or any of its children.
|
String |
getId()
The id of this construct within the current scope.
|
Boolean |
getLocked()
Returns true if this construct or the scopes in which it is defined are locked.
|
List<software.amazon.awscdk.cxapi.MetadataEntry> |
getMetadata()
An immutable array of metadata objects associated with this construct.
|
String |
getPath()
The full, absolute path of this construct in the tree.
|
List<OutgoingReference> |
getReferences()
Return all references originating from this node or any of its children.
|
IConstruct |
getRoot() |
IConstruct |
getScope()
Returns the scope in which this construct is defined.
|
List<IConstruct> |
getScopes()
All parent scopes of this construct.
|
String |
getUniqueId()
A tree-global unique alphanumeric identifier for this construct.
|
static void |
prepare(ConstructNode node)
Invokes "prepare" on all constructs (depth-first, post-order) in the tree under `node`.
|
void |
setContext(String key,
Object value)
This can be used to set contextual values.
|
void |
setDefaultChild(IConstruct value)
Returns the child construct that has the id `Default` or `Resource"` Override the defaultChild property.
|
static software.amazon.awscdk.cxapi.CloudAssembly |
synth(ConstructNode root)
Synthesizes a CloudAssembly from a construct tree.
|
static software.amazon.awscdk.cxapi.CloudAssembly |
synth(ConstructNode root,
SynthesisOptions options)
Synthesizes a CloudAssembly from a construct tree.
|
IConstruct |
tryFindChild(String id)
Return a direct child by id, or undefined.
|
Object |
tryGetContext(String key)
Retrieves a value from tree context.
|
static List<ValidationError> |
validate(ConstructNode node)
Invokes "validate" on all constructs in the tree (depth-first, pre-order) and returns the list of all errors.
|
jsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSet@Stability(value=Stable) public static final String PATH_SEP
protected ConstructNode(software.amazon.jsii.JsiiObject.InitializationMode mode)
@Stability(value=Stable) public ConstructNode(Construct host, IConstruct scope, String id)
@Stability(value=Stable) public static void prepare(ConstructNode node)
node - The root node.@Stability(value=Stable) public static software.amazon.awscdk.cxapi.CloudAssembly synth(ConstructNode root, @Nullable SynthesisOptions options)
root - The root of the construct tree.options - Synthesis options.@Stability(value=Stable) public static software.amazon.awscdk.cxapi.CloudAssembly synth(ConstructNode root)
root - The root of the construct tree.@Stability(value=Stable) public static List<ValidationError> validate(ConstructNode node)
node - The root node.@Stability(value=Stable) public void addDependency(IDependable... dependencies)
@Stability(value=Stable) public void addError(String message)
message - The error message.@Stability(value=Stable) public void addInfo(String message)
message - The info message.@Stability(value=Stable) public void addMetadata(String type, @Nullable Object data, @Nullable Object from)
type - a string denoting the type of metadata.data - the value of the metadata (can be a Token).from - a function under which to restrict the metadata entry's stack trace (defaults to this.addMetadata).@Stability(value=Stable) public void addMetadata(String type, @Nullable Object data)
type - a string denoting the type of metadata.data - the value of the metadata (can be a Token).@Stability(value=Stable) public void addReference(IResolvable... refs)
@Stability(value=Stable) public void addWarning(String message)
message - The warning message.@Stability(value=Stable) public void applyAspect(IAspect aspect)
@Stability(value=Stable) public List<IConstruct> findAll(@Nullable ConstructOrder order)
@Stability(value=Stable) public List<IConstruct> findAll()
@Stability(value=Stable) public IConstruct findChild(String id)
id - Identifier of direct child.@Stability(value=Stable) public void setContext(String key, @Nullable Object value)
key - The context key.value - The context value.@Stability(value=Stable) @Nullable public IConstruct tryFindChild(String id)
id - Identifier of direct child.@Stability(value=Stable) @Nullable public Object tryGetContext(String key)
key - The context key.@Stability(value=Stable) public List<IConstruct> getChildren()
@Stability(value=Stable) public List<Dependency> getDependencies()
@Stability(value=Stable) public String getId()
@Stability(value=Stable) public Boolean getLocked()
@Stability(value=Stable) public List<software.amazon.awscdk.cxapi.MetadataEntry> getMetadata()
@Stability(value=Stable) public String getPath()
@Stability(value=Stable) public List<OutgoingReference> getReferences()
@Stability(value=Stable) public IConstruct getRoot()
@Stability(value=Stable) public List<IConstruct> getScopes()
@Stability(value=Stable) public String getUniqueId()
@Stability(value=Stable) @Nullable public IConstruct getScope()
@Stability(value=Stable) @Nullable public IConstruct getDefaultChild()
@Stability(value=Stable) public void setDefaultChild(@Nullable IConstruct value)
Copyright © 2019. All rights reserved.