{ "version":"2.0", "metadata":{ "apiVersion":"2016-10-06", "endpointPrefix":"codebuild", "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"AWS CodeBuild", "serviceId":"CodeBuild", "signatureVersion":"v4", "targetPrefix":"CodeBuild_20161006", "uid":"codebuild-2016-10-06" }, "operations":{ "BatchDeleteBuilds":{ "name":"BatchDeleteBuilds", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"BatchDeleteBuildsInput"}, "output":{"shape":"BatchDeleteBuildsOutput"}, "errors":[ {"shape":"InvalidInputException"} ], "documentation":"

Deletes one or more builds.

" }, "BatchGetBuilds":{ "name":"BatchGetBuilds", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"BatchGetBuildsInput"}, "output":{"shape":"BatchGetBuildsOutput"}, "errors":[ {"shape":"InvalidInputException"} ], "documentation":"

Gets information about builds.

" }, "BatchGetProjects":{ "name":"BatchGetProjects", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"BatchGetProjectsInput"}, "output":{"shape":"BatchGetProjectsOutput"}, "errors":[ {"shape":"InvalidInputException"} ], "documentation":"

Gets information about build projects.

" }, "CreateProject":{ "name":"CreateProject", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateProjectInput"}, "output":{"shape":"CreateProjectOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"AccountLimitExceededException"} ], "documentation":"

Creates a build project.

" }, "CreateWebhook":{ "name":"CreateWebhook", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"CreateWebhookInput"}, "output":{"shape":"CreateWebhookOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"OAuthProviderException"}, {"shape":"ResourceAlreadyExistsException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

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

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

" }, "DeleteProject":{ "name":"DeleteProject", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteProjectInput"}, "output":{"shape":"DeleteProjectOutput"}, "errors":[ {"shape":"InvalidInputException"} ], "documentation":"

Deletes a build project.

" }, "DeleteSourceCredentials":{ "name":"DeleteSourceCredentials", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteSourceCredentialsInput"}, "output":{"shape":"DeleteSourceCredentialsOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

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

" }, "DeleteWebhook":{ "name":"DeleteWebhook", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DeleteWebhookInput"}, "output":{"shape":"DeleteWebhookOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"}, {"shape":"OAuthProviderException"} ], "documentation":"

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

" }, "ImportSourceCredentials":{ "name":"ImportSourceCredentials", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ImportSourceCredentialsInput"}, "output":{"shape":"ImportSourceCredentialsOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"AccountLimitExceededException"}, {"shape":"ResourceAlreadyExistsException"} ], "documentation":"

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

" }, "InvalidateProjectCache":{ "name":"InvalidateProjectCache", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"InvalidateProjectCacheInput"}, "output":{"shape":"InvalidateProjectCacheOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Resets the cache for a project.

" }, "ListBuilds":{ "name":"ListBuilds", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListBuildsInput"}, "output":{"shape":"ListBuildsOutput"}, "errors":[ {"shape":"InvalidInputException"} ], "documentation":"

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

" }, "ListBuildsForProject":{ "name":"ListBuildsForProject", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListBuildsForProjectInput"}, "output":{"shape":"ListBuildsForProjectOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Gets a list of build IDs for the specified build project, with each build ID representing a single build.

" }, "ListCuratedEnvironmentImages":{ "name":"ListCuratedEnvironmentImages", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListCuratedEnvironmentImagesInput"}, "output":{"shape":"ListCuratedEnvironmentImagesOutput"}, "documentation":"

Gets information about Docker images that are managed by AWS CodeBuild.

" }, "ListProjects":{ "name":"ListProjects", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListProjectsInput"}, "output":{"shape":"ListProjectsOutput"}, "errors":[ {"shape":"InvalidInputException"} ], "documentation":"

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

" }, "ListSourceCredentials":{ "name":"ListSourceCredentials", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"ListSourceCredentialsInput"}, "output":{"shape":"ListSourceCredentialsOutput"}, "documentation":"

Returns a list of SourceCredentialsInfo objects.

" }, "StartBuild":{ "name":"StartBuild", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StartBuildInput"}, "output":{"shape":"StartBuildOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"}, {"shape":"AccountLimitExceededException"} ], "documentation":"

Starts running a build.

" }, "StopBuild":{ "name":"StopBuild", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"StopBuildInput"}, "output":{"shape":"StopBuildOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Attempts to stop running a build.

" }, "UpdateProject":{ "name":"UpdateProject", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateProjectInput"}, "output":{"shape":"UpdateProjectOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Changes the settings of a build project.

" }, "UpdateWebhook":{ "name":"UpdateWebhook", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"UpdateWebhookInput"}, "output":{"shape":"UpdateWebhookOutput"}, "errors":[ {"shape":"InvalidInputException"}, {"shape":"ResourceNotFoundException"}, {"shape":"OAuthProviderException"} ], "documentation":"

Updates the webhook associated with an AWS CodeBuild build project.

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

" } }, "shapes":{ "AccountLimitExceededException":{ "type":"structure", "members":{ }, "documentation":"

An AWS service limit was exceeded for the calling AWS account.

", "exception":true }, "ArtifactNamespace":{ "type":"string", "enum":[ "NONE", "BUILD_ID" ] }, "ArtifactPackaging":{ "type":"string", "enum":[ "NONE", "ZIP" ] }, "ArtifactsType":{ "type":"string", "enum":[ "CODEPIPELINE", "S3", "NO_ARTIFACTS" ] }, "AuthType":{ "type":"string", "enum":[ "OAUTH", "BASIC_AUTH", "PERSONAL_ACCESS_TOKEN" ] }, "BatchDeleteBuildsInput":{ "type":"structure", "required":["ids"], "members":{ "ids":{ "shape":"BuildIds", "documentation":"

The IDs of the builds to delete.

" } } }, "BatchDeleteBuildsOutput":{ "type":"structure", "members":{ "buildsDeleted":{ "shape":"BuildIds", "documentation":"

The IDs of the builds that were successfully deleted.

" }, "buildsNotDeleted":{ "shape":"BuildsNotDeleted", "documentation":"

Information about any builds that could not be successfully deleted.

" } } }, "BatchGetBuildsInput":{ "type":"structure", "required":["ids"], "members":{ "ids":{ "shape":"BuildIds", "documentation":"

The IDs of the builds.

" } } }, "BatchGetBuildsOutput":{ "type":"structure", "members":{ "builds":{ "shape":"Builds", "documentation":"

Information about the requested builds.

" }, "buildsNotFound":{ "shape":"BuildIds", "documentation":"

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

" } } }, "BatchGetProjectsInput":{ "type":"structure", "required":["names"], "members":{ "names":{ "shape":"ProjectNames", "documentation":"

The names of the build projects.

" } } }, "BatchGetProjectsOutput":{ "type":"structure", "members":{ "projects":{ "shape":"Projects", "documentation":"

Information about the requested build projects.

" }, "projectsNotFound":{ "shape":"ProjectNames", "documentation":"

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

" } } }, "Boolean":{"type":"boolean"}, "Build":{ "type":"structure", "members":{ "id":{ "shape":"NonEmptyString", "documentation":"

The unique ID for the build.

" }, "arn":{ "shape":"NonEmptyString", "documentation":"

The Amazon Resource Name (ARN) of the build.

" }, "startTime":{ "shape":"Timestamp", "documentation":"

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

" }, "endTime":{ "shape":"Timestamp", "documentation":"

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

" }, "currentPhase":{ "shape":"String", "documentation":"

The current build phase.

" }, "buildStatus":{ "shape":"StatusType", "documentation":"

The current status of the build. Valid values include:

" }, "sourceVersion":{ "shape":"NonEmptyString", "documentation":"

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 AWS CodeBuild User Guide.

" }, "resolvedSourceVersion":{ "shape":"NonEmptyString", "documentation":"

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

" }, "projectName":{ "shape":"NonEmptyString", "documentation":"

The name of the AWS CodeBuild project.

" }, "phases":{ "shape":"BuildPhases", "documentation":"

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

" }, "source":{ "shape":"ProjectSource", "documentation":"

Information about the source code to be built.

" }, "secondarySources":{ "shape":"ProjectSources", "documentation":"

An array of ProjectSource objects.

" }, "secondarySourceVersions":{ "shape":"ProjectSecondarySourceVersions", "documentation":"

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

" }, "artifacts":{ "shape":"BuildArtifacts", "documentation":"

Information about the output artifacts for the build.

" }, "secondaryArtifacts":{ "shape":"BuildArtifactsList", "documentation":"

An array of ProjectArtifacts objects.

" }, "cache":{ "shape":"ProjectCache", "documentation":"

Information about the cache for the build.

" }, "environment":{ "shape":"ProjectEnvironment", "documentation":"

Information about the build environment for this build.

" }, "serviceRole":{ "shape":"NonEmptyString", "documentation":"

The name of a service role used for this build.

" }, "logs":{ "shape":"LogsLocation", "documentation":"

Information about the build's logs in Amazon CloudWatch Logs.

" }, "timeoutInMinutes":{ "shape":"WrapperInt", "documentation":"

How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.

" }, "queuedTimeoutInMinutes":{ "shape":"WrapperInt", "documentation":"

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

" }, "buildComplete":{ "shape":"Boolean", "documentation":"

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

" }, "initiator":{ "shape":"String", "documentation":"

The entity that started the build. Valid values include:

" }, "vpcConfig":{ "shape":"VpcConfig", "documentation":"

If your AWS 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.

" }, "networkInterface":{ "shape":"NetworkInterface", "documentation":"

Describes a network interface.

" }, "encryptionKey":{ "shape":"NonEmptyString", "documentation":"

The AWS Key Management Service (AWS KMS) 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 ).

" } }, "documentation":"

Information about a build.

" }, "BuildArtifacts":{ "type":"structure", "members":{ "location":{ "shape":"String", "documentation":"

Information about the location of the build artifacts.

" }, "sha256sum":{ "shape":"String", "documentation":"

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.

" }, "md5sum":{ "shape":"String", "documentation":"

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":{ "shape":"WrapperBoolean", "documentation":"

If this flag is set, a name specified in the build spec file overrides the artifact name. The name specified in a build spec 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.

" }, "encryptionDisabled":{ "shape":"WrapperBoolean", "documentation":"

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

" }, "artifactIdentifier":{ "shape":"String", "documentation":"

An identifier for this artifact definition.

" } }, "documentation":"

Information about build output artifacts.

" }, "BuildArtifactsList":{ "type":"list", "member":{"shape":"BuildArtifacts"}, "max":12, "min":0 }, "BuildIds":{ "type":"list", "member":{"shape":"NonEmptyString"}, "max":100, "min":1 }, "BuildNotDeleted":{ "type":"structure", "members":{ "id":{ "shape":"NonEmptyString", "documentation":"

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

" }, "statusCode":{ "shape":"String", "documentation":"

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

" } }, "documentation":"

Information about a build that could not be successfully deleted.

" }, "BuildPhase":{ "type":"structure", "members":{ "phaseType":{ "shape":"BuildPhaseType", "documentation":"

The name of the build phase. Valid values include:

" }, "phaseStatus":{ "shape":"StatusType", "documentation":"

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

" }, "startTime":{ "shape":"Timestamp", "documentation":"

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

" }, "endTime":{ "shape":"Timestamp", "documentation":"

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

" }, "durationInSeconds":{ "shape":"WrapperLong", "documentation":"

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

" }, "contexts":{ "shape":"PhaseContexts", "documentation":"

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

" } }, "documentation":"

Information about a stage for a build.

" }, "BuildPhaseType":{ "type":"string", "enum":[ "SUBMITTED", "QUEUED", "PROVISIONING", "DOWNLOAD_SOURCE", "INSTALL", "PRE_BUILD", "BUILD", "POST_BUILD", "UPLOAD_ARTIFACTS", "FINALIZING", "COMPLETED" ] }, "BuildPhases":{ "type":"list", "member":{"shape":"BuildPhase"} }, "Builds":{ "type":"list", "member":{"shape":"Build"} }, "BuildsNotDeleted":{ "type":"list", "member":{"shape":"BuildNotDeleted"} }, "CacheMode":{ "type":"string", "enum":[ "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE" ] }, "CacheType":{ "type":"string", "enum":[ "NO_CACHE", "S3", "LOCAL" ] }, "CloudWatchLogsConfig":{ "type":"structure", "required":["status"], "members":{ "status":{ "shape":"LogsConfigStatusType", "documentation":"

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

" }, "groupName":{ "shape":"String", "documentation":"

The group name of the logs in Amazon CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.

" }, "streamName":{ "shape":"String", "documentation":"

The prefix of the stream name of the Amazon CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.

" } }, "documentation":"

Information about Amazon CloudWatch Logs for a build project.

" }, "ComputeType":{ "type":"string", "enum":[ "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE" ] }, "CreateProjectInput":{ "type":"structure", "required":[ "name", "source", "artifacts", "environment", "serviceRole" ], "members":{ "name":{ "shape":"ProjectName", "documentation":"

The name of the build project.

" }, "description":{ "shape":"ProjectDescription", "documentation":"

A description that makes the build project easy to identify.

" }, "source":{ "shape":"ProjectSource", "documentation":"

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

" }, "secondarySources":{ "shape":"ProjectSources", "documentation":"

An array of ProjectSource objects.

" }, "sourceVersion":{ "shape":"String", "documentation":"

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 AWS CodeBuild User Guide.

" }, "secondarySourceVersions":{ "shape":"ProjectSecondarySourceVersions", "documentation":"

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

" }, "artifacts":{ "shape":"ProjectArtifacts", "documentation":"

Information about the build output artifacts for the build project.

" }, "secondaryArtifacts":{ "shape":"ProjectArtifactsList", "documentation":"

An array of ProjectArtifacts objects.

" }, "cache":{ "shape":"ProjectCache", "documentation":"

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

" }, "environment":{ "shape":"ProjectEnvironment", "documentation":"

Information about the build environment for the build project.

" }, "serviceRole":{ "shape":"NonEmptyString", "documentation":"

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

" }, "timeoutInMinutes":{ "shape":"TimeOut", "documentation":"

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

" }, "queuedTimeoutInMinutes":{ "shape":"TimeOut", "documentation":"

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

" }, "encryptionKey":{ "shape":"NonEmptyString", "documentation":"

The AWS Key Management Service (AWS KMS) 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 ).

" }, "tags":{ "shape":"TagList", "documentation":"

A set of tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

" }, "vpcConfig":{ "shape":"VpcConfig", "documentation":"

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" }, "badgeEnabled":{ "shape":"WrapperBoolean", "documentation":"

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

" }, "logsConfig":{ "shape":"LogsConfig", "documentation":"

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

" } } }, "CreateProjectOutput":{ "type":"structure", "members":{ "project":{ "shape":"Project", "documentation":"

Information about the build project that was created.

" } } }, "CreateWebhookInput":{ "type":"structure", "required":["projectName"], "members":{ "projectName":{ "shape":"ProjectName", "documentation":"

The name of the AWS CodeBuild project.

" }, "branchFilter":{ "shape":"String", "documentation":"

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.

" }, "filterGroups":{ "shape":"FilterGroups", "documentation":"

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.

" } } }, "CreateWebhookOutput":{ "type":"structure", "members":{ "webhook":{ "shape":"Webhook", "documentation":"

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

" } } }, "CredentialProviderType":{ "type":"string", "enum":["SECRETS_MANAGER"] }, "DeleteProjectInput":{ "type":"structure", "required":["name"], "members":{ "name":{ "shape":"NonEmptyString", "documentation":"

The name of the build project.

" } } }, "DeleteProjectOutput":{ "type":"structure", "members":{ } }, "DeleteSourceCredentialsInput":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"NonEmptyString", "documentation":"

The Amazon Resource Name (ARN) of the token.

" } } }, "DeleteSourceCredentialsOutput":{ "type":"structure", "members":{ "arn":{ "shape":"NonEmptyString", "documentation":"

The Amazon Resource Name (ARN) of the token.

" } } }, "DeleteWebhookInput":{ "type":"structure", "required":["projectName"], "members":{ "projectName":{ "shape":"ProjectName", "documentation":"

The name of the AWS CodeBuild project.

" } } }, "DeleteWebhookOutput":{ "type":"structure", "members":{ } }, "EnvironmentImage":{ "type":"structure", "members":{ "name":{ "shape":"String", "documentation":"

The name of the Docker image.

" }, "description":{ "shape":"String", "documentation":"

The description of the Docker image.

" }, "versions":{ "shape":"ImageVersions", "documentation":"

A list of environment image versions.

" } }, "documentation":"

Information about a Docker image that is managed by AWS CodeBuild.

" }, "EnvironmentImages":{ "type":"list", "member":{"shape":"EnvironmentImage"} }, "EnvironmentLanguage":{ "type":"structure", "members":{ "language":{ "shape":"LanguageType", "documentation":"

The programming language for the Docker images.

" }, "images":{ "shape":"EnvironmentImages", "documentation":"

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

" } }, "documentation":"

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

" }, "EnvironmentLanguages":{ "type":"list", "member":{"shape":"EnvironmentLanguage"} }, "EnvironmentPlatform":{ "type":"structure", "members":{ "platform":{ "shape":"PlatformType", "documentation":"

The platform's name.

" }, "languages":{ "shape":"EnvironmentLanguages", "documentation":"

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

" } }, "documentation":"

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

" }, "EnvironmentPlatforms":{ "type":"list", "member":{"shape":"EnvironmentPlatform"} }, "EnvironmentType":{ "type":"string", "enum":[ "WINDOWS_CONTAINER", "LINUX_CONTAINER" ] }, "EnvironmentVariable":{ "type":"structure", "required":[ "name", "value" ], "members":{ "name":{ "shape":"NonEmptyString", "documentation":"

The name or key of the environment variable.

" }, "value":{ "shape":"String", "documentation":"

The value of the environment variable.

We strongly discourage the use of environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).

" }, "type":{ "shape":"EnvironmentVariableType", "documentation":"

The type of environment variable. Valid values include:

" } }, "documentation":"

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

" }, "EnvironmentVariableType":{ "type":"string", "enum":[ "PLAINTEXT", "PARAMETER_STORE" ] }, "EnvironmentVariables":{ "type":"list", "member":{"shape":"EnvironmentVariable"} }, "FilterGroup":{ "type":"list", "member":{"shape":"WebhookFilter"} }, "FilterGroups":{ "type":"list", "member":{"shape":"FilterGroup"} }, "GitCloneDepth":{ "type":"integer", "min":0 }, "GitSubmodulesConfig":{ "type":"structure", "required":["fetchSubmodules"], "members":{ "fetchSubmodules":{ "shape":"WrapperBoolean", "documentation":"

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

" } }, "documentation":"

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

" }, "ImagePullCredentialsType":{ "type":"string", "enum":[ "CODEBUILD", "SERVICE_ROLE" ] }, "ImageVersions":{ "type":"list", "member":{"shape":"String"} }, "ImportSourceCredentialsInput":{ "type":"structure", "required":[ "token", "serverType", "authType" ], "members":{ "username":{ "shape":"NonEmptyString", "documentation":"

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

" }, "token":{ "shape":"SensitiveNonEmptyString", "documentation":"

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.

" }, "serverType":{ "shape":"ServerType", "documentation":"

The source provider used for this project.

" }, "authType":{ "shape":"AuthType", "documentation":"

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

" }, "shouldOverwrite":{ "shape":"WrapperBoolean", "documentation":"

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

" } } }, "ImportSourceCredentialsOutput":{ "type":"structure", "members":{ "arn":{ "shape":"NonEmptyString", "documentation":"

The Amazon Resource Name (ARN) of the token.

" } } }, "InvalidInputException":{ "type":"structure", "members":{ }, "documentation":"

The input value that was provided is not valid.

", "exception":true }, "InvalidateProjectCacheInput":{ "type":"structure", "required":["projectName"], "members":{ "projectName":{ "shape":"NonEmptyString", "documentation":"

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

" } } }, "InvalidateProjectCacheOutput":{ "type":"structure", "members":{ } }, "KeyInput":{ "type":"string", "max":127, "min":1, "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=@+\\-]*)$" }, "LanguageType":{ "type":"string", "enum":[ "JAVA", "PYTHON", "NODE_JS", "RUBY", "GOLANG", "DOCKER", "ANDROID", "DOTNET", "BASE", "PHP" ] }, "ListBuildsForProjectInput":{ "type":"structure", "required":["projectName"], "members":{ "projectName":{ "shape":"NonEmptyString", "documentation":"

The name of the AWS CodeBuild project.

" }, "sortOrder":{ "shape":"SortOrderType", "documentation":"

The order to list build IDs. Valid values include:

" }, "nextToken":{ "shape":"String", "documentation":"

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 next token. 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.

" } } }, "ListBuildsForProjectOutput":{ "type":"structure", "members":{ "ids":{ "shape":"BuildIds", "documentation":"

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

" }, "nextToken":{ "shape":"String", "documentation":"

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

" } } }, "ListBuildsInput":{ "type":"structure", "members":{ "sortOrder":{ "shape":"SortOrderType", "documentation":"

The order to list build IDs. Valid values include:

" }, "nextToken":{ "shape":"String", "documentation":"

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 next token. 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.

" } } }, "ListBuildsOutput":{ "type":"structure", "members":{ "ids":{ "shape":"BuildIds", "documentation":"

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

" }, "nextToken":{ "shape":"String", "documentation":"

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

" } } }, "ListCuratedEnvironmentImagesInput":{ "type":"structure", "members":{ } }, "ListCuratedEnvironmentImagesOutput":{ "type":"structure", "members":{ "platforms":{ "shape":"EnvironmentPlatforms", "documentation":"

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

" } } }, "ListProjectsInput":{ "type":"structure", "members":{ "sortBy":{ "shape":"ProjectSortByType", "documentation":"

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":{ "shape":"SortOrderType", "documentation":"

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.

" }, "nextToken":{ "shape":"NonEmptyString", "documentation":"

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 next token. 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.

" } } }, "ListProjectsOutput":{ "type":"structure", "members":{ "nextToken":{ "shape":"String", "documentation":"

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

" }, "projects":{ "shape":"ProjectNames", "documentation":"

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

" } } }, "ListSourceCredentialsInput":{ "type":"structure", "members":{ } }, "ListSourceCredentialsOutput":{ "type":"structure", "members":{ "sourceCredentialsInfos":{ "shape":"SourceCredentialsInfos", "documentation":"

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

" } } }, "LogsConfig":{ "type":"structure", "members":{ "cloudWatchLogs":{ "shape":"CloudWatchLogsConfig", "documentation":"

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

" }, "s3Logs":{ "shape":"S3LogsConfig", "documentation":"

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

" } }, "documentation":"

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

" }, "LogsConfigStatusType":{ "type":"string", "enum":[ "ENABLED", "DISABLED" ] }, "LogsLocation":{ "type":"structure", "members":{ "groupName":{ "shape":"String", "documentation":"

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

" }, "streamName":{ "shape":"String", "documentation":"

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

" }, "deepLink":{ "shape":"String", "documentation":"

The URL to an individual build log in Amazon CloudWatch Logs.

" }, "s3DeepLink":{ "shape":"String", "documentation":"

The URL to a build log in an S3 bucket.

" }, "cloudWatchLogs":{ "shape":"CloudWatchLogsConfig", "documentation":"

Information about Amazon CloudWatch Logs for a build project.

" }, "s3Logs":{ "shape":"S3LogsConfig", "documentation":"

Information about S3 logs for a build project.

" } }, "documentation":"

Information about build logs in Amazon CloudWatch Logs.

" }, "NetworkInterface":{ "type":"structure", "members":{ "subnetId":{ "shape":"NonEmptyString", "documentation":"

The ID of the subnet.

" }, "networkInterfaceId":{ "shape":"NonEmptyString", "documentation":"

The ID of the network interface.

" } }, "documentation":"

Describes a network interface.

" }, "NonEmptyString":{ "type":"string", "min":1 }, "OAuthProviderException":{ "type":"structure", "members":{ }, "documentation":"

There was a problem with the underlying OAuth provider.

", "exception":true }, "PhaseContext":{ "type":"structure", "members":{ "statusCode":{ "shape":"String", "documentation":"

The status code for the context of the build phase.

" }, "message":{ "shape":"String", "documentation":"

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

" } }, "documentation":"

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

" }, "PhaseContexts":{ "type":"list", "member":{"shape":"PhaseContext"} }, "PlatformType":{ "type":"string", "enum":[ "DEBIAN", "AMAZON_LINUX", "UBUNTU", "WINDOWS_SERVER" ] }, "Project":{ "type":"structure", "members":{ "name":{ "shape":"ProjectName", "documentation":"

The name of the build project.

" }, "arn":{ "shape":"String", "documentation":"

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

" }, "description":{ "shape":"ProjectDescription", "documentation":"

A description that makes the build project easy to identify.

" }, "source":{ "shape":"ProjectSource", "documentation":"

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

" }, "secondarySources":{ "shape":"ProjectSources", "documentation":"

An array of ProjectSource objects.

" }, "sourceVersion":{ "shape":"String", "documentation":"

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 AWS CodeBuild User Guide.

" }, "secondarySourceVersions":{ "shape":"ProjectSecondarySourceVersions", "documentation":"

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

" }, "artifacts":{ "shape":"ProjectArtifacts", "documentation":"

Information about the build output artifacts for the build project.

" }, "secondaryArtifacts":{ "shape":"ProjectArtifactsList", "documentation":"

An array of ProjectArtifacts objects.

" }, "cache":{ "shape":"ProjectCache", "documentation":"

Information about the cache for the build project.

" }, "environment":{ "shape":"ProjectEnvironment", "documentation":"

Information about the build environment for this build project.

" }, "serviceRole":{ "shape":"NonEmptyString", "documentation":"

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

" }, "timeoutInMinutes":{ "shape":"TimeOut", "documentation":"

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

" }, "queuedTimeoutInMinutes":{ "shape":"TimeOut", "documentation":"

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

" }, "encryptionKey":{ "shape":"NonEmptyString", "documentation":"

The AWS Key Management Service (AWS KMS) 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 ).

" }, "tags":{ "shape":"TagList", "documentation":"

The tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

" }, "created":{ "shape":"Timestamp", "documentation":"

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

" }, "lastModified":{ "shape":"Timestamp", "documentation":"

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

" }, "webhook":{ "shape":"Webhook", "documentation":"

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

" }, "vpcConfig":{ "shape":"VpcConfig", "documentation":"

Information about the VPC configuration that AWS CodeBuild accesses.

" }, "badge":{ "shape":"ProjectBadge", "documentation":"

Information about the build badge for the build project.

" }, "logsConfig":{ "shape":"LogsConfig", "documentation":"

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

" } }, "documentation":"

Information about a build project.

" }, "ProjectArtifacts":{ "type":"structure", "required":["type"], "members":{ "type":{ "shape":"ArtifactsType", "documentation":"

The type of build output artifact. Valid values include:

" }, "location":{ "shape":"String", "documentation":"

Information about the build output artifact location:

" }, "path":{ "shape":"String", "documentation":"

Along with namespaceType and name, the pattern that AWS 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.

" }, "namespaceType":{ "shape":"ArtifactNamespace", "documentation":"

Along with path and name, the pattern that AWS 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.

" }, "name":{ "shape":"String", "documentation":"

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

For example:

" }, "packaging":{ "shape":"ArtifactPackaging", "documentation":"

The type of build output artifact to create:

" }, "overrideArtifactName":{ "shape":"WrapperBoolean", "documentation":"

If this flag is set, a name specified in the build spec file overrides the artifact name. The name specified in a build spec 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.

" }, "encryptionDisabled":{ "shape":"WrapperBoolean", "documentation":"

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

" }, "artifactIdentifier":{ "shape":"String", "documentation":"

An identifier for this artifact definition.

" } }, "documentation":"

Information about the build output artifacts for the build project.

" }, "ProjectArtifactsList":{ "type":"list", "member":{"shape":"ProjectArtifacts"}, "max":12, "min":0 }, "ProjectBadge":{ "type":"structure", "members":{ "badgeEnabled":{ "shape":"Boolean", "documentation":"

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

" }, "badgeRequestUrl":{ "shape":"String", "documentation":"

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

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

" } }, "documentation":"

Information about the build badge for the build project.

" }, "ProjectCache":{ "type":"structure", "required":["type"], "members":{ "type":{ "shape":"CacheType", "documentation":"

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

" }, "location":{ "shape":"String", "documentation":"

Information about the cache location:

" }, "modes":{ "shape":"ProjectCacheModes", "documentation":"

If you use a LOCAL cache, the local cache mode. You can use one or more local cache modes at the same time.

" } }, "documentation":"

Information about the cache for the build project.

" }, "ProjectCacheModes":{ "type":"list", "member":{"shape":"CacheMode"} }, "ProjectDescription":{ "type":"string", "max":255, "min":0 }, "ProjectEnvironment":{ "type":"structure", "required":[ "type", "image", "computeType" ], "members":{ "type":{ "shape":"EnvironmentType", "documentation":"

The type of build environment to use for related builds.

" }, "image":{ "shape":"NonEmptyString", "documentation":"

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

" }, "computeType":{ "shape":"ComputeType", "documentation":"

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

" }, "environmentVariables":{ "shape":"EnvironmentVariables", "documentation":"

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

" }, "privilegedMode":{ "shape":"WrapperBoolean", "documentation":"

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.

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\"

" }, "certificate":{ "shape":"String", "documentation":"

The certificate to use with this build project.

" }, "registryCredential":{ "shape":"RegistryCredential", "documentation":"

The credentials for access to a private registry.

" }, "imagePullCredentialsType":{ "shape":"ImagePullCredentialsType", "documentation":"

The type of credentials AWS 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 AWS CodeBuild curated image, you must use CODEBUILD credentials.

" } }, "documentation":"

Information about the build environment of the build project.

" }, "ProjectName":{ "type":"string", "max":255, "min":2, "pattern":"[A-Za-z0-9][A-Za-z0-9\\-_]{1,254}" }, "ProjectNames":{ "type":"list", "member":{"shape":"NonEmptyString"}, "max":100, "min":1 }, "ProjectSecondarySourceVersions":{ "type":"list", "member":{"shape":"ProjectSourceVersion"}, "max":12, "min":0 }, "ProjectSortByType":{ "type":"string", "enum":[ "NAME", "CREATED_TIME", "LAST_MODIFIED_TIME" ] }, "ProjectSource":{ "type":"structure", "required":["type"], "members":{ "type":{ "shape":"SourceType", "documentation":"

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

" }, "location":{ "shape":"String", "documentation":"

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

" }, "gitCloneDepth":{ "shape":"GitCloneDepth", "documentation":"

Information about the Git clone depth for the build project.

" }, "gitSubmodulesConfig":{ "shape":"GitSubmodulesConfig", "documentation":"

Information about the Git submodules configuration for the build project.

" }, "buildspec":{ "shape":"String", "documentation":"

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

If this value is not specified, a build spec must be included along with the source code to be built.

" }, "auth":{ "shape":"SourceAuth", "documentation":"

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

This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly.

" }, "reportBuildStatus":{ "shape":"WrapperBoolean", "documentation":"

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, or Bitbucket. If this is set and you use a different source provider, an invalidInputException is thrown.

" }, "insecureSsl":{ "shape":"WrapperBoolean", "documentation":"

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

" }, "sourceIdentifier":{ "shape":"String", "documentation":"

An identifier for this project source.

" } }, "documentation":"

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

" }, "ProjectSourceVersion":{ "type":"structure", "required":[ "sourceIdentifier", "sourceVersion" ], "members":{ "sourceIdentifier":{ "shape":"String", "documentation":"

An identifier for a source in the build project.

" }, "sourceVersion":{ "shape":"String", "documentation":"

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 AWS CodeBuild User Guide.

" } }, "documentation":"

A source identifier and its corresponding version.

" }, "ProjectSources":{ "type":"list", "member":{"shape":"ProjectSource"}, "max":12, "min":0 }, "Projects":{ "type":"list", "member":{"shape":"Project"} }, "RegistryCredential":{ "type":"structure", "required":[ "credential", "credentialProvider" ], "members":{ "credential":{ "shape":"NonEmptyString", "documentation":"

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

The credential can use the name of the credentials only if they exist in your current region.

" }, "credentialProvider":{ "shape":"CredentialProviderType", "documentation":"

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

" } }, "documentation":"

Information about credentials that provide access to a private Docker registry. When this is set:

For more information, see Private Registry with AWS Secrets Manager Sample for AWS CodeBuild.

" }, "ResourceAlreadyExistsException":{ "type":"structure", "members":{ }, "documentation":"

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

", "exception":true }, "ResourceNotFoundException":{ "type":"structure", "members":{ }, "documentation":"

The specified AWS resource cannot be found.

", "exception":true }, "S3LogsConfig":{ "type":"structure", "required":["status"], "members":{ "status":{ "shape":"LogsConfigStatusType", "documentation":"

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

" }, "location":{ "shape":"String", "documentation":"

The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is my-bucket, and your path prefix is build-log, then acceptable formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log.

" }, "encryptionDisabled":{ "shape":"WrapperBoolean", "documentation":"

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

" } }, "documentation":"

Information about S3 logs for a build project.

" }, "SecurityGroupIds":{ "type":"list", "member":{"shape":"NonEmptyString"}, "max":5 }, "SensitiveNonEmptyString":{ "type":"string", "min":1, "sensitive":true }, "ServerType":{ "type":"string", "enum":[ "GITHUB", "BITBUCKET", "GITHUB_ENTERPRISE" ] }, "SortOrderType":{ "type":"string", "enum":[ "ASCENDING", "DESCENDING" ] }, "SourceAuth":{ "type":"structure", "required":["type"], "members":{ "type":{ "shape":"SourceAuthType", "documentation":"

This data type is deprecated and is no longer accurate or used.

The authorization type to use. The only valid value is OAUTH, which represents the OAuth authorization type.

" }, "resource":{ "shape":"String", "documentation":"

The resource value that applies to the specified authorization type.

" } }, "documentation":"

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

This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly.

" }, "SourceAuthType":{ "type":"string", "enum":["OAUTH"] }, "SourceCredentialsInfo":{ "type":"structure", "members":{ "arn":{ "shape":"NonEmptyString", "documentation":"

The Amazon Resource Name (ARN) of the token.

" }, "serverType":{ "shape":"ServerType", "documentation":"

The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

" }, "authType":{ "shape":"AuthType", "documentation":"

The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.

" } }, "documentation":"

Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository.

" }, "SourceCredentialsInfos":{ "type":"list", "member":{"shape":"SourceCredentialsInfo"} }, "SourceType":{ "type":"string", "enum":[ "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE" ] }, "StartBuildInput":{ "type":"structure", "required":["projectName"], "members":{ "projectName":{ "shape":"NonEmptyString", "documentation":"

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

" }, "secondarySourcesOverride":{ "shape":"ProjectSources", "documentation":"

An array of ProjectSource objects.

" }, "secondarySourcesVersionOverride":{ "shape":"ProjectSecondarySourceVersions", "documentation":"

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

" }, "sourceVersion":{ "shape":"String", "documentation":"

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

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 AWS CodeBuild User Guide.

" }, "artifactsOverride":{ "shape":"ProjectArtifacts", "documentation":"

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

" }, "secondaryArtifactsOverride":{ "shape":"ProjectArtifactsList", "documentation":"

An array of ProjectArtifacts objects.

" }, "environmentVariablesOverride":{ "shape":"EnvironmentVariables", "documentation":"

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

" }, "sourceTypeOverride":{ "shape":"SourceType", "documentation":"

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

" }, "sourceLocationOverride":{ "shape":"String", "documentation":"

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

" }, "sourceAuthOverride":{ "shape":"SourceAuth", "documentation":"

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 or GitHub.

" }, "gitCloneDepthOverride":{ "shape":"GitCloneDepth", "documentation":"

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":{ "shape":"GitSubmodulesConfig", "documentation":"

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

" }, "buildspecOverride":{ "shape":"String", "documentation":"

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

" }, "insecureSslOverride":{ "shape":"WrapperBoolean", "documentation":"

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.

" }, "reportBuildStatusOverride":{ "shape":"WrapperBoolean", "documentation":"

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, or Bitbucket, an invalidInputException is thrown.

" }, "environmentTypeOverride":{ "shape":"EnvironmentType", "documentation":"

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

" }, "imageOverride":{ "shape":"NonEmptyString", "documentation":"

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

" }, "computeTypeOverride":{ "shape":"ComputeType", "documentation":"

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

" }, "certificateOverride":{ "shape":"String", "documentation":"

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

" }, "cacheOverride":{ "shape":"ProjectCache", "documentation":"

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

" }, "serviceRoleOverride":{ "shape":"NonEmptyString", "documentation":"

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

" }, "privilegedModeOverride":{ "shape":"WrapperBoolean", "documentation":"

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

" }, "timeoutInMinutesOverride":{ "shape":"TimeOut", "documentation":"

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

" }, "queuedTimeoutInMinutesOverride":{ "shape":"TimeOut", "documentation":"

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

" }, "idempotencyToken":{ "shape":"String", "documentation":"

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 12 hours. If you repeat the StartBuild request with the same token, but change a parameter, AWS CodeBuild returns a parameter mismatch error.

" }, "logsConfigOverride":{ "shape":"LogsConfig", "documentation":"

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

" }, "registryCredentialOverride":{ "shape":"RegistryCredential", "documentation":"

The credentials for access to a private registry.

" }, "imagePullCredentialsTypeOverride":{ "shape":"ImagePullCredentialsType", "documentation":"

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

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

" } } }, "StartBuildOutput":{ "type":"structure", "members":{ "build":{ "shape":"Build", "documentation":"

Information about the build to be run.

" } } }, "StatusType":{ "type":"string", "enum":[ "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED" ] }, "StopBuildInput":{ "type":"structure", "required":["id"], "members":{ "id":{ "shape":"NonEmptyString", "documentation":"

The ID of the build.

" } } }, "StopBuildOutput":{ "type":"structure", "members":{ "build":{ "shape":"Build", "documentation":"

Information about the build.

" } } }, "String":{"type":"string"}, "Subnets":{ "type":"list", "member":{"shape":"NonEmptyString"}, "max":16 }, "Tag":{ "type":"structure", "members":{ "key":{ "shape":"KeyInput", "documentation":"

The tag's key.

" }, "value":{ "shape":"ValueInput", "documentation":"

The tag's value.

" } }, "documentation":"

A tag, consisting of a key and a value.

This tag is available for use by AWS services that support tags in AWS CodeBuild.

" }, "TagList":{ "type":"list", "member":{"shape":"Tag"}, "max":50, "min":0 }, "TimeOut":{ "type":"integer", "max":480, "min":5 }, "Timestamp":{"type":"timestamp"}, "UpdateProjectInput":{ "type":"structure", "required":["name"], "members":{ "name":{ "shape":"NonEmptyString", "documentation":"

The name of the build project.

You cannot change a build project's name.

" }, "description":{ "shape":"ProjectDescription", "documentation":"

A new or replacement description of the build project.

" }, "source":{ "shape":"ProjectSource", "documentation":"

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

" }, "secondarySources":{ "shape":"ProjectSources", "documentation":"

An array of ProjectSource objects.

" }, "sourceVersion":{ "shape":"String", "documentation":"

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 AWS CodeBuild User Guide.

" }, "secondarySourceVersions":{ "shape":"ProjectSecondarySourceVersions", "documentation":"

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

" }, "artifacts":{ "shape":"ProjectArtifacts", "documentation":"

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

" }, "secondaryArtifacts":{ "shape":"ProjectArtifactsList", "documentation":"

An array of ProjectSource objects.

" }, "cache":{ "shape":"ProjectCache", "documentation":"

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

" }, "environment":{ "shape":"ProjectEnvironment", "documentation":"

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

" }, "serviceRole":{ "shape":"NonEmptyString", "documentation":"

The replacement ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

" }, "timeoutInMinutes":{ "shape":"TimeOut", "documentation":"

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

" }, "queuedTimeoutInMinutes":{ "shape":"TimeOut", "documentation":"

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

" }, "encryptionKey":{ "shape":"NonEmptyString", "documentation":"

The AWS Key Management Service (AWS KMS) 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 ).

" }, "tags":{ "shape":"TagList", "documentation":"

The replacement set of tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

" }, "vpcConfig":{ "shape":"VpcConfig", "documentation":"

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" }, "badgeEnabled":{ "shape":"WrapperBoolean", "documentation":"

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

" }, "logsConfig":{ "shape":"LogsConfig", "documentation":"

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

" } } }, "UpdateProjectOutput":{ "type":"structure", "members":{ "project":{ "shape":"Project", "documentation":"

Information about the build project that was changed.

" } } }, "UpdateWebhookInput":{ "type":"structure", "required":["projectName"], "members":{ "projectName":{ "shape":"ProjectName", "documentation":"

The name of the AWS CodeBuild project.

" }, "branchFilter":{ "shape":"String", "documentation":"

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.

" }, "rotateSecret":{ "shape":"Boolean", "documentation":"

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.

" }, "filterGroups":{ "shape":"FilterGroups", "documentation":"

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

" } } }, "UpdateWebhookOutput":{ "type":"structure", "members":{ "webhook":{ "shape":"Webhook", "documentation":"

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

" } } }, "ValueInput":{ "type":"string", "max":255, "min":1, "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=@+\\-]*)$" }, "VpcConfig":{ "type":"structure", "members":{ "vpcId":{ "shape":"NonEmptyString", "documentation":"

The ID of the Amazon VPC.

" }, "subnets":{ "shape":"Subnets", "documentation":"

A list of one or more subnet IDs in your Amazon VPC.

" }, "securityGroupIds":{ "shape":"SecurityGroupIds", "documentation":"

A list of one or more security groups IDs in your Amazon VPC.

" } }, "documentation":"

Information about the VPC configuration that AWS CodeBuild accesses.

" }, "Webhook":{ "type":"structure", "members":{ "url":{ "shape":"NonEmptyString", "documentation":"

The URL to the webhook.

" }, "payloadUrl":{ "shape":"NonEmptyString", "documentation":"

The AWS CodeBuild endpoint where webhook events are sent.

" }, "secret":{ "shape":"NonEmptyString", "documentation":"

The secret token of the associated repository.

A Bitbucket webhook does not support secret.

" }, "branchFilter":{ "shape":"String", "documentation":"

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.

" }, "filterGroups":{ "shape":"FilterGroups", "documentation":"

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":{ "shape":"Timestamp", "documentation":"

A timestamp that indicates the last time a repository's secret token was modified.

" } }, "documentation":"

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

" }, "WebhookFilter":{ "type":"structure", "required":[ "type", "pattern" ], "members":{ "type":{ "shape":"WebhookFilterType", "documentation":"

The type of webhook filter. There are five webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, and FILE_PATH.

EVENT

A webhook event triggers a build when the provided pattern matches one of four event types: PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, and PULL_REQUEST_REOPENED. The EVENT patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters all push, pull request created, and pull request updated events.

The PULL_REQUEST_REOPENED works with GitHub and GitHub Enterprise only.

ACTOR_ACCOUNT_ID

A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression pattern.

HEAD_REF

A webhook event triggers a build when the head reference matches the regular expression pattern. For example, refs/heads/branch-name and refs/tags/tag-name.

Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.

BASE_REF

A webhook event triggers a build when the base reference matches the regular expression pattern. For example, refs/heads/branch-name.

Works with pull request events only.

FILE_PATH

A webhook triggers a build when the path of a changed file matches the regular expression pattern.

Works with GitHub and GitHub Enterprise push events only.

" }, "pattern":{ "shape":"String", "documentation":"

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.

" }, "excludeMatchedPattern":{ "shape":"WrapperBoolean", "documentation":"

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.

" } }, "documentation":"

A filter used to determine which webhooks trigger a build.

" }, "WebhookFilterType":{ "type":"string", "enum":[ "EVENT", "BASE_REF", "HEAD_REF", "ACTOR_ACCOUNT_ID", "FILE_PATH" ] }, "WrapperBoolean":{"type":"boolean"}, "WrapperInt":{"type":"integer"}, "WrapperLong":{"type":"long"} }, "documentation":"AWS CodeBuild

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools, such as Apache Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests. You pay only for the build time you consume. For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.

AWS CodeBuild supports these operations:

" }