Class AppSyncBackedDataSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.appsync.AppSyncBaseDataSource
software.amazon.awscdk.services.appsync.AppSyncBackedDataSource
- All Implemented Interfaces:
IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
AppSyncDynamoDbDataSource,AppSyncEventBridgeDataSource,AppSyncHttpDataSource,AppSyncLambdaDataSource,AppSyncOpenSearchDataSource,AppSyncRdsDataSource
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:34.455Z")
@Stability(Stable)
public abstract class AppSyncBackedDataSource
extends AppSyncBaseDataSource
implements IGrantable
Abstract AppSync datasource implementation.
Do not use directly but use subclasses for resource backed datasources
Example:
EventApi api;
AppSyncDynamoDbDataSource ddbDataSource;
AppSyncEventBridgeDataSource ebDataSource;
// DynamoDB data source for publish handler
api.addChannelNamespace("ddb-eb-ns", ChannelNamespaceOptions.builder()
.code(Code.fromInline("/* event handler code here.*/"))
.publishHandlerConfig(HandlerConfig.builder()
.dataSource(ddbDataSource)
.build())
.subscribeHandlerConfig(HandlerConfig.builder()
.dataSource(ebDataSource)
.build())
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAppSyncBackedDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedAppSyncBackedDataSource(software.amazon.jsii.JsiiObjectRef objRef) protectedAppSyncBackedDataSource(software.constructs.Construct scope, String id, AppSyncBackedDataSourceProps props, AppSyncExtendedDataSourceProps extended) -
Method Summary
Modifier and TypeMethodDescriptionThe principal of the data source to be IGrantable.Methods inherited from class software.amazon.awscdk.services.appsync.AppSyncBaseDataSource
getApi, getName, getResource, getServiceRole, setApi, setServiceRoleMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AppSyncBackedDataSource
protected AppSyncBackedDataSource(software.amazon.jsii.JsiiObjectRef objRef) -
AppSyncBackedDataSource
protected AppSyncBackedDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AppSyncBackedDataSource
@Stability(Stable) protected AppSyncBackedDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull AppSyncBackedDataSourceProps props, @NotNull AppSyncExtendedDataSourceProps extended) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.extended- This parameter is required.
-
-
Method Details
-
getGrantPrincipal
The principal of the data source to be IGrantable.- Specified by:
getGrantPrincipalin interfaceIGrantable
-