Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/constructs
/ functions
Functions
56 in github.com/aws/constructs
⨍
Functions
56
◇
Types & classes
31
↓ 5 callers
Method
addValidation
* Adds a validation to this construct. * * When `node.validate()` is called, the `validate()` method will be called on * all validations and
src/construct.ts:454
↓ 4 callers
Method
of
* Returns the node associated with a construct. * @param construct the construct * * @deprecated use `construct.node` instead
src/construct.ts:46
↓ 3 callers
Method
add
* Add a construct to the dependency roots
src/dependency.ts:46
↓ 3 callers
Method
tryFindChild
* Return a direct child by id, or undefined * * @param id Identifier of direct child * @returns the child if found, or undefined
src/construct.ts:157
↓ 3 callers
Method
validate
* Validate the current construct. * * This method can be implemented by derived constructs in order to perform * validation logic. It is call
src/construct.ts:625
↓ 2 callers
Method
findAll
* Return this construct and all of its children in the given order
src/construct.ts:223
↓ 2 callers
Method
removeDependency
* Remove an ordering dependency on a Dependenable (a construct or set of constructs) * * This removes any dependency added using `node.addDepend
src/construct.ts:408
↓ 2 callers
Function
sanitizeId
* Return a sanitized version of an arbitrary string, so it can be used as an ID
src/construct.ts:648
↓ 2 callers
Method
setContext
* This can be used to set contextual values. * Context must be set before any children are added, since children may consult context info during co
src/construct.ts:250
↓ 2 callers
Method
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 cal
src/construct.ts:28
↓ 1 callers
Method
addChild
* Adds a child construct to this node. * * @param child The child construct * @param childName The type name of the child construct. * @re
src/construct.ts:512
↓ 1 callers
Method
addDependency
* Add an ordering dependency on a Dependable (a construct or set of constructs) * * It is up to the target document language to decide what an o
src/construct.ts:393
↓ 1 callers
Method
addMetadata
* Adds a metadata entry to this construct. * Entries are arbitrary values and will also include a stack trace to allow tracing back to * the cod
src/construct.ts:332
↓ 1 callers
Function
addressOf
(components: string[])
src/private/node-addr.ts:25
↓ 1 callers
Method
applyTo
* Applies the mixin functionality to the target construct.
src/mixin.ts:16
↓ 1 callers
Function
captureStackTrace
(below?: Function)
src/private/stack-trace.ts:2
↓ 1 callers
Function
createTree
(context?: any)
test/construct.test.ts:737
↓ 1 callers
Function
exists
(key: string)
test/construct.test.ts:371
↓ 1 callers
Method
findChild
* Return a direct child by id * * Throws an error if the child is not found. * * @param id Identifier of direct child * @returns Child
src/construct.ts:169
↓ 1 callers
Method
getAllContext
* Retrieves the all context of a node from tree context. * * Context is usually initialized at the root, but can be overridden at any point in t
src/construct.ts:289
↓ 1 callers
Method
getContext
* Retrieves a value from tree context if present. Otherwise, would throw an error. * * Context is usually initialized at the root, but can be ov
src/construct.ts:269
↓ 1 callers
Method
isConstruct
* Checks if `x` is a construct. * * Use this method instead of `instanceof` to properly detect `Construct` * instances, even when the constru
src/construct.ts:564
↓ 1 callers
Method
lock
* Locks this construct from allowing more children to be added. After this * call, no more children can be added to this construct or to any childr
src/construct.ts:478
↓ 1 callers
Method
supports
* Determines whether this mixin can be applied to the given construct.
src/mixin.ts:11
↓ 1 callers
Method
toString
* Returns a string representation of this construct.
src/construct.ts:608
↓ 1 callers
Method
tryGetContext
* Retrieves a value from tree context. * * Context is usually initialized at the root, but can be overridden at any point in the tree. * *
src/construct.ts:305
↓ 1 callers
Method
tryRemoveChild
* Remove the child with the given name, if present. * * @returns Whether a child with the given name was deleted.
src/construct.ts:440
↓ 1 callers
Function
validateTree
(root: Construct)
test/construct.test.ts:431
Method
addr
* An opaque, deterministic address for this construct, derived from its path. * * The address is a 42 character string: the prefix "c8" followed
src/construct.ts:143
Method
children
* All direct children of this construct.
src/construct.ts:216
Method
constructor
()
test/util.ts:4
Method
constructor
(scope: Construct, id: string)
test/construct.test.ts:393
Method
constructor
(scope: Construct, id: string)
test/construct.test.ts:401
Method
constructor
(scope: Construct, id: string)
test/construct.test.ts:409
Method
constructor
()
test/construct.test.ts:419
Method
constructor
(scope: Construct, id: string)
test/construct.test.ts:757
Method
constructor
(...deps: IDependable[])
src/dependency.ts:27
Method
constructor
(private readonly host: Construct, scope: IConstruct, id: string)
src/construct.ts:83
Method
constructor
* Creates a new construct node. * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be uni
src/construct.ts:581
Method
constructor
* Creates a new root construct node. * * @param id The scoped construct ID. Must be unique amongst siblings. If * the ID includes a path sepa
src/construct.ts:701
Method
defaultChild
* Returns the child construct that has the id `Default` or `Resource`. * This is usually the construct that provides the bulk of the underlying fun
src/construct.ts:185
Method
dependencies
* Constructs that this construct depends on directly * * This expands the sets of `Dependables` to the set of `Constructs` that they * repres
src/construct.ts:423
Function
dependencyRoots
()
test/construct.test.ts:639
Method
dependencyRoots
()
src/dependency.ts:31
Function
get
* Return the matching Dependable for the given class instance. * @deprecated use `of`
src/dependency.ts:98
Method
getTrace
()
src/construct.ts:338
Function
implement
* Turn any object into an IDependable.
src/dependency.ts:76
Method
locked
* Returns true if this construct or the scopes in which it is defined are * locked.
src/construct.ts:364
Method
metadata
* An immutable array of metadata objects associated with this construct. * This can be used, for example, to implement support for deprecation noti
src/construct.ts:316
Function
of
* Return the matching Dependable for the given class instance.
src/dependency.ts:86
Method
root
* Returns the root of the construct tree. * @returns The root of the construct tree.
src/construct.ts:356
Method
scopes
* All parent scopes of this construct. * * @returns a list of parent scopes. The last element in the list will always * be the current constr
src/construct.ts:110
Method
validate
* Validates this construct. * * Invokes the `validate()` method on all validations added through * `addValidation()`. * * @returns an a
src/construct.ts:470
Method
visit
(c: IConstruct)
src/construct.ts:228
Method
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 cal
src/construct.ts:493
Method
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 cal
src/construct.ts:601