Module Expr Str Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If NameLoad body Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body Expr Call NameLoad IfExp CompareEq Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad body Expr Call NameLoad NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad body Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Str NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Raise Call NameLoad Str decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Raise Call NameLoad Str decorator_list Assign NameStore NameLoad decorator_list
N/A N/A 
Represents an SQS Queue
 N/A urlparse boto.sqs.message Message boto.sqs.queue * AsyncQueue N/A Queue N/A __init__ N/A N/A self connection url message_class N/A None None Message N/A N/A N/A self connection connection N/A N/A self url url N/A N/A self message_class message_class N/A N/A self visibility_timeout None N/A get_attributes N/A N/A self attributes callback N/A All None N/A N/A 
        Retrieves attributes about this queue object and returns
        them in an Attribute instance (subclass of a Dictionary).

        :type attributes: string
        :param attributes: String containing one of:
                           ApproximateNumberOfMessages,
                           ApproximateNumberOfMessagesNotVisible,
                           VisibilityTimeout,
                           CreatedTimestamp,
                           LastModifiedTimestamp,
                           Policy
        :rtype: Attribute object
        :return: An Attribute object which is a mapping type holding the
                 requested name/value pairs
         N/A N/A N/A N/A self connection get_queue_attributes self attributes callback callback N/A set_attribute N/A N/A self attribute value callback N/A None N/A N/A 
        Set a new value for an attribute of the Queue.
        
        :type attribute: String
        :param attribute: The name of the attribute you want to set.  The
                           only valid value at this time is: VisibilityTimeout
        :type value: int
        :param value: The new value for the attribute.
                      For VisibilityTimeout the value must be an
                      integer number of seconds from 0 to 86400.

        :rtype: bool
        :return: True if successful, otherwise False.
         N/A N/A N/A N/A self connection set_queue_attribute self attribute value callback callback N/A get_timeout N/A N/A self callback N/A None N/A N/A 
        Get the visibility timeout for the queue.
        
        :rtype: int
        :return: The number of seconds as an integer.
         got_timeout N/A N/A a N/A N/A N/A N/A callable callback N/A N/A N/A callback N/A int N/A a N/A VisibilityTimeout N/A N/A N/A N/A self get_attributes VisibilityTimeout callback got_timeout N/A set_timeout N/A N/A self visibility_timeout callback N/A None N/A N/A 
        Set the visibility timeout for the queue.

        :type visibility_timeout: int
        :param visibility_timeout: The desired timeout in seconds
         _set_timeout N/A N/A retval N/A N/A N/A retval N/A N/A N/A self visibility_timeout visibility_timeout N/A N/A callable callback N/A N/A N/A callback retval N/A N/A retval N/A N/A self set_attribute VisibilityTimeout visibility_timeout callback _set_timeout N/A add_permission N/A N/A self label aws_account_id action_name callback N/A None N/A N/A 
        Add a permission to a queue.

        :type label: str or unicode
        :param label: A unique identification of the permission you are setting.
                      Maximum of 80 characters ``[0-9a-zA-Z_-]``
                      Example, AliceSendMessage

        :type aws_account_id: str or unicode
        :param principal_id: The AWS account number of the principal who will be given
                             permission.  The principal must have an AWS account, but
                             does not need to be signed up for Amazon SQS. For information
                             about locating the AWS account identification.

        :type action_name: str or unicode
        :param action_name: The action.  Valid choices are:
                            \*|SendMessage|ReceiveMessage|DeleteMessage|
                            ChangeMessageVisibility|GetQueueAttributes

        :rtype: bool
        :return: True if successful, False otherwise.

         N/A N/A N/A N/A self connection add_permission self label aws_account_id action_name callback callback N/A remove_permission N/A N/A self label callback N/A None N/A N/A 
        Remove a permission from a queue.

        :type label: str or unicode
        :param label: The unique label associated with the permission being removed.

        :rtype: bool
        :return: True if successful, False otherwise.
         N/A N/A N/A N/A self connection remove_permission self label callback callback N/A read N/A N/A self visibility_timeout callback N/A None None N/A N/A 
        Read a single message from the queue.
        
        :type visibility_timeout: int
        :param visibility_timeout: The timeout for this message in seconds

        :rtype: :class:`boto.sqs.message.Message`
        :return: A single message or None if queue is empty
         _read N/A N/A rs N/A N/A N/A N/A callable callback N/A N/A N/A callback N/A N/A N/A len rs 1 N/A rs N/A 0 None N/A N/A N/A N/A self get_messages 1 visibility_timeout callback callback N/A write N/A N/A self message callback N/A None N/A N/A 
        Add a single message to the queue.

        :type message: Message
        :param message: The message to be written to the queue

        :rtype: :class:`boto.sqs.message.Message`
        :return: The :class:`boto.sqs.message.Message` object that was written.
         wrote N/A N/A new_msg N/A N/A N/A N/A message id N/A new_msg id N/A N/A message md5 N/A new_msg md5 N/A N/A callable callback N/A N/A N/A callback message N/A N/A N/A N/A N/A self connection send_message self N/A N/A message get_body_encoded callback wrote N/A get_messages N/A N/A self num_messages visibility_timeout attributes callback N/A 1 None None None N/A N/A 
        Get a variable number of messages.

        :type num_messages: int
        :param num_messages: The maximum number of messages to read from the queue.
        
        :type visibility_timeout: int
        :param visibility_timeout: The VisibilityTimeout for the messages read.

        :type attributes: str
        :param attributes: The name of additional attribute to return with response
                           or All if you want all attributes.  The default is to
                           return no additional attributes.  Valid values:
                           All
                           SenderId
                           SentTimestamp
                           ApproximateReceiveCount
                           ApproximateFirstReceiveTimestamp
                           
        :rtype: list
        :return: A list of :class:`boto.sqs.message.Message` objects.
         N/A N/A N/A N/A self connection receive_message self number_messages num_messages visibility_timeout visibility_timeout attributes attributes callback callback N/A delete_message N/A N/A self message callback N/A None N/A N/A 
        Delete a message from the queue.

        :type message: :class:`boto.sqs.message.Message`
        :param message: The :class:`boto.sqs.message.Message` object to delete.

        :rtype: bool
        :return: True if successful, False otherwise
         N/A N/A N/A N/A self connection delete_message self message callback callback N/A delete N/A N/A self callback N/A None N/A N/A 
        Delete the queue.
         N/A N/A N/A N/A self connection delete_queue self callback callback N/A clear N/A N/A self page_size vtimeout callback N/A 10 10 None N/A N/A Utility function to remove all messages from a queue N/A N/A BotoClientError Not Implemented N/A count N/A N/A self page_size vtimeout callback N/A 10 10 None N/A N/A 
        Utility function to count the number of messages in a queue.
        Note: This function now calls GetQueueAttributes to obtain
        an 'approximate' count of the number of messages in a queue.
         counted N/A N/A a N/A N/A N/A N/A callable callback N/A N/A N/A callback N/A int N/A a N/A ApproximateNumberOfMessages N/A N/A N/A N/A self get_attributes ApproximateNumberOfMessages callback counted N/A count_slow N/A N/A self page_size vtimeout callback N/A 10 10 None N/A N/A 
        Deprecated.  This is the old 'count' method that actually counts
        the messages by reading them all.  This gives an accurate count but
        is very slow for queues with non-trivial number of messasges.
        Instead, use get_attribute('ApproximateNumberOfMessages') to take
        advantage of the new SQS capability.  This is retained only for
        the unit tests.
         N/A N/A BotoClientError Not Implemented N/A dump N/A N/A self file_name page_size vtimeout sep callback N/A 10 10 None N/A N/A Utility function to dump the messages in a queue to a file
        NOTE: Page size must be < 10 else SQS errors N/A N/A BotoClientError Not Implemented N/A save_to_file N/A N/A self fp sep callback N/A None N/A N/A 
        Read all messages from the queue and persist them to file-like object.
        Messages are written to the file and the 'sep' string is written
        in between messages.  Messages are deleted from the queue after
        being written to the file.
        Returns the number of messages saved.
         N/A N/A BotoClientError Not Implemented N/A save_to_filename N/A N/A self file_name sep callback N/A None N/A N/A 
        Read all messages from the queue and persist them to local file.
        Messages are written to the file and the 'sep' string is written
        in between messages.  Messages are deleted from the queue after
        being written to the file.
        Returns the number of messages saved.
         N/A N/A BotoClientError Not Implemented N/A N/A save save_to_filename save_to_s3 N/A N/A self bucket N/A N/A N/A 
        Read all messages from the queue and persist them to S3.
        Messages are stored in the S3 bucket using a naming scheme of::
        
            <queue_id>/<message_id>
        
        Messages are deleted from the queue after being saved to S3.
        Returns the number of messages saved.
         N/A N/A BotoClientError Not Implemented N/A load_from_s3 N/A N/A self bucket prefix N/A None N/A N/A 
        Load messages previously saved to S3.
         N/A N/A BotoClientError Not Implemented N/A load_from_file N/A N/A self fp sep N/A N/A N/A Utility function to load messages from a file-like object to a queue N/A N/A BotoClientError Not Implemented N/A load_from_filename N/A N/A self file_name sep N/A N/A N/A Utility function to load messages from a local filename to a queue N/A N/A BotoClientError Not Implemented N/A N/A load load_from_filename N/A