@aws-sdk/lib-dynamodb 3.131.0 → 3.142.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/CHANGELOG.md +27 -0
- package/README.md +73 -0
- package/dist-cjs/baseCommand/DynamoDBDocumentClientCommand.js +28 -0
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +8 -13
- package/dist-cjs/commands/BatchGetCommand.js +8 -13
- package/dist-cjs/commands/BatchWriteCommand.js +8 -13
- package/dist-cjs/commands/DeleteCommand.js +8 -13
- package/dist-cjs/commands/ExecuteStatementCommand.js +8 -13
- package/dist-cjs/commands/ExecuteTransactionCommand.js +8 -13
- package/dist-cjs/commands/GetCommand.js +8 -13
- package/dist-cjs/commands/PutCommand.js +8 -13
- package/dist-cjs/commands/QueryCommand.js +8 -13
- package/dist-cjs/commands/ScanCommand.js +8 -13
- package/dist-cjs/commands/TransactGetCommand.js +8 -13
- package/dist-cjs/commands/TransactWriteCommand.js +8 -13
- package/dist-cjs/commands/UpdateCommand.js +8 -13
- package/dist-es/baseCommand/DynamoDBDocumentClientCommand.js +45 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +11 -18
- package/dist-es/commands/BatchGetCommand.js +11 -18
- package/dist-es/commands/BatchWriteCommand.js +11 -18
- package/dist-es/commands/DeleteCommand.js +11 -18
- package/dist-es/commands/ExecuteStatementCommand.js +11 -18
- package/dist-es/commands/ExecuteTransactionCommand.js +11 -18
- package/dist-es/commands/GetCommand.js +11 -18
- package/dist-es/commands/PutCommand.js +11 -18
- package/dist-es/commands/QueryCommand.js +11 -18
- package/dist-es/commands/ScanCommand.js +11 -18
- package/dist-es/commands/TransactGetCommand.js +11 -18
- package/dist-es/commands/TransactWriteCommand.js +11 -18
- package/dist-es/commands/UpdateCommand.js +11 -18
- package/dist-types/baseCommand/DynamoDBDocumentClientCommand.d.ts +15 -0
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +17 -5
- package/dist-types/commands/BatchGetCommand.d.ts +26 -5
- package/dist-types/commands/BatchWriteCommand.d.ts +34 -5
- package/dist-types/commands/DeleteCommand.d.ts +25 -5
- package/dist-types/commands/ExecuteStatementCommand.d.ts +11 -5
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +17 -5
- package/dist-types/commands/GetCommand.d.ts +11 -5
- package/dist-types/commands/PutCommand.d.ts +25 -5
- package/dist-types/commands/QueryCommand.d.ts +19 -5
- package/dist-types/commands/ScanCommand.d.ts +19 -5
- package/dist-types/commands/TransactGetCommand.d.ts +20 -5
- package/dist-types/commands/TransactWriteCommand.d.ts +22 -5
- package/dist-types/commands/UpdateCommand.d.ts +25 -5
- package/dist-types/ts3.4/baseCommand/DynamoDBDocumentClientCommand.d.ts +12 -0
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +17 -5
- package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +26 -5
- package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +34 -5
- package/dist-types/ts3.4/commands/DeleteCommand.d.ts +25 -5
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +11 -5
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +17 -5
- package/dist-types/ts3.4/commands/GetCommand.d.ts +11 -5
- package/dist-types/ts3.4/commands/PutCommand.d.ts +25 -5
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +19 -5
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +19 -5
- package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +20 -5
- package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +22 -5
- package/dist-types/ts3.4/commands/UpdateCommand.d.ts +25 -5
- package/package.json +4 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __awaiter, __extends, __generator } from "tslib";
|
|
2
2
|
import { UpdateItemCommand as __UpdateItemCommand, } from "@aws-sdk/client-dynamodb";
|
|
3
|
-
import {
|
|
4
|
-
import { marshallInput, unmarshallOutput } from "../commands/utils";
|
|
3
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
4
|
var UpdateCommand = (function (_super) {
|
|
6
5
|
__extends(UpdateCommand, _super);
|
|
7
6
|
function UpdateCommand(input) {
|
|
@@ -27,25 +26,19 @@ var UpdateCommand = (function (_super) {
|
|
|
27
26
|
{ key: "Attributes" },
|
|
28
27
|
{ key: "ItemCollectionMetrics", children: [{ key: "ItemCollectionKey" }] },
|
|
29
28
|
];
|
|
29
|
+
_this.clientCommand = new __UpdateItemCommand(_this.input);
|
|
30
|
+
_this.middlewareStack = _this.clientCommand.middlewareStack;
|
|
30
31
|
return _this;
|
|
31
32
|
}
|
|
32
33
|
UpdateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
33
34
|
var _this = this;
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
var handler =
|
|
37
|
-
return function () { return __awaiter(_this, void 0, void 0, function () {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
switch (_a.label) {
|
|
41
|
-
case 0: return [4, handler(command)];
|
|
42
|
-
case 1:
|
|
43
|
-
data = _a.sent();
|
|
44
|
-
return [2, __assign(__assign({}, data), { output: unmarshallOutput(data.output, this.outputKeyNodes, unmarshallOptions) })];
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}); };
|
|
35
|
+
this.addMarshallingMiddleware(configuration);
|
|
36
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
37
|
+
var handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
38
|
+
return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
39
|
+
return [2, handler(this.clientCommand)];
|
|
40
|
+
}); }); };
|
|
48
41
|
};
|
|
49
42
|
return UpdateCommand;
|
|
50
|
-
}(
|
|
43
|
+
}(DynamoDBDocumentClientCommand));
|
|
51
44
|
export { UpdateCommand };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KeyNode } from "../commands/utils";
|
|
4
|
+
import { DynamoDBDocumentClientResolvedConfig } from "../DynamoDBDocumentClient";
|
|
5
|
+
/**
|
|
6
|
+
* Base class for Commands in lib-dynamodb used to pass middleware to
|
|
7
|
+
* the underlying DynamoDBClient Commands.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class DynamoDBDocumentClientCommand<Input extends object, Output extends object, BaseInput extends object, BaseOutput extends object, ResolvedClientConfiguration> extends $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration> {
|
|
10
|
+
protected abstract readonly inputKeyNodes: KeyNode[];
|
|
11
|
+
protected abstract readonly outputKeyNodes: KeyNode[];
|
|
12
|
+
protected abstract clientCommand: $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration>;
|
|
13
|
+
abstract middlewareStack: MiddlewareStack<Input | BaseInput, Output | BaseOutput>;
|
|
14
|
+
protected addMarshallingMiddleware(configuration: DynamoDBDocumentClientResolvedConfig): void;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BatchExecuteStatementCommandInput as __BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput as __BatchExecuteStatementCommandOutput, BatchStatementRequest, BatchStatementResponse } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { BatchExecuteStatementCommand as __BatchExecuteStatementCommand, BatchExecuteStatementCommandInput as __BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput as __BatchExecuteStatementCommandOutput, BatchStatementRequest, BatchStatementResponse } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type BatchExecuteStatementCommandInput = Omit<__BatchExecuteStatementCommandInput, "Statements"> & {
|
|
7
7
|
Statements: (Omit<BatchStatementRequest, "Parameters"> & {
|
|
@@ -20,10 +20,22 @@ export declare type BatchExecuteStatementCommandOutput = Omit<__BatchExecuteStat
|
|
|
20
20
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
21
21
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
22
22
|
*/
|
|
23
|
-
export declare class BatchExecuteStatementCommand extends
|
|
23
|
+
export declare class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, __BatchExecuteStatementCommandInput, __BatchExecuteStatementCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
24
24
|
readonly input: BatchExecuteStatementCommandInput;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
protected readonly inputKeyNodes: {
|
|
26
|
+
key: string;
|
|
27
|
+
children: {
|
|
28
|
+
key: string;
|
|
29
|
+
}[];
|
|
30
|
+
}[];
|
|
31
|
+
protected readonly outputKeyNodes: {
|
|
32
|
+
key: string;
|
|
33
|
+
children: {
|
|
34
|
+
key: string;
|
|
35
|
+
}[];
|
|
36
|
+
}[];
|
|
37
|
+
protected readonly clientCommand: __BatchExecuteStatementCommand;
|
|
38
|
+
readonly middlewareStack: MiddlewareStack<BatchExecuteStatementCommandInput | __BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput | __BatchExecuteStatementCommandOutput>;
|
|
27
39
|
constructor(input: BatchExecuteStatementCommandInput);
|
|
28
40
|
/**
|
|
29
41
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BatchGetItemCommandInput as __BatchGetItemCommandInput, BatchGetItemCommandOutput as __BatchGetItemCommandOutput, KeysAndAttributes } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { BatchGetItemCommand as __BatchGetItemCommand, BatchGetItemCommandInput as __BatchGetItemCommandInput, BatchGetItemCommandOutput as __BatchGetItemCommandOutput, KeysAndAttributes } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type BatchGetCommandInput = Omit<__BatchGetItemCommandInput, "RequestItems"> & {
|
|
7
7
|
RequestItems: Record<string, Omit<KeysAndAttributes, "Keys"> & {
|
|
@@ -21,10 +21,31 @@ export declare type BatchGetCommandOutput = Omit<__BatchGetItemCommandOutput, "R
|
|
|
21
21
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
22
22
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
23
23
|
*/
|
|
24
|
-
export declare class BatchGetCommand extends
|
|
24
|
+
export declare class BatchGetCommand extends DynamoDBDocumentClientCommand<BatchGetCommandInput, BatchGetCommandOutput, __BatchGetItemCommandInput, __BatchGetItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
25
25
|
readonly input: BatchGetCommandInput;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
protected readonly inputKeyNodes: {
|
|
27
|
+
key: string;
|
|
28
|
+
children: {
|
|
29
|
+
children: {
|
|
30
|
+
key: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
}[];
|
|
34
|
+
protected readonly outputKeyNodes: ({
|
|
35
|
+
key: string;
|
|
36
|
+
children: {
|
|
37
|
+
children?: undefined;
|
|
38
|
+
};
|
|
39
|
+
} | {
|
|
40
|
+
key: string;
|
|
41
|
+
children: {
|
|
42
|
+
children: {
|
|
43
|
+
key: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
})[];
|
|
47
|
+
protected readonly clientCommand: __BatchGetItemCommand;
|
|
48
|
+
readonly middlewareStack: MiddlewareStack<BatchGetCommandInput | __BatchGetItemCommandInput, BatchGetCommandOutput | __BatchGetItemCommandOutput>;
|
|
28
49
|
constructor(input: BatchGetCommandInput);
|
|
29
50
|
/**
|
|
30
51
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BatchWriteItemCommandInput as __BatchWriteItemCommandInput, BatchWriteItemCommandOutput as __BatchWriteItemCommandOutput, DeleteRequest, ItemCollectionMetrics, PutRequest, WriteRequest } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { BatchWriteItemCommand as __BatchWriteItemCommand, BatchWriteItemCommandInput as __BatchWriteItemCommandInput, BatchWriteItemCommandOutput as __BatchWriteItemCommandOutput, DeleteRequest, ItemCollectionMetrics, PutRequest, WriteRequest } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type BatchWriteCommandInput = Omit<__BatchWriteItemCommandInput, "RequestItems"> & {
|
|
7
7
|
RequestItems: Record<string, (Omit<WriteRequest, "PutRequest" | "DeleteRequest"> & {
|
|
@@ -33,10 +33,39 @@ export declare type BatchWriteCommandOutput = Omit<__BatchWriteItemCommandOutput
|
|
|
33
33
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
34
34
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
35
35
|
*/
|
|
36
|
-
export declare class BatchWriteCommand extends
|
|
36
|
+
export declare class BatchWriteCommand extends DynamoDBDocumentClientCommand<BatchWriteCommandInput, BatchWriteCommandOutput, __BatchWriteItemCommandInput, __BatchWriteItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
37
37
|
readonly input: BatchWriteCommandInput;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
protected readonly inputKeyNodes: {
|
|
39
|
+
key: string;
|
|
40
|
+
children: {
|
|
41
|
+
children: {
|
|
42
|
+
key: string;
|
|
43
|
+
children: {
|
|
44
|
+
key: string;
|
|
45
|
+
}[];
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
}[];
|
|
49
|
+
protected readonly outputKeyNodes: ({
|
|
50
|
+
key: string;
|
|
51
|
+
children: {
|
|
52
|
+
children: {
|
|
53
|
+
key: string;
|
|
54
|
+
children: {
|
|
55
|
+
key: string;
|
|
56
|
+
}[];
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
} | {
|
|
60
|
+
key: string;
|
|
61
|
+
children: {
|
|
62
|
+
children: {
|
|
63
|
+
key: string;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
})[];
|
|
67
|
+
protected readonly clientCommand: __BatchWriteItemCommand;
|
|
68
|
+
readonly middlewareStack: MiddlewareStack<BatchWriteCommandInput | __BatchWriteItemCommandInput, BatchWriteCommandOutput | __BatchWriteItemCommandOutput>;
|
|
40
69
|
constructor(input: BatchWriteCommandInput);
|
|
41
70
|
/**
|
|
42
71
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeleteItemCommandInput as __DeleteItemCommandInput, DeleteItemCommandOutput as __DeleteItemCommandOutput, ExpectedAttributeValue, ItemCollectionMetrics } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { DeleteItemCommand as __DeleteItemCommand, DeleteItemCommandInput as __DeleteItemCommandInput, DeleteItemCommandOutput as __DeleteItemCommandOutput, ExpectedAttributeValue, ItemCollectionMetrics } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type DeleteCommandInput = Omit<__DeleteItemCommandInput, "Key" | "Expected" | "ExpressionAttributeValues"> & {
|
|
7
7
|
Key: Record<string, NativeAttributeValue> | undefined;
|
|
@@ -24,10 +24,30 @@ export declare type DeleteCommandOutput = Omit<__DeleteItemCommandOutput, "Attri
|
|
|
24
24
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
25
25
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
26
26
|
*/
|
|
27
|
-
export declare class DeleteCommand extends
|
|
27
|
+
export declare class DeleteCommand extends DynamoDBDocumentClientCommand<DeleteCommandInput, DeleteCommandOutput, __DeleteItemCommandInput, __DeleteItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
28
28
|
readonly input: DeleteCommandInput;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
protected readonly inputKeyNodes: ({
|
|
30
|
+
key: string;
|
|
31
|
+
children?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
key: string;
|
|
34
|
+
children: {
|
|
35
|
+
children: {
|
|
36
|
+
key: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
})[];
|
|
40
|
+
protected readonly outputKeyNodes: ({
|
|
41
|
+
key: string;
|
|
42
|
+
children?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
key: string;
|
|
45
|
+
children: {
|
|
46
|
+
key: string;
|
|
47
|
+
}[];
|
|
48
|
+
})[];
|
|
49
|
+
protected readonly clientCommand: __DeleteItemCommand;
|
|
50
|
+
readonly middlewareStack: MiddlewareStack<DeleteCommandInput | __DeleteItemCommandInput, DeleteCommandOutput | __DeleteItemCommandOutput>;
|
|
31
51
|
constructor(input: DeleteCommandInput);
|
|
32
52
|
/**
|
|
33
53
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExecuteStatementCommandInput as __ExecuteStatementCommandInput, ExecuteStatementCommandOutput as __ExecuteStatementCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { ExecuteStatementCommand as __ExecuteStatementCommand, ExecuteStatementCommandInput as __ExecuteStatementCommandInput, ExecuteStatementCommandOutput as __ExecuteStatementCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type ExecuteStatementCommandInput = Omit<__ExecuteStatementCommandInput, "Parameters"> & {
|
|
7
7
|
Parameters?: NativeAttributeValue[];
|
|
@@ -17,10 +17,16 @@ export declare type ExecuteStatementCommandOutput = Omit<__ExecuteStatementComma
|
|
|
17
17
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
18
18
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
19
19
|
*/
|
|
20
|
-
export declare class ExecuteStatementCommand extends
|
|
20
|
+
export declare class ExecuteStatementCommand extends DynamoDBDocumentClientCommand<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, __ExecuteStatementCommandInput, __ExecuteStatementCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
21
21
|
readonly input: ExecuteStatementCommandInput;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
protected readonly inputKeyNodes: {
|
|
23
|
+
key: string;
|
|
24
|
+
}[];
|
|
25
|
+
protected readonly outputKeyNodes: {
|
|
26
|
+
key: string;
|
|
27
|
+
}[];
|
|
28
|
+
protected readonly clientCommand: __ExecuteStatementCommand;
|
|
29
|
+
readonly middlewareStack: MiddlewareStack<ExecuteStatementCommandInput | __ExecuteStatementCommandInput, ExecuteStatementCommandOutput | __ExecuteStatementCommandOutput>;
|
|
24
30
|
constructor(input: ExecuteStatementCommandInput);
|
|
25
31
|
/**
|
|
26
32
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExecuteTransactionCommandInput as __ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput as __ExecuteTransactionCommandOutput, ItemResponse, ParameterizedStatement } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { ExecuteTransactionCommand as __ExecuteTransactionCommand, ExecuteTransactionCommandInput as __ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput as __ExecuteTransactionCommandOutput, ItemResponse, ParameterizedStatement } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type ExecuteTransactionCommandInput = Omit<__ExecuteTransactionCommandInput, "TransactStatements"> & {
|
|
7
7
|
TransactStatements: (Omit<ParameterizedStatement, "Parameters"> & {
|
|
@@ -20,10 +20,22 @@ export declare type ExecuteTransactionCommandOutput = Omit<__ExecuteTransactionC
|
|
|
20
20
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
21
21
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
22
22
|
*/
|
|
23
|
-
export declare class ExecuteTransactionCommand extends
|
|
23
|
+
export declare class ExecuteTransactionCommand extends DynamoDBDocumentClientCommand<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput, __ExecuteTransactionCommandInput, __ExecuteTransactionCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
24
24
|
readonly input: ExecuteTransactionCommandInput;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
protected readonly inputKeyNodes: {
|
|
26
|
+
key: string;
|
|
27
|
+
children: {
|
|
28
|
+
key: string;
|
|
29
|
+
}[];
|
|
30
|
+
}[];
|
|
31
|
+
protected readonly outputKeyNodes: {
|
|
32
|
+
key: string;
|
|
33
|
+
children: {
|
|
34
|
+
key: string;
|
|
35
|
+
}[];
|
|
36
|
+
}[];
|
|
37
|
+
protected readonly clientCommand: __ExecuteTransactionCommand;
|
|
38
|
+
readonly middlewareStack: MiddlewareStack<ExecuteTransactionCommandInput | __ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput | __ExecuteTransactionCommandOutput>;
|
|
27
39
|
constructor(input: ExecuteTransactionCommandInput);
|
|
28
40
|
/**
|
|
29
41
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetItemCommandInput as __GetItemCommandInput, GetItemCommandOutput as __GetItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { GetItemCommand as __GetItemCommand, GetItemCommandInput as __GetItemCommandInput, GetItemCommandOutput as __GetItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type GetCommandInput = Omit<__GetItemCommandInput, "Key"> & {
|
|
7
7
|
Key: Record<string, NativeAttributeValue> | undefined;
|
|
@@ -16,10 +16,16 @@ export declare type GetCommandOutput = Omit<__GetItemCommandOutput, "Item"> & {
|
|
|
16
16
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
17
17
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
18
18
|
*/
|
|
19
|
-
export declare class GetCommand extends
|
|
19
|
+
export declare class GetCommand extends DynamoDBDocumentClientCommand<GetCommandInput, GetCommandOutput, __GetItemCommandInput, __GetItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
20
20
|
readonly input: GetCommandInput;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
protected readonly inputKeyNodes: {
|
|
22
|
+
key: string;
|
|
23
|
+
}[];
|
|
24
|
+
protected readonly outputKeyNodes: {
|
|
25
|
+
key: string;
|
|
26
|
+
}[];
|
|
27
|
+
protected readonly clientCommand: __GetItemCommand;
|
|
28
|
+
readonly middlewareStack: MiddlewareStack<GetCommandInput | __GetItemCommandInput, GetCommandOutput | __GetItemCommandOutput>;
|
|
23
29
|
constructor(input: GetCommandInput);
|
|
24
30
|
/**
|
|
25
31
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExpectedAttributeValue, ItemCollectionMetrics, PutItemCommandInput as __PutItemCommandInput, PutItemCommandOutput as __PutItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { ExpectedAttributeValue, ItemCollectionMetrics, PutItemCommand as __PutItemCommand, PutItemCommandInput as __PutItemCommandInput, PutItemCommandOutput as __PutItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type PutCommandInput = Omit<__PutItemCommandInput, "Item" | "Expected" | "ExpressionAttributeValues"> & {
|
|
7
7
|
Item: Record<string, NativeAttributeValue> | undefined;
|
|
@@ -24,10 +24,30 @@ export declare type PutCommandOutput = Omit<__PutItemCommandOutput, "Attributes"
|
|
|
24
24
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
25
25
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
26
26
|
*/
|
|
27
|
-
export declare class PutCommand extends
|
|
27
|
+
export declare class PutCommand extends DynamoDBDocumentClientCommand<PutCommandInput, PutCommandOutput, __PutItemCommandInput, __PutItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
28
28
|
readonly input: PutCommandInput;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
protected readonly inputKeyNodes: ({
|
|
30
|
+
key: string;
|
|
31
|
+
children?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
key: string;
|
|
34
|
+
children: {
|
|
35
|
+
children: {
|
|
36
|
+
key: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
})[];
|
|
40
|
+
protected readonly outputKeyNodes: ({
|
|
41
|
+
key: string;
|
|
42
|
+
children?: undefined;
|
|
43
|
+
} | {
|
|
44
|
+
key: string;
|
|
45
|
+
children: {
|
|
46
|
+
key: string;
|
|
47
|
+
}[];
|
|
48
|
+
})[];
|
|
49
|
+
protected readonly clientCommand: __PutItemCommand;
|
|
50
|
+
readonly middlewareStack: MiddlewareStack<PutCommandInput | __PutItemCommandInput, PutCommandOutput | __PutItemCommandOutput>;
|
|
31
51
|
constructor(input: PutCommandInput);
|
|
32
52
|
/**
|
|
33
53
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Condition, QueryCommandInput as __QueryCommandInput, QueryCommandOutput as __QueryCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { Condition, QueryCommand as __QueryCommand, QueryCommandInput as __QueryCommandInput, QueryCommandOutput as __QueryCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type QueryCommandInput = Omit<__QueryCommandInput, "KeyConditions" | "QueryFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues"> & {
|
|
7
7
|
KeyConditions?: Record<string, Omit<Condition, "AttributeValueList"> & {
|
|
@@ -24,10 +24,24 @@ export declare type QueryCommandOutput = Omit<__QueryCommandOutput, "Items" | "L
|
|
|
24
24
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
25
25
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
26
26
|
*/
|
|
27
|
-
export declare class QueryCommand extends
|
|
27
|
+
export declare class QueryCommand extends DynamoDBDocumentClientCommand<QueryCommandInput, QueryCommandOutput, __QueryCommandInput, __QueryCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
28
28
|
readonly input: QueryCommandInput;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
protected readonly inputKeyNodes: ({
|
|
30
|
+
key: string;
|
|
31
|
+
children: {
|
|
32
|
+
children: {
|
|
33
|
+
key: string;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
} | {
|
|
37
|
+
key: string;
|
|
38
|
+
children?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
protected readonly outputKeyNodes: {
|
|
41
|
+
key: string;
|
|
42
|
+
}[];
|
|
43
|
+
protected readonly clientCommand: __QueryCommand;
|
|
44
|
+
readonly middlewareStack: MiddlewareStack<QueryCommandInput | __QueryCommandInput, QueryCommandOutput | __QueryCommandOutput>;
|
|
31
45
|
constructor(input: QueryCommandInput);
|
|
32
46
|
/**
|
|
33
47
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Condition, ScanCommandInput as __ScanCommandInput, ScanCommandOutput as __ScanCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { Condition, ScanCommand as __ScanCommand, ScanCommandInput as __ScanCommandInput, ScanCommandOutput as __ScanCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type ScanCommandInput = Omit<__ScanCommandInput, "ScanFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues"> & {
|
|
7
7
|
ScanFilter?: Record<string, Omit<Condition, "AttributeValueList"> & {
|
|
@@ -21,10 +21,24 @@ export declare type ScanCommandOutput = Omit<__ScanCommandOutput, "Items" | "Las
|
|
|
21
21
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
22
22
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
23
23
|
*/
|
|
24
|
-
export declare class ScanCommand extends
|
|
24
|
+
export declare class ScanCommand extends DynamoDBDocumentClientCommand<ScanCommandInput, ScanCommandOutput, __ScanCommandInput, __ScanCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
25
25
|
readonly input: ScanCommandInput;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
protected readonly inputKeyNodes: ({
|
|
27
|
+
key: string;
|
|
28
|
+
children: {
|
|
29
|
+
children: {
|
|
30
|
+
key: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
key: string;
|
|
35
|
+
children?: undefined;
|
|
36
|
+
})[];
|
|
37
|
+
protected readonly outputKeyNodes: {
|
|
38
|
+
key: string;
|
|
39
|
+
}[];
|
|
40
|
+
protected readonly clientCommand: __ScanCommand;
|
|
41
|
+
readonly middlewareStack: MiddlewareStack<ScanCommandInput | __ScanCommandInput, ScanCommandOutput | __ScanCommandOutput>;
|
|
28
42
|
constructor(input: ScanCommandInput);
|
|
29
43
|
/**
|
|
30
44
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Get, ItemResponse, TransactGetItem, TransactGetItemsCommandInput as __TransactGetItemsCommandInput, TransactGetItemsCommandOutput as __TransactGetItemsCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { Get, ItemResponse, TransactGetItem, TransactGetItemsCommand as __TransactGetItemsCommand, TransactGetItemsCommandInput as __TransactGetItemsCommandInput, TransactGetItemsCommandOutput as __TransactGetItemsCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type TransactGetCommandInput = Omit<__TransactGetItemsCommandInput, "TransactItems"> & {
|
|
7
7
|
TransactItems: (Omit<TransactGetItem, "Get"> & {
|
|
@@ -22,10 +22,25 @@ export declare type TransactGetCommandOutput = Omit<__TransactGetItemsCommandOut
|
|
|
22
22
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
23
23
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
24
24
|
*/
|
|
25
|
-
export declare class TransactGetCommand extends
|
|
25
|
+
export declare class TransactGetCommand extends DynamoDBDocumentClientCommand<TransactGetCommandInput, TransactGetCommandOutput, __TransactGetItemsCommandInput, __TransactGetItemsCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
26
26
|
readonly input: TransactGetCommandInput;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
protected readonly inputKeyNodes: {
|
|
28
|
+
key: string;
|
|
29
|
+
children: {
|
|
30
|
+
key: string;
|
|
31
|
+
children: {
|
|
32
|
+
key: string;
|
|
33
|
+
}[];
|
|
34
|
+
}[];
|
|
35
|
+
}[];
|
|
36
|
+
protected readonly outputKeyNodes: {
|
|
37
|
+
key: string;
|
|
38
|
+
children: {
|
|
39
|
+
key: string;
|
|
40
|
+
}[];
|
|
41
|
+
}[];
|
|
42
|
+
protected readonly clientCommand: __TransactGetItemsCommand;
|
|
43
|
+
readonly middlewareStack: MiddlewareStack<TransactGetCommandInput | __TransactGetItemsCommandInput, TransactGetCommandOutput | __TransactGetItemsCommandOutput>;
|
|
29
44
|
constructor(input: TransactGetCommandInput);
|
|
30
45
|
/**
|
|
31
46
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConditionCheck, Delete, ItemCollectionMetrics, Put, TransactWriteItem, TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput, TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput, Update } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { ConditionCheck, Delete, ItemCollectionMetrics, Put, TransactWriteItem, TransactWriteItemsCommand as __TransactWriteItemsCommand, TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput, TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput, Update } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type TransactWriteCommandInput = Omit<__TransactWriteItemsCommandInput, "TransactItems"> & {
|
|
7
7
|
TransactItems: (Omit<TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update"> & {
|
|
@@ -35,10 +35,27 @@ export declare type TransactWriteCommandOutput = Omit<__TransactWriteItemsComman
|
|
|
35
35
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
36
36
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
37
37
|
*/
|
|
38
|
-
export declare class TransactWriteCommand extends
|
|
38
|
+
export declare class TransactWriteCommand extends DynamoDBDocumentClientCommand<TransactWriteCommandInput, TransactWriteCommandOutput, __TransactWriteItemsCommandInput, __TransactWriteItemsCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
39
39
|
readonly input: TransactWriteCommandInput;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
protected readonly inputKeyNodes: {
|
|
41
|
+
key: string;
|
|
42
|
+
children: {
|
|
43
|
+
key: string;
|
|
44
|
+
children: {
|
|
45
|
+
key: string;
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
}[];
|
|
49
|
+
protected readonly outputKeyNodes: {
|
|
50
|
+
key: string;
|
|
51
|
+
children: {
|
|
52
|
+
children: {
|
|
53
|
+
key: string;
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
}[];
|
|
57
|
+
protected readonly clientCommand: __TransactWriteItemsCommand;
|
|
58
|
+
readonly middlewareStack: MiddlewareStack<TransactWriteCommandInput | __TransactWriteItemsCommandInput, TransactWriteCommandOutput | __TransactWriteItemsCommandOutput>;
|
|
42
59
|
constructor(input: TransactWriteCommandInput);
|
|
43
60
|
/**
|
|
44
61
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AttributeValueUpdate, ExpectedAttributeValue, ItemCollectionMetrics, UpdateItemCommandInput as __UpdateItemCommandInput, UpdateItemCommandOutput as __UpdateItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { AttributeValueUpdate, ExpectedAttributeValue, ItemCollectionMetrics, UpdateItemCommand as __UpdateItemCommand, UpdateItemCommandInput as __UpdateItemCommandInput, UpdateItemCommandOutput as __UpdateItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
3
2
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
3
|
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
4
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
5
5
|
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
6
|
export declare type UpdateCommandInput = Omit<__UpdateItemCommandInput, "Key" | "AttributeUpdates" | "Expected" | "ExpressionAttributeValues"> & {
|
|
7
7
|
Key: Record<string, NativeAttributeValue> | undefined;
|
|
@@ -27,10 +27,30 @@ export declare type UpdateCommandOutput = Omit<__UpdateItemCommandOutput, "Attri
|
|
|
27
27
|
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
28
28
|
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
29
29
|
*/
|
|
30
|
-
export declare class UpdateCommand extends
|
|
30
|
+
export declare class UpdateCommand extends DynamoDBDocumentClientCommand<UpdateCommandInput, UpdateCommandOutput, __UpdateItemCommandInput, __UpdateItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
31
31
|
readonly input: UpdateCommandInput;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
protected readonly inputKeyNodes: ({
|
|
33
|
+
key: string;
|
|
34
|
+
children?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
key: string;
|
|
37
|
+
children: {
|
|
38
|
+
children: {
|
|
39
|
+
key: string;
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
})[];
|
|
43
|
+
protected readonly outputKeyNodes: ({
|
|
44
|
+
key: string;
|
|
45
|
+
children?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
key: string;
|
|
48
|
+
children: {
|
|
49
|
+
key: string;
|
|
50
|
+
}[];
|
|
51
|
+
})[];
|
|
52
|
+
protected readonly clientCommand: __UpdateItemCommand;
|
|
53
|
+
readonly middlewareStack: MiddlewareStack<UpdateCommandInput | __UpdateItemCommandInput, UpdateCommandOutput | __UpdateItemCommandOutput>;
|
|
34
54
|
constructor(input: UpdateCommandInput);
|
|
35
55
|
/**
|
|
36
56
|
* @internal
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KeyNode } from "../commands/utils";
|
|
4
|
+
import { DynamoDBDocumentClientResolvedConfig } from "../DynamoDBDocumentClient";
|
|
5
|
+
|
|
6
|
+
export declare abstract class DynamoDBDocumentClientCommand<Input extends object, Output extends object, BaseInput extends object, BaseOutput extends object, ResolvedClientConfiguration> extends $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration> {
|
|
7
|
+
protected abstract readonly inputKeyNodes: KeyNode[];
|
|
8
|
+
protected abstract readonly outputKeyNodes: KeyNode[];
|
|
9
|
+
protected abstract clientCommand: $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration>;
|
|
10
|
+
abstract middlewareStack: MiddlewareStack<Input | BaseInput, Output | BaseOutput>;
|
|
11
|
+
protected addMarshallingMiddleware(configuration: DynamoDBDocumentClientResolvedConfig): void;
|
|
12
|
+
}
|