Sha256: 8b371f54d95c660eb9e3bba29119dc8706bae464f4b8eb27706e030c826690f1

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

module Fog
  module AWS
    class SQS
      class Real

        require 'fog/aws/parsers/sqs/basic'

        # Change visibility timeout for a message
        #
        # ==== Parameters
        # * queue_url<~String> - Url of queue for message to update
        # * receipt_handle<~String> - Token from previous recieve message
        # * visibility_timeout<~Integer> - New visibility timeout in 0..43200
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AWSSimpleQueueService/latest/APIReference/Query_QueryChangeMessageVisibility.html
        #

        def change_message_visibility(queue_url, receipt_handle, visibility_timeout)
          request({
            'Action'            => 'ChangeMessageVisibility',
            'ReceiptHandle'     => receipt_handle,
            'VisibilityTimeout' => visibility_timeout,
            :parser             => Fog::Parsers::AWS::SQS::Basic.new,
            :path               => path_from_queue_url(queue_url)
          })
        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/change_message_visibility.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/sqs/change_message_visibility.rb
fog-0.11.0 lib/fog/aws/requests/sqs/change_message_visibility.rb
fog-0.10.0 lib/fog/aws/requests/sqs/change_message_visibility.rb