@aws-sdk/lib-dynamodb 3.50.0 → 3.51.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 +8 -0
- package/dist-types/ts3.4/DynamoDBDocument.d.ts +72 -0
- package/dist-types/ts3.4/DynamoDBDocumentClient.d.ts +33 -0
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +22 -0
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +26 -0
- package/dist-types/ts3.4/commands/GetCommand.d.ts +24 -0
- package/dist-types/ts3.4/commands/PutCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +59 -0
- package/dist-types/ts3.4/commands/UpdateCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/commands/utils.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/QueryPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ScanPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
3
|
+
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
4
|
+
import { BatchGetCommandInput, BatchGetCommandOutput } from "./commands/BatchGetCommand";
|
|
5
|
+
import { BatchWriteCommandInput, BatchWriteCommandOutput } from "./commands/BatchWriteCommand";
|
|
6
|
+
import { DeleteCommandInput, DeleteCommandOutput } from "./commands/DeleteCommand";
|
|
7
|
+
import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand";
|
|
8
|
+
import { ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput } from "./commands/ExecuteTransactionCommand";
|
|
9
|
+
import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
10
|
+
import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
11
|
+
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
12
|
+
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
13
|
+
import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
|
|
14
|
+
import { TransactWriteCommandInput, TransactWriteCommandOutput } from "./commands/TransactWriteCommand";
|
|
15
|
+
import { UpdateCommandInput, UpdateCommandOutput } from "./commands/UpdateCommand";
|
|
16
|
+
import { DynamoDBDocumentClient, TranslateConfig } from "./DynamoDBDocumentClient";
|
|
17
|
+
|
|
18
|
+
export declare class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
19
|
+
static from(client: DynamoDBClient, translateConfig?: TranslateConfig): DynamoDBDocument;
|
|
20
|
+
|
|
21
|
+
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchExecuteStatementCommandOutput>;
|
|
22
|
+
batchExecuteStatement(args: BatchExecuteStatementCommandInput, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
|
|
23
|
+
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
|
|
24
|
+
|
|
25
|
+
batchGet(args: BatchGetCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetCommandOutput>;
|
|
26
|
+
batchGet(args: BatchGetCommandInput, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
|
|
27
|
+
batchGet(args: BatchGetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
|
|
28
|
+
|
|
29
|
+
batchWrite(args: BatchWriteCommandInput, options?: __HttpHandlerOptions): Promise<BatchWriteCommandOutput>;
|
|
30
|
+
batchWrite(args: BatchWriteCommandInput, cb: (err: any, data?: BatchWriteCommandOutput) => void): void;
|
|
31
|
+
batchWrite(args: BatchWriteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchWriteCommandOutput) => void): void;
|
|
32
|
+
|
|
33
|
+
delete(args: DeleteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommandOutput>;
|
|
34
|
+
delete(args: DeleteCommandInput, cb: (err: any, data?: DeleteCommandOutput) => void): void;
|
|
35
|
+
delete(args: DeleteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCommandOutput) => void): void;
|
|
36
|
+
|
|
37
|
+
executeStatement(args: ExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteStatementCommandOutput>;
|
|
38
|
+
executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
|
|
39
|
+
executeStatement(args: ExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
|
|
40
|
+
|
|
41
|
+
executeTransaction(args: ExecuteTransactionCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteTransactionCommandOutput>;
|
|
42
|
+
executeTransaction(args: ExecuteTransactionCommandInput, cb: (err: any, data?: ExecuteTransactionCommandOutput) => void): void;
|
|
43
|
+
executeTransaction(args: ExecuteTransactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteTransactionCommandOutput) => void): void;
|
|
44
|
+
|
|
45
|
+
get(args: GetCommandInput, options?: __HttpHandlerOptions): Promise<GetCommandOutput>;
|
|
46
|
+
get(args: GetCommandInput, cb: (err: any, data?: GetCommandOutput) => void): void;
|
|
47
|
+
get(args: GetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCommandOutput) => void): void;
|
|
48
|
+
|
|
49
|
+
put(args: PutCommandInput, options?: __HttpHandlerOptions): Promise<PutCommandOutput>;
|
|
50
|
+
put(args: PutCommandInput, cb: (err: any, data?: PutCommandOutput) => void): void;
|
|
51
|
+
put(args: PutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCommandOutput) => void): void;
|
|
52
|
+
|
|
53
|
+
query(args: QueryCommandInput, options?: __HttpHandlerOptions): Promise<QueryCommandOutput>;
|
|
54
|
+
query(args: QueryCommandInput, cb: (err: any, data?: QueryCommandOutput) => void): void;
|
|
55
|
+
query(args: QueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryCommandOutput) => void): void;
|
|
56
|
+
|
|
57
|
+
scan(args: ScanCommandInput, options?: __HttpHandlerOptions): Promise<ScanCommandOutput>;
|
|
58
|
+
scan(args: ScanCommandInput, cb: (err: any, data?: ScanCommandOutput) => void): void;
|
|
59
|
+
scan(args: ScanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ScanCommandOutput) => void): void;
|
|
60
|
+
|
|
61
|
+
transactGet(args: TransactGetCommandInput, options?: __HttpHandlerOptions): Promise<TransactGetCommandOutput>;
|
|
62
|
+
transactGet(args: TransactGetCommandInput, cb: (err: any, data?: TransactGetCommandOutput) => void): void;
|
|
63
|
+
transactGet(args: TransactGetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TransactGetCommandOutput) => void): void;
|
|
64
|
+
|
|
65
|
+
transactWrite(args: TransactWriteCommandInput, options?: __HttpHandlerOptions): Promise<TransactWriteCommandOutput>;
|
|
66
|
+
transactWrite(args: TransactWriteCommandInput, cb: (err: any, data?: TransactWriteCommandOutput) => void): void;
|
|
67
|
+
transactWrite(args: TransactWriteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TransactWriteCommandOutput) => void): void;
|
|
68
|
+
|
|
69
|
+
update(args: UpdateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCommandOutput>;
|
|
70
|
+
update(args: UpdateCommandInput, cb: (err: any, data?: UpdateCommandOutput) => void): void;
|
|
71
|
+
update(args: UpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCommandOutput) => void): void;
|
|
72
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DynamoDBClient, DynamoDBClientResolvedConfig, ServiceInputTypes as __ServiceInputTypes, ServiceOutputTypes as __ServiceOutputTypes } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { Client as __Client } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
4
|
+
import { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
6
|
+
import { BatchGetCommandInput, BatchGetCommandOutput } from "./commands/BatchGetCommand";
|
|
7
|
+
import { BatchWriteCommandInput, BatchWriteCommandOutput } from "./commands/BatchWriteCommand";
|
|
8
|
+
import { DeleteCommandInput, DeleteCommandOutput } from "./commands/DeleteCommand";
|
|
9
|
+
import { ExecuteStatementCommandInput, ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand";
|
|
10
|
+
import { ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput } from "./commands/ExecuteTransactionCommand";
|
|
11
|
+
import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
|
|
12
|
+
import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
|
|
13
|
+
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
|
|
14
|
+
import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
|
|
15
|
+
import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
|
|
16
|
+
import { TransactWriteCommandInput, TransactWriteCommandOutput } from "./commands/TransactWriteCommand";
|
|
17
|
+
import { UpdateCommandInput, UpdateCommandOutput } from "./commands/UpdateCommand";
|
|
18
|
+
export declare type ServiceInputTypes = __ServiceInputTypes | BatchExecuteStatementCommandInput | BatchGetCommandInput | BatchWriteCommandInput | DeleteCommandInput | ExecuteStatementCommandInput | ExecuteTransactionCommandInput | GetCommandInput | PutCommandInput | QueryCommandInput | ScanCommandInput | TransactGetCommandInput | TransactWriteCommandInput | UpdateCommandInput;
|
|
19
|
+
export declare type ServiceOutputTypes = __ServiceOutputTypes | BatchExecuteStatementCommandOutput | BatchGetCommandOutput | BatchWriteCommandOutput | DeleteCommandOutput | ExecuteStatementCommandOutput | ExecuteTransactionCommandOutput | GetCommandOutput | PutCommandOutput | QueryCommandOutput | ScanCommandOutput | TransactGetCommandOutput | TransactWriteCommandOutput | UpdateCommandOutput;
|
|
20
|
+
export declare type TranslateConfig = {
|
|
21
|
+
marshallOptions?: marshallOptions;
|
|
22
|
+
unmarshallOptions?: unmarshallOptions;
|
|
23
|
+
};
|
|
24
|
+
export declare type DynamoDBDocumentClientResolvedConfig = DynamoDBClientResolvedConfig & {
|
|
25
|
+
translateConfig?: TranslateConfig;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare class DynamoDBDocumentClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DynamoDBDocumentClientResolvedConfig> {
|
|
29
|
+
readonly config: DynamoDBDocumentClientResolvedConfig;
|
|
30
|
+
protected constructor(client: DynamoDBClient, translateConfig?: TranslateConfig);
|
|
31
|
+
static from(client: DynamoDBClient, translateConfig?: TranslateConfig): DynamoDBDocumentClient;
|
|
32
|
+
destroy(): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type BatchExecuteStatementCommandInput = Pick<__BatchExecuteStatementCommandInput, Exclude<keyof __BatchExecuteStatementCommandInput, "Statements">> & {
|
|
7
|
+
Statements: (Pick<BatchStatementRequest, Exclude<keyof BatchStatementRequest, "Parameters">> & {
|
|
8
|
+
Parameters?: NativeAttributeValue[];
|
|
9
|
+
})[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare type BatchExecuteStatementCommandOutput = Pick<__BatchExecuteStatementCommandOutput, Exclude<keyof __BatchExecuteStatementCommandOutput, "Responses">> & {
|
|
12
|
+
Responses?: (Pick<BatchStatementResponse, Exclude<keyof BatchStatementResponse, "Item">> & {
|
|
13
|
+
Item?: {
|
|
14
|
+
[key: string]: NativeAttributeValue;
|
|
15
|
+
};
|
|
16
|
+
})[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare class BatchExecuteStatementCommand extends $Command<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
20
|
+
readonly input: BatchExecuteStatementCommandInput;
|
|
21
|
+
private readonly inputKeyNodes;
|
|
22
|
+
private readonly outputKeyNodes;
|
|
23
|
+
constructor(input: BatchExecuteStatementCommandInput);
|
|
24
|
+
|
|
25
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BatchGetItemCommandInput as __BatchGetItemCommandInput, BatchGetItemCommandOutput as __BatchGetItemCommandOutput, KeysAndAttributes } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type BatchGetCommandInput = Pick<__BatchGetItemCommandInput, Exclude<keyof __BatchGetItemCommandInput, "RequestItems">> & {
|
|
7
|
+
RequestItems: {
|
|
8
|
+
[key: string]: Pick<KeysAndAttributes, Exclude<keyof KeysAndAttributes, "Keys">> & {
|
|
9
|
+
Keys: {
|
|
10
|
+
[key: string]: NativeAttributeValue;
|
|
11
|
+
}[] | undefined;
|
|
12
|
+
};
|
|
13
|
+
} | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare type BatchGetCommandOutput = Pick<__BatchGetItemCommandOutput, Exclude<keyof __BatchGetItemCommandOutput, "Responses" | "UnprocessedKeys">> & {
|
|
16
|
+
Responses?: {
|
|
17
|
+
[key: string]: {
|
|
18
|
+
[key: string]: NativeAttributeValue;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
UnprocessedKeys?: {
|
|
22
|
+
[key: string]: Pick<KeysAndAttributes, Exclude<keyof KeysAndAttributes, "Keys">> & {
|
|
23
|
+
Keys: {
|
|
24
|
+
[key: string]: NativeAttributeValue;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export declare class BatchGetCommand extends $Command<BatchGetCommandInput, BatchGetCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
31
|
+
readonly input: BatchGetCommandInput;
|
|
32
|
+
private readonly inputKeyNodes;
|
|
33
|
+
private readonly outputKeyNodes;
|
|
34
|
+
constructor(input: BatchGetCommandInput);
|
|
35
|
+
|
|
36
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetCommandInput, BatchGetCommandOutput>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type BatchWriteCommandInput = Pick<__BatchWriteItemCommandInput, Exclude<keyof __BatchWriteItemCommandInput, "RequestItems">> & {
|
|
7
|
+
RequestItems: {
|
|
8
|
+
[key: string]: (Pick<WriteRequest, Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">> & {
|
|
9
|
+
PutRequest?: Pick<PutRequest, Exclude<keyof PutRequest, "Item">> & {
|
|
10
|
+
Item: {
|
|
11
|
+
[key: string]: NativeAttributeValue;
|
|
12
|
+
} | undefined;
|
|
13
|
+
};
|
|
14
|
+
DeleteRequest?: Pick<DeleteRequest, Exclude<keyof DeleteRequest, "Key">> & {
|
|
15
|
+
Key: {
|
|
16
|
+
[key: string]: NativeAttributeValue;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
})[];
|
|
20
|
+
} | undefined;
|
|
21
|
+
};
|
|
22
|
+
export declare type BatchWriteCommandOutput = Pick<__BatchWriteItemCommandOutput, Exclude<keyof __BatchWriteItemCommandOutput, "UnprocessedItems" | "ItemCollectionMetrics">> & {
|
|
23
|
+
UnprocessedItems?: {
|
|
24
|
+
[key: string]: (Pick<WriteRequest, Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">> & {
|
|
25
|
+
PutRequest?: Pick<PutRequest, Exclude<keyof PutRequest, "Item">> & {
|
|
26
|
+
Item: {
|
|
27
|
+
[key: string]: NativeAttributeValue;
|
|
28
|
+
} | undefined;
|
|
29
|
+
};
|
|
30
|
+
DeleteRequest?: Pick<DeleteRequest, Exclude<keyof DeleteRequest, "Key">> & {
|
|
31
|
+
Key: {
|
|
32
|
+
[key: string]: NativeAttributeValue;
|
|
33
|
+
} | undefined;
|
|
34
|
+
};
|
|
35
|
+
})[];
|
|
36
|
+
};
|
|
37
|
+
ItemCollectionMetrics?: {
|
|
38
|
+
[key: string]: (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
39
|
+
ItemCollectionKey?: {
|
|
40
|
+
[key: string]: NativeAttributeValue;
|
|
41
|
+
};
|
|
42
|
+
})[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export declare class BatchWriteCommand extends $Command<BatchWriteCommandInput, BatchWriteCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
47
|
+
readonly input: BatchWriteCommandInput;
|
|
48
|
+
private readonly inputKeyNodes;
|
|
49
|
+
private readonly outputKeyNodes;
|
|
50
|
+
constructor(input: BatchWriteCommandInput);
|
|
51
|
+
|
|
52
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchWriteCommandInput, BatchWriteCommandOutput>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type DeleteCommandInput = Pick<__DeleteItemCommandInput, Exclude<keyof __DeleteItemCommandInput, "Key" | "Expected" | "ExpressionAttributeValues">> & {
|
|
7
|
+
Key: {
|
|
8
|
+
[key: string]: NativeAttributeValue;
|
|
9
|
+
} | undefined;
|
|
10
|
+
Expected?: {
|
|
11
|
+
[key: string]: Pick<ExpectedAttributeValue, Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">> & {
|
|
12
|
+
Value?: NativeAttributeValue;
|
|
13
|
+
AttributeValueList?: NativeAttributeValue[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
ExpressionAttributeValues?: {
|
|
17
|
+
[key: string]: NativeAttributeValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare type DeleteCommandOutput = Pick<__DeleteItemCommandOutput, Exclude<keyof __DeleteItemCommandOutput, "Attributes" | "ItemCollectionMetrics">> & {
|
|
21
|
+
Attributes?: {
|
|
22
|
+
[key: string]: NativeAttributeValue;
|
|
23
|
+
};
|
|
24
|
+
ItemCollectionMetrics?: Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
25
|
+
ItemCollectionKey?: {
|
|
26
|
+
[key: string]: NativeAttributeValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare class DeleteCommand extends $Command<DeleteCommandInput, DeleteCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
32
|
+
readonly input: DeleteCommandInput;
|
|
33
|
+
private readonly inputKeyNodes;
|
|
34
|
+
private readonly outputKeyNodes;
|
|
35
|
+
constructor(input: DeleteCommandInput);
|
|
36
|
+
|
|
37
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCommandInput, DeleteCommandOutput>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ExecuteStatementCommandInput as __ExecuteStatementCommandInput, ExecuteStatementCommandOutput as __ExecuteStatementCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type ExecuteStatementCommandInput = Pick<__ExecuteStatementCommandInput, Exclude<keyof __ExecuteStatementCommandInput, "Parameters">> & {
|
|
7
|
+
Parameters?: NativeAttributeValue[];
|
|
8
|
+
};
|
|
9
|
+
export declare type ExecuteStatementCommandOutput = Pick<__ExecuteStatementCommandOutput, Exclude<keyof __ExecuteStatementCommandOutput, "Items">> & {
|
|
10
|
+
Items?: {
|
|
11
|
+
[key: string]: NativeAttributeValue;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export declare class ExecuteStatementCommand extends $Command<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
16
|
+
readonly input: ExecuteStatementCommandInput;
|
|
17
|
+
private readonly inputKeyNodes;
|
|
18
|
+
private readonly outputKeyNodes;
|
|
19
|
+
constructor(input: ExecuteStatementCommandInput);
|
|
20
|
+
|
|
21
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type ExecuteTransactionCommandInput = Pick<__ExecuteTransactionCommandInput, Exclude<keyof __ExecuteTransactionCommandInput, "TransactStatements">> & {
|
|
7
|
+
TransactStatements: (Pick<ParameterizedStatement, Exclude<keyof ParameterizedStatement, "Parameters">> & {
|
|
8
|
+
Parameters?: NativeAttributeValue[];
|
|
9
|
+
})[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare type ExecuteTransactionCommandOutput = Pick<__ExecuteTransactionCommandOutput, Exclude<keyof __ExecuteTransactionCommandOutput, "Responses">> & {
|
|
12
|
+
Responses?: (Pick<ItemResponse, Exclude<keyof ItemResponse, "Item">> & {
|
|
13
|
+
Item?: {
|
|
14
|
+
[key: string]: NativeAttributeValue;
|
|
15
|
+
};
|
|
16
|
+
})[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export declare class ExecuteTransactionCommand extends $Command<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
20
|
+
readonly input: ExecuteTransactionCommandInput;
|
|
21
|
+
private readonly inputKeyNodes;
|
|
22
|
+
private readonly outputKeyNodes;
|
|
23
|
+
constructor(input: ExecuteTransactionCommandInput);
|
|
24
|
+
|
|
25
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GetItemCommandInput as __GetItemCommandInput, GetItemCommandOutput as __GetItemCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type GetCommandInput = Pick<__GetItemCommandInput, Exclude<keyof __GetItemCommandInput, "Key">> & {
|
|
7
|
+
Key: {
|
|
8
|
+
[key: string]: NativeAttributeValue;
|
|
9
|
+
} | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare type GetCommandOutput = Pick<__GetItemCommandOutput, Exclude<keyof __GetItemCommandOutput, "Item">> & {
|
|
12
|
+
Item?: {
|
|
13
|
+
[key: string]: NativeAttributeValue;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export declare class GetCommand extends $Command<GetCommandInput, GetCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
18
|
+
readonly input: GetCommandInput;
|
|
19
|
+
private readonly inputKeyNodes;
|
|
20
|
+
private readonly outputKeyNodes;
|
|
21
|
+
constructor(input: GetCommandInput);
|
|
22
|
+
|
|
23
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetCommandInput, GetCommandOutput>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type PutCommandInput = Pick<__PutItemCommandInput, Exclude<keyof __PutItemCommandInput, "Item" | "Expected" | "ExpressionAttributeValues">> & {
|
|
7
|
+
Item: {
|
|
8
|
+
[key: string]: NativeAttributeValue;
|
|
9
|
+
} | undefined;
|
|
10
|
+
Expected?: {
|
|
11
|
+
[key: string]: Pick<ExpectedAttributeValue, Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">> & {
|
|
12
|
+
Value?: NativeAttributeValue;
|
|
13
|
+
AttributeValueList?: NativeAttributeValue[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
ExpressionAttributeValues?: {
|
|
17
|
+
[key: string]: NativeAttributeValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare type PutCommandOutput = Pick<__PutItemCommandOutput, Exclude<keyof __PutItemCommandOutput, "Attributes" | "ItemCollectionMetrics">> & {
|
|
21
|
+
Attributes?: {
|
|
22
|
+
[key: string]: NativeAttributeValue;
|
|
23
|
+
};
|
|
24
|
+
ItemCollectionMetrics?: Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
25
|
+
ItemCollectionKey?: {
|
|
26
|
+
[key: string]: NativeAttributeValue;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare class PutCommand extends $Command<PutCommandInput, PutCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
32
|
+
readonly input: PutCommandInput;
|
|
33
|
+
private readonly inputKeyNodes;
|
|
34
|
+
private readonly outputKeyNodes;
|
|
35
|
+
constructor(input: PutCommandInput);
|
|
36
|
+
|
|
37
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutCommandInput, PutCommandOutput>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Condition, QueryCommandInput as __QueryCommandInput, QueryCommandOutput as __QueryCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type QueryCommandInput = Pick<__QueryCommandInput, Exclude<keyof __QueryCommandInput, "KeyConditions" | "QueryFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues">> & {
|
|
7
|
+
KeyConditions?: {
|
|
8
|
+
[key: string]: Pick<Condition, Exclude<keyof Condition, "AttributeValueList">> & {
|
|
9
|
+
AttributeValueList?: NativeAttributeValue[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
QueryFilter?: {
|
|
13
|
+
[key: string]: Pick<Condition, Exclude<keyof Condition, "AttributeValueList">> & {
|
|
14
|
+
AttributeValueList?: NativeAttributeValue[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
ExclusiveStartKey?: {
|
|
18
|
+
[key: string]: NativeAttributeValue;
|
|
19
|
+
};
|
|
20
|
+
ExpressionAttributeValues?: {
|
|
21
|
+
[key: string]: NativeAttributeValue;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare type QueryCommandOutput = Pick<__QueryCommandOutput, Exclude<keyof __QueryCommandOutput, "Items" | "LastEvaluatedKey">> & {
|
|
25
|
+
Items?: {
|
|
26
|
+
[key: string]: NativeAttributeValue;
|
|
27
|
+
}[];
|
|
28
|
+
LastEvaluatedKey?: {
|
|
29
|
+
[key: string]: NativeAttributeValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export declare class QueryCommand extends $Command<QueryCommandInput, QueryCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
34
|
+
readonly input: QueryCommandInput;
|
|
35
|
+
private readonly inputKeyNodes;
|
|
36
|
+
private readonly outputKeyNodes;
|
|
37
|
+
constructor(input: QueryCommandInput);
|
|
38
|
+
|
|
39
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<QueryCommandInput, QueryCommandOutput>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Condition, ScanCommandInput as __ScanCommandInput, ScanCommandOutput as __ScanCommandOutput } from "@aws-sdk/client-dynamodb";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type ScanCommandInput = Pick<__ScanCommandInput, Exclude<keyof __ScanCommandInput, "ScanFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues">> & {
|
|
7
|
+
ScanFilter?: {
|
|
8
|
+
[key: string]: Pick<Condition, Exclude<keyof Condition, "AttributeValueList">> & {
|
|
9
|
+
AttributeValueList?: NativeAttributeValue[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
ExclusiveStartKey?: {
|
|
13
|
+
[key: string]: NativeAttributeValue;
|
|
14
|
+
};
|
|
15
|
+
ExpressionAttributeValues?: {
|
|
16
|
+
[key: string]: NativeAttributeValue;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare type ScanCommandOutput = Pick<__ScanCommandOutput, Exclude<keyof __ScanCommandOutput, "Items" | "LastEvaluatedKey">> & {
|
|
20
|
+
Items?: {
|
|
21
|
+
[key: string]: NativeAttributeValue;
|
|
22
|
+
}[];
|
|
23
|
+
LastEvaluatedKey?: {
|
|
24
|
+
[key: string]: NativeAttributeValue;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export declare class ScanCommand extends $Command<ScanCommandInput, ScanCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
29
|
+
readonly input: ScanCommandInput;
|
|
30
|
+
private readonly inputKeyNodes;
|
|
31
|
+
private readonly outputKeyNodes;
|
|
32
|
+
constructor(input: ScanCommandInput);
|
|
33
|
+
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ScanCommandInput, ScanCommandOutput>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type TransactGetCommandInput = Pick<__TransactGetItemsCommandInput, Exclude<keyof __TransactGetItemsCommandInput, "TransactItems">> & {
|
|
7
|
+
TransactItems: (Pick<TransactGetItem, Exclude<keyof TransactGetItem, "Get">> & {
|
|
8
|
+
Get: (Pick<Get, Exclude<keyof Get, "Key">> & {
|
|
9
|
+
Key: {
|
|
10
|
+
[key: string]: NativeAttributeValue;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}) | undefined;
|
|
13
|
+
})[] | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare type TransactGetCommandOutput = Pick<__TransactGetItemsCommandOutput, Exclude<keyof __TransactGetItemsCommandOutput, "Responses">> & {
|
|
16
|
+
Responses?: (Pick<ItemResponse, Exclude<keyof ItemResponse, "Item">> & {
|
|
17
|
+
Item?: {
|
|
18
|
+
[key: string]: NativeAttributeValue;
|
|
19
|
+
};
|
|
20
|
+
})[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export declare class TransactGetCommand extends $Command<TransactGetCommandInput, TransactGetCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
24
|
+
readonly input: TransactGetCommandInput;
|
|
25
|
+
private readonly inputKeyNodes;
|
|
26
|
+
private readonly outputKeyNodes;
|
|
27
|
+
constructor(input: TransactGetCommandInput);
|
|
28
|
+
|
|
29
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactGetCommandInput, TransactGetCommandOutput>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type TransactWriteCommandInput = Pick<__TransactWriteItemsCommandInput, Exclude<keyof __TransactWriteItemsCommandInput, "TransactItems">> & {
|
|
7
|
+
TransactItems: (Pick<TransactWriteItem, Exclude<keyof TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update">> & {
|
|
8
|
+
ConditionCheck?: Pick<ConditionCheck, Exclude<keyof ConditionCheck, "Key" | "ExpressionAttributeValues">> & {
|
|
9
|
+
Key: {
|
|
10
|
+
[key: string]: NativeAttributeValue;
|
|
11
|
+
} | undefined;
|
|
12
|
+
ExpressionAttributeValues?: {
|
|
13
|
+
[key: string]: NativeAttributeValue;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
Put?: Pick<Put, Exclude<keyof Put, "Item" | "ExpressionAttributeValues">> & {
|
|
17
|
+
Item: {
|
|
18
|
+
[key: string]: NativeAttributeValue;
|
|
19
|
+
} | undefined;
|
|
20
|
+
ExpressionAttributeValues?: {
|
|
21
|
+
[key: string]: NativeAttributeValue;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
Delete?: Pick<Delete, Exclude<keyof Delete, "Key" | "ExpressionAttributeValues">> & {
|
|
25
|
+
Key: {
|
|
26
|
+
[key: string]: NativeAttributeValue;
|
|
27
|
+
} | undefined;
|
|
28
|
+
ExpressionAttributeValues?: {
|
|
29
|
+
[key: string]: NativeAttributeValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
Update?: Pick<Update, Exclude<keyof Update, "Key" | "ExpressionAttributeValues">> & {
|
|
33
|
+
Key: {
|
|
34
|
+
[key: string]: NativeAttributeValue;
|
|
35
|
+
} | undefined;
|
|
36
|
+
ExpressionAttributeValues?: {
|
|
37
|
+
[key: string]: NativeAttributeValue;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
})[] | undefined;
|
|
41
|
+
};
|
|
42
|
+
export declare type TransactWriteCommandOutput = Pick<__TransactWriteItemsCommandOutput, Exclude<keyof __TransactWriteItemsCommandOutput, "ItemCollectionMetrics">> & {
|
|
43
|
+
ItemCollectionMetrics?: {
|
|
44
|
+
[key: string]: (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
45
|
+
ItemCollectionKey?: {
|
|
46
|
+
[key: string]: NativeAttributeValue;
|
|
47
|
+
};
|
|
48
|
+
})[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export declare class TransactWriteCommand extends $Command<TransactWriteCommandInput, TransactWriteCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
53
|
+
readonly input: TransactWriteCommandInput;
|
|
54
|
+
private readonly inputKeyNodes;
|
|
55
|
+
private readonly outputKeyNodes;
|
|
56
|
+
constructor(input: TransactWriteCommandInput);
|
|
57
|
+
|
|
58
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactWriteCommandInput, TransactWriteCommandOutput>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
|
|
5
|
+
import { DynamoDBDocumentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBDocumentClient";
|
|
6
|
+
export declare type UpdateCommandInput = Pick<__UpdateItemCommandInput, Exclude<keyof __UpdateItemCommandInput, "Key" | "AttributeUpdates" | "Expected" | "ExpressionAttributeValues">> & {
|
|
7
|
+
Key: {
|
|
8
|
+
[key: string]: NativeAttributeValue;
|
|
9
|
+
} | undefined;
|
|
10
|
+
AttributeUpdates?: {
|
|
11
|
+
[key: string]: Pick<AttributeValueUpdate, Exclude<keyof AttributeValueUpdate, "Value">> & {
|
|
12
|
+
Value?: NativeAttributeValue;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
Expected?: {
|
|
16
|
+
[key: string]: Pick<ExpectedAttributeValue, Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">> & {
|
|
17
|
+
Value?: NativeAttributeValue;
|
|
18
|
+
AttributeValueList?: NativeAttributeValue[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
ExpressionAttributeValues?: {
|
|
22
|
+
[key: string]: NativeAttributeValue;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare type UpdateCommandOutput = Pick<__UpdateItemCommandOutput, Exclude<keyof __UpdateItemCommandOutput, "Attributes" | "ItemCollectionMetrics">> & {
|
|
26
|
+
Attributes?: {
|
|
27
|
+
[key: string]: NativeAttributeValue;
|
|
28
|
+
};
|
|
29
|
+
ItemCollectionMetrics?: Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
30
|
+
ItemCollectionKey?: {
|
|
31
|
+
[key: string]: NativeAttributeValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export declare class UpdateCommand extends $Command<UpdateCommandInput, UpdateCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
37
|
+
readonly input: UpdateCommandInput;
|
|
38
|
+
private readonly inputKeyNodes;
|
|
39
|
+
private readonly outputKeyNodes;
|
|
40
|
+
constructor(input: UpdateCommandInput);
|
|
41
|
+
|
|
42
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateCommandInput, UpdateCommandOutput>;
|
|
43
|
+
}
|
|
@@ -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,10 @@
|
|
|
1
|
+
import { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
|
|
2
|
+
export declare type KeyNode = {
|
|
3
|
+
key: string;
|
|
4
|
+
children?: KeyNode[] | AllNodes;
|
|
5
|
+
};
|
|
6
|
+
export declare type AllNodes = {
|
|
7
|
+
children?: KeyNode[] | AllNodes;
|
|
8
|
+
};
|
|
9
|
+
export declare const marshallInput: (obj: any, keyNodes: KeyNode[], options?: marshallOptions | undefined) => any;
|
|
10
|
+
export declare const unmarshallOutput: (obj: any, keyNodes: KeyNode[], options?: unmarshallOptions | undefined) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { DynamoDBDocument } from "../DynamoDBDocument";
|
|
3
|
+
import { DynamoDBDocumentClient } from "../DynamoDBDocumentClient";
|
|
4
|
+
export interface DynamoDBDocumentPaginationConfiguration extends PaginationConfiguration {
|
|
5
|
+
client: DynamoDBDocument | DynamoDBDocumentClient;
|
|
6
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { QueryCommandInput, QueryCommandOutput } from "../commands/QueryCommand";
|
|
3
|
+
import { DynamoDBDocumentPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare function paginateQuery(config: DynamoDBDocumentPaginationConfiguration, input: QueryCommandInput, ...additionalArguments: any): Paginator<QueryCommandOutput>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ScanCommandInput, ScanCommandOutput } from "../commands/ScanCommand";
|
|
3
|
+
import { DynamoDBDocumentPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
export declare function paginateScan(config: DynamoDBDocumentPaginationConfiguration, input: ScanCommandInput, ...additionalArguments: any): Paginator<ScanCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.51.0",
|
|
4
4
|
"description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
26
|
+
"@aws-sdk/util-dynamodb": "3.51.0",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@aws-sdk/types": "^3.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
35
|
+
"@aws-sdk/client-dynamodb": "3.51.0",
|
|
36
36
|
"@aws-sdk/smithy-client": "3.50.0",
|
|
37
37
|
"@aws-sdk/types": "3.50.0",
|
|
38
38
|
"@tsconfig/recommended": "1.0.1",
|