Class AWS::SimpleDB::Domain
In: lib/aws/simple_db/domain.rb
Parent: Object

Represents a domain in SimpleDB.

Domains, like database tables, must exist before you can write to one.

@example Creating a domain

  domain = SimpleDB.new.domains.create('mydomain')

@example Getting a domain

  domain = SimpleDB.new.domains['mydomain']

@see DomainCollection

Methods

delete   delete!   empty?   exists?   inspect   items   metadata   new  

Included Modules

Model

Classes and Modules

Class AWS::SimpleDB::Domain::NonEmptyDeleteError

Attributes

name  [R]  Returns the name for this domain.

@return [String] The name of this domain.

Public Class methods

@param [String] The name of a SimpleDB domain to reference.

Public Instance methods

Deletes the (empty) domain.

@note If you need to delete a domain with items, call {delete!} @raise [NonEmptyDeleteError] Raises if the domain is not empty. @return [nil]

Deletes the domain and all of its items.

@return [nil]

Returns true if the domain has no items, false otherwise.

@return [Boolean] Returns true if the domain has no items.

Returns true if this domain exists, false otherwise.

@return [Boolean] Returns true if the domain exists.

An irb-friendly string representation of this object.

@return [String] @private

Returns a collection that represents all of the items in this domain.

@return [ItemCollection]

Returns a metadata object that can provide information about this domain.

@return [DomainMetadata]

[Validate]