AWS SDK for Ruby
Developer Guide

Creating a Queue in Amazon SQS

The following example creates the Amazon SQS queue named MyGroovyQueue in the us-west-2 region and displays its URL.

require 'aws-sdk-sqs' # v2: require 'aws-sdk' sqs = Aws::SQS::Client.new(region: 'us-west-2') queue = sqs.create_queue(queue_name: 'MyGroovyQueue') puts queue.queue_url