Note

You are viewing the documentation for an older version of boto (boto2).

Boto3, the next version of Boto, is now stable and recommended for general use. It can be used side-by-side with Boto in the same project, so it is easy to start using Boto3 in your existing projects as well as new projects. Going forward, API updates and all new feature work will be focused on Boto3.

For more information, see the documentation for boto3.

contrib

boto.contrib

boto.contrib.ymlmessage

This module was contributed by Chris Moyer. It provides a subclass of the SQS Message class that supports YAML as the body of the message.

This module requires the yaml module.

class boto.contrib.ymlmessage.YAMLMessage(queue=None, body='', xml_attrs=None)

The YAMLMessage class provides a YAML compatible message. Encoding and decoding are handled automaticaly.

Access this message data like such:

m.data = [ 1, 2, 3] m.data[0] # Returns 1

This depends on the PyYAML package

get_body()
set_body(body)

Override the current body for this object, using decoded format.