Class | AWS::SimpleDB::Item |
In: |
lib/aws/simple_db/item.rb
|
Parent: | Object |
Represents a single item in a SimpleDB domain. You can use this class to delete the item or get its data. You can also use it to access the {AttributeCollection} for the item in order to add, remove, or read the item‘s attributes.
item = AWS::SimpleDB.new.domains['mydomain'].items['item-id']
domain | [R] | @return [Domain] The domain this item belongs to. |
name | [R] | @return [String] The item name. |
Returns all of the item‘s attributes in an {ItemData} instance. @return [ItemData] An object with all of the loaded attribute names
and values for this item.
Deletes the item and all of its attributes from SimpleDB. @param [Hash] options @option options [Hash] :if Pass a hash with a single key (attribute
name) and a single value (the attribute value). This causes the delete to become conditional.
@option options [String,Symbol] :unless Pass an attribute name. This
causes the delete to become conditional on that attribute not existing.
@return [nil]