

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

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

# 使用 API Gateway 的代码示例 AWS SDKs
<a name="api-gateway_code_examples"></a>

以下代码示例向您展示了如何将 Amazon API Gateway 与 AWS 软件开发套件 (SDK) 配合使用。

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

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

*AWS 社区贡献*就是由多个团队创建和维护的示例 AWS。要提供反馈，请使用链接存储库中提供的机制。

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

**Contents**
+ [基本功能](api-gateway_code_examples_basics.md)
  + [操作](api-gateway_code_examples_actions.md)
    + [`CreateDeployment`](api-gateway_example_api-gateway_CreateDeployment_section.md)
    + [`CreateResource`](api-gateway_example_api-gateway_CreateResource_section.md)
    + [`CreateRestApi`](api-gateway_example_api-gateway_CreateRestApi_section.md)
    + [`DeleteDeployment`](api-gateway_example_api-gateway_DeleteDeployment_section.md)
    + [`DeleteRestApi`](api-gateway_example_api-gateway_DeleteRestApi_section.md)
    + [`GetBasePathMapping`](api-gateway_example_api-gateway_GetBasePathMapping_section.md)
    + [`GetResources`](api-gateway_example_api-gateway_GetResources_section.md)
    + [`GetRestApis`](api-gateway_example_api-gateway_GetRestApis_section.md)
    + [`ListBasePathMappings`](api-gateway_example_api-gateway_ListBasePathMappings_section.md)
    + [`PutIntegration`](api-gateway_example_api-gateway_PutIntegration_section.md)
    + [`PutIntegrationResponse`](api-gateway_example_api-gateway_PutIntegrationResponse_section.md)
    + [`PutMethod`](api-gateway_example_api-gateway_PutMethod_section.md)
    + [`PutMethodResponse`](api-gateway_example_api-gateway_PutMethodResponse_section.md)
    + [`UpdateBasePathMapping`](api-gateway_example_api-gateway_UpdateBasePathMapping_section.md)
+ [场景](api-gateway_code_examples_scenarios.md)
  + [创建 REST API 以跟踪 COVID-19 数据](api-gateway_example_cross_ApiGatewayDataTracker_section.md)
  + [使用 Lambda 代理集成创建 REST API](api-gateway_example_api_gateway_GettingStarted_087_section.md)
  + [创建借阅图书馆 REST API](api-gateway_example_cross_AuroraRestLendingLibrary_section.md)
  + [创建无服务器应用程序来管理照片](api-gateway_example_cross_PAM_section.md)
  + [创建 Websocket 聊天应用程序](api-gateway_example_cross_ApiGatewayWebsocketChat_section.md)
  + [创建并部署 REST API](api-gateway_example_api-gateway_Usage_CreateDeployRest_section.md)
  + [使用 API Gateway 调用 Lambda 函数](api-gateway_example_cross_LambdaAPIGateway_section.md)
+ [AWS 社区捐款](api-gateway_code_examples_aws_community_contributions.md)
  + [构建和测试无服务器应用程序](api-gateway_example_tributary-lite_serverless-application_section.md)