Amazon Kendra · Arazzo Workflow

Amazon Kendra Resolve Index by Name and Query

Version 1.0.0

Look up an index by name, confirm it is active, and run a search query against it.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Artificial IntelligenceEnterprise SearchKnowledge-ManagementMachine-LearningNatural-LanguageArazzoWorkflows

Provider

amazon-kendra

Workflows

resolve-index-and-query
Find an index by name, confirm it is ACTIVE, then query it.
Lists indexes to resolve a name to an id, confirms the index is ACTIVE with DescribeIndex, and runs a search query.
3 steps inputs: indexName, pageSize, queryText outputs: indexId, queryId, resultItems
1
listIndexes
List the account indexes and capture the id of the index whose name matches the supplied indexName.
2
confirmIndexActive
Confirm the matched index is ACTIVE before sending query traffic, so queries are not issued against an index that is still building or failed.
3
query
Run the search query against the resolved, 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: Look up an index by name, confirm it is active, and run a search query against it.
  description: >-
    Resolves a human-friendly index name to its identifier by listing the
    account indexes and matching on name, confirms with DescribeIndex that the
    matched index is ACTIVE before issuing traffic, and then runs a Query so
    callers can search by index name without already knowing the index id. 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: Find an index by name, confirm it is ACTIVE, then query it.
  description: >-
    Lists indexes to resolve a name to an id, confirms the index is ACTIVE with
    DescribeIndex, and runs a search query.
  inputs:
    type: object
    required:
    - indexName
    - queryText
    properties:
      indexName:
        type: string
        description: The name of the index to search.
      queryText:
        type: string
        description: The search query to run against the resolved index.
      pageSize:
        type: integer
        description: Optional number of results to return per page.
  steps:
  - stepId: listIndexes
    description: >-
      List the account indexes and capture the id of the index whose name
      matches the supplied indexName.
    operationId: ListIndexes
    parameters:
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.ListIndexes
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedIndexId: $response.body#/IndexConfigurationSummaryItems/0/Id
  - stepId: confirmIndexActive
    description: >-
      Confirm the matched index is ACTIVE before sending query traffic, so
      queries are not issued against an index that is still building or failed.
    operationId: DescribeIndex
    parameters:
    - name: IndexId
      in: path
      value: $steps.listIndexes.outputs.matchedIndexId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.DescribeIndex
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      indexStatus: $response.body#/Status
    onSuccess:
    - name: indexActive
      type: goto
      stepId: query
      criteria:
      - context: $response.body
        condition: $.Status == "ACTIVE"
        type: jsonpath
  - stepId: query
    description: >-
      Run the search query against the resolved, active index and return the
      ranked result items.
    operationId: Query
    parameters:
    - name: IndexId
      in: path
      value: $steps.listIndexes.outputs.matchedIndexId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.Query
    requestBody:
      contentType: application/json
      payload:
        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: $steps.listIndexes.outputs.matchedIndexId
    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"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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