> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Typescript: IResolveContext

> CDKTN Core API Reference for IResolveContext in Typescript.

* *Implemented By:* <a href="#cdktn.IResolveContext">IResolveContext</a>

Current resolution context for tokens.

## Methods <a name="Methods" id="Methods" />

| **Name**                                                                                      | **Description**                                                            |
| --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| <code><a href="#cdktn.IResolveContext.registerPostProcessor">registerPostProcessor</a></code> | Use this postprocessor after the entire token structure has been resolved. |
| <code><a href="#cdktn.IResolveContext.resolve">resolve</a></code>                             | Resolve an inner object.                                                   |

***

### `registerPostProcessor` <a name="registerPostProcessor" id="cdktn.IResolveContext.registerPostProcessor" />

```typescript theme={null}
public registerPostProcessor(postProcessor: IPostProcessor): void
```

Use this postprocessor after the entire token structure has been resolved.

#### `postProcessor`<sup>Required</sup> <a name="postProcessor" id="cdktn.IResolveContext.registerPostProcessor.parameter.postProcessor" />

* *Type:* <a href="#cdktn.IPostProcessor">IPostProcessor</a>

***

### `resolve` <a name="resolve" id="cdktn.IResolveContext.resolve" />

```typescript theme={null}
public resolve(x: any): any
```

Resolve an inner object.

#### `x`<sup>Required</sup> <a name="x" id="cdktn.IResolveContext.resolve.parameter.x" />

* *Type:* any

***

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                                   | **Type**                           | **Description**                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------ | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.IResolveContext.property.preparing">preparing</a></code>             | <code>boolean</code>               | True when we are still preparing, false if we're rendering the final output.                                                                                                                                                       |
| <code><a href="#cdktn.IResolveContext.property.scope">scope</a></code>                     | <code>constructs.IConstruct</code> | The scope from which resolution has been initiated.                                                                                                                                                                                |
| <code><a href="#cdktn.IResolveContext.property.ignoreEscapes">ignoreEscapes</a></code>     | <code>boolean</code>               | True when \$\{} should not be parsed, and treated as literals.                                                                                                                                                                     |
| <code><a href="#cdktn.IResolveContext.property.iteratorContext">iteratorContext</a></code> | <code>string</code>                | TerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key. |
| <code><a href="#cdktn.IResolveContext.property.suppressBraces">suppressBraces</a></code>   | <code>boolean</code>               | True when \$\{} should be ommitted (because already inside them), false otherwise.                                                                                                                                                 |
| <code><a href="#cdktn.IResolveContext.property.warnEscapes">warnEscapes</a></code>         | <code>boolean</code>               | True when \$\{} should not be included in the string to be resolved, outputs a warning.                                                                                                                                            |

***

### `preparing`<sup>Required</sup> <a name="preparing" id="cdktn.IResolveContext.property.preparing" />

```typescript theme={null}
public readonly preparing: boolean;
```

* *Type:* boolean

True when we are still preparing, false if we're rendering the final output.

***

### `scope`<sup>Required</sup> <a name="scope" id="cdktn.IResolveContext.property.scope" />

```typescript theme={null}
public readonly scope: IConstruct;
```

* *Type:* constructs.IConstruct

The scope from which resolution has been initiated.

***

### `ignoreEscapes`<sup>Optional</sup> <a name="ignoreEscapes" id="cdktn.IResolveContext.property.ignoreEscapes" />

```typescript theme={null}
public readonly ignoreEscapes: boolean;
```

* *Type:* boolean

True when \$\{} should not be parsed, and treated as literals.

***

### `iteratorContext`<sup>Optional</sup> <a name="iteratorContext" id="cdktn.IResolveContext.property.iteratorContext" />

```typescript theme={null}
public readonly iteratorContext: string;
```

* *Type:* string

TerraformIterators can be passed for block attributes and normal list attributes both require different handling when the iterable variable is accessed e.g. a dynamic block needs each.key while a for expression just needs key.

***

### `suppressBraces`<sup>Optional</sup> <a name="suppressBraces" id="cdktn.IResolveContext.property.suppressBraces" />

```typescript theme={null}
public readonly suppressBraces: boolean;
```

* *Type:* boolean

True when \$\{} should be ommitted (because already inside them), false otherwise.

***

### `warnEscapes`<sup>Optional</sup> <a name="warnEscapes" id="cdktn.IResolveContext.property.warnEscapes" />

```typescript theme={null}
public readonly warnEscapes: boolean;
```

* *Type:* boolean

True when \$\{} should not be included in the string to be resolved, outputs a warning.

Default: false

***
