diff --git a/manifest.json b/manifest.json index 977666e19..87c9da9e1 100644 --- a/manifest.json +++ b/manifest.json @@ -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": { diff --git a/src/Service/Comprehend/CHANGELOG.md b/src/Service/Comprehend/CHANGELOG.md index a73a0bb03..01b2355de 100644 --- a/src/Service/Comprehend/CHANGELOG.md +++ b/src/Service/Comprehend/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: rework regions definition + ### Changed - Sort exception alphabetically. diff --git a/src/Service/Comprehend/composer.json b/src/Service/Comprehend/composer.json index 8b0c79b3c..2d787b3c5 100644 --- a/src/Service/Comprehend/composer.json +++ b/src/Service/Comprehend/composer.json @@ -27,7 +27,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } } } diff --git a/src/Service/Comprehend/src/ComprehendClient.php b/src/Service/Comprehend/src/ComprehendClient.php index 20a648902..2ea286c2b 100644 --- a/src/Service/Comprehend/src/ComprehendClient.php +++ b/src/Service/Comprehend/src/ComprehendClient.php @@ -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 @@ -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', @@ -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)); } } diff --git a/src/Service/DynamoDb/CHANGELOG.md b/src/Service/DynamoDb/CHANGELOG.md index 6d953e84e..aaf3b70d3 100644 --- a/src/Service/DynamoDb/CHANGELOG.md +++ b/src/Service/DynamoDb/CHANGELOG.md @@ -10,6 +10,7 @@ ### Changed - Sort exception alphabetically. +- AWS enhancement: Documentation updates. ## 3.5.0 diff --git a/src/Service/DynamoDb/src/DynamoDbClient.php b/src/Service/DynamoDb/src/DynamoDbClient.php index b359080a7..360461932 100644 --- a/src/Service/DynamoDb/src/DynamoDbClient.php +++ b/src/Service/DynamoDb/src/DynamoDbClient.php @@ -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 * diff --git a/src/Service/DynamoDb/src/ValueObject/CreateGlobalSecondaryIndexAction.php b/src/Service/DynamoDb/src/ValueObject/CreateGlobalSecondaryIndexAction.php index 1381c5ba4..0cf8b96c4 100644 --- a/src/Service/DynamoDb/src/ValueObject/CreateGlobalSecondaryIndexAction.php +++ b/src/Service/DynamoDb/src/ValueObject/CreateGlobalSecondaryIndexAction.php @@ -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 */ diff --git a/src/Service/DynamoDb/src/ValueObject/ProvisionedThroughput.php b/src/Service/DynamoDb/src/ValueObject/ProvisionedThroughput.php index b39b9e401..41002f751 100644 --- a/src/Service/DynamoDb/src/ValueObject/ProvisionedThroughput.php +++ b/src/Service/DynamoDb/src/ValueObject/ProvisionedThroughput.php @@ -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*. diff --git a/src/Service/DynamoDb/src/ValueObject/TableWarmThroughputDescription.php b/src/Service/DynamoDb/src/ValueObject/TableWarmThroughputDescription.php index 96c73ec25..00433eac7 100644 --- a/src/Service/DynamoDb/src/ValueObject/TableWarmThroughputDescription.php +++ b/src/Service/DynamoDb/src/ValueObject/TableWarmThroughputDescription.php @@ -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 { @@ -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 */ diff --git a/src/Service/Rekognition/CHANGELOG.md b/src/Service/Rekognition/CHANGELOG.md index 508341556..c40204043 100644 --- a/src/Service/Rekognition/CHANGELOG.md +++ b/src/Service/Rekognition/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: rework regions definition + ### Changed - Sort exception alphabetically. diff --git a/src/Service/Rekognition/composer.json b/src/Service/Rekognition/composer.json index d14ca9502..9e0fe8dd0 100644 --- a/src/Service/Rekognition/composer.json +++ b/src/Service/Rekognition/composer.json @@ -28,7 +28,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } } } diff --git a/src/Service/Rekognition/src/RekognitionClient.php b/src/Service/Rekognition/src/RekognitionClient.php index 50db627e4..dccfab78c 100644 --- a/src/Service/Rekognition/src/RekognitionClient.php +++ b/src/Service/Rekognition/src/RekognitionClient.php @@ -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; @@ -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', @@ -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)); } }