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 |
Uploads an app or test scripts.
Synopsis
- data CreateUpload = CreateUpload' {
- contentType :: Maybe Text
- projectArn :: Text
- name :: Text
- type' :: UploadType
- newCreateUpload :: Text -> Text -> UploadType -> CreateUpload
- createUpload_contentType :: Lens' CreateUpload (Maybe Text)
- createUpload_projectArn :: Lens' CreateUpload Text
- createUpload_name :: Lens' CreateUpload Text
- createUpload_type :: Lens' CreateUpload UploadType
- data CreateUploadResponse = CreateUploadResponse' {
- upload :: Maybe Upload
- httpStatus :: Int
- newCreateUploadResponse :: Int -> CreateUploadResponse
- createUploadResponse_upload :: Lens' CreateUploadResponse (Maybe Upload)
- createUploadResponse_httpStatus :: Lens' CreateUploadResponse Int
Creating a Request
data CreateUpload Source #
Represents a request to the create upload operation.
See: newCreateUpload
smart constructor.
CreateUpload' | |
|
Instances
:: Text | |
-> Text | |
-> UploadType | |
-> CreateUpload |
Create a value of CreateUpload
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:contentType:CreateUpload'
, createUpload_contentType
- The upload's content type (for example, application/octet-stream
).
$sel:projectArn:CreateUpload'
, createUpload_projectArn
- The ARN of the project for the upload.
$sel:name:CreateUpload'
, createUpload_name
- The upload's file name. The name should not contain any forward slashes
(/
). If you are uploading an iOS app, the file name must end with the
.ipa
extension. If you are uploading an Android app, the file name
must end with the .apk
extension. For all others, the file name must
end with the .zip
file extension.
$sel:type':CreateUpload'
, createUpload_type
- The upload's upload type.
Must be one of the following values:
- ANDROID_APP
- IOS_APP
- WEB_APP
- EXTERNAL_DATA
- APPIUM_JAVA_JUNIT_TEST_PACKAGE
- APPIUM_JAVA_TESTNG_TEST_PACKAGE
- APPIUM_PYTHON_TEST_PACKAGE
- APPIUM_NODE_TEST_PACKAGE
- APPIUM_RUBY_TEST_PACKAGE
- APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
- APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
- APPIUM_WEB_PYTHON_TEST_PACKAGE
- APPIUM_WEB_NODE_TEST_PACKAGE
- APPIUM_WEB_RUBY_TEST_PACKAGE
- CALABASH_TEST_PACKAGE
- INSTRUMENTATION_TEST_PACKAGE
- UIAUTOMATION_TEST_PACKAGE
- UIAUTOMATOR_TEST_PACKAGE
- XCTEST_TEST_PACKAGE
- XCTEST_UI_TEST_PACKAGE
- APPIUM_JAVA_JUNIT_TEST_SPEC
- APPIUM_JAVA_TESTNG_TEST_SPEC
- APPIUM_PYTHON_TEST_SPEC
- APPIUM_NODE_TEST_SPEC
- APPIUM_RUBY_TEST_SPEC
- APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
- APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
- APPIUM_WEB_PYTHON_TEST_SPEC
- APPIUM_WEB_NODE_TEST_SPEC
- APPIUM_WEB_RUBY_TEST_SPEC
- INSTRUMENTATION_TEST_SPEC
- XCTEST_UI_TEST_SPEC
If you call CreateUpload
with WEB_APP
specified, AWS Device Farm
throws an ArgumentException
error.
Request Lenses
createUpload_contentType :: Lens' CreateUpload (Maybe Text) Source #
The upload's content type (for example, application/octet-stream
).
createUpload_projectArn :: Lens' CreateUpload Text Source #
The ARN of the project for the upload.
createUpload_name :: Lens' CreateUpload Text Source #
The upload's file name. The name should not contain any forward slashes
(/
). If you are uploading an iOS app, the file name must end with the
.ipa
extension. If you are uploading an Android app, the file name
must end with the .apk
extension. For all others, the file name must
end with the .zip
file extension.
createUpload_type :: Lens' CreateUpload UploadType Source #
The upload's upload type.
Must be one of the following values:
- ANDROID_APP
- IOS_APP
- WEB_APP
- EXTERNAL_DATA
- APPIUM_JAVA_JUNIT_TEST_PACKAGE
- APPIUM_JAVA_TESTNG_TEST_PACKAGE
- APPIUM_PYTHON_TEST_PACKAGE
- APPIUM_NODE_TEST_PACKAGE
- APPIUM_RUBY_TEST_PACKAGE
- APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE
- APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE
- APPIUM_WEB_PYTHON_TEST_PACKAGE
- APPIUM_WEB_NODE_TEST_PACKAGE
- APPIUM_WEB_RUBY_TEST_PACKAGE
- CALABASH_TEST_PACKAGE
- INSTRUMENTATION_TEST_PACKAGE
- UIAUTOMATION_TEST_PACKAGE
- UIAUTOMATOR_TEST_PACKAGE
- XCTEST_TEST_PACKAGE
- XCTEST_UI_TEST_PACKAGE
- APPIUM_JAVA_JUNIT_TEST_SPEC
- APPIUM_JAVA_TESTNG_TEST_SPEC
- APPIUM_PYTHON_TEST_SPEC
- APPIUM_NODE_TEST_SPEC
- APPIUM_RUBY_TEST_SPEC
- APPIUM_WEB_JAVA_JUNIT_TEST_SPEC
- APPIUM_WEB_JAVA_TESTNG_TEST_SPEC
- APPIUM_WEB_PYTHON_TEST_SPEC
- APPIUM_WEB_NODE_TEST_SPEC
- APPIUM_WEB_RUBY_TEST_SPEC
- INSTRUMENTATION_TEST_SPEC
- XCTEST_UI_TEST_SPEC
If you call CreateUpload
with WEB_APP
specified, AWS Device Farm
throws an ArgumentException
error.
Destructuring the Response
data CreateUploadResponse Source #
Represents the result of a create upload request.
See: newCreateUploadResponse
smart constructor.
CreateUploadResponse' | |
|
Instances
newCreateUploadResponse Source #
Create a value of CreateUploadResponse
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:CreateUploadResponse'
, createUploadResponse_upload
- The newly created upload.
$sel:httpStatus:CreateUploadResponse'
, createUploadResponse_httpStatus
- The response's http status code.
Response Lenses
createUploadResponse_upload :: Lens' CreateUploadResponse (Maybe Upload) Source #
The newly created upload.
createUploadResponse_httpStatus :: Lens' CreateUploadResponse Int Source #
The response's http status code.