diff --git a/manifest.json b/manifest.json index 83294698a..326ec5970 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "variables": { - "${LATEST}": "3.342.12" + "${LATEST}": "3.342.13" }, "endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json", "services": { diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index 87cb90c8f..8669e8d74 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: rewrite declaration of regions + ## 2.4.0 ### Added diff --git a/src/Service/Sqs/composer.json b/src/Service/Sqs/composer.json index e656b3995..08b6a0c5c 100644 --- a/src/Service/Sqs/composer.json +++ b/src/Service/Sqs/composer.json @@ -28,7 +28,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.4-dev" + "dev-master": "2.5-dev" } } } diff --git a/src/Service/Sqs/src/SqsClient.php b/src/Service/Sqs/src/SqsClient.php index 325b54787..a084ec9e6 100644 --- a/src/Service/Sqs/src/SqsClient.php +++ b/src/Service/Sqs/src/SqsClient.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\Core\Result; use AsyncAws\Sqs\Enum\MessageSystemAttributeName; @@ -890,6 +891,46 @@ protected function getEndpointMetadata(?string $region): array } switch ($region) { + case 'af-south-1': + case 'ap-east-1': + case 'ap-northeast-1': + case 'ap-northeast-2': + case 'ap-northeast-3': + case 'ap-south-1': + case 'ap-south-2': + case 'ap-southeast-1': + case 'ap-southeast-2': + case 'ap-southeast-3': + case 'ap-southeast-4': + case 'ap-southeast-5': + case 'ap-southeast-7': + case 'ca-central-1': + case 'ca-west-1': + case 'eu-central-1': + case 'eu-central-2': + case 'eu-north-1': + case 'eu-south-1': + case 'eu-south-2': + case 'eu-west-1': + case 'eu-west-2': + case 'eu-west-3': + case 'il-central-1': + case 'me-central-1': + case 'me-south-1': + case 'mx-central-1': + case 'sa-east-1': + case 'us-east-1': + case 'us-east-2': + case 'us-gov-east-1': + case 'us-gov-west-1': + case 'us-west-1': + case 'us-west-2': + return [ + 'endpoint' => "https://sqs.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'sqs', + 'signVersions' => ['v4'], + ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -965,12 +1006,7 @@ protected function getEndpointMetadata(?string $region): array ]; } - return [ - 'endpoint' => "https://sqs.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'sqs', - 'signVersions' => ['v4'], - ]; + throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Sqs".', $region)); } protected function getServiceCode(): string diff --git a/src/Service/Sso/CHANGELOG.md b/src/Service/Sso/CHANGELOG.md index 601750049..858947cad 100644 --- a/src/Service/Sso/CHANGELOG.md +++ b/src/Service/Sso/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: added `ap-southeast-5` region + ## 1.3.0 ### Added diff --git a/src/Service/Sso/composer.json b/src/Service/Sso/composer.json index 60d5b27d3..ab190deb5 100644 --- a/src/Service/Sso/composer.json +++ b/src/Service/Sso/composer.json @@ -26,7 +26,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.4-dev" } } } diff --git a/src/Service/Sso/src/SsoClient.php b/src/Service/Sso/src/SsoClient.php index 32ade1f2c..7e8a934aa 100644 --- a/src/Service/Sso/src/SsoClient.php +++ b/src/Service/Sso/src/SsoClient.php @@ -71,6 +71,7 @@ protected function getEndpointMetadata(?string $region): array case 'ap-southeast-2': case 'ap-southeast-3': case 'ap-southeast-4': + case 'ap-southeast-5': case 'ca-central-1': case 'ca-west-1': case 'eu-central-1':