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

Amazonka.DeviceFarm.CreateUpload

Description

Uploads an app or test scripts.

Synopsis

Creating a Request

data CreateUpload Source #

Represents a request to the create upload operation.

See: newCreateUpload smart constructor.

Constructors

CreateUpload' 

Fields

  • contentType :: Maybe Text

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

  • projectArn :: Text

    The ARN of the project for the upload.

  • name :: Text

    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.

  • type' :: UploadType

    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.

Instances

Instances details
Eq CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Read CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Show CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Generic CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Associated Types

type Rep CreateUpload :: Type -> Type #

NFData CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Methods

rnf :: CreateUpload -> () #

Hashable CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

ToJSON CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

AWSRequest CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Associated Types

type AWSResponse CreateUpload #

ToHeaders CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

ToPath CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

ToQuery CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

type Rep CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

type Rep CreateUpload = D1 ('MetaData "CreateUpload" "Amazonka.DeviceFarm.CreateUpload" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "CreateUpload'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "projectArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UploadType))))
type AWSResponse CreateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

newCreateUpload Source #

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.

Constructors

CreateUploadResponse' 

Fields

Instances

Instances details
Eq CreateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Show CreateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Generic CreateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Associated Types

type Rep CreateUploadResponse :: Type -> Type #

NFData CreateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

Methods

rnf :: CreateUploadResponse -> () #

type Rep CreateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.CreateUpload

type Rep CreateUploadResponse = D1 ('MetaData "CreateUploadResponse" "Amazonka.DeviceFarm.CreateUpload" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" 'False) (C1 ('MetaCons "CreateUploadResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "upload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Upload)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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