SimpleDB class
Amazon SimpleDB is a web service providing the core database functions of data indexing and querying in the cloud. By offloading the time and effort associated with building and operating a web-scale database, SimpleDB provides developers the freedom to focus on application development. A traditional, clustered relational database requires a sizable upfront capital outlay, is complex to design, and often requires extensive and repetitive database administration. Amazon SimpleDB is dramatically simpler, requiring no schema, automatically indexing your data and providing a simple API for storage and access. This approach eliminates the administrative burden of data modeling, index maintenance, and performance tuning. Developers gain access to this functionality within Amazon's proven computing environment, are able to scale instantly, and pay only for what they use.
Visit http://aws.amazon.com/simpledb/ for more information.
Constructors
- SimpleDB({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client})
Properties
Methods
-
batchDeleteAttributes(
{required String domainName, required List< DeletableItem> items}) → Future<void> - Performs multiple DeleteAttributes operations in a single call, which reduces round trips and latencies. This enables Amazon SimpleDB to optimize requests, which generally yields better throughput.
-
batchPutAttributes(
{required String domainName, required List< ReplaceableItem> items}) → Future<void> -
The
BatchPutAttributesoperation creates or replaces attributes within one or more items. By using this operation, the client can perform multiple PutAttribute operation with a single call. This helps yield savings in round trips and latencies, enabling Amazon SimpleDB to optimize requests and generally produce better throughput. -
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
createDomain(
{required String domainName}) → Future< void> -
The
CreateDomainoperation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. TheCreateDomainoperation may take 10 or more seconds to complete. The client can create up to 100 domains per account. -
deleteAttributes(
{required String domainName, required String itemName, List< DeletableAttribute> ? attributes, UpdateCondition? expected}) → Future<void> -
Deletes one or more attributes associated with an item. If all attributes
of the item are deleted, the item is deleted.
DeleteAttributesis an idempotent operation; running it multiple times on the same item or attribute does not result in an error response. -
deleteDomain(
{required String domainName}) → Future< void> -
The
DeleteDomainoperation deletes a domain. Any items (and their attributes) in the domain are deleted as well. TheDeleteDomainoperation might take 10 or more seconds to complete. -
domainMetadata(
{required String domainName}) → Future< DomainMetadataResult> - Returns information about the domain, including when the domain was created, the number of items and attributes in the domain, and the size of the attribute names and values.
-
getAttributes(
{required String domainName, required String itemName, List< String> ? attributeNames, bool? consistentRead}) → Future<GetAttributesResult> - Returns all of the attributes associated with the specified item. Optionally, the attributes returned can be limited to one or more attributes by specifying an attribute name parameter.
-
listDomains(
{int? maxNumberOfDomains, String? nextToken}) → Future< ListDomainsResult> -
The
ListDomainsoperation lists all domains associated with the Access Key ID. It returns domain names up to the limit set by MaxNumberOfDomains. A NextToken is returned if there are more thanMaxNumberOfDomainsdomains. CallingListDomainssuccessive times with theNextTokenprovided by the operation returns up toMaxNumberOfDomainsmore domain names with each successive operation call. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putAttributes(
{required List< ReplaceableAttribute> attributes, required String domainName, required String itemName, UpdateCondition? expected}) → Future<void> -
The PutAttributes operation creates or replaces attributes in an item. The
client may specify new attributes using a combination of the
Attribute.X.NameandAttribute.X.Valueparameters. The client specifies the first attribute by the parametersAttribute.0.NameandAttribute.0.Value, the second attribute by the parametersAttribute.1.NameandAttribute.1.Value, and so on. -
select(
{required String selectExpression, bool? consistentRead, String? nextToken}) → Future< SelectResult> -
The
Selectoperation returns a set of attributes forItemNamesthat match the select expression.Selectis similar to the standard SQL SELECT statement. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited