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 Synchronous Express state machine execution.
StartSyncExecution
is not available for STANDARD
workflows.
StartSyncExecution
will return a 200 OK
response, even if your
execution fails, because the status code in the API response doesn't
reflect function errors. Error codes are reserved for errors that
prevent your execution from running, such as permissions errors, limit
errors, or issues with your state machine code and configuration.
This API action isn't logged in CloudTrail.
Synopsis
- data StartSyncExecution = StartSyncExecution' {}
- newStartSyncExecution :: Text -> StartSyncExecution
- startSyncExecution_input :: Lens' StartSyncExecution (Maybe Text)
- startSyncExecution_name :: Lens' StartSyncExecution (Maybe Text)
- startSyncExecution_traceHeader :: Lens' StartSyncExecution (Maybe Text)
- startSyncExecution_stateMachineArn :: Lens' StartSyncExecution Text
- data StartSyncExecutionResponse = StartSyncExecutionResponse' {
- billingDetails :: Maybe BillingDetails
- cause :: Maybe (Sensitive Text)
- error :: Maybe (Sensitive Text)
- input :: Maybe (Sensitive Text)
- inputDetails :: Maybe CloudWatchEventsExecutionDataDetails
- name :: Maybe Text
- output :: Maybe (Sensitive Text)
- outputDetails :: Maybe CloudWatchEventsExecutionDataDetails
- stateMachineArn :: Maybe Text
- traceHeader :: Maybe Text
- httpStatus :: Int
- executionArn :: Text
- startDate :: POSIX
- stopDate :: POSIX
- status :: SyncExecutionStatus
- newStartSyncExecutionResponse :: Int -> Text -> UTCTime -> UTCTime -> SyncExecutionStatus -> StartSyncExecutionResponse
- startSyncExecutionResponse_billingDetails :: Lens' StartSyncExecutionResponse (Maybe BillingDetails)
- startSyncExecutionResponse_cause :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_error :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_input :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_inputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails)
- startSyncExecutionResponse_name :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_output :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_outputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails)
- startSyncExecutionResponse_stateMachineArn :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_traceHeader :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_httpStatus :: Lens' StartSyncExecutionResponse Int
- startSyncExecutionResponse_executionArn :: Lens' StartSyncExecutionResponse Text
- startSyncExecutionResponse_startDate :: Lens' StartSyncExecutionResponse UTCTime
- startSyncExecutionResponse_stopDate :: Lens' StartSyncExecutionResponse UTCTime
- startSyncExecutionResponse_status :: Lens' StartSyncExecutionResponse SyncExecutionStatus
Creating a Request
data StartSyncExecution Source #
See: newStartSyncExecution
smart constructor.
StartSyncExecution' | |
|
Instances
newStartSyncExecution Source #
Create a value of StartSyncExecution
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:
StartSyncExecution
, startSyncExecution_input
- The string that contains the JSON input data for the execution, for
example:
"input": "{\"first_name\" : \"test\"}"
If you don't include any JSON input data, you still must include the
two braces, for example: "input": "{}"
Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
StartSyncExecution
, startSyncExecution_name
- The name of the execution.
StartSyncExecution
, startSyncExecution_traceHeader
- Passes the X-Ray trace header. The trace header can also be passed in
the request payload.
StartSyncExecution
, startSyncExecution_stateMachineArn
- The Amazon Resource Name (ARN) of the state machine to execute.
Request Lenses
startSyncExecution_input :: Lens' StartSyncExecution (Maybe Text) Source #
The string that contains the JSON input data for the execution, for example:
"input": "{\"first_name\" : \"test\"}"
If you don't include any JSON input data, you still must include the
two braces, for example: "input": "{}"
Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
startSyncExecution_name :: Lens' StartSyncExecution (Maybe Text) Source #
The name of the execution.
startSyncExecution_traceHeader :: Lens' StartSyncExecution (Maybe Text) Source #
Passes the X-Ray trace header. The trace header can also be passed in the request payload.
startSyncExecution_stateMachineArn :: Lens' StartSyncExecution Text Source #
The Amazon Resource Name (ARN) of the state machine to execute.
Destructuring the Response
data StartSyncExecutionResponse Source #
See: newStartSyncExecutionResponse
smart constructor.
StartSyncExecutionResponse' | |
|
Instances
newStartSyncExecutionResponse Source #
:: Int | |
-> Text | |
-> UTCTime | |
-> UTCTime | |
-> SyncExecutionStatus | |
-> StartSyncExecutionResponse |
Create a value of StartSyncExecutionResponse
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:billingDetails:StartSyncExecutionResponse'
, startSyncExecutionResponse_billingDetails
- An object that describes workflow billing details, including billed
duration and memory use.
StartSyncExecutionResponse
, startSyncExecutionResponse_cause
- A more detailed explanation of the cause of the failure.
StartSyncExecutionResponse
, startSyncExecutionResponse_error
- The error code of the failure.
StartSyncExecution
, startSyncExecutionResponse_input
- The string that contains the JSON input data of the execution. Length
constraints apply to the payload size, and are expressed as bytes in
UTF-8 encoding.
StartSyncExecutionResponse
, startSyncExecutionResponse_inputDetails
- Undocumented member.
StartSyncExecution
, startSyncExecutionResponse_name
- The name of the execution.
StartSyncExecutionResponse
, startSyncExecutionResponse_output
- The JSON output data of the execution. Length constraints apply to the
payload size, and are expressed as bytes in UTF-8 encoding.
This field is set only if the execution succeeds. If the execution fails, this field is null.
StartSyncExecutionResponse
, startSyncExecutionResponse_outputDetails
- Undocumented member.
StartSyncExecution
, startSyncExecutionResponse_stateMachineArn
- The Amazon Resource Name (ARN) that identifies the state machine.
StartSyncExecution
, startSyncExecutionResponse_traceHeader
- The X-Ray trace header that was passed to the execution.
$sel:httpStatus:StartSyncExecutionResponse'
, startSyncExecutionResponse_httpStatus
- The response's http status code.
StartSyncExecutionResponse
, startSyncExecutionResponse_executionArn
- The Amazon Resource Name (ARN) that identifies the execution.
StartSyncExecutionResponse
, startSyncExecutionResponse_startDate
- The date the execution is started.
StartSyncExecutionResponse
, startSyncExecutionResponse_stopDate
- If the execution has already ended, the date the execution stopped.
StartSyncExecutionResponse
, startSyncExecutionResponse_status
- The current status of the execution.
Response Lenses
startSyncExecutionResponse_billingDetails :: Lens' StartSyncExecutionResponse (Maybe BillingDetails) Source #
An object that describes workflow billing details, including billed duration and memory use.
startSyncExecutionResponse_cause :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
A more detailed explanation of the cause of the failure.
startSyncExecutionResponse_error :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The error code of the failure.
startSyncExecutionResponse_input :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The string that contains the JSON input data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
startSyncExecutionResponse_inputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails) Source #
Undocumented member.
startSyncExecutionResponse_name :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The name of the execution.
startSyncExecutionResponse_output :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The JSON output data of the execution. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
This field is set only if the execution succeeds. If the execution fails, this field is null.
startSyncExecutionResponse_outputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails) Source #
Undocumented member.
startSyncExecutionResponse_stateMachineArn :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) that identifies the state machine.
startSyncExecutionResponse_traceHeader :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The X-Ray trace header that was passed to the execution.
startSyncExecutionResponse_httpStatus :: Lens' StartSyncExecutionResponse Int Source #
The response's http status code.
startSyncExecutionResponse_executionArn :: Lens' StartSyncExecutionResponse Text Source #
The Amazon Resource Name (ARN) that identifies the execution.
startSyncExecutionResponse_startDate :: Lens' StartSyncExecutionResponse UTCTime Source #
The date the execution is started.
startSyncExecutionResponse_stopDate :: Lens' StartSyncExecutionResponse UTCTime Source #
If the execution has already ended, the date the execution stopped.
startSyncExecutionResponse_status :: Lens' StartSyncExecutionResponse SyncExecutionStatus Source #
The current status of the execution.