Skip to content

Commit 4b0de90

Browse files
Update generated code (#1899)
* update generated code * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent e444555 commit 4b0de90

File tree

3 files changed

+7
-43
lines changed

3 files changed

+7
-43
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: Rework regions configuration
8+
59
## 2.9.1
610

711
### Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"extra": {
3232
"branch-alias": {
33-
"dev-master": "2.9-dev"
33+
"dev-master": "2.10-dev"
3434
}
3535
}
3636
}

src/S3Client.php

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,46 +3200,6 @@ protected function getEndpointMetadata(?string $region): array
32003200
}
32013201

32023202
switch ($region) {
3203-
case 'af-south-1':
3204-
case 'ap-east-1':
3205-
case 'ap-northeast-1':
3206-
case 'ap-northeast-2':
3207-
case 'ap-northeast-3':
3208-
case 'ap-south-1':
3209-
case 'ap-south-2':
3210-
case 'ap-southeast-1':
3211-
case 'ap-southeast-2':
3212-
case 'ap-southeast-3':
3213-
case 'ap-southeast-4':
3214-
case 'ap-southeast-5':
3215-
case 'ap-southeast-7':
3216-
case 'ca-central-1':
3217-
case 'ca-west-1':
3218-
case 'eu-central-1':
3219-
case 'eu-central-2':
3220-
case 'eu-north-1':
3221-
case 'eu-south-1':
3222-
case 'eu-south-2':
3223-
case 'eu-west-1':
3224-
case 'eu-west-2':
3225-
case 'eu-west-3':
3226-
case 'il-central-1':
3227-
case 'me-central-1':
3228-
case 'me-south-1':
3229-
case 'mx-central-1':
3230-
case 'sa-east-1':
3231-
case 'us-east-1':
3232-
case 'us-east-2':
3233-
case 'us-gov-east-1':
3234-
case 'us-gov-west-1':
3235-
case 'us-west-1':
3236-
case 'us-west-2':
3237-
return [
3238-
'endpoint' => "https://s3.$region.amazonaws.com",
3239-
'signRegion' => $region,
3240-
'signService' => 's3',
3241-
'signVersions' => ['s3v4'],
3242-
];
32433203
case 'cn-north-1':
32443204
case 'cn-northwest-1':
32453205
return [
@@ -3365,8 +3325,8 @@ protected function getEndpointMetadata(?string $region): array
33653325
}
33663326

33673327
return [
3368-
'endpoint' => 'https://s3.amazonaws.com',
3369-
'signRegion' => 'us-east-1',
3328+
'endpoint' => "https://s3.$region.amazonaws.com",
3329+
'signRegion' => $region,
33703330
'signService' => 's3',
33713331
'signVersions' => ['s3v4'],
33723332
];

0 commit comments

Comments
 (0)