Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Stops a running task.
See: AWS API Reference for StopTask.
- stopTask :: Text -> StopTask
- data StopTask
- stCluster :: Lens' StopTask (Maybe Text)
- stTask :: Lens' StopTask Text
- stopTaskResponse :: Int -> StopTaskResponse
- data StopTaskResponse
- srsTask :: Lens' StopTaskResponse (Maybe Task)
- srsResponseStatus :: Lens' StopTaskResponse Int
Creating a Request
See: stopTask
smart constructor.
Request Lenses
stCluster :: Lens' StopTask (Maybe Text) Source
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task you want to stop. If you do not specify a cluster, the default cluster is assumed..
stTask :: Lens' StopTask Text Source
The task UUIDs or full Amazon Resource Name (ARN) entry of the task you would like to stop.
Destructuring the Response
Creates a value of StopTaskResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data StopTaskResponse Source
See: stopTaskResponse
smart constructor.
Response Lenses
srsResponseStatus :: Lens' StopTaskResponse Int Source
The response status code.