34
34
class StepFunctionsClient extends AbstractApi
35
35
{
36
36
/**
37
- * Used by activity workers and task states using the callback pattern to report that the task identified by the
37
+ * Used by activity workers and task states using the callback [^1] pattern to report that the task identified by the
38
38
* `taskToken` failed.
39
39
*
40
- * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
40
+ * [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
41
+ *
41
42
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskFailure.html
42
43
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtaskfailure
43
44
*
@@ -66,16 +67,21 @@ public function sendTaskFailure($input): SendTaskFailureOutput
66
67
}
67
68
68
69
/**
69
- * Used by activity workers and task states using the callback pattern to report to Step Functions that the task
70
+ * Used by activity workers and task states using the callback [^1] pattern to report to Step Functions that the task
70
71
* represented by the specified `taskToken` is still making progress. This action resets the `Heartbeat` clock. The
71
72
* `Heartbeat` threshold is specified in the state machine's Amazon States Language definition (`HeartbeatSeconds`).
72
73
* This action does not in itself create an event in the execution history. However, if the task times out, the
73
74
* execution history contains an `ActivityTimedOut` entry for activities, or a `TaskTimedOut` entry for for tasks using
74
- * the job run or callback pattern.
75
+ * the job run [^2] or callback [^3] pattern.
76
+ *
77
+ * > The `Timeout` of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed
78
+ * > duration, regardless of the number of SendTaskHeartbeat requests received. Use `HeartbeatSeconds` to configure the
79
+ * > timeout interval for heartbeats.
80
+ *
81
+ * [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
82
+ * [^2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
83
+ * [^3]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
75
84
*
76
- * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
77
- * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
78
- * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
79
85
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskHeartbeat.html
80
86
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtaskheartbeat
81
87
*
@@ -102,10 +108,11 @@ public function sendTaskHeartbeat($input): SendTaskHeartbeatOutput
102
108
}
103
109
104
110
/**
105
- * Used by activity workers and task states using the callback pattern to report that the task identified by the
111
+ * Used by activity workers and task states using the callback [^1] pattern to report that the task identified by the
106
112
* `taskToken` completed successfully.
107
113
*
108
- * @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
114
+ * [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
115
+ *
109
116
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskSuccess.html
110
117
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtasksuccess
111
118
*
@@ -138,6 +145,17 @@ public function sendTaskSuccess($input): SendTaskSuccessOutput
138
145
* Starts a state machine execution. If the given state machine Amazon Resource Name (ARN) is a qualified state machine
139
146
* ARN, it will fail with ValidationException.
140
147
*
148
+ * A qualified state machine ARN refers to a *Distributed Map state* defined within a state machine. For example, the
149
+ * qualified state machine ARN `arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel`
150
+ * refers to a *Distributed Map state* with a label `mapStateLabel` in the state machine named `stateMachineName`.
151
+ *
152
+ * > `StartExecution` is idempotent for `STANDARD` workflows. For a `STANDARD` workflow, if `StartExecution` is called
153
+ * > with the same name and input as a running execution, the call will succeed and return the same response as the
154
+ * > original request. If the execution is closed or if the input is different, it will return a `400
155
+ * > ExecutionAlreadyExists` error. Names can be reused after 90 days.
156
+ * >
157
+ * > `StartExecution` is not idempotent for `EXPRESS` workflows.
158
+ *
141
159
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html
142
160
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#startexecution
143
161
*
@@ -179,6 +197,8 @@ public function startExecution($input): StartExecutionOutput
179
197
/**
180
198
* Stops an execution.
181
199
*
200
+ * This API action is not supported by `EXPRESS` state machines.
201
+ *
182
202
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_StopExecution.html
183
203
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#stopexecution
184
204
*
0 commit comments