

文件 AWS 開發套件範例 GitHub 儲存庫中有更多可用的 [AWS SDK 範例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# API Gateway AWS SDKs的程式碼範例
<a name="api-gateway_code_examples"></a>

下列程式碼範例示範如何使用 Amazon API Gateway 搭配 AWS 軟體開發套件 (SDK)。

*Actions* 是大型程式的程式碼摘錄，必須在內容中執行。雖然動作會告訴您如何呼叫個別服務函數，但您可以在其相關情境中查看內容中的動作。

*案例*是向您展示如何呼叫服務中的多個函數或與其他 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)