Copyright | (c) 2013-2021 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 |
Stops one or more job runs for a specified job definition.
Synopsis
- data BatchStopJobRun = BatchStopJobRun' {}
- newBatchStopJobRun :: Text -> NonEmpty Text -> BatchStopJobRun
- batchStopJobRun_jobName :: Lens' BatchStopJobRun Text
- batchStopJobRun_jobRunIds :: Lens' BatchStopJobRun (NonEmpty Text)
- data BatchStopJobRunResponse = BatchStopJobRunResponse' {}
- newBatchStopJobRunResponse :: Int -> BatchStopJobRunResponse
- batchStopJobRunResponse_successfulSubmissions :: Lens' BatchStopJobRunResponse (Maybe [BatchStopJobRunSuccessfulSubmission])
- batchStopJobRunResponse_errors :: Lens' BatchStopJobRunResponse (Maybe [BatchStopJobRunError])
- batchStopJobRunResponse_httpStatus :: Lens' BatchStopJobRunResponse Int
Creating a Request
data BatchStopJobRun Source #
See: newBatchStopJobRun
smart constructor.
Instances
:: Text | |
-> NonEmpty Text | |
-> BatchStopJobRun |
Create a value of BatchStopJobRun
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:jobName:BatchStopJobRun'
, batchStopJobRun_jobName
- The name of the job definition for which to stop job runs.
$sel:jobRunIds:BatchStopJobRun'
, batchStopJobRun_jobRunIds
- A list of the JobRunIds
that should be stopped for that job
definition.
Request Lenses
batchStopJobRun_jobName :: Lens' BatchStopJobRun Text Source #
The name of the job definition for which to stop job runs.
batchStopJobRun_jobRunIds :: Lens' BatchStopJobRun (NonEmpty Text) Source #
A list of the JobRunIds
that should be stopped for that job
definition.
Destructuring the Response
data BatchStopJobRunResponse Source #
See: newBatchStopJobRunResponse
smart constructor.
BatchStopJobRunResponse' | |
|
Instances
newBatchStopJobRunResponse Source #
Create a value of BatchStopJobRunResponse
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:successfulSubmissions:BatchStopJobRunResponse'
, batchStopJobRunResponse_successfulSubmissions
- A list of the JobRuns that were successfully submitted for stopping.
$sel:errors:BatchStopJobRunResponse'
, batchStopJobRunResponse_errors
- A list of the errors that were encountered in trying to stop JobRuns
,
including the JobRunId
for which each error was encountered and
details about the error.
$sel:httpStatus:BatchStopJobRunResponse'
, batchStopJobRunResponse_httpStatus
- The response's http status code.
Response Lenses
batchStopJobRunResponse_successfulSubmissions :: Lens' BatchStopJobRunResponse (Maybe [BatchStopJobRunSuccessfulSubmission]) Source #
A list of the JobRuns that were successfully submitted for stopping.
batchStopJobRunResponse_errors :: Lens' BatchStopJobRunResponse (Maybe [BatchStopJobRunError]) Source #
A list of the errors that were encountered in trying to stop JobRuns
,
including the JobRunId
for which each error was encountered and
details about the error.
batchStopJobRunResponse_httpStatus :: Lens' BatchStopJobRunResponse Int Source #
The response's http status code.