@aws-sdk/client-dynamodb 3.40.0 → 3.44.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +18 -16
  3. package/dist-cjs/endpoints.js +16 -0
  4. package/dist-cjs/models/models_0.js +28 -17
  5. package/dist-cjs/protocols/Aws_json1_0.js +40 -0
  6. package/dist-es/endpoints.js +16 -0
  7. package/dist-es/models/models_0.js +17 -8
  8. package/dist-es/protocols/Aws_json1_0.js +46 -14
  9. package/dist-types/DynamoDB.d.ts +606 -567
  10. package/dist-types/DynamoDBClient.d.ts +16 -15
  11. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +7 -4
  12. package/dist-types/commands/BatchGetItemCommand.d.ts +27 -26
  13. package/dist-types/commands/BatchWriteItemCommand.d.ts +51 -47
  14. package/dist-types/commands/CreateBackupCommand.d.ts +19 -19
  15. package/dist-types/commands/CreateGlobalTableCommand.d.ts +32 -43
  16. package/dist-types/commands/CreateTableCommand.d.ts +14 -14
  17. package/dist-types/commands/DeleteBackupCommand.d.ts +3 -2
  18. package/dist-types/commands/DeleteItemCommand.d.ts +12 -7
  19. package/dist-types/commands/DeleteTableCommand.d.ts +18 -16
  20. package/dist-types/commands/DescribeBackupCommand.d.ts +3 -2
  21. package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +12 -11
  22. package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +3 -2
  23. package/dist-types/commands/DescribeEndpointsCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeExportCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeGlobalTableCommand.d.ts +6 -5
  26. package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +5 -4
  27. package/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeLimitsCommand.d.ts +51 -41
  29. package/dist-types/commands/DescribeTableCommand.d.ts +11 -8
  30. package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +5 -4
  31. package/dist-types/commands/DescribeTimeToLiveCommand.d.ts +1 -1
  32. package/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +1 -1
  33. package/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +5 -5
  34. package/dist-types/commands/ExecuteStatementCommand.d.ts +3 -4
  35. package/dist-types/commands/ExecuteTransactionCommand.d.ts +9 -4
  36. package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +1 -1
  37. package/dist-types/commands/GetItemCommand.d.ts +9 -8
  38. package/dist-types/commands/ListBackupsCommand.d.ts +7 -7
  39. package/dist-types/commands/ListContributorInsightsCommand.d.ts +3 -2
  40. package/dist-types/commands/ListExportsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListGlobalTablesCommand.d.ts +5 -4
  42. package/dist-types/commands/ListTablesCommand.d.ts +4 -4
  43. package/dist-types/commands/ListTagsOfResourceCommand.d.ts +5 -5
  44. package/dist-types/commands/PutItemCommand.d.ts +52 -45
  45. package/dist-types/commands/QueryCommand.d.ts +40 -44
  46. package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +19 -19
  47. package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +36 -41
  48. package/dist-types/commands/ScanCommand.d.ts +17 -16
  49. package/dist-types/commands/TagResourceCommand.d.ts +3 -4
  50. package/dist-types/commands/TransactGetItemsCommand.d.ts +12 -11
  51. package/dist-types/commands/TransactWriteItemsCommand.d.ts +49 -47
  52. package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
  53. package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +10 -10
  54. package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +7 -2
  55. package/dist-types/commands/UpdateGlobalTableCommand.d.ts +12 -17
  56. package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateItemCommand.d.ts +8 -4
  58. package/dist-types/commands/UpdateTableCommand.d.ts +15 -13
  59. package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +5 -4
  60. package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +15 -15
  61. package/dist-types/models/models_0.d.ts +3612 -2838
  62. package/dist-types/ts3.4/models/models_0.d.ts +82 -39
  63. package/package.json +4 -4
@@ -351,6 +351,45 @@ export declare enum BackupTypeFilter {
351
351
  SYSTEM = "SYSTEM",
352
352
  USER = "USER"
353
353
  }
354
+ export declare type ReturnConsumedCapacity = "INDEXES" | "NONE" | "TOTAL";
355
+
356
+ export interface Capacity {
357
+
358
+ ReadCapacityUnits?: number;
359
+
360
+ WriteCapacityUnits?: number;
361
+
362
+ CapacityUnits?: number;
363
+ }
364
+ export declare namespace Capacity {
365
+
366
+ const filterSensitiveLog: (obj: Capacity) => any;
367
+ }
368
+
369
+ export interface ConsumedCapacity {
370
+
371
+ TableName?: string;
372
+
373
+ CapacityUnits?: number;
374
+
375
+ ReadCapacityUnits?: number;
376
+
377
+ WriteCapacityUnits?: number;
378
+
379
+ Table?: Capacity;
380
+
381
+ LocalSecondaryIndexes?: {
382
+ [key: string]: Capacity;
383
+ };
384
+
385
+ GlobalSecondaryIndexes?: {
386
+ [key: string]: Capacity;
387
+ };
388
+ }
389
+ export declare namespace ConsumedCapacity {
390
+
391
+ const filterSensitiveLog: (obj: ConsumedCapacity) => any;
392
+ }
354
393
  export declare enum BatchStatementErrorCodeEnum {
355
394
  AccessDenied = "AccessDenied",
356
395
  ConditionalCheckFailed = "ConditionalCheckFailed",
@@ -396,45 +435,6 @@ export declare namespace RequestLimitExceeded {
396
435
 
397
436
  const filterSensitiveLog: (obj: RequestLimitExceeded) => any;
398
437
  }
399
- export declare type ReturnConsumedCapacity = "INDEXES" | "NONE" | "TOTAL";
400
-
401
- export interface Capacity {
402
-
403
- ReadCapacityUnits?: number;
404
-
405
- WriteCapacityUnits?: number;
406
-
407
- CapacityUnits?: number;
408
- }
409
- export declare namespace Capacity {
410
-
411
- const filterSensitiveLog: (obj: Capacity) => any;
412
- }
413
-
414
- export interface ConsumedCapacity {
415
-
416
- TableName?: string;
417
-
418
- CapacityUnits?: number;
419
-
420
- ReadCapacityUnits?: number;
421
-
422
- WriteCapacityUnits?: number;
423
-
424
- Table?: Capacity;
425
-
426
- LocalSecondaryIndexes?: {
427
- [key: string]: Capacity;
428
- };
429
-
430
- GlobalSecondaryIndexes?: {
431
- [key: string]: Capacity;
432
- };
433
- }
434
- export declare namespace ConsumedCapacity {
435
-
436
- const filterSensitiveLog: (obj: ConsumedCapacity) => any;
437
- }
438
438
  export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
439
439
  name: "InvalidEndpointException";
440
440
  $fault: "client";
@@ -659,6 +659,21 @@ export declare namespace ReplicaGlobalSecondaryIndexDescription {
659
659
  const filterSensitiveLog: (obj: ReplicaGlobalSecondaryIndexDescription) => any;
660
660
  }
661
661
  export declare type ReplicaStatus = "ACTIVE" | "CREATING" | "CREATION_FAILED" | "DELETING" | "INACCESSIBLE_ENCRYPTION_CREDENTIALS" | "REGION_DISABLED" | "UPDATING";
662
+ export declare enum TableClass {
663
+ STANDARD = "STANDARD",
664
+ STANDARD_INFREQUENT_ACCESS = "STANDARD_INFREQUENT_ACCESS"
665
+ }
666
+
667
+ export interface TableClassSummary {
668
+
669
+ TableClass?: TableClass | string;
670
+
671
+ LastUpdateDateTime?: Date;
672
+ }
673
+ export declare namespace TableClassSummary {
674
+
675
+ const filterSensitiveLog: (obj: TableClassSummary) => any;
676
+ }
662
677
 
663
678
  export interface ReplicaDescription {
664
679
 
@@ -677,6 +692,8 @@ export interface ReplicaDescription {
677
692
  GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndexDescription[];
678
693
 
679
694
  ReplicaInaccessibleDateTime?: Date;
695
+
696
+ ReplicaTableClassSummary?: TableClassSummary;
680
697
  }
681
698
  export declare namespace ReplicaDescription {
682
699
 
@@ -747,6 +764,8 @@ export interface CreateReplicationGroupMemberAction {
747
764
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
748
765
 
749
766
  GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndex[];
767
+
768
+ TableClassOverride?: TableClass | string;
750
769
  }
751
770
  export declare namespace CreateReplicationGroupMemberAction {
752
771
 
@@ -826,6 +845,8 @@ export interface CreateTableInput {
826
845
  SSESpecification?: SSESpecification;
827
846
 
828
847
  Tags?: Tag[];
848
+
849
+ TableClass?: TableClass | string;
829
850
  }
830
851
  export declare namespace CreateTableInput {
831
852
 
@@ -953,6 +974,8 @@ export interface TableDescription {
953
974
  SSEDescription?: SSEDescription;
954
975
 
955
976
  ArchivalSummary?: ArchivalSummary;
977
+
978
+ TableClassSummary?: TableClassSummary;
956
979
  }
957
980
  export declare namespace TableDescription {
958
981
 
@@ -1298,6 +1321,8 @@ export interface ReplicaSettingsDescription {
1298
1321
  ReplicaProvisionedWriteCapacityAutoScalingSettings?: AutoScalingSettingsDescription;
1299
1322
 
1300
1323
  ReplicaGlobalSecondaryIndexSettings?: ReplicaGlobalSecondaryIndexSettingsDescription[];
1324
+
1325
+ ReplicaTableClassSummary?: TableClassSummary;
1301
1326
  }
1302
1327
  export declare namespace ReplicaSettingsDescription {
1303
1328
 
@@ -1983,6 +2008,8 @@ export interface ReplicaSettingsUpdate {
1983
2008
  ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate?: AutoScalingSettingsUpdate;
1984
2009
 
1985
2010
  ReplicaGlobalSecondaryIndexSettingsUpdate?: ReplicaGlobalSecondaryIndexSettingsUpdate[];
2011
+
2012
+ ReplicaTableClass?: TableClass | string;
1986
2013
  }
1987
2014
  export declare namespace ReplicaSettingsUpdate {
1988
2015
 
@@ -2050,6 +2077,8 @@ export interface UpdateReplicationGroupMemberAction {
2050
2077
  ProvisionedThroughputOverride?: ProvisionedThroughputOverride;
2051
2078
 
2052
2079
  GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndex[];
2080
+
2081
+ TableClassOverride?: TableClass | string;
2053
2082
  }
2054
2083
  export declare namespace UpdateReplicationGroupMemberAction {
2055
2084
 
@@ -2086,6 +2115,8 @@ export interface UpdateTableInput {
2086
2115
  SSESpecification?: SSESpecification;
2087
2116
 
2088
2117
  ReplicaUpdates?: ReplicationGroupUpdate[];
2118
+
2119
+ TableClass?: TableClass | string;
2089
2120
  }
2090
2121
  export declare namespace UpdateTableInput {
2091
2122
 
@@ -2452,6 +2483,8 @@ export interface ExecuteStatementInput {
2452
2483
  ConsistentRead?: boolean;
2453
2484
 
2454
2485
  NextToken?: string;
2486
+
2487
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | string;
2455
2488
  }
2456
2489
  export declare namespace ExecuteStatementInput {
2457
2490
 
@@ -2567,6 +2600,8 @@ export interface ExecuteStatementOutput {
2567
2600
  }[];
2568
2601
 
2569
2602
  NextToken?: string;
2603
+
2604
+ ConsumedCapacity?: ConsumedCapacity;
2570
2605
  }
2571
2606
  export declare namespace ExecuteStatementOutput {
2572
2607
 
@@ -2605,6 +2640,8 @@ export declare namespace TransactGetItem {
2605
2640
  export interface BatchExecuteStatementInput {
2606
2641
 
2607
2642
  Statements: BatchStatementRequest[] | undefined;
2643
+
2644
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | string;
2608
2645
  }
2609
2646
  export declare namespace BatchExecuteStatementInput {
2610
2647
 
@@ -2613,6 +2650,8 @@ export declare namespace BatchExecuteStatementInput {
2613
2650
  export interface BatchExecuteStatementOutput {
2614
2651
 
2615
2652
  Responses?: BatchStatementResponse[];
2653
+
2654
+ ConsumedCapacity?: ConsumedCapacity[];
2616
2655
  }
2617
2656
  export declare namespace BatchExecuteStatementOutput {
2618
2657
 
@@ -2623,6 +2662,8 @@ export interface ExecuteTransactionInput {
2623
2662
  TransactStatements: ParameterizedStatement[] | undefined;
2624
2663
 
2625
2664
  ClientRequestToken?: string;
2665
+
2666
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | string;
2626
2667
  }
2627
2668
  export declare namespace ExecuteTransactionInput {
2628
2669
 
@@ -2631,6 +2672,8 @@ export declare namespace ExecuteTransactionInput {
2631
2672
  export interface ExecuteTransactionOutput {
2632
2673
 
2633
2674
  Responses?: ItemResponse[];
2675
+
2676
+ ConsumedCapacity?: ConsumedCapacity[];
2634
2677
  }
2635
2678
  export declare namespace ExecuteTransactionOutput {
2636
2679
 
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.40.0",
4
+ "version": "3.44.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.40.0",
24
+ "@aws-sdk/client-sts": "3.43.0",
25
25
  "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.40.0",
26
+ "@aws-sdk/credential-provider-node": "3.41.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.40.0",
28
28
  "@aws-sdk/hash-node": "3.40.0",
29
29
  "@aws-sdk/invalid-dependency": "3.40.0",
@@ -39,7 +39,7 @@
39
39
  "@aws-sdk/node-config-provider": "3.40.0",
40
40
  "@aws-sdk/node-http-handler": "3.40.0",
41
41
  "@aws-sdk/protocol-http": "3.40.0",
42
- "@aws-sdk/smithy-client": "3.40.0",
42
+ "@aws-sdk/smithy-client": "3.41.0",
43
43
  "@aws-sdk/types": "3.40.0",
44
44
  "@aws-sdk/url-parser": "3.40.0",
45
45
  "@aws-sdk/util-base64-browser": "3.37.0",