Skip to content

Commit 71bd4ba

Browse files
Update generated code (#1841)
* update generated code * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent ec24e31 commit 71bd4ba

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Added `us-isof-east-1` , `us-isof-south-1`, `us-isof-east-1-fips` and `us-isof-south-1-fips` regions
8+
59
## 1.7.0
610

711
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "1.7-dev"
31+
"dev-master": "1.8-dev"
3232
}
3333
}
3434
}

src/KmsClient.php

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,10 +1106,10 @@ protected function getEndpointMetadata(?string $region): array
11061106
'signVersions' => ['v4'],
11071107
];
11081108
case 'ProdFips':
1109-
case 'us-isob-east-1-fips':
1109+
case 'us-isof-east-1-fips':
11101110
return [
1111-
'endpoint' => 'https://kms-fips.us-isob-east-1.sc2s.sgov.gov',
1112-
'signRegion' => 'us-isob-east-1',
1111+
'endpoint' => 'https://kms-fips.us-isof-east-1.csp.hci.ic.gov',
1112+
'signRegion' => 'us-isof-east-1',
11131113
'signService' => 'kms',
11141114
'signVersions' => ['v4'],
11151115
];
@@ -1367,6 +1367,14 @@ protected function getEndpointMetadata(?string $region): array
13671367
'signService' => 'kms',
13681368
'signVersions' => ['v4'],
13691369
];
1370+
case 'us-isof-east-1':
1371+
case 'us-isof-south-1':
1372+
return [
1373+
'endpoint' => "https://kms.$region.csp.hci.ic.gov",
1374+
'signRegion' => $region,
1375+
'signService' => 'kms',
1376+
'signVersions' => ['v4'],
1377+
];
13701378
case 'us-isob-east-1':
13711379
return [
13721380
'endpoint' => 'https://kms.us-isob-east-1.sc2s.sgov.gov',
@@ -1388,6 +1396,20 @@ protected function getEndpointMetadata(?string $region): array
13881396
'signService' => 'kms',
13891397
'signVersions' => ['v4'],
13901398
];
1399+
case 'us-isob-east-1-fips':
1400+
return [
1401+
'endpoint' => 'https://kms-fips.us-isob-east-1.sc2s.sgov.gov',
1402+
'signRegion' => 'us-isob-east-1',
1403+
'signService' => 'kms',
1404+
'signVersions' => ['v4'],
1405+
];
1406+
case 'us-isof-south-1-fips':
1407+
return [
1408+
'endpoint' => 'https://kms-fips.us-isof-south-1.csp.hci.ic.gov',
1409+
'signRegion' => 'us-isof-south-1',
1410+
'signService' => 'kms',
1411+
'signVersions' => ['v4'],
1412+
];
13911413
}
13921414

13931415
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Kms".', $region));

0 commit comments

Comments
 (0)