

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

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

# AWS STS 使用场景 AWS SDKs
<a name="sts_code_examples_scenarios"></a>

以下代码示例向您展示了如何在中 AWS STS 实现常见场景 AWS SDKs。这些场景向您展示了如何通过在其中调用多个函数 AWS STS 或与其他函数组合来完成特定任务 AWS 服务。每个场景都包含完整源代码的链接，您可以在其中找到有关如何设置和运行代码的说明。

场景以中等水平的经验为目标，可帮助您结合具体环境了解服务操作。

**Topics**
+ [代入需要 MFA 令牌的 IAM 角色](sts_example_sts_Scenario_AssumeRoleMfa_section.md)
+ [配置 Amazon ECS Service Connect](sts_example_ecs_ServiceConnect_085_section.md)
+ [为联合用户构建 URL](sts_example_sts_Scenario_ConstructFederatedUrl_section.md)
+ [使用 Lambda 代理集成创建 REST API](sts_example_api_gateway_GettingStarted_087_section.md)
+ [创建 Fargate 启动类型的 Amazon ECS Linux 任务](sts_example_ecs_GettingStarted_086_section.md)
+ [创建以函数名称为变量的 CloudWatch 仪表板](sts_example_cloudwatch_GettingStarted_031_section.md)
+ [创建 EC2 启动类型的 Amazon ECS 服务](sts_example_ecs_GettingStarted_018_section.md)
+ [创建 Amazon Managed Grafana 工作区](sts_example_iam_GettingStarted_044_section.md)
+ [获取需要 MFA 令牌的会话令牌](sts_example_sts_Scenario_SessionTokenMfa_section.md)
+ [开始使用 Amazon ECR](sts_example_ecr_GettingStarted_078_section.md)
+ [开始使用 Amazon EKS](sts_example_eks_GettingStarted_034_section.md)
+ [Amazon MSK 入门](sts_example_ec2_GettingStarted_057_section.md)
+ [亚马逊 OpenSearch 服务入门](sts_example_opensearch_GettingStarted_016_section.md)
+ [开始使用 Amazon Feature SageMaker Store](sts_example_iam_GettingStarted_028_section.md)
+ [Config 入门](sts_example_config_service_GettingStarted_053_section.md)
+ [终端用户消息发送推送服务入门](sts_example_pinpoint_GettingStarted_049_section.md)
+ [IoT Core 入门](sts_example_iot_GettingStarted_063_section.md)
+ [WAF 入门](sts_example_wafv2_GettingStarted_052_section.md)
+ [将硬编码的密钥移动到 Secrets Manager](sts_example_secrets_manager_GettingStarted_073_section.md)
+ [使用 FIS 在 EC2 实例上运行 CPU 压力测试](sts_example_iam_GettingStarted_069_section.md)
+ [设置 Systems Manager](sts_example_iam_GettingStarted_046_section.md)