amazonka-devicefarm-1.0.0: Amazon Device Farm SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.DeviceFarm.CreateUpload

Contents

Description

Uploads an app or test scripts.

See: AWS API Reference for CreateUpload.

Synopsis

Creating a Request

createUpload Source

Creates a value of CreateUpload with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cuContentType :: Lens' CreateUpload (Maybe Text) Source

The upload's content type (for example, "application/octet-stream").

cuProjectARN :: Lens' CreateUpload Text Source

The ARN of the project for the upload.

cuName :: Lens' CreateUpload Text Source

The upload's file name.

cuType :: Lens' CreateUpload UploadType Source

The upload's upload type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.
  • IOS_APP: An iOS upload.
  • EXTERNAL_DATA: An external data upload.
  • APPIUM_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload.
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.
  • CALABASH_TEST_PACKAGE: A Calabash test package upload.
  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.
  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.
  • XCTEST_TEST_PACKAGE: An XCode test package upload.

Destructuring the Response

createUploadResponse Source

Creates a value of CreateUploadResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

cursUpload :: Lens' CreateUploadResponse (Maybe Upload) Source

The newly created upload.

cursStatus :: Lens' CreateUploadResponse Int Source

The response status code.