Skip to content

Commit 5f9b524

Browse files
Update generated code (#1862)
* update generated code * Update src/Service/CloudWatchLogs/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent 70f75b9 commit 5f9b524

File tree

4 files changed

+12
-44
lines changed

4 files changed

+12
-44
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.9"
3+
"${LATEST}": "3.342.10"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/CloudWatchLogs/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: Current declaration of rrgions
8+
59
### Changed
610

711
- AWS enhancement: Documentation updates.

src/Service/CloudWatchLogs/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.5-dev"
32+
"dev-master": "2.6-dev"
3333
}
3434
}
3535
}

src/Service/CloudWatchLogs/src/CloudWatchLogsClient.php

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
2828
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
2929
use AsyncAws\Core\Configuration;
30-
use AsyncAws\Core\Exception\UnsupportedRegion;
3130
use AsyncAws\Core\RequestContext;
3231
use AsyncAws\Core\Result;
3332

@@ -326,44 +325,6 @@ protected function getEndpointMetadata(?string $region): array
326325
}
327326

328327
switch ($region) {
329-
case 'af-south-1':
330-
case 'ap-east-1':
331-
case 'ap-northeast-1':
332-
case 'ap-northeast-2':
333-
case 'ap-northeast-3':
334-
case 'ap-south-1':
335-
case 'ap-south-2':
336-
case 'ap-southeast-1':
337-
case 'ap-southeast-2':
338-
case 'ap-southeast-3':
339-
case 'ap-southeast-4':
340-
case 'ap-southeast-5':
341-
case 'ap-southeast-7':
342-
case 'ca-central-1':
343-
case 'ca-west-1':
344-
case 'eu-central-1':
345-
case 'eu-central-2':
346-
case 'eu-north-1':
347-
case 'eu-south-1':
348-
case 'eu-south-2':
349-
case 'eu-west-1':
350-
case 'eu-west-2':
351-
case 'eu-west-3':
352-
case 'il-central-1':
353-
case 'me-central-1':
354-
case 'me-south-1':
355-
case 'mx-central-1':
356-
case 'sa-east-1':
357-
case 'us-east-1':
358-
case 'us-east-2':
359-
case 'us-west-1':
360-
case 'us-west-2':
361-
return [
362-
'endpoint' => "https://logs.$region.amazonaws.com",
363-
'signRegion' => $region,
364-
'signService' => 'logs',
365-
'signVersions' => ['v4'],
366-
];
367328
case 'cn-north-1':
368329
case 'cn-northwest-1':
369330
return [
@@ -415,15 +376,13 @@ protected function getEndpointMetadata(?string $region): array
415376
'signVersions' => ['v4'],
416377
];
417378
case 'fips-us-gov-east-1':
418-
case 'us-gov-east-1':
419379
return [
420380
'endpoint' => 'https://logs.us-gov-east-1.amazonaws.com',
421381
'signRegion' => 'us-gov-east-1',
422382
'signService' => 'logs',
423383
'signVersions' => ['v4'],
424384
];
425385
case 'fips-us-gov-west-1':
426-
case 'us-gov-west-1':
427386
return [
428387
'endpoint' => 'https://logs.us-gov-west-1.amazonaws.com',
429388
'signRegion' => 'us-gov-west-1',
@@ -455,6 +414,11 @@ protected function getEndpointMetadata(?string $region): array
455414
];
456415
}
457416

458-
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "CloudWatchLogs".', $region));
417+
return [
418+
'endpoint' => "https://logs.$region.amazonaws.com",
419+
'signRegion' => $region,
420+
'signService' => 'logs',
421+
'signVersions' => ['v4'],
422+
];
459423
}
460424
}

0 commit comments

Comments
 (0)