Sha256: af3d582f599f5cfc2238d73e1cbb50e250ba735b63b52d50695da01f9bac97ac

Contents?: true

Size: 828 Bytes

Versions: 6

Compression:

Stored size: 828 Bytes

Contents

module Fog
  module AWS
    class SQS
      class Real

        require 'fog/aws/parsers/sqs/create_queue'

        # Create a queue
        #
        # ==== Parameters
        # * name<~String> - Name of queue to create
        # * options<~Hash>:
        #   * DefaultVisibilityTimeout<~String> - Time, in seconds, to hide a message after it has been received, in 0..43200, defaults to 30
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AWSSimpleQueueService/latest/APIReference/Query_QueryCreateQueue.html
        #

        def create_queue(name, options = {})
          request({
            'Action'    => 'CreateQueue',
            'QueueName' => name,
            :parser     => Fog::Parsers::AWS::SQS::CreateQueue.new
          }.merge!(options))
        end

      end

    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/create_queue.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/create_queue.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/create_queue.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/create_queue.rb
fog-0.11.0 lib/fog/aws/requests/sqs/create_queue.rb
fog-0.10.0 lib/fog/aws/requests/sqs/create_queue.rb