AWS Batch Scheduling Policies API

The Scheduling Policies API from AWS Batch — 5 operation(s) for scheduling policies.

GitHub OpenAPI

Operations 5

POST /v1/createschedulingpolicy Create Scheduling Policy #
POST /v1/deleteschedulingpolicy Delete Scheduling Policy #
POST /v1/describeschedulingpolicies Describe Scheduling Policies #
POST /v1/listschedulingpolicies List Scheduling Policies #
POST /v1/updateschedulingpolicy Update Scheduling Policy #

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-batch:aws-batch-scheduling-policies-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-batch-scheduling-policies-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Batch Scheduling Policies API
  version: '2016-08-10'
  description: Generated from AWS's published Smithy model for AWS Batch. 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://batch.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/createschedulingpolicy:
    post:
      operationId: CreateSchedulingPolicy
      summary: Create Scheduling Policy
      description: Creates an Batch scheduling policy.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSchedulingPolicyResponse'
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The name of the fair-share scheduling policy. It can be up to 128 letters long. It can contain
                    uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
                quotaSharePolicy:
                  $ref: '#/components/schemas/QuotaSharePolicy'
                fairsharePolicy:
                  $ref: '#/components/schemas/FairsharePolicy'
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The tags that you apply to the scheduling policy to help you categorize and organize your resources.
                    Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services
                    Resources in Amazon Web Services General Reference. These tags can be updated or removed using the TagResource
                    and UntagResource API operations.
              required:
              - name
      tags:
      - Scheduling Policies
  /v1/deleteschedulingpolicy:
    post:
      operationId: DeleteSchedulingPolicy
      summary: Delete Scheduling Policy
      description: Deletes the specified scheduling policy. You can't delete a scheduling policy that's used in any job queues.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSchedulingPolicyResponse'
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                arn:
                  type: string
                  description: The Amazon Resource Name (ARN) of the scheduling policy to delete.
              required:
              - arn
      tags:
      - Scheduling Policies
  /v1/describeschedulingpolicies:
    post:
      operationId: DescribeSchedulingPolicies
      summary: Describe Scheduling Policies
      description: Describes one or more of your scheduling policies.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeSchedulingPoliciesResponse'
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                arns:
                  type: array
                  items:
                    type: string
                  description: A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries.
              required:
              - arns
      tags:
      - Scheduling Policies
  /v1/listschedulingpolicies:
    post:
      operationId: ListSchedulingPolicies
      summary: List Scheduling Policies
      description: Returns a list of Batch scheduling policies.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListSchedulingPoliciesResponse'
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                maxResults:
                  type: integer
                  description: The maximum number of results that's returned by ListSchedulingPolicies in paginated output.
                    When this parameter is used, ListSchedulingPolicies only returns maxResults results in a single page and
                    a nextToken response element. You can see the remaining results of the initial request by sending another
                    ListSchedulingPolicies request with the returned nextToken value. This value can be between 1 and 100.
                    If this parameter isn't used, ListSchedulingPolicies returns up to 100 results and a nextToken value if
                    applicable.
                nextToken:
                  type: string
                  description: The nextToken value that's returned from a previous paginated ListSchedulingPolicies request
                    where maxResults was used and the results exceeded the value of that parameter. Pagination continues from
                    the end of the previous results that returned the nextToken value. This value is null when there are no
                    more results to return. Treat this token as an opaque identifier that's only used to retrieve the next
                    items in a list and not for other programmatic purposes.
      tags:
      - Scheduling Policies
  /v1/updateschedulingpolicy:
    post:
      operationId: UpdateSchedulingPolicy
      summary: Update Scheduling Policy
      description: Updates a scheduling policy.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateSchedulingPolicyResponse'
        '400':
          description: ClientException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientException'
        '500':
          description: ServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                arn:
                  type: string
                  description: The Amazon Resource Name (ARN) of the scheduling policy to update.
                quotaSharePolicy:
                  $ref: '#/components/schemas/QuotaSharePolicy'
                fairsharePolicy:
                  $ref: '#/components/schemas/FairsharePolicy'
              required:
              - arn
      tags:
      - Scheduling Policies
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: batch
  schemas:
    ClientException:
      type: object
      properties:
        message:
          type: string
    CreateSchedulingPolicyResponse:
      type: object
      properties:
        name:
          type: string
          description: The name of the scheduling policy.
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name
            . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.
      required:
      - name
      - arn
    DeleteSchedulingPolicyResponse:
      type: object
      properties: {}
    DescribeSchedulingPoliciesResponse:
      type: object
      properties:
        schedulingPolicies:
          type: array
          items:
            $ref: '#/components/schemas/SchedulingPolicyDetail'
          description: The list of scheduling policies.
    FairsharePolicy:
      type: object
      properties:
        shareDecaySeconds:
          type: integer
          description: The amount of time (in seconds) to use to calculate a fair-share percentage for each share identifier
            in use. A value of zero (0) indicates the default minimum time window (600 seconds). The maximum supported value
            is 604800 (1 week). The decay allows for more recently run jobs to have more weight than jobs that ran earlier.
            Consider adjusting this number if you have jobs that (on average) run longer than ten minutes, or a large difference
            in job count or job run times between share identifiers, and the allocation of resources doesn't meet your needs.
        computeReservation:
          type: integer
          description: A value used to reserve some of the available maximum vCPU for share identifiers that aren't already
            used. The reserved ratio is (computeReservation/100)^ActiveFairShares where ActiveFairShares is the number of
            active share identifiers. For example, a computeReservation value of 50 indicates that Batch reserves 50% of the
            maximum available vCPU if there's only one share identifier. It reserves 25% if there are two share identifiers.
            It reserves 12.5% if there are three share identifiers. A computeReservation value of 25 indicates that Batch
            should reserve 25% of the maximum available vCPU if t
        shareDistribution:
          type: array
          items:
            $ref: '#/components/schemas/ShareAttributes'
          description: An array of SharedIdentifier objects that contain the weights for the share identifiers for the fair-share
            policy. Share identifiers that aren't included have a default weight of 1.0.
    ListSchedulingPoliciesResponse:
      type: object
      properties:
        schedulingPolicies:
          type: array
          items:
            $ref: '#/components/schemas/SchedulingPolicyListingDetail'
          description: A list of scheduling policies that match the request.
        nextToken:
          type: string
          description: The nextToken value to include in a future ListSchedulingPolicies request. When the results of a ListSchedulingPolicies
            request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when
            there are no more results to return.
    QuotaSharePolicy:
      type: object
      properties:
        idleResourceAssignmentStrategy:
          type: string
          enum:
          - FIFO
          description: The strategy that determines how idle resources are assigned to quota shares that are borrowing capacity.
            Currently, only FIFO is supported.
      required:
      - idleResourceAssignmentStrategy
    SchedulingPolicyDetail:
      type: object
      properties:
        name:
          type: string
          description: The name of the fair-share scheduling policy.
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the scheduling policy. An example is arn:aws:batch:us-east-1:123456789012:scheduling-policy/HighPriority
            .
        quotaSharePolicy:
          $ref: '#/components/schemas/QuotaSharePolicy'
        fairsharePolicy:
          $ref: '#/components/schemas/FairsharePolicy'
        tags:
          type: object
          additionalProperties:
            type: string
          description: The tags that you apply to the fair-share scheduling policy to categorize and organize your resources.
            Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services resources
            in Amazon Web Services General Reference.
      required:
      - name
      - arn
    SchedulingPolicyListingDetail:
      type: object
      properties:
        arn:
          type: string
          description: Amazon Resource Name (ARN) of the scheduling policy.
      required:
      - arn
    ServerException:
      type: object
      properties:
        message:
          type: string
    ShareAttributes:
      type: object
      properties:
        shareIdentifier:
          type: string
          description: A share identifier or share identifier prefix. If the string ends with an asterisk (*), this entry
            specifies the weight factor to use for share identifiers that start with that prefix. The list of share identifiers
            in a fair-share policy can't overlap. For example, you can't have one that specifies a shareIdentifier of UserA*
            and another that specifies a shareIdentifier of UserA1. There can be no more than 500 share identifiers active
            in a job queue. The string is limited to 255 alphanumeric characters, and can be followed by an asterisk (*).
        weightFactor:
          type: number
          description: The weight factor for the share identifier. The default value is 1.0. A lower value has a higher priority
            for compute resources. For example, jobs that use a share identifier with a weight factor of 0.125 (1/8) get 8
            times the compute resources of jobs that use a share identifier with a weight factor of 1. The smallest supported
            value is 0.0001, and the largest supported value is 999.9999.
      required:
      - shareIdentifier
    UpdateSchedulingPolicyResponse:
      type: object
      properties: {}
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/batch/service/2016-08-10/batch-2016-08-10.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)