Skip to content

Commit 95543bf

Browse files
authored
Generates proper documentation for classes and properties (#1418)
1 parent c3db25c commit 95543bf

File tree

6 files changed

+58
-21
lines changed

6 files changed

+58
-21
lines changed

src/Enum/ValidationExceptionReason.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace AsyncAws\StepFunctions\Enum;
44

5-
/**
6-
* The input does not satisfy the constraints specified by an Amazon Web Services service.
7-
*/
85
final class ValidationExceptionReason
96
{
107
public const API_DOES_NOT_SUPPORT_LABELED_ARNS = 'API_DOES_NOT_SUPPORT_LABELED_ARNS';

src/Input/SendTaskFailureInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ final class SendTaskFailureInput extends Input
1111
{
1212
/**
1313
* The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker,
14-
* or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
14+
* or in the context object [^1] when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
1515
*
16-
* @see https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html
16+
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html
1717
*
1818
* @required
1919
*

src/Input/SendTaskHeartbeatInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ final class SendTaskHeartbeatInput extends Input
1111
{
1212
/**
1313
* The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker,
14-
* or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
14+
* or in the context object [^1] when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
1515
*
16-
* @see https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html
16+
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html
1717
*
1818
* @required
1919
*

src/Input/SendTaskSuccessInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ final class SendTaskSuccessInput extends Input
1111
{
1212
/**
1313
* The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker,
14-
* or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
14+
* or in the context object [^1] when a workflow enters a task state. See GetActivityTaskOutput$taskToken.
1515
*
16-
* @see https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html
16+
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html
1717
*
1818
* @required
1919
*

src/Input/StartExecutionInput.php

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,24 @@ final class StartExecutionInput extends Input
2020

2121
/**
2222
* The name of the execution. This name must be unique for your Amazon Web Services account, region, and state machine
23-
* for 90 days. For more information, see Limits Related to State Machine Executions in the *Step Functions Developer
24-
* Guide*.
23+
* for 90 days. For more information, see Limits Related to State Machine Executions [^1] in the *Step Functions
24+
* Developer Guide*.
2525
*
26-
* @see https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions
26+
* A name must *not* contain:
27+
*
28+
* - white space
29+
* -
30+
* - brackets `< > { } [ ]`
31+
* -
32+
* - wildcard characters `? *`
33+
* -
34+
* - special characters `" # % \ ^ | ~ ` $ & , ; : /`
35+
* -
36+
* - control characters (`U+0000-001F`, `U+007F-009F`)
37+
*
38+
* To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
39+
*
40+
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions
2741
*
2842
* @var string|null
2943
*/
@@ -32,6 +46,12 @@ final class StartExecutionInput extends Input
3246
/**
3347
* The string that contains the JSON input data for the execution, for example:.
3448
*
49+
* `"input": "{\"first_name\" : \"test\"}"`
50+
*
51+
* > If you don't include any JSON input data, you still must include the two braces, for example: `"input": "{}"`
52+
*
53+
* Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
54+
*
3555
* @var string|null
3656
*/
3757
private $input;

src/StepFunctionsClient.php

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
class StepFunctionsClient extends AbstractApi
3535
{
3636
/**
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
3838
* `taskToken` failed.
3939
*
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+
*
4142
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskFailure.html
4243
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtaskfailure
4344
*
@@ -66,16 +67,21 @@ public function sendTaskFailure($input): SendTaskFailureOutput
6667
}
6768

6869
/**
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
7071
* represented by the specified `taskToken` is still making progress. This action resets the `Heartbeat` clock. The
7172
* `Heartbeat` threshold is specified in the state machine's Amazon States Language definition (`HeartbeatSeconds`).
7273
* This action does not in itself create an event in the execution history. However, if the task times out, the
7374
* 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
7584
*
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
7985
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskHeartbeat.html
8086
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtaskheartbeat
8187
*
@@ -102,10 +108,11 @@ public function sendTaskHeartbeat($input): SendTaskHeartbeatOutput
102108
}
103109

104110
/**
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
106112
* `taskToken` completed successfully.
107113
*
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+
*
109116
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskSuccess.html
110117
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtasksuccess
111118
*
@@ -138,6 +145,17 @@ public function sendTaskSuccess($input): SendTaskSuccessOutput
138145
* Starts a state machine execution. If the given state machine Amazon Resource Name (ARN) is a qualified state machine
139146
* ARN, it will fail with ValidationException.
140147
*
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+
*
141159
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html
142160
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#startexecution
143161
*
@@ -179,6 +197,8 @@ public function startExecution($input): StartExecutionOutput
179197
/**
180198
* Stops an execution.
181199
*
200+
* This API action is not supported by `EXPRESS` state machines.
201+
*
182202
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_StopExecution.html
183203
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#stopexecution
184204
*

0 commit comments

Comments
 (0)