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 an uploaded test spec.
Synopsis
- data UpdateUpload = UpdateUpload' {}
- newUpdateUpload :: Text -> UpdateUpload
- updateUpload_editContent :: Lens' UpdateUpload (Maybe Bool)
- updateUpload_name :: Lens' UpdateUpload (Maybe Text)
- updateUpload_contentType :: 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.
UpdateUpload' | |
|
Instances
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:
$sel:editContent:UpdateUpload'
, updateUpload_editContent
- Set to true if the YAML file has changed and must be updated. Otherwise,
set to false.
$sel:name: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.
$sel:contentType:UpdateUpload'
, updateUpload_contentType
- The upload's content type (for example, application/x-yaml
).
$sel:arn:UpdateUpload'
, updateUpload_arn
- The Amazon Resource Name (ARN) of the uploaded test spec.
Request Lenses
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_contentType :: Lens' UpdateUpload (Maybe Text) Source #
The upload's content type (for example, application/x-yaml
).
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.
UpdateUploadResponse' | |
|
Instances
newUpdateUploadResponse Source #
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.