in src/construct.ts [60:72]
public constructor(private readonly host: Construct, scope: IConstruct, id: string) {
id = id ?? ''; // if undefined, convert to empty string
this.id = sanitizeId(id);
this.scope = scope;
if (scope && !this.id) {
throw new Error('Only root constructs may have an empty ID');
}
// add to parent scope
scope?.node.addChild(host, this.id);
}