Class NoneDataSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.appsync.BaseDataSource
software.amazon.awscdk.services.appsync.NoneDataSource
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:38.645Z")
@Stability(Stable)
public class NoneDataSource
extends BaseDataSource
An AppSync dummy datasource.
Example:
SchemaFile schema = SchemaFile.Builder.create().filePath("mySchemaFile").build();
GraphqlApi api = GraphqlApi.Builder.create(this, "api")
.name("myApi")
.definition(Definition.fromSchema(schema))
.enhancedMetricsConfig(EnhancedMetricsConfig.builder()
.dataSourceLevelMetricsBehavior(DataSourceLevelMetricsBehavior.PER_DATA_SOURCE_METRICS)
.operationLevelMetricsConfig(OperationLevelMetricsConfig.ENABLED)
.resolverLevelMetricsBehavior(ResolverLevelMetricsBehavior.PER_RESOLVER_METRICS)
.build())
.build();
NoneDataSource noneDS = api.addNoneDataSource("none", DataSourceOptions.builder()
.metricsConfig(DataSourceMetricsConfig.ENABLED)
.build());
noneDS.createResolver("noneResolver", BaseResolverProps.builder()
.typeName("Mutation")
.fieldName("addDemoMetricsConfig")
.metricsConfig(ResolverMetricsConfig.ENABLED)
.build());
-
Nested Class Summary
Nested ClassesNested 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$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNoneDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedNoneDataSource(software.amazon.jsii.JsiiObjectRef objRef) NoneDataSource(software.constructs.Construct scope, String id, NoneDataSourceProps props) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.appsync.BaseDataSource
createFunction, createResolver, getApi, getDs, getName, getServiceRole, setApi, setServiceRoleMethods inherited from class software.constructs.Construct
getNode, isConstruct, toString, withMethods 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
-
NoneDataSource
protected NoneDataSource(software.amazon.jsii.JsiiObjectRef objRef) -
NoneDataSource
protected NoneDataSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
NoneDataSource
@Stability(Stable) public NoneDataSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull NoneDataSourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-