Skip to content

Commit 9d1375a

Browse files
Update generated code (#1877)
* update generated code * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent a02680f commit 9d1375a

12 files changed

+67
-20
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.342.25"
3+
"${LATEST}": "3.342.26"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Comprehend/CHANGELOG.md

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

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: rework regions definition
8+
59
### Changed
610

711
- Sort exception alphabetically.

src/Service/Comprehend/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.3-dev"
30+
"dev-master": "1.4-dev"
3131
}
3232
}
3333
}

src/Service/Comprehend/src/ComprehendClient.php

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
1212
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
1313
use AsyncAws\Core\Configuration;
14+
use AsyncAws\Core\Exception\UnsupportedRegion;
1415
use AsyncAws\Core\RequestContext;
1516

1617
class ComprehendClient extends AbstractApi
@@ -57,6 +58,25 @@ protected function getEndpointMetadata(?string $region): array
5758
}
5859

5960
switch ($region) {
61+
case 'ap-northeast-1':
62+
case 'ap-northeast-2':
63+
case 'ap-south-1':
64+
case 'ap-southeast-1':
65+
case 'ap-southeast-2':
66+
case 'ca-central-1':
67+
case 'eu-central-1':
68+
case 'eu-west-1':
69+
case 'eu-west-2':
70+
case 'us-east-1':
71+
case 'us-east-2':
72+
case 'us-gov-west-1':
73+
case 'us-west-2':
74+
return [
75+
'endpoint' => "https://comprehend.$region.amazonaws.com",
76+
'signRegion' => $region,
77+
'signService' => 'comprehend',
78+
'signVersions' => ['v4'],
79+
];
6080
case 'fips-ca-central-1':
6181
return [
6282
'endpoint' => 'https://comprehend-fips.ca-central-1.amazonaws.com',
@@ -116,11 +136,6 @@ protected function getEndpointMetadata(?string $region): array
116136
];
117137
}
118138

119-
return [
120-
'endpoint' => "https://comprehend.$region.amazonaws.com",
121-
'signRegion' => $region,
122-
'signService' => 'comprehend',
123-
'signVersions' => ['v4'],
124-
];
139+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Comprehend".', $region));
125140
}
126141
}

src/Service/DynamoDb/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Changed
1111

1212
- Sort exception alphabetically.
13+
- AWS enhancement: Documentation updates.
1314

1415
## 3.5.0
1516

src/Service/DynamoDb/src/DynamoDbClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ class DynamoDbClient extends AbstractApi
131131
* minimum read capacity units according to the type of read. For more information, see Working with Tables [^2] in the
132132
* *Amazon DynamoDB Developer Guide*.
133133
*
134+
* > `BatchGetItem` will result in a `ValidationException` if the same key is specified multiple times.
135+
*
134136
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations
135137
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#CapacityUnitCalculations
136138
*

src/Service/DynamoDb/src/ValueObject/CreateGlobalSecondaryIndexAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ final class CreateGlobalSecondaryIndexAction
4545

4646
/**
4747
* The maximum number of read and write units for the global secondary index being created. If you use this parameter,
48-
* you must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
48+
* you must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. You must use either `OnDemand Throughput` or
49+
* `ProvisionedThroughput` based on your table's capacity mode.
4950
*
5051
* @var OnDemandThroughput|null
5152
*/

src/Service/DynamoDb/src/ValueObject/ProvisionedThroughput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use AsyncAws\Core\Exception\InvalidArgument;
66

77
/**
8-
* Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the
9-
* `UpdateTable` operation.
8+
* Represents the provisioned throughput settings for the specified global secondary index. You must use
9+
* `ProvisionedThroughput` or `OnDemandThroughput` based on your table’s capacity mode.
1010
*
1111
* For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas [^1] in the
1212
* *Amazon DynamoDB Developer Guide*.

src/Service/DynamoDb/src/ValueObject/TableWarmThroughputDescription.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
use AsyncAws\DynamoDb\Enum\TableStatus;
66

77
/**
8-
* Represents the warm throughput value (in read units per second and write units per second) of the base table.
8+
* Represents the warm throughput value (in read units per second and write units per second) of the table. Warm
9+
* throughput is applicable for DynamoDB Standard-IA tables and specifies the minimum provisioned capacity maintained
10+
* for immediate data access.
911
*/
1012
final class TableWarmThroughputDescription
1113
{
@@ -24,7 +26,7 @@ final class TableWarmThroughputDescription
2426
private $writeUnitsPerSecond;
2527

2628
/**
27-
* Represents warm throughput value of the base table..
29+
* Represents warm throughput value of the base table.
2830
*
2931
* @var TableStatus::*|null
3032
*/

src/Service/Rekognition/CHANGELOG.md

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

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: rework regions definition
8+
59
### Changed
610

711
- Sort exception alphabetically.

0 commit comments

Comments
 (0)