HandlerConfigsProperty Struct
The HandlerConfigs property type specifies the configuration for the OnPublish and OnSubscribe handlers.
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',
},
},
},
};
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_configs_property = appsync.CfnChannelNamespace.HandlerConfigsProperty(
on_publish=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"
)
)
),
on_subscribe=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
// 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.*;
HandlerConfigsProperty handlerConfigsProperty = HandlerConfigsProperty.builder()
.onPublish(HandlerConfigProperty.builder()
.behavior("behavior")
.integration(IntegrationProperty.builder()
.dataSourceName("dataSourceName")
// the properties below are optional
.lambdaConfig(LambdaConfigProperty.builder()
.invokeType("invokeType")
.build())
.build())
.build())
.onSubscribe(HandlerConfigProperty.builder()
.behavior("behavior")
.integration(IntegrationProperty.builder()
.dataSourceName("dataSourceName")
// the properties below are optional
.lambdaConfig(LambdaConfigProperty.builder()
.invokeType("invokeType")
.build())
.build())
.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 handlerConfigsProperty = new HandlerConfigsProperty {
OnPublish = new HandlerConfigProperty {
Behavior = "behavior",
Integration = new IntegrationProperty {
DataSourceName = "dataSourceName",
// the properties below are optional
LambdaConfig = new LambdaConfigProperty {
InvokeType = "invokeType"
}
}
},
OnSubscribe = new HandlerConfigProperty {
Behavior = "behavior",
Integration = 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"
handlerConfigsProperty := &HandlerConfigsProperty{
OnPublish: &HandlerConfigProperty{
Behavior: jsii.String("behavior"),
Integration: &IntegrationProperty{
DataSourceName: jsii.String("dataSourceName"),
// the properties below are optional
LambdaConfig: &LambdaConfigProperty{
InvokeType: jsii.String("invokeType"),
},
},
},
OnSubscribe: &HandlerConfigProperty{
Behavior: jsii.String("behavior"),
Integration: &IntegrationProperty{
DataSourceName: jsii.String("dataSourceName"),
// the properties below are optional
LambdaConfig: &LambdaConfigProperty{
InvokeType: jsii.String("invokeType"),
},
},
},
}
Properties
onPublishoptionalIResolvable | CfnChannelNamespace.HandlerConfigPropertyon_publishoptionaltyping.Union[IResolvable, HandlerConfigProperty]onPublishoptionalIResolvableOnPublishoptionalIResolvableOnPublishoptionalinterface{}#The configuration for the `OnPublish` handler.
onSubscribeoptionalIResolvable | CfnChannelNamespace.HandlerConfigPropertyon_subscribeoptionaltyping.Union[IResolvable, HandlerConfigProperty]onSubscribeoptionalIResolvableOnSubscribeoptionalIResolvableOnSubscribeoptionalinterface{}#The configuration for the `OnSubscribe` handler.