ruby/example_code/sqs/sqs-ruby-example-create-queue.rb
# Full example call:
# Replace us-west-2 with the AWS Region you're using for Amazon SQS.

Full example call:
Replace us-west-2 with the AWS Region you're using for Amazon SQS.
Full example call : Replace us - west - 2 with the AWS Region you ' re using for Amazon SQS .
def run_me
  region = 'us-west-2'
  queue_name = 'my-queue'
  sqs_client = Aws::SQS::Client.new(region: region)
  puts "Creating the queue named '#{queue_name}'..."
  if queue_created?(sqs_client, queue_name)
    puts 'Queue created.'
  else
    puts 'Queue not created.'
  end
end
def run_me region = 'us-west-2' queue_name = 'my-queue' sqs_client = Aws :: SQS :: Client . new ( region : region ) puts "Creating the queue named '#{queue_name}'..." if queue_created? ( sqs_client , queue_name ) puts 'Queue created.' else puts 'Queue not created.' end end
Full example call:
Replace us-west-2 with the AWS Region you're using for Amazon SQS.
Full example call : Replace us - west - 2 with the AWS Region you ' re using for Amazon SQS .