Skip to content

Update generated code #1899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Ecr/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Rework regions configuration

## 1.10.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Ecr/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.10-dev"
"dev-master": "1.11-dev"
}
}
}
48 changes: 6 additions & 42 deletions src/Service/Ecr/src/EcrClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -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'],
];
}
}
4 changes: 4 additions & 0 deletions src/Service/EventBridge/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Rework regions configuration

## 1.8.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/EventBridge/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.8-dev"
"dev-master": "1.9-dev"
}
}
}
48 changes: 6 additions & 42 deletions src/Service/EventBridge/src/EventBridgeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -137,15 +98,13 @@ 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',
'signService' => 'events',
'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',
Expand Down Expand Up @@ -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'],
];
}
}
1 change: 1 addition & 0 deletions src/Service/Kms/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: Rework regions configuration

## 1.9.0

Expand Down
48 changes: 6 additions & 42 deletions src/Service/Kms/src/KmsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -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'],
];
}
}
2 changes: 1 addition & 1 deletion src/Service/Kms/src/Result/DecryptResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
16 changes: 0 additions & 16 deletions src/Service/Kms/src/Result/EncryptResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -64,20 +56,12 @@ 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();

$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;
}
}
3 changes: 2 additions & 1 deletion src/Service/Kms/src/Result/GenerateDataKeyResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Lambda/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- AWS api-change: Rework regions configuration

## 2.11.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Lambda/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.11-dev"
"dev-master": "2.12-dev"
}
}
}
Loading