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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Intrinsic(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Intrinsic(Object, IIntrinsicProps) |
Properties
CreationStack | The captured stack trace which represents the location in which this token was created. |
Methods
NewError(String) | Creates a throwable Error object that contains the token creation stack trace. |
Resolve(IResolveContext) | Produce the Token's value at resolution time. |
ToJSON() | Turn this Token into JSON. |
ToString() | 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.ByRefValue
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.DeputyBase.DeputyProps
The deputy props
Intrinsic(Object, IIntrinsicProps)
public Intrinsic(object value, IIntrinsicProps options = null)
Parameters
- value System.Object
- options IIntrinsicProps
Properties
CreationStack
The captured stack trace which represents the location in which this token was created.
public virtual string[] CreationStack { get; }
Property Value
System.String[]
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.Object
Resolve(IResolveContext)
Produce the Token's value at resolution time.
public virtual object Resolve(IResolveContext context)
Parameters
- context IResolveContext
Returns
System.Object
ToJSON()
Turn this Token into JSON.
public virtual object ToJSON()
Returns
System.Object
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.String
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.