Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Starts running a build.
Synopsis
- startBuild :: Text -> StartBuild
- data StartBuild
- sbEnvironmentVariablesOverride :: Lens' StartBuild [EnvironmentVariable]
- sbTimeoutInMinutesOverride :: Lens' StartBuild (Maybe Natural)
- sbGitCloneDepthOverride :: Lens' StartBuild (Maybe Natural)
- sbSourceVersion :: Lens' StartBuild (Maybe Text)
- sbBuildspecOverride :: Lens' StartBuild (Maybe Text)
- sbArtifactsOverride :: Lens' StartBuild (Maybe ProjectArtifacts)
- sbProjectName :: Lens' StartBuild Text
- startBuildResponse :: Int -> StartBuildResponse
- data StartBuildResponse
- srsBuild :: Lens' StartBuildResponse (Maybe Build)
- srsResponseStatus :: Lens' StartBuildResponse Int
Creating a Request
Creates a value of StartBuild
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sbEnvironmentVariablesOverride
- A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.sbTimeoutInMinutesOverride
- 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.sbGitCloneDepthOverride
- 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.sbSourceVersion
- A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, must be one of: * For AWS CodeCommit: the commit ID to use. * For 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 formatpr/pull-request-ID
(for examplepr/25
). If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used. * For 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 will be used. If not specified, the default branch's HEAD commit ID will be used. * For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.sbBuildspecOverride
- A build spec declaration that overrides, for this build only, the latest one already defined in the build project.sbArtifactsOverride
- Build output artifact settings that override, for this build only, the latest ones already defined in the build project.sbProjectName
- The name of the AWS CodeBuild build project to start running a build.
data StartBuild Source #
See: startBuild
smart constructor.
Instances
Request Lenses
sbEnvironmentVariablesOverride :: Lens' StartBuild [EnvironmentVariable] Source #
A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.
sbTimeoutInMinutesOverride :: Lens' StartBuild (Maybe Natural) Source #
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.
sbGitCloneDepthOverride :: Lens' StartBuild (Maybe Natural) Source #
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.
sbSourceVersion :: Lens' StartBuild (Maybe Text) Source #
A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, must be one of: * For AWS CodeCommit: the commit ID to use. * For 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 will be used. If not specified, the default branch's HEAD commit ID will be used. * For 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 will be used. If not specified, the default branch's HEAD commit ID will be used. * For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.
sbBuildspecOverride :: Lens' StartBuild (Maybe Text) Source #
A build spec declaration that overrides, for this build only, the latest one already defined in the build project.
sbArtifactsOverride :: Lens' StartBuild (Maybe ProjectArtifacts) Source #
Build output artifact settings that override, for this build only, the latest ones already defined in the build project.
sbProjectName :: Lens' StartBuild Text Source #
The name of the AWS CodeBuild build project to start running a build.
Destructuring the Response
Creates a value of StartBuildResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srsBuild
- Information about the build to be run.srsResponseStatus
- -- | The response status code.
data StartBuildResponse Source #
See: startBuildResponse
smart constructor.
Instances
Response Lenses
srsResponseStatus :: Lens' StartBuildResponse Int Source #
- - | The response status code.