# IntegrationProperty

The `Integration` property type specifies the integration data source 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 integrationProperty: appsync.CfnChannelNamespace.IntegrationProperty = {
  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

integration_property = 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.*;

IntegrationProperty integrationProperty = IntegrationProperty.builder()
        .dataSourceName("dataSourceName")

        // the properties below are optional
        .lambdaConfig(LambdaConfigProperty.builder()
                .invokeType("invokeType")
                .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 integrationProperty = 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"

integrationProperty := &IntegrationProperty{
	DataSourceName: jsii.String("dataSourceName"),

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

## Properties

- `dataSourceName`: string (required) — The unique name of the data source that has been configured on the API.

- `lambdaConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannelNamespace.LambdaConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnChannelNamespace.LambdaConfigProperty.html) — The configuration for a Lambda data source.
