# ResolveChangeContextOptions

Options that can be changed while doing a recursive resolve.

Used as argument in: [IResolveContext.resolve](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolveContext.html#resolve)

- Source: [`core/lib/resolvable.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/resolvable.ts#L42)
- Type last changed: v2.81.0 · 25 May 2023

## Example

TypeScript:

```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';
const resolveChangeContextOptions: cdk.ResolveChangeContextOptions = {
  allowIntrinsicKeys: false,
  removeEmpty: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

resolve_change_context_options = cdk.ResolveChangeContextOptions(
    allow_intrinsic_keys=False,
    remove_empty=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

ResolveChangeContextOptions resolveChangeContextOptions = ResolveChangeContextOptions.builder()
        .allowIntrinsicKeys(false)
        .removeEmpty(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var resolveChangeContextOptions = new ResolveChangeContextOptions {
    AllowIntrinsicKeys = false,
    RemoveEmpty = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

resolveChangeContextOptions := &ResolveChangeContextOptions{
	AllowIntrinsicKeys: jsii.Boolean(false),
	RemoveEmpty: jsii.Boolean(false),
}
```

## Properties

- `allowIntrinsicKeys`: boolean = Unchanged — Change the 'allowIntrinsicKeys' option.

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