Client library for AWS CodeBuild
npm install --save @datafire/amazonaws_codebuildlet amazonaws_codebuild = require('@datafire/amazonaws_codebuild').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
amazonaws_codebuild.BatchDeleteBuilds({
"ids": []
}).then(data => {
console.log(data);
});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, and 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:
-
BatchDeleteBuilds: Deletes one or more builds. -
BatchGetProjects: Gets information about one or more build projects. A build project defines how AWS CodeBuild will run a build. This includes information such as where to get the source code to build, the build environment to use, the build commands to run, and where to store the build output. A build environment represents a combination of operating system, programming language runtime, and tools that AWS CodeBuild will use to run a build. Also, you can add tags to build projects to help manage your resources and costs. -
CreateProject: Creates a build project. -
CreateWebhook: For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository. -
DeleteProject: Deletes a build project. -
DeleteWebhook: For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, stops AWS CodeBuild from automatically rebuilding the source code every time a code change is pushed to the repository. -
ListProjects: Gets a list of build project names, with each build project name representing a single build project. -
UpdateProject: Changes the settings of an existing build project. -
BatchGetBuilds: Gets information about one or more builds. -
ListBuilds: Gets a list of build IDs, with each build ID representing a single build. -
ListBuildsForProject: Gets a list of build IDs for the specified build project, with each build ID representing a single build. -
StartBuild: Starts running a build. -
StopBuild: Attempts to stop running a build. -
ListCuratedEnvironmentImages: Gets information about Docker images that are managed by AWS CodeBuild.
amazonaws_codebuild.BatchDeleteBuilds({
"ids": []
}, context)- input
object- ids required BuildIds
- output BatchDeleteBuildsOutput
amazonaws_codebuild.BatchGetBuilds({
"ids": []
}, context)- input
object- ids required BuildIds
- output BatchGetBuildsOutput
amazonaws_codebuild.BatchGetProjects({
"names": []
}, context)- input
object- names required ProjectNames
- output BatchGetProjectsOutput
amazonaws_codebuild.CreateProject({
"name": "",
"source": {
"type": ""
},
"artifacts": {
"type": ""
},
"environment": {
"type": "",
"image": "",
"computeType": ""
}
}, context)- input
object- artifacts required ProjectArtifacts
- description ProjectDescription
- encryptionKey NonEmptyString
- environment required ProjectEnvironment
- name required ProjectName
- serviceRole NonEmptyString
- source required ProjectSource
- tags TagList
- timeoutInMinutes TimeOut
- output CreateProjectOutput
amazonaws_codebuild.CreateWebhook({
"projectName": ""
}, context)- input
object- projectName required ProjectName
- output CreateWebhookOutput
amazonaws_codebuild.DeleteProject({
"name": ""
}, context)- input
object- name required NonEmptyString
- output DeleteProjectOutput
amazonaws_codebuild.DeleteWebhook({
"projectName": ""
}, context)- input
object- projectName required ProjectName
- output DeleteWebhookOutput
amazonaws_codebuild.ListBuilds({}, context)- input
object- nextToken String
- sortOrder SortOrderType
- output ListBuildsOutput
amazonaws_codebuild.ListBuildsForProject({
"projectName": ""
}, context)- input
object- nextToken String
- projectName required NonEmptyString
- sortOrder SortOrderType
- output ListBuildsForProjectOutput
amazonaws_codebuild.ListCuratedEnvironmentImages({}, context)- input
object
amazonaws_codebuild.ListProjects({}, context)- input
object- nextToken NonEmptyString
- sortBy ProjectSortByType
- sortOrder SortOrderType
- output ListProjectsOutput
amazonaws_codebuild.StartBuild({
"projectName": ""
}, context)- input
object- artifactsOverride ProjectArtifacts
- buildspecOverride String
- environmentVariablesOverride EnvironmentVariables
- projectName required NonEmptyString
- sourceVersion String
- timeoutInMinutesOverride TimeOut
- output StartBuildOutput
amazonaws_codebuild.StopBuild({
"id": ""
}, context)- input
object- id required NonEmptyString
- output StopBuildOutput
amazonaws_codebuild.UpdateProject({
"name": ""
}, context)- input
object- artifacts ProjectArtifacts
- description ProjectDescription
- encryptionKey NonEmptyString
- environment ProjectEnvironment
- name required NonEmptyString
- serviceRole NonEmptyString
- source ProjectSource
- tags TagList
- timeoutInMinutes TimeOut
- output UpdateProjectOutput
- AccountLimitExceededException
object: An AWS service limit was exceeded for the calling AWS account.
- ArtifactNamespace
string(values: NONE, BUILD_ID)
- ArtifactPackaging
string(values: NONE, ZIP)
- ArtifactsType
string(values: CODEPIPELINE, S3, NO_ARTIFACTS)
- BatchDeleteBuildsInput
object- ids required BuildIds
- BatchDeleteBuildsOutput
object- buildsDeleted BuildIds
- buildsNotDeleted BuildsNotDeleted
- BatchGetBuildsInput
object- ids required BuildIds
- BatchGetProjectsInput
object- names required ProjectNames
- BatchGetProjectsOutput
object- projects Projects
- projectsNotFound ProjectNames
- Boolean
boolean
- Build
object: Information about a build.- arn NonEmptyString
- artifacts BuildArtifacts
- buildComplete Boolean
- buildStatus StatusType
- currentPhase String
- endTime Timestamp
- environment ProjectEnvironment
- id NonEmptyString
- initiator String
- logs LogsLocation
- phases BuildPhases
- projectName NonEmptyString
- source ProjectSource
- sourceVersion NonEmptyString
- startTime Timestamp
- timeoutInMinutes WrapperInt
- BuildArtifacts
object: Information about build output artifacts.
- BuildIds
array- items NonEmptyString
- BuildNotDeleted
object: Information about a build that could not be successfully deleted.- id NonEmptyString
- statusCode String
- BuildPhase
object: Information about a stage for a build.- contexts PhaseContexts
- durationInSeconds WrapperLong
- endTime Timestamp
- phaseStatus StatusType
- phaseType BuildPhaseType
- startTime Timestamp
- BuildPhaseType
string(values: SUBMITTED, PROVISIONING, DOWNLOAD_SOURCE, INSTALL, PRE_BUILD, BUILD, POST_BUILD, UPLOAD_ARTIFACTS, FINALIZING, COMPLETED)
- BuildPhases
array- items BuildPhase
- Builds
array- items Build
- BuildsNotDeleted
array- items BuildNotDeleted
- ComputeType
string(values: BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE)
- CreateProjectInput
object- artifacts required ProjectArtifacts
- description ProjectDescription
- encryptionKey NonEmptyString
- environment required ProjectEnvironment
- name required ProjectName
- serviceRole NonEmptyString
- source required ProjectSource
- tags TagList
- timeoutInMinutes TimeOut
- CreateProjectOutput
object- project Project
- CreateWebhookInput
object- projectName required ProjectName
- CreateWebhookOutput
object- webhook Webhook
- DeleteProjectInput
object- name required NonEmptyString
- DeleteProjectOutput
object
- DeleteWebhookInput
object- projectName required ProjectName
- DeleteWebhookOutput
object
- EnvironmentImage
object: Information about a Docker image that is managed by AWS CodeBuild.
- EnvironmentImages
array- items EnvironmentImage
- EnvironmentLanguage
object: A set of Docker images that are related by programming language and are managed by AWS CodeBuild.- images EnvironmentImages
- language LanguageType
- EnvironmentLanguages
array- items EnvironmentLanguage
- EnvironmentPlatform
object: A set of Docker images that are related by platform and are managed by AWS CodeBuild.- languages EnvironmentLanguages
- platform PlatformType
- EnvironmentPlatforms
array- items EnvironmentPlatform
- EnvironmentType
string(values: LINUX_CONTAINER)
- EnvironmentVariable
object: Information about an environment variable for a build project or a build.- name required NonEmptyString
- type EnvironmentVariableType
- value required String
- EnvironmentVariableType
string(values: PLAINTEXT, PARAMETER_STORE)
- EnvironmentVariables
array- items EnvironmentVariable
- InvalidInputException
object: The input value that was provided is not valid.
- KeyInput
string
- LanguageType
string(values: JAVA, PYTHON, NODE_JS, RUBY, GOLANG, DOCKER, ANDROID, DOTNET, BASE)
- ListBuildsForProjectInput
object- nextToken String
- projectName required NonEmptyString
- sortOrder SortOrderType
- ListBuildsInput
object- nextToken String
- sortOrder SortOrderType
- ListCuratedEnvironmentImagesInput
object
- ListCuratedEnvironmentImagesOutput
object- platforms EnvironmentPlatforms
- ListProjectsInput
object- nextToken NonEmptyString
- sortBy ProjectSortByType
- sortOrder SortOrderType
- ListProjectsOutput
object- nextToken String
- projects ProjectNames
- LogsLocation
object: Information about build logs in Amazon CloudWatch Logs.
- NonEmptyString
string
- OAuthProviderException
object: There was a problem with the underlying OAuth provider.
- PhaseContext
object: Additional information about a build phase that has an error. You can use this information to help troubleshoot a failed build.
- PhaseContexts
array- items PhaseContext
- PlatformType
string(values: DEBIAN, AMAZON_LINUX, UBUNTU)
- Project
object: Information about a build project.- arn String
- artifacts ProjectArtifacts
- created Timestamp
- description ProjectDescription
- encryptionKey NonEmptyString
- environment ProjectEnvironment
- lastModified Timestamp
- name ProjectName
- serviceRole NonEmptyString
- source ProjectSource
- tags TagList
- timeoutInMinutes TimeOut
- webhook Webhook
- ProjectArtifacts
object: Information about the build output artifacts for the build project.- location String
- name String
- namespaceType ArtifactNamespace
- packaging ArtifactPackaging
- path String
- type required ArtifactsType
- ProjectDescription
string
- ProjectEnvironment
object: Information about the build environment of the build project.- computeType required ComputeType
- environmentVariables EnvironmentVariables
- image required NonEmptyString
- privilegedMode WrapperBoolean
- type required EnvironmentType
- ProjectName
string
- ProjectNames
array- items NonEmptyString
- ProjectSortByType
string(values: NAME, CREATED_TIME, LAST_MODIFIED_TIME)
- ProjectSource
object: Information about the build input source code for the build project.- auth SourceAuth
- buildspec String
- location String
- type required SourceType
- Projects
array- items Project
- ResourceAlreadyExistsException
object: The specified AWS resource cannot be created, because an AWS resource with the same settings already exists.
- ResourceNotFoundException
object: The specified AWS resource cannot be found.
- SortOrderType
string(values: ASCENDING, DESCENDING)
- SourceAuth
object: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 (unless the build project's source
typevalue isBITBUCKETorGITHUB).- resource String
- type required SourceAuthType
- SourceAuthType
string(values: OAUTH)
- SourceType
string(values: CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET)
- StartBuildInput
object- artifactsOverride ProjectArtifacts
- buildspecOverride String
- environmentVariablesOverride EnvironmentVariables
- projectName required NonEmptyString
- sourceVersion String
- timeoutInMinutesOverride TimeOut
- StartBuildOutput
object- build Build
- StatusType
string(values: SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED)
- StopBuildInput
object- id required NonEmptyString
- StopBuildOutput
object- build Build
- String
string
- Tag
object:A tag, consisting of a key and a value.
This tag is available for use by AWS services that support tags in AWS CodeBuild.
- key KeyInput
- value ValueInput
- TagList
array- items Tag
- TimeOut
integer
- Timestamp
string
- UpdateProjectInput
object- artifacts ProjectArtifacts
- description ProjectDescription
- encryptionKey NonEmptyString
- environment ProjectEnvironment
- name required NonEmptyString
- serviceRole NonEmptyString
- source ProjectSource
- tags TagList
- timeoutInMinutes TimeOut
- UpdateProjectOutput
object- project Project
- ValueInput
string
- Webhook
object: Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.- url NonEmptyString
- WrapperBoolean
boolean
- WrapperInt
integer
- WrapperLong
integer