| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DeviceFarm.UpdateUpload
Description
Updates an uploaded test spec.
Synopsis
- data UpdateUpload = UpdateUpload' {}
- newUpdateUpload :: Text -> UpdateUpload
- updateUpload_contentType :: Lens' UpdateUpload (Maybe Text)
- updateUpload_editContent :: Lens' UpdateUpload (Maybe Bool)
- updateUpload_name :: Lens' UpdateUpload (Maybe Text)
- updateUpload_arn :: Lens' UpdateUpload Text
- data UpdateUploadResponse = UpdateUploadResponse' {
- upload :: Maybe Upload
- httpStatus :: Int
- newUpdateUploadResponse :: Int -> UpdateUploadResponse
- updateUploadResponse_upload :: Lens' UpdateUploadResponse (Maybe Upload)
- updateUploadResponse_httpStatus :: Lens' UpdateUploadResponse Int
Creating a Request
data UpdateUpload Source #
See: newUpdateUpload smart constructor.
Constructors
| UpdateUpload' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateUpload |
Create a value of UpdateUpload 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:
UpdateUpload, updateUpload_contentType - The upload's content type (for example, application/x-yaml).
$sel:editContent:UpdateUpload', updateUpload_editContent - Set to true if the YAML file has changed and must be updated. Otherwise,
set to false.
UpdateUpload, updateUpload_name - The upload's test spec file name. The name must not contain any forward
slashes (/). The test spec file name must end with the .yaml or
.yml file extension.
UpdateUpload, updateUpload_arn - The Amazon Resource Name (ARN) of the uploaded test spec.
Request Lenses
updateUpload_contentType :: Lens' UpdateUpload (Maybe Text) Source #
The upload's content type (for example, application/x-yaml).
updateUpload_editContent :: Lens' UpdateUpload (Maybe Bool) Source #
Set to true if the YAML file has changed and must be updated. Otherwise, set to false.
updateUpload_name :: Lens' UpdateUpload (Maybe Text) Source #
The upload's test spec file name. The name must not contain any forward
slashes (/). The test spec file name must end with the .yaml or
.yml file extension.
updateUpload_arn :: Lens' UpdateUpload Text Source #
The Amazon Resource Name (ARN) of the uploaded test spec.
Destructuring the Response
data UpdateUploadResponse Source #
See: newUpdateUploadResponse smart constructor.
Constructors
| UpdateUploadResponse' | |
Fields
| |
Instances
newUpdateUploadResponse Source #
Arguments
| :: Int | |
| -> UpdateUploadResponse |
Create a value of UpdateUploadResponse 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:upload:UpdateUploadResponse', updateUploadResponse_upload - A test spec uploaded to Device Farm.
$sel:httpStatus:UpdateUploadResponse', updateUploadResponse_httpStatus - The response's http status code.
Response Lenses
updateUploadResponse_upload :: Lens' UpdateUploadResponse (Maybe Upload) Source #
A test spec uploaded to Device Farm.
updateUploadResponse_httpStatus :: Lens' UpdateUploadResponse Int Source #
The response's http status code.