{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codebuild/refs/heads/main/json-structure/amazon-codebuild-build-batch-structure.json", "name": "BuildBatch", "description": "Contains information about a batch build.", "type": "object", "properties": { "id": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The identifier of the batch build." } ] }, "arn": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The ARN of the batch build." } ] }, "startTime": { "allOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "description": "The date and time that the batch build started." } ] }, "endTime": { "allOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "description": "The date and time that the batch build ended." } ] }, "currentPhase": { "allOf": [ { "$ref": "#/components/schemas/String" }, { "description": "The current phase of the batch build." } ] }, "buildBatchStatus": { "allOf": [ { "$ref": "#/components/schemas/StatusType" }, { "description": "The status of the batch build." } ] }, "sourceVersion": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The identifier of the version of the source code to be built." } ] }, "resolvedSourceVersion": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "

The identifier of the resolved version of this batch build's source code.

" } ] }, "projectName": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The name of the batch build project." } ] }, "phases": { "allOf": [ { "$ref": "#/components/schemas/BuildBatchPhases" }, { "description": "An array of BuildBatchPhase objects the specify the phases of the batch build." } ] }, "source": { "$ref": "#/components/schemas/ProjectSource" }, "secondarySources": { "allOf": [ { "$ref": "#/components/schemas/ProjectSources" }, { "description": "An array of ProjectSource objects that define the sources for the batch build." } ] }, "secondarySourceVersions": { "allOf": [ { "$ref": "#/components/schemas/ProjectSecondarySourceVersions" }, { "description": "

An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

" } ] }, "artifacts": { "allOf": [ { "$ref": "#/components/schemas/BuildArtifacts" }, { "description": "A BuildArtifacts object the defines the build artifacts for this batch build." } ] }, "secondaryArtifacts": { "allOf": [ { "$ref": "#/components/schemas/BuildArtifactsList" }, { "description": "An array of BuildArtifacts objects the define the build artifacts for this batch build." } ] }, "cache": { "$ref": "#/components/schemas/ProjectCache" }, "environment": { "$ref": "#/components/schemas/ProjectEnvironment" }, "serviceRole": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "The name of a service role used for builds in the batch." } ] }, "logConfig": { "$ref": "#/components/schemas/LogsConfig" }, "buildTimeoutInMinutes": { "allOf": [ { "$ref": "#/components/schemas/WrapperInt" }, { "description": "Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in." } ] }, "queuedTimeoutInMinutes": { "allOf": [ { "$ref": "#/components/schemas/WrapperInt" }, { "description": "Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out." } ] }, "complete": { "allOf": [ { "$ref": "#/components/schemas/Boolean" }, { "description": "Indicates if the batch build is complete." } ] }, "initiator": { "allOf": [ { "$ref": "#/components/schemas/String" }, { "description": "

The entity that started the batch build. Valid values include:

" } ] }, "vpcConfig": { "$ref": "#/components/schemas/VpcConfig" }, "encryptionKey": { "allOf": [ { "$ref": "#/components/schemas/NonEmptyString" }, { "description": "

The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.

You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/<alias-name>).

" } ] }, "buildBatchNumber": { "allOf": [ { "$ref": "#/components/schemas/WrapperLong" }, { "description": "The number of the batch build. For each project, the buildBatchNumber of its first batch build is 1. The buildBatchNumber of each subsequent batch build is incremented by 1. If a batch build is deleted, the buildBatchNumber of other batch builds does not change." } ] }, "fileSystemLocations": { "allOf": [ { "$ref": "#/components/schemas/ProjectFileSystemLocations" }, { "description": "An array of ProjectFileSystemLocation objects for the batch build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System. " } ] }, "buildBatchConfig": { "$ref": "#/components/schemas/ProjectBuildBatchConfig" }, "buildGroups": { "allOf": [ { "$ref": "#/components/schemas/BuildGroups" }, { "description": "An array of BuildGroup objects that define the build groups for the batch build." } ] }, "debugSessionEnabled": { "allOf": [ { "$ref": "#/components/schemas/WrapperBoolean" }, { "description": "Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds." } ] } } }