AWS SDK for PHP 3.x (original) (raw)

Client: Aws\CodeBuild\CodeBuildClient

Service ID: codebuild

Version: 2016-10-06

This page describes the parameters and results for the operations of the AWS CodeBuild (2016-10-06), and shows how to use the Aws\CodeBuild\CodeBuildClientobject to call the described operations. This documentation is specific to the 2016-10-06 API version of the service.

Operation Summary

Each of the following operations can be created from a client using$client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

BatchDeleteBuilds ( array $params = [] )

Deletes one or more builds.

BatchGetBuildBatches ( array $params = [] )

Retrieves information about one or more batch builds.

BatchGetBuilds ( array $params = [] )

Gets information about one or more builds.

BatchGetCommandExecutions ( array $params = [] )

Gets information about the command executions.

BatchGetFleets ( array $params = [] )

Gets information about one or more compute fleets.

BatchGetProjects ( array $params = [] )

Gets information about one or more build projects.

BatchGetReportGroups ( array $params = [] )

Returns an array of report groups.

BatchGetReports ( array $params = [] )

Returns an array of reports.

BatchGetSandboxes ( array $params = [] )

Gets information about the sandbox status.

CreateFleet ( array $params = [] )

Creates a compute fleet.

CreateProject ( array $params = [] )

Creates a build project.

CreateReportGroup ( array $params = [] )

Creates a report group.

CreateWebhook ( array $params = [] )

For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.

DeleteBuildBatch ( array $params = [] )

Deletes a batch build.

DeleteFleet ( array $params = [] )

Deletes a compute fleet.

DeleteProject ( array $params = [] )

Deletes a build project.

DeleteReport ( array $params = [] )

Deletes a report.

DeleteReportGroup ( array $params = [] )

Deletes a report group.

DeleteResourcePolicy ( array $params = [] )

Deletes a resource policy that is identified by its resource ARN.

DeleteSourceCredentials ( array $params = [] )

Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.

DeleteWebhook ( array $params = [] )

For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.

DescribeCodeCoverages ( array $params = [] )

Retrieves one or more code coverage reports.

DescribeTestCases ( array $params = [] )

Returns a list of details about test cases for a report.

GetReportGroupTrend ( array $params = [] )

Analyzes and accumulates test report values for the specified test reports.

GetResourcePolicy ( array $params = [] )

Gets a resource policy that is identified by its resource ARN.

ImportSourceCredentials ( array $params = [] )

Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

InvalidateProjectCache ( array $params = [] )

Resets the cache for a project.

ListBuildBatches ( array $params = [] )

Retrieves the identifiers of your build batches in the current region.

ListBuildBatchesForProject ( array $params = [] )

Retrieves the identifiers of the build batches for a specific project.

ListBuilds ( array $params = [] )

Gets a list of build IDs, with each build ID representing a single build.

ListBuildsForProject ( array $params = [] )

Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.

ListCommandExecutionsForSandbox ( array $params = [] )

Gets a list of command executions for a sandbox.

ListCuratedEnvironmentImages ( array $params = [] )

Gets information about Docker images that are managed by CodeBuild.

ListFleets ( array $params = [] )

Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.

ListProjects ( array $params = [] )

Gets a list of build project names, with each build project name representing a single build project.

ListReportGroups ( array $params = [] )

Gets a list ARNs for the report groups in the current Amazon Web Services account.

ListReports ( array $params = [] )

Returns a list of ARNs for the reports in the current Amazon Web Services account.

ListReportsForReportGroup ( array $params = [] )

Returns a list of ARNs for the reports that belong to a ReportGroup.

ListSandboxes ( array $params = [] )

Gets a list of sandboxes.

ListSandboxesForProject ( array $params = [] )

Gets a list of sandboxes for a given project.

ListSharedProjects ( array $params = [] )

Gets a list of projects that are shared with other Amazon Web Services accounts or users.

ListSharedReportGroups ( array $params = [] )

Gets a list of report groups that are shared with other Amazon Web Services accounts or users.

ListSourceCredentials ( array $params = [] )

Returns a list of SourceCredentialsInfo objects.

PutResourcePolicy ( array $params = [] )

Stores a resource policy for the ARN of a Project or ReportGroup object.

RetryBuild ( array $params = [] )

Restarts a build.

RetryBuildBatch ( array $params = [] )

Restarts a failed batch build.

StartBuild ( array $params = [] )

Starts running a build with the settings defined in the project.

StartBuildBatch ( array $params = [] )

Starts a batch build for a project.

StartCommandExecution ( array $params = [] )

Starts a command execution.

StartSandbox ( array $params = [] )

Starts a sandbox.

StartSandboxConnection ( array $params = [] )

Starts a sandbox connection.

StopBuild ( array $params = [] )

Attempts to stop running a build.

StopBuildBatch ( array $params = [] )

Stops a running batch build.

StopSandbox ( array $params = [] )

Stops a sandbox.

UpdateFleet ( array $params = [] )

Updates a compute fleet.

UpdateProject ( array $params = [] )

Changes the settings of a build project.

UpdateProjectVisibility ( array $params = [] )

Changes the public visibility for a project.

UpdateReportGroup ( array $params = [] )

Updates a report group.

UpdateWebhook ( array $params = [] )

Updates the webhook associated with an CodeBuild build project.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

DescribeCodeCoverages

DescribeTestCases

ListBuildBatches

ListBuildBatchesForProject

ListBuilds

ListBuildsForProject

ListCommandExecutionsForSandbox

ListFleets

ListProjects

ListReportGroups

ListReports

ListReportsForReportGroup

ListSandboxes

ListSandboxesForProject

ListSharedProjects

ListSharedReportGroups

Operations

BatchDeleteBuilds

result=result = result=client->batchDeleteBuilds([/* ... /]); promise=promise = promise=client->batchDeleteBuildsAsync([/ ... */]);

Deletes one or more builds.

Parameter Syntax

result=result = result=client->batchDeleteBuilds([ 'ids' => ['', ...], // REQUIRED ]);

Parameter Details

Members

ids

Required: Yes

Type: Array of strings

The IDs of the builds to delete.

Result Syntax

[ 'buildsDeleted' => ['', ...], 'buildsNotDeleted' => [ [ 'id' => '', 'statusCode' => '', ], // ... ], ]

Result Details

Members

buildsDeleted

The IDs of the builds that were successfully deleted.

buildsNotDeleted

Type: Array of BuildNotDeleted structures

Information about any builds that could not be successfully deleted.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetBuildBatches

result=result = result=client->batchGetBuildBatches([/* ... /]); promise=promise = promise=client->batchGetBuildBatchesAsync([/ ... */]);

Retrieves information about one or more batch builds.

Parameter Syntax

result=result = result=client->batchGetBuildBatches([ 'ids' => ['', ...], // REQUIRED ]);

Parameter Details

Members

ids

Required: Yes

Type: Array of strings

An array that contains the batch build identifiers to retrieve.

Result Syntax

[ 'buildBatches' => [ [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'buildBatchNumber' => , 'buildBatchStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'buildGroups' => [ [ 'currentBuildSummary' => [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], 'dependsOn' => ['', ...], 'identifier' => '', 'ignoreFailure' => true || false, 'priorBuildSummaryList' => [ [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], // ... ], ], // ... ], 'buildTimeoutInMinutes' => , 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'complete' => true || false, 'currentPhase' => '', 'debugSessionEnabled' => true || false, 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|DOWNLOAD_BATCHSPEC|IN_PROGRESS|COMBINE_ARTIFACTS|SUCCEEDED|FAILED|STOPPED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], // ... ], 'buildBatchesNotFound' => ['', ...], ]

Result Details

Members

buildBatches

Type: Array of BuildBatch structures

An array of BuildBatch objects that represent the retrieved batch builds.

buildBatchesNotFound

An array that contains the identifiers of any batch builds that are not found.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetBuilds

result=result = result=client->batchGetBuilds([/* ... /]); promise=promise = promise=client->batchGetBuildsAsync([/ ... */]);

Gets information about one or more builds.

Parameter Syntax

result=result = result=client->batchGetBuilds([ 'ids' => ['', ...], // REQUIRED ]);

Parameter Details

Members

ids

Required: Yes

Type: Array of strings

The IDs of the builds.

Result Syntax

[ 'builds' => [ [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'autoRetryConfig' => [ 'autoRetryLimit' => , 'autoRetryNumber' => , 'nextAutoRetry' => '', 'previousAutoRetry' => '', ], 'buildBatchArn' => '', 'buildComplete' => true || false, 'buildNumber' => , 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'currentPhase' => '', 'debugSession' => [ 'sessionEnabled' => true || false, 'sessionTarget' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'exportedEnvironmentVariables' => [ [ 'name' => '', 'value' => '', ], // ... ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|QUEUED|PROVISIONING|DOWNLOAD_SOURCE|INSTALL|PRE_BUILD|BUILD|POST_BUILD|UPLOAD_ARTIFACTS|FINALIZING|COMPLETED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], // ... ], 'buildsNotFound' => ['', ...], ]

Result Details

Members

builds

Type: Array of Build structures

Information about the requested builds.

buildsNotFound

The IDs of builds for which information could not be found.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetCommandExecutions

result=result = result=client->batchGetCommandExecutions([/* ... /]); promise=promise = promise=client->batchGetCommandExecutionsAsync([/ ... */]);

Gets information about the command executions.

Parameter Syntax

result=result = result=client->batchGetCommandExecutions([ 'commandExecutionIds' => ['', ...], // REQUIRED 'sandboxId' => '', // REQUIRED ]);

Parameter Details

Members

commandExecutionIds

Required: Yes

Type: Array of strings

A comma separated list of commandExecutionIds.

sandboxId

Required: Yes

Type: string

A sandboxId or sandboxArn.

Result Syntax

[ 'commandExecutions' => [ [ 'command' => '', 'endTime' => , 'exitCode' => '', 'id' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'sandboxArn' => '', 'sandboxId' => '', 'standardErrContent' => '', 'standardOutputContent' => '', 'startTime' => , 'status' => '', 'submitTime' => , 'type' => 'SHELL', ], // ... ], 'commandExecutionsNotFound' => ['', ...], ]

Result Details

Members

commandExecutions

Type: Array of CommandExecution structures

Information about the requested command executions.

commandExecutionsNotFound

The IDs of command executions for which information could not be found.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetFleets

result=result = result=client->batchGetFleets([/* ... /]); promise=promise = promise=client->batchGetFleetsAsync([/ ... */]);

Gets information about one or more compute fleets.

Parameter Syntax

result=result = result=client->batchGetFleets([ 'names' => ['', ...], // REQUIRED ]);

Parameter Details

Members

names

Required: Yes

Type: Array of strings

The names or ARNs of the compute fleets.

Result Syntax

[ 'fleets' => [ [ 'arn' => '', 'baseCapacity' => , 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'created' => , 'environmentType' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', 'fleetServiceRole' => '', 'id' => '', 'imageId' => '', 'lastModified' => , 'name' => '', 'overflowBehavior' => 'QUEUE|ON_DEMAND', 'proxyConfiguration' => [ 'defaultBehavior' => 'ALLOW_ALL|DENY_ALL', 'orderedProxyRules' => [ [ 'effect' => 'ALLOW|DENY', 'entities' => ['', ...], 'type' => 'DOMAIN|IP', ], // ... ], ], 'scalingConfiguration' => [ 'desiredCapacity' => , 'maxCapacity' => , 'scalingType' => 'TARGET_TRACKING_SCALING', 'targetTrackingScalingConfigs' => [ [ 'metricType' => 'FLEET_UTILIZATION_RATE', 'targetValue' => , ], // ... ], ], 'status' => [ 'context' => 'CREATE_FAILED|UPDATE_FAILED|ACTION_REQUIRED|PENDING_DELETION|INSUFFICIENT_CAPACITY', 'message' => '', 'statusCode' => 'CREATING|UPDATING|ROTATING|PENDING_DELETION|DELETING|CREATE_FAILED|UPDATE_ROLLBACK_FAILED|ACTIVE', ], 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], // ... ], 'fleetsNotFound' => ['', ...], ]

Result Details

Members

fleets

Type: Array of Fleet structures

Information about the requested compute fleets.

fleetsNotFound

The names of compute fleets for which information could not be found.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetProjects

result=result = result=client->batchGetProjects([/* ... /]); promise=promise = promise=client->batchGetProjectsAsync([/ ... */]);

Gets information about one or more build projects.

Parameter Syntax

result=result = result=client->batchGetProjects([ 'names' => ['', ...], // REQUIRED ]);

Parameter Details

Members

names

Required: Yes

Type: Array of strings

The names or ARNs of the build projects. To get information about a project shared with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project using its name.

Result Syntax

[ 'projects' => [ [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'autoRetryLimit' => , 'badge' => [ 'badgeEnabled' => true || false, 'badgeRequestUrl' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'concurrentBuildLimit' => , 'created' => , 'description' => '', 'encryptionKey' => '', 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'lastModified' => , 'logsConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'name' => '', 'projectVisibility' => 'PUBLIC_READ|PRIVATE', 'publicProjectAlias' => '', 'queuedTimeoutInMinutes' => , 'resourceAccessRole' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], 'webhook' => [ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', ], // ... ], // ... ], 'lastModifiedSecret' => , 'manualCreation' => true || false, 'payloadUrl' => '', 'scopeConfiguration' => [ 'domain' => '', 'name' => '', 'scope' => 'GITHUB_ORGANIZATION|GITHUB_GLOBAL|GITLAB_GROUP', ], 'secret' => '', 'status' => 'CREATING|CREATE_FAILED|ACTIVE|DELETING', 'statusMessage' => '', 'url' => '', ], ], // ... ], 'projectsNotFound' => ['', ...], ]

Result Details

Members

projects

Type: Array of Project structures

Information about the requested build projects.

projectsNotFound

The names of build projects for which information could not be found.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetReportGroups

result=result = result=client->batchGetReportGroups([/* ... /]); promise=promise = promise=client->batchGetReportGroupsAsync([/ ... */]);

Returns an array of report groups.

Parameter Syntax

result=result = result=client->batchGetReportGroups([ 'reportGroupArns' => ['', ...], // REQUIRED ]);

Parameter Details

Members

reportGroupArns

Required: Yes

Type: Array of strings

An array of report group ARNs that identify the report groups to return.

Result Syntax

[ 'reportGroups' => [ [ 'arn' => '', 'created' => , 'exportConfig' => [ 'exportConfigType' => 'S3|NO_EXPORT', 's3Destination' => [ 'bucket' => '', 'bucketOwner' => '', 'encryptionDisabled' => true || false, 'encryptionKey' => '', 'packaging' => 'ZIP|NONE', 'path' => '', ], ], 'lastModified' => , 'name' => '', 'status' => 'ACTIVE|DELETING', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'type' => 'TEST|CODE_COVERAGE', ], // ... ], 'reportGroupsNotFound' => ['', ...], ]

Result Details

Members

reportGroups

Type: Array of ReportGroup structures

The array of report groups returned by BatchGetReportGroups.

reportGroupsNotFound

An array of ARNs passed to BatchGetReportGroups that are not associated with a ReportGroup.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetReports

result=result = result=client->batchGetReports([/* ... /]); promise=promise = promise=client->batchGetReportsAsync([/ ... */]);

Returns an array of reports.

Parameter Syntax

result=result = result=client->batchGetReports([ 'reportArns' => ['', ...], // REQUIRED ]);

Parameter Details

Members

reportArns

Required: Yes

Type: Array of strings

An array of ARNs that identify the Report objects to return.

Result Syntax

[ 'reports' => [ [ 'arn' => '', 'codeCoverageSummary' => [ 'branchCoveragePercentage' => , 'branchesCovered' => , 'branchesMissed' => , 'lineCoveragePercentage' => , 'linesCovered' => , 'linesMissed' => , ], 'created' => , 'executionId' => '', 'expired' => , 'exportConfig' => [ 'exportConfigType' => 'S3|NO_EXPORT', 's3Destination' => [ 'bucket' => '', 'bucketOwner' => '', 'encryptionDisabled' => true || false, 'encryptionKey' => '', 'packaging' => 'ZIP|NONE', 'path' => '', ], ], 'name' => '', 'reportGroupArn' => '', 'status' => 'GENERATING|SUCCEEDED|FAILED|INCOMPLETE|DELETING', 'testSummary' => [ 'durationInNanoSeconds' => , 'statusCounts' => [, ...], 'total' => , ], 'truncated' => true || false, 'type' => 'TEST|CODE_COVERAGE', ], // ... ], 'reportsNotFound' => ['', ...], ]

Result Details

Members

reports

Type: Array of Report structures

The array of Report objects returned by BatchGetReports.

reportsNotFound

An array of ARNs passed to BatchGetReportGroups that are not associated with a Report.

Errors

InvalidInputException:

The input value that was provided is not valid.

BatchGetSandboxes

result=result = result=client->batchGetSandboxes([/* ... /]); promise=promise = promise=client->batchGetSandboxesAsync([/ ... */]);

Gets information about the sandbox status.

Parameter Syntax

result=result = result=client->batchGetSandboxes([ 'ids' => ['', ...], // REQUIRED ]);

Parameter Details

Members

ids

Required: Yes

Type: Array of strings

A comma separated list of sandboxIds or sandboxArns.

Result Syntax

[ 'sandboxes' => [ [ 'arn' => '', 'currentSession' => [ 'currentPhase' => '', 'endTime' => , 'id' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => '', 'startTime' => , ], // ... ], 'resolvedSourceVersion' => '', 'startTime' => , 'status' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'requestTime' => , 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'status' => '', 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], // ... ], 'sandboxesNotFound' => ['', ...], ]

Result Details

Members

sandboxes

Type: Array of Sandbox structures

Information about the requested sandboxes.

sandboxesNotFound

The IDs of sandboxes for which information could not be found.

Errors

InvalidInputException:

The input value that was provided is not valid.

CreateFleet

result=result = result=client->createFleet([/* ... /]); promise=promise = promise=client->createFleetAsync([/ ... */]);

Creates a compute fleet.

Parameter Syntax

result=result = result=client->createFleet([ 'baseCapacity' => , // REQUIRED 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', // REQUIRED 'environmentType' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', // REQUIRED 'fleetServiceRole' => '', 'imageId' => '', 'name' => '', // REQUIRED 'overflowBehavior' => 'QUEUE|ON_DEMAND', 'proxyConfiguration' => [ 'defaultBehavior' => 'ALLOW_ALL|DENY_ALL', 'orderedProxyRules' => [ [ 'effect' => 'ALLOW|DENY', // REQUIRED 'entities' => ['', ...], // REQUIRED 'type' => 'DOMAIN|IP', // REQUIRED ], // ... ], ], 'scalingConfiguration' => [ 'maxCapacity' => , 'scalingType' => 'TARGET_TRACKING_SCALING', 'targetTrackingScalingConfigs' => [ [ 'metricType' => 'FLEET_UTILIZATION_RATE', 'targetValue' => , ], // ... ], ], 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ]);

Parameter Details

Members

baseCapacity

The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.

computeConfiguration

Type: ComputeConfiguration structure

The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

computeType

Required: Yes

Type: string

Information about the compute resources the compute fleet uses. Available values include:

If you use BUILD_GENERAL1_SMALL:

If you use BUILD_GENERAL1_LARGE:

For more information, see On-demand environment types in the CodeBuild User Guide.

environmentType

Required: Yes

Type: string

The environment type of the compute fleet.

For more information, see Build environment compute types in the CodeBuild user guide.

fleetServiceRole

imageId

The Amazon Machine Image (AMI) of the compute fleet.

name

Required: Yes

Type: string

The name of the compute fleet.

overflowBehavior

The compute fleet overflow behavior.

proxyConfiguration

Type: ProxyConfiguration structure

The proxy configuration of the compute fleet.

scalingConfiguration

Type: ScalingConfigurationInput structure

The scaling configuration of the compute fleet.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this compute fleet.

These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.

vpcConfig

Type: VpcConfig structure

Information about the VPC configuration that CodeBuild accesses.

Result Syntax

[ 'fleet' => [ 'arn' => '', 'baseCapacity' => , 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'created' => , 'environmentType' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', 'fleetServiceRole' => '', 'id' => '', 'imageId' => '', 'lastModified' => , 'name' => '', 'overflowBehavior' => 'QUEUE|ON_DEMAND', 'proxyConfiguration' => [ 'defaultBehavior' => 'ALLOW_ALL|DENY_ALL', 'orderedProxyRules' => [ [ 'effect' => 'ALLOW|DENY', 'entities' => ['', ...], 'type' => 'DOMAIN|IP', ], // ... ], ], 'scalingConfiguration' => [ 'desiredCapacity' => , 'maxCapacity' => , 'scalingType' => 'TARGET_TRACKING_SCALING', 'targetTrackingScalingConfigs' => [ [ 'metricType' => 'FLEET_UTILIZATION_RATE', 'targetValue' => , ], // ... ], ], 'status' => [ 'context' => 'CREATE_FAILED|UPDATE_FAILED|ACTION_REQUIRED|PENDING_DELETION|INSUFFICIENT_CAPACITY', 'message' => '', 'statusCode' => 'CREATING|UPDATING|ROTATING|PENDING_DELETION|DELETING|CREATE_FAILED|UPDATE_ROLLBACK_FAILED|ACTIVE', ], 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

fleet

Information about the compute fleet

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceAlreadyExistsException:

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

CreateProject

result=result = result=client->createProject([/* ... /]); promise=promise = promise=client->createProjectAsync([/ ... */]);

Creates a build project.

Parameter Syntax

result=result = result=client->createProject([ 'artifacts' => [ // REQUIRED 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], 'autoRetryLimit' => , 'badgeEnabled' => true || false, 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', // REQUIRED ], 'concurrentBuildLimit' => , 'description' => '', 'encryptionKey' => '', 'environment' => [ // REQUIRED 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', // REQUIRED 'environmentVariables' => [ [ 'name' => '', // REQUIRED 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', // REQUIRED ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', // REQUIRED 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', // REQUIRED 'credentialProvider' => 'SECRETS_MANAGER', // REQUIRED ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', // REQUIRED ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'logsConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED ], ], 'name' => '', // REQUIRED 'queuedTimeoutInMinutes' => , 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', // REQUIRED 'sourceVersion' => '', // REQUIRED ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', // REQUIRED ], // ... ], 'serviceRole' => '', // REQUIRED 'source' => [ // REQUIRED 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', // REQUIRED ], 'sourceVersion' => '', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ]);

Parameter Details

Members

artifacts

Required: Yes

Type: ProjectArtifacts structure

Information about the build output artifacts for the build project.

autoRetryLimit

The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

badgeEnabled

Set this to true to generate a publicly accessible URL for your project's build badge.

buildBatchConfig

Type: ProjectBuildBatchConfig structure

cache

Type: ProjectCache structure

Stores recently used information so that it can be quickly accessed at a later time.

concurrentBuildLimit

The maximum number of concurrent builds that are allowed for this project.

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

description

A description that makes the build project easy to identify.

encryptionKey

The Key Management Service customer master key (CMK) to be used for encrypting the 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>).

environment

Required: Yes

Type: ProjectEnvironment structure

Information about the build environment for the build project.

fileSystemLocations

Type: Array of ProjectFileSystemLocation structures

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

logsConfig

Type: LogsConfig structure

Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.

name

Required: Yes

Type: string

The name of the build project.

queuedTimeoutInMinutes

The number of minutes a build is allowed to be queued before it times out.

secondaryArtifacts

Type: Array of ProjectArtifacts structures

An array of ProjectArtifacts objects.

secondarySourceVersions

Type: Array of ProjectSourceVersion structures

An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take precedence over these secondarySourceVersions (at the project level).

secondarySources

Type: Array of ProjectSource structures

An array of ProjectSource objects.

serviceRole

Required: Yes

Type: string

The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.

source

Required: Yes

Type: ProjectSource structure

Information about the build input source code for the build project.

sourceVersion

A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:

If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this build project.

These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.

timeoutInMinutes

How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.

vpcConfig

Type: VpcConfig structure

VpcConfig enables CodeBuild to access resources in an Amazon VPC.

If you're using compute fleets during project creation, do not provide vpcConfig.

Result Syntax

[ 'project' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'autoRetryLimit' => , 'badge' => [ 'badgeEnabled' => true || false, 'badgeRequestUrl' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'concurrentBuildLimit' => , 'created' => , 'description' => '', 'encryptionKey' => '', 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'lastModified' => , 'logsConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'name' => '', 'projectVisibility' => 'PUBLIC_READ|PRIVATE', 'publicProjectAlias' => '', 'queuedTimeoutInMinutes' => , 'resourceAccessRole' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], 'webhook' => [ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', ], // ... ], // ... ], 'lastModifiedSecret' => , 'manualCreation' => true || false, 'payloadUrl' => '', 'scopeConfiguration' => [ 'domain' => '', 'name' => '', 'scope' => 'GITHUB_ORGANIZATION|GITHUB_GLOBAL|GITLAB_GROUP', ], 'secret' => '', 'status' => 'CREATING|CREATE_FAILED|ACTIVE|DELETING', 'statusMessage' => '', 'url' => '', ], ], ]

Result Details

Members

project

Information about the build project that was created.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceAlreadyExistsException:

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

CreateReportGroup

result=result = result=client->createReportGroup([/* ... /]); promise=promise = promise=client->createReportGroupAsync([/ ... */]);

Creates a report group. A report group contains a collection of reports.

Parameter Syntax

result=result = result=client->createReportGroup([ 'exportConfig' => [ // REQUIRED 'exportConfigType' => 'S3|NO_EXPORT', 's3Destination' => [ 'bucket' => '', 'bucketOwner' => '', 'encryptionDisabled' => true || false, 'encryptionKey' => '', 'packaging' => 'ZIP|NONE', 'path' => '', ], ], 'name' => '', // REQUIRED 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'type' => 'TEST|CODE_COVERAGE', // REQUIRED ]);

Parameter Details

Members

exportConfig

Required: Yes

Type: ReportExportConfig structure

A ReportExportConfig object that contains information about where the report group test results are exported.

name

Required: Yes

Type: string

The name of the report group.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this report group.

These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.

type

Required: Yes

Type: string

The type of report group.

Result Syntax

[ 'reportGroup' => [ 'arn' => '', 'created' => , 'exportConfig' => [ 'exportConfigType' => 'S3|NO_EXPORT', 's3Destination' => [ 'bucket' => '', 'bucketOwner' => '', 'encryptionDisabled' => true || false, 'encryptionKey' => '', 'packaging' => 'ZIP|NONE', 'path' => '', ], ], 'lastModified' => , 'name' => '', 'status' => 'ACTIVE|DELETING', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'type' => 'TEST|CODE_COVERAGE', ], ]

Result Details

Members

reportGroup

Type: ReportGroup structure

Information about the report group that was created.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceAlreadyExistsException:

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

CreateWebhook

result=result = result=client->createWebhook([/* ... /]); promise=promise = promise=client->createWebhookAsync([/ ... */]);

For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.

If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.

Parameter Syntax

result=result = result=client->createWebhook([ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', // REQUIRED 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', // REQUIRED ], // ... ], // ... ], 'manualCreation' => true || false, 'projectName' => '', // REQUIRED 'scopeConfiguration' => [ 'domain' => '', 'name' => '', // REQUIRED 'scope' => 'GITHUB_ORGANIZATION|GITHUB_GLOBAL|GITLAB_GROUP', // REQUIRED ], ]);

Parameter Details

Members

branchFilter

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

It is recommended that you use filterGroups instead of branchFilter.

buildType

Specifies the type of build this webhook will trigger.

RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

filterGroups

Type: Array of WebhookFilter structuress

An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At least one WebhookFilter in the array must specify EVENT as its type.

For a build to be triggered, at least one filter group in the filterGroups array must pass. For a filter group to pass, each of its filters must pass.

manualCreation

If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub.

manualCreation is only available for GitHub webhooks.

projectName

Required: Yes

Type: string

The name of the CodeBuild project.

scopeConfiguration

Type: ScopeConfiguration structure

The scope configuration for global or organization webhooks.

Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.

Result Syntax

[ 'webhook' => [ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', ], // ... ], // ... ], 'lastModifiedSecret' => , 'manualCreation' => true || false, 'payloadUrl' => '', 'scopeConfiguration' => [ 'domain' => '', 'name' => '', 'scope' => 'GITHUB_ORGANIZATION|GITHUB_GLOBAL|GITLAB_GROUP', ], 'secret' => '', 'status' => 'CREATING|CREATE_FAILED|ACTIVE|DELETING', 'statusMessage' => '', 'url' => '', ], ]

Result Details

Members

webhook

Information about a webhook that connects repository events to a build project in CodeBuild.

Errors

InvalidInputException:

The input value that was provided is not valid.

OAuthProviderException:

There was a problem with the underlying OAuth provider.

ResourceAlreadyExistsException:

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

DeleteBuildBatch

result=result = result=client->deleteBuildBatch([/* ... /]); promise=promise = promise=client->deleteBuildBatchAsync([/ ... */]);

Deletes a batch build.

Parameter Syntax

result=result = result=client->deleteBuildBatch([ 'id' => '', // REQUIRED ]);

Parameter Details

Members

id

Required: Yes

Type: string

The identifier of the batch build to delete.

Result Syntax

[ 'buildsDeleted' => ['', ...], 'buildsNotDeleted' => [ [ 'id' => '', 'statusCode' => '', ], // ... ], 'statusCode' => '', ]

Result Details

Members

buildsDeleted

An array of strings that contain the identifiers of the builds that were deleted.

buildsNotDeleted

Type: Array of BuildNotDeleted structures

An array of BuildNotDeleted objects that specify the builds that could not be deleted.

statusCode

The status code.

Errors

InvalidInputException:

The input value that was provided is not valid.

DeleteFleet

result=result = result=client->deleteFleet([/* ... /]); promise=promise = promise=client->deleteFleetAsync([/ ... */]);

Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.

Parameter Syntax

result=result = result=client->deleteFleet([ 'arn' => '', // REQUIRED ]);

Parameter Details

Members

arn

Required: Yes

Type: string

The ARN of the compute fleet.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

DeleteProject

result=result = result=client->deleteProject([/* ... /]); promise=promise = promise=client->deleteProjectAsync([/ ... */]);

Deletes a build project. When you delete a project, its builds are not deleted.

Parameter Syntax

result=result = result=client->deleteProject([ 'name' => '', // REQUIRED ]);

Parameter Details

Members

name

Required: Yes

Type: string

The name of the build project.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

DeleteReport

result=result = result=client->deleteReport([/* ... /]); promise=promise = promise=client->deleteReportAsync([/ ... */]);

Deletes a report.

Parameter Syntax

result=result = result=client->deleteReport([ 'arn' => '', // REQUIRED ]);

Parameter Details

Members

arn

Required: Yes

Type: string

The ARN of the report to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

DeleteReportGroup

result=result = result=client->deleteReportGroup([/* ... /]); promise=promise = promise=client->deleteReportGroupAsync([/ ... */]);

Deletes a report group. Before you delete a report group, you must delete its reports.

Parameter Syntax

result=result = result=client->deleteReportGroup([ 'arn' => '', // REQUIRED 'deleteReports' => true || false, ]);

Parameter Details

Members

arn

Required: Yes

Type: string

The ARN of the report group to delete.

deleteReports

If true, deletes any reports that belong to a report group before deleting the report group.

If false, you must delete any reports in the report group. Use ListReportsForReportGroup to get the reports in a report group. Use DeleteReport to delete the reports. If you call DeleteReportGroup for a report group that contains one or more reports, an exception is thrown.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

DeleteResourcePolicy

result=result = result=client->deleteResourcePolicy([/* ... /]); promise=promise = promise=client->deleteResourcePolicyAsync([/ ... */]);

Deletes a resource policy that is identified by its resource ARN.

Parameter Syntax

result=result = result=client->deleteResourcePolicy([ 'resourceArn' => '', // REQUIRED ]);

Parameter Details

Members

resourceArn

Required: Yes

Type: string

The ARN of the resource that is associated with the resource policy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

DeleteSourceCredentials

result=result = result=client->deleteSourceCredentials([/* ... /]); promise=promise = promise=client->deleteSourceCredentialsAsync([/ ... */]);

Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.

Parameter Syntax

result=result = result=client->deleteSourceCredentials([ 'arn' => '', // REQUIRED ]);

Parameter Details

Members

arn

Required: Yes

Type: string

The Amazon Resource Name (ARN) of the token.

Result Syntax

[ 'arn' => '', ]

Result Details

Members

arn

The Amazon Resource Name (ARN) of the token.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

DeleteWebhook

result=result = result=client->deleteWebhook([/* ... /]); promise=promise = promise=client->deleteWebhookAsync([/ ... */]);

For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.

Parameter Syntax

result=result = result=client->deleteWebhook([ 'projectName' => '', // REQUIRED ]);

Parameter Details

Members

projectName

Required: Yes

Type: string

The name of the CodeBuild project.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

OAuthProviderException:

There was a problem with the underlying OAuth provider.

DescribeCodeCoverages

result=result = result=client->describeCodeCoverages([/* ... /]); promise=promise = promise=client->describeCodeCoveragesAsync([/ ... */]);

Retrieves one or more code coverage reports.

Parameter Syntax

result=result = result=client->describeCodeCoverages([ 'maxLineCoveragePercentage' => , 'maxResults' => , 'minLineCoveragePercentage' => , 'nextToken' => '', 'reportArn' => '', // REQUIRED 'sortBy' => 'LINE_COVERAGE_PERCENTAGE|FILE_PATH', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxLineCoveragePercentage

The maximum line coverage percentage to report.

maxResults

The maximum number of results to return.

minLineCoveragePercentage

The minimum line coverage percentage to report.

nextToken

The nextToken value returned from a previous call to DescribeCodeCoverages. This specifies the next item to return. To return the beginning of the list, exclude this parameter.

reportArn

Required: Yes

Type: string

The ARN of the report for which test cases are returned.

sortBy

Specifies how the results are sorted. Possible values are:

FILE_PATH

The results are sorted by file path.

LINE_COVERAGE_PERCENTAGE

The results are sorted by the percentage of lines that are covered.

sortOrder

Specifies if the results are sorted in ascending or descending order.

Result Syntax

[ 'codeCoverages' => [ [ 'branchCoveragePercentage' => , 'branchesCovered' => , 'branchesMissed' => , 'expired' => , 'filePath' => '', 'id' => '', 'lineCoveragePercentage' => , 'linesCovered' => , 'linesMissed' => , 'reportARN' => '', ], // ... ], 'nextToken' => '', ]

Result Details

Members

codeCoverages

Type: Array of CodeCoverage structures

An array of CodeCoverage objects that contain the results.

nextToken

If there are more items to return, this contains a token that is passed to a subsequent call to DescribeCodeCoverages to retrieve the next set of items.

Errors

InvalidInputException:

The input value that was provided is not valid.

DescribeTestCases

result=result = result=client->describeTestCases([/* ... /]); promise=promise = promise=client->describeTestCasesAsync([/ ... */]);

Returns a list of details about test cases for a report.

Parameter Syntax

result=result = result=client->describeTestCases([ 'filter' => [ 'keyword' => '', 'status' => '', ], 'maxResults' => , 'nextToken' => '', 'reportArn' => '', // REQUIRED ]);

Parameter Details

Members

filter

Type: TestCaseFilter structure

A TestCaseFilter object used to filter the returned reports.

maxResults

The maximum number of paginated test cases returned per response. Use nextToken to iterate pages in the list of returned TestCase objects. The default value is 100.

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

reportArn

Required: Yes

Type: string

The ARN of the report for which test cases are returned.

Result Syntax

[ 'nextToken' => '', 'testCases' => [ [ 'durationInNanoSeconds' => , 'expired' => , 'message' => '', 'name' => '', 'prefix' => '', 'reportArn' => '', 'status' => '', 'testRawDataPath' => '', 'testSuiteName' => '', ], // ... ], ]

Result Details

Members

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

testCases

Type: Array of TestCase structures

The returned list of test cases.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

GetReportGroupTrend

result=result = result=client->getReportGroupTrend([/* ... /]); promise=promise = promise=client->getReportGroupTrendAsync([/ ... */]);

Analyzes and accumulates test report values for the specified test reports.

Parameter Syntax

result=result = result=client->getReportGroupTrend([ 'numOfReports' => , 'reportGroupArn' => '', // REQUIRED 'trendField' => 'PASS_RATE|DURATION|TOTAL|LINE_COVERAGE|LINES_COVERED|LINES_MISSED|BRANCH_COVERAGE|BRANCHES_COVERED|BRANCHES_MISSED', // REQUIRED ]);

Parameter Details

Members

numOfReports

The number of reports to analyze. This operation always retrieves the most recent reports.

If this parameter is omitted, the most recent 100 reports are analyzed.

reportGroupArn

Required: Yes

Type: string

The ARN of the report group that contains the reports to analyze.

trendField

Required: Yes

Type: string

The test report value to accumulate. This must be one of the following values:

Test reports:

DURATION

Accumulate the test run times for the specified reports.

PASS_RATE

Accumulate the percentage of tests that passed for the specified test reports.

TOTAL

Accumulate the total number of tests for the specified test reports.

Code coverage reports:

BRANCH_COVERAGE

Accumulate the branch coverage percentages for the specified test reports.

BRANCHES_COVERED

Accumulate the branches covered values for the specified test reports.

BRANCHES_MISSED

Accumulate the branches missed values for the specified test reports.

LINE_COVERAGE

Accumulate the line coverage percentages for the specified test reports.

LINES_COVERED

Accumulate the lines covered values for the specified test reports.

LINES_MISSED

Accumulate the lines not covered values for the specified test reports.

Result Syntax

[ 'rawData' => [ [ 'data' => '', 'reportArn' => '', ], // ... ], 'stats' => [ 'average' => '', 'max' => '', 'min' => '', ], ]

Result Details

Members

rawData

Type: Array of ReportWithRawData structures

An array that contains the raw data for each report.

stats

Type: ReportGroupTrendStats structure

Contains the accumulated trend data.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

GetResourcePolicy

result=result = result=client->getResourcePolicy([/* ... /]); promise=promise = promise=client->getResourcePolicyAsync([/ ... */]);

Gets a resource policy that is identified by its resource ARN.

Parameter Syntax

result=result = result=client->getResourcePolicy([ 'resourceArn' => '', // REQUIRED ]);

Parameter Details

Members

resourceArn

Required: Yes

Type: string

The ARN of the resource that is associated with the resource policy.

Result Syntax

[ 'policy' => '', ]

Result Details

Members

policy

The resource policy for the resource identified by the input ARN parameter.

Errors

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

InvalidInputException:

The input value that was provided is not valid.

ImportSourceCredentials

result=result = result=client->importSourceCredentials([/* ... /]); promise=promise = promise=client->importSourceCredentialsAsync([/ ... */]);

Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

Parameter Syntax

result=result = result=client->importSourceCredentials([ 'authType' => 'OAUTH|BASIC_AUTH|PERSONAL_ACCESS_TOKEN|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED 'serverType' => 'GITHUB|BITBUCKET|GITHUB_ENTERPRISE|GITLAB|GITLAB_SELF_MANAGED', // REQUIRED 'shouldOverwrite' => true || false, 'token' => '', // REQUIRED 'username' => '', ]);

Parameter Details

Members

authType

Required: Yes

Type: string

The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

serverType

Required: Yes

Type: string

The source provider used for this project.

shouldOverwrite

Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

token

Required: Yes

Type: string

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.

username

The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

Result Syntax

[ 'arn' => '', ]

Result Details

Members

arn

The Amazon Resource Name (ARN) of the token.

Errors

InvalidInputException:

The input value that was provided is not valid.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

ResourceAlreadyExistsException:

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

InvalidateProjectCache

result=result = result=client->invalidateProjectCache([/* ... /]); promise=promise = promise=client->invalidateProjectCacheAsync([/ ... */]);

Resets the cache for a project.

Parameter Syntax

result=result = result=client->invalidateProjectCache([ 'projectName' => '', // REQUIRED ]);

Parameter Details

Members

projectName

Required: Yes

Type: string

The name of the CodeBuild build project that the cache is reset for.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

ListBuildBatches

result=result = result=client->listBuildBatches([/* ... /]); promise=promise = promise=client->listBuildBatchesAsync([/ ... */]);

Retrieves the identifiers of your build batches in the current region.

Parameter Syntax

result=result = result=client->listBuildBatches([ 'filter' => [ 'status' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', ], 'maxResults' => , 'nextToken' => '', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

filter

Type: BuildBatchFilter structure

A BuildBatchFilter object that specifies the filters for the search.

maxResults

The maximum number of results to return.

nextToken

The nextToken value returned from a previous call to ListBuildBatches. This specifies the next item to return. To return the beginning of the list, exclude this parameter.

sortOrder

Specifies the sort order of the returned items. Valid values include:

Result Syntax

[ 'ids' => ['', ...], 'nextToken' => '', ]

Result Details

Members

ids

An array of strings that contains the batch build identifiers.

nextToken

If there are more items to return, this contains a token that is passed to a subsequent call to ListBuildBatches to retrieve the next set of items.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListBuildBatchesForProject

result=result = result=client->listBuildBatchesForProject([/* ... /]); promise=promise = promise=client->listBuildBatchesForProjectAsync([/ ... */]);

Retrieves the identifiers of the build batches for a specific project.

Parameter Syntax

result=result = result=client->listBuildBatchesForProject([ 'filter' => [ 'status' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', ], 'maxResults' => , 'nextToken' => '', 'projectName' => '', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

filter

Type: BuildBatchFilter structure

A BuildBatchFilter object that specifies the filters for the search.

maxResults

The maximum number of results to return.

nextToken

The nextToken value returned from a previous call to ListBuildBatchesForProject. This specifies the next item to return. To return the beginning of the list, exclude this parameter.

projectName

The name of the project.

sortOrder

Specifies the sort order of the returned items. Valid values include:

Result Syntax

[ 'ids' => ['', ...], 'nextToken' => '', ]

Result Details

Members

ids

An array of strings that contains the batch build identifiers.

nextToken

If there are more items to return, this contains a token that is passed to a subsequent call to ListBuildBatchesForProject to retrieve the next set of items.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

ListBuilds

result=result = result=client->listBuilds([/* ... /]); promise=promise = promise=client->listBuildsAsync([/ ... */]);

Gets a list of build IDs, with each build ID representing a single build.

Parameter Syntax

result=result = result=client->listBuilds([ 'nextToken' => '', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

nextToken

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortOrder

The order to list build IDs. Valid values include:

Result Syntax

[ 'ids' => ['', ...], 'nextToken' => '', ]

Result Details

Members

ids

A list of build IDs, with each build ID representing a single build.

nextToken

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListBuildsForProject

result=result = result=client->listBuildsForProject([/* ... /]); promise=promise = promise=client->listBuildsForProjectAsync([/ ... */]);

Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.

Parameter Syntax

result=result = result=client->listBuildsForProject([ 'nextToken' => '', 'projectName' => '', // REQUIRED 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

nextToken

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

projectName

Required: Yes

Type: string

The name of the CodeBuild project.

sortOrder

The order to sort the results in. The results are sorted by build number, not the build identifier. If this is not specified, the results are sorted in descending order.

Valid values include:

If the project has more than 100 builds, setting the sort order will result in an error.

Result Syntax

[ 'ids' => ['', ...], 'nextToken' => '', ]

Result Details

Members

ids

A list of build identifiers for the specified build project, with each build ID representing a single build.

nextToken

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

ListCommandExecutionsForSandbox

result=result = result=client->listCommandExecutionsForSandbox([/* ... /]); promise=promise = promise=client->listCommandExecutionsForSandboxAsync([/ ... */]);

Gets a list of command executions for a sandbox.

Parameter Syntax

result=result = result=client->listCommandExecutionsForSandbox([ 'maxResults' => , 'nextToken' => '', 'sandboxId' => '', // REQUIRED 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of sandbox records to be retrieved.

nextToken

The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.

sandboxId

Required: Yes

Type: string

A sandboxId or sandboxArn.

sortOrder

The order in which sandbox records should be retrieved.

Result Syntax

[ 'commandExecutions' => [ [ 'command' => '', 'endTime' => , 'exitCode' => '', 'id' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'sandboxArn' => '', 'sandboxId' => '', 'standardErrContent' => '', 'standardOutputContent' => '', 'startTime' => , 'status' => '', 'submitTime' => , 'type' => 'SHELL', ], // ... ], 'nextToken' => '', ]

Result Details

Members

commandExecutions

Type: Array of CommandExecution structures

Information about the requested command executions.

nextToken

Information about the next token to get paginated results.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

ListCuratedEnvironmentImages

result=result = result=client->listCuratedEnvironmentImages([/* ... /]); promise=promise = promise=client->listCuratedEnvironmentImagesAsync([/ ... */]);

Gets information about Docker images that are managed by CodeBuild.

Parameter Syntax

result=result = result=client->listCuratedEnvironmentImages([ ]);

Parameter Details

Members

Result Syntax

[ 'platforms' => [ [ 'languages' => [ [ 'images' => [ [ 'description' => '', 'name' => '', 'versions' => ['', ...], ], // ... ], 'language' => 'JAVA|PYTHON|NODE_JS|RUBY|GOLANG|DOCKER|ANDROID|DOTNET|BASE|PHP', ], // ... ], 'platform' => 'DEBIAN|AMAZON_LINUX|UBUNTU|WINDOWS_SERVER', ], // ... ], ]

Result Details

Members

platforms

Type: Array of EnvironmentPlatform structures

Information about supported platforms for Docker images that are managed by CodeBuild.

Errors

There are no errors described for this operation.

ListFleets

result=result = result=client->listFleets([/* ... /]); promise=promise = promise=client->listFleetsAsync([/ ... */]);

Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.

Parameter Syntax

result=result = result=client->listFleets([ 'maxResults' => , 'nextToken' => '', 'sortBy' => 'NAME|CREATED_TIME|LAST_MODIFIED_TIME', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of paginated compute fleets returned per response. Use nextToken to iterate pages in the list of returned compute fleets.

nextToken

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortBy

The criterion to be used to list compute fleet names. Valid values include:

Use sortOrder to specify in what order to list the compute fleet names based on the preceding criteria.

sortOrder

The order in which to list compute fleets. Valid values include:

Use sortBy to specify the criterion to be used to list compute fleet names.

Result Syntax

[ 'fleets' => ['', ...], 'nextToken' => '', ]

Result Details

Members

fleets

The list of compute fleet names.

nextToken

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListProjects

result=result = result=client->listProjects([/* ... /]); promise=promise = promise=client->listProjectsAsync([/ ... */]);

Gets a list of build project names, with each build project name representing a single build project.

Parameter Syntax

result=result = result=client->listProjects([ 'nextToken' => '', 'sortBy' => 'NAME|CREATED_TIME|LAST_MODIFIED_TIME', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

nextToken

During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortBy

The criterion to be used to list build project names. Valid values include:

Use sortOrder to specify in what order to list the build project names based on the preceding criteria.

sortOrder

The order in which to list build projects. Valid values include:

Use sortBy to specify the criterion to be used to list build project names.

Result Syntax

[ 'nextToken' => '', 'projects' => ['', ...], ]

Result Details

Members

nextToken

If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

projects

The list of build project names, with each build project name representing a single build project.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListReportGroups

result=result = result=client->listReportGroups([/* ... /]); promise=promise = promise=client->listReportGroupsAsync([/ ... */]);

Gets a list ARNs for the report groups in the current Amazon Web Services account.

Parameter Syntax

result=result = result=client->listReportGroups([ 'maxResults' => , 'nextToken' => '', 'sortBy' => 'NAME|CREATED_TIME|LAST_MODIFIED_TIME', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of paginated report groups returned per response. Use nextToken to iterate pages in the list of returned ReportGroup objects. The default value is 100.

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortBy

The criterion to be used to list build report groups. Valid values include:

sortOrder

Used to specify the order to sort the list of returned report groups. Valid values are ASCENDING and DESCENDING.

Result Syntax

[ 'nextToken' => '', 'reportGroups' => ['', ...], ]

Result Details

Members

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

reportGroups

The list of ARNs for the report groups in the current Amazon Web Services account.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListReports

result=result = result=client->listReports([/* ... /]); promise=promise = promise=client->listReportsAsync([/ ... */]);

Returns a list of ARNs for the reports in the current Amazon Web Services account.

Parameter Syntax

result=result = result=client->listReports([ 'filter' => [ 'status' => 'GENERATING|SUCCEEDED|FAILED|INCOMPLETE|DELETING', ], 'maxResults' => , 'nextToken' => '', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

filter

Type: ReportFilter structure

A ReportFilter object used to filter the returned reports.

maxResults

The maximum number of paginated reports returned per response. Use nextToken to iterate pages in the list of returned Report objects. The default value is 100.

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortOrder

Specifies the sort order for the list of returned reports. Valid values are:

Result Syntax

[ 'nextToken' => '', 'reports' => ['', ...], ]

Result Details

Members

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

reports

The list of returned ARNs for the reports in the current Amazon Web Services account.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListReportsForReportGroup

result=result = result=client->listReportsForReportGroup([/* ... /]); promise=promise = promise=client->listReportsForReportGroupAsync([/ ... */]);

Returns a list of ARNs for the reports that belong to a ReportGroup.

Parameter Syntax

result=result = result=client->listReportsForReportGroup([ 'filter' => [ 'status' => 'GENERATING|SUCCEEDED|FAILED|INCOMPLETE|DELETING', ], 'maxResults' => , 'nextToken' => '', 'reportGroupArn' => '', // REQUIRED 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

filter

Type: ReportFilter structure

A ReportFilter object used to filter the returned reports.

maxResults

The maximum number of paginated reports in this report group returned per response. Use nextToken to iterate pages in the list of returned Report objects. The default value is 100.

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

reportGroupArn

Required: Yes

Type: string

The ARN of the report group for which you want to return report ARNs.

sortOrder

Use to specify whether the results are returned in ascending or descending order.

Result Syntax

[ 'nextToken' => '', 'reports' => ['', ...], ]

Result Details

Members

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

reports

The list of report ARNs.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

ListSandboxes

result=result = result=client->listSandboxes([/* ... /]); promise=promise = promise=client->listSandboxesAsync([/ ... */]);

Gets a list of sandboxes.

Parameter Syntax

result=result = result=client->listSandboxes([ 'maxResults' => , 'nextToken' => '', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of sandbox records to be retrieved.

nextToken

The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.

sortOrder

The order in which sandbox records should be retrieved.

Result Syntax

[ 'ids' => ['', ...], 'nextToken' => '', ]

Result Details

Members

ids

Information about the requested sandbox IDs.

nextToken

Information about the next token to get paginated results.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListSandboxesForProject

result=result = result=client->listSandboxesForProject([/* ... /]); promise=promise = promise=client->listSandboxesForProjectAsync([/ ... */]);

Gets a list of sandboxes for a given project.

Parameter Syntax

result=result = result=client->listSandboxesForProject([ 'maxResults' => , 'nextToken' => '', 'projectName' => '', // REQUIRED 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of sandbox records to be retrieved.

nextToken

The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.

projectName

Required: Yes

Type: string

The CodeBuild project name.

sortOrder

The order in which sandbox records should be retrieved.

Result Syntax

[ 'ids' => ['', ...], 'nextToken' => '', ]

Result Details

Members

ids

Information about the requested sandbox IDs.

nextToken

Information about the next token to get paginated results.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

ListSharedProjects

result=result = result=client->listSharedProjects([/* ... /]); promise=promise = promise=client->listSharedProjectsAsync([/ ... */]);

Gets a list of projects that are shared with other Amazon Web Services accounts or users.

Parameter Syntax

result=result = result=client->listSharedProjects([ 'maxResults' => , 'nextToken' => '', 'sortBy' => 'ARN|MODIFIED_TIME', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of paginated shared build projects returned per response. Use nextToken to iterate pages in the list of returned Project objects. The default value is 100.

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortBy

The criterion to be used to list build projects shared with the current Amazon Web Services account or user. Valid values include:

sortOrder

The order in which to list shared build projects. Valid values include:

Result Syntax

[ 'nextToken' => '', 'projects' => ['', ...], ]

Result Details

Members

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

projects

The list of ARNs for the build projects shared with the current Amazon Web Services account or user.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListSharedReportGroups

result=result = result=client->listSharedReportGroups([/* ... /]); promise=promise = promise=client->listSharedReportGroupsAsync([/ ... */]);

Gets a list of report groups that are shared with other Amazon Web Services accounts or users.

Parameter Syntax

result=result = result=client->listSharedReportGroups([ 'maxResults' => , 'nextToken' => '', 'sortBy' => 'ARN|MODIFIED_TIME', 'sortOrder' => 'ASCENDING|DESCENDING', ]);

Parameter Details

Members

maxResults

The maximum number of paginated shared report groups per response. Use nextToken to iterate pages in the list of returned ReportGroup objects. The default value is 100.

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

sortBy

The criterion to be used to list report groups shared with the current Amazon Web Services account or user. Valid values include:

sortOrder

The order in which to list shared report groups. Valid values include:

Result Syntax

[ 'nextToken' => '', 'reportGroups' => ['', ...], ]

Result Details

Members

nextToken

During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

reportGroups

The list of ARNs for the report groups shared with the current Amazon Web Services account or user.

Errors

InvalidInputException:

The input value that was provided is not valid.

ListSourceCredentials

result=result = result=client->listSourceCredentials([/* ... /]); promise=promise = promise=client->listSourceCredentialsAsync([/ ... */]);

Returns a list of SourceCredentialsInfo objects.

Parameter Syntax

result=result = result=client->listSourceCredentials([ ]);

Parameter Details

Members

Result Syntax

[ 'sourceCredentialsInfos' => [ [ 'arn' => '', 'authType' => 'OAUTH|BASIC_AUTH|PERSONAL_ACCESS_TOKEN|CODECONNECTIONS|SECRETS_MANAGER', 'resource' => '', 'serverType' => 'GITHUB|BITBUCKET|GITHUB_ENTERPRISE|GITLAB|GITLAB_SELF_MANAGED', ], // ... ], ]

Result Details

Members

sourceCredentialsInfos

Type: Array of SourceCredentialsInfo structures

A list of SourceCredentialsInfo objects. Each SourceCredentialsInfo object includes the authentication type, token ARN, and type of source provider for one set of credentials.

Errors

InvalidInputException:

The input value that was provided is not valid.

PutResourcePolicy

result=result = result=client->putResourcePolicy([/* ... /]); promise=promise = promise=client->putResourcePolicyAsync([/ ... */]);

Stores a resource policy for the ARN of a Project or ReportGroup object.

Parameter Syntax

result=result = result=client->putResourcePolicy([ 'policy' => '', // REQUIRED 'resourceArn' => '', // REQUIRED ]);

Parameter Details

Members

policy

Required: Yes

Type: string

resourceArn

Required: Yes

Type: string

The ARN of the Project or ReportGroup resource you want to associate with a resource policy.

Result Syntax

[ 'resourceArn' => '', ]

Result Details

Members

resourceArn

The ARN of the Project or ReportGroup resource that is associated with a resource policy.

Errors

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

InvalidInputException:

The input value that was provided is not valid.

RetryBuild

result=result = result=client->retryBuild([/* ... /]); promise=promise = promise=client->retryBuildAsync([/ ... */]);

Restarts a build.

Parameter Syntax

result=result = result=client->retryBuild([ 'id' => '', 'idempotencyToken' => '', ]);

Parameter Details

Members

id

Specifies the identifier of the build to restart.

idempotencyToken

A unique, case sensitive identifier you provide to ensure the idempotency of the RetryBuild request. The token is included in the RetryBuild request and is valid for five minutes. If you repeat the RetryBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

Result Syntax

[ 'build' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'autoRetryConfig' => [ 'autoRetryLimit' => , 'autoRetryNumber' => , 'nextAutoRetry' => '', 'previousAutoRetry' => '', ], 'buildBatchArn' => '', 'buildComplete' => true || false, 'buildNumber' => , 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'currentPhase' => '', 'debugSession' => [ 'sessionEnabled' => true || false, 'sessionTarget' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'exportedEnvironmentVariables' => [ [ 'name' => '', 'value' => '', ], // ... ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|QUEUED|PROVISIONING|DOWNLOAD_SOURCE|INSTALL|PRE_BUILD|BUILD|POST_BUILD|UPLOAD_ARTIFACTS|FINALIZING|COMPLETED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

build

Information about a build.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

RetryBuildBatch

result=result = result=client->retryBuildBatch([/* ... /]); promise=promise = promise=client->retryBuildBatchAsync([/ ... */]);

Restarts a failed batch build. Only batch builds that have failed can be retried.

Parameter Syntax

result=result = result=client->retryBuildBatch([ 'id' => '', 'idempotencyToken' => '', 'retryType' => 'RETRY_ALL_BUILDS|RETRY_FAILED_BUILDS', ]);

Parameter Details

Members

id

Specifies the identifier of the batch build to restart.

idempotencyToken

A unique, case sensitive identifier you provide to ensure the idempotency of the RetryBuildBatch request. The token is included in the RetryBuildBatch request and is valid for five minutes. If you repeat the RetryBuildBatch request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

retryType

Specifies the type of retry to perform.

Result Syntax

[ 'buildBatch' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'buildBatchNumber' => , 'buildBatchStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'buildGroups' => [ [ 'currentBuildSummary' => [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], 'dependsOn' => ['', ...], 'identifier' => '', 'ignoreFailure' => true || false, 'priorBuildSummaryList' => [ [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], // ... ], ], // ... ], 'buildTimeoutInMinutes' => , 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'complete' => true || false, 'currentPhase' => '', 'debugSessionEnabled' => true || false, 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|DOWNLOAD_BATCHSPEC|IN_PROGRESS|COMBINE_ARTIFACTS|SUCCEEDED|FAILED|STOPPED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

buildBatch

Type: BuildBatch structure

Contains information about a batch build.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

StartBuild

result=result = result=client->startBuild([/* ... /]); promise=promise = promise=client->startBuildAsync([/ ... */]);

Starts running a build with the settings defined in the project. These setting include: how to run a build, where to get the source code, which build environment to use, which build commands to run, and where to store the build output.

You can also start a build run by overriding some of the build settings in the project. The overrides only apply for that specific start build request. The settings in the project are unaltered.

Parameter Syntax

result=result = result=client->startBuild([ 'artifactsOverride' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], 'autoRetryLimitOverride' => , 'buildStatusConfigOverride' => [ 'context' => '', 'targetUrl' => '', ], 'buildspecOverride' => '', 'cacheOverride' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', // REQUIRED ], 'certificateOverride' => '', 'computeTypeOverride' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'debugSessionEnabled' => true || false, 'encryptionKeyOverride' => '', 'environmentTypeOverride' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', 'environmentVariablesOverride' => [ [ 'name' => '', // REQUIRED 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', // REQUIRED ], // ... ], 'fleetOverride' => [ 'fleetArn' => '', ], 'gitCloneDepthOverride' => , 'gitSubmodulesConfigOverride' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'idempotencyToken' => '', 'imageOverride' => '', 'imagePullCredentialsTypeOverride' => 'CODEBUILD|SERVICE_ROLE', 'insecureSslOverride' => true || false, 'logsConfigOverride' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED ], ], 'privilegedModeOverride' => true || false, 'projectName' => '', // REQUIRED 'queuedTimeoutInMinutesOverride' => , 'registryCredentialOverride' => [ 'credential' => '', // REQUIRED 'credentialProvider' => 'SECRETS_MANAGER', // REQUIRED ], 'reportBuildStatusOverride' => true || false, 'secondaryArtifactsOverride' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], // ... ], 'secondarySourcesOverride' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', // REQUIRED ], // ... ], 'secondarySourcesVersionOverride' => [ [ 'sourceIdentifier' => '', // REQUIRED 'sourceVersion' => '', // REQUIRED ], // ... ], 'serviceRoleOverride' => '', 'sourceAuthOverride' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'sourceLocationOverride' => '', 'sourceTypeOverride' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', 'sourceVersion' => '', 'timeoutInMinutesOverride' => , ]);

Parameter Details

Members

artifactsOverride

Type: ProjectArtifacts structure

Build output artifact settings that override, for this build only, the latest ones already defined in the build project.

autoRetryLimitOverride

The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

buildStatusConfigOverride

Type: BuildStatusConfig structure

Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

buildspecOverride

A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.

If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.

Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket.

cacheOverride

Type: ProjectCache structure

A ProjectCache object specified for this build that overrides the one defined in the build project.

certificateOverride

The name of a certificate for this build that overrides the one specified in the build project.

computeTypeOverride

The name of a compute type for this build that overrides the one specified in the build project.

debugSessionEnabled

encryptionKeyOverride

The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the 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>).

environmentTypeOverride

A container type for this build that overrides the one specified in the build project.

environmentVariablesOverride

Type: Array of EnvironmentVariable structures

A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.

fleetOverride

Type: ProjectFleet structure

A ProjectFleet object specified for this build that overrides the one defined in the build project.

gitCloneDepthOverride

The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.

gitSubmodulesConfigOverride

Type: GitSubmodulesConfig structure

Information about the Git submodules configuration for this build of an CodeBuild build project.

idempotencyToken

A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

imageOverride

The name of an image for this build that overrides the one specified in the build project.

imagePullCredentialsTypeOverride

The type of credentials CodeBuild uses to pull images in your build. There are two valid values:

CODEBUILD

Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.

SERVICE_ROLE

Specifies that CodeBuild uses your build project's service role.

When using a cross-account or private registry image, you must use SERVICE_ROLE credentials. When using an CodeBuild curated image, you must use CODEBUILD credentials.

insecureSslOverride

Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.

logsConfigOverride

Type: LogsConfig structure

Log settings for this build that override the log settings defined in the build project.

privilegedModeOverride

Enable this flag to override privileged mode in the build project.

projectName

Required: Yes

Type: string

The name of the CodeBuild build project to start running a build.

queuedTimeoutInMinutesOverride

The number of minutes a build is allowed to be queued before it times out.

registryCredentialOverride

Type: RegistryCredential structure

The credentials for access to a private registry.

reportBuildStatusOverride

Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket, an invalidInputException is thrown.

To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

The status of a build triggered by a webhook is always reported to your source provider.

secondaryArtifactsOverride

Type: Array of ProjectArtifacts structures

An array of ProjectArtifacts objects.

secondarySourcesOverride

Type: Array of ProjectSource structures

An array of ProjectSource objects.

secondarySourcesVersionOverride

Type: Array of ProjectSourceVersion structures

An array of ProjectSourceVersion objects that specify one or more versions of the project's secondary sources to be used for this build only.

serviceRoleOverride

The name of a service role for this build that overrides the one specified in the build project.

sourceAuthOverride

Type: SourceAuth structure

An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket, GitHub, GitLab, or GitLab Self Managed.

sourceLocationOverride

A location that overrides, for this build, the source location for the one defined in the build project.

sourceTypeOverride

A source input type, for this build, that overrides the source input defined in the build project.

sourceVersion

The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:

CodeCommit

The commit ID, branch, or Git tag to use.

GitHub

The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

GitLab

The commit ID, branch, or Git tag to use.

Bitbucket

The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

Amazon S3

The version ID of the object that represents the build input ZIP file to use.

If sourceVersion is specified at the project level, then this sourceVersion (at the build level) takes precedence.

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

timeoutInMinutesOverride

The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.

Result Syntax

[ 'build' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'autoRetryConfig' => [ 'autoRetryLimit' => , 'autoRetryNumber' => , 'nextAutoRetry' => '', 'previousAutoRetry' => '', ], 'buildBatchArn' => '', 'buildComplete' => true || false, 'buildNumber' => , 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'currentPhase' => '', 'debugSession' => [ 'sessionEnabled' => true || false, 'sessionTarget' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'exportedEnvironmentVariables' => [ [ 'name' => '', 'value' => '', ], // ... ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|QUEUED|PROVISIONING|DOWNLOAD_SOURCE|INSTALL|PRE_BUILD|BUILD|POST_BUILD|UPLOAD_ARTIFACTS|FINALIZING|COMPLETED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

build

Information about the build to be run.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

StartBuildBatch

result=result = result=client->startBuildBatch([/* ... /]); promise=promise = promise=client->startBuildBatchAsync([/ ... */]);

Starts a batch build for a project.

Parameter Syntax

result=result = result=client->startBuildBatch([ 'artifactsOverride' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], 'buildBatchConfigOverride' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'buildTimeoutInMinutesOverride' => , 'buildspecOverride' => '', 'cacheOverride' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', // REQUIRED ], 'certificateOverride' => '', 'computeTypeOverride' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'debugSessionEnabled' => true || false, 'encryptionKeyOverride' => '', 'environmentTypeOverride' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', 'environmentVariablesOverride' => [ [ 'name' => '', // REQUIRED 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', // REQUIRED ], // ... ], 'gitCloneDepthOverride' => , 'gitSubmodulesConfigOverride' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'idempotencyToken' => '', 'imageOverride' => '', 'imagePullCredentialsTypeOverride' => 'CODEBUILD|SERVICE_ROLE', 'insecureSslOverride' => true || false, 'logsConfigOverride' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED ], ], 'privilegedModeOverride' => true || false, 'projectName' => '', // REQUIRED 'queuedTimeoutInMinutesOverride' => , 'registryCredentialOverride' => [ 'credential' => '', // REQUIRED 'credentialProvider' => 'SECRETS_MANAGER', // REQUIRED ], 'reportBuildBatchStatusOverride' => true || false, 'secondaryArtifactsOverride' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], // ... ], 'secondarySourcesOverride' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', // REQUIRED ], // ... ], 'secondarySourcesVersionOverride' => [ [ 'sourceIdentifier' => '', // REQUIRED 'sourceVersion' => '', // REQUIRED ], // ... ], 'serviceRoleOverride' => '', 'sourceAuthOverride' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'sourceLocationOverride' => '', 'sourceTypeOverride' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', 'sourceVersion' => '', ]);

Parameter Details

Members

artifactsOverride

Type: ProjectArtifacts structure

An array of ProjectArtifacts objects that contains information about the build output artifact overrides for the build project.

buildBatchConfigOverride

Type: ProjectBuildBatchConfig structure

A BuildBatchConfigOverride object that contains batch build configuration overrides.

buildTimeoutInMinutesOverride

Overrides the build timeout specified in the batch build project.

buildspecOverride

A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.

If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.

cacheOverride

Type: ProjectCache structure

A ProjectCache object that specifies cache overrides.

certificateOverride

The name of a certificate for this batch build that overrides the one specified in the batch build project.

computeTypeOverride

The name of a compute type for this batch build that overrides the one specified in the batch build project.

debugSessionEnabled

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.

encryptionKeyOverride

The Key Management Service customer master key (CMK) that overrides the one specified in the batch build project. The CMK key encrypts the 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>).

environmentTypeOverride

A container type for this batch build that overrides the one specified in the batch build project.

environmentVariablesOverride

Type: Array of EnvironmentVariable structures

An array of EnvironmentVariable objects that override, or add to, the environment variables defined in the batch build project.

gitCloneDepthOverride

The user-defined depth of history, with a minimum value of 0, that overrides, for this batch build only, any previous depth of history defined in the batch build project.

gitSubmodulesConfigOverride

Type: GitSubmodulesConfig structure

A GitSubmodulesConfig object that overrides the Git submodules configuration for this batch build.

idempotencyToken

A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuildBatch request. The token is included in the StartBuildBatch request and is valid for five minutes. If you repeat the StartBuildBatch request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

imageOverride

The name of an image for this batch build that overrides the one specified in the batch build project.

imagePullCredentialsTypeOverride

The type of credentials CodeBuild uses to pull images in your batch build. There are two valid values:

CODEBUILD

Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.

SERVICE_ROLE

Specifies that CodeBuild uses your build project's service role.

When using a cross-account or private registry image, you must use SERVICE_ROLE credentials. When using an CodeBuild curated image, you must use CODEBUILD credentials.

insecureSslOverride

Enable this flag to override the insecure SSL setting that is specified in the batch build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.

logsConfigOverride

Type: LogsConfig structure

A LogsConfig object that override the log settings defined in the batch build project.

privilegedModeOverride

Enable this flag to override privileged mode in the batch build project.

projectName

Required: Yes

Type: string

The name of the project.

queuedTimeoutInMinutesOverride

The number of minutes a batch build is allowed to be queued before it times out.

registryCredentialOverride

Type: RegistryCredential structure

A RegistryCredential object that overrides credentials for access to a private registry.

reportBuildBatchStatusOverride

Set to true to report to your source provider the status of a batch build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an invalidInputException is thrown.

The status of a build triggered by a webhook is always reported to your source provider.

secondaryArtifactsOverride

Type: Array of ProjectArtifacts structures

An array of ProjectArtifacts objects that override the secondary artifacts defined in the batch build project.

secondarySourcesOverride

Type: Array of ProjectSource structures

An array of ProjectSource objects that override the secondary sources defined in the batch build project.

secondarySourcesVersionOverride

Type: Array of ProjectSourceVersion structures

An array of ProjectSourceVersion objects that override the secondary source versions in the batch build project.

serviceRoleOverride

The name of a service role for this batch build that overrides the one specified in the batch build project.

sourceAuthOverride

Type: SourceAuth structure

A SourceAuth object that overrides the one defined in the batch build project. This override applies only if the build project's source is BitBucket or GitHub.

sourceLocationOverride

A location that overrides, for this batch build, the source location defined in the batch build project.

sourceTypeOverride

The source input type that overrides the source input defined in the batch build project.

sourceVersion

The version of the batch build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:

CodeCommit

The commit ID, branch, or Git tag to use.

GitHub

The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

Bitbucket

The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

Amazon S3

The version ID of the object that represents the build input ZIP file to use.

If sourceVersion is specified at the project level, then this sourceVersion (at the build level) takes precedence.

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

Result Syntax

[ 'buildBatch' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'buildBatchNumber' => , 'buildBatchStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'buildGroups' => [ [ 'currentBuildSummary' => [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], 'dependsOn' => ['', ...], 'identifier' => '', 'ignoreFailure' => true || false, 'priorBuildSummaryList' => [ [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], // ... ], ], // ... ], 'buildTimeoutInMinutes' => , 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'complete' => true || false, 'currentPhase' => '', 'debugSessionEnabled' => true || false, 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|DOWNLOAD_BATCHSPEC|IN_PROGRESS|COMBINE_ARTIFACTS|SUCCEEDED|FAILED|STOPPED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

buildBatch

Type: BuildBatch structure

A BuildBatch object that contains information about the batch build.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

StartCommandExecution

result=result = result=client->startCommandExecution([/* ... /]); promise=promise = promise=client->startCommandExecutionAsync([/ ... */]);

Starts a command execution.

Parameter Syntax

result=result = result=client->startCommandExecution([ 'command' => '', // REQUIRED 'sandboxId' => '', // REQUIRED 'type' => 'SHELL', ]);

Parameter Details

Members

command

Required: Yes

Type: string

The command that needs to be executed.

sandboxId

Required: Yes

Type: string

A sandboxId or sandboxArn.

type

The command type.

Result Syntax

[ 'commandExecution' => [ 'command' => '', 'endTime' => , 'exitCode' => '', 'id' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'sandboxArn' => '', 'sandboxId' => '', 'standardErrContent' => '', 'standardOutputContent' => '', 'startTime' => , 'status' => '', 'submitTime' => , 'type' => 'SHELL', ], ]

Result Details

Members

commandExecution

Type: CommandExecution structure

Information about the requested command executions.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

StartSandbox

result=result = result=client->startSandbox([/* ... /]); promise=promise = promise=client->startSandboxAsync([/ ... */]);

Starts a sandbox.

Parameter Syntax

result=result = result=client->startSandbox([ 'idempotencyToken' => '', 'projectName' => '', ]);

Parameter Details

Members

idempotencyToken

A unique client token.

projectName

The CodeBuild project name.

Result Syntax

[ 'sandbox' => [ 'arn' => '', 'currentSession' => [ 'currentPhase' => '', 'endTime' => , 'id' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => '', 'startTime' => , ], // ... ], 'resolvedSourceVersion' => '', 'startTime' => , 'status' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'requestTime' => , 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'status' => '', 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

sandbox

Information about the requested sandbox.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

AccountSuspendedException:

The CodeBuild access has been suspended for the calling Amazon Web Services account.

StartSandboxConnection

result=result = result=client->startSandboxConnection([/* ... /]); promise=promise = promise=client->startSandboxConnectionAsync([/ ... */]);

Starts a sandbox connection.

Parameter Syntax

result=result = result=client->startSandboxConnection([ 'sandboxId' => '', // REQUIRED ]);

Parameter Details

Members

sandboxId

Required: Yes

Type: string

A sandboxId or sandboxArn.

Result Syntax

[ 'ssmSession' => [ 'sessionId' => '', 'streamUrl' => '', 'tokenValue' => '', ], ]

Result Details

Members

ssmSession

Type: SSMSession structure

Information about the Session Manager session.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

StopBuild

result=result = result=client->stopBuild([/* ... /]); promise=promise = promise=client->stopBuildAsync([/ ... */]);

Attempts to stop running a build.

Parameter Syntax

result=result = result=client->stopBuild([ 'id' => '', // REQUIRED ]);

Parameter Details

Members

id

Required: Yes

Type: string

The ID of the build.

Result Syntax

[ 'build' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'autoRetryConfig' => [ 'autoRetryLimit' => , 'autoRetryNumber' => , 'nextAutoRetry' => '', 'previousAutoRetry' => '', ], 'buildBatchArn' => '', 'buildComplete' => true || false, 'buildNumber' => , 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'currentPhase' => '', 'debugSession' => [ 'sessionEnabled' => true || false, 'sessionTarget' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'exportedEnvironmentVariables' => [ [ 'name' => '', 'value' => '', ], // ... ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|QUEUED|PROVISIONING|DOWNLOAD_SOURCE|INSTALL|PRE_BUILD|BUILD|POST_BUILD|UPLOAD_ARTIFACTS|FINALIZING|COMPLETED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

build

Information about the build.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

StopBuildBatch

result=result = result=client->stopBuildBatch([/* ... /]); promise=promise = promise=client->stopBuildBatchAsync([/ ... */]);

Stops a running batch build.

Parameter Syntax

result=result = result=client->stopBuildBatch([ 'id' => '', // REQUIRED ]);

Parameter Details

Members

id

Required: Yes

Type: string

The identifier of the batch build to stop.

Result Syntax

[ 'buildBatch' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'buildBatchNumber' => , 'buildBatchStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'buildGroups' => [ [ 'currentBuildSummary' => [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], 'dependsOn' => ['', ...], 'identifier' => '', 'ignoreFailure' => true || false, 'priorBuildSummaryList' => [ [ 'arn' => '', 'buildStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'primaryArtifact' => [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'requestedOn' => , 'secondaryArtifacts' => [ [ 'identifier' => '', 'location' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], ], // ... ], ], // ... ], 'buildTimeoutInMinutes' => , 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'complete' => true || false, 'currentPhase' => '', 'debugSessionEnabled' => true || false, 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'initiator' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => 'SUBMITTED|DOWNLOAD_BATCHSPEC|IN_PROGRESS|COMBINE_ARTIFACTS|SUCCEEDED|FAILED|STOPPED', 'startTime' => , ], // ... ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'reportArns' => ['', ...], 'resolvedSourceVersion' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'md5sum' => '', 'overrideArtifactName' => true || false, 'sha256sum' => '', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

buildBatch

Type: BuildBatch structure

Contains information about a batch build.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

StopSandbox

result=result = result=client->stopSandbox([/* ... /]); promise=promise = promise=client->stopSandboxAsync([/ ... */]);

Stops a sandbox.

Parameter Syntax

result=result = result=client->stopSandbox([ 'id' => '', // REQUIRED ]);

Parameter Details

Members

id

Required: Yes

Type: string

Information about the requested sandbox ID.

Result Syntax

[ 'sandbox' => [ 'arn' => '', 'currentSession' => [ 'currentPhase' => '', 'endTime' => , 'id' => '', 'logs' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 'cloudWatchLogsArn' => '', 'deepLink' => '', 'groupName' => '', 's3DeepLink' => '', 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], 's3LogsArn' => '', 'streamName' => '', ], 'networkInterface' => [ 'networkInterfaceId' => '', 'subnetId' => '', ], 'phases' => [ [ 'contexts' => [ [ 'message' => '', 'statusCode' => '', ], // ... ], 'durationInSeconds' => , 'endTime' => , 'phaseStatus' => 'SUCCEEDED|FAILED|FAULT|TIMED_OUT|IN_PROGRESS|STOPPED', 'phaseType' => '', 'startTime' => , ], // ... ], 'resolvedSourceVersion' => '', 'startTime' => , 'status' => '', ], 'encryptionKey' => '', 'endTime' => , 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'id' => '', 'logConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'projectName' => '', 'queuedTimeoutInMinutes' => , 'requestTime' => , 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'startTime' => , 'status' => '', 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

sandbox

Information about the requested sandbox.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

UpdateFleet

result=result = result=client->updateFleet([/* ... /]); promise=promise = promise=client->updateFleetAsync([/ ... */]);

Updates a compute fleet.

Parameter Syntax

result=result = result=client->updateFleet([ 'arn' => '', // REQUIRED 'baseCapacity' => , 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentType' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', 'fleetServiceRole' => '', 'imageId' => '', 'overflowBehavior' => 'QUEUE|ON_DEMAND', 'proxyConfiguration' => [ 'defaultBehavior' => 'ALLOW_ALL|DENY_ALL', 'orderedProxyRules' => [ [ 'effect' => 'ALLOW|DENY', // REQUIRED 'entities' => ['', ...], // REQUIRED 'type' => 'DOMAIN|IP', // REQUIRED ], // ... ], ], 'scalingConfiguration' => [ 'maxCapacity' => , 'scalingType' => 'TARGET_TRACKING_SCALING', 'targetTrackingScalingConfigs' => [ [ 'metricType' => 'FLEET_UTILIZATION_RATE', 'targetValue' => , ], // ... ], ], 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ]);

Parameter Details

Members

arn

Required: Yes

Type: string

The ARN of the compute fleet.

baseCapacity

The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.

computeConfiguration

Type: ComputeConfiguration structure

The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

computeType

Information about the compute resources the compute fleet uses. Available values include:

If you use BUILD_GENERAL1_SMALL:

If you use BUILD_GENERAL1_LARGE:

For more information, see On-demand environment types in the CodeBuild User Guide.

environmentType

The environment type of the compute fleet.

For more information, see Build environment compute types in the CodeBuild user guide.

fleetServiceRole

imageId

The Amazon Machine Image (AMI) of the compute fleet.

overflowBehavior

The compute fleet overflow behavior.

proxyConfiguration

Type: ProxyConfiguration structure

The proxy configuration of the compute fleet.

scalingConfiguration

Type: ScalingConfigurationInput structure

The scaling configuration of the compute fleet.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this compute fleet.

These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.

vpcConfig

Type: VpcConfig structure

Information about the VPC configuration that CodeBuild accesses.

Result Syntax

[ 'fleet' => [ 'arn' => '', 'baseCapacity' => , 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'created' => , 'environmentType' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', 'fleetServiceRole' => '', 'id' => '', 'imageId' => '', 'lastModified' => , 'name' => '', 'overflowBehavior' => 'QUEUE|ON_DEMAND', 'proxyConfiguration' => [ 'defaultBehavior' => 'ALLOW_ALL|DENY_ALL', 'orderedProxyRules' => [ [ 'effect' => 'ALLOW|DENY', 'entities' => ['', ...], 'type' => 'DOMAIN|IP', ], // ... ], ], 'scalingConfiguration' => [ 'desiredCapacity' => , 'maxCapacity' => , 'scalingType' => 'TARGET_TRACKING_SCALING', 'targetTrackingScalingConfigs' => [ [ 'metricType' => 'FLEET_UTILIZATION_RATE', 'targetValue' => , ], // ... ], ], 'status' => [ 'context' => 'CREATE_FAILED|UPDATE_FAILED|ACTION_REQUIRED|PENDING_DELETION|INSUFFICIENT_CAPACITY', 'message' => '', 'statusCode' => 'CREATING|UPDATING|ROTATING|PENDING_DELETION|DELETING|CREATE_FAILED|UPDATE_ROLLBACK_FAILED|ACTIVE', ], 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ], ]

Result Details

Members

fleet

A Fleet object.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

AccountLimitExceededException:

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

UpdateProject

result=result = result=client->updateProject([/* ... /]); promise=promise = promise=client->updateProjectAsync([/ ... */]);

Changes the settings of a build project.

Parameter Syntax

result=result = result=client->updateProject([ 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], 'autoRetryLimit' => , 'badgeEnabled' => true || false, 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', // REQUIRED ], 'concurrentBuildLimit' => , 'description' => '', 'encryptionKey' => '', 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', // REQUIRED 'environmentVariables' => [ [ 'name' => '', // REQUIRED 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', // REQUIRED ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', // REQUIRED 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', // REQUIRED 'credentialProvider' => 'SECRETS_MANAGER', // REQUIRED ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', // REQUIRED ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'logsConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', // REQUIRED ], ], 'name' => '', // REQUIRED 'queuedTimeoutInMinutes' => , 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', // REQUIRED ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', // REQUIRED 'sourceVersion' => '', // REQUIRED ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', // REQUIRED ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', // REQUIRED ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, // REQUIRED ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', // REQUIRED ], 'sourceVersion' => '', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], ]);

Parameter Details

Members

artifacts

Type: ProjectArtifacts structure

Information to be changed about the build output artifacts for the build project.

autoRetryLimit

The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

badgeEnabled

Set this to true to generate a publicly accessible URL for your project's build badge.

buildBatchConfig

Type: ProjectBuildBatchConfig structure

Contains configuration information about a batch build project.

cache

Type: ProjectCache structure

Stores recently used information so that it can be quickly accessed at a later time.

concurrentBuildLimit

The maximum number of concurrent builds that are allowed for this project.

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

To remove this limit, set this value to -1.

description

A new or replacement description of the build project.

encryptionKey

The Key Management Service customer master key (CMK) to be used for encrypting the 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>).

environment

Type: ProjectEnvironment structure

Information to be changed about the build environment for the build project.

fileSystemLocations

Type: Array of ProjectFileSystemLocation structures

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

logsConfig

Type: LogsConfig structure

Information about logs for the build project. A project can create logs in CloudWatch Logs, logs in an S3 bucket, or both.

name

Required: Yes

Type: string

The name of the build project.

You cannot change a build project's name.

queuedTimeoutInMinutes

The number of minutes a build is allowed to be queued before it times out.

secondaryArtifacts

Type: Array of ProjectArtifacts structures

An array of ProjectArtifact objects.

secondarySourceVersions

Type: Array of ProjectSourceVersion structures

An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).

secondarySources

Type: Array of ProjectSource structures

An array of ProjectSource objects.

serviceRole

The replacement ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.

source

Type: ProjectSource structure

Information to be changed about the build input source code for the build project.

sourceVersion

A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:

If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

tags

Type: Array of Tag structures

An updated list of tag key and value pairs associated with this build project.

These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.

timeoutInMinutes

The replacement value in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed.

vpcConfig

Type: VpcConfig structure

VpcConfig enables CodeBuild to access resources in an Amazon VPC.

Result Syntax

[ 'project' => [ 'arn' => '', 'artifacts' => [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], 'autoRetryLimit' => , 'badge' => [ 'badgeEnabled' => true || false, 'badgeRequestUrl' => '', ], 'buildBatchConfig' => [ 'batchReportMode' => 'REPORT_INDIVIDUAL_BUILDS|REPORT_AGGREGATED_BATCH', 'combineArtifacts' => true || false, 'restrictions' => [ 'computeTypesAllowed' => ['', ...], 'fleetsAllowed' => ['', ...], 'maximumBuildsAllowed' => , ], 'serviceRole' => '', 'timeoutInMins' => , ], 'cache' => [ 'cacheNamespace' => '', 'location' => '', 'modes' => ['', ...], 'type' => 'NO_CACHE|S3|LOCAL', ], 'concurrentBuildLimit' => , 'created' => , 'description' => '', 'encryptionKey' => '', 'environment' => [ 'certificate' => '', 'computeConfiguration' => [ 'disk' => , 'instanceType' => '', 'machineType' => 'GENERAL|NVME', 'memory' => , 'vCpu' => , ], 'computeType' => 'BUILD_GENERAL1_SMALL|BUILD_GENERAL1_MEDIUM|BUILD_GENERAL1_LARGE|BUILD_GENERAL1_XLARGE|BUILD_GENERAL1_2XLARGE|BUILD_LAMBDA_1GB|BUILD_LAMBDA_2GB|BUILD_LAMBDA_4GB|BUILD_LAMBDA_8GB|BUILD_LAMBDA_10GB|ATTRIBUTE_BASED_COMPUTE|CUSTOM_INSTANCE_TYPE', 'environmentVariables' => [ [ 'name' => '', 'type' => 'PLAINTEXT|PARAMETER_STORE|SECRETS_MANAGER', 'value' => '', ], // ... ], 'fleet' => [ 'fleetArn' => '', ], 'image' => '', 'imagePullCredentialsType' => 'CODEBUILD|SERVICE_ROLE', 'privilegedMode' => true || false, 'registryCredential' => [ 'credential' => '', 'credentialProvider' => 'SECRETS_MANAGER', ], 'type' => 'WINDOWS_CONTAINER|LINUX_CONTAINER|LINUX_GPU_CONTAINER|ARM_CONTAINER|WINDOWS_SERVER_2019_CONTAINER|WINDOWS_SERVER_2022_CONTAINER|LINUX_LAMBDA_CONTAINER|ARM_LAMBDA_CONTAINER|LINUX_EC2|ARM_EC2|WINDOWS_EC2|MAC_ARM', ], 'fileSystemLocations' => [ [ 'identifier' => '', 'location' => '', 'mountOptions' => '', 'mountPoint' => '', 'type' => 'EFS', ], // ... ], 'lastModified' => , 'logsConfig' => [ 'cloudWatchLogs' => [ 'groupName' => '', 'status' => 'ENABLED|DISABLED', 'streamName' => '', ], 's3Logs' => [ 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'status' => 'ENABLED|DISABLED', ], ], 'name' => '', 'projectVisibility' => 'PUBLIC_READ|PRIVATE', 'publicProjectAlias' => '', 'queuedTimeoutInMinutes' => , 'resourceAccessRole' => '', 'secondaryArtifacts' => [ [ 'artifactIdentifier' => '', 'bucketOwnerAccess' => 'NONE|READ_ONLY|FULL', 'encryptionDisabled' => true || false, 'location' => '', 'name' => '', 'namespaceType' => 'NONE|BUILD_ID', 'overrideArtifactName' => true || false, 'packaging' => 'NONE|ZIP', 'path' => '', 'type' => 'CODEPIPELINE|S3|NO_ARTIFACTS', ], // ... ], 'secondarySourceVersions' => [ [ 'sourceIdentifier' => '', 'sourceVersion' => '', ], // ... ], 'secondarySources' => [ [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], // ... ], 'serviceRole' => '', 'source' => [ 'auth' => [ 'resource' => '', 'type' => 'OAUTH|CODECONNECTIONS|SECRETS_MANAGER', ], 'buildStatusConfig' => [ 'context' => '', 'targetUrl' => '', ], 'buildspec' => '', 'gitCloneDepth' => , 'gitSubmodulesConfig' => [ 'fetchSubmodules' => true || false, ], 'insecureSsl' => true || false, 'location' => '', 'reportBuildStatus' => true || false, 'sourceIdentifier' => '', 'type' => 'CODECOMMIT|CODEPIPELINE|GITHUB|GITLAB|GITLAB_SELF_MANAGED|S3|BITBUCKET|GITHUB_ENTERPRISE|NO_SOURCE', ], 'sourceVersion' => '', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'timeoutInMinutes' => , 'vpcConfig' => [ 'securityGroupIds' => ['', ...], 'subnets' => ['', ...], 'vpcId' => '', ], 'webhook' => [ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', ], // ... ], // ... ], 'lastModifiedSecret' => , 'manualCreation' => true || false, 'payloadUrl' => '', 'scopeConfiguration' => [ 'domain' => '', 'name' => '', 'scope' => 'GITHUB_ORGANIZATION|GITHUB_GLOBAL|GITLAB_GROUP', ], 'secret' => '', 'status' => 'CREATING|CREATE_FAILED|ACTIVE|DELETING', 'statusMessage' => '', 'url' => '', ], ], ]

Result Details

Members

project

Information about the build project that was changed.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

UpdateProjectVisibility

result=result = result=client->updateProjectVisibility([/* ... /]); promise=promise = promise=client->updateProjectVisibilityAsync([/ ... */]);

Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.

The following should be kept in mind when making your projects public:

Parameter Syntax

result=result = result=client->updateProjectVisibility([ 'projectArn' => '', // REQUIRED 'projectVisibility' => 'PUBLIC_READ|PRIVATE', // REQUIRED 'resourceAccessRole' => '', ]);

Parameter Details

Members

projectArn

Required: Yes

Type: string

The Amazon Resource Name (ARN) of the build project.

projectVisibility

Required: Yes

Type: string

Specifies the visibility of the project's builds. Possible values are:

PUBLIC_READ

The project builds are visible to the public.

PRIVATE

The project builds are not visible to the public.

resourceAccessRole

The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.

Result Syntax

[ 'projectArn' => '', 'projectVisibility' => 'PUBLIC_READ|PRIVATE', 'publicProjectAlias' => '', ]

Result Details

Members

projectArn

The Amazon Resource Name (ARN) of the build project.

projectVisibility

Specifies the visibility of the project's builds. Possible values are:

PUBLIC_READ

The project builds are visible to the public.

PRIVATE

The project builds are not visible to the public.

publicProjectAlias

Contains the project identifier used with the public build APIs.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

UpdateReportGroup

result=result = result=client->updateReportGroup([/* ... /]); promise=promise = promise=client->updateReportGroupAsync([/ ... */]);

Updates a report group.

Parameter Syntax

result=result = result=client->updateReportGroup([ 'arn' => '', // REQUIRED 'exportConfig' => [ 'exportConfigType' => 'S3|NO_EXPORT', 's3Destination' => [ 'bucket' => '', 'bucketOwner' => '', 'encryptionDisabled' => true || false, 'encryptionKey' => '', 'packaging' => 'ZIP|NONE', 'path' => '', ], ], 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], ]);

Parameter Details

Members

arn

Required: Yes

Type: string

The ARN of the report group to update.

exportConfig

Type: ReportExportConfig structure

Used to specify an updated export type. Valid values are:

tags

Type: Array of Tag structures

An updated list of tag key and value pairs associated with this report group.

These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.

Result Syntax

[ 'reportGroup' => [ 'arn' => '', 'created' => , 'exportConfig' => [ 'exportConfigType' => 'S3|NO_EXPORT', 's3Destination' => [ 'bucket' => '', 'bucketOwner' => '', 'encryptionDisabled' => true || false, 'encryptionKey' => '', 'packaging' => 'ZIP|NONE', 'path' => '', ], ], 'lastModified' => , 'name' => '', 'status' => 'ACTIVE|DELETING', 'tags' => [ [ 'key' => '', 'value' => '', ], // ... ], 'type' => 'TEST|CODE_COVERAGE', ], ]

Result Details

Members

reportGroup

Type: ReportGroup structure

Information about the updated report group.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

UpdateWebhook

result=result = result=client->updateWebhook([/* ... /]); promise=promise = promise=client->updateWebhookAsync([/ ... */]);

Updates the webhook associated with an CodeBuild build project.

If you use Bitbucket for your repository, rotateSecret is ignored.

Parameter Syntax

result=result = result=client->updateWebhook([ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', // REQUIRED 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', // REQUIRED ], // ... ], // ... ], 'projectName' => '', // REQUIRED 'rotateSecret' => true || false, ]);

Parameter Details

Members

branchFilter

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

It is recommended that you use filterGroups instead of branchFilter.

buildType

Specifies the type of build this webhook will trigger.

RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

filterGroups

Type: Array of WebhookFilter structuress

An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

projectName

Required: Yes

Type: string

The name of the CodeBuild project.

rotateSecret

A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.

Result Syntax

[ 'webhook' => [ 'branchFilter' => '', 'buildType' => 'BUILD|BUILD_BATCH|RUNNER_BUILDKITE_BUILD', 'filterGroups' => [ [ [ 'excludeMatchedPattern' => true || false, 'pattern' => '', 'type' => 'EVENT|BASE_REF|HEAD_REF|ACTOR_ACCOUNT_ID|FILE_PATH|COMMIT_MESSAGE|WORKFLOW_NAME|TAG_NAME|RELEASE_NAME|REPOSITORY_NAME|ORGANIZATION_NAME', ], // ... ], // ... ], 'lastModifiedSecret' => , 'manualCreation' => true || false, 'payloadUrl' => '', 'scopeConfiguration' => [ 'domain' => '', 'name' => '', 'scope' => 'GITHUB_ORGANIZATION|GITHUB_GLOBAL|GITLAB_GROUP', ], 'secret' => '', 'status' => 'CREATING|CREATE_FAILED|ACTIVE|DELETING', 'statusMessage' => '', 'url' => '', ], ]

Result Details

Members

webhook

Information about a repository's webhook that is associated with a project in CodeBuild.

Errors

InvalidInputException:

The input value that was provided is not valid.

ResourceNotFoundException:

The specified Amazon Web Services resource cannot be found.

OAuthProviderException:

There was a problem with the underlying OAuth provider.

Shapes

AccountLimitExceededException

Description

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

Members

AccountSuspendedException

Description

The CodeBuild access has been suspended for the calling Amazon Web Services account.

Members

AutoRetryConfig

Description

Information about the auto-retry configuration for the build.

Members

autoRetryLimit

The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

autoRetryNumber

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

nextAutoRetry

The build ARN of the auto-retried build triggered by the current build. The next auto-retry will be null for builds that don't trigger an auto-retry.

previousAutoRetry

The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

BatchRestrictions

Description

Specifies restrictions for the batch build.

Members

computeTypesAllowed

An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.

fleetsAllowed

An array of strings that specify the fleets that are allowed for the batch build. See Run builds on reserved capacity fleets in the CodeBuild User Guide for more information.

maximumBuildsAllowed

Specifies the maximum number of builds allowed.

Build

Description

Information about a build.

Members

arn

The Amazon Resource Name (ARN) of the build.

artifacts

Type: BuildArtifacts structure

Information about the output artifacts for the build.

autoRetryConfig

Type: AutoRetryConfig structure

Information about the auto-retry configuration for the build.

buildBatchArn

The ARN of the batch build that this build is a member of, if applicable.

buildComplete

Whether the build is complete. True if complete; otherwise, false.

buildNumber

The number of the build. For each project, the buildNumber of its first build is 1. The buildNumber of each subsequent build is incremented by 1. If a build is deleted, the buildNumber of other builds does not change.

buildStatus

The current status of the build. Valid values include:

cache

Type: ProjectCache structure

Information about the cache for the build.

currentPhase

The current build phase.

debugSession

Type: DebugSession structure

Contains information about the debug session for this build.

encryptionKey

The Key Management Service customer master key (CMK) to be used for encrypting the 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>).

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build process ended, expressed in Unix time format.

environment

Type: ProjectEnvironment structure

Information about the build environment for this build.

exportedEnvironmentVariables

Type: Array of ExportedEnvironmentVariable structures

A list of exported environment variables for this build.

Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.

fileSystemLocations

Type: Array of ProjectFileSystemLocation structures

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

id

The unique ID for the build.

initiator

The entity that started the build. Valid values include:

logs

Type: LogsLocation structure

Information about the build's logs in CloudWatch Logs.

networkInterface

Type: NetworkInterface structure

Describes a network interface.

phases

Type: Array of BuildPhase structures

Information about all previous build phases that are complete and information about any current build phase that is not yet complete.

projectName

The name of the CodeBuild project.

queuedTimeoutInMinutes

The number of minutes a build is allowed to be queued before it times out.

reportArns

An array of the ARNs associated with this build's reports.

resolvedSourceVersion

An identifier for the version of this build's source code.

secondaryArtifacts

Type: Array of BuildArtifacts structures

An array of ProjectArtifacts objects.

secondarySourceVersions

Type: Array of ProjectSourceVersion structures

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

secondarySources

Type: Array of ProjectSource structures

An array of ProjectSource objects.

serviceRole

The name of a service role used for this build.

source

Type: ProjectSource structure

Information about the source code to be built.

sourceVersion

Any version identifier for the version of the source code to be built. If sourceVersion is specified at the project level, then this sourceVersion (at the build level) takes precedence.

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build process started, expressed in Unix time format.

timeoutInMinutes

How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this build if it does not get marked as completed.

vpcConfig

Type: VpcConfig structure

If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.

BuildArtifacts

Description

Information about build output artifacts.

Members

artifactIdentifier

An identifier for this artifact definition.

bucketOwnerAccess

Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.

To use this property, your CodeBuild service role must have the s3:PutBucketAcl permission. This permission allows CodeBuild to modify the access control list for the bucket.

This property can be one of the following values:

NONE

The bucket owner does not have access to the objects. This is the default.

READ_ONLY

The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.

FULL

The bucket owner has full access to the objects. Object ownership is determined by the following criteria:

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.

encryptionDisabled

Information that tells you if encryption for build artifacts is disabled.

location

Information about the location of the build artifacts.

md5sum

The MD5 hash of the build artifact.

You can use this hash along with a checksum tool to confirm file integrity and authenticity.

This value is available only if the build project's packaging value is set to ZIP.

overrideArtifactName

If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

sha256sum

The SHA-256 hash of the build artifact.

You can use this hash along with a checksum tool to confirm file integrity and authenticity.

This value is available only if the build project's packaging value is set to ZIP.

BuildBatch

Description

Contains information about a batch build.

Members

arn

The ARN of the batch build.

artifacts

Type: BuildArtifacts structure

A BuildArtifacts object the defines the build artifacts for this batch build.

buildBatchConfig

Type: ProjectBuildBatchConfig structure

Contains configuration information about a batch build project.

buildBatchNumber

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.

buildBatchStatus

The status of the batch build.

buildGroups

Type: Array of BuildGroup structures

An array of BuildGroup objects that define the build groups for the batch build.

buildTimeoutInMinutes

Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.

cache

Type: ProjectCache structure

Information about the cache for the build project.

complete

Indicates if the batch build is complete.

currentPhase

The current phase of the batch build.

debugSessionEnabled

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.

encryptionKey

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>).

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the batch build ended.

environment

Type: ProjectEnvironment structure

Information about the build environment of the build project.

fileSystemLocations

Type: Array of ProjectFileSystemLocation structures

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.

id

The identifier of the batch build.

initiator

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

logConfig

Type: LogsConfig structure

Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.

phases

Type: Array of BuildBatchPhase structures

An array of BuildBatchPhase objects the specify the phases of the batch build.

projectName

The name of the batch build project.

queuedTimeoutInMinutes

Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.

reportArns

An array that contains the ARNs of reports created by merging reports from builds associated with this batch build.

resolvedSourceVersion

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

secondaryArtifacts

Type: Array of BuildArtifacts structures

An array of BuildArtifacts objects the define the build artifacts for this batch build.

secondarySourceVersions

Type: Array of ProjectSourceVersion structures

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

secondarySources

Type: Array of ProjectSource structures

An array of ProjectSource objects that define the sources for the batch build.

serviceRole

The name of a service role used for builds in the batch.

source

Type: ProjectSource structure

Information about the build input source code for the build project.

sourceVersion

The identifier of the version of the source code to be built.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the batch build started.

vpcConfig

Type: VpcConfig structure

Information about the VPC configuration that CodeBuild accesses.

BuildBatchFilter

Description

Specifies filters when retrieving batch builds.

Members

status

The status of the batch builds to retrieve. Only batch builds that have this status will be retrieved.

BuildBatchPhase

Description

Contains information about a stage for a batch build.

Members

contexts

Type: Array of PhaseContext structures

Additional information about the batch build phase. Especially to help troubleshoot a failed batch build.

durationInSeconds

How long, in seconds, between the starting and ending times of the batch build's phase.

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the batch build phase ended, expressed in Unix time format.

phaseStatus

The current status of the batch build phase. Valid values include:

FAILED

The build phase failed.

FAULT

The build phase faulted.

IN_PROGRESS

The build phase is still in progress.

STOPPED

The build phase stopped.

SUCCEEDED

The build phase succeeded.

TIMED_OUT

The build phase timed out.

phaseType

The name of the batch build phase. Valid values include:

COMBINE_ARTIFACTS

Build output artifacts are being combined and uploaded to the output location.

DOWNLOAD_BATCHSPEC

The batch build specification is being downloaded.

FAILED

One or more of the builds failed.

IN_PROGRESS

The batch build is in progress.

STOPPED

The batch build was stopped.

SUBMITTED

The btach build has been submitted.

SUCCEEDED

The batch build succeeded.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the batch build phase started, expressed in Unix time format.

BuildGroup

Description

Contains information about a batch build build group. Build groups are used to combine builds that can run in parallel, while still being able to set dependencies on other build groups.

Members

currentBuildSummary

Type: BuildSummary structure

A BuildSummary object that contains a summary of the current build group.

dependsOn

An array of strings that contain the identifiers of the build groups that this build group depends on.

identifier

Contains the identifier of the build group.

ignoreFailure

Specifies if failures in this build group can be ignored.

priorBuildSummaryList

Type: Array of BuildSummary structures

An array of BuildSummary objects that contain summaries of previous build groups.

BuildNotDeleted

Description

Information about a build that could not be successfully deleted.

Members

id

The ID of the build that could not be successfully deleted.

statusCode

Additional information about the build that could not be successfully deleted.

BuildPhase

Description

Information about a stage for a build.

Members

contexts

Type: Array of PhaseContext structures

Additional information about a build phase, especially to help troubleshoot a failed build.

durationInSeconds

How long, in seconds, between the starting and ending times of the build's phase.

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build phase ended, expressed in Unix time format.

phaseStatus

The current status of the build phase. Valid values include:

FAILED

The build phase failed.

FAULT

The build phase faulted.

IN_PROGRESS

The build phase is still in progress.

STOPPED

The build phase stopped.

SUCCEEDED

The build phase succeeded.

TIMED_OUT

The build phase timed out.

phaseType

The name of the build phase. Valid values include:

BUILD

Core build activities typically occur in this build phase.

COMPLETED

The build has been completed.

DOWNLOAD_SOURCE

Source code is being downloaded in this build phase.

FINALIZING

The build process is completing in this build phase.

INSTALL

Installation activities typically occur in this build phase.

POST_BUILD

Post-build activities typically occur in this build phase.

PRE_BUILD

Pre-build activities typically occur in this build phase.

PROVISIONING

The build environment is being set up.

QUEUED

The build has been submitted and is queued behind other submitted builds.

SUBMITTED

The build has been submitted.

UPLOAD_ARTIFACTS

Build output artifacts are being uploaded to the output location.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build phase started, expressed in Unix time format.

BuildStatusConfig

Description

Contains information that defines how the CodeBuild build project reports the build status to the source provider.

Members

context

Specifies the context of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.

Bitbucket

This parameter is used for the name parameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation.

GitHub/GitHub Enterprise Server

This parameter is used for the context parameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.

targetUrl

Specifies the target url of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.

Bitbucket

This parameter is used for the url parameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation.

GitHub/GitHub Enterprise Server

This parameter is used for the target_url parameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.

BuildSummary

Description

Contains summary information about a batch build group.

Members

arn

The batch build ARN.

buildStatus

The status of the build group.

FAILED

The build group failed.

FAULT

The build group faulted.

IN_PROGRESS

The build group is still in progress.

STOPPED

The build group stopped.

SUCCEEDED

The build group succeeded.

TIMED_OUT

The build group timed out.

primaryArtifact

Type: ResolvedArtifact structure

A ResolvedArtifact object that represents the primary build artifacts for the build group.

requestedOn

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build was started, expressed in Unix time format.

secondaryArtifacts

Type: Array of ResolvedArtifact structures

An array of ResolvedArtifact objects that represents the secondary build artifacts for the build group.

CloudWatchLogsConfig

Description

Information about CloudWatch Logs for a build project.

Members

groupName

status

Required: Yes

Type: string

The current status of the logs in CloudWatch Logs for a build project. Valid values are:

streamName

CodeCoverage

Description

Contains code coverage report information.

Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.

Branch coverage determines if your tests cover every possible branch of a control structure, such as an if or case statement.

Members

branchCoveragePercentage

The percentage of branches that are covered by your tests.

branchesCovered

The number of conditional branches that are covered by your tests.

branchesMissed

The number of conditional branches that are not covered by your tests.

expired

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the tests were run.

filePath

The path of the test report file.

id

The identifier of the code coverage report.

lineCoveragePercentage

The percentage of lines that are covered by your tests.

linesCovered

The number of lines that are covered by your tests.

linesMissed

The number of lines that are not covered by your tests.

reportARN

The ARN of the report.

CodeCoverageReportSummary

Description

Contains a summary of a code coverage report.

Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.

Branch coverage determines if your tests cover every possible branch of a control structure, such as an if or case statement.

Members

branchCoveragePercentage

The percentage of branches that are covered by your tests.

branchesCovered

The number of conditional branches that are covered by your tests.

branchesMissed

The number of conditional branches that are not covered by your tests.

lineCoveragePercentage

The percentage of lines that are covered by your tests.

linesCovered

The number of lines that are covered by your tests.

linesMissed

The number of lines that are not covered by your tests.

CommandExecution

Description

Contains command execution information.

Members

command

The command that needs to be executed.

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the command execution process ended, expressed in Unix time format.

exitCode

The exit code to return upon completion.

id

The ID of the command execution.

logs

Type: LogsLocation structure

Information about build logs in CloudWatch Logs.

sandboxArn

A sandboxArn.

sandboxId

A sandboxId.

standardErrContent

The text written by the command to stderr.

standardOutputContent

The text written by the command to stdout.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the command execution process started, expressed in Unix time format.

status

The status of the command execution.

submitTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the command execution process was initially submitted, expressed in Unix time format.

type

The command type.

ComputeConfiguration

Description

Contains compute attributes. These attributes only need be specified when your project's or fleet's computeType is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE.

Members

disk

The amount of disk space of the instance type included in your fleet.

instanceType

The EC2 instance type to be launched in your fleet.

machineType

The machine type of the instance type included in your fleet.

memory

The amount of memory of the instance type included in your fleet.

vCpu

The number of vCPUs of the instance type included in your fleet.

DebugSession

Description
Members

sessionEnabled

Specifies if session debugging is enabled for this build.

sessionTarget

Contains the identifier of the Session Manager session used for the build. To work with the paused build, you open this session to examine, control, and resume the build.

EnvironmentImage

Description

Information about a Docker image that is managed by CodeBuild.

Members

description

The description of the Docker image.

name

The name of the Docker image.

versions

A list of environment image versions.

EnvironmentLanguage

Description

A set of Docker images that are related by programming language and are managed by CodeBuild.

Members

images

Type: Array of EnvironmentImage structures

The list of Docker images that are related by the specified programming language.

language

The programming language for the Docker images.

EnvironmentPlatform

Description

A set of Docker images that are related by platform and are managed by CodeBuild.

Members

languages

Type: Array of EnvironmentLanguage structures

The list of programming languages that are available for the specified platform.

platform

The platform's name.

EnvironmentVariable

Description

Information about an environment variable for a build project or a build.

Members

name

Required: Yes

Type: string

The name or key of the environment variable.

type

The type of environment variable. Valid values include:

value

Required: Yes

Type: string

The value of the environment variable.

We strongly discourage the use of PLAINTEXT environment variables to store sensitive values, especially Amazon Web Services secret key IDs. PLAINTEXT environment variables can be displayed in plain text using the CodeBuild console and the CLI. For sensitive values, we recommend you use an environment variable of type PARAMETER_STORE or SECRETS_MANAGER.

ExportedEnvironmentVariable

Description

Contains information about an exported environment variable.

Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.

During a build, the value of a variable is available starting with the install phase. It can be updated between the start of the install phase and the end of the post_build phase. After the post_build phase ends, the value of exported variables cannot change.

Members

name

The name of the exported environment variable.

value

The value assigned to the exported environment variable.

Fleet

Description

A set of dedicated instances for your build environment.

Members

arn

The ARN of the compute fleet.

baseCapacity

The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.

computeConfiguration

Type: ComputeConfiguration structure

The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

computeType

Information about the compute resources the compute fleet uses. Available values include:

If you use BUILD_GENERAL1_SMALL:

If you use BUILD_GENERAL1_LARGE:

For more information, see On-demand environment types in the CodeBuild User Guide.

created

Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the compute fleet was created.

environmentType

The environment type of the compute fleet.

For more information, see Build environment compute types in the CodeBuild user guide.

fleetServiceRole

id

The ID of the compute fleet.

imageId

The Amazon Machine Image (AMI) of the compute fleet.

lastModified

Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the compute fleet was last modified.

name

The name of the compute fleet.

overflowBehavior

The compute fleet overflow behavior.

proxyConfiguration

Type: ProxyConfiguration structure

The proxy configuration of the compute fleet.

scalingConfiguration

Type: ScalingConfigurationOutput structure

The scaling configuration of the compute fleet.

status

Type: FleetStatus structure

The status of the compute fleet.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this compute fleet.

These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.

vpcConfig

Type: VpcConfig structure

Information about the VPC configuration that CodeBuild accesses.

FleetProxyRule

Description

Information about the proxy rule for your reserved capacity instances.

Members

effect

Required: Yes

Type: string

The behavior of the proxy rule.

entities

Required: Yes

Type: Array of strings

The destination of the proxy rule.

type

Required: Yes

Type: string

The type of proxy rule.

FleetStatus

Description

The status of the compute fleet.

Members

context

Additional information about a compute fleet. Valid values include:

message

A message associated with the status of a compute fleet.

statusCode

The status code of the compute fleet. Valid values include:

GitSubmodulesConfig

Description

Information about the Git submodules configuration for an CodeBuild build project.

Members

fetchSubmodules

Required: Yes

Type: boolean

Set to true to fetch Git submodules for your CodeBuild build project.

InvalidInputException

Description

The input value that was provided is not valid.

Members

LogsConfig

Description

Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.

Members

cloudWatchLogs

Type: CloudWatchLogsConfig structure

Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.

s3Logs

Type: S3LogsConfig structure

Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.

LogsLocation

Description

Information about build logs in CloudWatch Logs.

Members

cloudWatchLogs

Type: CloudWatchLogsConfig structure

Information about CloudWatch Logs for a build project.

cloudWatchLogsArn

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.

deepLink

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.

groupName

The name of the CloudWatch Logs group for the build logs.

s3DeepLink

The URL to a build log in an S3 bucket.

s3Logs

Type: S3LogsConfig structure

Information about S3 logs for a build project.

s3LogsArn

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.

streamName

The name of the CloudWatch Logs stream for the build logs.

NetworkInterface

Description

Describes a network interface.

Members

networkInterfaceId

The ID of the network interface.

subnetId

The ID of the subnet.

OAuthProviderException

Description

There was a problem with the underlying OAuth provider.

Members

PhaseContext

Description

Additional information about a build phase that has an error. You can use this information for troubleshooting.

Members

message

An explanation of the build phase's context. This might include a command ID and an exit code.

statusCode

The status code for the context of the build phase.

Project

Description

Information about a build project.

Members

arn

The Amazon Resource Name (ARN) of the build project.

artifacts

Type: ProjectArtifacts structure

Information about the build output artifacts for the build project.

autoRetryLimit

The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

badge

Type: ProjectBadge structure

Information about the build badge for the build project.

buildBatchConfig

Type: ProjectBuildBatchConfig structure

cache

Type: ProjectCache structure

Information about the cache for the build project.

concurrentBuildLimit

The maximum number of concurrent builds that are allowed for this project.

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

created

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build project was created, expressed in Unix time format.

description

A description that makes the build project easy to identify.

encryptionKey

The Key Management Service customer master key (CMK) to be used for encrypting the 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>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).

environment

Type: ProjectEnvironment structure

Information about the build environment for this build project.

fileSystemLocations

Type: Array of ProjectFileSystemLocation structures

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

lastModified

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the build project's settings were last modified, expressed in Unix time format.

logsConfig

Type: LogsConfig structure

Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.

name

The name of the build project.

projectVisibility

Specifies the visibility of the project's builds. Possible values are:

PUBLIC_READ

The project builds are visible to the public.

PRIVATE

The project builds are not visible to the public.

publicProjectAlias

Contains the project identifier used with the public build APIs.

queuedTimeoutInMinutes

The number of minutes a build is allowed to be queued before it times out.

resourceAccessRole

The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.

secondaryArtifacts

Type: Array of ProjectArtifacts structures

An array of ProjectArtifacts objects.

secondarySourceVersions

Type: Array of ProjectSourceVersion structures

An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).

secondarySources

Type: Array of ProjectSource structures

An array of ProjectSource objects.

serviceRole

The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.

source

Type: ProjectSource structure

Information about the build input source code for this build project.

sourceVersion

A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:

If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this build project.

These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.

timeoutInMinutes

How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.

vpcConfig

Type: VpcConfig structure

Information about the VPC configuration that CodeBuild accesses.

webhook

Information about a webhook that connects repository events to a build project in CodeBuild.

ProjectArtifacts

Description

Information about the build output artifacts for the build project.

Members

artifactIdentifier

An identifier for this artifact definition.

bucketOwnerAccess

Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.

To use this property, your CodeBuild service role must have the s3:PutBucketAcl permission. This permission allows CodeBuild to modify the access control list for the bucket.

This property can be one of the following values:

NONE

The bucket owner does not have access to the objects. This is the default.

READ_ONLY

The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.

FULL

The bucket owner has full access to the objects. Object ownership is determined by the following criteria:

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.

encryptionDisabled

Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown.

location

Information about the build output artifact location:

name

Along with path and namespaceType, the pattern that CodeBuild uses to name and store the output artifact:

For example:

namespaceType

Along with path and name, the pattern that CodeBuild uses to determine the name and location to store the output artifact:

For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID, and name is set to MyArtifact.zip, the output artifact is stored in MyArtifacts/<build-ID>/MyArtifact.zip.

overrideArtifactName

If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

packaging

The type of build output artifact to create:

path

Along with namespaceType and name, the pattern that CodeBuild uses to name and store the output artifact:

For example, if path is set to MyArtifacts, namespaceType is set to NONE, and name is set to MyArtifact.zip, the output artifact is stored in the output bucket at MyArtifacts/MyArtifact.zip.

type

Required: Yes

Type: string

The type of build output artifact. Valid values include:

ProjectBadge

Description

Information about the build badge for the build project.

Members

badgeEnabled

Set this to true to generate a publicly accessible URL for your project's build badge.

badgeRequestUrl

The publicly-accessible URL through which you can access the build badge for your project.

ProjectBuildBatchConfig

Description

Contains configuration information about a batch build project.

Members

batchReportMode

Specifies how build status reports are sent to the source provider for the batch build. This property is only used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is configured to report build statuses to the source provider.

REPORT_AGGREGATED_BATCH

(Default) Aggregate all of the build statuses into a single status report.

REPORT_INDIVIDUAL_BUILDS

Send a separate status report for each individual build.

combineArtifacts

Specifies if the build artifacts for the batch build should be combined into a single artifact location.

restrictions

Type: BatchRestrictions structure

A BatchRestrictions object that specifies the restrictions for the batch build.

serviceRole

Specifies the service role ARN for the batch build project.

timeoutInMins

Specifies the maximum amount of time, in minutes, that the batch build must be completed in.

ProjectCache

Description

Information about the cache for the build project.

Members

cacheNamespace

Defines the scope of the cache. You can use this namespace to share a cache across multiple projects. For more information, see Cache sharing between projects in the CodeBuild User Guide.

location

Information about the cache location:

modes

An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for LOCAL cache types.

Possible values are:

LOCAL_SOURCE_CACHE

Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored.

LOCAL_DOCKER_LAYER_CACHE

Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network.

LOCAL_CUSTOM_CACHE

Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache:

type

Required: Yes

Type: string

The type of cache used by the build project. Valid values include:

ProjectEnvironment

Description

Information about the build environment of the build project.

Members

certificate

The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see certificate in the CodeBuild User Guide.

computeConfiguration

Type: ComputeConfiguration structure

The compute configuration of the build project. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

computeType

Required: Yes

Type: string

Information about the compute resources the build project uses. Available values include:

If you use BUILD_GENERAL1_SMALL:

If you use BUILD_GENERAL1_LARGE:

For more information, see On-demand environment types in the CodeBuild User Guide.

environmentVariables

Type: Array of EnvironmentVariable structures

A set of environment variables to make available to builds for this build project.

fleet

Type: ProjectFleet structure

A ProjectFleet object to use for this build project.

image

Required: Yes

Type: string

The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats:

For more information, see Docker images provided by CodeBuild in the CodeBuild user guide.

imagePullCredentialsType

The type of credentials CodeBuild uses to pull images in your build. There are two valid values:

When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an CodeBuild curated image, you must use CODEBUILD credentials.

privilegedMode

Enables running the Docker daemon inside a Docker container. Set to true only if the build project is used to build Docker images. Otherwise, a build that attempts to interact with the Docker daemon fails. The default setting is false.

You can initialize the Docker daemon during the install phase of your build by adding one of the following sets of commands to the install phase of your buildspec file:

If the operating system's base image is Ubuntu Linux:

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&

- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"

If the operating system's base image is Alpine Linux and the previous command does not work, add the -t argument to timeout:

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&

- timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"

registryCredential

Type: RegistryCredential structure

The credentials for access to a private registry.

type

Required: Yes

Type: string

The type of build environment to use for related builds.

If you're using compute fleets during project creation, type will be ignored.

For more information, see Build environment compute types in the CodeBuild user guide.

ProjectFileSystemLocation

Description
Members

identifier

The name used to access a file system created by Amazon EFS. CodeBuild creates an environment variable by appending the identifier in all capital letters to CODEBUILD_. For example, if you specify my_efs for identifier, a new environment variable is create named CODEBUILD_MY_EFS.

The identifier is used to mount your file system.

location

A string that specifies the location of the file system created by Amazon EFS. Its format is efs-dns-name:/directory-path. You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount directory is my-efs-mount-directory, then the location is fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.

The directory path in the format efs-dns-name:/directory-path is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system.

mountOptions

The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild are nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For more information, see Recommended NFS Mount Options.

mountPoint

The location in the container where you mount the file system.

type

The type of the file system. The one supported type is EFS.

ProjectFleet

Description
Members

fleetArn

Specifies the compute fleet ARN for the build project.

ProjectSource

Description

Information about the build input source code for the build project.

Members

auth

Type: SourceAuth structure

Information about the authorization settings for CodeBuild to access the source code to be built.

buildStatusConfig

Type: BuildStatusConfig structure

Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

buildspec

The buildspec file declaration to use for the builds in this build project.

If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.

gitCloneDepth

Information about the Git clone depth for the build project.

gitSubmodulesConfig

Type: GitSubmodulesConfig structure

Information about the Git submodules configuration for the build project.

insecureSsl

Enable this flag to ignore SSL warnings while connecting to the project source code.

location

Information about the location of the source code to be built. Valid values include:

If you specify CODEPIPELINE for the Type property, don't specify this property. For all of the other types, you must specify Location.

reportBuildStatus

Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, GitLab, GitLab Self Managed, or Bitbucket. If this is set and you use a different source provider, an invalidInputException is thrown.

To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

The status of a build triggered by a webhook is always reported to your source provider.

If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this property to take effect.

sourceIdentifier

An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.

type

Required: Yes

Type: string

The type of repository that contains the source code to be built. Valid values include:

ProjectSourceVersion

Description

A source identifier and its corresponding version.

Members

sourceIdentifier

Required: Yes

Type: string

An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.

sourceVersion

Required: Yes

Type: string

The source version for the corresponding source identifier. If specified, must be one of:

For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

ProxyConfiguration

Description

Information about the proxy configurations that apply network access control to your reserved capacity instances.

Members

defaultBehavior

The default behavior of outgoing traffic.

orderedProxyRules

Type: Array of FleetProxyRule structures

An array of FleetProxyRule objects that represent the specified destination domains or IPs to allow or deny network access control to.

RegistryCredential

Description
Members

credential

Required: Yes

Type: string

The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.

The credential can use the name of the credentials only if they exist in your current Amazon Web Services Region.

credentialProvider

Required: Yes

Type: string

The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.

Report

Description

Information about the results from running a series of test cases during the run of a build project. The test cases are specified in the buildspec for the build project using one or more paths to the test case files. You can specify any type of tests you want, such as unit tests, integration tests, and functional tests.

Members

arn

The ARN of the report run.

codeCoverageSummary

Type: CodeCoverageReportSummary structure

A CodeCoverageReportSummary object that contains a code coverage summary for this report.

created

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time this report run occurred.

executionId

The ARN of the build run that generated this report.

expired

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time a report expires. A report expires 30 days after it is created. An expired report is not available to view in CodeBuild.

exportConfig

Type: ReportExportConfig structure

Information about where the raw data used to generate this report was exported.

name

The name of the report that was run.

reportGroupArn

The ARN of the report group associated with this report.

status

The status of this report.

testSummary

Type: TestReportSummary structure

A TestReportSummary object that contains information about this test report.

truncated

A boolean that specifies if this report run is truncated. The list of test cases is truncated after the maximum number of test cases is reached.

type

The type of the report that was run.

CODE_COVERAGE

A code coverage report.

TEST

A test report.

ReportExportConfig

Description

Information about the location where the run of a report is exported.

Members

exportConfigType

The export configuration type. Valid values are:

s3Destination

Type: S3ReportExportConfig structure

A S3ReportExportConfig object that contains information about the S3 bucket where the run of a report is exported.

ReportFilter

Description

A filter used to return reports with the status specified by the input status parameter.

Members

status

The status used to filter reports. You can filter using one status only.

ReportGroup

Description

A series of reports. Each report contains information about the results from running a series of test cases. You specify the test cases for a report group in the buildspec for a build project using one or more paths to the test case files.

Members

arn

The ARN of the ReportGroup.

created

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time this ReportGroup was created.

exportConfig

Type: ReportExportConfig structure

Information about the destination where the raw data of this ReportGroup is exported.

lastModified

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time this ReportGroup was last modified.

name

The name of the ReportGroup.

status

The status of the report group. This property is read-only.

This can be one of the following values:

ACTIVE

The report group is active.

DELETING

The report group is in the process of being deleted.

tags

Type: Array of Tag structures

A list of tag key and value pairs associated with this report group.

These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.

type

The type of the ReportGroup. This can be one of the following values:

CODE_COVERAGE

The report group contains code coverage reports.

TEST

The report group contains test reports.

ReportGroupTrendStats

Description

Contains trend statistics for a set of reports. The actual values depend on the type of trend being collected. For more information, see .

Members

average

Contains the average of all values analyzed.

max

Contains the maximum value analyzed.

min

Contains the minimum value analyzed.

ReportWithRawData

Description

Contains the unmodified data for the report. For more information, see .

Members

data

The value of the requested data field from the report.

reportArn

The ARN of the report.

ResolvedArtifact

Description

Represents a resolved build artifact. A resolved artifact is an artifact that is built and deployed to the destination, such as Amazon S3.

Members

identifier

The identifier of the artifact.

location

The location of the artifact.

type

Specifies the type of artifact.

ResourceAlreadyExistsException

Description

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

Members

ResourceNotFoundException

Description

The specified Amazon Web Services resource cannot be found.

Members

S3LogsConfig

Description

Information about S3 logs for a build project.

Members

bucketOwnerAccess

Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.

To use this property, your CodeBuild service role must have the s3:PutBucketAcl permission. This permission allows CodeBuild to modify the access control list for the bucket.

This property can be one of the following values:

NONE

The bucket owner does not have access to the objects. This is the default.

READ_ONLY

The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.

FULL

The bucket owner has full access to the objects. Object ownership is determined by the following criteria:

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.

encryptionDisabled

Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.

location

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.

status

Required: Yes

Type: string

The current status of the S3 build logs. Valid values are:

S3ReportExportConfig

Description

Information about the S3 bucket where the raw data of a report are exported.

Members

bucket

The name of the S3 bucket where the raw data of a report are exported.

bucketOwner

The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be exported to an Amazon S3 bucket that is owned by an account other than the account running the build.

encryptionDisabled

A boolean value that specifies if the results of a report are encrypted.

encryptionKey

The encryption key for the report's encrypted raw data.

packaging

The type of build output artifact to create. Valid values include:

path

The path to the exported report's raw data results.

SSMSession

Description

Contains information about the Session Manager session.

Members

sessionId

The ID of the session.

streamUrl

A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the node.

tokenValue

An encrypted token value containing session and caller information.

Sandbox

Description

Contains sandbox information.

Members

arn

The ARN of the sandbox.

currentSession

Type: SandboxSession structure

The current session for the sandbox.

encryptionKey

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

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox process ended, expressed in Unix time format.

environment

Type: ProjectEnvironment structure

Information about the build environment of the build project.

fileSystemLocations

Type: Array of ProjectFileSystemLocation structures

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

id

The ID of the sandbox.

logConfig

Type: LogsConfig structure

Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.

projectName

The CodeBuild project name.

queuedTimeoutInMinutes

The number of minutes a sandbox is allowed to be queued before it times out.

requestTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox process was initially requested, expressed in Unix time format.

secondarySourceVersions

Type: Array of ProjectSourceVersion structures

An array of ProjectSourceVersion objects.

secondarySources

Type: Array of ProjectSource structures

An array of ProjectSource objects.

serviceRole

The name of a service role used for this sandbox.

source

Type: ProjectSource structure

Information about the build input source code for the build project.

sourceVersion

Any version identifier for the version of the sandbox to be built.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox process started, expressed in Unix time format.

status

The status of the sandbox.

timeoutInMinutes

How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox if it does not get marked as completed.

vpcConfig

Type: VpcConfig structure

Information about the VPC configuration that CodeBuild accesses.

SandboxSession

Description

Contains information about the sandbox session.

Members

currentPhase

The current phase for the sandbox.

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox session ended, expressed in Unix time format.

id

The ID of the sandbox session.

logs

Type: LogsLocation structure

Information about build logs in CloudWatch Logs.

networkInterface

Type: NetworkInterface structure

Describes a network interface.

phases

Type: Array of SandboxSessionPhase structures

An array of SandboxSessionPhase objects.

resolvedSourceVersion

An identifier for the version of this sandbox's source code.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox session started, expressed in Unix time format.

status

The status of the sandbox session.

SandboxSessionPhase

Description

Contains information about the sandbox phase.

Members

contexts

Type: Array of PhaseContext structures

An array of PhaseContext objects.

durationInSeconds

How long, in seconds, between the starting and ending times of the sandbox's phase.

endTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox phase ended, expressed in Unix time format.

phaseStatus

The current status of the sandbox phase. Valid values include:

FAILED

The sandbox phase failed.

FAULT

The sandbox phase faulted.

IN_PROGRESS

The sandbox phase is still in progress.

STOPPED

The sandbox phase stopped.

SUCCEEDED

The sandbox phase succeeded.

TIMED_OUT

The sandbox phase timed out.

phaseType

The name of the sandbox phase.

startTime

Type: timestamp (string|DateTime or anything parsable by strtotime)

When the sandbox phase started, expressed in Unix time format.

ScalingConfigurationInput

Description

The scaling configuration input of a compute fleet.

Members

maxCapacity

The maximum number of instances in the fleet when auto-scaling.

scalingType

The scaling type for a compute fleet.

targetTrackingScalingConfigs

Type: Array of TargetTrackingScalingConfiguration structures

A list of TargetTrackingScalingConfiguration objects.

ScalingConfigurationOutput

Description

The scaling configuration output of a compute fleet.

Members

desiredCapacity

The desired number of instances in the fleet when auto-scaling.

maxCapacity

The maximum number of instances in the fleet when auto-scaling.

scalingType

The scaling type for a compute fleet.

targetTrackingScalingConfigs

Type: Array of TargetTrackingScalingConfiguration structures

A list of TargetTrackingScalingConfiguration objects.

ScopeConfiguration

Description

Contains configuration information about the scope for a webhook.

Members

domain

The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

name

Required: Yes

Type: string

The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

scope

Required: Yes

Type: string

The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION.

SourceAuth

Description

Information about the authorization settings for CodeBuild to access the source code to be built.

Members

resource

The resource value that applies to the specified authorization type.

type

Required: Yes

Type: string

The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.

SourceCredentialsInfo

Description

Information about the credentials for a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

Members

arn

The Amazon Resource Name (ARN) of the token.

authType

The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.

resource

The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER.

serverType

The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.

Tag

Description

A tag, consisting of a key and a value.

This tag is available for use by Amazon Web Services services that support tags in CodeBuild.

Members

key

The tag's key.

value

The tag's value.

TargetTrackingScalingConfiguration

Description

Defines when a new instance is auto-scaled into the compute fleet.

Members

metricType

The metric type to determine auto-scaling.

targetValue

The value of metricType when to start scaling.

TestCase

Description

Information about a test case created using a framework such as NUnit or Cucumber. A test case might be a unit test or a configuration test.

Members

durationInNanoSeconds

The number of nanoseconds it took to run this test case.

expired

Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.

message

A message associated with a test case. For example, an error message or stack trace.

name

The name of the test case.

prefix

A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.

reportArn

The ARN of the report to which the test case belongs.

status

The status returned by the test case after it was run. Valid statuses are SUCCEEDED, FAILED, ERROR, SKIPPED, and UNKNOWN.

testRawDataPath

The path to the raw data file that contains the test result.

testSuiteName

The name of the test suite that the test case is a part of.

TestCaseFilter

Description

A filter used to return specific types of test cases. In order to pass the filter, the report must meet all of the filter properties.

Members

keyword

A keyword that is used to filter on the name or the prefix of the test cases. Only test cases where the keyword is a substring of the name or the prefix will be returned.

status

The status used to filter test cases. A TestCaseFilter can have one status. Valid values are:

TestReportSummary

Description

Information about a test report.

Members

durationInNanoSeconds

Required: Yes

Type: long (int|float)

The number of nanoseconds it took to run all of the test cases in this report.

statusCounts

Required: Yes

Type: Associative array of custom strings keys (String) to ints

A map that contains the number of each type of status returned by the test results in this TestReportSummary.

total

The number of test cases in this TestReportSummary. The total includes truncated test cases.

VpcConfig

Description

Information about the VPC configuration that CodeBuild accesses.

Members

securityGroupIds

A list of one or more security groups IDs in your Amazon VPC.

subnets

A list of one or more subnet IDs in your Amazon VPC.

vpcId

The ID of the Amazon VPC.

Webhook

Description

Information about a webhook that connects repository events to a build project in CodeBuild.

Members

branchFilter

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

It is recommended that you use filterGroups instead of branchFilter.

buildType

Specifies the type of build this webhook will trigger.

RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

filterGroups

Type: Array of WebhookFilter structuress

An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At least one WebhookFilter in the array must specify EVENT as its type.

For a build to be triggered, at least one filter group in the filterGroups array must pass. For a filter group to pass, each of its filters must pass.

lastModifiedSecret

Type: timestamp (string|DateTime or anything parsable by strtotime)

A timestamp that indicates the last time a repository's secret token was modified.

manualCreation

If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub.

manualCreation is only available for GitHub webhooks.

payloadUrl

The CodeBuild endpoint where webhook events are sent.

scopeConfiguration

Type: ScopeConfiguration structure

The scope configuration for global or organization webhooks.

Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.

secret

The secret token of the associated repository.

A Bitbucket webhook does not support secret.

status

The status of the webhook. Valid values include:

statusMessage

A message associated with the status of a webhook.

url

The URL to the webhook.

WebhookFilter

Description

A filter used to determine which webhooks trigger a build.

Members

excludeMatchedPattern

Used to indicate that the pattern determines which webhook events do not trigger a build. If true, then a webhook event that does not match the pattern triggers a build. If false, then a webhook event that matches the pattern triggers a build.

pattern

Required: Yes

Type: string

For a WebHookFilter that uses EVENT type, a comma-separated string that specifies one or more events. For example, the webhook filter PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED allows all push, pull request created, and pull request updated events to trigger a build.

For a WebHookFilter that uses any of the other filter types, a regular expression pattern. For example, a WebHookFilter that uses HEAD_REF for its type and the pattern ^refs/heads/ triggers a build when the head reference is a branch with a reference name refs/heads/branch-name.

type

Required: Yes

Type: string

The type of webhook filter. There are 11 webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, COMMIT_MESSAGE, TAG_NAME, RELEASE_NAME, REPOSITORY_NAME, ORGANIZATION_NAME, and WORKFLOW_NAME.