Amazon Lambda · Arazzo Workflow

Amazon Lambda Decommission Function

Version 1.0.0

Confirm a function exists, read its configuration, then delete it.

1 workflow 1 source API 1 provider
View Spec View on GitHub ComputeEvent-DrivenFunction-as-a-ServiceFunctionsServerlessArazzoWorkflows

Provider

amazon-lambda

Workflows

decommission-function
Confirm a function, capture its configuration, and delete it.
Reads a function to confirm it exists and capture its ARN, branches to an end state when the function is missing, and otherwise deletes the function.
2 steps inputs: FunctionName outputs: deletedFunctionArn, lastKnownState
1
confirmFunction
Read the function to confirm it exists and capture its ARN and State. A 404 is treated as already gone and ends the workflow.
2
deleteFunction
Delete the confirmed function.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon Lambda Decommission Function
  summary: Confirm a function exists, read its configuration, then delete it.
  description: >-
    Safely removes a Lambda function. The workflow first reads the function to
    confirm it exists and to capture its ARN and current State, branches to an
    end state if the function is already gone, and otherwise deletes it. 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: functionsApi
  url: ../openapi/amazon-lambda-functions-api-openapi.yml
  type: openapi
workflows:
- workflowId: decommission-function
  summary: Confirm a function, capture its configuration, and delete it.
  description: >-
    Reads a function to confirm it exists and capture its ARN, branches to an
    end state when the function is missing, and otherwise deletes the function.
  inputs:
    type: object
    required:
    - FunctionName
    properties:
      FunctionName:
        type: string
        description: The name of the Lambda function to decommission.
  steps:
  - stepId: confirmFunction
    description: >-
      Read the function to confirm it exists and capture its ARN and State. A
      404 is treated as already gone and ends the workflow.
    operationId: GetFunction
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.FunctionName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      functionArn: $response.body#/FunctionArn
      state: $response.body#/State
    onSuccess:
    - name: functionExists
      type: goto
      stepId: deleteFunction
      criteria:
      - condition: $statusCode == 200
    onFailure:
    - name: alreadyGone
      type: end
      criteria:
      - condition: $statusCode == 404
  - stepId: deleteFunction
    description: >-
      Delete the confirmed function.
    operationId: DeleteFunction
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.FunctionName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      deletedFunctionArn: $steps.confirmFunction.outputs.functionArn
  outputs:
    deletedFunctionArn: $steps.deleteFunction.outputs.deletedFunctionArn
    lastKnownState: $steps.confirmFunction.outputs.state

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-lambda-decommission-function-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.