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 |
Stops one or more job runs for a specified job definition.
- batchStopJobRun :: Text -> NonEmpty Text -> BatchStopJobRun
- data BatchStopJobRun
- bsjrJobName :: Lens' BatchStopJobRun Text
- bsjrJobRunIds :: Lens' BatchStopJobRun (NonEmpty Text)
- batchStopJobRunResponse :: Int -> BatchStopJobRunResponse
- data BatchStopJobRunResponse
- bsjrrsSuccessfulSubmissions :: Lens' BatchStopJobRunResponse [BatchStopJobRunSuccessfulSubmission]
- bsjrrsErrors :: Lens' BatchStopJobRunResponse [BatchStopJobRunError]
- bsjrrsResponseStatus :: Lens' BatchStopJobRunResponse Int
Creating a Request
Creates a value of BatchStopJobRun
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bsjrJobName
- The name of the job definition for which to stop job runs.bsjrJobRunIds
- A list of the JobRunIds that should be stopped for that job definition.
data BatchStopJobRun Source #
See: batchStopJobRun
smart constructor.
Request Lenses
bsjrJobName :: Lens' BatchStopJobRun Text Source #
The name of the job definition for which to stop job runs.
bsjrJobRunIds :: Lens' BatchStopJobRun (NonEmpty Text) Source #
A list of the JobRunIds that should be stopped for that job definition.
Destructuring the Response
batchStopJobRunResponse Source #
Creates a value of BatchStopJobRunResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bsjrrsSuccessfulSubmissions
- A list of the JobRuns that were successfully submitted for stopping.bsjrrsErrors
- A list of the errors that were encountered in tryng to stop JobRuns, including the JobRunId for which each error was encountered and details about the error.bsjrrsResponseStatus
- -- | The response status code.
data BatchStopJobRunResponse Source #
See: batchStopJobRunResponse
smart constructor.
Response Lenses
bsjrrsSuccessfulSubmissions :: Lens' BatchStopJobRunResponse [BatchStopJobRunSuccessfulSubmission] Source #
A list of the JobRuns that were successfully submitted for stopping.
bsjrrsErrors :: Lens' BatchStopJobRunResponse [BatchStopJobRunError] Source #
A list of the errors that were encountered in tryng to stop JobRuns, including the JobRunId for which each error was encountered and details about the error.
bsjrrsResponseStatus :: Lens' BatchStopJobRunResponse Int Source #
- - | The response status code.