interface ChannelNamespaceOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.ChannelNamespaceOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#ChannelNamespaceOptions |
![]() | software.amazon.awscdk.services.appsync.ChannelNamespaceOptions |
![]() | aws_cdk.aws_appsync.ChannelNamespaceOptions |
![]() | aws-cdk-lib » aws_appsync » ChannelNamespaceOptions |
Option configuration for channel namespace.
Example
declare const api: appsync.EventApi;
// create a channel namespace
new appsync.ChannelNamespace(this, 'Namespace', {
api,
});
// You can also create a namespace through the addChannelNamespace method
api.addChannelNamespace('AnotherNameSpace', {});
Properties
Name | Type | Description |
---|---|---|
authorization | Namespace | Authorization config for channel namespace. |
channel | string | The Channel Namespace name. |
code? | Code | The Event Handler code. |
authorizationConfig?
Type:
Namespace
(optional, default: defaults to Event API default auth config)
Authorization config for channel namespace.
channelNamespaceName?
Type:
string
(optional, default: the construct's id will be used)
The Channel Namespace name.
code?
Type:
Code
(optional, default: no code is used)
The Event Handler code.