From 2884924fae5e0c1e9a0020352fea7cb3ceadd4eb Mon Sep 17 00:00:00 2001 From: AsyncAws Bot Date: Fri, 28 Mar 2025 06:31:13 +0000 Subject: [PATCH 1/2] update generated code --- manifest.json | 2 +- src/Service/CloudFormation/CHANGELOG.md | 4 ++ .../src/Input/DescribeStackEventsInput.php | 2 - .../src/Input/DescribeStacksInput.php | 2 - src/Service/EventBridge/CHANGELOG.md | 4 ++ src/Service/EventBridge/composer.json | 2 +- .../EventBridge/src/EventBridgeClient.php | 48 +++++++++++++++--- src/Service/Sqs/CHANGELOG.md | 1 + src/Service/Sqs/src/SqsClient.php | 49 +++++++++++++++---- 9 files changed, 93 insertions(+), 21 deletions(-) diff --git a/manifest.json b/manifest.json index b4214e493..feb6e22d5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "variables": { - "${LATEST}": "3.342.14" + "${LATEST}": "3.342.15" }, "endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json", "services": { diff --git a/src/Service/CloudFormation/CHANGELOG.md b/src/Service/CloudFormation/CHANGELOG.md index 09f8515f3..4699ebffb 100644 --- a/src/Service/CloudFormation/CHANGELOG.md +++ b/src/Service/CloudFormation/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- AWS enhancement: Documentation updates. + ## 1.8.0 ### Added diff --git a/src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php b/src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php index 8e776281e..cdcb1332b 100644 --- a/src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php +++ b/src/Service/CloudFormation/src/Input/DescribeStackEventsInput.php @@ -17,8 +17,6 @@ final class DescribeStackEventsInput extends Input * - Running stacks: You can specify either the stack's name or its unique stack ID. * - Deleted stacks: You must specify the unique stack ID. * - * Default: There is no default value. - * * @var string|null */ private $stackName; diff --git a/src/Service/CloudFormation/src/Input/DescribeStacksInput.php b/src/Service/CloudFormation/src/Input/DescribeStacksInput.php index d2e65a5a6..9e567fdf9 100644 --- a/src/Service/CloudFormation/src/Input/DescribeStacksInput.php +++ b/src/Service/CloudFormation/src/Input/DescribeStacksInput.php @@ -28,8 +28,6 @@ final class DescribeStacksInput extends Input * - Running stacks: You can specify either the stack's name or its unique stack ID. * - Deleted stacks: You must specify the unique stack ID. * - * Default: There is no default value. - * * @var string|null */ private $stackName; diff --git a/src/Service/EventBridge/CHANGELOG.md b/src/Service/EventBridge/CHANGELOG.md index f15e13a03..20b3a82b2 100644 --- a/src/Service/EventBridge/CHANGELOG.md +++ b/src/Service/EventBridge/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 1.6.0 ### Added diff --git a/src/Service/EventBridge/composer.json b/src/Service/EventBridge/composer.json index fb64e0f0e..8902c3738 100644 --- a/src/Service/EventBridge/composer.json +++ b/src/Service/EventBridge/composer.json @@ -27,7 +27,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.7-dev" } } } diff --git a/src/Service/EventBridge/src/EventBridgeClient.php b/src/Service/EventBridge/src/EventBridgeClient.php index 6cb1ccb0d..2ac51ab0f 100644 --- a/src/Service/EventBridge/src/EventBridgeClient.php +++ b/src/Service/EventBridge/src/EventBridgeClient.php @@ -6,6 +6,7 @@ use AsyncAws\Core\AwsError\AwsErrorFactoryInterface; use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory; use AsyncAws\Core\Configuration; +use AsyncAws\Core\Exception\UnsupportedRegion; use AsyncAws\Core\RequestContext; use AsyncAws\EventBridge\Exception\InternalException; use AsyncAws\EventBridge\Input\PutEventsRequest; @@ -61,6 +62,44 @@ protected function getEndpointMetadata(?string $region): array } switch ($region) { + case 'af-south-1': + case 'ap-east-1': + case 'ap-northeast-1': + case 'ap-northeast-2': + case 'ap-northeast-3': + case 'ap-south-1': + case 'ap-south-2': + case 'ap-southeast-1': + case 'ap-southeast-2': + case 'ap-southeast-3': + case 'ap-southeast-4': + case 'ap-southeast-5': + case 'ap-southeast-7': + case 'ca-central-1': + case 'ca-west-1': + case 'eu-central-1': + case 'eu-central-2': + case 'eu-north-1': + case 'eu-south-1': + case 'eu-south-2': + case 'eu-west-1': + case 'eu-west-2': + case 'eu-west-3': + case 'il-central-1': + case 'me-central-1': + case 'me-south-1': + case 'mx-central-1': + case 'sa-east-1': + case 'us-east-1': + case 'us-east-2': + case 'us-west-1': + case 'us-west-2': + return [ + 'endpoint' => "https://events.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'events', + 'signVersions' => ['v4'], + ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -98,6 +137,7 @@ protected function getEndpointMetadata(?string $region): array 'signVersions' => ['v4'], ]; case 'fips-us-gov-east-1': + case 'us-gov-east-1': return [ 'endpoint' => 'https://events.us-gov-east-1.amazonaws.com', 'signRegion' => 'us-gov-east-1', @@ -105,6 +145,7 @@ protected function getEndpointMetadata(?string $region): array 'signVersions' => ['v4'], ]; case 'fips-us-gov-west-1': + case 'us-gov-west-1': return [ 'endpoint' => 'https://events.us-gov-west-1.amazonaws.com', 'signRegion' => 'us-gov-west-1', @@ -136,11 +177,6 @@ protected function getEndpointMetadata(?string $region): array ]; } - return [ - 'endpoint' => "https://events.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'events', - 'signVersions' => ['v4'], - ]; + throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "EventBridge".', $region)); } } diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index 8669e8d74..a43d3ac79 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - AWS api-change: rewrite declaration of regions +- AWS api-change: TODO ## 2.4.0 diff --git a/src/Service/Sqs/src/SqsClient.php b/src/Service/Sqs/src/SqsClient.php index a084ec9e6..6979ca996 100644 --- a/src/Service/Sqs/src/SqsClient.php +++ b/src/Service/Sqs/src/SqsClient.php @@ -921,8 +921,6 @@ protected function getEndpointMetadata(?string $region): array case 'sa-east-1': case 'us-east-1': case 'us-east-2': - case 'us-gov-east-1': - case 'us-gov-west-1': case 'us-west-1': case 'us-west-2': return [ @@ -981,22 +979,39 @@ protected function getEndpointMetadata(?string $region): array 'signService' => 'sqs', 'signVersions' => ['v4'], ]; + case 'fips-us-gov-east-1': + case 'us-gov-east-1': + return [ + 'endpoint' => 'https://sqs.us-gov-east-1.amazonaws.com', + 'signRegion' => 'us-gov-east-1', + 'signService' => 'sqs', + 'signVersions' => ['v4'], + ]; + case 'fips-us-gov-west-1': + case 'us-gov-west-1': + return [ + 'endpoint' => 'https://sqs.us-gov-west-1.amazonaws.com', + 'signRegion' => 'us-gov-west-1', + 'signService' => 'sqs', + 'signVersions' => ['v4'], + ]; + case 'fips-us-iso-east-1': case 'us-iso-east-1': - case 'us-iso-west-1': return [ - 'endpoint' => "https://sqs.$region.c2s.ic.gov", - 'signRegion' => $region, + 'endpoint' => 'https://sqs.us-iso-east-1.c2s.ic.gov', + 'signRegion' => 'us-iso-east-1', 'signService' => 'sqs', 'signVersions' => ['v4'], ]; - case 'us-isof-east-1': - case 'us-isof-south-1': + case 'fips-us-iso-west-1': + case 'us-iso-west-1': return [ - 'endpoint' => "https://sqs.$region.csp.hci.ic.gov", - 'signRegion' => $region, + 'endpoint' => 'https://sqs.us-iso-west-1.c2s.ic.gov', + 'signRegion' => 'us-iso-west-1', 'signService' => 'sqs', 'signVersions' => ['v4'], ]; + case 'fips-us-isob-east-1': case 'us-isob-east-1': return [ 'endpoint' => 'https://sqs.us-isob-east-1.sc2s.sgov.gov', @@ -1004,6 +1019,22 @@ protected function getEndpointMetadata(?string $region): array 'signService' => 'sqs', 'signVersions' => ['v4'], ]; + case 'fips-us-isof-east-1': + case 'us-isof-east-1': + return [ + 'endpoint' => 'https://sqs.us-isof-east-1.csp.hci.ic.gov', + 'signRegion' => 'us-isof-east-1', + 'signService' => 'sqs', + 'signVersions' => ['v4'], + ]; + case 'fips-us-isof-south-1': + case 'us-isof-south-1': + return [ + 'endpoint' => 'https://sqs.us-isof-south-1.csp.hci.ic.gov', + 'signRegion' => 'us-isof-south-1', + 'signService' => 'sqs', + 'signVersions' => ['v4'], + ]; } throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Sqs".', $region)); From 71d07e515abac43f96c4d52d548c4a2d389e56b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Fri, 28 Mar 2025 12:48:52 +0100 Subject: [PATCH 2/2] Apply suggestions from code review --- src/Service/EventBridge/CHANGELOG.md | 2 +- src/Service/Sqs/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/EventBridge/CHANGELOG.md b/src/Service/EventBridge/CHANGELOG.md index 20b3a82b2..76077a95c 100644 --- a/src/Service/EventBridge/CHANGELOG.md +++ b/src/Service/EventBridge/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration. ## 1.6.0 diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index a43d3ac79..09aa12441 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -5,7 +5,7 @@ ### Added - AWS api-change: rewrite declaration of regions -- AWS api-change: TODO +- AWS api-change: Rework regions configuration. ## 2.4.0