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 EvaluateCode operation. Evaluates the given code and returns the response. The code definition requirements depend on the specified runtime. For APPSYNC_JS runtimes, the code defines the request and response functions. The request function takes the incoming request after a GraphQL operation is parsed and converts it into a request configuration for the selected data source operation. The response function interprets responses from the data source and maps it to the shape of the GraphQL field output type.

Inheritance Hierarchy

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

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

Syntax

C#
public class EvaluateCodeRequest : AmazonAppSyncRequest
         IAmazonWebServiceRequest

The EvaluateCodeRequest type exposes the following members

Constructors

NameDescription
Public Method EvaluateCodeRequest()

Properties

NameTypeDescription
Public Property Code System.String

Gets and sets the property Code.

The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.

Public Property Context System.String

Gets and sets the property Context.

The map that holds all of the contextual information for your resolver invocation. A context is required for this action.

Public Property Function System.String

Gets and sets the property Function.

The function within the code to be evaluated. If provided, the valid values are request and response.

Public Property Runtime Amazon.AppSync.Model.AppSyncRuntime

Gets and sets the property Runtime.

The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.

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