# HandlerConfigsProperty

The `HandlerConfigs` property type specifies the configuration for the `OnPublish` and `OnSubscribe` handlers.

- Source: Generated code
- Type last changed: v2.193.0 · 30 Apr 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const handlerConfigsProperty: appsync.CfnChannelNamespace.HandlerConfigsProperty = {
  onPublish: {
    behavior: 'behavior',
    integration: {
      dataSourceName: 'dataSourceName',

      // the properties below are optional
      lambdaConfig: {
        invokeType: 'invokeType',
      },
    },
  },
  onSubscribe: {
    behavior: 'behavior',
    integration: {
      dataSourceName: 'dataSourceName',

      // the properties below are optional
      lambdaConfig: {
        invokeType: 'invokeType',
      },
    },
  },
};
```

## Properties

- `onPublish`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannelNamespace.HandlerConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnChannelNamespace.HandlerConfigProperty.html) — The configuration for the `OnPublish` handler.

- `onSubscribe`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannelNamespace.HandlerConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnChannelNamespace.HandlerConfigProperty.html) — The configuration for the `OnSubscribe` handler.
