

文档 AWS SDK 示例 GitHub 存储库中还有更多 [S AWS DK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 Step Functions 的代码示例 AWS SDKs
<a name="sfn_code_examples"></a>

以下代码示例向您展示了如何 AWS Step Functions 使用 AWS 软件开发套件 (SDK)。

*基本功能*是向您展示如何在服务中执行基本操作的代码示例。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他 AWS 服务服务结合来完成特定任务的代码示例。

**更多资源**
+  **[Step Functions 开发人员指南](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html)**——有关 Step Functions 的更多信息。
+ **[Step Functions API 参考](https://docs.aws.amazon.com/step-functions/latest/apireference/Welcome.html)**——有关所有可用的 Step Functions 操作的详细信息。
+ **[AWS 开发者中心](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23step-functions)** — 您可以按类别或全文搜索筛选的代码示例。
+ **[AWS SDK 示例](https://github.com/awsdocs/aws-doc-sdk-examples)** — 包含首选语言完整代码的 GitHub 存储库。包括有关设置和运行代码的说明。

**Contents**
+ [基本功能](sfn_code_examples_basics.md)
  + [Hello Step Functions](sfn_example_sfn_Hello_section.md)
  + [了解基本功能](sfn_example_sfn_Scenario_GetStartedStateMachines_section.md)
  + [操作](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)
+ [场景](sfn_code_examples_scenarios.md)
  + [创建 Messenger 应用程序](sfn_example_cross_StepFunctionsMessenger_section.md)
  + [Step Functions 入门](sfn_example_iam_GettingStarted_080_section.md)
  + [使用 Step Functions 编排生成式人工智能应用程序](sfn_example_cross_ServerlessPromptChaining_section.md)
  + [使用 Step Functions 调用 Lambda 函数](sfn_example_cross_ServerlessWorkflows_section.md)