Class Intrinsic
Token subclass that represents values intrinsic to the target document language.
public class Intrinsic : DeputyBase, IResolvable
- Inheritance
-
Intrinsic
- Implements
- Derived
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var value;
var intrinsic = new Intrinsic(value, new IntrinsicProps {
StackTrace = false
});
Remarks
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.
ExampleMetadata: fixture=_generated
Constructors
Intrinsic(object, IIntrinsicProps?)
public Intrinsic(object value, IIntrinsicProps? options = null)
Parameters
value
objectoptions
IIntrinsicProps
Properties
CreationStack
The captured stack trace which represents the location in which this token was created.
public virtual string[] CreationStack { get; }
Property Value
- string[]
Methods
NewError(string)
Creates a throwable Error object that contains the token creation stack trace.
protected virtual object NewError(string message)
Parameters
message
stringError message.
Returns
Resolve(IResolveContext)
Produce the Token's value at resolution time.
public virtual object Resolve(IResolveContext context)
Parameters
context
IResolveContext
Returns
ToJSON()
Turn this Token into JSON.
public virtual object ToJSON()
Returns
Remarks
Called automatically when JSON.stringify() is called on a Token.
ToString()
Convert an instance of this Token to a string.
public override string ToString()
Returns
Remarks
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.