git-off

git off handles large files in git repos
git clone https://noulin.net/git/git-off.git
Log | Files | Refs | README

document_client.d.ts (4205B)


      1 import DynamoDB = require('../../clients/dynamodb');
      2 import * as DCInterfaces from './document_client_interfaces';
      3 import * as stream from 'stream';
      4 import {Request} from '../request';
      5 import {AWSError} from '../error';
      6 interface File {}
      7 interface Blob {}
      8 /**
      9  * The document client simplifies working with items in Amazon DynamoDB
     10  * by abstracting away the notion of attribute values. This abstraction
     11  * annotates native JavaScript types supplied as input parameters, as well
     12  * as converts annotated response data to native JavaScript types.
     13  */
     14 export class DocumentClient {
     15     /**
     16      * Creates a DynamoDB document client with a set of configuration options.
     17      */
     18     constructor(options?: DocumentClientOptions)
     19 
     20     /**
     21      * Creates a set of elements inferring the type of set from the type of the first element. Amazon DynamoDB currently supports the number sets, string sets, and binary sets. For more information about DynamoDB data types see the documentation on the Amazon DynamoDB Data Model.
     22      */
     23     createSet(list: number[]|string[]|binaryType[], options: CreateSetOptions): void
     24     /**
     25      * Returns the attributes of one or more items from one or more tables by delegating to AWS.DynamoDB.batchGetItem().
     26      */
     27     batchGet(params: DCInterfaces.BatchGetItemInput, callback?: (err: AWSError, data: DCInterfaces.BatchGetItemOutput) => void): Request<DCInterfaces.BatchGetItemOutput, AWSError>;
     28     /**
     29      * Puts or deletes multiple items in one or more tables by delegating to AWS.DynamoDB.batchWriteItem().
     30      */
     31     batchWrite(params: DCInterfaces.BatchWriteItemInput, callback?: (err: AWSError, data: DCInterfaces.BatchWriteItemOutput) => void): Request<DCInterfaces.BatchWriteItemOutput, AWSError>;
     32     /**
     33      * Deletes a single item in a table by primary key by delegating to AWS.DynamoDB.deleteItem().
     34      */
     35     delete(params: DCInterfaces.DeleteItemInput, callback?: (err: AWSError, data: DCInterfaces.DeleteItemOutput) => void): Request<DCInterfaces.DeleteItemOutput, AWSError>;
     36     /**
     37      * Returns a set of attributes for the item with the given primary key by delegating to AWS.DynamoDB.getItem().
     38      */
     39     get(params: DCInterfaces.GetItemInput, callback?: (err: AWSError, data: DCInterfaces.GetItemOutput) => void): Request<DCInterfaces.GetItemOutput, AWSError>;
     40     /**
     41      * Creates a new item, or replaces an old item with a new item by delegating to AWS.DynamoDB.putItem().
     42      */
     43     put(params: DCInterfaces.PutItemInput, callback?: (err: AWSError, data: DCInterfaces.PutItemOutput) => void): Request<DCInterfaces.PutItemOutput, AWSError>;
     44     /**
     45      * Directly access items from a table by primary key or a secondary index.
     46      */
     47     query(params: DCInterfaces.QueryInput, callback?: (err: AWSError, data: DCInterfaces.QueryOutput) => void): Request<DCInterfaces.QueryOutput, AWSError>;
     48     /**
     49      * Returns one or more items and item attributes by accessing every item in a table or a secondary index.
     50      */
     51     scan(params: DCInterfaces.ScanInput, callback?: (err: AWSError, data: DCInterfaces.ScanOutput) => void): Request<DCInterfaces.ScanOutput, AWSError>;
     52     /**
     53      * Edits an existing item's attributes, or adds a new item to the table if it does not already exist by delegating to AWS.DynamoDB.updateItem().
     54      */
     55     update(params: DCInterfaces.UpdateItemInput, callback?: (err: AWSError, data: DCInterfaces.UpdateItemOutput) => void): Request<DCInterfaces.UpdateItemOutput, AWSError>;
     56 }
     57 
     58 interface DocumentClientOptions {
     59     /**
     60      * An optional map of parameters to bind to every request sent by this service object. 
     61      */
     62     params?: {[key: string]: any}
     63     /**
     64      * An optional pre-configured instance of the AWS.DynamoDB service object to use for requests. The object may bound parameters used by the document client. 
     65      */
     66     service?: DynamoDB
     67 }
     68 
     69 interface CreateSetOptions {
     70     /**
     71      * Set to true if you want to validate the type of each element in the set. Defaults to false.
     72      */
     73     validate?: boolean
     74 }
     75 type binaryType = Buffer|File|Blob|ArrayBuffer|DataView|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|stream.Stream;