AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Upload

import "github.com/aws/aws-sdk-go/service/devicefarm"

type Upload struct { Arn *string `locationName:"arn" min:"32" type:"string"` Category *string `locationName:"category" type:"string" enum:"UploadCategory"` ContentType *string `locationName:"contentType" type:"string"` Created *time.Time `locationName:"created" type:"timestamp"` Message *string `locationName:"message" type:"string"` Metadata *string `locationName:"metadata" type:"string"` Name *string `locationName:"name" type:"string"` Status *string `locationName:"status" type:"string" enum:"UploadStatus"` Type *string `locationName:"type" type:"string" enum:"UploadType"` Url *string `locationName:"url" type:"string"` }

An app or a set of one or more tests to upload or that have been uploaded.

Arn

Type: *string

The upload's ARN.

Category

Type: *string

The upload's category. Allowed values include:

  • CURATED: An upload managed by AWS Device Farm.

  • PRIVATE: An upload managed by the AWS Device Farm customer.

ContentType

Type: *string

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

Created

Type: *time.Time

When the upload was created.

Message

Type: *string

A message about the upload's result.

Metadata

Type: *string

The upload's metadata. For example, for Android, this contains information that is parsed from the manifest and is displayed in the AWS Device Farm console after the associated app is uploaded.

Name

Type: *string

The upload's file name.

Status

Type: *string

The upload's status.

Must be one of the following values:

  • FAILED: A failed status.

  • INITIALIZED: An initialized status.

  • PROCESSING: A processing status.

  • SUCCEEDED: A succeeded status.

Type

Type: *string

The upload's 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_NODE_TEST_PACKAGE: An Appium Node.js test package upload.

  • APPIUM_RUBY_TEST_PACKAGE: An Appium Ruby test package upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE: An Appium Java JUnit test package upload for web apps.

  • APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload for web apps.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload for web apps.

  • APPIUM_WEB_NODE_TEST_PACKAGE: An Appium Node.js test package upload for web apps.

  • APPIUM_WEB_RUBY_TEST_PACKAGE: An Appium Ruby test package upload for web apps.

  • 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.

  • APPIUM_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • APPIUM_NODE_TEST_SPEC: An Appium Node.js test spec upload.

  • APPIUM_RUBY_TEST_SPEC: An Appium Ruby test spec upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload for a web app.

  • APPIUM_WEB_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload for a web app.

  • APPIUM_WEB_PYTHON_TEST_SPEC: An Appium Python test spec upload for a web app.

  • APPIUM_WEB_NODE_TEST_SPEC: An Appium Node.js test spec upload for a web app.

  • APPIUM_WEB_RUBY_TEST_SPEC: An Appium Ruby test spec upload for a web app.

  • INSTRUMENTATION_TEST_SPEC: An instrumentation test spec upload.

  • XCTEST_UI_TEST_SPEC: An XCode UI test spec upload.

Url

Type: *string

The pre-signed Amazon S3 URL that was used to store a file through a corresponding PUT request.

Method

GoString

func (s Upload) GoString() string

GoString returns the string representation

SetArn

func (s *Upload) SetArn(v string) *Upload

SetArn sets the Arn field's value.

SetCategory

func (s *Upload) SetCategory(v string) *Upload

SetCategory sets the Category field's value.

SetContentType

func (s *Upload) SetContentType(v string) *Upload

SetContentType sets the ContentType field's value.

SetCreated

func (s *Upload) SetCreated(v time.Time) *Upload

SetCreated sets the Created field's value.

SetMessage

func (s *Upload) SetMessage(v string) *Upload

SetMessage sets the Message field's value.

SetMetadata

func (s *Upload) SetMetadata(v string) *Upload

SetMetadata sets the Metadata field's value.

SetName

func (s *Upload) SetName(v string) *Upload

SetName sets the Name field's value.

SetStatus

func (s *Upload) SetStatus(v string) *Upload

SetStatus sets the Status field's value.

SetType

func (s *Upload) SetType(v string) *Upload

SetType sets the Type field's value.

SetUrl

func (s *Upload) SetUrl(v string) *Upload

SetUrl sets the Url field's value.

String

func (s Upload) String() string

String returns the string representation

On this page: