UNPKG

@aws-cdk/core

Version:

AWS Cloud Development Kit Core Library

70 lines (69 loc) 2 kB
import { IResolvable, IResolveContext } from '../resolvable'; /** * (experimental) Customization properties for an Intrinsic token. * * @experimental */ export interface IntrinsicProps { /** * (experimental) Capture the stack trace of where this token is created. * * @default true * @experimental */ readonly stackTrace?: boolean; } /** * (experimental) Token subclass that represents values intrinsic to the target document language. * * WARNING: this class should not be externally exposed, but is currently visible * because of a limitation of jsii (https://github.com/aws/jsii/issues/524). * * This class will disappear in a future release and should not be used. * * @experimental */ export declare class Intrinsic implements IResolvable { /** * (experimental) The captured stack trace which represents the location in which this token was created. * * @experimental */ readonly creationStack: string[]; private readonly value; /** * @experimental */ constructor(value: any, options?: IntrinsicProps); /** * (experimental) Produce the Token's value at resolution time. * * @experimental */ resolve(_context: IResolveContext): any; /** * (experimental) Convert an instance of this Token to a string. * * This method will be called implicitly by language runtimes if the object * is embedded into a string. We treat it the same as an explicit * stringification. * * @experimental */ toString(): string; /** * (experimental) Turn this Token into JSON. * * Called automatically when JSON.stringify() is called on a Token. * * @experimental */ toJSON(): any; /** * (experimental) Creates a throwable Error object that contains the token creation stack trace. * * @param message Error message. * @experimental */ protected newError(message: string): any; }