Copyright | (c) 2013-2021 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 |
Updates metadata in a build resource, including the build name and version. To update the metadata, specify the build ID to update and provide the new values. If successful, a build object containing the updated metadata is returned.
Learn more
Related actions
CreateBuild | ListBuilds | DescribeBuild | UpdateBuild | DeleteBuild | All APIs by task
Synopsis
- data UpdateBuild = UpdateBuild' {}
- newUpdateBuild :: Text -> UpdateBuild
- updateBuild_name :: Lens' UpdateBuild (Maybe Text)
- updateBuild_version :: Lens' UpdateBuild (Maybe Text)
- updateBuild_buildId :: Lens' UpdateBuild Text
- data UpdateBuildResponse = UpdateBuildResponse' {
- build :: Maybe Build
- httpStatus :: Int
- newUpdateBuildResponse :: Int -> UpdateBuildResponse
- updateBuildResponse_build :: Lens' UpdateBuildResponse (Maybe Build)
- updateBuildResponse_httpStatus :: Lens' UpdateBuildResponse Int
Creating a Request
data UpdateBuild Source #
Represents the input for a request operation.
See: newUpdateBuild
smart constructor.
UpdateBuild' | |
|
Instances
Create a value of UpdateBuild
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:name:UpdateBuild'
, updateBuild_name
- A descriptive label that is associated with a build. Build names do not
need to be unique.
$sel:version:UpdateBuild'
, updateBuild_version
- Version information that is associated with a build or script. Version
strings do not need to be unique.
$sel:buildId:UpdateBuild'
, updateBuild_buildId
- A unique identifier for the build to update. You can use either the
build ID or ARN value.
Request Lenses
updateBuild_name :: Lens' UpdateBuild (Maybe Text) Source #
A descriptive label that is associated with a build. Build names do not need to be unique.
updateBuild_version :: Lens' UpdateBuild (Maybe Text) Source #
Version information that is associated with a build or script. Version strings do not need to be unique.
updateBuild_buildId :: Lens' UpdateBuild Text Source #
A unique identifier for the build to update. You can use either the build ID or ARN value.
Destructuring the Response
data UpdateBuildResponse Source #
Represents the returned data in response to a request operation.
See: newUpdateBuildResponse
smart constructor.
UpdateBuildResponse' | |
|
Instances
newUpdateBuildResponse Source #
Create a value of UpdateBuildResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:build:UpdateBuildResponse'
, updateBuildResponse_build
- The updated build resource.
$sel:httpStatus:UpdateBuildResponse'
, updateBuildResponse_httpStatus
- The response's http status code.
Response Lenses
updateBuildResponse_build :: Lens' UpdateBuildResponse (Maybe Build) Source #
The updated build resource.
updateBuildResponse_httpStatus :: Lens' UpdateBuildResponse Int Source #
The response's http status code.