# DialogCodeHookInvocationSettingProperty

Settings that specify the dialog code hook that is called by Amazon Lex at a step of the conversation.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
```

Python:

```python

```

Java:

```java

```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib

```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2

```

## Properties

- `enableCodeHookInvocation`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Indicates whether a Lambda function should be invoked for the dialog.

- `invocationLabel`: string — A label that indicates the dialog step from which the dialog code hook is happening.

- `isActive`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Determines whether a dialog code hook is used when the intent is activated.

- `postCodeHookSpecification`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.PostDialogCodeHookInvocationSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.PostDialogCodeHookInvocationSpecificationProperty.html) (required) — Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.
