Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"${LATEST}": "3.342.25"
"${LATEST}": "3.342.26"
},
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
"services": {
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Comprehend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: TODO

### Changed

- Sort exception alphabetically.
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Comprehend/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.3-dev"
"dev-master": "1.4-dev"
}
}
}
27 changes: 21 additions & 6 deletions src/Service/Comprehend/src/ComprehendClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
use AsyncAws\Core\Configuration;
use AsyncAws\Core\Exception\UnsupportedRegion;
use AsyncAws\Core\RequestContext;

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

switch ($region) {
case 'ap-northeast-1':
case 'ap-northeast-2':
case 'ap-south-1':
case 'ap-southeast-1':
case 'ap-southeast-2':
case 'ca-central-1':
case 'eu-central-1':
case 'eu-west-1':
case 'eu-west-2':
case 'us-east-1':
case 'us-east-2':
case 'us-gov-west-1':
case 'us-west-2':
return [
'endpoint' => "https://comprehend.$region.amazonaws.com",
'signRegion' => $region,
'signService' => 'comprehend',
'signVersions' => ['v4'],
];
case 'fips-ca-central-1':
return [
'endpoint' => 'https://comprehend-fips.ca-central-1.amazonaws.com',
Expand Down Expand Up @@ -116,11 +136,6 @@ protected function getEndpointMetadata(?string $region): array
];
}

return [
'endpoint' => "https://comprehend.$region.amazonaws.com",
'signRegion' => $region,
'signService' => 'comprehend',
'signVersions' => ['v4'],
];
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Comprehend".', $region));
}
}
1 change: 1 addition & 0 deletions src/Service/DynamoDb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Changed

- Sort exception alphabetically.
- AWS enhancement: Documentation updates.

## 3.5.0

Expand Down
2 changes: 2 additions & 0 deletions src/Service/DynamoDb/src/DynamoDbClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ class DynamoDbClient extends AbstractApi
* minimum read capacity units according to the type of read. For more information, see Working with Tables [^2] in the
* *Amazon DynamoDB Developer Guide*.
*
* > `BatchGetItem` will result in a `ValidationException` if the same key is specified multiple times.
*
* [^1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#BatchOperations
* [^2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#CapacityUnitCalculations
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ final class CreateGlobalSecondaryIndexAction

/**
* The maximum number of read and write units for the global secondary index being created. If you use this parameter,
* you must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
* you must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both. You must use either `OnDemand Throughput` or
* `ProvisionedThroughput` based on your table's capacity mode.
*
* @var OnDemandThroughput|null
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use AsyncAws\Core\Exception\InvalidArgument;

/**
* Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the
* `UpdateTable` operation.
* Represents the provisioned throughput settings for the specified global secondary index. You must use
* `ProvisionedThroughput` or `OnDemandThroughput` based on your table’s capacity mode.
*
* For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas [^1] in the
* *Amazon DynamoDB Developer Guide*.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
use AsyncAws\DynamoDb\Enum\TableStatus;

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

/**
* Represents warm throughput value of the base table..
* Represents warm throughput value of the base table.
*
* @var TableStatus::*|null
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Rekognition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: TODO

### Changed

- Sort exception alphabetically.
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Rekognition/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.4-dev"
"dev-master": "1.5-dev"
}
}
}
30 changes: 24 additions & 6 deletions src/Service/Rekognition/src/RekognitionClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
use AsyncAws\Core\Configuration;
use AsyncAws\Core\Exception\UnsupportedRegion;
use AsyncAws\Core\RequestContext;
use AsyncAws\Rekognition\Enum\Attribute;
use AsyncAws\Rekognition\Enum\CustomizationFeature;
Expand Down Expand Up @@ -676,6 +677,28 @@ protected function getEndpointMetadata(?string $region): array
}

switch ($region) {
case 'ap-northeast-1':
case 'ap-northeast-2':
case 'ap-south-1':
case 'ap-southeast-1':
case 'ap-southeast-2':
case 'ca-central-1':
case 'eu-central-1':
case 'eu-south-2':
case 'eu-west-1':
case 'eu-west-2':
case 'il-central-1':
case 'us-east-1':
case 'us-east-2':
case 'us-gov-west-1':
case 'us-west-1':
case 'us-west-2':
return [
'endpoint' => "https://rekognition.$region.amazonaws.com",
'signRegion' => $region,
'signService' => 'rekognition',
'signVersions' => ['v4'],
];
case 'rekognition.ca-central-1':
return [
'endpoint' => 'https://rekognition.rekognition.ca-central-1.amazonaws.com',
Expand Down Expand Up @@ -776,11 +799,6 @@ protected function getEndpointMetadata(?string $region): array
];
}

return [
'endpoint' => "https://rekognition.$region.amazonaws.com",
'signRegion' => $region,
'signService' => 'rekognition',
'signVersions' => ['v4'],
];
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Rekognition".', $region));
}
}
Loading