Skip to content

Commit ea365f0

Browse files
committed
update generated code
1 parent 8c42c4a commit ea365f0

33 files changed

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

src/Service/Ecr/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: TODO
8+
59
## 1.10.0
610

711
### Added

src/Service/Ecr/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": "1.10-dev"
32+
"dev-master": "1.11-dev"
3333
}
3434
}
3535
}

src/Service/Ecr/src/EcrClient.php

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
88
use AsyncAws\Core\Configuration;
9-
use AsyncAws\Core\Exception\UnsupportedRegion;
109
use AsyncAws\Core\RequestContext;
1110
use AsyncAws\Ecr\Exception\InvalidParameterException;
1211
use AsyncAws\Ecr\Exception\ServerException;
@@ -60,46 +59,6 @@ protected function getEndpointMetadata(?string $region): array
6059
}
6160

6261
switch ($region) {
63-
case 'af-south-1':
64-
case 'ap-east-1':
65-
case 'ap-northeast-1':
66-
case 'ap-northeast-2':
67-
case 'ap-northeast-3':
68-
case 'ap-south-1':
69-
case 'ap-south-2':
70-
case 'ap-southeast-1':
71-
case 'ap-southeast-2':
72-
case 'ap-southeast-3':
73-
case 'ap-southeast-4':
74-
case 'ap-southeast-5':
75-
case 'ap-southeast-7':
76-
case 'ca-central-1':
77-
case 'ca-west-1':
78-
case 'eu-central-1':
79-
case 'eu-central-2':
80-
case 'eu-north-1':
81-
case 'eu-south-1':
82-
case 'eu-south-2':
83-
case 'eu-west-1':
84-
case 'eu-west-2':
85-
case 'eu-west-3':
86-
case 'il-central-1':
87-
case 'me-central-1':
88-
case 'me-south-1':
89-
case 'mx-central-1':
90-
case 'sa-east-1':
91-
case 'us-east-1':
92-
case 'us-east-2':
93-
case 'us-gov-east-1':
94-
case 'us-gov-west-1':
95-
case 'us-west-1':
96-
case 'us-west-2':
97-
return [
98-
'endpoint' => "https://api.ecr.$region.amazonaws.com",
99-
'signRegion' => $region,
100-
'signService' => 'ecr',
101-
'signVersions' => ['v4'],
102-
];
10362
case 'cn-north-1':
10463
case 'cn-northwest-1':
10564
return [
@@ -230,6 +189,11 @@ protected function getEndpointMetadata(?string $region): array
230189
];
231190
}
232191

233-
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Ecr".', $region));
192+
return [
193+
'endpoint' => "https://api.ecr.$region.amazonaws.com",
194+
'signRegion' => $region,
195+
'signService' => 'ecr',
196+
'signVersions' => ['v4'],
197+
];
234198
}
235199
}

src/Service/EventBridge/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: TODO
8+
59
## 1.8.0
610

711
### Added

src/Service/EventBridge/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.8-dev"
30+
"dev-master": "1.9-dev"
3131
}
3232
}
3333
}

src/Service/EventBridge/src/EventBridgeClient.php

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
88
use AsyncAws\Core\Configuration;
9-
use AsyncAws\Core\Exception\UnsupportedRegion;
109
use AsyncAws\Core\RequestContext;
1110
use AsyncAws\EventBridge\Exception\InternalException;
1211
use AsyncAws\EventBridge\Input\PutEventsRequest;
@@ -62,44 +61,6 @@ protected function getEndpointMetadata(?string $region): array
6261
}
6362

6463
switch ($region) {
65-
case 'af-south-1':
66-
case 'ap-east-1':
67-
case 'ap-northeast-1':
68-
case 'ap-northeast-2':
69-
case 'ap-northeast-3':
70-
case 'ap-south-1':
71-
case 'ap-south-2':
72-
case 'ap-southeast-1':
73-
case 'ap-southeast-2':
74-
case 'ap-southeast-3':
75-
case 'ap-southeast-4':
76-
case 'ap-southeast-5':
77-
case 'ap-southeast-7':
78-
case 'ca-central-1':
79-
case 'ca-west-1':
80-
case 'eu-central-1':
81-
case 'eu-central-2':
82-
case 'eu-north-1':
83-
case 'eu-south-1':
84-
case 'eu-south-2':
85-
case 'eu-west-1':
86-
case 'eu-west-2':
87-
case 'eu-west-3':
88-
case 'il-central-1':
89-
case 'me-central-1':
90-
case 'me-south-1':
91-
case 'mx-central-1':
92-
case 'sa-east-1':
93-
case 'us-east-1':
94-
case 'us-east-2':
95-
case 'us-west-1':
96-
case 'us-west-2':
97-
return [
98-
'endpoint' => "https://events.$region.amazonaws.com",
99-
'signRegion' => $region,
100-
'signService' => 'events',
101-
'signVersions' => ['v4'],
102-
];
10364
case 'cn-north-1':
10465
case 'cn-northwest-1':
10566
return [
@@ -137,15 +98,13 @@ protected function getEndpointMetadata(?string $region): array
13798
'signVersions' => ['v4'],
13899
];
139100
case 'fips-us-gov-east-1':
140-
case 'us-gov-east-1':
141101
return [
142102
'endpoint' => 'https://events.us-gov-east-1.amazonaws.com',
143103
'signRegion' => 'us-gov-east-1',
144104
'signService' => 'events',
145105
'signVersions' => ['v4'],
146106
];
147107
case 'fips-us-gov-west-1':
148-
case 'us-gov-west-1':
149108
return [
150109
'endpoint' => 'https://events.us-gov-west-1.amazonaws.com',
151110
'signRegion' => 'us-gov-west-1',
@@ -184,6 +143,11 @@ protected function getEndpointMetadata(?string $region): array
184143
];
185144
}
186145

187-
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "EventBridge".', $region));
146+
return [
147+
'endpoint' => "https://events.$region.amazonaws.com",
148+
'signRegion' => $region,
149+
'signService' => 'events',
150+
'signVersions' => ['v4'],
151+
];
188152
}
189153
}

src/Service/Kms/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: AWS KMS announces the support for on-demand rotation of symmetric-encryption KMS keys with imported key material (EXTERNAL origin).
8+
- AWS api-change: Remove unpopulated KeyMaterialId from Encrypt Response
89

910
## 1.9.0
1011

src/Service/Kms/src/KmsClient.php

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
77
use AsyncAws\Core\AwsError\JsonRpcAwsErrorFactory;
88
use AsyncAws\Core\Configuration;
9-
use AsyncAws\Core\Exception\UnsupportedRegion;
109
use AsyncAws\Core\RequestContext;
1110
use AsyncAws\Core\Result;
1211
use AsyncAws\Kms\Enum\CustomerMasterKeySpec;
@@ -1064,46 +1063,6 @@ protected function getEndpointMetadata(?string $region): array
10641063
}
10651064

10661065
switch ($region) {
1067-
case 'af-south-1':
1068-
case 'ap-east-1':
1069-
case 'ap-northeast-1':
1070-
case 'ap-northeast-2':
1071-
case 'ap-northeast-3':
1072-
case 'ap-south-1':
1073-
case 'ap-south-2':
1074-
case 'ap-southeast-1':
1075-
case 'ap-southeast-2':
1076-
case 'ap-southeast-3':
1077-
case 'ap-southeast-4':
1078-
case 'ap-southeast-5':
1079-
case 'ap-southeast-7':
1080-
case 'ca-central-1':
1081-
case 'ca-west-1':
1082-
case 'eu-central-1':
1083-
case 'eu-central-2':
1084-
case 'eu-north-1':
1085-
case 'eu-south-1':
1086-
case 'eu-south-2':
1087-
case 'eu-west-1':
1088-
case 'eu-west-2':
1089-
case 'eu-west-3':
1090-
case 'il-central-1':
1091-
case 'me-central-1':
1092-
case 'me-south-1':
1093-
case 'mx-central-1':
1094-
case 'sa-east-1':
1095-
case 'us-east-1':
1096-
case 'us-east-2':
1097-
case 'us-gov-east-1':
1098-
case 'us-gov-west-1':
1099-
case 'us-west-1':
1100-
case 'us-west-2':
1101-
return [
1102-
'endpoint' => "https://kms.$region.amazonaws.com",
1103-
'signRegion' => $region,
1104-
'signService' => 'kms',
1105-
'signVersions' => ['v4'],
1106-
];
11071066
case 'ProdFips':
11081067
case 'us-isof-east-1-fips':
11091068
return [
@@ -1425,6 +1384,11 @@ protected function getEndpointMetadata(?string $region): array
14251384
];
14261385
}
14271386

1428-
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "Kms".', $region));
1387+
return [
1388+
'endpoint' => "https://kms.$region.amazonaws.com",
1389+
'signRegion' => $region,
1390+
'signService' => 'kms',
1391+
'signVersions' => ['v4'],
1392+
];
14291393
}
14301394
}

src/Service/Kms/src/Result/DecryptResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class DecryptResponse extends Result
5050

5151
/**
5252
* The identifier of the key material used to decrypt the ciphertext. This field is present only when the operation uses
53-
* a symmetric encryption KMS key.
53+
* a symmetric encryption KMS key. This field is omitted if the request includes the `Recipient` parameter.
5454
*
5555
* @var string|null
5656
*/

src/Service/Kms/src/Result/EncryptResponse.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ class EncryptResponse extends Result
3232
*/
3333
private $encryptionAlgorithm;
3434

35-
/**
36-
* The identifier of the key material used to encrypt the ciphertext. This field is present only when the operation uses
37-
* a symmetric encryption KMS key.
38-
*
39-
* @var string|null
40-
*/
41-
private $keyMaterialId;
42-
4335
public function getCiphertextBlob(): ?string
4436
{
4537
$this->initialize();
@@ -64,20 +56,12 @@ public function getKeyId(): ?string
6456
return $this->keyId;
6557
}
6658

67-
public function getKeyMaterialId(): ?string
68-
{
69-
$this->initialize();
70-
71-
return $this->keyMaterialId;
72-
}
73-
7459
protected function populateResult(Response $response): void
7560
{
7661
$data = $response->toArray();
7762

7863
$this->ciphertextBlob = isset($data['CiphertextBlob']) ? base64_decode((string) $data['CiphertextBlob']) : null;
7964
$this->keyId = isset($data['KeyId']) ? (string) $data['KeyId'] : null;
8065
$this->encryptionAlgorithm = isset($data['EncryptionAlgorithm']) ? (string) $data['EncryptionAlgorithm'] : null;
81-
$this->keyMaterialId = isset($data['KeyMaterialId']) ? (string) $data['KeyMaterialId'] : null;
8266
}
8367
}

src/Service/Kms/src/Result/GenerateDataKeyResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class GenerateDataKeyResponse extends Result
5151
private $ciphertextForRecipient;
5252

5353
/**
54-
* The identifier of the key material used to encrypt the data key.
54+
* The identifier of the key material used to encrypt the data key. This field is omitted if the request includes the
55+
* `Recipient` parameter.
5556
*
5657
* @var string|null
5758
*/

src/Service/Lambda/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: TODO
8+
59
## 2.11.0
610

711
### Added

src/Service/Lambda/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": "2.11-dev"
31+
"dev-master": "2.12-dev"
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)