# FulfillmentCodeHookSettingProperty

Determines if a Lambda function should be invoked for a specific intent.

- 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

- `enabled`: 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 to fulfill a specific intent.

- `fulfillmentUpdatesSpecification`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.FulfillmentUpdatesSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.FulfillmentUpdatesSpecificationProperty.html) — Provides settings for update messages sent to the user for long-running Lambda fulfillment functions.

  Fulfillment updates can be used only with streaming conversations.

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

  When `active` is false, the code hook doesn't run.

- `postFulfillmentStatusSpecification`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBot.PostFulfillmentStatusSpecificationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lex.CfnBot.PostFulfillmentStatusSpecificationProperty.html) — Provides settings for messages sent to the user for after the Lambda fulfillment function completes.

  Post-fulfillment messages can be sent for both streaming and non-streaming conversations.
