AWS Lambda · Arazzo Workflow

AWS Lambda Cap a Function with Reserved Concurrency

Version 1.0.0

Read a function's current concurrency reservation, set a ceiling on its simultaneous executions, and confirm the value Lambda stored.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

aws-lambda

Workflows

reserved-concurrency-guardrail
Set and verify the maximum simultaneous executions reserved for a function.
Captures the prior reservation so the change is auditable and reversible, applies the new limit, and verifies the stored value.
3 steps inputs: functionName, reservedConcurrentExecutions outputs: previousReservation, reservedConcurrentExecutions
1
readCurrentReservation
Read the existing reservation before changing it, so the prior value is captured for audit and rollback. A function with no reservation returns no ReservedConcurrentExecutions value and draws from the shared account pool.
2
applyReservation
Set the ceiling. This carves the reserved amount out of the account's regional concurrency pool, so the capacity is no longer available to any other function in the account.
3
verifyReservation
Read the reservation back to confirm the ceiling Lambda actually stored matches what was requested.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: AWS Lambda Cap a Function with Reserved Concurrency
  summary: Read a function's current concurrency reservation, set a ceiling on its simultaneous executions, and confirm the value Lambda stored.
  description: >-
    Reserved concurrency does two jobs at once, which is why it is worth setting
    deliberately. It guarantees a function can always reach the reserved level,
    and it caps that function so it can never consume more than its share of the
    account's regional concurrency pool and starve every other function in the
    account. It is the standard guardrail for a function that fans out onto a
    limited downstream resource such as a relational database. This workflow
    reads the existing reservation, applies the new ceiling, and reads it back.
    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: concurrencyApi
  url: ../openapi/aws-lambda-concurrency-api-openapi.yml
  type: openapi
workflows:
- workflowId: reserved-concurrency-guardrail
  summary: Set and verify the maximum simultaneous executions reserved for a function.
  description: >-
    Captures the prior reservation so the change is auditable and reversible,
    applies the new limit, and verifies the stored value.
  inputs:
    type: object
    required:
    - functionName
    - reservedConcurrentExecutions
    properties:
      functionName:
        type: string
        description: The name or ARN of the function to cap.
      reservedConcurrentExecutions:
        type: integer
        description: >-
          Maximum simultaneous executions for this function. Setting 0 stops the
          function from being invoked at all, which is the standard way to
          quarantine a misbehaving function without deleting it.
  steps:
  - stepId: readCurrentReservation
    description: >-
      Read the existing reservation before changing it, so the prior value is
      captured for audit and rollback. A function with no reservation returns no
      ReservedConcurrentExecutions value and draws from the shared account pool.
    operationId: getReservedConcurrency
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.functionName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      previousReservation: $response.body#/ReservedConcurrentExecutions
  - stepId: applyReservation
    description: >-
      Set the ceiling. This carves the reserved amount out of the account's
      regional concurrency pool, so the capacity is no longer available to any
      other function in the account.
    operationId: putFunctionConcurrency
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.functionName
    requestBody:
      contentType: application/json
      payload:
        ReservedConcurrentExecutions: $inputs.reservedConcurrentExecutions
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      appliedReservation: $response.body#/ReservedConcurrentExecutions
  - stepId: verifyReservation
    description: >-
      Read the reservation back to confirm the ceiling Lambda actually stored
      matches what was requested.
    operationId: getReservedConcurrency
    parameters:
    - name: FunctionName
      in: path
      value: $inputs.functionName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      verifiedReservation: $response.body#/ReservedConcurrentExecutions
  outputs:
    previousReservation: $steps.readCurrentReservation.outputs.previousReservation
    reservedConcurrentExecutions: $steps.verifyReservation.outputs.verifiedReservation

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/aws-lambda-reserved-concurrency-guardrail-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.