Skip to content

Commit 7f172a1

Browse files
Update generated code (#1878)
* update generated code * Update src/Service/Athena/CHANGELOG.md * Apply suggestions from code review --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 9d1375a commit 7f172a1

File tree

9 files changed

+32
-43
lines changed

9 files changed

+32
-43
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.342.26"
3+
"${LATEST}": "3.342.28"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Athena/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- AWS api-change: Added `eu-isoe-west-1` region
8+
- AWS api-change: rewrite declaration of regions
89

910
## 3.2.0
1011

src/Service/Athena/src/AthenaClient.php

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
6060
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
6161
use AsyncAws\Core\Configuration;
62-
use AsyncAws\Core\Exception\UnsupportedRegion;
6362
use AsyncAws\Core\RequestContext;
6463

6564
class AthenaClient extends AbstractApi
@@ -703,44 +702,6 @@ protected function getEndpointMetadata(?string $region): array
703702
}
704703

705704
switch ($region) {
706-
case 'af-south-1':
707-
case 'ap-east-1':
708-
case 'ap-northeast-1':
709-
case 'ap-northeast-2':
710-
case 'ap-northeast-3':
711-
case 'ap-south-1':
712-
case 'ap-south-2':
713-
case 'ap-southeast-1':
714-
case 'ap-southeast-2':
715-
case 'ap-southeast-3':
716-
case 'ap-southeast-4':
717-
case 'ap-southeast-5':
718-
case 'ca-central-1':
719-
case 'ca-west-1':
720-
case 'eu-central-1':
721-
case 'eu-central-2':
722-
case 'eu-north-1':
723-
case 'eu-south-1':
724-
case 'eu-south-2':
725-
case 'eu-west-1':
726-
case 'eu-west-2':
727-
case 'eu-west-3':
728-
case 'il-central-1':
729-
case 'me-central-1':
730-
case 'me-south-1':
731-
case 'sa-east-1':
732-
case 'us-east-1':
733-
case 'us-east-2':
734-
case 'us-gov-east-1':
735-
case 'us-gov-west-1':
736-
case 'us-west-1':
737-
case 'us-west-2':
738-
return [
739-
'endpoint' => "https://athena.$region.amazonaws.com",
740-
'signRegion' => $region,
741-
'signService' => 'athena',
742-
'signVersions' => ['v4'],
743-
];
744705
case 'cn-north-1':
745706
case 'cn-northwest-1':
746707
return [
@@ -829,6 +790,11 @@ protected function getEndpointMetadata(?string $region): array
829790
];
830791
}
831792

832-
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Athena".', $region));
793+
return [
794+
'endpoint' => "https://athena.$region.amazonaws.com",
795+
'signRegion' => $region,
796+
'signService' => 'athena',
797+
'signVersions' => ['v4'],
798+
];
833799
}
834800
}

src/Service/Kinesis/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 `eu-isoe-west-1` region
8+
59
### Changed
610

711
- Sort exception alphabetically.

src/Service/Kinesis/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": "3.2-dev"
31+
"dev-master": "3.3-dev"
3232
}
3333
}
3434
}

src/Service/Kinesis/src/KinesisClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,13 @@ protected function getEndpointMetadata(?string $region): array
16331633
'signService' => 'kinesis',
16341634
'signVersions' => ['v4'],
16351635
];
1636+
case 'eu-isoe-west-1':
1637+
return [
1638+
'endpoint' => 'https://kinesis.eu-isoe-west-1.cloud.adc-e.uk',
1639+
'signRegion' => 'eu-isoe-west-1',
1640+
'signService' => 'kinesis',
1641+
'signVersions' => ['v4'],
1642+
];
16361643
case 'us-isob-east-1':
16371644
return [
16381645
'endpoint' => 'https://kinesis.us-isob-east-1.sc2s.sgov.gov',

src/Service/SecretsManager/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 `eu-isoe-west-1` region
8+
59
### Changed
610

711
- Sort exception alphabetically.

src/Service/SecretsManager/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.7-dev"
32+
"dev-master": "2.8-dev"
3333
}
3434
}
3535
}

src/Service/SecretsManager/src/SecretsManagerClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,13 @@ protected function getEndpointMetadata(?string $region): array
572572
'signService' => 'secretsmanager',
573573
'signVersions' => ['v4'],
574574
];
575+
case 'eu-isoe-west-1':
576+
return [
577+
'endpoint' => 'https://secretsmanager.eu-isoe-west-1.cloud.adc-e.uk',
578+
'signRegion' => 'eu-isoe-west-1',
579+
'signService' => 'secretsmanager',
580+
'signVersions' => ['v4'],
581+
];
575582
}
576583

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

0 commit comments

Comments
 (0)