Show / Hide Table of Contents

Class AppSyncBackedDataSource

Abstract AppSync datasource implementation.

Inheritance
object
AppSyncBaseDataSource
AppSyncBackedDataSource
AppSyncDynamoDbDataSource
AppSyncEventBridgeDataSource
AppSyncHttpDataSource
AppSyncLambdaDataSource
AppSyncOpenSearchDataSource
AppSyncRdsDataSource
Implements
IGrantable
Inherited Members
AppSyncBaseDataSource.Name
AppSyncBaseDataSource.Resource
AppSyncBaseDataSource.Api
AppSyncBaseDataSource.ServiceRole
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class AppSyncBackedDataSource : AppSyncBaseDataSource, IGrantable
Syntax (vb)
Public MustInherit Class AppSyncBackedDataSource Inherits AppSyncBaseDataSource Implements IGrantable
Remarks

Do not use directly but use subclasses for resource backed datasources

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

AppSyncBackedDataSource(Construct, string, IAppSyncBackedDataSourceProps, IAppSyncExtendedDataSourceProps)

Abstract AppSync datasource implementation.

Properties

GrantPrincipal

The principal of the data source to be IGrantable.

Constructors

AppSyncBackedDataSource(Construct, string, IAppSyncBackedDataSourceProps, IAppSyncExtendedDataSourceProps)

Abstract AppSync datasource implementation.

protected AppSyncBackedDataSource(Construct scope, string id, IAppSyncBackedDataSourceProps props, IAppSyncExtendedDataSourceProps extended)
Parameters
scope Construct
id string
props IAppSyncBackedDataSourceProps
extended IAppSyncExtendedDataSourceProps
Remarks

Do not use directly but use subclasses for resource backed datasources

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

GrantPrincipal

The principal of the data source to be IGrantable.

public virtual IPrincipal GrantPrincipal { get; }
Property Value

IPrincipal

Remarks

Do not use directly but use subclasses for resource backed datasources

ExampleMetadata: infused

Implements

IGrantable
Back to top Generated by DocFX