Interface HandlerConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HandlerConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:32.679Z")
@Stability(Stable)
public interface HandlerConfig
extends software.amazon.jsii.JsiiSerializable
Handler configuration construct for onPublish and onSubscribe.
Example:
EventApi api;
AppSyncDynamoDbDataSource ddbDataSource;
AppSyncEventBridgeDataSource ebDataSource;
// DynamoDB data source for publish handler
api.addChannelNamespace("ddb-eb-ns", ChannelNamespaceOptions.builder()
.code(Code.fromInline("/* event handler code here.*/"))
.publishHandlerConfig(HandlerConfig.builder()
.dataSource(ddbDataSource)
.build())
.subscribeHandlerConfig(HandlerConfig.builder()
.dataSource(ebDataSource)
.build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHandlerConfigstatic final classAn implementation forHandlerConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerConfig.Builderbuilder()default AppSyncBackedDataSourceThe Event Handler data source.default BooleanIf the Event Handler should invoke the data source directly.default LambdaInvokeTypeThe Lambda invocation type for direct integrations.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDataSource
The Event Handler data source.Default: - no data source is used
-
getDirect
If the Event Handler should invoke the data source directly.Default: - false
-
getLambdaInvokeType
The Lambda invocation type for direct integrations.Default: - LambdaInvokeType.REQUEST_RESPONSE
-
builder
- Returns:
- a
HandlerConfig.BuilderofHandlerConfig
-