Skip to content

Commit a2d8893

Browse files
author
awstools
committed
feat(client-dynamodb): Increased DynamoDB transaction limit from 25 to 100.
1 parent 7b3d77d commit a2d8893

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

clients/client-dynamodb/src/DynamoDB.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@ export class DynamoDB extends DynamoDBClient {
20972097
* <p>
20982098
* <code>TransactGetItems</code> is a synchronous operation that atomically retrieves
20992099
* multiple items from one or more tables (but not from indexes) in a single account and
2100-
* Region. A <code>TransactGetItems</code> call can contain up to 25
2100+
* Region. A <code>TransactGetItems</code> call can contain up to 100
21012101
* <code>TransactGetItem</code> objects, each of which contains a <code>Get</code>
21022102
* structure that specifies an item to retrieve from a table in the account and Region. A
21032103
* call to <code>TransactGetItems</code> cannot retrieve items from tables in more than one
@@ -2153,7 +2153,7 @@ export class DynamoDB extends DynamoDBClient {
21532153

21542154
/**
21552155
* <p>
2156-
* <code>TransactWriteItems</code> is a synchronous write operation that groups up to 25
2156+
* <code>TransactWriteItems</code> is a synchronous write operation that groups up to 100
21572157
* action requests. These actions can target items in different tables, but not in
21582158
* different Amazon Web Services accounts or Regions, and no two actions can target the same
21592159
* item. For example, you cannot both <code>ConditionCheck</code> and <code>Update</code>

clients/client-dynamodb/src/commands/TransactGetItemsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface TransactGetItemsCommandOutput extends TransactGetItemsOutput, _
3131
* <p>
3232
* <code>TransactGetItems</code> is a synchronous operation that atomically retrieves
3333
* multiple items from one or more tables (but not from indexes) in a single account and
34-
* Region. A <code>TransactGetItems</code> call can contain up to 25
34+
* Region. A <code>TransactGetItems</code> call can contain up to 100
3535
* <code>TransactGetItem</code> objects, each of which contains a <code>Get</code>
3636
* structure that specifies an item to retrieve from a table in the account and Region. A
3737
* call to <code>TransactGetItems</code> cannot retrieve items from tables in more than one

clients/client-dynamodb/src/commands/TransactWriteItemsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface TransactWriteItemsCommandOutput extends TransactWriteItemsOutpu
2929

3030
/**
3131
* <p>
32-
* <code>TransactWriteItems</code> is a synchronous write operation that groups up to 25
32+
* <code>TransactWriteItems</code> is a synchronous write operation that groups up to 100
3333
* action requests. These actions can target items in different tables, but not in
3434
* different Amazon Web Services accounts or Regions, and no two actions can target the same
3535
* item. For example, you cannot both <code>ConditionCheck</code> and <code>Update</code>

clients/client-dynamodb/src/models/models_0.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6744,7 +6744,7 @@ export interface TransactGetItemsOutput {
67446744
ConsumedCapacity?: ConsumedCapacity[];
67456745

67466746
/**
6747-
* <p>An ordered array of up to 25 <code>ItemResponse</code> objects, each of which
6747+
* <p>An ordered array of up to 100 <code>ItemResponse</code> objects, each of which
67486748
* corresponds to the <code>TransactGetItem</code> object in the same position in the
67496749
* <i>TransactItems</i> array. Each <code>ItemResponse</code> object
67506750
* contains a Map of the name-value pairs that are the projected attributes of the
@@ -7437,7 +7437,7 @@ export interface ExpectedAttributeValue {
74377437

74387438
export interface TransactGetItemsInput {
74397439
/**
7440-
* <p>An ordered array of up to 25 <code>TransactGetItem</code> objects, each of which
7440+
* <p>An ordered array of up to 100 <code>TransactGetItem</code> objects, each of which
74417441
* contains a <code>Get</code> structure.</p>
74427442
*/
74437443
TransactItems: TransactGetItem[] | undefined;
@@ -9691,7 +9691,7 @@ export interface TransactWriteItem {
96919691

96929692
export interface TransactWriteItemsInput {
96939693
/**
9694-
* <p>An ordered array of up to 25 <code>TransactWriteItem</code> objects, each of which
9694+
* <p>An ordered array of up to 100 <code>TransactWriteItem</code> objects, each of which
96959695
* contains a <code>ConditionCheck</code>, <code>Put</code>, <code>Update</code>, or
96969696
* <code>Delete</code> object. These can operate on items in different tables, but the
96979697
* tables must reside in the same Amazon Web Services account and Region, and no two of them

codegen/sdk-codegen/aws-models/dynamodb.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@
12081208
"traits": {
12091209
"smithy.api#length": {
12101210
"min": 1,
1211-
"max": 25
1211+
"max": 100
12121212
}
12131213
}
12141214
},
@@ -5147,7 +5147,7 @@
51475147
"traits": {
51485148
"smithy.api#length": {
51495149
"min": 1,
5150-
"max": 25
5150+
"max": 100
51515151
}
51525152
}
51535153
},
@@ -6095,7 +6095,7 @@
60956095
"traits": {
60966096
"smithy.api#length": {
60976097
"min": 1,
6098-
"max": 25
6098+
"max": 100
60996099
}
61006100
}
61016101
},
@@ -8920,7 +8920,7 @@
89208920
"traits": {
89218921
"smithy.api#length": {
89228922
"min": 1,
8923-
"max": 25
8923+
"max": 100
89248924
}
89258925
}
89268926
},
@@ -8956,7 +8956,7 @@
89568956
"aws.api#clientDiscoveredEndpoint": {
89578957
"required": false
89588958
},
8959-
"smithy.api#documentation": "<p>\n <code>TransactGetItems</code> is a synchronous operation that atomically retrieves\n multiple items from one or more tables (but not from indexes) in a single account and\n Region. A <code>TransactGetItems</code> call can contain up to 25\n <code>TransactGetItem</code> objects, each of which contains a <code>Get</code>\n structure that specifies an item to retrieve from a table in the account and Region. A\n call to <code>TransactGetItems</code> cannot retrieve items from tables in more than one\n Amazon Web Services account or Region. The aggregate size of the items in the\n transaction cannot exceed 4 MB.</p>\n <p>DynamoDB rejects the entire <code>TransactGetItems</code> request if any of\n the following is true:</p>\n <ul>\n <li>\n <p>A conflicting operation is in the process of updating an item to be\n read.</p>\n </li>\n <li>\n <p>There is insufficient provisioned capacity for the transaction to be\n completed.</p>\n </li>\n <li>\n <p>There is a user error, such as an invalid data format.</p>\n </li>\n <li>\n <p>The aggregate size of the items in the transaction cannot exceed 4 MB.</p>\n </li>\n </ul>"
8959+
"smithy.api#documentation": "<p>\n <code>TransactGetItems</code> is a synchronous operation that atomically retrieves\n multiple items from one or more tables (but not from indexes) in a single account and\n Region. A <code>TransactGetItems</code> call can contain up to 100\n <code>TransactGetItem</code> objects, each of which contains a <code>Get</code>\n structure that specifies an item to retrieve from a table in the account and Region. A\n call to <code>TransactGetItems</code> cannot retrieve items from tables in more than one\n Amazon Web Services account or Region. The aggregate size of the items in the\n transaction cannot exceed 4 MB.</p>\n <p>DynamoDB rejects the entire <code>TransactGetItems</code> request if any of\n the following is true:</p>\n <ul>\n <li>\n <p>A conflicting operation is in the process of updating an item to be\n read.</p>\n </li>\n <li>\n <p>There is insufficient provisioned capacity for the transaction to be\n completed.</p>\n </li>\n <li>\n <p>There is a user error, such as an invalid data format.</p>\n </li>\n <li>\n <p>The aggregate size of the items in the transaction cannot exceed 4 MB.</p>\n </li>\n </ul>"
89608960
}
89618961
},
89628962
"com.amazonaws.dynamodb#TransactGetItemsInput": {
@@ -8965,7 +8965,7 @@
89658965
"TransactItems": {
89668966
"target": "com.amazonaws.dynamodb#TransactGetItemList",
89678967
"traits": {
8968-
"smithy.api#documentation": "<p>An ordered array of up to 25 <code>TransactGetItem</code> objects, each of which\n contains a <code>Get</code> structure.</p>",
8968+
"smithy.api#documentation": "<p>An ordered array of up to 100 <code>TransactGetItem</code> objects, each of which\n contains a <code>Get</code> structure.</p>",
89698969
"smithy.api#required": {}
89708970
}
89718971
},
@@ -8989,7 +8989,7 @@
89898989
"Responses": {
89908990
"target": "com.amazonaws.dynamodb#ItemResponseList",
89918991
"traits": {
8992-
"smithy.api#documentation": "<p>An ordered array of up to 25 <code>ItemResponse</code> objects, each of which\n corresponds to the <code>TransactGetItem</code> object in the same position in the\n <i>TransactItems</i> array. Each <code>ItemResponse</code> object\n contains a Map of the name-value pairs that are the projected attributes of the\n requested item.</p>\n <p>If a requested item could not be retrieved, the corresponding\n <code>ItemResponse</code> object is Null, or if the requested item has no projected\n attributes, the corresponding <code>ItemResponse</code> object is an empty Map. </p>"
8992+
"smithy.api#documentation": "<p>An ordered array of up to 100 <code>ItemResponse</code> objects, each of which\n corresponds to the <code>TransactGetItem</code> object in the same position in the\n <i>TransactItems</i> array. Each <code>ItemResponse</code> object\n contains a Map of the name-value pairs that are the projected attributes of the\n requested item.</p>\n <p>If a requested item could not be retrieved, the corresponding\n <code>ItemResponse</code> object is Null, or if the requested item has no projected\n attributes, the corresponding <code>ItemResponse</code> object is an empty Map. </p>"
89938993
}
89948994
}
89958995
}
@@ -9034,7 +9034,7 @@
90349034
"traits": {
90359035
"smithy.api#length": {
90369036
"min": 1,
9037-
"max": 25
9037+
"max": 100
90389038
}
90399039
}
90409040
},
@@ -9076,7 +9076,7 @@
90769076
"aws.api#clientDiscoveredEndpoint": {
90779077
"required": false
90789078
},
9079-
"smithy.api#documentation": "<p>\n <code>TransactWriteItems</code> is a synchronous write operation that groups up to 25\n action requests. These actions can target items in different tables, but not in\n different Amazon Web Services accounts or Regions, and no two actions can target the same\n item. For example, you cannot both <code>ConditionCheck</code> and <code>Update</code>\n the same item. The aggregate size of the items in the transaction cannot exceed 4\n MB.</p>\n\n <p>The actions are completed atomically so that either all of them succeed, or all of\n them fail. They are defined by the following objects:</p>\n\n <ul>\n <li>\n <p>\n <code>Put</code>  —   Initiates a <code>PutItem</code>\n operation to write a new item. This structure specifies the primary key of the\n item to be written, the name of the table to write it in, an optional condition\n expression that must be satisfied for the write to succeed, a list of the item's\n attributes, and a field indicating whether to retrieve the item's attributes if\n the condition is not met.</p>\n </li>\n <li>\n <p>\n <code>Update</code>  —   Initiates an <code>UpdateItem</code>\n operation to update an existing item. This structure specifies the primary key\n of the item to be updated, the name of the table where it resides, an optional\n condition expression that must be satisfied for the update to succeed, an\n expression that defines one or more attributes to be updated, and a field\n indicating whether to retrieve the item's attributes if the condition is not\n met.</p>\n </li>\n <li>\n <p>\n <code>Delete</code>  —   Initiates a <code>DeleteItem</code>\n operation to delete an existing item. This structure specifies the primary key\n of the item to be deleted, the name of the table where it resides, an optional\n condition expression that must be satisfied for the deletion to succeed, and a\n field indicating whether to retrieve the item's attributes if the condition is\n not met.</p>\n </li>\n <li>\n <p>\n <code>ConditionCheck</code>  —   Applies a condition to an item\n that is not being modified by the transaction. This structure specifies the\n primary key of the item to be checked, the name of the table where it resides, a\n condition expression that must be satisfied for the transaction to succeed, and\n a field indicating whether to retrieve the item's attributes if the condition is\n not met.</p>\n </li>\n </ul>\n\n <p>DynamoDB rejects the entire <code>TransactWriteItems</code> request if any of the\n following is true:</p>\n <ul>\n <li>\n <p>A condition in one of the condition expressions is not met.</p>\n </li>\n <li>\n <p>An ongoing operation is in the process of updating the same item.</p>\n </li>\n <li>\n <p>There is insufficient provisioned capacity for the transaction to be\n completed.</p>\n </li>\n <li>\n <p>An item size becomes too large (bigger than 400 KB), a local secondary index\n (LSI) becomes too large, or a similar validation error occurs because of changes\n made by the transaction.</p>\n </li>\n <li>\n <p>The aggregate size of the items in the transaction exceeds 4 MB.</p>\n </li>\n <li>\n <p>There is a user error, such as an invalid data format.</p>\n </li>\n </ul>"
9079+
"smithy.api#documentation": "<p>\n <code>TransactWriteItems</code> is a synchronous write operation that groups up to 100\n action requests. These actions can target items in different tables, but not in\n different Amazon Web Services accounts or Regions, and no two actions can target the same\n item. For example, you cannot both <code>ConditionCheck</code> and <code>Update</code>\n the same item. The aggregate size of the items in the transaction cannot exceed 4\n MB.</p>\n\n <p>The actions are completed atomically so that either all of them succeed, or all of\n them fail. They are defined by the following objects:</p>\n\n <ul>\n <li>\n <p>\n <code>Put</code>  —   Initiates a <code>PutItem</code>\n operation to write a new item. This structure specifies the primary key of the\n item to be written, the name of the table to write it in, an optional condition\n expression that must be satisfied for the write to succeed, a list of the item's\n attributes, and a field indicating whether to retrieve the item's attributes if\n the condition is not met.</p>\n </li>\n <li>\n <p>\n <code>Update</code>  —   Initiates an <code>UpdateItem</code>\n operation to update an existing item. This structure specifies the primary key\n of the item to be updated, the name of the table where it resides, an optional\n condition expression that must be satisfied for the update to succeed, an\n expression that defines one or more attributes to be updated, and a field\n indicating whether to retrieve the item's attributes if the condition is not\n met.</p>\n </li>\n <li>\n <p>\n <code>Delete</code>  —   Initiates a <code>DeleteItem</code>\n operation to delete an existing item. This structure specifies the primary key\n of the item to be deleted, the name of the table where it resides, an optional\n condition expression that must be satisfied for the deletion to succeed, and a\n field indicating whether to retrieve the item's attributes if the condition is\n not met.</p>\n </li>\n <li>\n <p>\n <code>ConditionCheck</code>  —   Applies a condition to an item\n that is not being modified by the transaction. This structure specifies the\n primary key of the item to be checked, the name of the table where it resides, a\n condition expression that must be satisfied for the transaction to succeed, and\n a field indicating whether to retrieve the item's attributes if the condition is\n not met.</p>\n </li>\n </ul>\n\n <p>DynamoDB rejects the entire <code>TransactWriteItems</code> request if any of the\n following is true:</p>\n <ul>\n <li>\n <p>A condition in one of the condition expressions is not met.</p>\n </li>\n <li>\n <p>An ongoing operation is in the process of updating the same item.</p>\n </li>\n <li>\n <p>There is insufficient provisioned capacity for the transaction to be\n completed.</p>\n </li>\n <li>\n <p>An item size becomes too large (bigger than 400 KB), a local secondary index\n (LSI) becomes too large, or a similar validation error occurs because of changes\n made by the transaction.</p>\n </li>\n <li>\n <p>The aggregate size of the items in the transaction exceeds 4 MB.</p>\n </li>\n <li>\n <p>There is a user error, such as an invalid data format.</p>\n </li>\n </ul>"
90809080
}
90819081
},
90829082
"com.amazonaws.dynamodb#TransactWriteItemsInput": {
@@ -9085,7 +9085,7 @@
90859085
"TransactItems": {
90869086
"target": "com.amazonaws.dynamodb#TransactWriteItemList",
90879087
"traits": {
9088-
"smithy.api#documentation": "<p>An ordered array of up to 25 <code>TransactWriteItem</code> objects, each of which\n contains a <code>ConditionCheck</code>, <code>Put</code>, <code>Update</code>, or\n <code>Delete</code> object. These can operate on items in different tables, but the\n tables must reside in the same Amazon Web Services account and Region, and no two of them\n can operate on the same item. </p>",
9088+
"smithy.api#documentation": "<p>An ordered array of up to 100 <code>TransactWriteItem</code> objects, each of which\n contains a <code>ConditionCheck</code>, <code>Put</code>, <code>Update</code>, or\n <code>Delete</code> object. These can operate on items in different tables, but the\n tables must reside in the same Amazon Web Services account and Region, and no two of them\n can operate on the same item. </p>",
90899089
"smithy.api#required": {}
90909090
}
90919091
},

0 commit comments

Comments
 (0)