SfnClient Class
(QtAws::SFN::SfnClient)The SfnClient class provides access to the AWS Step Functions ( SFN) service. More...
| Header: | #include <SfnClient> |
| Inherits: | QtAws::Core::AwsAbstractClient |
Public Functions
| SfnClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0) | |
| SfnClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0) |
- 12 public functions inherited from QtAws::Core::AwsAbstractClient
Public Slots
| CreateActivityResponse * | createActivity(const CreateActivityRequest &request) |
| CreateStateMachineResponse * | createStateMachine(const CreateStateMachineRequest &request) |
| DeleteActivityResponse * | deleteActivity(const DeleteActivityRequest &request) |
| DeleteStateMachineResponse * | deleteStateMachine(const DeleteStateMachineRequest &request) |
| DescribeActivityResponse * | describeActivity(const DescribeActivityRequest &request) |
| DescribeExecutionResponse * | describeExecution(const DescribeExecutionRequest &request) |
| DescribeStateMachineResponse * | describeStateMachine(const DescribeStateMachineRequest &request) |
| DescribeStateMachineForExecutionResponse * | describeStateMachineForExecution(const DescribeStateMachineForExecutionRequest &request) |
| GetActivityTaskResponse * | getActivityTask(const GetActivityTaskRequest &request) |
| GetExecutionHistoryResponse * | getExecutionHistory(const GetExecutionHistoryRequest &request) |
| ListActivitiesResponse * | listActivities(const ListActivitiesRequest &request) |
| ListExecutionsResponse * | listExecutions(const ListExecutionsRequest &request) |
| ListStateMachinesResponse * | listStateMachines(const ListStateMachinesRequest &request) |
| SendTaskFailureResponse * | sendTaskFailure(const SendTaskFailureRequest &request) |
| SendTaskHeartbeatResponse * | sendTaskHeartbeat(const SendTaskHeartbeatRequest &request) |
| SendTaskSuccessResponse * | sendTaskSuccess(const SendTaskSuccessRequest &request) |
| StartExecutionResponse * | startExecution(const StartExecutionRequest &request) |
| StopExecutionResponse * | stopExecution(const StopExecutionRequest &request) |
| UpdateStateMachineResponse * | updateStateMachine(const UpdateStateMachineRequest &request) |
Additional Inherited Members
- 2 protected functions inherited from QtAws::Core::AwsAbstractClient
Detailed Description
The SfnClient class provides access to the AWS Step Functions ( SFN) service.
<fullname>AWS Step Functions</fullname>
AWS Step Functions is a service that lets you coordinate the components of distributed applications and microservices using visual
workflows>
You can use Step Functions to build applications from individual components, each of which performs a discrete function, or <i>task</i>, allowing you to scale and change applications quickly. Step Functions provides a console that helps visualize the components of your application as a series of steps. Step Functions automatically triggers and tracks each step, and retries steps when there are errors, so your application executes predictably and in the right order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any
issues>
Step Functions manages operations and underlying infrastructure to ensure your application is available at any scale. You can run tasks on AWS, your own servers, or any system that has access to AWS. You can access and use Step Functions using the console, the AWS SDKs, or an HTTP API. For more information about Step Functions, see the <i> <a href="http://docs.aws.amazon.com/step-functions/latest/dg/welcome.html">AWS Step Functions Developer Guide</a>
Member Function Documentation
SfnClient::SfnClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)
Constructs a SfnClient object.
The new client object will region, credentials, and manager for network operations.
The new object will be owned by parent, if set.
SfnClient::SfnClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)
This function overloads SfnClient().
This overload allows the caller to specify the specific endpoint to send requests to. Typically, it is easier to use the alternative constructor, which allows the caller to specify an AWS region instead, in which case this client will determine the correct endpoint for the given region automatically (via AwsEndpoint::getEndpoint).
See also QtAws::Core::AwsEndpoint::getEndpoint.
[slot] CreateActivityResponse *SfnClient::createActivity(const CreateActivityRequest &request)
Sends request to the SfnClient service, and returns a pointer to an CreateActivityResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Creates an activity. An activity is a task which you write in any programming language and host on any machine which has access to AWS Step Functions. Activities must poll Step Functions using the <code>GetActivityTask</code> API action and respond using <code>SendTask*</code> API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the
[slot] CreateStateMachineResponse *SfnClient::createStateMachine(const CreateStateMachineRequest &request)
Sends request to the SfnClient service, and returns a pointer to an CreateStateMachineResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Creates a state machine. A state machine consists of a collection of states that can do work (<code>Task</code> states), determine to which states to transition next (<code>Choice</code> states), stop an execution with an error (<code>Fail</code> states), and so on. State machines are specified using a JSON-based, structured
[slot] DeleteActivityResponse *SfnClient::deleteActivity(const DeleteActivityRequest &request)
Sends request to the SfnClient service, and returns a pointer to an DeleteActivityResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Deletes an
[slot] DeleteStateMachineResponse *SfnClient::deleteStateMachine(const DeleteStateMachineRequest &request)
Sends request to the SfnClient service, and returns a pointer to an DeleteStateMachineResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Deletes a state machine. This is an asynchronous operation: It sets the state machine's status to <code>DELETING</code> and begins the deletion process. Each state machine execution is deleted the next time it makes a state
transition> <note>
The state machine itself is deleted after all executions are completed or
[slot] DescribeActivityResponse *SfnClient::describeActivity(const DescribeActivityRequest &request)
Sends request to the SfnClient service, and returns a pointer to an DescribeActivityResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Describes an
[slot] DescribeExecutionResponse *SfnClient::describeExecution(const DescribeExecutionRequest &request)
Sends request to the SfnClient service, and returns a pointer to an DescribeExecutionResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Describes an
[slot] DescribeStateMachineResponse *SfnClient::describeStateMachine(const DescribeStateMachineRequest &request)
Sends request to the SfnClient service, and returns a pointer to an DescribeStateMachineResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Describes a state
[slot] DescribeStateMachineForExecutionResponse *SfnClient::describeStateMachineForExecution(const DescribeStateMachineForExecutionRequest &request)
Sends request to the SfnClient service, and returns a pointer to an DescribeStateMachineForExecutionResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Describes the state machine associated with a specific
[slot] GetActivityTaskResponse *SfnClient::getActivityTask(const GetActivityTaskRequest &request)
Sends request to the SfnClient service, and returns a pointer to an GetActivityTaskResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine. This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available (i.e. an execution of a task of this type is needed.) The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns a <code>taskToken</code> with a null
string> <b>
Workers should set their client side socket timeout to at least 65 seconds (5 seconds higher than the maximum time the service may hold the poll
[slot] GetExecutionHistoryResponse *SfnClient::getExecutionHistory(const GetExecutionHistoryRequest &request)
Sends request to the SfnClient service, and returns a pointer to an GetExecutionHistoryResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the <code>timeStamp</code> of the events. Use the <code>reverseOrder</code> parameter to get the latest events
first>
If a <code>nextToken</code> is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextToken</code>. Keep all other arguments
[slot] ListActivitiesResponse *SfnClient::listActivities(const ListActivitiesRequest &request)
Sends request to the SfnClient service, and returns a pointer to an ListActivitiesResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Lists the existing
activities>
If a <code>nextToken</code> is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextToken</code>. Keep all other arguments
[slot] ListExecutionsResponse *SfnClient::listExecutions(const ListExecutionsRequest &request)
Sends request to the SfnClient service, and returns a pointer to an ListExecutionsResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Lists the executions of a state machine that meet the filtering
criteria>
If a <code>nextToken</code> is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextToken</code>. Keep all other arguments
[slot] ListStateMachinesResponse *SfnClient::listStateMachines(const ListStateMachinesRequest &request)
Sends request to the SfnClient service, and returns a pointer to an ListStateMachinesResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Lists the existing state
machines>
If a <code>nextToken</code> is returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in <code>nextToken</code>. Keep all other arguments
[slot] SendTaskFailureResponse *SfnClient::sendTaskFailure(const SendTaskFailureRequest &request)
Sends request to the SfnClient service, and returns a pointer to an SendTaskFailureResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Used by workers to report that the task identified by the <code>taskToken</code>
[slot] SendTaskHeartbeatResponse *SfnClient::sendTaskHeartbeat(const SendTaskHeartbeatRequest &request)
Sends request to the SfnClient service, and returns a pointer to an SendTaskHeartbeatResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Used by workers to report to the service that the task represented by the specified <code>taskToken</code> is still making progress. This action resets the <code>Heartbeat</code> clock. The <code>Heartbeat</code> threshold is specified in the state machine's Amazon States Language definition. This action does not in itself create an event in the execution history. However, if the task times out, the execution history contains an <code>ActivityTimedOut</code>
event> <note>
The <code>Timeout</code> of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of <a>SendTaskHeartbeat</a> requests
received> </note> <note>
This operation is only useful for long-lived tasks to report the liveliness of the
[slot] SendTaskSuccessResponse *SfnClient::sendTaskSuccess(const SendTaskSuccessRequest &request)
Sends request to the SfnClient service, and returns a pointer to an SendTaskSuccessResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Used by workers to report that the task identified by the <code>taskToken</code> completed
[slot] StartExecutionResponse *SfnClient::startExecution(const StartExecutionRequest &request)
Sends request to the SfnClient service, and returns a pointer to an StartExecutionResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Starts a state machine
[slot] StopExecutionResponse *SfnClient::stopExecution(const StopExecutionRequest &request)
Sends request to the SfnClient service, and returns a pointer to an StopExecutionResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Stops an
[slot] UpdateStateMachineResponse *SfnClient::updateStateMachine(const UpdateStateMachineRequest &request)
Sends request to the SfnClient service, and returns a pointer to an UpdateStateMachineResponse object to track the result.
Note: The caller is to take responsbility for the resulting pointer.
Updates an existing state machine by modifying its <code>definition</code> and/or <code>roleArn</code>. Running executions will continue to use the previous <code>definition</code> and
<code>roleArn</code>> <note>
All <code>StartExecution</code> calls within a few seconds will use the updated <code>definition</code> and <code>roleArn</code>. Executions started immediately after calling <code>UpdateStateMachine</code> may use the previous state machine <code>definition</code> and <code>roleArn</code>. You must include at least one of <code>definition</code> or <code>roleArn</code> or you will receive a <code>MissingRequiredParameter</code>
© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.