AWS CodeBuild Codebuild Command Execution API

The Codebuild Command Execution API from AWS CodeBuild — 3 operation(s) for codebuild command execution.

Operations 3

POST /#BatchGetCommandExecutions Batch Get Command Executions #
POST /#ListCommandExecutionsForSandbox List Command Executions For Sandbox #
POST /#StartCommandExecution Start Command Execution #

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-codebuild:aws-codebuild-command-execution-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

aws-codebuild-command-execution-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AWS CodeBuild Command Execution API
  version: '2016-10-06'
  description: Generated from AWS's published Smithy model for AWS CodeBuild. 3 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://codebuild.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
tags:
- name: Command Execution
paths:
  /#BatchGetCommandExecutions:
    post:
      operationId: BatchGetCommandExecutions
      summary: Batch Get Command Executions
      description: Gets information about the command executions.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/BatchGetCommandExecutionsOutput'
        '400':
          description: InvalidInputException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - CodeBuild_20161006.BatchGetCommandExecutions
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/BatchGetCommandExecutionsInput'
      tags:
      - Command Execution
  /#ListCommandExecutionsForSandbox:
    post:
      operationId: ListCommandExecutionsForSandbox
      summary: List Command Executions For Sandbox
      description: Gets a list of command executions for a sandbox.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListCommandExecutionsForSandboxOutput'
        '400':
          description: InvalidInputException; ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - CodeBuild_20161006.ListCommandExecutionsForSandbox
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListCommandExecutionsForSandboxInput'
      tags:
      - Command Execution
  /#StartCommandExecution:
    post:
      operationId: StartCommandExecution
      summary: Start Command Execution
      description: Starts a command execution.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/StartCommandExecutionOutput'
        '400':
          description: InvalidInputException; ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - CodeBuild_20161006.StartCommandExecution
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/StartCommandExecutionInput'
      tags:
      - Command Execution
components:
  schemas:
    LogsLocation:
      type: object
      properties:
        groupName:
          type: string
          description: The name of the CloudWatch Logs group for the build logs.
        streamName:
          type: string
          description: The name of the CloudWatch Logs stream for the build logs.
        deepLink:
          type: string
          description: The URL to an individual build log in CloudWatch Logs. The log stream is created during the PROVISIONING phase of a build and the deeplink will not be valid until it is created.
        s3DeepLink:
          type: string
          description: The URL to a build log in an S3 bucket.
        cloudWatchLogsArn:
          type: string
          description: The ARN of the CloudWatch Logs stream for a build execution. Its format is arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}. The CloudWatch Logs stream is created during the PROVISIONING phase of a build and the ARN will not be valid until it is created. For more information, see Resources Defined by CloudWatch Logs.
        s3LogsArn:
          type: string
          description: The ARN of S3 logs for a build project. Its format is arn:${Partition}:s3:::${BucketName}/${ObjectName}. For more information, see Resources Defined by Amazon S3.
        cloudWatchLogs:
          $ref: '#/components/schemas/CloudWatchLogsConfig'
        s3Logs:
          $ref: '#/components/schemas/S3LogsConfig'
    CloudWatchLogsConfig:
      type: object
      properties:
        status:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'The current status of the logs in CloudWatch Logs for a build project. Valid values are: ENABLED: CloudWatch Logs are enabled for this build project. DISABLED: CloudWatch Logs are not enabled for this build project.'
        groupName:
          type: string
          description: The group name of the logs in CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.
        streamName:
          type: string
          description: The prefix of the stream name of the CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.
      required:
      - status
    S3LogsConfig:
      type: object
      properties:
        status:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'The current status of the S3 build logs. Valid values are: ENABLED: S3 build logs are enabled for this build project. DISABLED: S3 build logs are not enabled for this build project.'
        location:
          type: string
          description: The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is my-bucket, and your path prefix is build-log, then acceptable formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log.
        encryptionDisabled:
          type: boolean
          description: Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.
        bucketOwnerAccess:
          type: string
          enum:
          - NONE
          - READ_ONLY
          - FULL
      required:
      - status
    BatchGetCommandExecutionsInput:
      type: object
      properties:
        sandboxId:
          type: string
          description: A sandboxId or sandboxArn.
        commandExecutionIds:
          type: array
          items:
            type: string
          description: A comma separated list of commandExecutionIds.
      required:
      - sandboxId
      - commandExecutionIds
    StartCommandExecutionOutput:
      type: object
      properties:
        commandExecution:
          $ref: '#/components/schemas/CommandExecution'
    ListCommandExecutionsForSandboxInput:
      type: object
      properties:
        sandboxId:
          type: string
          description: A sandboxId or sandboxArn.
        maxResults:
          type: integer
          description: The maximum number of sandbox records to be retrieved.
        sortOrder:
          type: string
          enum:
          - ASCENDING
          - DESCENDING
          description: The order in which sandbox records should be retrieved.
        nextToken:
          type: string
          description: The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.
      required:
      - sandboxId
    CommandExecution:
      type: object
      properties:
        id:
          type: string
          description: The ID of the command execution.
        sandboxId:
          type: string
          description: A sandboxId.
        submitTime:
          type: string
          format: date-time
          description: When the command execution process was initially submitted, expressed in Unix time format.
        startTime:
          type: string
          format: date-time
          description: When the command execution process started, expressed in Unix time format.
        endTime:
          type: string
          format: date-time
          description: When the command execution process ended, expressed in Unix time format.
        status:
          type: string
          description: The status of the command execution.
        command:
          type: string
          description: The command that needs to be executed.
        type:
          type: string
          enum:
          - SHELL
          description: The command type.
        exitCode:
          type: string
          description: The exit code to return upon completion.
        standardOutputContent:
          type: string
          description: The text written by the command to stdout.
        standardErrContent:
          type: string
          description: The text written by the command to stderr.
        logs:
          $ref: '#/components/schemas/LogsLocation'
        sandboxArn:
          type: string
          description: A sandboxArn.
    BatchGetCommandExecutionsOutput:
      type: object
      properties:
        commandExecutions:
          type: array
          items:
            $ref: '#/components/schemas/CommandExecution'
          description: Information about the requested command executions.
        commandExecutionsNotFound:
          type: array
          items:
            type: string
          description: The IDs of command executions for which information could not be found.
    StartCommandExecutionInput:
      type: object
      properties:
        sandboxId:
          type: string
          description: A sandboxId or sandboxArn.
        command:
          type: string
          description: The command that needs to be executed.
        type:
          type: string
          enum:
          - SHELL
          description: The command type.
      required:
      - sandboxId
      - command
    ListCommandExecutionsForSandboxOutput:
      type: object
      properties:
        commandExecutions:
          type: array
          items:
            $ref: '#/components/schemas/CommandExecution'
          description: Information about the requested command executions.
        nextToken:
          type: string
          description: Information about the next token to get paginated results.
    InvalidInputException:
      type: object
      properties:
        message:
          type: string
  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: codebuild
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/codebuild/service/2016-10-06/codebuild-2016-10-06.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)