Amazon Data Exchange · Arazzo Workflow

Amazon Data Exchange Delete Draft Revision

Version 1.0.0

Find a revision, confirm it is not finalized, and delete it as a draft.

1 workflow 1 source API 1 provider
View Spec View on GitHub Data ExchangeData MarketplaceThird-Party DataAnalyticsSubscriptionArazzoWorkflows

Provider

amazon-data-exchange

Workflows

delete-draft-revision
Delete the first revision of a data set only if it is not finalized.
Lists revisions, reads the first revision, and deletes it when it is still a draft (not finalized).
3 steps inputs: dataSetId outputs: dataSetId, finalized, revisionId
1
listRevisions
List the revisions of the data set to locate a candidate to delete.
2
getRevision
Read the first revision and branch on whether it has been finalized.
3
deleteRevision
Delete the draft revision since it has not been finalized.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Data Exchange Delete Draft Revision
  summary: Find a revision, confirm it is not finalized, and delete it as a draft.
  description: >-
    A cleanup flow for AWS Data Exchange. A revision can only be deleted if it
    has not been finalized, so the workflow lists a data set's revisions, reads
    the first revision's details, and branches: when the revision is not
    finalized it deletes it, otherwise it ends without action. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: revisionsApi
  url: ../openapi/amazon-data-exchange-revisions-api-openapi.yml
  type: openapi
workflows:
- workflowId: delete-draft-revision
  summary: Delete the first revision of a data set only if it is not finalized.
  description: >-
    Lists revisions, reads the first revision, and deletes it when it is still a
    draft (not finalized).
  inputs:
    type: object
    required:
    - dataSetId
    properties:
      dataSetId:
        type: string
        description: The ID of the data set whose draft revision is removed.
  steps:
  - stepId: listRevisions
    description: >-
      List the revisions of the data set to locate a candidate to delete.
    operationId: listDataSetRevisions
    parameters:
    - name: DataSetId
      in: path
      value: $inputs.dataSetId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstRevisionId: $response.body#/Revisions/0/Id
  - stepId: getRevision
    description: >-
      Read the first revision and branch on whether it has been finalized.
    operationId: getRevision
    parameters:
    - name: DataSetId
      in: path
      value: $inputs.dataSetId
    - name: RevisionId
      in: path
      value: $steps.listRevisions.outputs.firstRevisionId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      finalized: $response.body#/Finalized
    onSuccess:
    - name: isDraft
      type: goto
      stepId: deleteRevision
      criteria:
      - context: $response.body
        condition: $.Finalized == false
        type: jsonpath
    - name: isFinalized
      type: end
      criteria:
      - context: $response.body
        condition: $.Finalized == true
        type: jsonpath
  - stepId: deleteRevision
    description: >-
      Delete the draft revision since it has not been finalized.
    operationId: deleteRevision
    parameters:
    - name: DataSetId
      in: path
      value: $inputs.dataSetId
    - name: RevisionId
      in: path
      value: $steps.listRevisions.outputs.firstRevisionId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      deleteStatus: $statusCode
  outputs:
    dataSetId: $inputs.dataSetId
    revisionId: $steps.listRevisions.outputs.firstRevisionId
    finalized: $steps.getRevision.outputs.finalized

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-data-exchange-delete-draft-revision-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.