Skip to content
/ core Public

Commit c13e794

Browse files
authored
Use a more stable sorting for the region metadata (#2014)
Sorting region groups based on the numer of regions in the group generates some unnecessary changes during SDK updates when adding a new region in a group.
1 parent 3d6661f commit c13e794

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Fix PHP 8.5 deprecation by avoiding using `null` as an array offset.
2020
- Harden code against error cases
2121
- AWS enhancement: Documentation updates.
22+
- Use a more stable sorting for the list of generated region metadata
2223

2324
### Fixed
2425

src/Sts/StsClient.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,13 @@ protected function getEndpointMetadata(?string $region): array
396396
'signService' => 'sts',
397397
'signVersions' => ['v4'],
398398
];
399+
case 'eu-isoe-west-1':
400+
return [
401+
'endpoint' => 'https://sts.eu-isoe-west-1.cloud.adc-e.uk',
402+
'signRegion' => 'eu-isoe-west-1',
403+
'signService' => 'sts',
404+
'signVersions' => ['v4'],
405+
];
399406
case 'us-iso-east-1':
400407
case 'us-iso-west-1':
401408
return [
@@ -420,13 +427,6 @@ protected function getEndpointMetadata(?string $region): array
420427
'signService' => 'sts',
421428
'signVersions' => ['v4'],
422429
];
423-
case 'eu-isoe-west-1':
424-
return [
425-
'endpoint' => 'https://sts.eu-isoe-west-1.cloud.adc-e.uk',
426-
'signRegion' => 'eu-isoe-west-1',
427-
'signService' => 'sts',
428-
'signVersions' => ['v4'],
429-
];
430430
}
431431

432432
return [

0 commit comments

Comments
 (0)