Skip to content

Commit cc1cd99

Browse files
Update generated code (#1378)
update generated code
1 parent 4ca2f8e commit cc1cd99

11 files changed

+56
-17
lines changed

src/DynamoDbClient.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,11 @@ public function deleteTable($input): DeleteTableOutput
275275
}
276276

277277
/**
278-
* Returns the regional endpoint information.
278+
* Returns the regional endpoint information. This action must be included in your VPC endpoint policies, or access to
279+
* the DescribeEndpoints API will be denied. For more information on policy permissions, please see Internetwork traffic
280+
* privacy.
279281
*
282+
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/inter-network-traffic-privacy.html#inter-network-traffic-DescribeEndpoints
280283
* @see https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeEndpoints.html
281284
* @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-dynamodb-2012-08-10.html#describeendpoints
282285
*

src/Enum/Select.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* - `ALL_PROJECTED_ATTRIBUTES` - Allowed only when querying an index. Retrieves all attributes that have been projected
1414
* into the index. If the index is configured to project all attributes, this return value is equivalent to specifying
1515
* `ALL_ATTRIBUTES`.
16-
* - `COUNT` - Returns the number of matching items, rather than the matching items themselves.
16+
* - `COUNT` - Returns the number of matching items, rather than the matching items themselves. Note that this uses the
17+
* same quantity of read capacity units as getting the items, and is subject to the same item size calculations.
1718
* - `SPECIFIC_ATTRIBUTES` - Returns only the attributes listed in `ProjectionExpression`. This return value is
1819
* equivalent to specifying `ProjectionExpression` without specifying any value for `Select`.
1920
* If you query or scan a local secondary index and request only attributes that are projected into that index, the

src/Exception/TransactionCanceledException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
* - Throughput exceeds the current capacity for one or more global secondary indexes. DynamoDB is automatically
8888
* scaling your index so please try again shortly.
8989
*
90-
* > This message is returned when when writes get throttled on an On-Demand GSI as DynamoDB is automatically
91-
* > scaling the GSI.
90+
* > This message is returned when writes get throttled on an On-Demand GSI as DynamoDB is automatically scaling
91+
* > the GSI.
9292
*
9393
*
9494
*

src/Exception/TransactionInProgressException.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,32 @@
77

88
/**
99
* The transaction with the given request token is already in progress.
10+
* Recommended Settings.
11+
*
12+
* > This is a general recommendation for handling the `TransactionInProgressException`. These settings help ensure that
13+
* > the client retries will trigger completion of the ongoing `TransactWriteItems` request.
14+
*
15+
* - Set `clientExecutionTimeout` to a value that allows at least one retry to be processed after 5 seconds have elapsed
16+
* since the first attempt for the `TransactWriteItems` operation.
17+
* - Set `socketTimeout` to a value a little lower than the `requestTimeout` setting.
18+
* - `requestTimeout` should be set based on the time taken for the individual retries of a single HTTP request for your
19+
* use case, but setting it to 1 second or higher should work well to reduce chances of retries and
20+
* `TransactionInProgressException` errors.
21+
* - Use exponential backoff when retrying and tune backoff if needed.
22+
*
23+
* Assuming default retry policy, example timeout settings based on the guidelines above are as follows:
24+
* Example timeline:
25+
*
26+
* - 0-1000 first attempt
27+
* - 1000-1500 first sleep/delay (default retry policy uses 500 ms as base delay for 4xx errors)
28+
* - 1500-2500 second attempt
29+
* - 2500-3500 second sleep/delay (500 * 2, exponential backoff)
30+
* - 3500-4500 third attempt
31+
* - 4500-6500 third sleep/delay (500 * 2^2)
32+
* - 6500-7500 fourth attempt (this can trigger inline recovery since 5 seconds have elapsed since the first attempt
33+
* reached TC)
34+
*
35+
* @see https://github.com/aws/aws-sdk-java/blob/fd409dee8ae23fb8953e0bb4dbde65536a7e0514/aws-java-sdk-core/src/main/java/com/amazonaws/retry/PredefinedRetryPolicies.java#L97
1036
*/
1137
final class TransactionInProgressException extends ClientException
1238
{

src/Input/UpdateItemInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ final class UpdateItemInput extends Input
6868
private $conditionalOperator;
6969

7070
/**
71-
* Use `ReturnValues` if you want to get the item attributes as they appear before or after they are updated. For
72-
* `UpdateItem`, the valid values are:.
71+
* Use `ReturnValues` if you want to get the item attributes as they appear before or after they are successfully
72+
* updated. For `UpdateItem`, the valid values are:.
7373
*
7474
* @var ReturnValue::*|null
7575
*/

src/Result/DeleteItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DeleteItemOutput extends Result
2424
* The capacity units consumed by the `DeleteItem` operation. The data returned includes the total provisioned
2525
* throughput consumed, along with statistics for the table and any indexes involved in the operation.
2626
* `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` parameter was specified. For more information,
27-
* see Provisioned Mode in the *Amazon DynamoDB Developer Guide*.
27+
* see Provisioned Throughput in the *Amazon DynamoDB Developer Guide*.
2828
*
2929
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
3030
*/

src/Result/GetItemOutput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class GetItemOutput extends Result
2121
/**
2222
* The capacity units consumed by the `GetItem` operation. The data returned includes the total provisioned throughput
2323
* consumed, along with statistics for the table and any indexes involved in the operation. `ConsumedCapacity` is only
24-
* returned if the `ReturnConsumedCapacity` parameter was specified. For more information, see Read/Write Capacity Mode
25-
* in the *Amazon DynamoDB Developer Guide*.
24+
* returned if the `ReturnConsumedCapacity` parameter was specified. For more information, see Provisioned Throughput in
25+
* the *Amazon DynamoDB Developer Guide*.
2626
*
27-
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
27+
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html#ItemSizeCalculations.Reads
2828
*/
2929
private $consumedCapacity;
3030

src/Result/PutItemOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class PutItemOutput extends Result
2323
/**
2424
* The capacity units consumed by the `PutItem` operation. The data returned includes the total provisioned throughput
2525
* consumed, along with statistics for the table and any indexes involved in the operation. `ConsumedCapacity` is only
26-
* returned if the `ReturnConsumedCapacity` parameter was specified. For more information, see Read/Write Capacity Mode
27-
* in the *Amazon DynamoDB Developer Guide*.
26+
* returned if the `ReturnConsumedCapacity` parameter was specified. For more information, see Provisioned Throughput in
27+
* the *Amazon DynamoDB Developer Guide*.
2828
*
2929
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
3030
*/

src/Result/ScanOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ScanOutput extends Result implements \IteratorAggregate
5050
* returned if the `ReturnConsumedCapacity` parameter was specified. For more information, see Provisioned Throughput in
5151
* the *Amazon DynamoDB Developer Guide*.
5252
*
53-
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
53+
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html#ItemSizeCalculations.Reads
5454
*/
5555
private $consumedCapacity;
5656

src/Result/UpdateItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class UpdateItemOutput extends Result
2626
* `ConsumedCapacity` is only returned if the `ReturnConsumedCapacity` parameter was specified. For more information,
2727
* see Provisioned Throughput in the *Amazon DynamoDB Developer Guide*.
2828
*
29-
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
29+
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughput.html#ItemSizeCalculations.Reads
3030
*/
3131
private $consumedCapacity;
3232

0 commit comments

Comments
 (0)