Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Starts a new simulation job batch. The batch is defined using one or
more SimulationJobRequest
objects.
Synopsis
- data StartSimulationJobBatch = StartSimulationJobBatch' {}
- newStartSimulationJobBatch :: NonEmpty SimulationJobRequest -> StartSimulationJobBatch
- startSimulationJobBatch_batchPolicy :: Lens' StartSimulationJobBatch (Maybe BatchPolicy)
- startSimulationJobBatch_clientRequestToken :: Lens' StartSimulationJobBatch (Maybe Text)
- startSimulationJobBatch_tags :: Lens' StartSimulationJobBatch (Maybe (HashMap Text Text))
- startSimulationJobBatch_createSimulationJobRequests :: Lens' StartSimulationJobBatch (NonEmpty SimulationJobRequest)
- data StartSimulationJobBatchResponse = StartSimulationJobBatchResponse' {
- arn :: Maybe Text
- batchPolicy :: Maybe BatchPolicy
- clientRequestToken :: Maybe Text
- createdAt :: Maybe POSIX
- createdRequests :: Maybe [SimulationJobSummary]
- failedRequests :: Maybe [FailedCreateSimulationJobRequest]
- failureCode :: Maybe SimulationJobBatchErrorCode
- failureReason :: Maybe Text
- pendingRequests :: Maybe (NonEmpty SimulationJobRequest)
- status :: Maybe SimulationJobBatchStatus
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newStartSimulationJobBatchResponse :: Int -> StartSimulationJobBatchResponse
- startSimulationJobBatchResponse_arn :: Lens' StartSimulationJobBatchResponse (Maybe Text)
- startSimulationJobBatchResponse_batchPolicy :: Lens' StartSimulationJobBatchResponse (Maybe BatchPolicy)
- startSimulationJobBatchResponse_clientRequestToken :: Lens' StartSimulationJobBatchResponse (Maybe Text)
- startSimulationJobBatchResponse_createdAt :: Lens' StartSimulationJobBatchResponse (Maybe UTCTime)
- startSimulationJobBatchResponse_createdRequests :: Lens' StartSimulationJobBatchResponse (Maybe [SimulationJobSummary])
- startSimulationJobBatchResponse_failedRequests :: Lens' StartSimulationJobBatchResponse (Maybe [FailedCreateSimulationJobRequest])
- startSimulationJobBatchResponse_failureCode :: Lens' StartSimulationJobBatchResponse (Maybe SimulationJobBatchErrorCode)
- startSimulationJobBatchResponse_failureReason :: Lens' StartSimulationJobBatchResponse (Maybe Text)
- startSimulationJobBatchResponse_pendingRequests :: Lens' StartSimulationJobBatchResponse (Maybe (NonEmpty SimulationJobRequest))
- startSimulationJobBatchResponse_status :: Lens' StartSimulationJobBatchResponse (Maybe SimulationJobBatchStatus)
- startSimulationJobBatchResponse_tags :: Lens' StartSimulationJobBatchResponse (Maybe (HashMap Text Text))
- startSimulationJobBatchResponse_httpStatus :: Lens' StartSimulationJobBatchResponse Int
Creating a Request
data StartSimulationJobBatch Source #
See: newStartSimulationJobBatch
smart constructor.
StartSimulationJobBatch' | |
|
Instances
newStartSimulationJobBatch Source #
Create a value of StartSimulationJobBatch
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:
StartSimulationJobBatch
, startSimulationJobBatch_batchPolicy
- The batch policy.
StartSimulationJobBatch
, startSimulationJobBatch_clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
StartSimulationJobBatch
, startSimulationJobBatch_tags
- A map that contains tag keys and tag values that are attached to the
deployment job batch.
$sel:createSimulationJobRequests:StartSimulationJobBatch'
, startSimulationJobBatch_createSimulationJobRequests
- A list of simulation job requests to create in the batch.
Request Lenses
startSimulationJobBatch_batchPolicy :: Lens' StartSimulationJobBatch (Maybe BatchPolicy) Source #
The batch policy.
startSimulationJobBatch_clientRequestToken :: Lens' StartSimulationJobBatch (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
startSimulationJobBatch_tags :: Lens' StartSimulationJobBatch (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to the deployment job batch.
startSimulationJobBatch_createSimulationJobRequests :: Lens' StartSimulationJobBatch (NonEmpty SimulationJobRequest) Source #
A list of simulation job requests to create in the batch.
Destructuring the Response
data StartSimulationJobBatchResponse Source #
See: newStartSimulationJobBatchResponse
smart constructor.
StartSimulationJobBatchResponse' | |
|
Instances
newStartSimulationJobBatchResponse Source #
Create a value of StartSimulationJobBatchResponse
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:
StartSimulationJobBatchResponse
, startSimulationJobBatchResponse_arn
- The Amazon Resource Name (arn) of the batch.
StartSimulationJobBatch
, startSimulationJobBatchResponse_batchPolicy
- The batch policy.
StartSimulationJobBatch
, startSimulationJobBatchResponse_clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
StartSimulationJobBatchResponse
, startSimulationJobBatchResponse_createdAt
- The time, in milliseconds since the epoch, when the simulation job batch
was created.
$sel:createdRequests:StartSimulationJobBatchResponse'
, startSimulationJobBatchResponse_createdRequests
- A list of created simulation job request summaries.
$sel:failedRequests:StartSimulationJobBatchResponse'
, startSimulationJobBatchResponse_failedRequests
- A list of failed simulation job requests. The request failed to be
created into a simulation job. Failed requests do not have a simulation
job ID.
StartSimulationJobBatchResponse
, startSimulationJobBatchResponse_failureCode
- The failure code if the simulation job batch failed.
StartSimulationJobBatchResponse
, startSimulationJobBatchResponse_failureReason
- The reason the simulation job batch failed.
$sel:pendingRequests:StartSimulationJobBatchResponse'
, startSimulationJobBatchResponse_pendingRequests
- A list of pending simulation job requests. These requests have not yet
been created into simulation jobs.
StartSimulationJobBatchResponse
, startSimulationJobBatchResponse_status
- The status of the simulation job batch.
- Pending
- The simulation job batch request is pending.
- InProgress
- The simulation job batch is in progress.
- Failed
- The simulation job batch failed. One or more simulation job requests
could not be completed due to an internal failure (like
InternalServiceError
). SeefailureCode
andfailureReason
for more information. - Completed
- The simulation batch job completed. A batch is complete when (1)
there are no pending simulation job requests in the batch and none
of the failed simulation job requests are due to
InternalServiceError
and (2) when all created simulation jobs have reached a terminal state (for example,Completed
orFailed
). - Canceled
- The simulation batch job was cancelled.
- Canceling
- The simulation batch job is being cancelled.
- Completing
- The simulation batch job is completing.
- TimingOut
- The simulation job batch is timing out.
If a batch timing out, and there are pending requests that were failing due to an internal failure (like
InternalServiceError
), the batch status will beFailed
. If there are no such failing request, the batch status will beTimedOut
. - TimedOut
- The simulation batch job timed out.
StartSimulationJobBatch
, startSimulationJobBatchResponse_tags
- A map that contains tag keys and tag values that are attached to the
deployment job batch.
$sel:httpStatus:StartSimulationJobBatchResponse'
, startSimulationJobBatchResponse_httpStatus
- The response's http status code.
Response Lenses
startSimulationJobBatchResponse_arn :: Lens' StartSimulationJobBatchResponse (Maybe Text) Source #
The Amazon Resource Name (arn) of the batch.
startSimulationJobBatchResponse_batchPolicy :: Lens' StartSimulationJobBatchResponse (Maybe BatchPolicy) Source #
The batch policy.
startSimulationJobBatchResponse_clientRequestToken :: Lens' StartSimulationJobBatchResponse (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
startSimulationJobBatchResponse_createdAt :: Lens' StartSimulationJobBatchResponse (Maybe UTCTime) Source #
The time, in milliseconds since the epoch, when the simulation job batch was created.
startSimulationJobBatchResponse_createdRequests :: Lens' StartSimulationJobBatchResponse (Maybe [SimulationJobSummary]) Source #
A list of created simulation job request summaries.
startSimulationJobBatchResponse_failedRequests :: Lens' StartSimulationJobBatchResponse (Maybe [FailedCreateSimulationJobRequest]) Source #
A list of failed simulation job requests. The request failed to be created into a simulation job. Failed requests do not have a simulation job ID.
startSimulationJobBatchResponse_failureCode :: Lens' StartSimulationJobBatchResponse (Maybe SimulationJobBatchErrorCode) Source #
The failure code if the simulation job batch failed.
startSimulationJobBatchResponse_failureReason :: Lens' StartSimulationJobBatchResponse (Maybe Text) Source #
The reason the simulation job batch failed.
startSimulationJobBatchResponse_pendingRequests :: Lens' StartSimulationJobBatchResponse (Maybe (NonEmpty SimulationJobRequest)) Source #
A list of pending simulation job requests. These requests have not yet been created into simulation jobs.
startSimulationJobBatchResponse_status :: Lens' StartSimulationJobBatchResponse (Maybe SimulationJobBatchStatus) Source #
The status of the simulation job batch.
- Pending
- The simulation job batch request is pending.
- InProgress
- The simulation job batch is in progress.
- Failed
- The simulation job batch failed. One or more simulation job requests
could not be completed due to an internal failure (like
InternalServiceError
). SeefailureCode
andfailureReason
for more information. - Completed
- The simulation batch job completed. A batch is complete when (1)
there are no pending simulation job requests in the batch and none
of the failed simulation job requests are due to
InternalServiceError
and (2) when all created simulation jobs have reached a terminal state (for example,Completed
orFailed
). - Canceled
- The simulation batch job was cancelled.
- Canceling
- The simulation batch job is being cancelled.
- Completing
- The simulation batch job is completing.
- TimingOut
- The simulation job batch is timing out.
If a batch timing out, and there are pending requests that were failing due to an internal failure (like
InternalServiceError
), the batch status will beFailed
. If there are no such failing request, the batch status will beTimedOut
. - TimedOut
- The simulation batch job timed out.
startSimulationJobBatchResponse_tags :: Lens' StartSimulationJobBatchResponse (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to the deployment job batch.
startSimulationJobBatchResponse_httpStatus :: Lens' StartSimulationJobBatchResponse Int Source #
The response's http status code.