From ea365f075272862c1d1ea1215cdf08230d40ef3a Mon Sep 17 00:00:00 2001 From: AsyncAws Bot Date: Tue, 10 Jun 2025 06:37:42 +0000 Subject: [PATCH 1/2] update generated code --- manifest.json | 2 +- src/Service/Ecr/CHANGELOG.md | 4 ++ src/Service/Ecr/composer.json | 2 +- src/Service/Ecr/src/EcrClient.php | 48 ++-------------- src/Service/EventBridge/CHANGELOG.md | 4 ++ src/Service/EventBridge/composer.json | 2 +- .../EventBridge/src/EventBridgeClient.php | 48 ++-------------- src/Service/Kms/CHANGELOG.md | 1 + src/Service/Kms/src/KmsClient.php | 48 ++-------------- .../Kms/src/Result/DecryptResponse.php | 2 +- .../Kms/src/Result/EncryptResponse.php | 16 ------ .../src/Result/GenerateDataKeyResponse.php | 3 +- src/Service/Lambda/CHANGELOG.md | 4 ++ src/Service/Lambda/composer.json | 2 +- src/Service/Lambda/src/LambdaClient.php | 48 ++-------------- src/Service/Rekognition/CHANGELOG.md | 4 ++ .../Rekognition/src/ValueObject/Emotion.php | 9 +-- src/Service/Route53/CHANGELOG.md | 4 ++ src/Service/Route53/composer.json | 2 +- .../src/Enum/ResourceRecordSetRegion.php | 2 + src/Service/Route53/src/Enum/VPCRegion.php | 2 + src/Service/S3/CHANGELOG.md | 4 ++ src/Service/S3/composer.json | 2 +- src/Service/S3/src/S3Client.php | 44 +-------------- src/Service/SecretsManager/CHANGELOG.md | 4 ++ src/Service/SecretsManager/composer.json | 2 +- .../src/SecretsManagerClient.php | 56 ++----------------- src/Service/Sns/CHANGELOG.md | 4 ++ src/Service/Sns/composer.json | 2 +- src/Service/Sns/src/SnsClient.php | 48 ++-------------- src/Service/Sqs/CHANGELOG.md | 4 ++ src/Service/Sqs/composer.json | 2 +- src/Service/Sqs/src/SqsClient.php | 48 ++-------------- 33 files changed, 102 insertions(+), 375 deletions(-) diff --git a/manifest.json b/manifest.json index 85a9ed6d0..4db68b94a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "variables": { - "${LATEST}": "3.344.1" + "${LATEST}": "3.344.3" }, "endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json", "services": { diff --git a/src/Service/Ecr/CHANGELOG.md b/src/Service/Ecr/CHANGELOG.md index ee9a33152..7a9223b98 100644 --- a/src/Service/Ecr/CHANGELOG.md +++ b/src/Service/Ecr/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 1.10.0 ### Added diff --git a/src/Service/Ecr/composer.json b/src/Service/Ecr/composer.json index 273a36be2..07bda4bc7 100644 --- a/src/Service/Ecr/composer.json +++ b/src/Service/Ecr/composer.json @@ -29,7 +29,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.10-dev" + "dev-master": "1.11-dev" } } } diff --git a/src/Service/Ecr/src/EcrClient.php b/src/Service/Ecr/src/EcrClient.php index f5d596237..8a67afdca 100644 --- a/src/Service/Ecr/src/EcrClient.php +++ b/src/Service/Ecr/src/EcrClient.php @@ -6,7 +6,6 @@ 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\Ecr\Exception\InvalidParameterException; use AsyncAws\Ecr\Exception\ServerException; @@ -60,46 +59,6 @@ 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-gov-east-1': - case 'us-gov-west-1': - case 'us-west-1': - case 'us-west-2': - return [ - 'endpoint' => "https://api.ecr.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'ecr', - 'signVersions' => ['v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -230,6 +189,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Ecr".', $region)); + return [ + 'endpoint' => "https://api.ecr.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'ecr', + 'signVersions' => ['v4'], + ]; } } diff --git a/src/Service/EventBridge/CHANGELOG.md b/src/Service/EventBridge/CHANGELOG.md index bb238340a..cfd2dae77 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.8.0 ### Added diff --git a/src/Service/EventBridge/composer.json b/src/Service/EventBridge/composer.json index b2a1dbe69..deb2b4f6c 100644 --- a/src/Service/EventBridge/composer.json +++ b/src/Service/EventBridge/composer.json @@ -27,7 +27,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.8-dev" + "dev-master": "1.9-dev" } } } diff --git a/src/Service/EventBridge/src/EventBridgeClient.php b/src/Service/EventBridge/src/EventBridgeClient.php index 2b2ca78c1..fea011a44 100644 --- a/src/Service/EventBridge/src/EventBridgeClient.php +++ b/src/Service/EventBridge/src/EventBridgeClient.php @@ -6,7 +6,6 @@ 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; @@ -62,44 +61,6 @@ 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 [ @@ -137,7 +98,6 @@ 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', @@ -145,7 +105,6 @@ 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', @@ -184,6 +143,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "EventBridge".', $region)); + return [ + 'endpoint' => "https://events.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'events', + 'signVersions' => ['v4'], + ]; } } diff --git a/src/Service/Kms/CHANGELOG.md b/src/Service/Kms/CHANGELOG.md index 4f1e5c332..5cab32590 100644 --- a/src/Service/Kms/CHANGELOG.md +++ b/src/Service/Kms/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - AWS api-change: AWS KMS announces the support for on-demand rotation of symmetric-encryption KMS keys with imported key material (EXTERNAL origin). +- AWS api-change: Remove unpopulated KeyMaterialId from Encrypt Response ## 1.9.0 diff --git a/src/Service/Kms/src/KmsClient.php b/src/Service/Kms/src/KmsClient.php index 21e7b3eec..01b4fbcdd 100644 --- a/src/Service/Kms/src/KmsClient.php +++ b/src/Service/Kms/src/KmsClient.php @@ -6,7 +6,6 @@ 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\Core\Result; use AsyncAws\Kms\Enum\CustomerMasterKeySpec; @@ -1064,46 +1063,6 @@ 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-gov-east-1': - case 'us-gov-west-1': - case 'us-west-1': - case 'us-west-2': - return [ - 'endpoint' => "https://kms.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'kms', - 'signVersions' => ['v4'], - ]; case 'ProdFips': case 'us-isof-east-1-fips': return [ @@ -1425,6 +1384,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Kms".', $region)); + return [ + 'endpoint' => "https://kms.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'kms', + 'signVersions' => ['v4'], + ]; } } diff --git a/src/Service/Kms/src/Result/DecryptResponse.php b/src/Service/Kms/src/Result/DecryptResponse.php index a943d8445..08b1dd8a8 100644 --- a/src/Service/Kms/src/Result/DecryptResponse.php +++ b/src/Service/Kms/src/Result/DecryptResponse.php @@ -50,7 +50,7 @@ class DecryptResponse extends Result /** * The identifier of the key material used to decrypt the ciphertext. This field is present only when the operation uses - * a symmetric encryption KMS key. + * a symmetric encryption KMS key. This field is omitted if the request includes the `Recipient` parameter. * * @var string|null */ diff --git a/src/Service/Kms/src/Result/EncryptResponse.php b/src/Service/Kms/src/Result/EncryptResponse.php index 805e2ee7d..4cbea59e0 100644 --- a/src/Service/Kms/src/Result/EncryptResponse.php +++ b/src/Service/Kms/src/Result/EncryptResponse.php @@ -32,14 +32,6 @@ class EncryptResponse extends Result */ private $encryptionAlgorithm; - /** - * The identifier of the key material used to encrypt the ciphertext. This field is present only when the operation uses - * a symmetric encryption KMS key. - * - * @var string|null - */ - private $keyMaterialId; - public function getCiphertextBlob(): ?string { $this->initialize(); @@ -64,13 +56,6 @@ public function getKeyId(): ?string return $this->keyId; } - public function getKeyMaterialId(): ?string - { - $this->initialize(); - - return $this->keyMaterialId; - } - protected function populateResult(Response $response): void { $data = $response->toArray(); @@ -78,6 +63,5 @@ protected function populateResult(Response $response): void $this->ciphertextBlob = isset($data['CiphertextBlob']) ? base64_decode((string) $data['CiphertextBlob']) : null; $this->keyId = isset($data['KeyId']) ? (string) $data['KeyId'] : null; $this->encryptionAlgorithm = isset($data['EncryptionAlgorithm']) ? (string) $data['EncryptionAlgorithm'] : null; - $this->keyMaterialId = isset($data['KeyMaterialId']) ? (string) $data['KeyMaterialId'] : null; } } diff --git a/src/Service/Kms/src/Result/GenerateDataKeyResponse.php b/src/Service/Kms/src/Result/GenerateDataKeyResponse.php index 128e54d1c..e742d3300 100644 --- a/src/Service/Kms/src/Result/GenerateDataKeyResponse.php +++ b/src/Service/Kms/src/Result/GenerateDataKeyResponse.php @@ -51,7 +51,8 @@ class GenerateDataKeyResponse extends Result private $ciphertextForRecipient; /** - * The identifier of the key material used to encrypt the data key. + * The identifier of the key material used to encrypt the data key. This field is omitted if the request includes the + * `Recipient` parameter. * * @var string|null */ diff --git a/src/Service/Lambda/CHANGELOG.md b/src/Service/Lambda/CHANGELOG.md index 9b20bed4d..852e2853c 100644 --- a/src/Service/Lambda/CHANGELOG.md +++ b/src/Service/Lambda/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 2.11.0 ### Added diff --git a/src/Service/Lambda/composer.json b/src/Service/Lambda/composer.json index 303436f36..47178a7a3 100644 --- a/src/Service/Lambda/composer.json +++ b/src/Service/Lambda/composer.json @@ -28,7 +28,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.11-dev" + "dev-master": "2.12-dev" } } } diff --git a/src/Service/Lambda/src/LambdaClient.php b/src/Service/Lambda/src/LambdaClient.php index 0428eae81..259b061e0 100644 --- a/src/Service/Lambda/src/LambdaClient.php +++ b/src/Service/Lambda/src/LambdaClient.php @@ -6,7 +6,6 @@ use AsyncAws\Core\AwsError\AwsErrorFactoryInterface; use AsyncAws\Core\AwsError\JsonRestAwsErrorFactory; use AsyncAws\Core\Configuration; -use AsyncAws\Core\Exception\UnsupportedRegion; use AsyncAws\Core\RequestContext; use AsyncAws\Core\Result; use AsyncAws\Lambda\Enum\Architecture; @@ -555,46 +554,6 @@ 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-gov-east-1': - case 'us-gov-west-1': - case 'us-west-1': - case 'us-west-2': - return [ - 'endpoint' => "https://lambda.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'lambda', - 'signVersions' => ['v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -677,6 +636,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Lambda".', $region)); + return [ + 'endpoint' => "https://lambda.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'lambda', + 'signVersions' => ['v4'], + ]; } } diff --git a/src/Service/Rekognition/CHANGELOG.md b/src/Service/Rekognition/CHANGELOG.md index fe18c0b03..b9d236317 100644 --- a/src/Service/Rekognition/CHANGELOG.md +++ b/src/Service/Rekognition/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- AWS enhancement: Documentation updates. + ## 1.5.0 ### Added diff --git a/src/Service/Rekognition/src/ValueObject/Emotion.php b/src/Service/Rekognition/src/ValueObject/Emotion.php index bf05f471a..b42bfc35e 100644 --- a/src/Service/Rekognition/src/ValueObject/Emotion.php +++ b/src/Service/Rekognition/src/ValueObject/Emotion.php @@ -5,10 +5,11 @@ use AsyncAws\Rekognition\Enum\EmotionName; /** - * The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only - * making a determination of the physical appearance of a person's face. It is not a determination of the person’s - * internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face - * might not be sad emotionally. + * The API returns a prediction of an emotion based on a person's facial expressions, along with the confidence level + * for the predicted emotion. It is not a determination of the person’s internal emotional state and should not be + * used in such a way. For example, a person pretending to have a sad face might not be sad emotionally. The API is not + * intended to be used, and you may not use it, in a manner that violates the EU Artificial Intelligence Act or any + * other applicable law. */ final class Emotion { diff --git a/src/Service/Route53/CHANGELOG.md b/src/Service/Route53/CHANGELOG.md index d16bd9d4d..511678151 100644 --- a/src/Service/Route53/CHANGELOG.md +++ b/src/Service/Route53/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: Amazon Route 53 now supports the Asia Pacific (Taipei) Region (ap-east-2) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. + ## 2.9.0 ### Added diff --git a/src/Service/Route53/composer.json b/src/Service/Route53/composer.json index b4fb0a9e5..64fcaeee4 100644 --- a/src/Service/Route53/composer.json +++ b/src/Service/Route53/composer.json @@ -29,7 +29,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.9-dev" + "dev-master": "2.10-dev" } } } diff --git a/src/Service/Route53/src/Enum/ResourceRecordSetRegion.php b/src/Service/Route53/src/Enum/ResourceRecordSetRegion.php index 48e9021b3..1fcbae368 100644 --- a/src/Service/Route53/src/Enum/ResourceRecordSetRegion.php +++ b/src/Service/Route53/src/Enum/ResourceRecordSetRegion.php @@ -6,6 +6,7 @@ final class ResourceRecordSetRegion { public const AF_SOUTH_1 = 'af-south-1'; public const AP_EAST_1 = 'ap-east-1'; + public const AP_EAST_2 = 'ap-east-2'; public const AP_NORTHEAST_1 = 'ap-northeast-1'; public const AP_NORTHEAST_2 = 'ap-northeast-2'; public const AP_NORTHEAST_3 = 'ap-northeast-3'; @@ -46,6 +47,7 @@ public static function exists(string $value): bool return isset([ self::AF_SOUTH_1 => true, self::AP_EAST_1 => true, + self::AP_EAST_2 => true, self::AP_NORTHEAST_1 => true, self::AP_NORTHEAST_2 => true, self::AP_NORTHEAST_3 => true, diff --git a/src/Service/Route53/src/Enum/VPCRegion.php b/src/Service/Route53/src/Enum/VPCRegion.php index 976884811..13ea405ab 100644 --- a/src/Service/Route53/src/Enum/VPCRegion.php +++ b/src/Service/Route53/src/Enum/VPCRegion.php @@ -6,6 +6,7 @@ final class VPCRegion { public const AF_SOUTH_1 = 'af-south-1'; public const AP_EAST_1 = 'ap-east-1'; + public const AP_EAST_2 = 'ap-east-2'; public const AP_NORTHEAST_1 = 'ap-northeast-1'; public const AP_NORTHEAST_2 = 'ap-northeast-2'; public const AP_NORTHEAST_3 = 'ap-northeast-3'; @@ -51,6 +52,7 @@ public static function exists(string $value): bool return isset([ self::AF_SOUTH_1 => true, self::AP_EAST_1 => true, + self::AP_EAST_2 => true, self::AP_NORTHEAST_1 => true, self::AP_NORTHEAST_2 => true, self::AP_NORTHEAST_3 => true, diff --git a/src/Service/S3/CHANGELOG.md b/src/Service/S3/CHANGELOG.md index d60e49bb5..46b5eb3b4 100644 --- a/src/Service/S3/CHANGELOG.md +++ b/src/Service/S3/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 2.9.1 ### Changed diff --git a/src/Service/S3/composer.json b/src/Service/S3/composer.json index 426cb3cac..b27cb3fee 100644 --- a/src/Service/S3/composer.json +++ b/src/Service/S3/composer.json @@ -30,7 +30,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.9-dev" + "dev-master": "2.10-dev" } } } diff --git a/src/Service/S3/src/S3Client.php b/src/Service/S3/src/S3Client.php index 85e1ea21f..26cd7d8be 100644 --- a/src/Service/S3/src/S3Client.php +++ b/src/Service/S3/src/S3Client.php @@ -3200,46 +3200,6 @@ 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-gov-east-1': - case 'us-gov-west-1': - case 'us-west-1': - case 'us-west-2': - return [ - 'endpoint' => "https://s3.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 's3', - 'signVersions' => ['s3v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -3365,8 +3325,8 @@ protected function getEndpointMetadata(?string $region): array } return [ - 'endpoint' => 'https://s3.amazonaws.com', - 'signRegion' => 'us-east-1', + 'endpoint' => "https://s3.$region.amazonaws.com", + 'signRegion' => $region, 'signService' => 's3', 'signVersions' => ['s3v4'], ]; diff --git a/src/Service/SecretsManager/CHANGELOG.md b/src/Service/SecretsManager/CHANGELOG.md index 28887cc75..4afa74f5d 100644 --- a/src/Service/SecretsManager/CHANGELOG.md +++ b/src/Service/SecretsManager/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 2.8.0 ### Added diff --git a/src/Service/SecretsManager/composer.json b/src/Service/SecretsManager/composer.json index 5bb887c4b..3cdfe435e 100644 --- a/src/Service/SecretsManager/composer.json +++ b/src/Service/SecretsManager/composer.json @@ -29,7 +29,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.8-dev" + "dev-master": "2.9-dev" } } } diff --git a/src/Service/SecretsManager/src/SecretsManagerClient.php b/src/Service/SecretsManager/src/SecretsManagerClient.php index f686080a5..d16ca0229 100644 --- a/src/Service/SecretsManager/src/SecretsManagerClient.php +++ b/src/Service/SecretsManager/src/SecretsManagerClient.php @@ -6,7 +6,6 @@ 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\SecretsManager\Enum\SortOrderType; use AsyncAws\SecretsManager\Exception\DecryptionFailureException; @@ -490,54 +489,6 @@ 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-central-1-fips': - case 'ca-west-1': - case 'ca-west-1-fips': - 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-1-fips': - case 'us-east-2': - case 'us-east-2-fips': - case 'us-gov-east-1': - case 'us-gov-east-1-fips': - case 'us-gov-west-1': - case 'us-gov-west-1-fips': - case 'us-west-1': - case 'us-west-1-fips': - case 'us-west-2': - case 'us-west-2-fips': - return [ - 'endpoint' => "https://secretsmanager.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'secretsmanager', - 'signVersions' => ['v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -581,6 +532,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "SecretsManager".', $region)); + return [ + 'endpoint' => "https://secretsmanager.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'secretsmanager', + 'signVersions' => ['v4'], + ]; } } diff --git a/src/Service/Sns/CHANGELOG.md b/src/Service/Sns/CHANGELOG.md index f123ffd1b..e070ccc4e 100644 --- a/src/Service/Sns/CHANGELOG.md +++ b/src/Service/Sns/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 1.10.0 ### Added diff --git a/src/Service/Sns/composer.json b/src/Service/Sns/composer.json index 0c1af48fa..d764c4594 100644 --- a/src/Service/Sns/composer.json +++ b/src/Service/Sns/composer.json @@ -28,7 +28,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.10-dev" + "dev-master": "1.11-dev" } } } diff --git a/src/Service/Sns/src/SnsClient.php b/src/Service/Sns/src/SnsClient.php index 7bd9bc233..7bd287463 100644 --- a/src/Service/Sns/src/SnsClient.php +++ b/src/Service/Sns/src/SnsClient.php @@ -6,7 +6,6 @@ use AsyncAws\Core\AwsError\AwsErrorFactoryInterface; use AsyncAws\Core\AwsError\XmlAwsErrorFactory; use AsyncAws\Core\Configuration; -use AsyncAws\Core\Exception\UnsupportedRegion; use AsyncAws\Core\RequestContext; use AsyncAws\Core\Result; use AsyncAws\Sns\Exception\AuthorizationErrorException; @@ -548,44 +547,6 @@ 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://sns.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'sns', - 'signVersions' => ['v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -630,7 +591,6 @@ protected function getEndpointMetadata(?string $region): array 'signVersions' => ['v4'], ]; case 'fips-us-gov-east-1': - case 'us-gov-east-1': return [ 'endpoint' => 'https://sns.us-gov-east-1.amazonaws.com', 'signRegion' => 'us-gov-east-1', @@ -638,7 +598,6 @@ protected function getEndpointMetadata(?string $region): array 'signVersions' => ['v4'], ]; case 'fips-us-gov-west-1': - case 'us-gov-west-1': return [ 'endpoint' => 'https://sns.us-gov-west-1.amazonaws.com', 'signRegion' => 'us-gov-west-1', @@ -677,6 +636,11 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Sns".', $region)); + return [ + 'endpoint' => "https://sns.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'sns', + 'signVersions' => ['v4'], + ]; } } diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index 110f2cf81..e677d65f5 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Added + +- AWS api-change: TODO + ## 2.6.0 ### Added diff --git a/src/Service/Sqs/composer.json b/src/Service/Sqs/composer.json index b19bf0eeb..05bfcfea3 100644 --- a/src/Service/Sqs/composer.json +++ b/src/Service/Sqs/composer.json @@ -28,7 +28,7 @@ }, "extra": { "branch-alias": { - "dev-master": "2.6-dev" + "dev-master": "2.7-dev" } } } diff --git a/src/Service/Sqs/src/SqsClient.php b/src/Service/Sqs/src/SqsClient.php index 4123aa0b7..ce47647ff 100644 --- a/src/Service/Sqs/src/SqsClient.php +++ b/src/Service/Sqs/src/SqsClient.php @@ -6,7 +6,6 @@ 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\Core\Result; use AsyncAws\Sqs\Enum\MessageSystemAttributeName; @@ -891,44 +890,6 @@ 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://sqs.$region.amazonaws.com", - 'signRegion' => $region, - 'signService' => 'sqs', - 'signVersions' => ['v4'], - ]; case 'cn-north-1': case 'cn-northwest-1': return [ @@ -980,7 +941,6 @@ protected function getEndpointMetadata(?string $region): array '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', @@ -988,7 +948,6 @@ protected function getEndpointMetadata(?string $region): array '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', @@ -1044,7 +1003,12 @@ protected function getEndpointMetadata(?string $region): array ]; } - throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Sqs".', $region)); + return [ + 'endpoint' => "https://sqs.$region.amazonaws.com", + 'signRegion' => $region, + 'signService' => 'sqs', + 'signVersions' => ['v4'], + ]; } protected function getServiceCode(): string From 1a26eb0984a31363cff5f85569499526b124f511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Tue, 10 Jun 2025 12:07:10 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- src/Service/Ecr/CHANGELOG.md | 2 +- src/Service/EventBridge/CHANGELOG.md | 2 +- src/Service/Kms/CHANGELOG.md | 2 +- src/Service/Lambda/CHANGELOG.md | 2 +- src/Service/S3/CHANGELOG.md | 2 +- src/Service/SecretsManager/CHANGELOG.md | 2 +- src/Service/Sns/CHANGELOG.md | 2 +- src/Service/Sqs/CHANGELOG.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Service/Ecr/CHANGELOG.md b/src/Service/Ecr/CHANGELOG.md index 7a9223b98..8133374b8 100644 --- a/src/Service/Ecr/CHANGELOG.md +++ b/src/Service/Ecr/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration ## 1.10.0 diff --git a/src/Service/EventBridge/CHANGELOG.md b/src/Service/EventBridge/CHANGELOG.md index cfd2dae77..c540491e7 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.8.0 diff --git a/src/Service/Kms/CHANGELOG.md b/src/Service/Kms/CHANGELOG.md index 5cab32590..b1ed34690 100644 --- a/src/Service/Kms/CHANGELOG.md +++ b/src/Service/Kms/CHANGELOG.md @@ -5,7 +5,7 @@ ### Added - AWS api-change: AWS KMS announces the support for on-demand rotation of symmetric-encryption KMS keys with imported key material (EXTERNAL origin). -- AWS api-change: Remove unpopulated KeyMaterialId from Encrypt Response +- AWS api-change: Rework regions configuration ## 1.9.0 diff --git a/src/Service/Lambda/CHANGELOG.md b/src/Service/Lambda/CHANGELOG.md index 852e2853c..86e6a9f44 100644 --- a/src/Service/Lambda/CHANGELOG.md +++ b/src/Service/Lambda/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration ## 2.11.0 diff --git a/src/Service/S3/CHANGELOG.md b/src/Service/S3/CHANGELOG.md index 46b5eb3b4..2596d4d3b 100644 --- a/src/Service/S3/CHANGELOG.md +++ b/src/Service/S3/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration ## 2.9.1 diff --git a/src/Service/SecretsManager/CHANGELOG.md b/src/Service/SecretsManager/CHANGELOG.md index 4afa74f5d..50cae7336 100644 --- a/src/Service/SecretsManager/CHANGELOG.md +++ b/src/Service/SecretsManager/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration ## 2.8.0 diff --git a/src/Service/Sns/CHANGELOG.md b/src/Service/Sns/CHANGELOG.md index e070ccc4e..b536a1bec 100644 --- a/src/Service/Sns/CHANGELOG.md +++ b/src/Service/Sns/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration ## 1.10.0 diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index e677d65f5..2814d6caa 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- AWS api-change: TODO +- AWS api-change: Rework regions configuration ## 2.6.0