@aws-sdk/client-dynamodb 3.42.0 → 3.46.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.
@@ -891,71 +891,6 @@ export declare enum BackupTypeFilter {
891
891
  SYSTEM = "SYSTEM",
892
892
  USER = "USER"
893
893
  }
894
- export declare enum BatchStatementErrorCodeEnum {
895
- AccessDenied = "AccessDenied",
896
- ConditionalCheckFailed = "ConditionalCheckFailed",
897
- DuplicateItem = "DuplicateItem",
898
- InternalServerError = "InternalServerError",
899
- ItemCollectionSizeLimitExceeded = "ItemCollectionSizeLimitExceeded",
900
- ProvisionedThroughputExceeded = "ProvisionedThroughputExceeded",
901
- RequestLimitExceeded = "RequestLimitExceeded",
902
- ResourceNotFound = "ResourceNotFound",
903
- ThrottlingError = "ThrottlingError",
904
- TransactionConflict = "TransactionConflict",
905
- ValidationError = "ValidationError"
906
- }
907
- /**
908
- * <p> An error associated with a statement in a PartiQL batch that was run. </p>
909
- */
910
- export interface BatchStatementError {
911
- /**
912
- * <p> The error code associated with the failed PartiQL batch statement. </p>
913
- */
914
- Code?: BatchStatementErrorCodeEnum | string;
915
- /**
916
- * <p> The error message associated with the PartiQL batch resposne. </p>
917
- */
918
- Message?: string;
919
- }
920
- export declare namespace BatchStatementError {
921
- /**
922
- * @internal
923
- */
924
- const filterSensitiveLog: (obj: BatchStatementError) => any;
925
- }
926
- /**
927
- * <p>An error occurred on the server side.</p>
928
- */
929
- export interface InternalServerError extends __SmithyException, $MetadataBearer {
930
- name: "InternalServerError";
931
- $fault: "server";
932
- /**
933
- * <p>The server encountered an internal error trying to fulfill the request.</p>
934
- */
935
- message?: string;
936
- }
937
- export declare namespace InternalServerError {
938
- /**
939
- * @internal
940
- */
941
- const filterSensitiveLog: (obj: InternalServerError) => any;
942
- }
943
- /**
944
- * <p>Throughput exceeds the current throughput quota for your account. Please contact
945
- * <a href="https://aws.amazon.com/support">Amazon Web Services Support</a> to request a
946
- * quota increase.</p>
947
- */
948
- export interface RequestLimitExceeded extends __SmithyException, $MetadataBearer {
949
- name: "RequestLimitExceeded";
950
- $fault: "client";
951
- message?: string;
952
- }
953
- export declare namespace RequestLimitExceeded {
954
- /**
955
- * @internal
956
- */
957
- const filterSensitiveLog: (obj: RequestLimitExceeded) => any;
958
- }
959
894
  export declare type ReturnConsumedCapacity = "INDEXES" | "NONE" | "TOTAL";
960
895
  /**
961
896
  * <p>Represents the amount of provisioned throughput capacity consumed on a table or an
@@ -1030,6 +965,71 @@ export declare namespace ConsumedCapacity {
1030
965
  */
1031
966
  const filterSensitiveLog: (obj: ConsumedCapacity) => any;
1032
967
  }
968
+ export declare enum BatchStatementErrorCodeEnum {
969
+ AccessDenied = "AccessDenied",
970
+ ConditionalCheckFailed = "ConditionalCheckFailed",
971
+ DuplicateItem = "DuplicateItem",
972
+ InternalServerError = "InternalServerError",
973
+ ItemCollectionSizeLimitExceeded = "ItemCollectionSizeLimitExceeded",
974
+ ProvisionedThroughputExceeded = "ProvisionedThroughputExceeded",
975
+ RequestLimitExceeded = "RequestLimitExceeded",
976
+ ResourceNotFound = "ResourceNotFound",
977
+ ThrottlingError = "ThrottlingError",
978
+ TransactionConflict = "TransactionConflict",
979
+ ValidationError = "ValidationError"
980
+ }
981
+ /**
982
+ * <p> An error associated with a statement in a PartiQL batch that was run. </p>
983
+ */
984
+ export interface BatchStatementError {
985
+ /**
986
+ * <p> The error code associated with the failed PartiQL batch statement. </p>
987
+ */
988
+ Code?: BatchStatementErrorCodeEnum | string;
989
+ /**
990
+ * <p> The error message associated with the PartiQL batch resposne. </p>
991
+ */
992
+ Message?: string;
993
+ }
994
+ export declare namespace BatchStatementError {
995
+ /**
996
+ * @internal
997
+ */
998
+ const filterSensitiveLog: (obj: BatchStatementError) => any;
999
+ }
1000
+ /**
1001
+ * <p>An error occurred on the server side.</p>
1002
+ */
1003
+ export interface InternalServerError extends __SmithyException, $MetadataBearer {
1004
+ name: "InternalServerError";
1005
+ $fault: "server";
1006
+ /**
1007
+ * <p>The server encountered an internal error trying to fulfill the request.</p>
1008
+ */
1009
+ message?: string;
1010
+ }
1011
+ export declare namespace InternalServerError {
1012
+ /**
1013
+ * @internal
1014
+ */
1015
+ const filterSensitiveLog: (obj: InternalServerError) => any;
1016
+ }
1017
+ /**
1018
+ * <p>Throughput exceeds the current throughput quota for your account. Please contact
1019
+ * <a href="https://aws.amazon.com/support">Amazon Web Services Support</a> to request a
1020
+ * quota increase.</p>
1021
+ */
1022
+ export interface RequestLimitExceeded extends __SmithyException, $MetadataBearer {
1023
+ name: "RequestLimitExceeded";
1024
+ $fault: "client";
1025
+ message?: string;
1026
+ }
1027
+ export declare namespace RequestLimitExceeded {
1028
+ /**
1029
+ * @internal
1030
+ */
1031
+ const filterSensitiveLog: (obj: RequestLimitExceeded) => any;
1032
+ }
1033
1033
  export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
1034
1034
  name: "InvalidEndpointException";
1035
1035
  $fault: "client";
@@ -1444,6 +1444,30 @@ export declare namespace ReplicaGlobalSecondaryIndexDescription {
1444
1444
  const filterSensitiveLog: (obj: ReplicaGlobalSecondaryIndexDescription) => any;
1445
1445
  }
1446
1446
  export declare type ReplicaStatus = "ACTIVE" | "CREATING" | "CREATION_FAILED" | "DELETING" | "INACCESSIBLE_ENCRYPTION_CREDENTIALS" | "REGION_DISABLED" | "UPDATING";
1447
+ export declare enum TableClass {
1448
+ STANDARD = "STANDARD",
1449
+ STANDARD_INFREQUENT_ACCESS = "STANDARD_INFREQUENT_ACCESS"
1450
+ }
1451
+ /**
1452
+ * <p>Contains details of the table class.</p>
1453
+ */
1454
+ export interface TableClassSummary {
1455
+ /**
1456
+ * <p>The table class of the specified table. Valid values are <code>STANDARD</code> and
1457
+ * <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
1458
+ */
1459
+ TableClass?: TableClass | string;
1460
+ /**
1461
+ * <p>The date and time at which the table class was last updated.</p>
1462
+ */
1463
+ LastUpdateDateTime?: Date;
1464
+ }
1465
+ export declare namespace TableClassSummary {
1466
+ /**
1467
+ * @internal
1468
+ */
1469
+ const filterSensitiveLog: (obj: TableClassSummary) => any;
1470
+ }
1447
1471
  /**
1448
1472
  * <p>Contains the details of the replica.</p>
1449
1473
  */
@@ -1523,6 +1547,10 @@ export interface ReplicaDescription {
1523
1547
  * of inaccessibility check the <code>ReplicaStatus</code> property.</p>
1524
1548
  */
1525
1549
  ReplicaInaccessibleDateTime?: Date;
1550
+ /**
1551
+ * <p>Contains details of the table class.</p>
1552
+ */
1553
+ ReplicaTableClassSummary?: TableClassSummary;
1526
1554
  }
1527
1555
  export declare namespace ReplicaDescription {
1528
1556
  /**
@@ -1665,6 +1693,11 @@ export interface CreateReplicationGroupMemberAction {
1665
1693
  * <p>Replica-specific global secondary index settings.</p>
1666
1694
  */
1667
1695
  GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndex[];
1696
+ /**
1697
+ * <p>Replica-specific table class. If not specified, uses the source table's
1698
+ * table class.</p>
1699
+ */
1700
+ TableClassOverride?: TableClass | string;
1668
1701
  }
1669
1702
  export declare namespace CreateReplicationGroupMemberAction {
1670
1703
  /**
@@ -2100,6 +2133,11 @@ export interface CreateTableInput {
2100
2133
  * for DynamoDB</a>.</p>
2101
2134
  */
2102
2135
  Tags?: Tag[];
2136
+ /**
2137
+ * <p>The table class of the new table. Valid values are <code>STANDARD</code> and
2138
+ * <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
2139
+ */
2140
+ TableClass?: TableClass | string;
2103
2141
  }
2104
2142
  export declare namespace CreateTableInput {
2105
2143
  /**
@@ -2719,6 +2757,10 @@ export interface TableDescription {
2719
2757
  * <p>Contains information about the table archive.</p>
2720
2758
  */
2721
2759
  ArchivalSummary?: ArchivalSummary;
2760
+ /**
2761
+ * <p>Contains details of the table class.</p>
2762
+ */
2763
+ TableClassSummary?: TableClassSummary;
2722
2764
  }
2723
2765
  export declare namespace TableDescription {
2724
2766
  /**
@@ -3372,6 +3414,10 @@ export interface ReplicaSettingsDescription {
3372
3414
  * <p>Replica global secondary index settings for the global table.</p>
3373
3415
  */
3374
3416
  ReplicaGlobalSecondaryIndexSettings?: ReplicaGlobalSecondaryIndexSettingsDescription[];
3417
+ /**
3418
+ * <p>Contains details of the table class.</p>
3419
+ */
3420
+ ReplicaTableClassSummary?: TableClassSummary;
3375
3421
  }
3376
3422
  export declare namespace ReplicaSettingsDescription {
3377
3423
  /**
@@ -4681,6 +4727,11 @@ export interface ReplicaSettingsUpdate {
4681
4727
  * modified.</p>
4682
4728
  */
4683
4729
  ReplicaGlobalSecondaryIndexSettingsUpdate?: ReplicaGlobalSecondaryIndexSettingsUpdate[];
4730
+ /**
4731
+ * <p>Replica-specific table class. If not specified, uses the source table's
4732
+ * table class.</p>
4733
+ */
4734
+ ReplicaTableClass?: TableClass | string;
4684
4735
  }
4685
4736
  export declare namespace ReplicaSettingsUpdate {
4686
4737
  /**
@@ -4869,6 +4920,11 @@ export interface UpdateReplicationGroupMemberAction {
4869
4920
  * <p>Replica-specific global secondary index settings.</p>
4870
4921
  */
4871
4922
  GlobalSecondaryIndexes?: ReplicaGlobalSecondaryIndex[];
4923
+ /**
4924
+ * <p>Replica-specific table class. If not specified, uses the source table's
4925
+ * table class.</p>
4926
+ */
4927
+ TableClassOverride?: TableClass | string;
4872
4928
  }
4873
4929
  export declare namespace UpdateReplicationGroupMemberAction {
4874
4930
  /**
@@ -5000,6 +5056,11 @@ export interface UpdateTableInput {
5000
5056
  * </note>
5001
5057
  */
5002
5058
  ReplicaUpdates?: ReplicationGroupUpdate[];
5059
+ /**
5060
+ * <p>The table class of the table to be updated. Valid values are <code>STANDARD</code> and
5061
+ * <code>STANDARD_INFREQUENT_ACCESS</code>.</p>
5062
+ */
5063
+ TableClass?: TableClass | string;
5003
5064
  }
5004
5065
  export declare namespace UpdateTableInput {
5005
5066
  /**
@@ -5895,6 +5956,34 @@ export interface ExecuteStatementInput {
5895
5956
  * statement response.</p>
5896
5957
  */
5897
5958
  NextToken?: string;
5959
+ /**
5960
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
5961
+ * consumption that is returned in the response:</p>
5962
+ * <ul>
5963
+ * <li>
5964
+ * <p>
5965
+ * <code>INDEXES</code> - The response includes the aggregate
5966
+ * <code>ConsumedCapacity</code> for the operation, together with
5967
+ * <code>ConsumedCapacity</code> for each table and secondary index that was
5968
+ * accessed.</p>
5969
+ * <p>Note that some operations, such as <code>GetItem</code> and
5970
+ * <code>BatchGetItem</code>, do not access any indexes at all. In these cases,
5971
+ * specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code>
5972
+ * information for table(s).</p>
5973
+ * </li>
5974
+ * <li>
5975
+ * <p>
5976
+ * <code>TOTAL</code> - The response includes only the aggregate
5977
+ * <code>ConsumedCapacity</code> for the operation.</p>
5978
+ * </li>
5979
+ * <li>
5980
+ * <p>
5981
+ * <code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the
5982
+ * response.</p>
5983
+ * </li>
5984
+ * </ul>
5985
+ */
5986
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | string;
5898
5987
  }
5899
5988
  export declare namespace ExecuteStatementInput {
5900
5989
  /**
@@ -5971,8 +6060,8 @@ export interface GetItemInput {
5971
6060
  */
5972
6061
  ConsistentRead?: boolean;
5973
6062
  /**
5974
- * <p>Determines the level of detail about provisioned throughput consumption that is
5975
- * returned in the response:</p>
6063
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
6064
+ * consumption that is returned in the response:</p>
5976
6065
  * <ul>
5977
6066
  * <li>
5978
6067
  * <p>
@@ -6201,6 +6290,14 @@ export interface ExecuteStatementOutput {
6201
6290
  * request to get the remaining results.</p>
6202
6291
  */
6203
6292
  NextToken?: string;
6293
+ /**
6294
+ * <p>The capacity units consumed by an operation. The data returned includes the total
6295
+ * provisioned throughput consumed, along with statistics for the table and any indexes
6296
+ * involved in the operation. <code>ConsumedCapacity</code> is only returned if the request
6297
+ * asked for it. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html">Provisioned Throughput</a> in the <i>Amazon DynamoDB Developer
6298
+ * Guide</i>.</p>
6299
+ */
6300
+ ConsumedCapacity?: ConsumedCapacity;
6204
6301
  }
6205
6302
  export declare namespace ExecuteStatementOutput {
6206
6303
  /**
@@ -6331,6 +6428,34 @@ export interface BatchExecuteStatementInput {
6331
6428
  * <p>The list of PartiQL statements representing the batch to run.</p>
6332
6429
  */
6333
6430
  Statements: BatchStatementRequest[] | undefined;
6431
+ /**
6432
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
6433
+ * consumption that is returned in the response:</p>
6434
+ * <ul>
6435
+ * <li>
6436
+ * <p>
6437
+ * <code>INDEXES</code> - The response includes the aggregate
6438
+ * <code>ConsumedCapacity</code> for the operation, together with
6439
+ * <code>ConsumedCapacity</code> for each table and secondary index that was
6440
+ * accessed.</p>
6441
+ * <p>Note that some operations, such as <code>GetItem</code> and
6442
+ * <code>BatchGetItem</code>, do not access any indexes at all. In these cases,
6443
+ * specifying <code>INDEXES</code> will only return <code>ConsumedCapacity</code>
6444
+ * information for table(s).</p>
6445
+ * </li>
6446
+ * <li>
6447
+ * <p>
6448
+ * <code>TOTAL</code> - The response includes only the aggregate
6449
+ * <code>ConsumedCapacity</code> for the operation.</p>
6450
+ * </li>
6451
+ * <li>
6452
+ * <p>
6453
+ * <code>NONE</code> - No <code>ConsumedCapacity</code> details are included in the
6454
+ * response.</p>
6455
+ * </li>
6456
+ * </ul>
6457
+ */
6458
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | string;
6334
6459
  }
6335
6460
  export declare namespace BatchExecuteStatementInput {
6336
6461
  /**
@@ -6343,6 +6468,11 @@ export interface BatchExecuteStatementOutput {
6343
6468
  * <p>The response to each PartiQL statement in the batch.</p>
6344
6469
  */
6345
6470
  Responses?: BatchStatementResponse[];
6471
+ /**
6472
+ * <p>The capacity units consumed by the entire operation. The values of the list are
6473
+ * ordered according to the ordering of the statements.</p>
6474
+ */
6475
+ ConsumedCapacity?: ConsumedCapacity[];
6346
6476
  }
6347
6477
  export declare namespace BatchExecuteStatementOutput {
6348
6478
  /**
@@ -6360,6 +6490,11 @@ export interface ExecuteTransactionInput {
6360
6490
  * statement response.</p>
6361
6491
  */
6362
6492
  ClientRequestToken?: string;
6493
+ /**
6494
+ * <p>Determines the level of detail about either provisioned or on-demand throughput consumption that is
6495
+ * returned in the response. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html">TransactGetItems</a> and <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html">TransactWriteItems</a>.</p>
6496
+ */
6497
+ ReturnConsumedCapacity?: ReturnConsumedCapacity | string;
6363
6498
  }
6364
6499
  export declare namespace ExecuteTransactionInput {
6365
6500
  /**
@@ -6372,6 +6507,11 @@ export interface ExecuteTransactionOutput {
6372
6507
  * <p>The response to a PartiQL transaction.</p>
6373
6508
  */
6374
6509
  Responses?: ItemResponse[];
6510
+ /**
6511
+ * <p>The capacity units consumed by the entire operation. The values of the list are
6512
+ * ordered according to the ordering of the statements.</p>
6513
+ */
6514
+ ConsumedCapacity?: ConsumedCapacity[];
6375
6515
  }
6376
6516
  export declare namespace ExecuteTransactionOutput {
6377
6517
  /**
@@ -6769,8 +6909,8 @@ export interface BatchGetItemInput {
6769
6909
  [key: string]: KeysAndAttributes;
6770
6910
  } | undefined;
6771
6911
  /**
6772
- * <p>Determines the level of detail about provisioned throughput consumption that is
6773
- * returned in the response:</p>
6912
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
6913
+ * consumption that is returned in the response:</p>
6774
6914
  * <ul>
6775
6915
  * <li>
6776
6916
  * <p>
@@ -7815,8 +7955,8 @@ export interface ScanInput {
7815
7955
  [key: string]: AttributeValue;
7816
7956
  };
7817
7957
  /**
7818
- * <p>Determines the level of detail about provisioned throughput consumption that is
7819
- * returned in the response:</p>
7958
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
7959
+ * consumption that is returned in the response:</p>
7820
7960
  * <ul>
7821
7961
  * <li>
7822
7962
  * <p>
@@ -8056,8 +8196,8 @@ export interface BatchWriteItemInput {
8056
8196
  [key: string]: WriteRequest[];
8057
8197
  } | undefined;
8058
8198
  /**
8059
- * <p>Determines the level of detail about provisioned throughput consumption that is
8060
- * returned in the response:</p>
8199
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
8200
+ * consumption that is returned in the response:</p>
8061
8201
  * <ul>
8062
8202
  * <li>
8063
8203
  * <p>
@@ -8153,8 +8293,8 @@ export interface DeleteItemInput {
8153
8293
  */
8154
8294
  ReturnValues?: ReturnValue | string;
8155
8295
  /**
8156
- * <p>Determines the level of detail about provisioned throughput consumption that is
8157
- * returned in the response:</p>
8296
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
8297
+ * consumption that is returned in the response:</p>
8158
8298
  * <ul>
8159
8299
  * <li>
8160
8300
  * <p>
@@ -8365,8 +8505,8 @@ export interface PutItemInput {
8365
8505
  */
8366
8506
  ReturnValues?: ReturnValue | string;
8367
8507
  /**
8368
- * <p>Determines the level of detail about provisioned throughput consumption that is
8369
- * returned in the response:</p>
8508
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
8509
+ * consumption that is returned in the response:</p>
8370
8510
  * <ul>
8371
8511
  * <li>
8372
8512
  * <p>
@@ -8662,8 +8802,8 @@ export interface QueryInput {
8662
8802
  [key: string]: AttributeValue;
8663
8803
  };
8664
8804
  /**
8665
- * <p>Determines the level of detail about provisioned throughput consumption that is
8666
- * returned in the response:</p>
8805
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
8806
+ * consumption that is returned in the response:</p>
8667
8807
  * <ul>
8668
8808
  * <li>
8669
8809
  * <p>
@@ -9112,8 +9252,8 @@ export interface UpdateItemInput {
9112
9252
  */
9113
9253
  ReturnValues?: ReturnValue | string;
9114
9254
  /**
9115
- * <p>Determines the level of detail about provisioned throughput consumption that is
9116
- * returned in the response:</p>
9255
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
9256
+ * consumption that is returned in the response:</p>
9117
9257
  * <ul>
9118
9258
  * <li>
9119
9259
  * <p>
@@ -9403,8 +9543,8 @@ export interface TransactWriteItemsInput {
9403
9543
  */
9404
9544
  TransactItems: TransactWriteItem[] | undefined;
9405
9545
  /**
9406
- * <p>Determines the level of detail about provisioned throughput consumption that is
9407
- * returned in the response:</p>
9546
+ * <p>Determines the level of detail about either provisioned or on-demand throughput
9547
+ * consumption that is returned in the response:</p>
9408
9548
  * <ul>
9409
9549
  * <li>
9410
9550
  * <p>