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',
},
},
},
};
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.