libZSservicesZSamazonka-snowballZSamazonka-snowball
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.Snowball.CancelJob

Description

Cancels the specified job. You can only cancel a job before its JobState value changes to PreparingAppliance. Requesting the ListJobs or DescribeJob action returns a job's JobState as part of the response element data returned.

Synopsis

Creating a Request

data CancelJob Source #

See: newCancelJob smart constructor.

Constructors

CancelJob' 

Fields

  • jobId :: Text

    The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000.

Instances

Instances details
Eq CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Read CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Show CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Generic CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Associated Types

type Rep CancelJob :: Type -> Type #

NFData CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Methods

rnf :: CancelJob -> () #

Hashable CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

ToJSON CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

AWSRequest CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Associated Types

type AWSResponse CancelJob #

ToHeaders CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Methods

toHeaders :: CancelJob -> [Header] #

ToPath CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

ToQuery CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

type Rep CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

type Rep CancelJob = D1 ('MetaData "CancelJob" "Amazonka.Snowball.CancelJob" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "CancelJob'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse CancelJob Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

newCancelJob Source #

Create a value of CancelJob 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:jobId:CancelJob', cancelJob_jobId - The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000.

Request Lenses

cancelJob_jobId :: Lens' CancelJob Text Source #

The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000.

Destructuring the Response

data CancelJobResponse Source #

See: newCancelJobResponse smart constructor.

Constructors

CancelJobResponse' 

Fields

Instances

Instances details
Eq CancelJobResponse Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Read CancelJobResponse Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Show CancelJobResponse Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Generic CancelJobResponse Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Associated Types

type Rep CancelJobResponse :: Type -> Type #

NFData CancelJobResponse Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

Methods

rnf :: CancelJobResponse -> () #

type Rep CancelJobResponse Source # 
Instance details

Defined in Amazonka.Snowball.CancelJob

type Rep CancelJobResponse = D1 ('MetaData "CancelJobResponse" "Amazonka.Snowball.CancelJob" "libZSservicesZSamazonka-snowballZSamazonka-snowball" 'False) (C1 ('MetaCons "CancelJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCancelJobResponse Source #

Create a value of CancelJobResponse 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:httpStatus:CancelJobResponse', cancelJobResponse_httpStatus - The response's http status code.

Response Lenses

cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #

The response's http status code.