Class Intrinsic
Token subclass that represents values intrinsic to the target document language.
Implements
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class Intrinsic : DeputyBase, IResolvable
Syntax (vb)
Public Class Intrinsic
Inherits DeputyBase
Implements IResolvable
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
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
});
Synopsis
Constructors
Intrinsic(By |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Intrinsic(Deputy |
Used by jsii to construct an instance of this class from DeputyProps |
Intrinsic(Object, IIntrinsic |
Properties
Creation |
The captured stack trace which represents the location in which this token was created. |
Methods
New |
Creates a throwable Error object that contains the token creation stack trace. |
Resolve(IResolve |
Produce the Token's value at resolution time. |
To |
Turn this Token into JSON. |
To |
Convert an instance of this Token to a string. |
Constructors
Intrinsic(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Intrinsic(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
Intrinsic(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Intrinsic(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Intrinsic(Object, IIntrinsicProps)
public Intrinsic(object value, IIntrinsicProps options = null)
Parameters
- value System.
Object - options IIntrinsic
Props
Properties
CreationStack
The captured stack trace which represents the location in which this token was created.
public virtual string[] CreationStack { get; }
Property Value
System.
Methods
NewError(String)
Creates a throwable Error object that contains the token creation stack trace.
protected virtual object NewError(string message)
Parameters
- message System.
String Error message.
Returns
System.
Resolve(IResolveContext)
Produce the Token's value at resolution time.
public virtual object Resolve(IResolveContext context)
Parameters
- context IResolve
Context
Returns
System.
ToJSON()
Turn this Token into JSON.
public virtual object ToJSON()
Returns
System.
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
System.
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.