Skip to content

Commit

Permalink
Improve region deduplication (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Jul 28, 2022
1 parent 70c64f2 commit 603d548
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ protected function getEndpointMetadata(?string $region): array
'signService' => 'ses',
'signVersions' => ['v4'],
];
case 'fips-us-gov-west-1':
case 'fips-us-west-2':
return [
'endpoint' => 'https://email-fips.us-gov-west-1.amazonaws.com',
'signRegion' => 'us-gov-west-1',
'endpoint' => 'https://email-fips.us-west-2.amazonaws.com',
'signRegion' => 'us-west-2',
'signService' => 'ses',
'signVersions' => ['v4'],
];
case 'fips-us-west-2':
case 'fips-us-gov-west-1':
return [
'endpoint' => 'https://email-fips.us-west-2.amazonaws.com',
'signRegion' => 'us-west-2',
'endpoint' => 'https://email-fips.us-gov-west-1.amazonaws.com',
'signRegion' => 'us-gov-west-1',
'signService' => 'ses',
'signVersions' => ['v4'],
];
Expand Down

0 comments on commit 603d548

Please sign in to comment.