View a markdown version of this page

StopBuild - AWS CodeBuild

StopBuild

Attempts to stop running a build.

Request Syntax

{ "id": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

Note

In the following list, the required parameters are described first.

id

The ID of the build.

Type: String

Length Constraints: Minimum length of 1.

Required: Yes

Response Syntax

{ "build": { "arn": "string", "artifacts": { "artifactIdentifier": "string", "bucketOwnerAccess": "string", "encryptionDisabled": boolean, "location": "string", "md5sum": "string", "overrideArtifactName": boolean, "sha256sum": "string" }, "autoRetryConfig": { "autoRetryLimit": number, "autoRetryNumber": number, "nextAutoRetry": "string", "previousAutoRetry": "string" }, "buildBatchArn": "string", "buildComplete": boolean, "buildNumber": number, "buildStatus": "string", "cache": { "cacheNamespace": "string", "location": "string", "modes": [ "string" ], "type": "string" }, "currentPhase": "string", "debugSession": { "sessionEnabled": boolean, "sessionTarget": "string" }, "encryptionKey": "string", "endTime": number, "environment": { "certificate": "string", "computeConfiguration": { "disk": number, "instanceType": "string", "machineType": "string", "memory": number, "vCpu": number }, "computeType": "string", "dockerServer": { "computeType": "string", "securityGroupIds": [ "string" ], "status": { "message": "string", "status": "string" } }, "environmentVariables": [ { "name": "string", "type": "string", "value": "string" } ], "fleet": { "fleetArn": "string" }, "hostKernel": "string", "image": "string", "imagePullCredentialsType": "string", "privilegedMode": boolean, "registryCredential": { "credential": "string", "credentialProvider": "string" }, "type": "string" }, "exportedEnvironmentVariables": [ { "name": "string", "value": "string" } ], "fileSystemLocations": [ { "identifier": "string", "location": "string", "mountOptions": "string", "mountPoint": "string", "type": "string" } ], "id": "string", "initiator": "string", "logs": { "cloudWatchLogs": { "groupName": "string", "status": "string", "streamName": "string" }, "cloudWatchLogsArn": "string", "deepLink": "string", "groupName": "string", "s3DeepLink": "string", "s3Logs": { "bucketOwnerAccess": "string", "encryptionDisabled": boolean, "location": "string", "status": "string" }, "s3LogsArn": "string", "streamName": "string" }, "networkInterface": { "networkInterfaceId": "string", "subnetId": "string" }, "phases": [ { "contexts": [ { "message": "string", "statusCode": "string" } ], "durationInSeconds": number, "endTime": number, "phaseStatus": "string", "phaseType": "string", "startTime": number } ], "projectName": "string", "queuedTimeoutInMinutes": number, "reportArns": [ "string" ], "resolvedSourceVersion": "string", "secondaryArtifacts": [ { "artifactIdentifier": "string", "bucketOwnerAccess": "string", "encryptionDisabled": boolean, "location": "string", "md5sum": "string", "overrideArtifactName": boolean, "sha256sum": "string" } ], "secondarySources": [ { "auth": { "resource": "string", "type": "string" }, "buildspec": "string", "buildStatusConfig": { "context": "string", "targetUrl": "string" }, "gitCloneDepth": number, "gitSubmodulesConfig": { "fetchSubmodules": boolean }, "insecureSsl": boolean, "location": "string", "reportBuildStatus": boolean, "sourceIdentifier": "string", "type": "string" } ], "secondarySourceVersions": [ { "sourceIdentifier": "string", "sourceVersion": "string" } ], "serviceRole": "string", "source": { "auth": { "