Amazon KMS · Arazzo Workflow

Amazon KMS List and Describe Keys

Version 1.0.0

List the KMS keys in the account and describe the first one in detail.

1 workflow 1 source API 1 provider
View Spec View on GitHub CryptographyData ProtectionEncryptionKey ManagementSecurityArazzoWorkflows

Provider

amazon-kms

Workflows

list-and-describe-keys
List account KMS keys then describe the first returned key.
Retrieves the list of KMS keys in the account, takes the first key's identifier, and describes that key to read its state, usage, and ARN.
2 steps inputs: Limit outputs: firstKeyId, keyArn, keyState
1
listKeys
List all KMS keys in the caller's account and Region, returning their key identifiers and ARNs.
2
describeFirstKey
Describe the first key from the list to surface its state, usage, and ARN.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon KMS List and Describe Keys
  summary: List the KMS keys in the account and describe the first one in detail.
  description: >-
    Provides a quick inventory-then-inspect pass over the account's KMS keys. The
    workflow lists all KMS keys in the caller's account and Region, captures the
    identifier of the first key returned, and describes that key to surface its
    full metadata. The KeyId is chained from the list response into the describe
    call. Each 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: keysApi
  url: ../openapi/amazon-kms-keys-api-openapi.yml
  type: openapi
workflows:
- workflowId: list-and-describe-keys
  summary: List account KMS keys then describe the first returned key.
  description: >-
    Retrieves the list of KMS keys in the account, takes the first key's
    identifier, and describes that key to read its state, usage, and ARN.
  inputs:
    type: object
    properties:
      Limit:
        type: integer
        description: The maximum number of keys to return in the list.
  steps:
  - stepId: listKeys
    description: >-
      List all KMS keys in the caller's account and Region, returning their key
      identifiers and ARNs.
    operationId: ListKeys
    parameters:
    - name: X-Amz-Target
      in: header
      value: TrentService.ListKeys
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        Limit: $inputs.Limit
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstKeyId: $response.body#/Keys/0/KeyId
      truncated: $response.body#/Truncated
  - stepId: describeFirstKey
    description: >-
      Describe the first key from the list to surface its state, usage, and ARN.
    operationId: DescribeKey
    parameters:
    - name: KeyId
      in: path
      value: $steps.listKeys.outputs.firstKeyId
    - name: X-Amz-Target
      in: header
      value: TrentService.DescribeKey
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        KeyId: $steps.listKeys.outputs.firstKeyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      keyState: $response.body#/KeyMetadata/KeyState
      keyArn: $response.body#/KeyMetadata/Arn
      keyUsage: $response.body#/KeyMetadata/KeyUsage
  outputs:
    firstKeyId: $steps.listKeys.outputs.firstKeyId
    keyState: $steps.describeFirstKey.outputs.keyState
    keyArn: $steps.describeFirstKey.outputs.keyArn

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-kms-list-and-describe-keys-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.