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 |
Starts a Synchronous Express state machine execution.
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' {
- inputDetails :: Maybe CloudWatchEventsExecutionDataDetails
- error :: Maybe (Sensitive Text)
- input :: Maybe (Sensitive Text)
- cause :: Maybe (Sensitive Text)
- name :: Maybe Text
- stateMachineArn :: Maybe Text
- output :: Maybe (Sensitive Text)
- outputDetails :: Maybe CloudWatchEventsExecutionDataDetails
- traceHeader :: Maybe Text
- billingDetails :: Maybe BillingDetails
- httpStatus :: Int
- executionArn :: Text
- startDate :: POSIX
- stopDate :: POSIX
- status :: SyncExecutionStatus
- newStartSyncExecutionResponse :: Int -> Text -> UTCTime -> UTCTime -> SyncExecutionStatus -> StartSyncExecutionResponse
- startSyncExecutionResponse_inputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails)
- startSyncExecutionResponse_error :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_input :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_cause :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_name :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_stateMachineArn :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_output :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_outputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails)
- startSyncExecutionResponse_traceHeader :: Lens' StartSyncExecutionResponse (Maybe Text)
- startSyncExecutionResponse_billingDetails :: Lens' StartSyncExecutionResponse (Maybe BillingDetails)
- 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:
$sel:input: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.
$sel:name:StartSyncExecution'
, startSyncExecution_name
- The name of the execution.
$sel:traceHeader:StartSyncExecution'
, startSyncExecution_traceHeader
- Passes the AWS X-Ray trace header. The trace header can also be passed
in the request payload.
$sel:stateMachineArn: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 AWS 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:inputDetails:StartSyncExecutionResponse'
, startSyncExecutionResponse_inputDetails
- Undocumented member.
$sel:error:StartSyncExecutionResponse'
, startSyncExecutionResponse_error
- The error code of the failure.
$sel:input: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.
$sel:cause:StartSyncExecutionResponse'
, startSyncExecutionResponse_cause
- A more detailed explanation of the cause of the failure.
$sel:name:StartSyncExecution'
, startSyncExecutionResponse_name
- The name of the execution.
$sel:stateMachineArn:StartSyncExecution'
, startSyncExecutionResponse_stateMachineArn
- The Amazon Resource Name (ARN) that identifies the state machine.
$sel:output: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.
$sel:outputDetails:StartSyncExecutionResponse'
, startSyncExecutionResponse_outputDetails
- Undocumented member.
$sel:traceHeader:StartSyncExecution'
, startSyncExecutionResponse_traceHeader
- The AWS X-Ray trace header that was passed to the execution.
$sel:billingDetails:StartSyncExecutionResponse'
, startSyncExecutionResponse_billingDetails
- An object that describes workflow billing details, including billed
duration and memory use.
$sel:httpStatus:StartSyncExecutionResponse'
, startSyncExecutionResponse_httpStatus
- The response's http status code.
$sel:executionArn:StartSyncExecutionResponse'
, startSyncExecutionResponse_executionArn
- The Amazon Resource Name (ARN) that identifies the execution.
$sel:startDate:StartSyncExecutionResponse'
, startSyncExecutionResponse_startDate
- The date the execution is started.
$sel:stopDate:StartSyncExecutionResponse'
, startSyncExecutionResponse_stopDate
- If the execution has already ended, the date the execution stopped.
$sel:status:StartSyncExecutionResponse'
, startSyncExecutionResponse_status
- The current status of the execution.
Response Lenses
startSyncExecutionResponse_inputDetails :: Lens' StartSyncExecutionResponse (Maybe CloudWatchEventsExecutionDataDetails) Source #
Undocumented member.
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_cause :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
A more detailed explanation of the cause of the failure.
startSyncExecutionResponse_name :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The name of the execution.
startSyncExecutionResponse_stateMachineArn :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) that identifies the state machine.
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_traceHeader :: Lens' StartSyncExecutionResponse (Maybe Text) Source #
The AWS X-Ray trace header that was passed to the execution.
startSyncExecutionResponse_billingDetails :: Lens' StartSyncExecutionResponse (Maybe BillingDetails) Source #
An object that describes workflow billing details, including billed duration and memory use.
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.