

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

# 使用 AWS SDKs Lambda 程式碼範例
<a name="service_code_examples"></a>

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

*基本概念*是程式碼範例，這些範例說明如何在服務內執行基本操作。

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

*案例*是向您展示如何呼叫服務中的多個函數或與其他 AWS 服務組合來完成特定任務的程式碼範例。

*AWS 社群貢獻*是由多個團隊所建立和維護的範例 AWS。若要提供意見回饋，請使用連結儲存庫中提供的機制。

如需 AWS SDK 開發人員指南和程式碼範例的完整清單，請參閱 [搭配 AWS SDK 使用 Lambda](sdk-general-information-section.md)。此主題也包含有關入門的資訊和舊版 SDK 的詳細資訊。

**Contents**
+ [基本概念](service_code_examples_basics.md)
  + [Hello Lambda](example_lambda_Hello_section.md)
  + [了解基本概念](example_lambda_Scenario_GettingStartedFunctions_section.md)
  + [動作](service_code_examples_actions.md)
    + [`CreateAlias`](example_lambda_CreateAlias_section.md)
    + [`CreateFunction`](example_lambda_CreateFunction_section.md)
    + [`DeleteAlias`](example_lambda_DeleteAlias_section.md)
    + [`DeleteFunction`](example_lambda_DeleteFunction_section.md)
    + [`DeleteFunctionConcurrency`](example_lambda_DeleteFunctionConcurrency_section.md)
    + [`DeleteProvisionedConcurrencyConfig`](example_lambda_DeleteProvisionedConcurrencyConfig_section.md)
    + [`GetAccountSettings`](example_lambda_GetAccountSettings_section.md)
    + [`GetAlias`](example_lambda_GetAlias_section.md)
    + [`GetFunction`](example_lambda_GetFunction_section.md)
    + [`GetFunctionConcurrency`](example_lambda_GetFunctionConcurrency_section.md)
    + [`GetFunctionConfiguration`](example_lambda_GetFunctionConfiguration_section.md)
    + [`GetPolicy`](example_lambda_GetPolicy_section.md)
    + [`GetProvisionedConcurrencyConfig`](example_lambda_GetProvisionedConcurrencyConfig_section.md)
    + [`Invoke`](example_lambda_Invoke_section.md)
    + [`ListFunctions`](example_lambda_ListFunctions_section.md)
    + [`ListProvisionedConcurrencyConfigs`](example_lambda_ListProvisionedConcurrencyConfigs_section.md)
    + [`ListTags`](example_lambda_ListTags_section.md)
    + [`ListVersionsByFunction`](example_lambda_ListVersionsByFunction_section.md)
    + [`PublishVersion`](example_lambda_PublishVersion_section.md)
    + [`PutFunctionConcurrency`](example_lambda_PutFunctionConcurrency_section.md)
    + [`PutProvisionedConcurrencyConfig`](example_lambda_PutProvisionedConcurrencyConfig_section.md)
    + [`RemovePermission`](example_lambda_RemovePermission_section.md)
    + [`TagResource`](example_lambda_TagResource_section.md)
    + [`UntagResource`](example_lambda_UntagResource_section.md)
    + [`UpdateAlias`](example_lambda_UpdateAlias_section.md)
    + [`UpdateFunctionCode`](example_lambda_UpdateFunctionCode_section.md)
    + [`UpdateFunctionConfiguration`](example_lambda_UpdateFunctionConfiguration_section.md)
+ [案例](service_code_examples_scenarios.md)
  + [使用 Lambda 函數自動確認已知使用者](example_cross_CognitoAutoConfirmUser_section.md)
  + [使用 Lambda 函數自動遷移已知使用者](example_cross_CognitoAutoMigrateUser_section.md)
  + [建立 REST API 以追蹤 COVID-19 資料](example_cross_ApiGatewayDataTracker_section.md)
  + [使用 Lambda 代理整合建立 REST API](example_api_gateway_GettingStarted_087_section.md)
  + [建立出借圖書館 REST API](example_cross_AuroraRestLendingLibrary_section.md)
  + [建立傳訊應用程式](example_cross_StepFunctionsMessenger_section.md)
  + [建立無伺服器應用程式來管理相片](example_cross_PAM_section.md)
  + [建立 websocket 聊天應用程式](example_cross_ApiGatewayWebsocketChat_section.md)
  + [建立應用程式以分析客戶意見回饋](example_cross_FSA_section.md)
  + [建立函數名稱為變數的 CloudWatch 儀表板](example_cloudwatch_GettingStarted_031_section.md)
  + [建立您的第一個 Lambda 函數](example_lambda_GettingStarted_019_section.md)
  + [從瀏覽器調用 Lambda 函式](example_cross_LambdaForBrowser_section.md)
  + [使用 S3 Object Lambda 轉換資料](example_cross_ServerlessS3DataTransformation_section.md)
  + [使用 API Gateway 來調用 Lambda 函式](example_cross_LambdaAPIGateway_section.md)
  + [使用 Step Functions 調用 Lambda 函式](example_cross_ServerlessWorkflows_section.md)
  + [使用排程事件來調用 Lambda 函式](example_cross_LambdaScheduledEvents_section.md)
  + [使用 Neptune API 查詢圖形資料](example_cross_Neptune_Query_section.md)
  + [在 CloudWatch 儀表板中使用屬性變數來監控多個 Lambda 函數](example_iam_GettingStarted_032_section.md)
  + [進行 Amazon Cognito 使用者身分驗證後，可使用 Lambda 函數撰寫自訂活動資料](example_cross_CognitoCustomActivityLog_section.md)
+ [無伺服器範例](service_code_examples_serverless_examples.md)
  + [連線至 Lambda 函數中的 Amazon RDS 資料庫](example_serverless_connect_RDS_Lambda_section.md)
  + [使用 Kinesis 觸發條件調用 Lambda 函數](example_serverless_Kinesis_Lambda_section.md)
  + [使用 DynamoDB 觸發條件調用 Lambda 函式](example_serverless_DynamoDB_Lambda_section.md)
  + [使用 Amazon DocumentDB 觸發條件調用 Lambda 函數](example_serverless_DocumentDB_Lambda_section.md)
  + [使用 Amazon MSK 觸發條件調用 Lambda 函數](example_serverless_MSK_Lambda_section.md)
  + [使用 Amazon S3 觸發條件調用 Lambda 函數](example_serverless_S3_Lambda_section.md)
  + [使用 Amazon SNS 觸發條件調用 Lambda 函數](example_serverless_SNS_Lambda_section.md)
  + [使用 Amazon SQS 觸發條件調用 Lambda 函數](example_serverless_SQS_Lambda_section.md)
  + [使用 Kinesis 觸發條件報告 Lambda 函數的批次項目失敗](example_serverless_Kinesis_Lambda_batch_item_failures_section.md)
  + [使用 DynamoDB 觸發條件報告 Lambda 函式的批次項目失敗](example_serverless_DynamoDB_Lambda_batch_item_failures_section.md)
  + [使用 Amazon SQS 觸發條件報告 Lambda 函數的批次項目失敗](example_serverless_SQS_Lambda_batch_item_failures_section.md)
+ [AWS 社群貢獻](service_code_examples_aws_community_contributions.md)
  + [建置和測試無伺服器應用程式](example_tributary-lite_serverless-application_section.md)