AWS Lambda Lambda Capacity Providers API

The Lambda Capacity Providers API from AWS Lambda — 2 operation(s) for lambda capacity providers.

GitHub OpenAPI

Operations 5

POST /2025-11-30/capacity-providers Create Capacity Provider #
GET /2025-11-30/capacity-providers List Capacity Providers #
GET /2025-11-30/capacity-providers/{CapacityProviderName} Get Capacity Provider #
PUT /2025-11-30/capacity-providers/{CapacityProviderName} Update Capacity Provider #
DELETE /2025-11-30/capacity-providers/{CapacityProviderName} Delete Capacity Provider #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/aws-lambda:aws-lambda-capacity-providers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aws-lambda-capacity-providers-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Lambda Capacity Providers API
  version: '2015-03-31'
  description: Generated from AWS's published Smithy model for AWS Lambda. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://lambda.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /2025-11-30/capacity-providers:
    post:
      operationId: CreateCapacityProvider
      summary: Create Capacity Provider
      description: Creates a capacity provider that manages compute resources for Lambda Event Functions
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateCapacityProviderResponse'
        '400':
          description: CapacityProviderLimitExceededException; InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityProviderLimitExceededException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CapacityProviderName:
                  type: string
                  description: The name of the capacity provider.
                VpcConfig:
                  $ref: '#/components/schemas/CapacityProviderVpcConfig'
                PermissionsConfig:
                  $ref: '#/components/schemas/CapacityProviderPermissionsConfig'
                InstanceRequirements:
                  $ref: '#/components/schemas/InstanceRequirements'
                CapacityProviderScalingConfig:
                  $ref: '#/components/schemas/CapacityProviderScalingConfig'
                KmsKeyArn:
                  type: string
                  description: The ARN of the KMS key used to encrypt data associated with the capacity provider.
                Tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: A list of tags to associate with the capacity provider.
                PropagateTags:
                  $ref: '#/components/schemas/PropagateTags'
                TelemetryConfig:
                  $ref: '#/components/schemas/CapacityProviderTelemetryConfig'
              required:
              - CapacityProviderName
              - VpcConfig
              - PermissionsConfig
      tags:
      - Capacity Providers
    get:
      operationId: ListCapacityProviders
      summary: List Capacity Providers
      description: Returns a list of capacity providers in your account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCapacityProvidersResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: State
        in: query
        schema:
          type: string
          enum:
          - Pending
          - Active
          - Failed
          - Deleting
        description: Filter capacity providers by their current state.
      - name: Marker
        in: query
        schema:
          type: string
        description: Specify the pagination token that's returned by a previous request to retrieve the next page of results.
      - name: MaxItems
        in: query
        schema:
          type: integer
        description: The maximum number of capacity providers to return.
      tags:
      - Capacity Providers
  /2025-11-30/capacity-providers/{CapacityProviderName}:
    get:
      operationId: GetCapacityProvider
      summary: Get Capacity Provider
      description: Retrieves information about a specific capacity provider, including its configuration, state, and associated
        resources.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCapacityProviderResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: CapacityProviderName
        in: path
        required: true
        schema:
          type: string
        description: The name of the capacity provider to retrieve.
      tags:
      - Capacity Providers
    put:
      operationId: UpdateCapacityProvider
      summary: Update Capacity Provider
      description: Updates the configuration of an existing capacity provider.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateCapacityProviderResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: CapacityProviderName
        in: path
        required: true
        schema:
          type: string
        description: The name of the capacity provider to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                CapacityProviderScalingConfig:
                  $ref: '#/components/schemas/CapacityProviderScalingConfig'
                PropagateTags:
                  $ref: '#/components/schemas/PropagateTags'
                TelemetryConfig:
                  $ref: '#/components/schemas/CapacityProviderTelemetryConfig'
      tags:
      - Capacity Providers
    delete:
      operationId: DeleteCapacityProvider
      summary: Delete Capacity Provider
      description: Deletes a capacity provider. You cannot delete a capacity provider that is currently being used by Lambda
        functions.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteCapacityProviderResponse'
        '400':
          description: InvalidParameterValueException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidParameterValueException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '500':
          description: ServiceException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
      parameters:
      - name: CapacityProviderName
        in: path
        required: true
        schema:
          type: string
        description: The name of the capacity provider to delete.
      tags:
      - Capacity Providers
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: lambda
  schemas:
    CapacityProvider:
      type: object
      properties:
        CapacityProviderArn:
          type: string
          description: The Amazon Resource Name (ARN) of the capacity provider.
        State:
          type: string
          enum:
          - Pending
          - Active
          - Failed
          - Deleting
          description: The current state of the capacity provider.
        VpcConfig:
          $ref: '#/components/schemas/CapacityProviderVpcConfig'
        PermissionsConfig:
          $ref: '#/components/schemas/CapacityProviderPermissionsConfig'
        InstanceRequirements:
          $ref: '#/components/schemas/InstanceRequirements'
        CapacityProviderScalingConfig:
          $ref: '#/components/schemas/CapacityProviderScalingConfig'
        KmsKeyArn:
          type: string
          description: The ARN of the KMS key used to encrypt the capacity provider's resources.
        LastModified:
          type: string
          description: The date and time when the capacity provider was last modified.
        PropagateTags:
          $ref: '#/components/schemas/PropagateTags'
        TelemetryConfig:
          $ref: '#/components/schemas/CapacityProviderTelemetryConfig'
      required:
      - CapacityProviderArn
      - State
      - VpcConfig
      - PermissionsConfig
    CapacityProviderLimitExceededException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
    CapacityProviderLoggingConfig:
      type: object
      properties:
        SystemLogLevel:
          type: string
          enum:
          - DEBUG
          - INFO
          - WARN
          description: Set this property to filter the system logs for your capacity provider that Lambda sends to CloudWatch.
            Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and
            WARN is the lowest.
        LogGroup:
          type: string
          description: The name of the Amazon CloudWatch log group the capacity provider sends logs to. By default, Lambda
            capacity providers send logs to a default log group named /aws/lambda/capacity-provider/<capacity provider
            name>. To use a different log group, enter an existing log group or enter a new log group name.
    CapacityProviderPermissionsConfig:
      type: object
      properties:
        CapacityProviderOperatorRoleArn:
          type: string
          description: The ARN of the IAM role that the capacity provider uses to manage compute instances and other Amazon
            Web Services resources.
      required:
      - CapacityProviderOperatorRoleArn
    CapacityProviderScalingConfig:
      type: object
      properties:
        MaxVCpuCount:
          type: integer
          description: The maximum number of vCPUs that the capacity provider can provision across all compute instances.
        ScalingMode:
          type: string
          enum:
          - Auto
          - Manual
          description: The scaling mode that determines how the capacity provider responds to changes in demand.
        ScalingPolicies:
          type: array
          items:
            $ref: '#/components/schemas/TargetTrackingScalingPolicy'
          description: A list of scaling policies that define how the capacity provider scales compute instances based on
            metrics and thresholds.
    CapacityProviderTelemetryConfig:
      type: object
      properties:
        LoggingConfig:
          $ref: '#/components/schemas/CapacityProviderLoggingConfig'
    CapacityProviderVpcConfig:
      type: object
      properties:
        SubnetIds:
          type: array
          items:
            type: string
          description: A list of subnet IDs where the capacity provider launches compute instances.
        SecurityGroupIds:
          type: array
          items:
            type: string
          description: A list of security group IDs that control network access for compute instances managed by the capacity
            provider.
      required:
      - SubnetIds
      - SecurityGroupIds
    CreateCapacityProviderResponse:
      type: object
      properties:
        CapacityProvider:
          $ref: '#/components/schemas/CapacityProvider'
      required:
      - CapacityProvider
    DeleteCapacityProviderResponse:
      type: object
      properties:
        CapacityProvider:
          $ref: '#/components/schemas/CapacityProvider'
      required:
      - CapacityProvider
    GetCapacityProviderResponse:
      type: object
      properties:
        CapacityProvider:
          $ref: '#/components/schemas/CapacityProvider'
      required:
      - CapacityProvider
    InstanceRequirements:
      type: object
      properties:
        Architectures:
          type: array
          items:
            type: string
            enum:
            - x86_64
            - arm64
          description: A list of supported CPU architectures for compute instances. Valid values include x86_64 and arm64.
        AllowedInstanceTypes:
          type: array
          items:
            type: string
          description: A list of EC2 instance types that the capacity provider is allowed to use. If not specified, all compatible
            instance types are allowed.
        ExcludedInstanceTypes:
          type: array
          items:
            type: string
          description: A list of EC2 instance types that the capacity provider should not use, even if they meet other requirements.
    InvalidParameterValueException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ListCapacityProvidersResponse:
      type: object
      properties:
        CapacityProviders:
          type: array
          items:
            $ref: '#/components/schemas/CapacityProvider'
          description: A list of capacity providers in your account.
        NextMarker:
          type: string
          description: The pagination token that's included if more results are available.
      required:
      - CapacityProviders
    PropagateTags:
      type: object
      properties:
        Mode:
          type: string
          enum:
          - None
          - Explicit
          description: The tag propagation mode. Set to Explicit to propagate the tags specified in ExplicitTags to managed
            resources. Set to None to disable tag propagation.
        ExplicitTags:
          type: object
          additionalProperties:
            type: string
          description: A list of tags to apply to managed resources when Mode is set to Explicit. You can specify up to 40
            tags.
    ResourceConflictException:
      type: object
      properties:
        Type:
          type: string
          description: The exception type.
        message:
          type: string
          description: The exception message.
    ResourceNotFoundException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    ServiceException:
      type: object
      properties:
        Type:
          type: string
        Message:
          type: string
    TargetTrackingScalingPolicy:
      type: object
      properties:
        PredefinedMetricType:
          type: string
          enum:
          - LambdaCapacityProviderAverageCPUUtilization
          description: The predefined metric type to track for scaling decisions.
        TargetValue:
          type: number
          description: The target value for the metric that the scaling policy attempts to maintain through scaling actions.
      required:
      - PredefinedMetricType
      - TargetValue
    TooManyRequestsException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
          description: The number of seconds the caller should wait before retrying.
        Type:
          type: string
        message:
          type: string
        Reason:
          type: string
          enum:
          - ConcurrentInvocationLimitExceeded
          - FunctionInvocationRateLimitExceeded
          - ReservedFunctionConcurrentInvocationLimitExceeded
          - ReservedFunctionInvocationRateLimitExceeded
          - CallerRateLimitExceeded
          - ConcurrentSnapshotCreateLimitExceeded
    UpdateCapacityProviderResponse:
      type: object
      properties:
        CapacityProvider:
          $ref: '#/components/schemas/CapacityProvider'
      required:
      - CapacityProvider
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/lambda/service/2015-03-31/lambda-2015-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)