# HandlerConfigProperty

The `HandlerConfig` property type specifies the configuration for the handler.

- Source: Generated at build time
- Type last changed: v2.193.0 · 30 Apr 2025

## Example

TypeScript:

```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 handlerConfigProperty: appsync.CfnChannelNamespace.HandlerConfigProperty = {
  behavior: 'behavior',
  integration: {
    dataSourceName: 'dataSourceName',

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

Python:

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

handler_config_property = appsync.CfnChannelNamespace.HandlerConfigProperty(
    behavior="behavior",
    integration=appsync.CfnChannelNamespace.IntegrationProperty(
        data_source_name="dataSourceName",

        # the properties below are optional
        lambda_config=appsync.CfnChannelNamespace.LambdaConfigProperty(
            invoke_type="invokeType"
        )
    )
)
```

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.services.appsync.*;

HandlerConfigProperty handlerConfigProperty = HandlerConfigProperty.builder()
        .behavior("behavior")
        .integration(IntegrationProperty.builder()
                .dataSourceName("dataSourceName")

                // the properties below are optional
                .lambdaConfig(LambdaConfigProperty.builder()
                        .invokeType("invokeType")
                        .build())
                .build())
        .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.AWS.AppSync;

var handlerConfigProperty = new HandlerConfigProperty {
    Behavior = "behavior",
    Integration = new IntegrationProperty {
        DataSourceName = "dataSourceName",

        // the properties below are optional
        LambdaConfig = new LambdaConfigProperty {
            InvokeType = "invokeType"
        }
    }
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

handlerConfigProperty := &HandlerConfigProperty{
	Behavior: jsii.String("behavior"),
	Integration: &IntegrationProperty{
		DataSourceName: jsii.String("dataSourceName"),

		// the properties below are optional
		LambdaConfig: &LambdaConfigProperty{
			InvokeType: jsii.String("invokeType"),
		},
	},
}
```

## Properties

- `behavior`: string (required) — The behavior for the handler.

- `integration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannelNamespace.IntegrationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnChannelNamespace.IntegrationProperty.html) (required) — The integration data source configuration for the handler.
