requestBuilder
requestBuilder: { addCondition: any; addFilter: any; addProjection: any; addTransactWriteItems: any; buildBatchDeleteInput: any; buildBatchGetInput: any; buildBatchPutInput: any; buildCreateTableInput: any; buildDeleteInput: any; buildDeleteTableInput: any; buildDescribeTableInput: any; buildDescribeTimeToLiveInput: any; buildGetInput: any; buildPutInput: any; buildQueryInput: any; buildRequestPutItem: any; buildScanInput: any; buildTransactWriteItemsInput: any; buildUpdateInputFromActions: any; buildUpdateTimeToLiveInput: any }
Type declaration
addCondition:function
- addCondition<T>(conditionableRequest: T, ...conditions: Condition[]): void
Type parameters
T: { ConditionExpression?: string; ExpressionAttributeNames?: ExpressionAttributeNameMap; ExpressionAttributeValues?: ExpressionAttributeValueMap }
Parameters
conditionableRequest: T
Rest ...conditions: Condition[]
Returns void
addFilter:function
- addFilter<T>(filterableRequest: T, ...filters: Condition[]): void
Type parameters
T: { ExpressionAttributeNames?: ExpressionAttributeNameMap; ExpressionAttributeValues?: ExpressionAttributeValueMap; FilterExpression?: string }
Parameters
filterableRequest: T
Rest ...filters: Condition[]
Returns void
addProjection:function
- addProjection<T>(projectableRequest: T, attributes: string[]): void
Type parameters
T: { ExpressionAttributeNames?: ExpressionAttributeNameMap; ProjectionExpression?: string }
Parameters
projectableRequest: T
attributes: string[]
Returns void
addTransactWriteItems:function
- addTransactWriteItems(request: TransactWriteItemsInput, ...input: (PutItemInput | UpdateItemInput | DeleteItemInput)[]): void
Parameters
request: TransactWriteItemsInput
Rest ...input: (PutItemInput | UpdateItemInput | DeleteItemInput)[]
Returns void
buildBatchDeleteInput:function
Parameters
Returns BatchWriteItemInput
buildBatchGetInput:function
Parameters
Returns BatchGetItemInput
buildBatchPutInput:function
- buildBatchPutInput(items: object[]): BatchWriteItemInput
Parameters
Returns BatchWriteItemInput
buildCreateTableInput:function
- buildCreateTableInput(additionalTableSchemas?: TableSchema[], readCapacity?: number, writeCapacity?: number): CreateTableInput
Parameters
Optional additionalTableSchemas: TableSchema[]
Optional readCapacity: number
Optional writeCapacity: number
Returns CreateTableInput
buildDeleteInput:function
- buildDeleteInput(itemToDelete: object): DeleteItemInput
Parameters
Returns DeleteItemInput
buildDeleteTableInput:function
- buildDeleteTableInput(): DeleteTableInput
buildDescribeTableInput:function
- buildDescribeTableInput(): DescribeTableInput
Returns DescribeTableInput
buildDescribeTimeToLiveInput:function
- buildDescribeTimeToLiveInput(): DescribeTimeToLiveInput
Returns DescribeTimeToLiveInput
buildGetInput:function
Parameters
Returns GetItemInput
buildPutInput:function
- buildPutInput(item: object): PutItemInput
Parameters
Returns PutItemInput
buildQueryInput:function
Parameters
Returns QueryInput
buildRequestPutItem:function
- buildRequestPutItem(item: any): AttributeValue
Parameters
Returns AttributeValue
buildScanInput:function
- buildScanInput(...filters: Condition[]): ScanInput
Parameters
Returns ScanInput
buildTransactWriteItemsInput:function
- buildTransactWriteItemsInput(...input: (PutItemInput | UpdateItemInput | DeleteItemInput)[]): TransactWriteItemsInput
Parameters
Rest ...input: (PutItemInput | UpdateItemInput | DeleteItemInput)[]
Returns TransactWriteItemsInput
buildUpdateInputFromActions:function
- buildUpdateInputFromActions(itemToUpdate: object, ...updateActions: UpdateExpressionAction[]): UpdateItemInput
Parameters
Returns UpdateItemInput
buildUpdateTimeToLiveInput:function
- buildUpdateTimeToLiveInput(): UpdateTimeToLiveInput
Returns UpdateTimeToLiveInput
An instance of Dynameh scoped to a particular TableSchema. All calls that require a TableSchema have that parameter already filled in.