amazonka-devicefarm-2.0: Amazon Device Farm SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DeviceFarm.UpdateUpload

Description

Updates an uploaded test spec.

Synopsis

Creating a Request

data UpdateUpload Source #

See: newUpdateUpload smart constructor.

Constructors

UpdateUpload' 

Fields

  • contentType :: Maybe Text

    The upload's content type (for example, application/x-yaml).

  • editContent :: Maybe Bool

    Set to true if the YAML file has changed and must be updated. Otherwise, set to false.

  • name :: Maybe Text

    The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the .yaml or .yml file extension.

  • arn :: Text

    The Amazon Resource Name (ARN) of the uploaded test spec.

Instances

Instances details
ToJSON UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

ToHeaders UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

ToPath UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

ToQuery UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

AWSRequest UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Associated Types

type AWSResponse UpdateUpload #

Generic UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Associated Types

type Rep UpdateUpload :: Type -> Type #

Read UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Show UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

NFData UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Methods

rnf :: UpdateUpload -> () #

Eq UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Hashable UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

type AWSResponse UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

type Rep UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

type Rep UpdateUpload = D1 ('MetaData "UpdateUpload" "Amazonka.DeviceFarm.UpdateUpload" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "UpdateUpload'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "editContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdateUpload Source #

Create a value of UpdateUpload 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:

UpdateUpload, updateUpload_contentType - The upload's content type (for example, application/x-yaml).

$sel:editContent:UpdateUpload', updateUpload_editContent - Set to true if the YAML file has changed and must be updated. Otherwise, set to false.

UpdateUpload, updateUpload_name - The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the .yaml or .yml file extension.

UpdateUpload, updateUpload_arn - The Amazon Resource Name (ARN) of the uploaded test spec.

Request Lenses

updateUpload_contentType :: Lens' UpdateUpload (Maybe Text) Source #

The upload's content type (for example, application/x-yaml).

updateUpload_editContent :: Lens' UpdateUpload (Maybe Bool) Source #

Set to true if the YAML file has changed and must be updated. Otherwise, set to false.

updateUpload_name :: Lens' UpdateUpload (Maybe Text) Source #

The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the .yaml or .yml file extension.

updateUpload_arn :: Lens' UpdateUpload Text Source #

The Amazon Resource Name (ARN) of the uploaded test spec.

Destructuring the Response

data UpdateUploadResponse Source #

See: newUpdateUploadResponse smart constructor.

Constructors

UpdateUploadResponse' 

Fields

newUpdateUploadResponse Source #

Create a value of UpdateUploadResponse 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:UpdateUploadResponse', updateUploadResponse_upload - A test spec uploaded to Device Farm.

$sel:httpStatus:UpdateUploadResponse', updateUploadResponse_httpStatus - The response's http status code.

Response Lenses

updateUploadResponse_upload :: Lens' UpdateUploadResponse (Maybe Upload) Source #

A test spec uploaded to Device Farm.