Amazon AppSync Resolvers API

Manage field resolvers for GraphQL types

GitHub OpenAPI

Operations 6

POST /v1/apis/{apiId}/types/{typeName}/resolvers Create Resolver #
GET /v1/apis/{apiId}/types/{typeName}/resolvers List Resolvers #
DELETE /v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName} Delete Resolver #
GET /v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName} Get Resolver #
POST /v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName} Update Resolver #
GET /v1/apis/{apiId}/functions/{functionId}/resolvers List Resolvers By Function #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-appsync:amazon-appsync-resolvers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-appsync-resolvers-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS AppSync Resolvers API
  version: '2017-07-25'
  description: Generated from AWS's published Smithy model for AWS AppSync. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://appsync.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/apis/{apiId}/types/{typeName}/resolvers:
    post:
      operationId: CreateResolver
      summary: Create Resolver
      description: 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.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateResolverResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The ID for the GraphQL API for which the resolver is being created.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The name of the Type.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                fieldName:
                  type: string
                  description: The name of the field to attach the resolver to.
                dataSourceName:
                  type: string
                  description: The name of the data source for which the resolver is being created.
                requestMappingTemplate:
                  type: string
                  description: 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.
                responseMappingTemplate:
                  type: string
                  description: The mapping template to use for responses from the data source.
                kind:
                  type: string
                  enum:
                  - UNIT
                  - PIPELINE
                  description: '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.'
                pipelineConfig:
                  $ref: '#/components/schemas/PipelineConfig'
                syncConfig:
                  $ref: '#/components/schemas/SyncConfig'
                cachingConfig:
                  $ref: '#/components/schemas/CachingConfig'
                maxBatchSize:
                  type: integer
                  description: The maximum batching size for a resolver.
                runtime:
                  $ref: '#/components/schemas/AppSyncRuntime'
                code:
                  type: string
                  description: 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.
                metricsConfig:
                  type: string
                  enum:
                  - ENABLED
                  - DISABLED
                  description: 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.
              required:
              - fieldName
      tags:
      - Resolvers
    get:
      operationId: ListResolvers
      summary: List Resolvers
      description: Lists the resolvers for a given API and type.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResolversResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The type name.
      - name: nextToken
        in: query
        schema:
          type: string
        description: An identifier that was returned from the previous call to this operation, which you can use to return
          the next set of items in the list.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results that you want the request to return.
      tags:
      - Resolvers
  /v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}:
    delete:
      operationId: DeleteResolver
      summary: Delete Resolver
      description: Deletes a Resolver object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResolverResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The name of the resolver type.
      - name: fieldName
        in: path
        required: true
        schema:
          type: string
        description: The resolver field name.
      tags:
      - Resolvers
    get:
      operationId: GetResolver
      summary: Get Resolver
      description: Retrieves a Resolver object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetResolverResponse'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The resolver type name.
      - name: fieldName
        in: path
        required: true
        schema:
          type: string
        description: The resolver field name.
      tags:
      - Resolvers
    post:
      operationId: UpdateResolver
      summary: Update Resolver
      description: Updates a Resolver object.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateResolverResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConcurrentModificationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConcurrentModificationException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: typeName
        in: path
        required: true
        schema:
          type: string
        description: The new type name.
      - name: fieldName
        in: path
        required: true
        schema:
          type: string
        description: The new field name.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                dataSourceName:
                  type: string
                  description: The new data source name.
                requestMappingTemplate:
                  type: string
                  description: The new request mapping template. 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.
                responseMappingTemplate:
                  type: string
                  description: The new response mapping template.
                kind:
                  type: string
                  enum:
                  - UNIT
                  - PIPELINE
                  description: '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.'
                pipelineConfig:
                  $ref: '#/components/schemas/PipelineConfig'
                syncConfig:
                  $ref: '#/components/schemas/SyncConfig'
                cachingConfig:
                  $ref: '#/components/schemas/CachingConfig'
                maxBatchSize:
                  type: integer
                  description: The maximum batching size for a resolver.
                runtime:
                  $ref: '#/components/schemas/AppSyncRuntime'
                code:
                  type: string
                  description: 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.
                metricsConfig:
                  type: string
                  enum:
                  - ENABLED
                  - DISABLED
                  description: 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.
      tags:
      - Resolvers
  /v1/apis/{apiId}/functions/{functionId}/resolvers:
    get:
      operationId: ListResolversByFunction
      summary: List Resolvers By Function
      description: List the resolvers that are associated with a specific function.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResolversByFunctionResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: functionId
        in: path
        required: true
        schema:
          type: string
        description: The function ID.
      - name: nextToken
        in: query
        schema:
          type: string
        description: An identifier that was returned from the previous call to this operation, which you can use to return
          the next set of items in the list.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results that you want the request to return.
      tags:
      - Resolvers
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: appsync
  schemas:
    AppSyncRuntime:
      type: object
      properties:
        name:
          type: string
          enum:
          - APPSYNC_JS
          description: The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.
        runtimeVersion:
          type: string
          description: The version of the runtime to use. Currently, the only allowed version is 1.0.0.
      required:
      - name
      - runtimeVersion
    BadRequestDetail:
      type: object
      properties:
        codeErrors:
          type: array
          items:
            $ref: '#/components/schemas/CodeError'
          description: Contains the list of errors in the request.
    BadRequestException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CODE_ERROR
        detail:
          $ref: '#/components/schemas/BadRequestDetail'
    CachingConfig:
      type: object
      properties:
        ttl:
          type: integer
          description: The TTL in seconds for a resolver that has caching activated. Valid values are 1–3,600 seconds.
        cachingKeys:
          type: array
          items:
            type: string
          description: The caching keys for a resolver that has caching activated. Valid values are entries from the $context.arguments,
            $context.source, and $context.identity maps.
      required:
      - ttl
    CodeError:
      type: object
      properties:
        errorType:
          type: string
          description: 'The type of code error. Examples include, but aren''t limited to: LINT_ERROR, PARSER_ERROR.'
        value:
          type: string
          description: 'A user presentable error. Examples include, but aren''t limited to: Parsing error: Unterminated string
            literal.'
        location:
          $ref: '#/components/schemas/CodeErrorLocation'
    CodeErrorLocation:
      type: object
      properties:
        line:
          type: integer
          description: The line number in the code. Defaults to 0 if unknown.
        column:
          type: integer
          description: The column number in the code. Defaults to 0 if unknown.
        span:
          type: integer
          description: The span/length of the error. Defaults to -1 if unknown.
    ConcurrentModificationException:
      type: object
      properties:
        message:
          type: string
    CreateResolverResponse:
      type: object
      properties:
        resolver:
          $ref: '#/components/schemas/Resolver'
    DeleteResolverResponse:
      type: object
      properties: {}
    GetResolverResponse:
      type: object
      properties:
        resolver:
          $ref: '#/components/schemas/Resolver'
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
    LambdaConflictHandlerConfig:
      type: object
      properties:
        lambdaConflictHandlerArn:
          type: string
          description: The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
    ListResolversByFunctionResponse:
      type: object
      properties:
        resolvers:
          type: array
          items:
            $ref: '#/components/schemas/Resolver'
          description: The list of resolvers.
        nextToken:
          type: string
          description: An identifier that you can use to return the next set of items in the list.
    ListResolversResponse:
      type: object
      properties:
        resolvers:
          type: array
          items:
            $ref: '#/components/schemas/Resolver'
          description: The Resolver objects.
        nextToken:
          type: string
          description: An identifier to pass in the next request to this operation to return the next set of items in the
            list.
    NotFoundException:
      type: object
      properties:
        message:
          type: string
    PipelineConfig:
      type: object
      properties:
        functions:
          type: array
          items:
            type: string
          description: A list of Function objects.
    Resolver:
      type: object
      properties:
        typeName:
          type: string
          description: The resolver type name.
        fieldName:
          type: string
          description: The resolver field name.
        dataSourceName:
          type: string
          description: The resolver data source name.
        resolverArn:
          type: string
          description: The resolver Amazon Resource Name (ARN).
        requestMappingTemplate:
          type: string
          description: The request mapping template.
        responseMappingTemplate:
          type: string
          description: The response mapping template.
        kind:
          type: string
          enum:
          - UNIT
          - PIPELINE
          description: '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.'
        pipelineConfig:
          $ref: '#/components/schemas/PipelineConfig'
        syncConfig:
          $ref: '#/components/schemas/SyncConfig'
        cachingConfig:
          $ref: '#/components/schemas/CachingConfig'
        maxBatchSize:
          type: integer
          description: The maximum batching size for a resolver.
        runtime:
          $ref: '#/components/schemas/AppSyncRuntime'
        code:
          type: string
          description: 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.
        metricsConfig:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 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.
    SyncConfig:
      type: object
      properties:
        conflictHandler:
          type: string
          enum:
          - OPTIMISTIC_CONCURRENCY
          - LAMBDA
          - AUTOMERGE
          - NONE
          description: 'The Conflict Resolution strategy to perform in the event of a conflict. OPTIMISTIC_CONCURRENCY: Resolve
            conflicts by rejecting mutations when versions don''t match the latest version at the server. AUTOMERGE: Resolve
            conflicts with the Automerge conflict resolution strategy. LAMBDA: Resolve conflicts with an Lambda function supplied
            in the LambdaConflictHandlerConfig.'
        conflictDetection:
          type: string
          enum:
          - VERSION
          - NONE
          description: 'The Conflict Detection strategy to use. VERSION: Detect conflicts based on object versions for this
            resolver. NONE: Do not detect conflicts when invoking this resolver.'
        lambdaConflictHandlerConfig:
          $ref: '#/components/schemas/LambdaConflictHandlerConfig'
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
    UpdateResolverResponse:
      type: object
      properties:
        resolver:
          $ref: '#/components/schemas/Resolver'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/appsync/service/2017-07-25/appsync-2017-07-25.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)