Interface BaseChannelNamespaceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ChannelNamespaceProps
- All Known Implementing Classes:
BaseChannelNamespaceProps.Jsii$Proxy,ChannelNamespaceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:58.887Z")
@Stability(Stable)
public interface BaseChannelNamespaceProps
extends software.amazon.jsii.JsiiSerializable
the base properties for a channel namespace.
Example:
// 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.*;
AppSyncBackedDataSource appSyncBackedDataSource;
Code code;
BaseChannelNamespaceProps baseChannelNamespaceProps = BaseChannelNamespaceProps.builder()
.authorizationConfig(NamespaceAuthConfig.builder()
.publishAuthModeTypes(List.of(AppSyncAuthorizationType.API_KEY))
.subscribeAuthModeTypes(List.of(AppSyncAuthorizationType.API_KEY))
.build())
.channelNamespaceName("channelNamespaceName")
.code(code)
.publishHandlerConfig(HandlerConfig.builder()
.dataSource(appSyncBackedDataSource)
.direct(false)
.lambdaInvokeType(LambdaInvokeType.EVENT)
.build())
.subscribeHandlerConfig(HandlerConfig.builder()
.dataSource(appSyncBackedDataSource)
.direct(false)
.lambdaInvokeType(LambdaInvokeType.EVENT)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBaseChannelNamespacePropsstatic final classAn implementation forBaseChannelNamespaceProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NamespaceAuthConfigAuthorization config for channel namespace.default Stringthe name of the channel namespace.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 name of the channel namespace.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
BaseChannelNamespaceProps.BuilderofBaseChannelNamespaceProps
-