Class AppSyncEventBridgeDataSource
An AppSync datasource backed by EventBridge.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AppSyncEventBridgeDataSource : AppSyncBackedDataSource, IGrantable
Syntax (vb)
Public Class AppSyncEventBridgeDataSource Inherits AppSyncBackedDataSource Implements IGrantable
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Events;
var api = new EventApi(this, "EventApiEventBridge", new EventApiProps {
ApiName = "EventBridgeEventApi"
});
var eventBus = new EventBus(this, "test-bus");
var dataSource = api.AddEventBridgeDataSource("eventbridgeds", eventBus);
Synopsis
Constructors
AppSyncEventBridgeDataSource(Construct, string, IAppSyncEventBridgeDataSourceProps) | An AppSync datasource backed by EventBridge. |
Constructors
AppSyncEventBridgeDataSource(Construct, string, IAppSyncEventBridgeDataSourceProps)
An AppSync datasource backed by EventBridge.
public AppSyncEventBridgeDataSource(Construct scope, string id, IAppSyncEventBridgeDataSourceProps props)
Parameters
- scope Construct
- id string
- props IAppSyncEventBridgeDataSourceProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Events;
var api = new EventApi(this, "EventApiEventBridge", new EventApiProps {
ApiName = "EventBridgeEventApi"
});
var eventBus = new EventBus(this, "test-bus");
var dataSource = api.AddEventBridgeDataSource("eventbridgeds", eventBus);