paws.application.integration (version 0.5.0)

sfn: AWS Step Functions

Description

Step Functions

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 task, 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 Amazon Web Services, your own servers, or any system that has access to Amazon Web Services. You can access and use Step Functions using the console, the Amazon Web Services SDKs, or an HTTP API. For more information about Step Functions, see the Step Functions Developer Guide .

If you use the Step Functions API actions using Amazon Web Services SDK integrations, make sure the API actions are in camel case and parameter names are in Pascal case. For example, you could use Step Functions API action startSyncExecution and specify its parameter as StateMachineArn.

Usage

sfn(config = list(), credentials = list(), endpoint = NULL, region = NULL)

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Service syntax

svc <- sfn(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

create_activityCreates an activity
create_state_machineCreates a state machine
create_state_machine_aliasCreates an alias for a state machine that points to one or two versions of the same state machine
delete_activityDeletes an activity
delete_state_machineDeletes a state machine
delete_state_machine_aliasDeletes a state machine alias
delete_state_machine_versionDeletes a state machine version
describe_activityDescribes an activity
describe_executionProvides information about a state machine execution, such as the state machine associated with the execution, the execution input and output, and relevant execution metadata
describe_map_runProvides information about a Map Run's configuration, progress, and results
describe_state_machineProvides information about a state machine's definition, its IAM role Amazon Resource Name (ARN), and configuration
describe_state_machine_aliasReturns details about a state machine alias
describe_state_machine_for_executionProvides information about a state machine's definition, its execution role ARN, and configuration
get_activity_taskUsed by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine
get_execution_historyReturns the history of the specified execution as a list of events
list_activitiesLists the existing activities
list_executionsLists all executions of a state machine or a Map Run
list_map_runsLists all Map Runs that were started by a given state machine execution
list_state_machine_aliasesLists aliases for a specified state machine ARN
list_state_machinesLists the existing state machines
list_state_machine_versionsLists versions for the specified state machine Amazon Resource Name (ARN)
list_tags_for_resourceList tags for a given resource
publish_state_machine_versionCreates a version from the current revision of a state machine
redrive_executionRestarts unsuccessful executions of Standard workflows that didn't complete successfully in the last 14 days
send_task_failureUsed by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken failed
send_task_heartbeatUsed by activity workers and Task states using the callback pattern, and optionally Task states using the job run pattern to report to Step Functions that the task represented by the specified taskToken is still making progress
send_task_successUsed by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken completed successfully
start_executionStarts a state machine execution
start_sync_executionStarts a Synchronous Express state machine execution
stop_executionStops an execution
tag_resourceAdd a tag to a Step Functions resource
test_stateAccepts the definition of a single state and executes it
untag_resourceRemove a tag from a Step Functions resource
update_map_runUpdates an in-progress Map Run's configuration to include changes to the settings that control maximum concurrency and Map Run failure
update_state_machineUpdates an existing state machine by modifying its definition, roleArn, or loggingConfiguration
update_state_machine_aliasUpdates the configuration of an existing state machine alias by modifying its description or routingConfiguration

Examples

Run this code
if (FALSE) {
svc <- sfn()
svc$create_activity(
  Foo = 123
)
}

Run the code above in your browser using DataLab