@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:00.945Z") @Stability(value=Experimental) public abstract class BaseDataSource extends Construct
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();
software.constructs.Construct.Buildersoftware.amazon.jsii.JsiiObject.InitializationModeIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
BaseDataSource(software.constructs.Construct scope,
String id,
BackedDataSourceProps props,
ExtendedDataSourceProps extended) |
protected |
BaseDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BaseDataSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
AppsyncFunction |
createFunction(BaseAppsyncFunctionProps props)
(experimental) creates a new appsync function for this datasource and API using the given properties.
|
Resolver |
createResolver(BaseResolverProps props)
(experimental) creates a new resolver for this datasource and API using the given properties.
|
protected IGraphqlApi |
getApi() |
CfnDataSource |
getDs()
(experimental) the underlying CFN data source resource.
|
String |
getName()
(experimental) the name of the data source.
|
protected IRole |
getServiceRole() |
protected void |
setApi(IGraphqlApi value) |
protected void |
setServiceRole(IRole value) |
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BaseDataSource(software.amazon.jsii.JsiiObjectRef objRef)
protected BaseDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected BaseDataSource(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
BackedDataSourceProps props,
@NotNull
ExtendedDataSourceProps extended)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.extended - This parameter is required.@Stability(value=Experimental) @NotNull public AppsyncFunction createFunction(@NotNull BaseAppsyncFunctionProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public Resolver createResolver(@NotNull BaseResolverProps props)
props - This parameter is required.@Stability(value=Experimental) @NotNull public CfnDataSource getDs()
@Stability(value=Experimental) @NotNull public String getName()
@Stability(value=Experimental) @NotNull protected IGraphqlApi getApi()
@Stability(value=Experimental)
protected void setApi(@NotNull
IGraphqlApi value)
@Stability(value=Experimental) @Nullable protected IRole getServiceRole()
@Stability(value=Experimental)
protected void setServiceRole(@Nullable
IRole value)
Copyright © 2022. All rights reserved.