| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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 will return a job's JobState as part of the response element data returned.
- cancelJob :: Text -> CancelJob
- data CancelJob
- cjJobId :: Lens' CancelJob Text
- cancelJobResponse :: Int -> CancelJobResponse
- data CancelJobResponse
- crsResponseStatus :: Lens' CancelJobResponse Int
Creating a Request
See: cancelJob smart constructor.
Instances
Request Lenses
cjJobId :: 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
Arguments
| :: Int | |
| -> CancelJobResponse |
Creates a value of CancelJobResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsResponseStatus- -- | The response status code.
data CancelJobResponse Source #
See: cancelJobResponse smart constructor.
Response Lenses
crsResponseStatus :: Lens' CancelJobResponse Int Source #
- - | The response status code.