Trait rusoto_stepfunctions::StepFunctions[][src]

pub trait StepFunctions {
    fn create_activity(
        &self,
        input: CreateActivityInput
    ) -> RusotoFuture<CreateActivityOutput, CreateActivityError>;
fn create_state_machine(
        &self,
        input: CreateStateMachineInput
    ) -> RusotoFuture<CreateStateMachineOutput, CreateStateMachineError>;
fn delete_activity(
        &self,
        input: DeleteActivityInput
    ) -> RusotoFuture<DeleteActivityOutput, DeleteActivityError>;
fn delete_state_machine(
        &self,
        input: DeleteStateMachineInput
    ) -> RusotoFuture<DeleteStateMachineOutput, DeleteStateMachineError>;
fn describe_activity(
        &self,
        input: DescribeActivityInput
    ) -> RusotoFuture<DescribeActivityOutput, DescribeActivityError>;
fn describe_execution(
        &self,
        input: DescribeExecutionInput
    ) -> RusotoFuture<DescribeExecutionOutput, DescribeExecutionError>;
fn describe_state_machine(
        &self,
        input: DescribeStateMachineInput
    ) -> RusotoFuture<DescribeStateMachineOutput, DescribeStateMachineError>;
fn describe_state_machine_for_execution(
        &self,
        input: DescribeStateMachineForExecutionInput
    ) -> RusotoFuture<DescribeStateMachineForExecutionOutput, DescribeStateMachineForExecutionError>;
fn get_activity_task(
        &self,
        input: GetActivityTaskInput
    ) -> RusotoFuture<GetActivityTaskOutput, GetActivityTaskError>;
fn get_execution_history(
        &self,
        input: GetExecutionHistoryInput
    ) -> RusotoFuture<GetExecutionHistoryOutput, GetExecutionHistoryError>;
fn list_activities(
        &self,
        input: ListActivitiesInput
    ) -> RusotoFuture<ListActivitiesOutput, ListActivitiesError>;
fn list_executions(
        &self,
        input: ListExecutionsInput
    ) -> RusotoFuture<ListExecutionsOutput, ListExecutionsError>;
fn list_state_machines(
        &self,
        input: ListStateMachinesInput
    ) -> RusotoFuture<ListStateMachinesOutput, ListStateMachinesError>;
fn send_task_failure(
        &self,
        input: SendTaskFailureInput
    ) -> RusotoFuture<SendTaskFailureOutput, SendTaskFailureError>;
fn send_task_heartbeat(
        &self,
        input: SendTaskHeartbeatInput
    ) -> RusotoFuture<SendTaskHeartbeatOutput, SendTaskHeartbeatError>;
fn send_task_success(
        &self,
        input: SendTaskSuccessInput
    ) -> RusotoFuture<SendTaskSuccessOutput, SendTaskSuccessError>;
fn start_execution(
        &self,
        input: StartExecutionInput
    ) -> RusotoFuture<StartExecutionOutput, StartExecutionError>;
fn stop_execution(
        &self,
        input: StopExecutionInput
    ) -> RusotoFuture<StopExecutionOutput, StopExecutionError>;
fn update_state_machine(
        &self,
        input: UpdateStateMachineInput
    ) -> RusotoFuture<UpdateStateMachineOutput, UpdateStateMachineError>; }

Trait representing the capabilities of the AWS SFN API. AWS SFN clients implement this trait.

Required Methods

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 GetActivityTask API action and respond using SendTask* 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 activity.

Creates a state machine. A state machine consists of a collection of states that can do work (Task states), determine to which states to transition next (Choice states), stop an execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language.

Deletes an activity.

Deletes a state machine. This is an asynchronous operation: It sets the state machine's status to DELETING and begins the deletion process. Each state machine execution is deleted the next time it makes a state transition.

The state machine itself is deleted after all executions are completed or deleted.

Describes an activity.

Describes an execution.

Describes a state machine.

Describes the state machine associated with a specific execution.

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 taskToken with a null string.

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 request).

Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first.

If a nextToken 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 nextToken. Keep all other arguments unchanged.

Lists the existing activities.

If a nextToken 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 nextToken. Keep all other arguments unchanged.

Lists the executions of a state machine that meet the filtering criteria.

If a nextToken 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 nextToken. Keep all other arguments unchanged.

Lists the existing state machines.

If a nextToken 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 nextToken. Keep all other arguments unchanged.

Used by workers to report that the task identified by the taskToken failed.

Used by workers to report to the service that the task represented by the specified taskToken is still making progress. This action resets the Heartbeat clock. The Heartbeat 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 ActivityTimedOut event.

The Timeout of a task, defined in the state machine's Amazon States Language definition, is its maximum allowed duration, regardless of the number of SendTaskHeartbeat requests received.

This operation is only useful for long-lived tasks to report the liveliness of the task.

Used by workers to report that the task identified by the taskToken completed successfully.

Starts a state machine execution.

Stops an execution.

Updates an existing state machine by modifying its definition and/or roleArn. Running executions will continue to use the previous definition and roleArn.

All StartExecution calls within a few seconds will use the updated definition and roleArn. Executions started immediately after calling UpdateStateMachine may use the previous state machine definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

Implementors