Skip to content

Commit

Permalink
Update generated code (#1632)
Browse files Browse the repository at this point in the history
* update generated code

* Apply suggestions from code review

---------

Co-authored-by: Jérémy Derussé <[email protected]>
  • Loading branch information
async-aws-bot and jderusse committed Dec 21, 2023
1 parent 5911a3a commit 1c12ed5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- AWS api-change: Added `fips-us-iso-east-1` region
- AWS api-change: Added `ca-west-1` and `fips-ca-west-1` regions

## 2.1.0

Expand Down
8 changes: 8 additions & 0 deletions src/S3Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2936,6 +2936,7 @@ protected function getEndpointMetadata(?string $region): array
case 'ap-southeast-3':
case 'ap-southeast-4':
case 'ca-central-1':
case 'ca-west-1':
case 'eu-central-1':
case 'eu-central-2':
case 'eu-north-1':
Expand Down Expand Up @@ -2982,6 +2983,13 @@ protected function getEndpointMetadata(?string $region): array
'signService' => 's3',
'signVersions' => ['s3v4'],
];
case 'fips-ca-west-1':
return [
'endpoint' => 'https://s3-fips.ca-west-1.amazonaws.com',
'signRegion' => 'ca-west-1',
'signService' => 's3',
'signVersions' => ['s3v4'],
];
case 'fips-us-east-1':
return [
'endpoint' => 'https://s3-fips.us-east-1.amazonaws.com',
Expand Down

0 comments on commit 1c12ed5

Please sign in to comment.