# ResolveOptions

Options to the resolve() operation.

NOT the same as the ResolveContext; ResolveContext is exposed to Token
implementors and resolution hooks, whereas this struct is just to bundle
a number of things that would otherwise be arguments to resolve() in a
readable way.

- Source: [`core/lib/token.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/token.ts#L296)

## 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';
import * as constructs from 'constructs';

declare const construct: constructs.Construct;
declare const tokenResolver: cdk.ITokenResolver;
const resolveOptions: cdk.ResolveOptions = {
  resolver: tokenResolver,
  scope: construct,

  // the properties below are optional
  preparing: false,
  removeEmpty: false,
};
```

## Properties

- `preparing`: boolean = false — Whether the resolution is being executed during the prepare phase or not.

- `removeEmpty`: boolean = true — Whether to remove undefined elements from arrays and objects when resolving.

- `resolver`: [ITokenResolver](/cdk/api/v2/docs/aws-cdk-lib.ITokenResolver.html) (required) — The resolver to apply to any resolvable tokens found.

- `scope`: [IConstruct](/cdk/api/v2/docs/constructs.IConstruct.html) (required) — The scope from which resolution is performed.
