ResolverState constructor
- Input<
String?> ? apiId, - Input<
String?> ? arn, - Input<
ResolverCachingConfig?> ? cachingConfig, - Input<
String?> ? code, - Input<
String?> ? dataSource, - Input<
String?> ? field, - Input<
String?> ? kind, - Input<
int?> ? maxBatchSize, - Input<
ResolverPipelineConfig?> ? pipelineConfig, - Input<
String?> ? region, - Input<
String?> ? requestTemplate, - Input<
String?> ? responseTemplate, - Input<
ResolverRuntime?> ? runtime, - Input<
ResolverSyncConfig?> ? syncConfig, - Input<
String?> ? type,
Creates a new ResolverState.
apiId API ID for the GraphQL API.
arn ARN
cachingConfig Caching Config. See Caching Config.
code Function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
dataSource Data source name.
field Field name from the schema defined in the GraphQL API.
kind Resolver type. Valid values are UNIT and PIPELINE.
maxBatchSize Maximum batching size for a resolver. Valid values are between 0 and 2000.
pipelineConfig Caching configuration for the resolver. See Pipeline Config.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
requestTemplate Request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers.
responseTemplate Response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers.
runtime Runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. See Runtime.
syncConfig Sync configuration for a resolver. See Sync Config.
type Type name from the schema defined in the GraphQL API.
Implementation
const ResolverState({
this.apiId,
this.arn,
this.cachingConfig,
this.code,
this.dataSource,
this.field,
this.kind,
this.maxBatchSize,
this.pipelineConfig,
this.region,
this.requestTemplate,
this.responseTemplate,
this.runtime,
this.syncConfig,
this.type,
});