amazonka-devicefarm-1.6.1: Amazon Device Farm SDK.

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

Network.AWS.DeviceFarm.CreateUpload

Contents

Description

Uploads an app or test scripts.

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:

  • cuContentType - The upload's content type (for example, "application/octet-stream").
  • cuProjectARN - The ARN of the project for the upload.
  • cuName - The upload's file name. The name should not contain the / character. If uploading an iOS app, the file name needs to end with the .ipa extension. If uploading an Android app, the file name needs to end with the .apk extension. For all others, the file name must end with the .zip file extension.
  • cuType - The upload's upload type. Must be one of the following values: * ANDROID_APP: An Android upload. * IOS_APP: An iOS upload. * WEB_APP: A web appliction 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. * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload. * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. * CALABASH_TEST_PACKAGE: A Calabash test package upload. * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. * XCTEST_TEST_PACKAGE: An XCode test package upload. * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

data CreateUpload Source #

Represents a request to the create upload operation.

See: createUpload smart constructor.

Instances
Eq CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Data CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateUpload -> c CreateUpload #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateUpload #

toConstr :: CreateUpload -> Constr #

dataTypeOf :: CreateUpload -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateUpload) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateUpload) #

gmapT :: (forall b. Data b => b -> b) -> CreateUpload -> CreateUpload #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateUpload -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateUpload -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateUpload -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateUpload -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateUpload -> m CreateUpload #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateUpload -> m CreateUpload #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateUpload -> m CreateUpload #

Read CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Show CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Generic CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Associated Types

type Rep CreateUpload :: Type -> Type #

Hashable CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

ToJSON CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

AWSRequest CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Associated Types

type Rs CreateUpload :: Type #

ToHeaders CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

ToPath CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

ToQuery CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

NFData CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Methods

rnf :: CreateUpload -> () #

type Rep CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

type Rep CreateUpload = D1 (MetaData "CreateUpload" "Network.AWS.DeviceFarm.CreateUpload" "amazonka-devicefarm-1.6.1-BUBE26oXCvH3OZbJddASoX" False) (C1 (MetaCons "CreateUpload'" PrefixI True) ((S1 (MetaSel (Just "_cuContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cuProjectARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_cuName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cuType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UploadType))))
type Rs CreateUpload Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

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. The name should not contain the / character. If uploading an iOS app, the file name needs to end with the .ipa extension. If uploading an Android app, the file name needs to end with the .apk extension. For all others, the file name must end with the .zip file extension.

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. * WEB_APP: A web appliction 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. * APPIUM_PYTHON_TEST_PACKAGE: An Appium Python test package upload. * APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload. * APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload. * APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload. * CALABASH_TEST_PACKAGE: A Calabash test package upload. * INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload. * UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload. * UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload. * XCTEST_TEST_PACKAGE: An XCode test package upload. * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

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:

data CreateUploadResponse Source #

Represents the result of a create upload request.

See: createUploadResponse smart constructor.

Instances
Eq CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Data CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateUploadResponse -> c CreateUploadResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateUploadResponse #

toConstr :: CreateUploadResponse -> Constr #

dataTypeOf :: CreateUploadResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateUploadResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateUploadResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateUploadResponse -> CreateUploadResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateUploadResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateUploadResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateUploadResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateUploadResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateUploadResponse -> m CreateUploadResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateUploadResponse -> m CreateUploadResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateUploadResponse -> m CreateUploadResponse #

Read CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Show CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Generic CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Associated Types

type Rep CreateUploadResponse :: Type -> Type #

NFData CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

Methods

rnf :: CreateUploadResponse -> () #

type Rep CreateUploadResponse Source # 
Instance details

Defined in Network.AWS.DeviceFarm.CreateUpload

type Rep CreateUploadResponse = D1 (MetaData "CreateUploadResponse" "Network.AWS.DeviceFarm.CreateUpload" "amazonka-devicefarm-1.6.1-BUBE26oXCvH3OZbJddASoX" False) (C1 (MetaCons "CreateUploadResponse'" PrefixI True) (S1 (MetaSel (Just "_cursUpload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Upload)) :*: S1 (MetaSel (Just "_cursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cursUpload :: Lens' CreateUploadResponse (Maybe Upload) Source #

The newly created upload.

cursResponseStatus :: Lens' CreateUploadResponse Int Source #

  • - | The response status code.