Interface ChannelNamespaceOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ChannelNamespaceOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:28.950Z")
@Stability(Stable)
public interface ChannelNamespaceOptions
extends software.amazon.jsii.JsiiSerializable
Option configuration for channel namespace.
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 forChannelNamespaceOptionsstatic final classAn implementation forChannelNamespaceOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NamespaceAuthConfigAuthorization config for channel namespace.default StringThe Channel Namespace name.default CodegetCode()The Event Handler code.default HandlerConfigonPublish handler config.default HandlerConfigonSubscribe handler config.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizationConfig
Authorization config for channel namespace.Default: - defaults to Event API default auth config
-
getChannelNamespaceName
The Channel Namespace name.Default: - the construct's id will be used
-
getCode
The Event Handler code.Default: - no code is used
-
getPublishHandlerConfig
onPublish handler config.Default: - no handler config
-
getSubscribeHandlerConfig
onSubscribe handler config.Default: - no handler config
-
builder
- Returns:
- a
ChannelNamespaceOptions.BuilderofChannelNamespaceOptions
-