Class BaseChannelNamespaceProps
the base properties for a channel namespace.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BaseChannelNamespaceProps : IBaseChannelNamespaceProps
Syntax (vb)
Public Class BaseChannelNamespaceProps Implements IBaseChannelNamespaceProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
AppSyncBackedDataSource appSyncBackedDataSource;
Code code;
var baseChannelNamespaceProps = new BaseChannelNamespaceProps {
AuthorizationConfig = new NamespaceAuthConfig {
PublishAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY },
SubscribeAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY }
},
ChannelNamespaceName = "channelNamespaceName",
Code = code,
PublishHandlerConfig = new HandlerConfig {
DataSource = appSyncBackedDataSource,
Direct = false,
LambdaInvokeType = LambdaInvokeType.EVENT
},
SubscribeHandlerConfig = new HandlerConfig {
DataSource = appSyncBackedDataSource,
Direct = false,
LambdaInvokeType = LambdaInvokeType.EVENT
}
};
Synopsis
Constructors
BaseChannelNamespaceProps() | the base properties for a channel namespace. |
Properties
AuthorizationConfig | Authorization config for channel namespace. |
ChannelNamespaceName | the name of the channel namespace. |
Code | The Event Handler code. |
PublishHandlerConfig | onPublish handler config. |
SubscribeHandlerConfig | onSubscribe handler config. |
Constructors
BaseChannelNamespaceProps()
the base properties for a channel namespace.
public BaseChannelNamespaceProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
AppSyncBackedDataSource appSyncBackedDataSource;
Code code;
var baseChannelNamespaceProps = new BaseChannelNamespaceProps {
AuthorizationConfig = new NamespaceAuthConfig {
PublishAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY },
SubscribeAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY }
},
ChannelNamespaceName = "channelNamespaceName",
Code = code,
PublishHandlerConfig = new HandlerConfig {
DataSource = appSyncBackedDataSource,
Direct = false,
LambdaInvokeType = LambdaInvokeType.EVENT
},
SubscribeHandlerConfig = new HandlerConfig {
DataSource = appSyncBackedDataSource,
Direct = false,
LambdaInvokeType = LambdaInvokeType.EVENT
}
};
Properties
AuthorizationConfig
Authorization config for channel namespace.
public INamespaceAuthConfig? AuthorizationConfig { get; set; }
Property Value
Remarks
Default: - defaults to Event API default auth config
ChannelNamespaceName
the name of the channel namespace.
public string? ChannelNamespaceName { get; set; }
Property Value
Remarks
Default: - the construct's id will be used
Code
The Event Handler code.
public Code? Code { get; set; }
Property Value
Remarks
Default: - no code is used
PublishHandlerConfig
onPublish handler config.
public IHandlerConfig? PublishHandlerConfig { get; set; }
Property Value
Remarks
Default: - no handler config
SubscribeHandlerConfig
onSubscribe handler config.
public IHandlerConfig? SubscribeHandlerConfig { get; set; }
Property Value
Remarks
Default: - no handler config