aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 1.48 kB
JavaScript
var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertyInjectors=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var prop_injectors_helpers_1=()=>{var tmp=require("./prop-injectors-helpers");return prop_injectors_helpers_1=()=>tmp,tmp};class PropertyInjectors{static hasPropertyInjectors(x){return x!==null&&typeof x=="object"&&prop_injectors_helpers_1().PROPERTY_INJECTORS_SYMBOL in x}static of(scope){let propInjectors=scope[prop_injectors_helpers_1().PROPERTY_INJECTORS_SYMBOL];return propInjectors||(propInjectors=new PropertyInjectors(scope),Object.defineProperty(scope,prop_injectors_helpers_1().PROPERTY_INJECTORS_SYMBOL,{value:propInjectors,configurable:!1,enumerable:!1})),propInjectors}constructor(scope){this._injectors=new Map,this.scope=scope}add(...propsInjectors){try{jsiiDeprecationWarnings().aws_cdk_lib_IPropertyInjector(propsInjectors)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.add),error}for(const pi of propsInjectors)this._injectors.set(pi.constructUniqueId,pi)}for(uniqueId){return this._injectors.get(uniqueId)}supportedClasses(){return Array.from(this._injectors.keys())}}exports.PropertyInjectors=PropertyInjectors,_a=JSII_RTTI_SYMBOL_1,PropertyInjectors[_a]={fqn:"aws-cdk-lib.PropertyInjectors",version:"2.202.0"};
;