Amazon KMS · Arazzo Workflow

Amazon KMS Enable Key and Verify State

Version 1.0.0

Enable a disabled KMS key and confirm it is back in the Enabled state.

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

Provider

amazon-kms

Workflows

enable-key-and-verify-state
Enable a key then describe it to confirm the Enabled state.
Enables the target KMS key and reads its metadata back to verify the key state is now Enabled, branching to an explicit end when confirmed.
2 steps inputs: KeyId outputs: enabled, keyState
1
enableKey
Set the key state of the KMS key to enabled so it can be used in cryptographic operations again.
2
verifyState
Describe the KMS key to confirm the enable operation moved it into the Enabled state.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon KMS Enable Key and Verify State
  summary: Enable a disabled KMS key and confirm it is back in the Enabled state.
  description: >-
    Reactivates a previously disabled KMS key. The workflow sets the key state to
    enabled and then describes the key to confirm the state transition took
    effect, branching on whether the reported KeyState is Enabled. The KeyId
    flows from input through both steps. 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: enable-key-and-verify-state
  summary: Enable a key then describe it to confirm the Enabled state.
  description: >-
    Enables the target KMS key and reads its metadata back to verify the key
    state is now Enabled, branching to an explicit end when confirmed.
  inputs:
    type: object
    required:
    - KeyId
    properties:
      KeyId:
        type: string
        description: Identifies the KMS key to enable and verify.
  steps:
  - stepId: enableKey
    description: >-
      Set the key state of the KMS key to enabled so it can be used in
      cryptographic operations again.
    operationId: EnableKey
    parameters:
    - name: KeyId
      in: path
      value: $inputs.KeyId
    - name: X-Amz-Target
      in: header
      value: TrentService.EnableKey
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        KeyId: $inputs.KeyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      enableStatus: $statusCode
  - stepId: verifyState
    description: >-
      Describe the KMS key to confirm the enable operation moved it into the
      Enabled state.
    operationId: DescribeKey
    parameters:
    - name: KeyId
      in: path
      value: $inputs.KeyId
    - name: X-Amz-Target
      in: header
      value: TrentService.DescribeKey
    requestBody:
      contentType: application/x-amz-json-1.1
      payload:
        KeyId: $inputs.KeyId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      keyState: $response.body#/KeyMetadata/KeyState
      enabled: $response.body#/KeyMetadata/Enabled
    onSuccess:
    - name: confirmedEnabled
      type: end
      criteria:
      - context: $response.body
        condition: $.KeyMetadata.KeyState == "Enabled"
        type: jsonpath
  outputs:
    keyState: $steps.verifyState.outputs.keyState
    enabled: $steps.verifyState.outputs.enabled

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-enable-key-and-verify-state-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.