Skip to content

Commit 4d6a388

Browse files
Update generated code (#1874)
* update generated code * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 569745b commit 4d6a388

9 files changed

+45
-23
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS enhancement: Documentation update for secondary indexes and Create_Table.
8+
- AWS api-change: Added `eu-isoe-west-1` region
9+
510
### Changed
611

712
- Sort exception alphabetically.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"extra": {
3434
"branch-alias": {
35-
"dev-master": "3.5-dev"
35+
"dev-master": "3.6-dev"
3636
}
3737
}
3838
}

src/DynamoDbClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,13 @@ protected function getEndpointMetadata(?string $region): array
11891189
'signService' => 'dynamodb',
11901190
'signVersions' => ['v4'],
11911191
];
1192+
case 'eu-isoe-west-1':
1193+
return [
1194+
'endpoint' => 'https://dynamodb.eu-isoe-west-1.cloud.adc-e.uk',
1195+
'signRegion' => 'eu-isoe-west-1',
1196+
'signService' => 'dynamodb',
1197+
'signVersions' => ['v4'],
1198+
];
11921199
case 'us-isob-east-1':
11931200
return [
11941201
'endpoint' => 'https://dynamodb.us-isob-east-1.sc2s.sgov.gov',

src/Exception/ConditionalCheckFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\Contracts\HttpClient\ResponseInterface;
88

99
/**
10-
* A condition specified in the operation could not be evaluated.
10+
* A condition specified in the operation failed to be evaluated.
1111
*/
1212
final class ConditionalCheckFailedException extends ClientException
1313
{

src/Exception/RequestLimitExceededException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use AsyncAws\Core\Exception\Http\ClientException;
66

77
/**
8-
* Throughput exceeds the current throughput quota for your account. Please contact Amazon Web Services Support [^1] to
8+
* Throughput exceeds the current throughput quota for your account. Please contact Amazon Web ServicesSupport [^1] to
99
* request a quota increase.
1010
*
1111
* [^1]: https://aws.amazon.com/support

src/Input/CreateTableInput.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ final class CreateTableInput extends Input
107107
* - `NonKeyAttributes` - A list of one or more non-key attribute names that are projected into the secondary index.
108108
* The total count of attributes provided in `NonKeyAttributes`, summed across all of the secondary indexes, must
109109
* not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct
110-
* attributes when determining the total.
110+
* attributes when determining the total. This limit only applies when you specify the ProjectionType of `INCLUDE`.
111+
* You still can specify the ProjectionType of `ALL` to project all attributes from the source table, even if the
112+
* table has more than 100 attributes.
111113
*
112114
* @var LocalSecondaryIndex[]|null
113115
*/
@@ -133,7 +135,9 @@ final class CreateTableInput extends Input
133135
* - `NonKeyAttributes` - A list of one or more non-key attribute names that are projected into the secondary index.
134136
* The total count of attributes provided in `NonKeyAttributes`, summed across all of the secondary indexes, must
135137
* not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct
136-
* attributes when determining the total.
138+
* attributes when determining the total. This limit only applies when you specify the ProjectionType of `INCLUDE`.
139+
* You still can specify the ProjectionType of `ALL` to project all attributes from the source table, even if the
140+
* table has more than 100 attributes.
137141
*
138142
* - `ProvisionedThroughput` - The provisioned throughput settings for the global secondary index, consisting of read
139143
* and write capacity units.
@@ -146,13 +150,13 @@ final class CreateTableInput extends Input
146150
* Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed
147151
* later.
148152
*
149-
* - `PROVISIONED` - We recommend using `PROVISIONED` for predictable workloads. `PROVISIONED` sets the billing mode to
150-
* Provisioned capacity mode [^1].
151-
* - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for unpredictable workloads. `PAY_PER_REQUEST` sets the
152-
* billing mode to On-demand capacity mode [^2].
153+
* - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for most DynamoDB workloads. `PAY_PER_REQUEST` sets the
154+
* billing mode to On-demand capacity mode [^1].
155+
* - `PROVISIONED` - We recommend using `PROVISIONED` for steady workloads with predictable growth where capacity
156+
* requirements can be reliably forecasted. `PROVISIONED` sets the billing mode to Provisioned capacity mode [^2].
153157
*
154-
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html
155-
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html
158+
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html
159+
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html
156160
*
157161
* @var BillingMode::*|null
158162
*/

src/Input/UpdateTableInput.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ final class UpdateTableInput extends Input
4747
* capacity values are estimated based on the consumed read and write capacity of your table and global secondary
4848
* indexes over the past 30 minutes.
4949
*
50-
* - `PROVISIONED` - We recommend using `PROVISIONED` for predictable workloads. `PROVISIONED` sets the billing mode to
51-
* Provisioned capacity mode [^1].
52-
* - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for unpredictable workloads. `PAY_PER_REQUEST` sets the
53-
* billing mode to On-demand capacity mode [^2].
50+
* - `PAY_PER_REQUEST` - We recommend using `PAY_PER_REQUEST` for most DynamoDB workloads. `PAY_PER_REQUEST` sets the
51+
* billing mode to On-demand capacity mode [^1].
52+
* - `PROVISIONED` - We recommend using `PROVISIONED` for steady workloads with predictable growth where capacity
53+
* requirements can be reliably forecasted. `PROVISIONED` sets the billing mode to Provisioned capacity mode [^2].
5454
*
55-
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html
56-
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html
55+
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/on-demand-capacity-mode.html
56+
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/provisioned-capacity-mode.html
5757
*
5858
* @var BillingMode::*|null
5959
*/
@@ -141,7 +141,7 @@ final class UpdateTableInput extends Input
141141
* If you don't specify this parameter, the global table consistency mode defaults to `EVENTUAL`.
142142
*
143143
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_ReplicationGroupUpdate.html#DDB-Type-ReplicationGroupUpdate-Create
144-
* [^2]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates
144+
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html#DDB-UpdateTable-request-ReplicaUpdates
145145
* [^3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PreviewFeatures.html#multi-region-strong-consistency-gt
146146
*
147147
* @var MultiRegionConsistency::*|null

src/ValueObject/Projection.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ final class Projection
2828
/**
2929
* Represents the non-key attribute names which will be projected into the index.
3030
*
31-
* For local secondary indexes, the total count of `NonKeyAttributes` summed across all of the local secondary indexes,
32-
* must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct
33-
* attributes when determining the total.
31+
* For global and local secondary indexes, the total count of `NonKeyAttributes` summed across all of the secondary
32+
* indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two
33+
* distinct attributes when determining the total. This limit only applies when you specify the ProjectionType of
34+
* `INCLUDE`. You still can specify the ProjectionType of `ALL` to project all attributes from the source table, even if
35+
* the table has more than 100 attributes.
3436
*
3537
* @var string[]|null
3638
*/

src/ValueObject/TableDescription.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ final class TableDescription
150150
* - `NonKeyAttributes` - A list of one or more non-key attribute names that are projected into the secondary index.
151151
* The total count of attributes provided in `NonKeyAttributes`, summed across all of the secondary indexes, must
152152
* not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct
153-
* attributes when determining the total.
153+
* attributes when determining the total. This limit only applies when you specify the ProjectionType of `INCLUDE`.
154+
* You still can specify the ProjectionType of `ALL` to project all attributes from the source table, even if the
155+
* table has more than 100 attributes.
154156
*
155157
* - `IndexSizeBytes` - Represents the total size of the index, in bytes. DynamoDB updates this value approximately
156158
* every six hours. Recent changes might not be reflected in this value.
@@ -203,7 +205,9 @@ final class TableDescription
203205
* - `NonKeyAttributes` - A list of one or more non-key attribute names that are projected into the secondary index.
204206
* The total count of attributes provided in `NonKeyAttributes`, summed across all of the secondary indexes, must
205207
* not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct
206-
* attributes when determining the total.
208+
* attributes when determining the total. This limit only applies when you specify the ProjectionType of `INCLUDE`.
209+
* You still can specify the ProjectionType of `ALL` to project all attributes from the source table, even if the
210+
* table has more than 100 attributes.
207211
*
208212
* - `ProvisionedThroughput` - The provisioned throughput settings for the global secondary index, consisting of read
209213
* and write capacity units, along with data about increases and decreases.

0 commit comments

Comments
 (0)