IntegrationProperty Struct
The Integration property type specifies the integration data source configuration for the handler.
| Source | |
|---|---|
| Type last changed |
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 integrationProperty: appsync.CfnChannelNamespace.IntegrationProperty = {
dataSourceName: 'dataSourceName',
// the properties below are optional
lambdaConfig: {
invokeType: 'invokeType',
},
};
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
// 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();
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"
}
};
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
dataSourceNamestringdata_source_namestrdataSourceNameStringDataSourceNamestringDataSourceName*string required #The unique name of the data source that has been configured on the API.
lambdaConfigoptionalIResolvable | CfnChannelNamespace.lambda_configoptionaltyping.Union[IResolvable, LambdaConfigProperty]lambdaConfigoptionalIResolvableLambdaConfigoptionalIResolvableLambdaConfigoptionalinterface{} #The configuration for a Lambda data source.