Amazon Kendra · Arazzo Workflow

Amazon Kendra Sync Data Source and Query

Version 1.0.0

Start a data source sync job on an existing connector, wait for it to succeed, then query the refreshed index.

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

Provider

amazon-kendra

Workflows

sync-data-source-and-query
Start a sync job, wait for SUCCEEDED, then query the refreshed index.
Starts a synchronization job on an existing data source, polls the sync job list until it succeeds, and runs a search query against the refreshed index.
3 steps inputs: dataSourceId, indexId, queryText outputs: executionId, queryId, resultItems
1
startSyncJob
Start an on-demand synchronization job for the data source connector so it re-crawls and re-indexes the source repository.
2
waitForSyncComplete
Poll the list of sync jobs until the most recent job leaves the SYNCING state and reports SUCCEEDED, confirming the crawl finished.
3
query
Run the search query against the refreshed index so newly synced documents are reflected in the results.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Kendra Sync Data Source and Query
  summary: Start a data source sync job on an existing connector, wait for it to succeed, then query the refreshed index.
  description: >-
    Triggers an on-demand synchronization of an existing data source connector,
    polls ListDataSourceSyncJobs until the started job leaves the SYNCING state
    and reports SUCCEEDED, then runs a Query so the freshly crawled content is
    reflected in search results. 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: dataSourcesApi
  url: ../openapi/amazon-kendra-data-sources-api-openapi.yml
  type: openapi
- name: queriesApi
  url: ../openapi/amazon-kendra-queries-api-openapi.yml
  type: openapi
workflows:
- workflowId: sync-data-source-and-query
  summary: Start a sync job, wait for SUCCEEDED, then query the refreshed index.
  description: >-
    Starts a synchronization job on an existing data source, polls the sync job
    list until it succeeds, and runs a search query against the refreshed index.
  inputs:
    type: object
    required:
    - indexId
    - dataSourceId
    - queryText
    properties:
      indexId:
        type: string
        description: The identifier of the index that owns the data source.
      dataSourceId:
        type: string
        description: The identifier of the data source to synchronize.
      queryText:
        type: string
        description: The search query to run once the sync completes.
  steps:
  - stepId: startSyncJob
    description: >-
      Start an on-demand synchronization job for the data source connector so it
      re-crawls and re-indexes the source repository.
    operationId: StartDataSourceSyncJob
    parameters:
    - name: IndexId
      in: path
      value: $inputs.indexId
    - name: DataSourceId
      in: path
      value: $inputs.dataSourceId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.StartDataSourceSyncJob
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      executionId: $response.body#/ExecutionId
  - stepId: waitForSyncComplete
    description: >-
      Poll the list of sync jobs until the most recent job leaves the SYNCING
      state and reports SUCCEEDED, confirming the crawl finished.
    operationId: ListDataSourceSyncJobs
    parameters:
    - name: IndexId
      in: path
      value: $inputs.indexId
    - name: DataSourceId
      in: path
      value: $inputs.dataSourceId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.ListDataSourceSyncJobs
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      history: $response.body#/History
    onSuccess:
    - name: syncSucceeded
      type: goto
      stepId: query
      criteria:
      - context: $response.body
        condition: $.History[0].Status == "SUCCEEDED"
        type: jsonpath
    onFailure:
    - name: retrySyncStatus
      type: retry
      stepId: waitForSyncComplete
      retryAfter: 30
      retryLimit: 20
      criteria:
      - context: $response.body
        condition: $.History[0].Status == "SYNCING"
        type: jsonpath
  - stepId: query
    description: >-
      Run the search query against the refreshed index so newly synced documents
      are reflected in the results.
    operationId: Query
    parameters:
    - name: IndexId
      in: path
      value: $inputs.indexId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.Query
    requestBody:
      contentType: application/json
      payload:
        QueryText: $inputs.queryText
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      queryId: $response.body#/QueryId
      resultItems: $response.body#/ResultItems
  outputs:
    executionId: $steps.startSyncJob.outputs.executionId
    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-sync-data-source-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.