@aws-sdk/client-dynamodb 3.864.0 → 3.872.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/index.js +63 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +14 -1
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +8 -3
- package/dist-types/commands/BatchGetItemCommand.d.ts +14 -7
- package/dist-types/commands/BatchWriteItemCommand.d.ts +14 -7
- package/dist-types/commands/DeleteItemCommand.d.ts +14 -7
- package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +1 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +14 -7
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +14 -7
- package/dist-types/commands/GetItemCommand.d.ts +14 -7
- package/dist-types/commands/ListContributorInsightsCommand.d.ts +1 -0
- package/dist-types/commands/PutItemCommand.d.ts +14 -7
- package/dist-types/commands/QueryCommand.d.ts +14 -7
- package/dist-types/commands/ScanCommand.d.ts +14 -7
- package/dist-types/commands/TransactGetItemsCommand.d.ts +14 -7
- package/dist-types/commands/TransactWriteItemsCommand.d.ts +16 -8
- package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateItemCommand.d.ts +14 -7
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +151 -79
- package/dist-types/models/models_1.d.ts +73 -0
- package/dist-types/ts3.4/commands/TransactWriteItemsCommand.d.ts +2 -4
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +24 -6
- package/dist-types/ts3.4/models/models_1.d.ts +11 -0
- package/package.json +2 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ReturnConsumedCapacity, ReturnItemCollectionMetrics, TransactWriteItem } from "./models_0";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface TransactWriteItemsInput {
|
|
6
|
+
/**
|
|
7
|
+
* <p>An ordered array of up to 100 <code>TransactWriteItem</code> objects, each of which
|
|
8
|
+
* contains a <code>ConditionCheck</code>, <code>Put</code>, <code>Update</code>, or
|
|
9
|
+
* <code>Delete</code> object. These can operate on items in different tables, but the
|
|
10
|
+
* tables must reside in the same Amazon Web Services account and Region, and no two of them
|
|
11
|
+
* can operate on the same item. </p>
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
TransactItems: TransactWriteItem[] | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* <p>Determines the level of detail about either provisioned or on-demand throughput
|
|
17
|
+
* consumption that is returned in the response:</p>
|
|
18
|
+
* <ul>
|
|
19
|
+
* <li>
|
|
20
|
+
* <p>
|
|
21
|
+
* <code>INDEXES</code> - The response includes the aggregate
|
|
22
|
+
* <code>ConsumedCapacity</code> for the operation, together with
|
|
23
|
+
* <code>ConsumedCapacity</code> for each table and secondary index that was
|
|
24
|
+
* accessed.</p>
|
|
25
|
+
* <p>Note that some operations, such as <code>GetItem</code> and
|
|
26
|
+
* <code>BatchGetItem</code>, do not access any indexes at all. In these cases,
|
|
27
|
+
* specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code>
|
|
28
|
+
* information for table(s).</p>
|
|
29
|
+
* </li>
|
|
30
|
+
* <li>
|
|
31
|
+
* <p>
|
|
32
|
+
* <code>TOTAL</code> - The response includes only the aggregate
|
|
33
|
+
* <code>ConsumedCapacity</code> for the operation.</p>
|
|
34
|
+
* </li>
|
|
35
|
+
* <li>
|
|
36
|
+
* <p>
|
|
37
|
+
* <code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the
|
|
38
|
+
* response.</p>
|
|
39
|
+
* </li>
|
|
40
|
+
* </ul>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
ReturnConsumedCapacity?: ReturnConsumedCapacity | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Determines whether item collection metrics are returned. If set to <code>SIZE</code>,
|
|
46
|
+
* the response includes statistics about item collections (if any), that were modified
|
|
47
|
+
* during the operation and are returned in the response. If set to <code>NONE</code> (the
|
|
48
|
+
* default), no statistics are returned. </p>
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* <p>Providing a <code>ClientRequestToken</code> makes the call to
|
|
54
|
+
* <code>TransactWriteItems</code> idempotent, meaning that multiple identical calls
|
|
55
|
+
* have the same effect as one single call.</p>
|
|
56
|
+
* <p>Although multiple identical calls using the same client request token produce the same
|
|
57
|
+
* result on the server (no side effects), the responses to the calls might not be the
|
|
58
|
+
* same. If the <code>ReturnConsumedCapacity</code> parameter is set, then the initial
|
|
59
|
+
* <code>TransactWriteItems</code> call returns the amount of write capacity units
|
|
60
|
+
* consumed in making the changes. Subsequent <code>TransactWriteItems</code> calls with
|
|
61
|
+
* the same client token return the number of read capacity units consumed in reading the
|
|
62
|
+
* item.</p>
|
|
63
|
+
* <p>A client request token is valid for 10 minutes after the first request that uses it is
|
|
64
|
+
* completed. After 10 minutes, any request with the same client token is treated as a new
|
|
65
|
+
* request. Do not resubmit the same request with the same client token for more than 10
|
|
66
|
+
* minutes, or the result might not be idempotent.</p>
|
|
67
|
+
* <p>If you submit a request with the same client token but a change in other parameters
|
|
68
|
+
* within the 10-minute idempotency window, DynamoDB returns an
|
|
69
|
+
* <code>IdempotentParameterMismatch</code> exception.</p>
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
ClientRequestToken?: string | undefined;
|
|
73
|
+
}
|
|
@@ -5,10 +5,8 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../DynamoDBClient";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
TransactWriteItemsOutput,
|
|
11
|
-
} from "../models/models_0";
|
|
8
|
+
import { TransactWriteItemsOutput } from "../models/models_0";
|
|
9
|
+
import { TransactWriteItemsInput } from "../models/models_1";
|
|
12
10
|
export { __MetadataBearer };
|
|
13
11
|
export { $Command };
|
|
14
12
|
export interface TransactWriteItemsCommandInput
|
|
@@ -283,13 +283,26 @@ export declare class InternalServerError extends __BaseException {
|
|
|
283
283
|
opts: __ExceptionOptionType<InternalServerError, __BaseException>
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
|
+
export interface ThrottlingReason {
|
|
287
|
+
reason?: string | undefined;
|
|
288
|
+
resource?: string | undefined;
|
|
289
|
+
}
|
|
286
290
|
export declare class RequestLimitExceeded extends __BaseException {
|
|
287
291
|
readonly name: "RequestLimitExceeded";
|
|
288
292
|
readonly $fault: "client";
|
|
293
|
+
ThrottlingReasons?: ThrottlingReason[] | undefined;
|
|
289
294
|
constructor(
|
|
290
295
|
opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>
|
|
291
296
|
);
|
|
292
297
|
}
|
|
298
|
+
export declare class ThrottlingException extends __BaseException {
|
|
299
|
+
readonly name: "ThrottlingException";
|
|
300
|
+
readonly $fault: "client";
|
|
301
|
+
throttlingReasons?: ThrottlingReason[] | undefined;
|
|
302
|
+
constructor(
|
|
303
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
304
|
+
);
|
|
305
|
+
}
|
|
293
306
|
export declare class InvalidEndpointException extends __BaseException {
|
|
294
307
|
readonly name: "InvalidEndpointException";
|
|
295
308
|
readonly $fault: "client";
|
|
@@ -301,6 +314,7 @@ export declare class InvalidEndpointException extends __BaseException {
|
|
|
301
314
|
export declare class ProvisionedThroughputExceededException extends __BaseException {
|
|
302
315
|
readonly name: "ProvisionedThroughputExceededException";
|
|
303
316
|
readonly $fault: "client";
|
|
317
|
+
ThrottlingReasons?: ThrottlingReason[] | undefined;
|
|
304
318
|
constructor(
|
|
305
319
|
opts: __ExceptionOptionType<
|
|
306
320
|
ProvisionedThroughputExceededException,
|
|
@@ -407,6 +421,12 @@ export declare const ContributorInsightsAction: {
|
|
|
407
421
|
};
|
|
408
422
|
export type ContributorInsightsAction =
|
|
409
423
|
(typeof ContributorInsightsAction)[keyof typeof ContributorInsightsAction];
|
|
424
|
+
export declare const ContributorInsightsMode: {
|
|
425
|
+
readonly ACCESSED_AND_THROTTLED_KEYS: "ACCESSED_AND_THROTTLED_KEYS";
|
|
426
|
+
readonly THROTTLED_KEYS: "THROTTLED_KEYS";
|
|
427
|
+
};
|
|
428
|
+
export type ContributorInsightsMode =
|
|
429
|
+
(typeof ContributorInsightsMode)[keyof typeof ContributorInsightsMode];
|
|
410
430
|
export declare const ContributorInsightsStatus: {
|
|
411
431
|
readonly DISABLED: "DISABLED";
|
|
412
432
|
readonly DISABLING: "DISABLING";
|
|
@@ -420,6 +440,7 @@ export interface ContributorInsightsSummary {
|
|
|
420
440
|
TableName?: string | undefined;
|
|
421
441
|
IndexName?: string | undefined;
|
|
422
442
|
ContributorInsightsStatus?: ContributorInsightsStatus | undefined;
|
|
443
|
+
ContributorInsightsMode?: ContributorInsightsMode | undefined;
|
|
423
444
|
}
|
|
424
445
|
export interface CreateBackupInput {
|
|
425
446
|
TableName: string | undefined;
|
|
@@ -802,6 +823,7 @@ export interface DescribeContributorInsightsOutput {
|
|
|
802
823
|
ContributorInsightsStatus?: ContributorInsightsStatus | undefined;
|
|
803
824
|
LastUpdateDateTime?: Date | undefined;
|
|
804
825
|
FailureException?: FailureException | undefined;
|
|
826
|
+
ContributorInsightsMode?: ContributorInsightsMode | undefined;
|
|
805
827
|
}
|
|
806
828
|
export interface DescribeEndpointsRequest {}
|
|
807
829
|
export interface Endpoint {
|
|
@@ -1358,11 +1380,13 @@ export interface UpdateContributorInsightsInput {
|
|
|
1358
1380
|
TableName: string | undefined;
|
|
1359
1381
|
IndexName?: string | undefined;
|
|
1360
1382
|
ContributorInsightsAction: ContributorInsightsAction | undefined;
|
|
1383
|
+
ContributorInsightsMode?: ContributorInsightsMode | undefined;
|
|
1361
1384
|
}
|
|
1362
1385
|
export interface UpdateContributorInsightsOutput {
|
|
1363
1386
|
TableName?: string | undefined;
|
|
1364
1387
|
IndexName?: string | undefined;
|
|
1365
1388
|
ContributorInsightsStatus?: ContributorInsightsStatus | undefined;
|
|
1389
|
+
ContributorInsightsMode?: ContributorInsightsMode | undefined;
|
|
1366
1390
|
}
|
|
1367
1391
|
export declare class ReplicaAlreadyExistsException extends __BaseException {
|
|
1368
1392
|
readonly name: "ReplicaAlreadyExistsException";
|
|
@@ -2055,9 +2079,3 @@ export interface TransactWriteItem {
|
|
|
2055
2079
|
Delete?: Delete | undefined;
|
|
2056
2080
|
Update?: Update | undefined;
|
|
2057
2081
|
}
|
|
2058
|
-
export interface TransactWriteItemsInput {
|
|
2059
|
-
TransactItems: TransactWriteItem[] | undefined;
|
|
2060
|
-
ReturnConsumedCapacity?: ReturnConsumedCapacity | undefined;
|
|
2061
|
-
ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics | undefined;
|
|
2062
|
-
ClientRequestToken?: string | undefined;
|
|
2063
|
-
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ReturnConsumedCapacity,
|
|
3
|
+
ReturnItemCollectionMetrics,
|
|
4
|
+
TransactWriteItem,
|
|
5
|
+
} from "./models_0";
|
|
6
|
+
export interface TransactWriteItemsInput {
|
|
7
|
+
TransactItems: TransactWriteItem[] | undefined;
|
|
8
|
+
ReturnConsumedCapacity?: ReturnConsumedCapacity | undefined;
|
|
9
|
+
ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics | undefined;
|
|
10
|
+
ClientRequestToken?: string | undefined;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.872.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.864.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.872.0",
|
|
25
25
|
"@aws-sdk/middleware-endpoint-discovery": "3.862.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.862.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.862.0",
|