ResolverArgs class

The set of arguments for Resolver. The set of arguments for Resolver.

Constructors

ResolverArgs({required Input<String> apiId, Input<ResolverCachingConfig?>? cachingConfig, Input<String?>? code, Input<String?>? dataSource, required 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, required Input<String> type})
Creates a new ResolverArgs. apiId API ID for the GraphQL API. 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.
const
ResolverArgs.fromMap(Map<String, dynamic> map)
factory

Properties

apiId → Input<String>
API ID for the GraphQL API.
final
cachingConfig → Input<ResolverCachingConfig?>?
Caching Config. See Caching Config.
final
code → Input<String?>?
Function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
final
dataSource → Input<String?>?
Data source name.
final
field → Input<String>
Field name from the schema defined in the GraphQL API.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → Input<String?>?
Resolver type. Valid values are UNIT and PIPELINE.
final
maxBatchSize → Input<int?>?
Maximum batching size for a resolver. Valid values are between 0 and 2000.
final
pipelineConfig → Input<ResolverPipelineConfig?>?
Caching configuration for the resolver. See Pipeline Config.
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
requestTemplate → Input<String?>?
Request mapping template for UNIT resolver or 'before mapping template' for PIPELINE resolver. Required for non-Lambda resolvers.
final
responseTemplate → Input<String?>?
Response mapping template for UNIT resolver or 'after mapping template' for PIPELINE resolver. Required for non-Lambda resolvers.
final
runtime → Input<ResolverRuntime?>?
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.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
syncConfig → Input<ResolverSyncConfig?>?
Sync configuration for a resolver. See Sync Config.
final
type → Input<String>
Type name from the schema defined in the GraphQL API.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited