

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

# 使用 Amazon SQS 的代码示例 Amazon SDKs
<a name="service_code_examples"></a>

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

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

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

有关 S Amazon DK 开发者指南和代码示例的完整列表，请参阅[将 Amazon SQS 与 Amazon SDK 结合使用](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)
  + [创建 Messenger 应用程序](example_cross_StepFunctionsMessenger_section.md)
  + [创建 Amazon Textract 浏览器应用程序](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 的 Amazon 消息处理框架与 Amazon SQS 配合使用](example_cross_MessageProcessingFrameworkTutorial_section.md)
  + [使用 Amazon SQS Java Messaging Library 处理 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)