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 |
Submits calculations for execution within a session. You can supply the code to run as an inline code block within the request or as an Amazon S3 URL.
Synopsis
- data StartCalculationExecution = StartCalculationExecution' {}
- newStartCalculationExecution :: Text -> StartCalculationExecution
- startCalculationExecution_calculationConfiguration :: Lens' StartCalculationExecution (Maybe CalculationConfiguration)
- startCalculationExecution_clientRequestToken :: Lens' StartCalculationExecution (Maybe Text)
- startCalculationExecution_codeBlock :: Lens' StartCalculationExecution (Maybe Text)
- startCalculationExecution_description :: Lens' StartCalculationExecution (Maybe Text)
- startCalculationExecution_sessionId :: Lens' StartCalculationExecution Text
- data StartCalculationExecutionResponse = StartCalculationExecutionResponse' {}
- newStartCalculationExecutionResponse :: Int -> StartCalculationExecutionResponse
- startCalculationExecutionResponse_calculationExecutionId :: Lens' StartCalculationExecutionResponse (Maybe Text)
- startCalculationExecutionResponse_state :: Lens' StartCalculationExecutionResponse (Maybe CalculationExecutionState)
- startCalculationExecutionResponse_httpStatus :: Lens' StartCalculationExecutionResponse Int
Creating a Request
data StartCalculationExecution Source #
See: newStartCalculationExecution
smart constructor.
StartCalculationExecution' | |
|
Instances
newStartCalculationExecution Source #
Create a value of StartCalculationExecution
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:calculationConfiguration:StartCalculationExecution'
, startCalculationExecution_calculationConfiguration
- Contains configuration information for the calculation.
$sel:clientRequestToken:StartCalculationExecution'
, startCalculationExecution_clientRequestToken
- A unique case-sensitive string used to ensure the request to create the
calculation is idempotent (executes only once). If another
StartCalculationExecutionRequest
is received, the same response is
returned and another calculation is not created. If a parameter has
changed, an error is returned.
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
StartCalculationExecution
, startCalculationExecution_codeBlock
- A string that contains the code of the calculation.
StartCalculationExecution
, startCalculationExecution_description
- A description of the calculation.
StartCalculationExecution
, startCalculationExecution_sessionId
- The session ID.
Request Lenses
startCalculationExecution_calculationConfiguration :: Lens' StartCalculationExecution (Maybe CalculationConfiguration) Source #
Contains configuration information for the calculation.
startCalculationExecution_clientRequestToken :: Lens' StartCalculationExecution (Maybe Text) Source #
A unique case-sensitive string used to ensure the request to create the
calculation is idempotent (executes only once). If another
StartCalculationExecutionRequest
is received, the same response is
returned and another calculation is not created. If a parameter has
changed, an error is returned.
This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for users. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
startCalculationExecution_codeBlock :: Lens' StartCalculationExecution (Maybe Text) Source #
A string that contains the code of the calculation.
startCalculationExecution_description :: Lens' StartCalculationExecution (Maybe Text) Source #
A description of the calculation.
startCalculationExecution_sessionId :: Lens' StartCalculationExecution Text Source #
The session ID.
Destructuring the Response
data StartCalculationExecutionResponse Source #
See: newStartCalculationExecutionResponse
smart constructor.
StartCalculationExecutionResponse' | |
|
Instances
newStartCalculationExecutionResponse Source #
Create a value of StartCalculationExecutionResponse
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:
StartCalculationExecutionResponse
, startCalculationExecutionResponse_calculationExecutionId
- The calculation execution UUID.
StartCalculationExecutionResponse
, startCalculationExecutionResponse_state
- CREATING
- The calculation is in the process of being created.
CREATED
- The calculation has been created and is ready to run.
QUEUED
- The calculation has been queued for processing.
RUNNING
- The calculation is running.
CANCELING
- A request to cancel the calculation has been received and
the system is working to stop it.
CANCELED
- The calculation is no longer running as the result of a
cancel request.
COMPLETED
- The calculation has completed without error.
FAILED
- The calculation failed and is no longer running.
$sel:httpStatus:StartCalculationExecutionResponse'
, startCalculationExecutionResponse_httpStatus
- The response's http status code.
Response Lenses
startCalculationExecutionResponse_calculationExecutionId :: Lens' StartCalculationExecutionResponse (Maybe Text) Source #
The calculation execution UUID.
startCalculationExecutionResponse_state :: Lens' StartCalculationExecutionResponse (Maybe CalculationExecutionState) Source #
CREATING
- The calculation is in the process of being created.
CREATED
- The calculation has been created and is ready to run.
QUEUED
- The calculation has been queued for processing.
RUNNING
- The calculation is running.
CANCELING
- A request to cancel the calculation has been received and
the system is working to stop it.
CANCELED
- The calculation is no longer running as the result of a
cancel request.
COMPLETED
- The calculation has completed without error.
FAILED
- The calculation failed and is no longer running.
startCalculationExecutionResponse_httpStatus :: Lens' StartCalculationExecutionResponse Int Source #
The response's http status code.