@aws-sdk/lib-dynamodb 3.1153.0 → 3.1155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +13 -0
- package/dist-es/DynamoDBDocument.js +4 -0
- package/dist-es/pagination/PaginatedBatchGet.js +9 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-types/DynamoDBDocument.d.ts +6 -0
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +21 -9
- package/dist-types/commands/BatchGetCommand.d.ts +8 -6
- package/dist-types/commands/BatchWriteCommand.d.ts +28 -19
- package/dist-types/commands/DeleteCommand.d.ts +15 -7
- package/dist-types/commands/DescribeExportCommand.d.ts +13 -5
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +14 -6
- package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +14 -8
- package/dist-types/commands/PutCommand.d.ts +15 -7
- package/dist-types/commands/QueryCommand.d.ts +8 -6
- package/dist-types/commands/ScanCommand.d.ts +7 -3
- package/dist-types/commands/SearchVectorsCommand.d.ts +7 -3
- package/dist-types/commands/TransactGetCommand.d.ts +21 -9
- package/dist-types/commands/TransactWriteCommand.d.ts +46 -22
- package/dist-types/commands/UpdateCommand.d.ts +22 -10
- package/dist-types/pagination/PaginatedBatchGet.d.ts +12 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/DynamoDBDocument.d.ts +1 -0
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +21 -15
- package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +8 -16
- package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +22 -42
- package/dist-types/ts3.4/commands/DeleteCommand.d.ts +15 -17
- package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +13 -12
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +14 -10
- package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +14 -20
- package/dist-types/ts3.4/commands/PutCommand.d.ts +15 -17
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +5 -16
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +4 -8
- package/dist-types/ts3.4/commands/SearchVectorsCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +15 -15
- package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +46 -43
- package/dist-types/ts3.4/commands/UpdateCommand.d.ts +22 -25
- package/dist-types/ts3.4/pagination/PaginatedBatchGet.d.ts +8 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -727,6 +727,15 @@ const paginateQuery = createPaginator(DynamoDBDocumentClient, QueryCommand, "Exc
|
|
|
727
727
|
|
|
728
728
|
const paginateScan = createPaginator(DynamoDBDocumentClient, ScanCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
|
|
729
729
|
|
|
730
|
+
async function* paginatedBatchGet(config, input) {
|
|
731
|
+
let requestItems = input.RequestItems;
|
|
732
|
+
while (requestItems && Object.keys(requestItems).length > 0) {
|
|
733
|
+
const response = await config.client.send(new BatchGetCommand({ ...input, RequestItems: requestItems }));
|
|
734
|
+
requestItems = response.UnprocessedKeys;
|
|
735
|
+
yield response;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
730
739
|
class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
731
740
|
static from(client, translateConfig) {
|
|
732
741
|
return new DynamoDBDocument(client, translateConfig);
|
|
@@ -761,6 +770,9 @@ class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
761
770
|
return this.send(command, optionsOrCb);
|
|
762
771
|
}
|
|
763
772
|
}
|
|
773
|
+
paginatedBatchGet(args) {
|
|
774
|
+
return paginatedBatchGet({ client: this }, args);
|
|
775
|
+
}
|
|
764
776
|
batchWrite(args, optionsOrCb, cb) {
|
|
765
777
|
const command = new BatchWriteCommand(args);
|
|
766
778
|
if (typeof optionsOrCb === "function") {
|
|
@@ -994,3 +1006,4 @@ exports.TransactWriteCommand = TransactWriteCommand;
|
|
|
994
1006
|
exports.UpdateCommand = UpdateCommand;
|
|
995
1007
|
exports.paginateQuery = paginateQuery;
|
|
996
1008
|
exports.paginateScan = paginateScan;
|
|
1009
|
+
exports.paginatedBatchGet = paginatedBatchGet;
|
|
@@ -15,6 +15,7 @@ import { TransactGetCommand, } from "./commands/TransactGetCommand";
|
|
|
15
15
|
import { TransactWriteCommand, } from "./commands/TransactWriteCommand";
|
|
16
16
|
import { UpdateCommand } from "./commands/UpdateCommand";
|
|
17
17
|
import { DynamoDBDocumentClient } from "./DynamoDBDocumentClient";
|
|
18
|
+
import { paginatedBatchGet } from "./pagination/PaginatedBatchGet";
|
|
18
19
|
export class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
19
20
|
static from(client, translateConfig) {
|
|
20
21
|
return new DynamoDBDocument(client, translateConfig);
|
|
@@ -49,6 +50,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
49
50
|
return this.send(command, optionsOrCb);
|
|
50
51
|
}
|
|
51
52
|
}
|
|
53
|
+
paginatedBatchGet(args) {
|
|
54
|
+
return paginatedBatchGet({ client: this }, args);
|
|
55
|
+
}
|
|
52
56
|
batchWrite(args, optionsOrCb, cb) {
|
|
53
57
|
const command = new BatchWriteCommand(args);
|
|
54
58
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BatchGetCommand } from "../commands/BatchGetCommand";
|
|
2
|
+
export async function* paginatedBatchGet(config, input) {
|
|
3
|
+
let requestItems = input.RequestItems;
|
|
4
|
+
while (requestItems && Object.keys(requestItems).length > 0) {
|
|
5
|
+
const response = await config.client.send(new BatchGetCommand({ ...input, RequestItems: requestItems }));
|
|
6
|
+
requestItems = response.UnprocessedKeys;
|
|
7
|
+
yield response;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -85,6 +85,12 @@ export declare class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
85
85
|
batchGet(args: BatchGetCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetCommandOutput>;
|
|
86
86
|
batchGet(args: BatchGetCommandInput, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
|
|
87
87
|
batchGet(args: BatchGetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
|
|
88
|
+
/**
|
|
89
|
+
* Issues BatchGet requests until every key is processed. Each response is yielded as a page.
|
|
90
|
+
* When a response contains unprocessed keys, the next request includes only those keys.
|
|
91
|
+
* Each BatchGet request must contain no more than 100 items.
|
|
92
|
+
*/
|
|
93
|
+
paginatedBatchGet(args: BatchGetCommandInput): AsyncGenerator<BatchGetCommandOutput>;
|
|
88
94
|
/**
|
|
89
95
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
90
96
|
* BatchWriteItemCommand operation from {@link @aws-sdk/client-dynamodb#BatchWriteItemCommand}.
|
|
@@ -7,24 +7,36 @@ import { BatchExecuteStatementCommand as __BatchExecuteStatementCommand } from "
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type BatchExecuteStatementBatchStatementRequest = Omit<BatchStatementRequest, "Parameters"> & {
|
|
14
|
+
Parameters?: NativeAttributeValue[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type BatchExecuteStatementBatchStatementError = Omit<BatchStatementError, "Item"> & {
|
|
20
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type BatchExecuteStatementBatchStatementResponse = Omit<BatchStatementResponse, "Error" | "Item"> & {
|
|
26
|
+
Error?: BatchExecuteStatementBatchStatementError | undefined;
|
|
27
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
28
|
+
};
|
|
10
29
|
/**
|
|
11
30
|
* @public
|
|
12
31
|
*/
|
|
13
32
|
export type BatchExecuteStatementCommandInput = Omit<__BatchExecuteStatementCommandInput, "Statements"> & {
|
|
14
|
-
Statements: (
|
|
15
|
-
Parameters?: NativeAttributeValue[] | undefined;
|
|
16
|
-
})[] | undefined;
|
|
33
|
+
Statements: (BatchExecuteStatementBatchStatementRequest)[] | undefined;
|
|
17
34
|
};
|
|
18
35
|
/**
|
|
19
36
|
* @public
|
|
20
37
|
*/
|
|
21
38
|
export type BatchExecuteStatementCommandOutput = Omit<__BatchExecuteStatementCommandOutput, "Responses"> & {
|
|
22
|
-
Responses?: (
|
|
23
|
-
Error?: (Omit<BatchStatementError, "Item"> & {
|
|
24
|
-
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
25
|
-
}) | undefined;
|
|
26
|
-
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
27
|
-
})[] | undefined;
|
|
39
|
+
Responses?: (BatchExecuteStatementBatchStatementResponse)[] | undefined;
|
|
28
40
|
};
|
|
29
41
|
/**
|
|
30
42
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,22 +7,24 @@ import { BatchGetItemCommand as __BatchGetItemCommand } from "@aws-sdk/client-dy
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type BatchGetKeysAndAttributes = Omit<KeysAndAttributes, "Keys"> & {
|
|
14
|
+
Keys: Record<string, NativeAttributeValue>[] | undefined;
|
|
15
|
+
};
|
|
10
16
|
/**
|
|
11
17
|
* @public
|
|
12
18
|
*/
|
|
13
19
|
export type BatchGetCommandInput = Omit<__BatchGetItemCommandInput, "RequestItems"> & {
|
|
14
|
-
RequestItems: Record<string,
|
|
15
|
-
Keys: Record<string, NativeAttributeValue>[] | undefined;
|
|
16
|
-
}> | undefined;
|
|
20
|
+
RequestItems: Record<string, BatchGetKeysAndAttributes> | undefined;
|
|
17
21
|
};
|
|
18
22
|
/**
|
|
19
23
|
* @public
|
|
20
24
|
*/
|
|
21
25
|
export type BatchGetCommandOutput = Omit<__BatchGetItemCommandOutput, "Responses" | "UnprocessedKeys"> & {
|
|
22
26
|
Responses?: Record<string, Record<string, NativeAttributeValue>[]> | undefined;
|
|
23
|
-
UnprocessedKeys?: Record<string,
|
|
24
|
-
Keys: Record<string, NativeAttributeValue>[] | undefined;
|
|
25
|
-
}> | undefined;
|
|
27
|
+
UnprocessedKeys?: Record<string, BatchGetKeysAndAttributes> | undefined;
|
|
26
28
|
};
|
|
27
29
|
/**
|
|
28
30
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,34 +7,43 @@ import { BatchWriteItemCommand as __BatchWriteItemCommand } from "@aws-sdk/clien
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type BatchWritePutRequest = Omit<PutRequest, "Item"> & {
|
|
14
|
+
Item: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type BatchWriteDeleteRequest = Omit<DeleteRequest, "Key"> & {
|
|
20
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type BatchWriteWriteRequest = Omit<WriteRequest, "PutRequest" | "DeleteRequest"> & {
|
|
26
|
+
PutRequest?: BatchWritePutRequest | undefined;
|
|
27
|
+
DeleteRequest?: BatchWriteDeleteRequest | undefined;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type BatchWriteItemCollectionMetrics = Omit<ItemCollectionMetrics, "ItemCollectionKey"> & {
|
|
33
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
34
|
+
};
|
|
10
35
|
/**
|
|
11
36
|
* @public
|
|
12
37
|
*/
|
|
13
38
|
export type BatchWriteCommandInput = Omit<__BatchWriteItemCommandInput, "RequestItems"> & {
|
|
14
|
-
RequestItems: Record<string, (
|
|
15
|
-
PutRequest?: (Omit<PutRequest, "Item"> & {
|
|
16
|
-
Item: Record<string, NativeAttributeValue> | undefined;
|
|
17
|
-
}) | undefined;
|
|
18
|
-
DeleteRequest?: (Omit<DeleteRequest, "Key"> & {
|
|
19
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
20
|
-
}) | undefined;
|
|
21
|
-
})[]> | undefined;
|
|
39
|
+
RequestItems: Record<string, (BatchWriteWriteRequest)[]> | undefined;
|
|
22
40
|
};
|
|
23
41
|
/**
|
|
24
42
|
* @public
|
|
25
43
|
*/
|
|
26
44
|
export type BatchWriteCommandOutput = Omit<__BatchWriteItemCommandOutput, "UnprocessedItems" | "ItemCollectionMetrics"> & {
|
|
27
|
-
UnprocessedItems?: Record<string, (
|
|
28
|
-
|
|
29
|
-
Item: Record<string, NativeAttributeValue> | undefined;
|
|
30
|
-
}) | undefined;
|
|
31
|
-
DeleteRequest?: (Omit<DeleteRequest, "Key"> & {
|
|
32
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
33
|
-
}) | undefined;
|
|
34
|
-
})[]> | undefined;
|
|
35
|
-
ItemCollectionMetrics?: Record<string, (Omit<ItemCollectionMetrics, "ItemCollectionKey"> & {
|
|
36
|
-
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
37
|
-
})[]> | undefined;
|
|
45
|
+
UnprocessedItems?: Record<string, (BatchWriteWriteRequest)[]> | undefined;
|
|
46
|
+
ItemCollectionMetrics?: Record<string, (BatchWriteItemCollectionMetrics)[]> | undefined;
|
|
38
47
|
};
|
|
39
48
|
/**
|
|
40
49
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,15 +7,25 @@ import { DeleteItemCommand as __DeleteItemCommand } from "@aws-sdk/client-dynamo
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type DeleteExpectedAttributeValue = Omit<ExpectedAttributeValue, "Value" | "AttributeValueList"> & {
|
|
14
|
+
Value?: NativeAttributeValue | undefined;
|
|
15
|
+
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type DeleteItemCollectionMetrics = Omit<ItemCollectionMetrics, "ItemCollectionKey"> & {
|
|
21
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
22
|
+
};
|
|
10
23
|
/**
|
|
11
24
|
* @public
|
|
12
25
|
*/
|
|
13
26
|
export type DeleteCommandInput = Omit<__DeleteItemCommandInput, "Key" | "Expected" | "ExpressionAttributeValues"> & {
|
|
14
27
|
Key: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
-
Expected?: Record<string,
|
|
16
|
-
Value?: NativeAttributeValue | undefined;
|
|
17
|
-
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
18
|
-
}> | undefined;
|
|
28
|
+
Expected?: Record<string, DeleteExpectedAttributeValue> | undefined;
|
|
19
29
|
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
20
30
|
};
|
|
21
31
|
/**
|
|
@@ -23,9 +33,7 @@ export type DeleteCommandInput = Omit<__DeleteItemCommandInput, "Key" | "Expecte
|
|
|
23
33
|
*/
|
|
24
34
|
export type DeleteCommandOutput = Omit<__DeleteItemCommandOutput, "Attributes" | "ItemCollectionMetrics"> & {
|
|
25
35
|
Attributes?: Record<string, NativeAttributeValue> | undefined;
|
|
26
|
-
ItemCollectionMetrics?:
|
|
27
|
-
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
28
|
-
}) | undefined;
|
|
36
|
+
ItemCollectionMetrics?: DeleteItemCollectionMetrics | undefined;
|
|
29
37
|
};
|
|
30
38
|
/**
|
|
31
39
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,6 +7,18 @@ import { DescribeExportCommand as __DescribeExportCommand } from "@aws-sdk/clien
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type DescribeExportFilterSpecification = Omit<FilterSpecification, "ExpressionAttributeValues"> & {
|
|
14
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type DescribeExportExportDescription = Omit<ExportDescription, "FilterSpecification"> & {
|
|
20
|
+
FilterSpecification?: DescribeExportFilterSpecification | undefined;
|
|
21
|
+
};
|
|
10
22
|
/**
|
|
11
23
|
* @public
|
|
12
24
|
*/
|
|
@@ -15,11 +27,7 @@ export type DescribeExportCommandInput = __DescribeExportCommandInput;
|
|
|
15
27
|
* @public
|
|
16
28
|
*/
|
|
17
29
|
export type DescribeExportCommandOutput = Omit<__DescribeExportCommandOutput, "ExportDescription"> & {
|
|
18
|
-
ExportDescription?:
|
|
19
|
-
FilterSpecification?: (Omit<FilterSpecification, "ExpressionAttributeValues"> & {
|
|
20
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
21
|
-
}) | undefined;
|
|
22
|
-
}) | undefined;
|
|
30
|
+
ExportDescription?: DescribeExportExportDescription | undefined;
|
|
23
31
|
};
|
|
24
32
|
/**
|
|
25
33
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,21 +7,29 @@ import { ExecuteTransactionCommand as __ExecuteTransactionCommand } from "@aws-s
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type ExecuteTransactionParameterizedStatement = Omit<ParameterizedStatement, "Parameters"> & {
|
|
14
|
+
Parameters?: NativeAttributeValue[] | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type ExecuteTransactionItemResponse = Omit<ItemResponse, "Item"> & {
|
|
20
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
21
|
+
};
|
|
10
22
|
/**
|
|
11
23
|
* @public
|
|
12
24
|
*/
|
|
13
25
|
export type ExecuteTransactionCommandInput = Omit<__ExecuteTransactionCommandInput, "TransactStatements"> & {
|
|
14
|
-
TransactStatements: (
|
|
15
|
-
Parameters?: NativeAttributeValue[] | undefined;
|
|
16
|
-
})[] | undefined;
|
|
26
|
+
TransactStatements: (ExecuteTransactionParameterizedStatement)[] | undefined;
|
|
17
27
|
};
|
|
18
28
|
/**
|
|
19
29
|
* @public
|
|
20
30
|
*/
|
|
21
31
|
export type ExecuteTransactionCommandOutput = Omit<__ExecuteTransactionCommandOutput, "Responses"> & {
|
|
22
|
-
Responses?: (
|
|
23
|
-
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
24
|
-
})[] | undefined;
|
|
32
|
+
Responses?: (ExecuteTransactionItemResponse)[] | undefined;
|
|
25
33
|
};
|
|
26
34
|
/**
|
|
27
35
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,23 +7,29 @@ import { ExportTableToPointInTimeCommand as __ExportTableToPointInTimeCommand }
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type ExportTableToPointInTimeFilterSpecification = Omit<FilterSpecification, "ExpressionAttributeValues"> & {
|
|
14
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type ExportTableToPointInTimeExportDescription = Omit<ExportDescription, "FilterSpecification"> & {
|
|
20
|
+
FilterSpecification?: ExportTableToPointInTimeFilterSpecification | undefined;
|
|
21
|
+
};
|
|
10
22
|
/**
|
|
11
23
|
* @public
|
|
12
24
|
*/
|
|
13
25
|
export type ExportTableToPointInTimeCommandInput = Omit<__ExportTableToPointInTimeCommandInput, "FilterSpecification"> & {
|
|
14
|
-
FilterSpecification?:
|
|
15
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
16
|
-
}) | undefined;
|
|
26
|
+
FilterSpecification?: ExportTableToPointInTimeFilterSpecification | undefined;
|
|
17
27
|
};
|
|
18
28
|
/**
|
|
19
29
|
* @public
|
|
20
30
|
*/
|
|
21
31
|
export type ExportTableToPointInTimeCommandOutput = Omit<__ExportTableToPointInTimeCommandOutput, "ExportDescription"> & {
|
|
22
|
-
ExportDescription?:
|
|
23
|
-
FilterSpecification?: (Omit<FilterSpecification, "ExpressionAttributeValues"> & {
|
|
24
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
25
|
-
}) | undefined;
|
|
26
|
-
}) | undefined;
|
|
32
|
+
ExportDescription?: ExportTableToPointInTimeExportDescription | undefined;
|
|
27
33
|
};
|
|
28
34
|
/**
|
|
29
35
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,15 +7,25 @@ import { PutItemCommand as __PutItemCommand } from "@aws-sdk/client-dynamodb";
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type PutExpectedAttributeValue = Omit<ExpectedAttributeValue, "Value" | "AttributeValueList"> & {
|
|
14
|
+
Value?: NativeAttributeValue | undefined;
|
|
15
|
+
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type PutItemCollectionMetrics = Omit<ItemCollectionMetrics, "ItemCollectionKey"> & {
|
|
21
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
22
|
+
};
|
|
10
23
|
/**
|
|
11
24
|
* @public
|
|
12
25
|
*/
|
|
13
26
|
export type PutCommandInput = Omit<__PutItemCommandInput, "Item" | "Expected" | "ExpressionAttributeValues"> & {
|
|
14
27
|
Item: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
-
Expected?: Record<string,
|
|
16
|
-
Value?: NativeAttributeValue | undefined;
|
|
17
|
-
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
18
|
-
}> | undefined;
|
|
28
|
+
Expected?: Record<string, PutExpectedAttributeValue> | undefined;
|
|
19
29
|
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
20
30
|
};
|
|
21
31
|
/**
|
|
@@ -23,9 +33,7 @@ export type PutCommandInput = Omit<__PutItemCommandInput, "Item" | "Expected" |
|
|
|
23
33
|
*/
|
|
24
34
|
export type PutCommandOutput = Omit<__PutItemCommandOutput, "Attributes" | "ItemCollectionMetrics"> & {
|
|
25
35
|
Attributes?: Record<string, NativeAttributeValue> | undefined;
|
|
26
|
-
ItemCollectionMetrics?:
|
|
27
|
-
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
28
|
-
}) | undefined;
|
|
36
|
+
ItemCollectionMetrics?: PutItemCollectionMetrics | undefined;
|
|
29
37
|
};
|
|
30
38
|
/**
|
|
31
39
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,16 +7,18 @@ import { QueryCommand as __QueryCommand } from "@aws-sdk/client-dynamodb";
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type QueryCondition = Omit<Condition, "AttributeValueList"> & {
|
|
14
|
+
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
15
|
+
};
|
|
10
16
|
/**
|
|
11
17
|
* @public
|
|
12
18
|
*/
|
|
13
19
|
export type QueryCommandInput = Omit<__QueryCommandInput, "KeyConditions" | "QueryFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues"> & {
|
|
14
|
-
KeyConditions?: Record<string,
|
|
15
|
-
|
|
16
|
-
}> | undefined;
|
|
17
|
-
QueryFilter?: Record<string, Omit<Condition, "AttributeValueList"> & {
|
|
18
|
-
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
19
|
-
}> | undefined;
|
|
20
|
+
KeyConditions?: Record<string, QueryCondition> | undefined;
|
|
21
|
+
QueryFilter?: Record<string, QueryCondition> | undefined;
|
|
20
22
|
ExclusiveStartKey?: Record<string, NativeAttributeValue> | undefined;
|
|
21
23
|
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
22
24
|
};
|
|
@@ -7,13 +7,17 @@ import { ScanCommand as __ScanCommand } from "@aws-sdk/client-dynamodb";
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type ScanCondition = Omit<Condition, "AttributeValueList"> & {
|
|
14
|
+
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
15
|
+
};
|
|
10
16
|
/**
|
|
11
17
|
* @public
|
|
12
18
|
*/
|
|
13
19
|
export type ScanCommandInput = Omit<__ScanCommandInput, "ScanFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues"> & {
|
|
14
|
-
ScanFilter?: Record<string,
|
|
15
|
-
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
16
|
-
}> | undefined;
|
|
20
|
+
ScanFilter?: Record<string, ScanCondition> | undefined;
|
|
17
21
|
ExclusiveStartKey?: Record<string, NativeAttributeValue> | undefined;
|
|
18
22
|
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
19
23
|
};
|
|
@@ -7,6 +7,12 @@ import { SearchVectorsCommand as __SearchVectorsCommand } from "@aws-sdk/client-
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type SearchVectorsSearchResultItem = Omit<SearchResultItem, "Item"> & {
|
|
14
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
};
|
|
10
16
|
/**
|
|
11
17
|
* @public
|
|
12
18
|
*/
|
|
@@ -18,9 +24,7 @@ export type SearchVectorsCommandInput = Omit<__SearchVectorsCommandInput, "Expre
|
|
|
18
24
|
* @public
|
|
19
25
|
*/
|
|
20
26
|
export type SearchVectorsCommandOutput = Omit<__SearchVectorsCommandOutput, "SearchResults"> & {
|
|
21
|
-
SearchResults?: (
|
|
22
|
-
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
23
|
-
})[] | undefined;
|
|
27
|
+
SearchResults?: (SearchVectorsSearchResultItem)[] | undefined;
|
|
24
28
|
};
|
|
25
29
|
/**
|
|
26
30
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -7,23 +7,35 @@ import { TransactGetItemsCommand as __TransactGetItemsCommand } from "@aws-sdk/c
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type TransactGetGet = Omit<Get, "Key"> & {
|
|
14
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export type TransactGetItem = Omit<ClientTransactGetItem, "Get"> & {
|
|
20
|
+
Get: TransactGetGet | undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type TransactGetItemResponse = Omit<ItemResponse, "Item"> & {
|
|
26
|
+
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
27
|
+
};
|
|
10
28
|
/**
|
|
11
29
|
* @public
|
|
12
30
|
*/
|
|
13
31
|
export type TransactGetCommandInput = Omit<__TransactGetItemsCommandInput, "TransactItems"> & {
|
|
14
|
-
TransactItems: (
|
|
15
|
-
Get: (Omit<Get, "Key"> & {
|
|
16
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
17
|
-
}) | undefined;
|
|
18
|
-
})[] | undefined;
|
|
32
|
+
TransactItems: (TransactGetItem)[] | undefined;
|
|
19
33
|
};
|
|
20
34
|
/**
|
|
21
35
|
* @public
|
|
22
36
|
*/
|
|
23
37
|
export type TransactGetCommandOutput = Omit<__TransactGetItemsCommandOutput, "Responses"> & {
|
|
24
|
-
Responses?: (
|
|
25
|
-
Item?: Record<string, NativeAttributeValue> | undefined;
|
|
26
|
-
})[] | undefined;
|
|
38
|
+
Responses?: (TransactGetItemResponse)[] | undefined;
|
|
27
39
|
};
|
|
28
40
|
/**
|
|
29
41
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -60,5 +72,5 @@ export declare class TransactGetCommand extends DynamoDBDocumentClientCommand<Tr
|
|
|
60
72
|
*/
|
|
61
73
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactGetCommandInput, TransactGetCommandOutput>;
|
|
62
74
|
}
|
|
63
|
-
import type { Get, ItemResponse, TransactGetItem, TransactGetItemsCommandInput as __TransactGetItemsCommandInput, TransactGetItemsCommandOutput as __TransactGetItemsCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
75
|
+
import type { Get, ItemResponse, TransactGetItem as ClientTransactGetItem, TransactGetItemsCommandInput as __TransactGetItemsCommandInput, TransactGetItemsCommandOutput as __TransactGetItemsCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
64
76
|
import type { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -7,36 +7,60 @@ import { TransactWriteItemsCommand as __TransactWriteItemsCommand } from "@aws-s
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type TransactWriteConditionCheck = Omit<ConditionCheck, "Key" | "ExpressionAttributeValues"> & {
|
|
14
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export type TransactWritePut = Omit<Put, "Item" | "ExpressionAttributeValues"> & {
|
|
21
|
+
Item: Record<string, NativeAttributeValue> | undefined;
|
|
22
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type TransactWriteDelete = Omit<Delete, "Key" | "ExpressionAttributeValues"> & {
|
|
28
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
29
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export type TransactWriteUpdate = Omit<Update, "Key" | "ExpressionAttributeValues"> & {
|
|
35
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
36
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export type TransactWriteItem = Omit<ClientTransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update"> & {
|
|
42
|
+
ConditionCheck?: TransactWriteConditionCheck | undefined;
|
|
43
|
+
Put?: TransactWritePut | undefined;
|
|
44
|
+
Delete?: TransactWriteDelete | undefined;
|
|
45
|
+
Update?: TransactWriteUpdate | undefined;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export type TransactWriteItemCollectionMetrics = Omit<ItemCollectionMetrics, "ItemCollectionKey"> & {
|
|
51
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
52
|
+
};
|
|
10
53
|
/**
|
|
11
54
|
* @public
|
|
12
55
|
*/
|
|
13
56
|
export type TransactWriteCommandInput = Omit<__TransactWriteItemsCommandInput, "TransactItems"> & {
|
|
14
|
-
TransactItems: (
|
|
15
|
-
ConditionCheck?: (Omit<ConditionCheck, "Key" | "ExpressionAttributeValues"> & {
|
|
16
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
17
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
18
|
-
}) | undefined;
|
|
19
|
-
Put?: (Omit<Put, "Item" | "ExpressionAttributeValues"> & {
|
|
20
|
-
Item: Record<string, NativeAttributeValue> | undefined;
|
|
21
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
22
|
-
}) | undefined;
|
|
23
|
-
Delete?: (Omit<Delete, "Key" | "ExpressionAttributeValues"> & {
|
|
24
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
25
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
26
|
-
}) | undefined;
|
|
27
|
-
Update?: (Omit<Update, "Key" | "ExpressionAttributeValues"> & {
|
|
28
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
29
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
30
|
-
}) | undefined;
|
|
31
|
-
})[] | undefined;
|
|
57
|
+
TransactItems: (TransactWriteItem)[] | undefined;
|
|
32
58
|
};
|
|
33
59
|
/**
|
|
34
60
|
* @public
|
|
35
61
|
*/
|
|
36
62
|
export type TransactWriteCommandOutput = Omit<__TransactWriteItemsCommandOutput, "ItemCollectionMetrics"> & {
|
|
37
|
-
ItemCollectionMetrics?: Record<string, (
|
|
38
|
-
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
39
|
-
})[]> | undefined;
|
|
63
|
+
ItemCollectionMetrics?: Record<string, (TransactWriteItemCollectionMetrics)[]> | undefined;
|
|
40
64
|
};
|
|
41
65
|
/**
|
|
42
66
|
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
@@ -88,5 +112,5 @@ export declare class TransactWriteCommand extends DynamoDBDocumentClientCommand<
|
|
|
88
112
|
*/
|
|
89
113
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactWriteCommandInput, TransactWriteCommandOutput>;
|
|
90
114
|
}
|
|
91
|
-
import type { ConditionCheck, Delete, ItemCollectionMetrics, Put, TransactWriteItem, TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput, TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput, Update } from "@aws-sdk/client-dynamodb";
|
|
115
|
+
import type { ConditionCheck, Delete, ItemCollectionMetrics, Put, TransactWriteItem as ClientTransactWriteItem, TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput, TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput, Update } from "@aws-sdk/client-dynamodb";
|
|
92
116
|
import type { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|