Class BaseDataSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.appsync.BaseDataSource
- All Implemented Interfaces:
- IConstruct,- IDependable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
- Direct Known Subclasses:
- BackedDataSource,- NoneDataSource
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
           date="2023-06-19T16:30:49.368Z")
@Stability(Experimental)
public abstract class BaseDataSource
extends Construct
(experimental) Abstract AppSync datasource implementation.
 
Do not use directly but use subclasses for concrete datasources
Example:
 GraphqlApi api;
 MappingTemplate dummyRequest;
 MappingTemplate dummyResponse;
 ObjectType info = ObjectType.Builder.create("Info")
         .definition(Map.of(
                 "node", ResolvableField.Builder.create()
                         .returnType(GraphqlType.string())
                         .args(Map.of(
                                 "id", GraphqlType.string()))
                         .dataSource(api.addNoneDataSource("none"))
                         .requestMappingTemplate(dummyRequest)
                         .responseMappingTemplate(dummyResponse)
                         .build()))
         .build();
 - 
Nested Class SummaryNested classes/interfaces inherited from class software.constructs.Constructsoftware.constructs.Construct.BuilderNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$Default
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedBaseDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBaseDataSource(software.amazon.jsii.JsiiObjectRef objRef) protectedBaseDataSource(software.constructs.Construct scope, String id, BackedDataSourceProps props, ExtendedDataSourceProps extended) 
- 
Method SummaryModifier and TypeMethodDescription(experimental) creates a new appsync function for this datasource and API using the given properties.createResolver(BaseResolverProps props) (experimental) creates a new resolver for this datasource and API using the given properties.protected IGraphqlApigetApi()getDs()(experimental) the underlying CFN data source resource.getName()(experimental) the name of the data source.protected IRoleprotected voidsetApi(IGraphqlApi value) protected voidsetServiceRole(IRole value) Methods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.ConstructtoStringMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Constructor Details- 
BaseDataSourceprotected BaseDataSource(software.amazon.jsii.JsiiObjectRef objRef) 
- 
BaseDataSourceprotected BaseDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
BaseDataSource@Stability(Experimental) protected BaseDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BackedDataSourceProps props, @NotNull ExtendedDataSourceProps extended) - Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- props- This parameter is required.
- extended- This parameter is required.
 
 
- 
- 
Method Details- 
createFunction@Stability(Experimental) @NotNull public AppsyncFunction createFunction(@NotNull BaseAppsyncFunctionProps props) (experimental) creates a new appsync function for this datasource and API using the given properties.- Parameters:
- props- This parameter is required.
 
- 
createResolver(experimental) creates a new resolver for this datasource and API using the given properties.- Parameters:
- props- This parameter is required.
 
- 
getDs(experimental) the underlying CFN data source resource.
- 
getName(experimental) the name of the data source.
- 
getApi
- 
setApi
- 
getServiceRole
- 
setServiceRole
 
-