Amazon Kendra · Arazzo Workflow

Amazon Kendra Resolve Index by Name and Query

Version 1.0.0

Confirm an index is active with DescribeIndex, then run a search query against it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Artificial IntelligenceAmazon Web ServicesEnterprise SearchKnowledge ManagementMachine LearningNatural-LanguageSearchArazzoWorkflows

Provider

amazon-kendra

Workflows

resolve-index-and-query
Confirm an index is ACTIVE, then query it.
Confirms the supplied index is ACTIVE with DescribeIndex, and runs a search query against it.
2 steps inputs: indexId, pageSize, queryText outputs: indexId, queryId, resultItems
1
confirmIndexActive
Confirm the index is ACTIVE before sending query traffic, so queries are not issued against an index that is still building or failed.
2
query
Run the search query against the active index and return the ranked result items.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Kendra Resolve Index by Name and Query
  summary: Confirm an index is active with DescribeIndex, then run a search query against it.
  description: >-
    Confirms with DescribeIndex that the supplied index is ACTIVE before issuing
    traffic, and then runs a Query against it. The catalog's current Kendra
    descriptions do not declare ListIndexes, so the caller supplies the index id
    rather than resolving it from a name. Each step inlines its request,
    including the AWS JSON protocol X-Amz-Target header, so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: indexesApi
  url: ../openapi/amazon-kendra-indexes-api-openapi.yml
  type: openapi
- name: queriesApi
  url: ../openapi/amazon-kendra-queries-api-openapi.yml
  type: openapi
workflows:
- workflowId: resolve-index-and-query
  summary: Confirm an index is ACTIVE, then query it.
  description: >-
    Confirms the supplied index is ACTIVE with DescribeIndex, and runs a search
    query against it.
  inputs:
    type: object
    required:
    - indexId
    - queryText
    properties:
      indexId:
        type: string
      queryText:
        type: string
      pageSize:
        type: integer
  steps:
  - stepId: confirmIndexActive
    description: >-
      Confirm the index is ACTIVE before sending query traffic, so queries are
      not issued against an index that is still building or failed.
    operationId: $sourceDescriptions.indexesApi.DescribeIndex
    parameters:
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.DescribeIndex
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        Id: $inputs.indexId
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/Status == 'ACTIVE'
    outputs:
      indexStatus: $response.body#/Status
  - stepId: query
    description: >-
      Run the search query against the active index and return the ranked
      result items.
    operationId: $sourceDescriptions.queriesApi.Query
    parameters:
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.Query
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        IndexId: $inputs.indexId
        QueryText: $inputs.queryText
        PageSize: $inputs.pageSize
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      queryId: $response.body#/QueryId
      resultItems: $response.body#/ResultItems
      totalResults: $response.body#/TotalNumberOfResults
  outputs:
    indexId: $inputs.indexId
    queryId: $steps.query.outputs.queryId
    resultItems: $steps.query.outputs.resultItems

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/amazon-kendra-resolve-index-and-query-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?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.