

 适用于 .NET 的 AWS SDK V3 已进入维护模式。

我们建议您迁移到 [适用于 .NET 的 AWS SDK V4](https://docs.aws.amazon.com/sdk-for-net/v4/developer-guide/welcome.html)。有关如何迁移的更多详细信息和信息，请参阅我们的[维护模式公告](https://aws.amazon.com/blogs/developer/aws-sdk-for-net-v3-maintenance-mode-announcement/)。

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

# 在 适用于 .NET 的 AWS SDK 中将 AWS 与 .NET Aspire 集成
<a name="aspire-integrations"></a>

.NET Aspire 是一种构建云就绪型应用程序的新方法。它专门为本地环境提供了一种编排工具，用于运行、连接和调试分布式应用程序的组件。为了改善云就绪型应用程序的内部开发循环，我们构建了与 .NET Aspire 的集成，用于将 .NET 应用程序连接到 AWS 资源。这些集成可通过 [Aspire.Hosting.AWS](https://www.nuget.org/packages/Aspire.Hosting.AWS) NuGet 软件包获取。

以下.NET Aspire 集成可用：
+ 通过 [CloudFormation](https://aws.amazon.com/cloudformation/) 预置 AWS 资源的功能。这种集成可用于 .NET Aspire AppHost 项目。

  有关更多信息，请参阅博客文章 [Integrating AWS with .NET Aspire](https://aws.amazon.com/blogs/developer/integrating-aws-with-net-aspire/)。
+ 安装和配置 适用于 .NET 的 AWS SDK 并将其连接到 [Amazon DynamoDB local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocalHistory.html)。这种集成可用于 .NET Aspire AppHost 项目。

  有关更多信息，请参阅博客文章 [Integrating AWS with .NET Aspire](https://aws.amazon.com/blogs/developer/integrating-aws-with-net-aspire/)。
+ 为 [AWS Lambda](https://aws.amazon.com/lambda/) 函数启用本地开发环境。这种集成可用于 .NET Aspire AppHost 项目。

  有关更多信息，请参阅博客文章 [Building and Debugging .NET Lambda applications with .NET Aspire (Part 1)](https://aws.amazon.com/blogs/developer/building-lambda-with-aspire-part-1/) 和 [Building and Debugging .NET Lambda applications with .NET Aspire (Part 2)](https://aws.amazon.com/blogs/developer/building-lambda-with-aspire-part-2/)。
**注意**  
这是适用于预览版中特征的预发行文档。本文档随时可能更改。

  由于此功能为预览版，因此您需要选择加入来启用预览功能。有关此预览功能以及如何选择加入的更多信息，请参阅 [GitHub 上的开发跟踪器问题](https://github.com/aws/integrations-on-dotnet-aspire-for-aws/issues/17)。

## 其他信息
<a name="aspire-integrations-additional"></a>

有关 [Aspire.Hosting.AWS](https://www.nuget.org/packages/Aspire.Hosting.AWS) 中提供的集成的更多信息以及详细使用说明，请参阅以下资源。
+ 博客文章 [Integrating AWS with .NET Aspire](https://aws.amazon.com/blogs/developer/integrating-aws-with-net-aspire/)。
+ 博客文章 [Building and Debugging .NET Lambda applications with .NET Aspire (Part 1)](https://aws.amazon.com/blogs/developer/building-lambda-with-aspire-part-1/) 和 [Building and Debugging .NET Lambda applications with .NET Aspire (Part 2)](https://aws.amazon.com/blogs/developer/building-lambda-with-aspire-part-2/)。
+ GitHub 上的 [integrations-on-dotnet-aspire-for-aws](https://github.com/aws/integrations-on-dotnet-aspire-for-aws) 存储库。
+ [Aspire.Hosting.AWS](https://www.nuget.org/packages/Aspire.Hosting.AWS) NuGet 软件包的详细[自述文件](https://github.com/aws/integrations-on-dotnet-aspire-for-aws/blob/main/src/Aspire.Hosting.AWS/README.md)。