aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 763 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DetachedConstruct=void 0;var constructs_1=()=>{var tmp=require("constructs");return constructs_1=()=>tmp,tmp},errors_1=()=>{var tmp=require("../errors");return errors_1=()=>tmp,tmp};const CONSTRUCT_SYM=Symbol.for("constructs.Construct");class DetachedConstruct extends constructs_1().Construct{errorMessage;constructor(errorMessage){super(null,void 0),this.errorMessage=errorMessage,Object.defineProperty(this,"node",{get(){throw new(errors_1()).UnscopedValidationError(errorMessage)}}),Object.defineProperty(this,CONSTRUCT_SYM,{value:!1,enumerable:!1,writable:!1})}get env(){throw new(errors_1()).UnscopedValidationError(this.errorMessage)}}exports.DetachedConstruct=DetachedConstruct;