

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

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

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

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

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

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

**Contents**
+ [基本概念](service_code_examples_basics.md)
  + [Hello Amazon SQS](example_sqs_Hello_section.md)
  + [動作](service_code_examples_actions.md)
    + [`AddPermission`](example_sqs_AddPermission_section.md)
    + [`ChangeMessageVisibility`](example_sqs_ChangeMessageVisibility_section.md)
    + [`ChangeMessageVisibilityBatch`](example_sqs_ChangeMessageVisibilityBatch_section.md)
    + [`CreateQueue`](example_sqs_CreateQueue_section.md)
    + [`DeleteMessage`](example_sqs_DeleteMessage_section.md)
    + [`DeleteMessageBatch`](example_sqs_DeleteMessageBatch_section.md)
    + [`DeleteQueue`](example_sqs_DeleteQueue_section.md)
    + [`GetQueueAttributes`](example_sqs_GetQueueAttributes_section.md)
    + [`GetQueueUrl`](example_sqs_GetQueueUrl_section.md)
    + [`ListDeadLetterSourceQueues`](example_sqs_ListDeadLetterSourceQueues_section.md)
    + [`ListQueues`](example_sqs_ListQueues_section.md)
    + [`PurgeQueue`](example_sqs_PurgeQueue_section.md)
    + [`ReceiveMessage`](example_sqs_ReceiveMessage_section.md)
    + [`RemovePermission`](example_sqs_RemovePermission_section.md)
    + [`SendMessage`](example_sqs_SendMessage_section.md)
    + [`SendMessageBatch`](example_sqs_SendMessageBatch_section.md)
    + [`SetQueueAttributes`](example_sqs_SetQueueAttributes_section.md)
+ [案例](service_code_examples_scenarios.md)
  + [建立即時通訊軟體](example_cross_SQSMessageApp_section.md)
  + [建立傳訊應用程式](example_cross_StepFunctionsMessenger_section.md)
  + [建立 Amazon Textract Explorer 應用程式](example_cross_TextractExplorer_section.md)
  + [建立並發布到 FIFO 主題](example_sns_PublishFifoTopic_section.md)
  + [偵測映像中的人物和物件](example_cross_RekognitionVideoDetection_section.md)
  + [使用 S3 管理大型訊息](example_sqs_Scenario_SqsExtendedClient_section.md)
  + [處理 S3 事件通知](example_s3_Scenario_ProcessS3EventNotification_section.md)
  + [將訊息發佈至佇列](example_sqs_Scenario_TopicsAndQueues_section.md)
  + [傳送和接收批次訊息](example_sqs_Scenario_SendReceiveBatch_section.md)
  + [使用適用於 .NET AWS 的訊息處理架構搭配 Amazon SQS](example_cross_MessageProcessingFrameworkTutorial_section.md)
  + [使用 Amazon SQS Java 訊息程式庫即可使用 JMS 介面](example_sqs_Scenario_UseJMS_section.md)
  + [使用佇列標籤](example_sqs_Scenario_WorkWithTags_section.md)
+ [無伺服器範例](service_code_examples_serverless_examples.md)
  + [使用 Amazon SQS 觸發條件調用 Lambda 函數](example_serverless_SQS_Lambda_section.md)
  + [使用 Amazon SQS 觸發條件報告 Lambda 函數的批次項目失敗](example_serverless_SQS_Lambda_batch_item_failures_section.md)