

# “更新代码”对话框
<a name="update-code-dialog"></a>

每当您更新 AWS Lambda 函数时，AWS Toolkit for JetBrains 中便会显示**更新代码**对话框。

![\[“更新代码”对话框。\]](http://docs.aws.amazon.com/zh_cn/toolkit-for-jetbrains/latest/userguide/images/sam-update-code.png)


**更新代码**对话框包含以下项：

**处理程序**  
（必需）适用于 [Java](https://docs.aws.amazon.com/lambda/latest/dg/java-handler.html)、[Python](https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html)、[Node.js](https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html) 或 [C\$1](https://docs.aws.amazon.com/lambda/latest/dg/csharp-handler.html) 的相应 Lambda 函数处理程序的 ID。

**源存储桶**  
（仅 `Zip` 包类型为必需）在连接的 AWS 账户中选择现有 Amazon Simple Storage Service（Amazon S3）存储桶，供 AWS Serverless Application Model（AWS SAM）命令行界面（CLI）用于将函数部署到 Lambda。要在账户中创建 Amazon S3 存储桶并让 AWS SAM CLI 改用该存储桶，请选择**创建**，然后按照屏幕上的说明进行操作。有关 Lambda 包类型的信息，请参阅《AWS Lambda 开发人员指南》**中的 [Lambda 部署包](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html)。

**ECR 存储库**  
（仅 `Image` 包类型为必需）在连接的 AWS 账户中选择现有 Amazon Elastic Container Registry（Amazon ECR）存储库，供 AWS SAM CLI 用于将函数部署到 Lambda。