@depup/aws-sdk__lib-dynamodb 3.1005.0-depup.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/LICENSE +201 -0
- package/README.md +31 -0
- package/dist-cjs/index.js +836 -0
- package/dist-es/DynamoDBDocument.js +214 -0
- package/dist-es/DynamoDBDocumentClient.js +20 -0
- package/dist-es/baseCommand/DynamoDBDocumentClientCommand.js +32 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +39 -0
- package/dist-es/commands/BatchGetCommand.js +45 -0
- package/dist-es/commands/BatchWriteCommand.js +57 -0
- package/dist-es/commands/DeleteCommand.js +38 -0
- package/dist-es/commands/ExecuteStatementCommand.js +31 -0
- package/dist-es/commands/ExecuteTransactionCommand.js +36 -0
- package/dist-es/commands/GetCommand.js +28 -0
- package/dist-es/commands/PutCommand.js +38 -0
- package/dist-es/commands/QueryCommand.js +42 -0
- package/dist-es/commands/ScanCommand.js +37 -0
- package/dist-es/commands/TransactGetCommand.js +38 -0
- package/dist-es/commands/TransactWriteCommand.js +53 -0
- package/dist-es/commands/UpdateCommand.js +43 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/commands/utils.js +80 -0
- package/dist-es/index.js +5 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/QueryPaginator.js +4 -0
- package/dist-es/pagination/ScanPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-types/DynamoDBDocument.d.ts +195 -0
- package/dist-types/DynamoDBDocumentClient.d.ts +96 -0
- package/dist-types/baseCommand/DynamoDBDocumentClientCommand.d.ts +17 -0
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +66 -0
- package/dist-types/commands/BatchGetCommand.d.ts +70 -0
- package/dist-types/commands/BatchWriteCommand.d.ts +94 -0
- package/dist-types/commands/DeleteCommand.d.ts +66 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +52 -0
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +60 -0
- package/dist-types/commands/GetCommand.d.ts +48 -0
- package/dist-types/commands/PutCommand.d.ts +66 -0
- package/dist-types/commands/QueryCommand.d.ts +70 -0
- package/dist-types/commands/ScanCommand.d.ts +62 -0
- package/dist-types/commands/TransactGetCommand.d.ts +64 -0
- package/dist-types/commands/TransactWriteCommand.d.ts +92 -0
- package/dist-types/commands/UpdateCommand.d.ts +74 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/commands/utils.d.ts +33 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +13 -0
- package/dist-types/pagination/QueryPaginator.d.ts +11 -0
- package/dist-types/pagination/ScanPaginator.d.ts +11 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/DynamoDBDocument.d.ts +221 -0
- package/dist-types/ts3.4/DynamoDBDocumentClient.d.ts +105 -0
- package/dist-types/ts3.4/baseCommand/DynamoDBDocumentClientCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +96 -0
- package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +92 -0
- package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +142 -0
- package/dist-types/ts3.4/commands/DeleteCommand.d.ts +96 -0
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +61 -0
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +78 -0
- package/dist-types/ts3.4/commands/GetCommand.d.ts +57 -0
- package/dist-types/ts3.4/commands/PutCommand.d.ts +93 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +96 -0
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +80 -0
- package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +82 -0
- package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +151 -0
- package/dist-types/ts3.4/commands/UpdateCommand.d.ts +113 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/commands/utils.d.ts +17 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +8 -0
- package/dist-types/ts3.4/pagination/QueryPaginator.d.ts +12 -0
- package/dist-types/ts3.4/pagination/ScanPaginator.d.ts +9 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/package.json +87 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { type HttpHandlerOptions as __HttpHandlerOptions, Handler, MiddlewareStack } from "@smithy/types";
|
|
3
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
4
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
5
|
+
import { TransactWriteItemsCommand as __TransactWriteItemsCommand } from "@aws-sdk/client-dynamodb";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type TransactWriteCommandInput = Omit<__TransactWriteItemsCommandInput, 'TransactItems'> & {
|
|
14
|
+
TransactItems: (Omit<TransactWriteItem, 'ConditionCheck' | 'Put' | 'Delete' | 'Update'> & {
|
|
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;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export type TransactWriteCommandOutput = Omit<__TransactWriteItemsCommandOutput, 'ItemCollectionMetrics'> & {
|
|
37
|
+
ItemCollectionMetrics?: Record<string, (Omit<ItemCollectionMetrics, 'ItemCollectionKey'> & {
|
|
38
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
39
|
+
})[]> | undefined;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
43
|
+
* TransactWriteItemsCommand operation from {@link @aws-sdk/client-dynamodb#TransactWriteItemsCommand}.
|
|
44
|
+
*
|
|
45
|
+
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
46
|
+
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export declare class TransactWriteCommand extends DynamoDBDocumentClientCommand<TransactWriteCommandInput, TransactWriteCommandOutput, __TransactWriteItemsCommandInput, __TransactWriteItemsCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
51
|
+
readonly input: TransactWriteCommandInput;
|
|
52
|
+
protected readonly inputKeyNodes: {
|
|
53
|
+
TransactItems: {
|
|
54
|
+
'*': {
|
|
55
|
+
ConditionCheck: {
|
|
56
|
+
Key: import("../commands/utils").KeyNodeChildren;
|
|
57
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
58
|
+
};
|
|
59
|
+
Put: {
|
|
60
|
+
Item: import("../commands/utils").KeyNodeChildren;
|
|
61
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
62
|
+
};
|
|
63
|
+
Delete: {
|
|
64
|
+
Key: import("../commands/utils").KeyNodeChildren;
|
|
65
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
66
|
+
};
|
|
67
|
+
Update: {
|
|
68
|
+
Key: import("../commands/utils").KeyNodeChildren;
|
|
69
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
protected readonly outputKeyNodes: {
|
|
75
|
+
ItemCollectionMetrics: {
|
|
76
|
+
'*': {
|
|
77
|
+
'*': {
|
|
78
|
+
ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
protected readonly clientCommand: __TransactWriteItemsCommand;
|
|
84
|
+
readonly middlewareStack: MiddlewareStack<TransactWriteCommandInput | __TransactWriteItemsCommandInput, TransactWriteCommandOutput | __TransactWriteItemsCommandOutput>;
|
|
85
|
+
constructor(input: TransactWriteCommandInput);
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactWriteCommandInput, TransactWriteCommandOutput>;
|
|
90
|
+
}
|
|
91
|
+
import type { ConditionCheck, Delete, ItemCollectionMetrics, Put, TransactWriteItem, TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput, TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput, Update } from "@aws-sdk/client-dynamodb";
|
|
92
|
+
import type { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { type HttpHandlerOptions as __HttpHandlerOptions, Handler, MiddlewareStack } from "@smithy/types";
|
|
3
|
+
import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
|
|
4
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
5
|
+
import { UpdateItemCommand as __UpdateItemCommand } from "@aws-sdk/client-dynamodb";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { DynamoDBDocumentClientCommand, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export type UpdateCommandInput = Omit<__UpdateItemCommandInput, 'Key' | 'AttributeUpdates' | 'Expected' | 'ExpressionAttributeValues'> & {
|
|
14
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
15
|
+
AttributeUpdates?: Record<string, Omit<AttributeValueUpdate, 'Value'> & {
|
|
16
|
+
Value?: NativeAttributeValue | undefined;
|
|
17
|
+
}> | undefined;
|
|
18
|
+
Expected?: Record<string, Omit<ExpectedAttributeValue, 'Value' | 'AttributeValueList'> & {
|
|
19
|
+
Value?: NativeAttributeValue | undefined;
|
|
20
|
+
AttributeValueList?: (NativeAttributeValue)[] | undefined;
|
|
21
|
+
}> | undefined;
|
|
22
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type UpdateCommandOutput = Omit<__UpdateItemCommandOutput, 'Attributes' | 'ItemCollectionMetrics'> & {
|
|
28
|
+
Attributes?: Record<string, NativeAttributeValue> | undefined;
|
|
29
|
+
ItemCollectionMetrics?: Omit<ItemCollectionMetrics, 'ItemCollectionKey'> & {
|
|
30
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
35
|
+
* UpdateItemCommand operation from {@link @aws-sdk/client-dynamodb#UpdateItemCommand}.
|
|
36
|
+
*
|
|
37
|
+
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
38
|
+
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare class UpdateCommand extends DynamoDBDocumentClientCommand<UpdateCommandInput, UpdateCommandOutput, __UpdateItemCommandInput, __UpdateItemCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
43
|
+
readonly input: UpdateCommandInput;
|
|
44
|
+
protected readonly inputKeyNodes: {
|
|
45
|
+
Key: import("../commands/utils").KeyNodeChildren;
|
|
46
|
+
AttributeUpdates: {
|
|
47
|
+
'*': {
|
|
48
|
+
Value: null;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
Expected: {
|
|
52
|
+
'*': {
|
|
53
|
+
Value: null;
|
|
54
|
+
AttributeValueList: import("../commands/utils").KeyNodeChildren;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
|
|
58
|
+
};
|
|
59
|
+
protected readonly outputKeyNodes: {
|
|
60
|
+
Attributes: import("../commands/utils").KeyNodeChildren;
|
|
61
|
+
ItemCollectionMetrics: {
|
|
62
|
+
ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
protected readonly clientCommand: __UpdateItemCommand;
|
|
66
|
+
readonly middlewareStack: MiddlewareStack<UpdateCommandInput | __UpdateItemCommandInput, UpdateCommandOutput | __UpdateItemCommandOutput>;
|
|
67
|
+
constructor(input: UpdateCommandInput);
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateCommandInput, UpdateCommandOutput>;
|
|
72
|
+
}
|
|
73
|
+
import type { AttributeValueUpdate, ExpectedAttributeValue, ItemCollectionMetrics, UpdateItemCommandInput as __UpdateItemCommandInput, UpdateItemCommandOutput as __UpdateItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
74
|
+
import type { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './BatchExecuteStatementCommand';
|
|
2
|
+
export * from './BatchGetCommand';
|
|
3
|
+
export * from './BatchWriteCommand';
|
|
4
|
+
export * from './DeleteCommand';
|
|
5
|
+
export * from './ExecuteStatementCommand';
|
|
6
|
+
export * from './ExecuteTransactionCommand';
|
|
7
|
+
export * from './GetCommand';
|
|
8
|
+
export * from './PutCommand';
|
|
9
|
+
export * from './QueryCommand';
|
|
10
|
+
export * from './ScanCommand';
|
|
11
|
+
export * from './TransactGetCommand';
|
|
12
|
+
export * from './TransactWriteCommand';
|
|
13
|
+
export * from './UpdateCommand';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export type KeyNodeSelf = null;
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const SELF: KeyNodeSelf;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export type KeyNodeChildren = Record<string, any>;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const ALL_VALUES: KeyNodeChildren;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare const ALL_MEMBERS: KeyNodeChildren;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export type KeyNodes = KeyNodeSelf | KeyNodeChildren;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const marshallInput: (obj: any, keyNodes: KeyNodeChildren, options?: marshallOptions) => any;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare const unmarshallOutput: (obj: any, keyNodes: KeyNodeChildren, options?: unmarshallOptions) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './commands';
|
|
2
|
+
export * from './pagination';
|
|
3
|
+
export * from './DynamoDBDocumentClient';
|
|
4
|
+
export * from './DynamoDBDocument';
|
|
5
|
+
export { NumberValueImpl as NumberValue } from "@aws-sdk/util-dynamodb";
|
|
6
|
+
export { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
7
|
+
export { NativeAttributeValue, NativeAttributeBinary, NativeScalarAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@smithy/types";
|
|
2
|
+
import { DynamoDBDocument } from "../DynamoDBDocument";
|
|
3
|
+
import { DynamoDBDocumentClient } from "../DynamoDBDocumentClient";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export { PaginationConfiguration };
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface DynamoDBDocumentPaginationConfiguration extends PaginationConfiguration {
|
|
12
|
+
client: DynamoDBDocument | DynamoDBDocumentClient;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { QueryCommandInput, QueryCommandOutput } from "../commands/QueryCommand";
|
|
3
|
+
import { DynamoDBDocumentPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export { Paginator };
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare const paginateQuery: (config: DynamoDBDocumentPaginationConfiguration, input: QueryCommandInput, ...additionalArguments: any) => Paginator<QueryCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ScanCommandInput, ScanCommandOutput } from "../commands/ScanCommand";
|
|
3
|
+
import { DynamoDBDocumentPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export { Paginator };
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare const paginateScan: (config: DynamoDBDocumentPaginationConfiguration, input: ScanCommandInput, ...additionalArguments: any) => Paginator<ScanCommandOutput>;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
BatchExecuteStatementCommandInput,
|
|
4
|
+
BatchExecuteStatementCommandOutput,
|
|
5
|
+
} from "./commands/BatchExecuteStatementCommand";
|
|
6
|
+
import {
|
|
7
|
+
BatchGetCommandInput,
|
|
8
|
+
BatchGetCommandOutput,
|
|
9
|
+
} from "./commands/BatchGetCommand";
|
|
10
|
+
import {
|
|
11
|
+
BatchWriteCommandInput,
|
|
12
|
+
BatchWriteCommandOutput,
|
|
13
|
+
} from "./commands/BatchWriteCommand";
|
|
14
|
+
import {
|
|
15
|
+
DeleteCommandInput,
|
|
16
|
+
DeleteCommandOutput,
|
|
17
|
+
} from "./commands/DeleteCommand";
|
|
18
|
+
import {
|
|
19
|
+
ExecuteStatementCommandInput,
|
|
20
|
+
ExecuteStatementCommandOutput,
|
|
21
|
+
} from "./commands/ExecuteStatementCommand";
|
|
22
|
+
import {
|
|
23
|
+
ExecuteTransactionCommandInput,
|
|
24
|
+
ExecuteTransactionCommandOutput,
|
|
25
|
+
} from "./commands/ExecuteTransactionCommand";
|
|
26
|
+
import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
27
|
+
import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
28
|
+
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
29
|
+
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
30
|
+
import {
|
|
31
|
+
TransactGetCommandInput,
|
|
32
|
+
TransactGetCommandOutput,
|
|
33
|
+
} from "./commands/TransactGetCommand";
|
|
34
|
+
import {
|
|
35
|
+
TransactWriteCommandInput,
|
|
36
|
+
TransactWriteCommandOutput,
|
|
37
|
+
} from "./commands/TransactWriteCommand";
|
|
38
|
+
import {
|
|
39
|
+
UpdateCommandInput,
|
|
40
|
+
UpdateCommandOutput,
|
|
41
|
+
} from "./commands/UpdateCommand";
|
|
42
|
+
import {
|
|
43
|
+
DynamoDBDocumentClient,
|
|
44
|
+
TranslateConfig,
|
|
45
|
+
} from "./DynamoDBDocumentClient";
|
|
46
|
+
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
|
|
47
|
+
export declare class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
48
|
+
static from(
|
|
49
|
+
client: DynamoDBClient,
|
|
50
|
+
translateConfig?: TranslateConfig
|
|
51
|
+
): DynamoDBDocument;
|
|
52
|
+
batchExecuteStatement(
|
|
53
|
+
args: BatchExecuteStatementCommandInput,
|
|
54
|
+
options?: __HttpHandlerOptions
|
|
55
|
+
): Promise<BatchExecuteStatementCommandOutput>;
|
|
56
|
+
batchExecuteStatement(
|
|
57
|
+
args: BatchExecuteStatementCommandInput,
|
|
58
|
+
cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void
|
|
59
|
+
): void;
|
|
60
|
+
batchExecuteStatement(
|
|
61
|
+
args: BatchExecuteStatementCommandInput,
|
|
62
|
+
options: __HttpHandlerOptions,
|
|
63
|
+
cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void
|
|
64
|
+
): void;
|
|
65
|
+
batchGet(
|
|
66
|
+
args: BatchGetCommandInput,
|
|
67
|
+
options?: __HttpHandlerOptions
|
|
68
|
+
): Promise<BatchGetCommandOutput>;
|
|
69
|
+
batchGet(
|
|
70
|
+
args: BatchGetCommandInput,
|
|
71
|
+
cb: (err: any, data?: BatchGetCommandOutput) => void
|
|
72
|
+
): void;
|
|
73
|
+
batchGet(
|
|
74
|
+
args: BatchGetCommandInput,
|
|
75
|
+
options: __HttpHandlerOptions,
|
|
76
|
+
cb: (err: any, data?: BatchGetCommandOutput) => void
|
|
77
|
+
): void;
|
|
78
|
+
batchWrite(
|
|
79
|
+
args: BatchWriteCommandInput,
|
|
80
|
+
options?: __HttpHandlerOptions
|
|
81
|
+
): Promise<BatchWriteCommandOutput>;
|
|
82
|
+
batchWrite(
|
|
83
|
+
args: BatchWriteCommandInput,
|
|
84
|
+
cb: (err: any, data?: BatchWriteCommandOutput) => void
|
|
85
|
+
): void;
|
|
86
|
+
batchWrite(
|
|
87
|
+
args: BatchWriteCommandInput,
|
|
88
|
+
options: __HttpHandlerOptions,
|
|
89
|
+
cb: (err: any, data?: BatchWriteCommandOutput) => void
|
|
90
|
+
): void;
|
|
91
|
+
delete(
|
|
92
|
+
args: DeleteCommandInput,
|
|
93
|
+
options?: __HttpHandlerOptions
|
|
94
|
+
): Promise<DeleteCommandOutput>;
|
|
95
|
+
delete(
|
|
96
|
+
args: DeleteCommandInput,
|
|
97
|
+
cb: (err: any, data?: DeleteCommandOutput) => void
|
|
98
|
+
): void;
|
|
99
|
+
delete(
|
|
100
|
+
args: DeleteCommandInput,
|
|
101
|
+
options: __HttpHandlerOptions,
|
|
102
|
+
cb: (err: any, data?: DeleteCommandOutput) => void
|
|
103
|
+
): void;
|
|
104
|
+
executeStatement(
|
|
105
|
+
args: ExecuteStatementCommandInput,
|
|
106
|
+
options?: __HttpHandlerOptions
|
|
107
|
+
): Promise<ExecuteStatementCommandOutput>;
|
|
108
|
+
executeStatement(
|
|
109
|
+
args: ExecuteStatementCommandInput,
|
|
110
|
+
cb: (err: any, data?: ExecuteStatementCommandOutput) => void
|
|
111
|
+
): void;
|
|
112
|
+
executeStatement(
|
|
113
|
+
args: ExecuteStatementCommandInput,
|
|
114
|
+
options: __HttpHandlerOptions,
|
|
115
|
+
cb: (err: any, data?: ExecuteStatementCommandOutput) => void
|
|
116
|
+
): void;
|
|
117
|
+
executeTransaction(
|
|
118
|
+
args: ExecuteTransactionCommandInput,
|
|
119
|
+
options?: __HttpHandlerOptions
|
|
120
|
+
): Promise<ExecuteTransactionCommandOutput>;
|
|
121
|
+
executeTransaction(
|
|
122
|
+
args: ExecuteTransactionCommandInput,
|
|
123
|
+
cb: (err: any, data?: ExecuteTransactionCommandOutput) => void
|
|
124
|
+
): void;
|
|
125
|
+
executeTransaction(
|
|
126
|
+
args: ExecuteTransactionCommandInput,
|
|
127
|
+
options: __HttpHandlerOptions,
|
|
128
|
+
cb: (err: any, data?: ExecuteTransactionCommandOutput) => void
|
|
129
|
+
): void;
|
|
130
|
+
get(
|
|
131
|
+
args: GetCommandInput,
|
|
132
|
+
options?: __HttpHandlerOptions
|
|
133
|
+
): Promise<GetCommandOutput>;
|
|
134
|
+
get(
|
|
135
|
+
args: GetCommandInput,
|
|
136
|
+
cb: (err: any, data?: GetCommandOutput) => void
|
|
137
|
+
): void;
|
|
138
|
+
get(
|
|
139
|
+
args: GetCommandInput,
|
|
140
|
+
options: __HttpHandlerOptions,
|
|
141
|
+
cb: (err: any, data?: GetCommandOutput) => void
|
|
142
|
+
): void;
|
|
143
|
+
put(
|
|
144
|
+
args: PutCommandInput,
|
|
145
|
+
options?: __HttpHandlerOptions
|
|
146
|
+
): Promise<PutCommandOutput>;
|
|
147
|
+
put(
|
|
148
|
+
args: PutCommandInput,
|
|
149
|
+
cb: (err: any, data?: PutCommandOutput) => void
|
|
150
|
+
): void;
|
|
151
|
+
put(
|
|
152
|
+
args: PutCommandInput,
|
|
153
|
+
options: __HttpHandlerOptions,
|
|
154
|
+
cb: (err: any, data?: PutCommandOutput) => void
|
|
155
|
+
): void;
|
|
156
|
+
query(
|
|
157
|
+
args: QueryCommandInput,
|
|
158
|
+
options?: __HttpHandlerOptions
|
|
159
|
+
): Promise<QueryCommandOutput>;
|
|
160
|
+
query(
|
|
161
|
+
args: QueryCommandInput,
|
|
162
|
+
cb: (err: any, data?: QueryCommandOutput) => void
|
|
163
|
+
): void;
|
|
164
|
+
query(
|
|
165
|
+
args: QueryCommandInput,
|
|
166
|
+
options: __HttpHandlerOptions,
|
|
167
|
+
cb: (err: any, data?: QueryCommandOutput) => void
|
|
168
|
+
): void;
|
|
169
|
+
scan(
|
|
170
|
+
args: ScanCommandInput,
|
|
171
|
+
options?: __HttpHandlerOptions
|
|
172
|
+
): Promise<ScanCommandOutput>;
|
|
173
|
+
scan(
|
|
174
|
+
args: ScanCommandInput,
|
|
175
|
+
cb: (err: any, data?: ScanCommandOutput) => void
|
|
176
|
+
): void;
|
|
177
|
+
scan(
|
|
178
|
+
args: ScanCommandInput,
|
|
179
|
+
options: __HttpHandlerOptions,
|
|
180
|
+
cb: (err: any, data?: ScanCommandOutput) => void
|
|
181
|
+
): void;
|
|
182
|
+
transactGet(
|
|
183
|
+
args: TransactGetCommandInput,
|
|
184
|
+
options?: __HttpHandlerOptions
|
|
185
|
+
): Promise<TransactGetCommandOutput>;
|
|
186
|
+
transactGet(
|
|
187
|
+
args: TransactGetCommandInput,
|
|
188
|
+
cb: (err: any, data?: TransactGetCommandOutput) => void
|
|
189
|
+
): void;
|
|
190
|
+
transactGet(
|
|
191
|
+
args: TransactGetCommandInput,
|
|
192
|
+
options: __HttpHandlerOptions,
|
|
193
|
+
cb: (err: any, data?: TransactGetCommandOutput) => void
|
|
194
|
+
): void;
|
|
195
|
+
transactWrite(
|
|
196
|
+
args: TransactWriteCommandInput,
|
|
197
|
+
options?: __HttpHandlerOptions
|
|
198
|
+
): Promise<TransactWriteCommandOutput>;
|
|
199
|
+
transactWrite(
|
|
200
|
+
args: TransactWriteCommandInput,
|
|
201
|
+
cb: (err: any, data?: TransactWriteCommandOutput) => void
|
|
202
|
+
): void;
|
|
203
|
+
transactWrite(
|
|
204
|
+
args: TransactWriteCommandInput,
|
|
205
|
+
options: __HttpHandlerOptions,
|
|
206
|
+
cb: (err: any, data?: TransactWriteCommandOutput) => void
|
|
207
|
+
): void;
|
|
208
|
+
update(
|
|
209
|
+
args: UpdateCommandInput,
|
|
210
|
+
options?: __HttpHandlerOptions
|
|
211
|
+
): Promise<UpdateCommandOutput>;
|
|
212
|
+
update(
|
|
213
|
+
args: UpdateCommandInput,
|
|
214
|
+
cb: (err: any, data?: UpdateCommandOutput) => void
|
|
215
|
+
): void;
|
|
216
|
+
update(
|
|
217
|
+
args: UpdateCommandInput,
|
|
218
|
+
options: __HttpHandlerOptions,
|
|
219
|
+
cb: (err: any, data?: UpdateCommandOutput) => void
|
|
220
|
+
): void;
|
|
221
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Client as __Client } from "@smithy/smithy-client";
|
|
2
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BatchExecuteStatementCommandInput,
|
|
5
|
+
BatchExecuteStatementCommandOutput,
|
|
6
|
+
} from "./commands/BatchExecuteStatementCommand";
|
|
7
|
+
import {
|
|
8
|
+
BatchGetCommandInput,
|
|
9
|
+
BatchGetCommandOutput,
|
|
10
|
+
} from "./commands/BatchGetCommand";
|
|
11
|
+
import {
|
|
12
|
+
BatchWriteCommandInput,
|
|
13
|
+
BatchWriteCommandOutput,
|
|
14
|
+
} from "./commands/BatchWriteCommand";
|
|
15
|
+
import {
|
|
16
|
+
DeleteCommandInput,
|
|
17
|
+
DeleteCommandOutput,
|
|
18
|
+
} from "./commands/DeleteCommand";
|
|
19
|
+
import {
|
|
20
|
+
ExecuteStatementCommandInput,
|
|
21
|
+
ExecuteStatementCommandOutput,
|
|
22
|
+
} from "./commands/ExecuteStatementCommand";
|
|
23
|
+
import {
|
|
24
|
+
ExecuteTransactionCommandInput,
|
|
25
|
+
ExecuteTransactionCommandOutput,
|
|
26
|
+
} from "./commands/ExecuteTransactionCommand";
|
|
27
|
+
import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
28
|
+
import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
29
|
+
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
30
|
+
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
31
|
+
import {
|
|
32
|
+
TransactGetCommandInput,
|
|
33
|
+
TransactGetCommandOutput,
|
|
34
|
+
} from "./commands/TransactGetCommand";
|
|
35
|
+
import {
|
|
36
|
+
TransactWriteCommandInput,
|
|
37
|
+
TransactWriteCommandOutput,
|
|
38
|
+
} from "./commands/TransactWriteCommand";
|
|
39
|
+
import {
|
|
40
|
+
UpdateCommandInput,
|
|
41
|
+
UpdateCommandOutput,
|
|
42
|
+
} from "./commands/UpdateCommand";
|
|
43
|
+
import {
|
|
44
|
+
DynamoDBClient,
|
|
45
|
+
DynamoDBClientResolvedConfig,
|
|
46
|
+
ServiceInputTypes as __ServiceInputTypes,
|
|
47
|
+
ServiceOutputTypes as __ServiceOutputTypes,
|
|
48
|
+
} from "@aws-sdk/client-dynamodb";
|
|
49
|
+
import { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
50
|
+
export { __Client };
|
|
51
|
+
export type ServiceInputTypes =
|
|
52
|
+
| __ServiceInputTypes
|
|
53
|
+
| BatchExecuteStatementCommandInput
|
|
54
|
+
| BatchGetCommandInput
|
|
55
|
+
| BatchWriteCommandInput
|
|
56
|
+
| DeleteCommandInput
|
|
57
|
+
| ExecuteStatementCommandInput
|
|
58
|
+
| ExecuteTransactionCommandInput
|
|
59
|
+
| GetCommandInput
|
|
60
|
+
| PutCommandInput
|
|
61
|
+
| QueryCommandInput
|
|
62
|
+
| ScanCommandInput
|
|
63
|
+
| TransactGetCommandInput
|
|
64
|
+
| TransactWriteCommandInput
|
|
65
|
+
| UpdateCommandInput;
|
|
66
|
+
export type ServiceOutputTypes =
|
|
67
|
+
| __ServiceOutputTypes
|
|
68
|
+
| BatchExecuteStatementCommandOutput
|
|
69
|
+
| BatchGetCommandOutput
|
|
70
|
+
| BatchWriteCommandOutput
|
|
71
|
+
| DeleteCommandOutput
|
|
72
|
+
| ExecuteStatementCommandOutput
|
|
73
|
+
| ExecuteTransactionCommandOutput
|
|
74
|
+
| GetCommandOutput
|
|
75
|
+
| PutCommandOutput
|
|
76
|
+
| QueryCommandOutput
|
|
77
|
+
| ScanCommandOutput
|
|
78
|
+
| TransactGetCommandOutput
|
|
79
|
+
| TransactWriteCommandOutput
|
|
80
|
+
| UpdateCommandOutput;
|
|
81
|
+
export type TranslateConfig = {
|
|
82
|
+
marshallOptions?: marshallOptions;
|
|
83
|
+
unmarshallOptions?: unmarshallOptions;
|
|
84
|
+
};
|
|
85
|
+
export type DynamoDBDocumentClientResolvedConfig =
|
|
86
|
+
DynamoDBClientResolvedConfig & {
|
|
87
|
+
translateConfig?: TranslateConfig;
|
|
88
|
+
};
|
|
89
|
+
export declare class DynamoDBDocumentClient extends __Client<
|
|
90
|
+
__HttpHandlerOptions,
|
|
91
|
+
ServiceInputTypes,
|
|
92
|
+
ServiceOutputTypes,
|
|
93
|
+
DynamoDBDocumentClientResolvedConfig
|
|
94
|
+
> {
|
|
95
|
+
readonly config: DynamoDBDocumentClientResolvedConfig;
|
|
96
|
+
protected constructor(
|
|
97
|
+
client: DynamoDBClient,
|
|
98
|
+
translateConfig?: TranslateConfig
|
|
99
|
+
);
|
|
100
|
+
static from(
|
|
101
|
+
client: DynamoDBClient,
|
|
102
|
+
translateConfig?: TranslateConfig
|
|
103
|
+
): DynamoDBDocumentClient;
|
|
104
|
+
destroy(): void;
|
|
105
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MiddlewareStack } from "@smithy/types";
|
|
3
|
+
import { KeyNodeChildren } from "../commands/utils";
|
|
4
|
+
import { DynamoDBDocumentClientResolvedConfig } from "../DynamoDBDocumentClient";
|
|
5
|
+
export declare abstract class DynamoDBDocumentClientCommand<
|
|
6
|
+
Input extends object,
|
|
7
|
+
Output extends object,
|
|
8
|
+
BaseInput extends object,
|
|
9
|
+
BaseOutput extends object,
|
|
10
|
+
ResolvedClientConfiguration
|
|
11
|
+
> extends $Command<
|
|
12
|
+
Input | BaseInput,
|
|
13
|
+
Output | BaseOutput,
|
|
14
|
+
ResolvedClientConfiguration
|
|
15
|
+
> {
|
|
16
|
+
protected abstract readonly inputKeyNodes: KeyNodeChildren;
|
|
17
|
+
protected abstract readonly outputKeyNodes: KeyNodeChildren;
|
|
18
|
+
protected abstract clientCommand: $Command<
|
|
19
|
+
Input | BaseInput,
|
|
20
|
+
Output | BaseOutput,
|
|
21
|
+
ResolvedClientConfiguration
|
|
22
|
+
>;
|
|
23
|
+
abstract middlewareStack: MiddlewareStack<
|
|
24
|
+
Input | BaseInput,
|
|
25
|
+
Output | BaseOutput
|
|
26
|
+
>;
|
|
27
|
+
protected addMarshallingMiddleware(
|
|
28
|
+
configuration: DynamoDBDocumentClientResolvedConfig
|
|
29
|
+
): void;
|
|
30
|
+
}
|