

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Code examples for Step Functions using AWS SDKs
<a name="sfn_code_examples"></a>

The following code examples show you how to use AWS Step Functions with an AWS software development kit (SDK).

*Basics* are code examples that show you how to perform the essential operations within a service.

*Actions* are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.

*Scenarios* are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.

**More resources**
+  **[ Step Functions Developer Guide](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html)** – More information about Step Functions.
+ **[Step Functions API Reference](https://docs.aws.amazon.com/step-functions/latest/apireference/Welcome.html)** – Details about all available Step Functions actions.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23step-functions)** – Code examples that you can filter by category or full-text search.
+ **[AWS SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.

**Contents**
+ [Basics](sfn_code_examples_basics.md)
  + [Hello Step Functions](sfn_example_sfn_Hello_section.md)
  + [Learn the basics](sfn_example_sfn_Scenario_GetStartedStateMachines_section.md)
  + [Actions](sfn_code_examples_actions.md)
    + [`CreateActivity`](sfn_example_sfn_CreateActivity_section.md)
    + [`CreateStateMachine`](sfn_example_sfn_CreateStateMachine_section.md)
    + [`DeleteActivity`](sfn_example_sfn_DeleteActivity_section.md)
    + [`DeleteStateMachine`](sfn_example_sfn_DeleteStateMachine_section.md)
    + [`DescribeExecution`](sfn_example_sfn_DescribeExecution_section.md)
    + [`DescribeStateMachine`](sfn_example_sfn_DescribeStateMachine_section.md)
    + [`GetActivityTask`](sfn_example_sfn_GetActivityTask_section.md)
    + [`ListActivities`](sfn_example_sfn_ListActivities_section.md)
    + [`ListExecutions`](sfn_example_sfn_ListExecutions_section.md)
    + [`ListStateMachines`](sfn_example_sfn_ListStateMachines_section.md)
    + [`SendTaskSuccess`](sfn_example_sfn_SendTaskSuccess_section.md)
    + [`StartExecution`](sfn_example_sfn_StartExecution_section.md)
+ [Scenarios](sfn_code_examples_scenarios.md)
  + [Create a messenger application](sfn_example_cross_StepFunctionsMessenger_section.md)
  + [Getting started with Step Functions](sfn_example_iam_GettingStarted_080_section.md)
  + [Orchestrate generative AI applications with Step Functions](sfn_example_cross_ServerlessPromptChaining_section.md)
  + [Use Step Functions to invoke Lambda functions](sfn_example_cross_ServerlessWorkflows_section.md)