AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateResolver operation. Creates a Resolver object.

A resolver converts incoming requests into a format that a data source can understand, and converts the data source's responses into GraphQL.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AppSync.AmazonAppSyncRequest
      Amazon.AppSync.Model.CreateResolverRequest

Namespace: Amazon.AppSync.Model
Assembly: AWSSDK.AppSync.dll
Version: 3.x.y.z

Syntax

C#
public class CreateResolverRequest : AmazonAppSyncRequest
         IAmazonWebServiceRequest

The CreateResolverRequest type exposes the following members

Constructors

NameDescription
Public Method CreateResolverRequest()

Properties

NameTypeDescription
Public Property ApiId System.String

Gets and sets the property ApiId.

The ID for the GraphQL API for which the resolver is being created.

Public Property CachingConfig Amazon.AppSync.Model.CachingConfig

Gets and sets the property CachingConfig.

The caching configuration for the resolver.

Public Property Code System.String

Gets and sets the property Code.

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

Public Property DataSourceName System.String

Gets and sets the property DataSourceName.

The name of the data source for which the resolver is being created.

Public Property FieldName System.String

Gets and sets the property FieldName.

The name of the field to attach the resolver to.

Public Property Kind Amazon.AppSync.ResolverKind

Gets and sets the property Kind.

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.

  • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

Public Property MaxBatchSize System.Int32

Gets and sets the property MaxBatchSize.

The maximum batching size for a resolver.

Public Property MetricsConfig Amazon.AppSync.ResolverLevelMetricsConfig

Gets and sets the property MetricsConfig.

Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.

metricsConfig can be ENABLED or DISABLED.

Public Property PipelineConfig Amazon.AppSync.Model.PipelineConfig

Gets and sets the property PipelineConfig.

The PipelineConfig.

Public Property RequestMappingTemplate System.String

Gets and sets the property RequestMappingTemplate.

The mapping template to use for requests.

A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).

VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.

Public Property ResponseMappingTemplate System.String

Gets and sets the property ResponseMappingTemplate.

The mapping template to use for responses from the data source.

Public Property Runtime Amazon.AppSync.Model.AppSyncRuntime

Gets and sets the property Runtime.

Public Property SyncConfig Amazon.AppSync.Model.SyncConfig

Gets and sets the property SyncConfig.

The SyncConfig for a resolver attached to a versioned data source.

Public Property TypeName System.String

Gets and sets the property TypeName.

The name of the Type.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5