"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Intrinsic=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var errors_1=()=>{var tmp=require("../errors");return errors_1=()=>tmp,tmp},token_1=()=>{var tmp=require("../token");return token_1=()=>tmp,tmp},type_hints_1=()=>{var tmp=require("../type-hints");return type_hints_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("./literal-string");return literal_string_1=()=>tmp,tmp};class Intrinsic{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.Intrinsic",version:"2.256.1"};creationStack;typeHint;value;constructor(value,options={}){try{jsiiDeprecationWarnings().aws_cdk_lib_IntrinsicProps(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Intrinsic),error}if(isFunction(value))throw new(errors_1()).UnscopedValidationError((0,literal_string_1().lit)`MustBeArgumentIntrinsicPlain`,`Argument to Intrinsic must be a plain value object, got ${value}`);this.value=value,this.typeHint=options.typeHint??type_hints_1().ResolutionTypeHint.STRING}resolve(_context){try{jsiiDeprecationWarnings().aws_cdk_lib_IResolveContext(_context)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.resolve),error}return this.value}toString(){return token_1().Token.asString(this)}toStringList(){return token_1().Token.asList(this)}toJSON(){return"<unresolved-token>"}newError(message){return new Error(`${message}
Token created:
    at ${this.creationStack.join(`
    at `)}
Error thrown:`)}}exports.Intrinsic=Intrinsic;function isFunction(x){return typeof x=="function"}Intrinsic.prototype.creationStack=["Token stack traces are no longer captured"];
