These examples show how to create and manage Amazon Simple Queue Service (Amazon SQS) queues using the SDK for Ruby.
SQS is a fully managed message queuing service that makes it easy to decouple and scale microservices, distributed systems, and serverless applications.
- Running this code might result in charges to your AWS account.
- Running the tests might result in charges to your AWS account.
- We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see Grant least privilege.
- This code is not tested in every AWS Region. For more information, see AWS Regional Services.
Code excerpts that show you how to call individual service functions.
-
Create a queue (
CreateQueue
) -
Delete a queue (
DeleteQueue
) -
Enable a resource (
SetQueueAttributes
) -
Receive messages (
ReceiveMessage
) -
Send a batch message (
SendMessageBatch
) -
Send a message (
SendMessage
) -
Set time messages not visible after being received (
ChangeMessageVisibility
)
Code examples that show you how to accomplish a specific task by calling multiple functions within the same service.
See the Ruby README.md for prerequisites.
The easiest way to interact with this example code is by invoking a Scenario from your command line. For example, ruby some_scenario.rb
will invoke some_scenario.rb
.
Code examples thrive on community contribution!
- To learn more about the contributing process, see CONTRIBUTING.md
This service is not currently tested.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0