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, String? endpointUrl})
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
BatchPutAttributes
operation 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
CreateDomain
operation creates a new domain. The domain name should be unique among the domains associated with the Access Key ID provided in the request. TheCreateDomain
operation 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.
DeleteAttributes
is 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
DeleteDomain
operation deletes a domain. Any items (and their attributes) in the domain are deleted as well. TheDeleteDomain
operation 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
ListDomains
operation 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 thanMaxNumberOfDomains
domains. CallingListDomains
successive times with theNextToken
provided by the operation returns up toMaxNumberOfDomains
more 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.Name
andAttribute.X.Value
parameters. The client specifies the first attribute by the parametersAttribute.0.Name
andAttribute.0.Value
, the second attribute by the parametersAttribute.1.Name
andAttribute.1.Value
, and so on. -
select(
{required String selectExpression, bool? consistentRead, String? nextToken}) → Future< SelectResult> -
The
Select
operation returns a set of attributes forItemNames
that match the select expression.Select
is 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