|
18 | 18 | use AsyncAws\Lambda\ValueObject\ImageConfigError; |
19 | 19 | use AsyncAws\Lambda\ValueObject\ImageConfigResponse; |
20 | 20 | use AsyncAws\Lambda\ValueObject\Layer; |
| 21 | +use AsyncAws\Lambda\ValueObject\RuntimeVersionConfig; |
| 22 | +use AsyncAws\Lambda\ValueObject\RuntimeVersionError; |
21 | 23 | use AsyncAws\Lambda\ValueObject\SnapStartResponse; |
22 | 24 | use AsyncAws\Lambda\ValueObject\TracingConfigResponse; |
23 | 25 | use AsyncAws\Lambda\ValueObject\VpcConfigResponse; |
@@ -225,6 +227,7 @@ private function populateResultFunctionConfiguration(array $json): FunctionConfi |
225 | 227 | 'Architectures' => !isset($json['Architectures']) ? null : $this->populateResultArchitecturesList($json['Architectures']), |
226 | 228 | 'EphemeralStorage' => empty($json['EphemeralStorage']) ? null : $this->populateResultEphemeralStorage($json['EphemeralStorage']), |
227 | 229 | 'SnapStart' => empty($json['SnapStart']) ? null : $this->populateResultSnapStartResponse($json['SnapStart']), |
| 230 | + 'RuntimeVersionConfig' => empty($json['RuntimeVersionConfig']) ? null : $this->populateResultRuntimeVersionConfig($json['RuntimeVersionConfig']), |
228 | 231 | ]); |
229 | 232 | } |
230 | 233 |
|
@@ -289,6 +292,22 @@ private function populateResultLayersReferenceList(array $json): array |
289 | 292 | return $items; |
290 | 293 | } |
291 | 294 |
|
| 295 | + private function populateResultRuntimeVersionConfig(array $json): RuntimeVersionConfig |
| 296 | + { |
| 297 | + return new RuntimeVersionConfig([ |
| 298 | + 'RuntimeVersionArn' => isset($json['RuntimeVersionArn']) ? (string) $json['RuntimeVersionArn'] : null, |
| 299 | + 'Error' => empty($json['Error']) ? null : $this->populateResultRuntimeVersionError($json['Error']), |
| 300 | + ]); |
| 301 | + } |
| 302 | + |
| 303 | + private function populateResultRuntimeVersionError(array $json): RuntimeVersionError |
| 304 | + { |
| 305 | + return new RuntimeVersionError([ |
| 306 | + 'ErrorCode' => isset($json['ErrorCode']) ? (string) $json['ErrorCode'] : null, |
| 307 | + 'Message' => isset($json['Message']) ? (string) $json['Message'] : null, |
| 308 | + ]); |
| 309 | + } |
| 310 | + |
292 | 311 | /** |
293 | 312 | * @return string[] |
294 | 313 | */ |
|
0 commit comments