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

Description

Updates an uploaded test spec.

Synopsis

Creating a Request

data UpdateUpload Source #

See: newUpdateUpload smart constructor.

Constructors

UpdateUpload' 

Fields

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

  • contentType :: Maybe Text

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

  • arn :: Text

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

Instances

Instances details
Eq UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Read UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Show UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Generic UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Associated Types

type Rep UpdateUpload :: Type -> Type #

NFData UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Methods

rnf :: UpdateUpload -> () #

Hashable UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

ToJSON UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

AWSRequest UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Associated Types

type AWSResponse 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

type Rep UpdateUpload Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

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

Defined in Amazonka.DeviceFarm.UpdateUpload

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:

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

$sel:name: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.

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

$sel:arn:UpdateUpload', updateUpload_arn - The Amazon Resource Name (ARN) of the uploaded test spec.

Request Lenses

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_contentType :: Lens' UpdateUpload (Maybe Text) Source #

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

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

Instances

Instances details
Eq UpdateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Show UpdateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Generic UpdateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Associated Types

type Rep UpdateUploadResponse :: Type -> Type #

NFData UpdateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

Methods

rnf :: UpdateUploadResponse -> () #

type Rep UpdateUploadResponse Source # 
Instance details

Defined in Amazonka.DeviceFarm.UpdateUpload

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

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.