# Intrinsic

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.

Extends: Intrinsic
Implements: IResolvable
Superclass of: CfnDynamicReference, Reference, SecretValue

- Source: [`core/lib/private/intrinsic.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/private/intrinsic.ts#L37)
- Type last changed: v2.55.0 · 14 Dec 2022

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';

declare const value: any;
const intrinsic = new cdk.Intrinsic(value, /* all optional props */ {
  stackTrace: false,
  typeHint: cdk.ResolutionTypeHint.STRING,
});
```

## Initializer

```ts
new Intrinsic(value: any, options?: IntrinsicProps)
```

## Properties

- `creationStack`: string[] — The captured stack trace which represents the location in which this token was created.

- `typeHint`: [ResolutionTypeHint](/cdk/api/v2/docs/aws-cdk-lib.ResolutionTypeHint.html) — Type that the Intrinsic is expected to evaluate to.

## Methods

- `resolve(_context: IResolveContext): any` — Produce the Token's value at resolution time.

- `toJSON(): any` — Turn this Token into JSON.

  Called automatically when JSON.stringify() is called on a Token.

- `toString(): string` — 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.

- `toStringList(): string[]` — Convert an instance of this Token to a string list.

  This method will be called implicitly by language runtimes if the object
  is embedded into a list. We treat it the same as an explicit
  stringification.
