Skip to content

Commit 8104105

Browse files
Update generated code (#1601)
* update generated code * Disable tests using fakesqs * Update SQS test to be compatible with JSON API --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent 7837a02 commit 8104105

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

CHANGELOG.md

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

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: TODO
8+
59
### Changed
610

711
- Allow passing explicit null values for optional fields of input objects

src/Exception/TaskDoesNotExistException.php

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

55
use AsyncAws\Core\Exception\Http\ClientException;
66

7+
/**
8+
* The activity does not exist.
9+
*/
710
final class TaskDoesNotExistException extends ClientException
811
{
912
}

src/Exception/TaskTimedOutException.php

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

55
use AsyncAws\Core\Exception\Http\ClientException;
66

7+
/**
8+
* The task token has either expired or the task associated with the token has already been closed.
9+
*/
710
final class TaskTimedOutException extends ClientException
811
{
912
}

src/Input/StartExecutionInput.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ final class StartExecutionInput extends Input
4747
* machine for 90 days. For more information, see Limits Related to State Machine Executions [^1] in the *Step Functions
4848
* Developer Guide*.
4949
*
50+
* If you don't provide a name for the execution, Step Functions automatically generates a universally unique identifier
51+
* (UUID) as the execution name.
52+
*
5053
* A name must *not* contain:
5154
*
5255
* - white space

src/StepFunctionsClient.php

Lines changed: 14 additions & 11 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 [^1] pattern to report that the task identified by the
38-
* `taskToken` failed.
37+
* Used by activity workers, Task states using the callback [^1] pattern, and optionally Task states using the job run
38+
* [^2] pattern to report that the task identified by the `taskToken` failed.
3939
*
4040
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
41+
* [^2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
4142
*
4243
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskFailure.html
4344
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtaskfailure
@@ -66,20 +67,21 @@ public function sendTaskFailure($input): SendTaskFailureOutput
6667
}
6768

6869
/**
69-
* Used by activity workers and task states using the callback [^1] pattern to report to Step Functions that the task
70-
* represented by the specified `taskToken` is still making progress. This action resets the `Heartbeat` clock. The
71-
* `Heartbeat` threshold is specified in the state machine's Amazon States Language definition (`HeartbeatSeconds`).
72-
* This action does not in itself create an event in the execution history. However, if the task times out, the
73-
* execution history contains an `ActivityTimedOut` entry for activities, or a `TaskTimedOut` entry for for tasks using
74-
* the job run [^2] or callback [^3] pattern.
70+
* Used by activity workers and Task states using the callback [^1] pattern, and optionally Task states using the job
71+
* run [^2] pattern to report to Step Functions that the task represented by the specified `taskToken` is still making
72+
* progress. This action resets the `Heartbeat` clock. The `Heartbeat` threshold is specified in the state machine's
73+
* Amazon States Language definition (`HeartbeatSeconds`). This action does not in itself create an event in the
74+
* execution history. However, if the task times out, the execution history contains an `ActivityTimedOut` entry for
75+
* activities, or a `TaskTimedOut` entry for tasks using the job run [^3] or callback [^4] pattern.
7576
*
7677
* > The `Timeout` of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed
7778
* > duration, regardless of the number of SendTaskHeartbeat requests received. Use `HeartbeatSeconds` to configure the
7879
* > timeout interval for heartbeats.
7980
*
8081
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
8182
* [^2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
82-
* [^3]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
83+
* [^3]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
84+
* [^4]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
8385
*
8486
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskHeartbeat.html
8587
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtaskheartbeat
@@ -106,10 +108,11 @@ public function sendTaskHeartbeat($input): SendTaskHeartbeatOutput
106108
}
107109

108110
/**
109-
* Used by activity workers and task states using the callback [^1] pattern to report that the task identified by the
110-
* `taskToken` completed successfully.
111+
* Used by activity workers, Task states using the callback [^1] pattern, and optionally Task states using the job run
112+
* [^2] pattern to report that the task identified by the `taskToken` completed successfully.
111113
*
112114
* [^1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
115+
* [^2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
113116
*
114117
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_SendTaskSuccess.html
115118
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-states-2016-11-23.html#sendtasksuccess

0 commit comments

Comments
 (0)