Amazon DynamoDB · Arazzo Workflow

Amazon DynamoDB Transactional Write Then Transactional Read

Version 1.0.0

Atomically write a group of items, then atomically read them back.

1 workflow 1 source API 1 provider
View Spec View on GitHub DatabaseDocument StoreKey-ValueNoSQLServerlessArazzoWorkflows

Provider

amazon-dynamodb

Workflows

transaction-write-then-read
Run a write transaction, then confirm it with a read transaction.
Submits a TransactWriteItems request with the supplied actions and an idempotency token, then issues a TransactGetItems request to read the affected items in a single atomic operation.
2 steps inputs: clientRequestToken, getTransactItems, writeTransactItems outputs: responses
1
writeTransaction
Atomically apply the write transaction. All actions succeed together or the entire transaction is rolled back.
2
readTransaction
Atomically read the affected items back to confirm the transaction's committed state.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon DynamoDB Transactional Write Then Transactional Read
  summary: Atomically write a group of items, then atomically read them back.
  description: >-
    Commits a set of changes atomically with TransactWriteItems and then
    reads the affected items back atomically with TransactGetItems to verify
    the committed state. A client request token makes the write idempotent.
    Every step spells out its request inline, 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: transactionsApi
  url: ../openapi/amazon-dynamodb-transactions-api-openapi.yml
  type: openapi
workflows:
- workflowId: transaction-write-then-read
  summary: Run a write transaction, then confirm it with a read transaction.
  description: >-
    Submits a TransactWriteItems request with the supplied actions and an
    idempotency token, then issues a TransactGetItems request to read the
    affected items in a single atomic operation.
  inputs:
    type: object
    required:
    - writeTransactItems
    - getTransactItems
    properties:
      writeTransactItems:
        type: array
        description: >-
          The ordered TransactItems for the write (ConditionCheck, Put,
          Delete, and Update actions).
        items:
          type: object
      clientRequestToken:
        type: string
        description: A unique token making the write transaction idempotent.
      getTransactItems:
        type: array
        description: The ordered TransactItems for the read (Get actions).
        items:
          type: object
  steps:
  - stepId: writeTransaction
    description: >-
      Atomically apply the write transaction. All actions succeed together
      or the entire transaction is rolled back.
    operationId: transactWriteItems
    parameters:
    - name: X-Amz-Target
      in: header
      value: DynamoDB_20120810.TransactWriteItems
    requestBody:
      contentType: application/x-amz-json-1.0
      payload:
        TransactItems: $inputs.writeTransactItems
        ClientRequestToken: $inputs.clientRequestToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      itemCollectionMetrics: $response.body#/ItemCollectionMetrics
  - stepId: readTransaction
    description: >-
      Atomically read the affected items back to confirm the transaction's
      committed state.
    operationId: transactGetItems
    parameters:
    - name: X-Amz-Target
      in: header
      value: DynamoDB_20120810.TransactGetItems
    requestBody:
      contentType: application/x-amz-json-1.0
      payload:
        TransactItems: $inputs.getTransactItems
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      responses: $response.body#/Responses
  outputs:
    responses: $steps.readTransaction.outputs.responses

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-dynamodb-transaction-write-then-read-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.