interface BaseChannelNamespaceProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.BaseChannelNamespaceProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#BaseChannelNamespaceProps |
![]() | software.amazon.awscdk.services.appsync.BaseChannelNamespaceProps |
![]() | aws_cdk.aws_appsync.BaseChannelNamespaceProps |
![]() | aws-cdk-lib » aws_appsync » BaseChannelNamespaceProps |
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 { aws_appsync as appsync } from 'aws-cdk-lib';
declare const code: appsync.Code;
const baseChannelNamespaceProps: appsync.BaseChannelNamespaceProps = {
authorizationConfig: {
publishAuthModeTypes: [appsync.AppSyncAuthorizationType.API_KEY],
subscribeAuthModeTypes: [appsync.AppSyncAuthorizationType.API_KEY],
},
channelNamespaceName: 'channelNamespaceName',
code: code,
};
Properties
Name | Type | Description |
---|---|---|
authorization | Namespace | Authorization config for channel namespace. |
channel | string | the name of the channel namespace. |
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 name of the channel namespace.
code?
Type:
Code
(optional, default: no code is used)
The Event Handler code.