interface NamespaceAuthConfig
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AppSync.NamespaceAuthConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#NamespaceAuthConfig |
Java | software.amazon.awscdk.services.appsync.NamespaceAuthConfig |
Python | aws_cdk.aws_appsync.NamespaceAuthConfig |
TypeScript (source) | aws-cdk-lib » aws_appsync » NamespaceAuthConfig |
Authorization configuration for the Channel Namespace.
Example
declare const api: appsync.EventApi;
new appsync.ChannelNamespace(this, 'Namespace', {
api,
authorizationConfig: {
// Override publishing authorization to API Key
publishAuthModeTypes: [appsync.AppSyncAuthorizationType.API_KEY],
// Override subscribing authorization to Lambda
subscribeAuthModeTypes: [appsync.AppSyncAuthorizationType.LAMBDA],
},
});
Properties
| Name | Type | Description |
|---|---|---|
| publish | App[] | The publish auth modes for this Event Api. |
| subscribe | App[] | The subscribe auth modes for this Event Api. |
publishAuthModeTypes?
Type:
App[]
(optional, default: API Key authorization)
The publish auth modes for this Event Api.
subscribeAuthModeTypes?
Type:
App[]
(optional, default: API Key authorization)
The subscribe auth modes for this Event Api.

.NET
Go
Java
Python
TypeScript (