MCPcopy Create free account
hub / github.com/aws/constructs / tryFindChild

Method tryFindChild

src/construct.ts:144–146  ·  view source on GitHub ↗

* Return a direct child by id, or undefined * * @param id Identifier of direct child * @returns the child if found, or undefined

(id: string)

Source from the content-addressed store, hash-verified

142 * @returns the child if found, or undefined
143 */
144 public tryFindChild(id: string): IConstruct | undefined {
145 return this._children?.[sanitizeId(id)];
146 }
147
148 /**
149 * Return a direct child by id

Callers 3

findChildMethod · 0.95
defaultChildMethod · 0.95
construct.test.tsFile · 0.80

Calls 1

sanitizeIdFunction · 0.85

Tested by

no test coverage detected