Show / Hide Table of Contents

Class ChannelNamespaceOptions

Option configuration for channel namespace.

Inheritance
object
ChannelNamespaceOptions
Implements
IChannelNamespaceOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ChannelNamespaceOptions : IChannelNamespaceOptions
Syntax (vb)
Public Class ChannelNamespaceOptions Implements IChannelNamespaceOptions
Remarks

ExampleMetadata: infused

Examples
EventApi api;
            AppSyncDynamoDbDataSource ddbDataSource;
            AppSyncEventBridgeDataSource ebDataSource;


            // DynamoDB data source for publish handler
            api.AddChannelNamespace("ddb-eb-ns", new ChannelNamespaceOptions {
                Code = Code.FromInline("/* event handler code here.*/"),
                PublishHandlerConfig = new HandlerConfig {
                    DataSource = ddbDataSource
                },
                SubscribeHandlerConfig = new HandlerConfig {
                    DataSource = ebDataSource
                }
            });

Synopsis

Constructors

ChannelNamespaceOptions()

Option configuration for channel namespace.

Properties

AuthorizationConfig

Authorization config for channel namespace.

ChannelNamespaceName

The Channel Namespace name.

Code

The Event Handler code.

PublishHandlerConfig

onPublish handler config.

SubscribeHandlerConfig

onSubscribe handler config.

Constructors

ChannelNamespaceOptions()

Option configuration for channel namespace.

public ChannelNamespaceOptions()
Remarks

ExampleMetadata: infused

Examples
EventApi api;
            AppSyncDynamoDbDataSource ddbDataSource;
            AppSyncEventBridgeDataSource ebDataSource;


            // DynamoDB data source for publish handler
            api.AddChannelNamespace("ddb-eb-ns", new ChannelNamespaceOptions {
                Code = Code.FromInline("/* event handler code here.*/"),
                PublishHandlerConfig = new HandlerConfig {
                    DataSource = ddbDataSource
                },
                SubscribeHandlerConfig = new HandlerConfig {
                    DataSource = ebDataSource
                }
            });

Properties

AuthorizationConfig

Authorization config for channel namespace.

public INamespaceAuthConfig? AuthorizationConfig { get; set; }
Property Value

INamespaceAuthConfig

Remarks

Default: - defaults to Event API default auth config

ChannelNamespaceName

The Channel Namespace name.

public string? ChannelNamespaceName { get; set; }
Property Value

string

Remarks

Default: - the construct's id will be used

Code

The Event Handler code.

public Code? Code { get; set; }
Property Value

Code

Remarks

Default: - no code is used

PublishHandlerConfig

onPublish handler config.

public IHandlerConfig? PublishHandlerConfig { get; set; }
Property Value

IHandlerConfig

Remarks

Default: - no handler config

SubscribeHandlerConfig

onSubscribe handler config.

public IHandlerConfig? SubscribeHandlerConfig { get; set; }
Property Value

IHandlerConfig

Remarks

Default: - no handler config

Implements

IChannelNamespaceOptions
Back to top Generated by DocFX