Amazon Kendra · Arazzo Workflow

Amazon Kendra Teardown Data Source and Index

Version 1.0.0

Delete a data source connector, confirm it is gone, then delete the index that owned it.

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

Provider

amazon-kendra

Workflows

teardown-data-source-and-index
Delete a data source, wait until it is gone, then delete the index.
Deletes a data source connector, polls ListDataSources until it is gone, and deletes the owning index.
3 steps inputs: dataSourceId, indexId outputs: deletedDataSourceId, deletedIndexId
1
deleteDataSource
Delete the data source connector so the index no longer crawls the source repository.
2
waitForDataSourceGone
Poll the data source list until the deleted connector no longer appears, confirming deletion finished before removing the index.
3
deleteIndex
Delete the index now that its data source connector has been removed.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Kendra Teardown Data Source and Index
  summary: Delete a data source connector, confirm it is gone, then delete the index that owned it.
  description: >-
    Cleanly decommissions an Amazon Kendra index by first deleting its data
    source connector, polling ListDataSources until the deleted connector no
    longer appears, and then deleting the index itself. Tearing the connector
    down before the index avoids orphaned crawl state. 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: indexesApi
  url: ../openapi/amazon-kendra-indexes-api-openapi.yml
  type: openapi
workflows:
- workflowId: teardown-data-source-and-index
  summary: Delete a data source, wait until it is gone, then delete the index.
  description: >-
    Deletes a data source connector, polls ListDataSources until it is gone, and
    deletes the owning index.
  inputs:
    type: object
    required:
    - indexId
    - dataSourceId
    properties:
      indexId:
        type: string
        description: The identifier of the index to tear down.
      dataSourceId:
        type: string
        description: The identifier of the data source connector to delete first.
  steps:
  - stepId: deleteDataSource
    description: >-
      Delete the data source connector so the index no longer crawls the source
      repository.
    operationId: DeleteDataSource
    parameters:
    - name: IndexId
      in: path
      value: $inputs.indexId
    - name: DataSourceId
      in: path
      value: $inputs.dataSourceId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.DeleteDataSource
    successCriteria:
    - condition: $statusCode == 200
  - stepId: waitForDataSourceGone
    description: >-
      Poll the data source list until the deleted connector no longer appears,
      confirming deletion finished before removing the index.
    operationId: ListDataSources
    parameters:
    - name: IndexId
      in: path
      value: $inputs.indexId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.ListDataSources
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      summaryItems: $response.body#/SummaryItems
    onSuccess:
    - name: dataSourceGone
      type: goto
      stepId: deleteIndex
      criteria:
      - context: $response.body
        condition: $.SummaryItems[?(@.Id=="$inputs.dataSourceId")] empty
        type: jsonpath
    onFailure:
    - name: retryListDataSources
      type: retry
      stepId: waitForDataSourceGone
      retryAfter: 20
      retryLimit: 15
      criteria:
      - context: $response.body
        condition: $.SummaryItems[?(@.Id=="$inputs.dataSourceId")] anyof
        type: jsonpath
  - stepId: deleteIndex
    description: >-
      Delete the index now that its data source connector has been removed.
    operationId: DeleteIndex
    parameters:
    - name: IndexId
      in: path
      value: $inputs.indexId
    - name: X-Amz-Target
      in: header
      value: AWSKendraFrontendService.DeleteIndex
    successCriteria:
    - condition: $statusCode == 200
  outputs:
    deletedIndexId: $inputs.indexId
    deletedDataSourceId: $inputs.dataSourceId

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-teardown-data-source-and-index-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.