@@ -102,25 +102,25 @@ class LambdaClient extends AbstractApi
102
102
* '@region'?: string|null,
103
103
* }|AddLayerVersionPermissionRequest $input
104
104
*
105
- * @throws ServiceException
106
- * @throws ResourceNotFoundException
107
- * @throws ResourceConflictException
108
- * @throws TooManyRequestsException
109
105
* @throws InvalidParameterValueException
110
106
* @throws PolicyLengthExceededException
111
107
* @throws PreconditionFailedException
108
+ * @throws ResourceConflictException
109
+ * @throws ResourceNotFoundException
110
+ * @throws ServiceException
111
+ * @throws TooManyRequestsException
112
112
*/
113
113
public function addLayerVersionPermission ($ input ): AddLayerVersionPermissionResponse
114
114
{
115
115
$ input = AddLayerVersionPermissionRequest::create ($ input );
116
116
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'AddLayerVersionPermission ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
117
- 'ServiceException ' => ServiceException::class,
118
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
119
- 'ResourceConflictException ' => ResourceConflictException::class,
120
- 'TooManyRequestsException ' => TooManyRequestsException::class,
121
117
'InvalidParameterValueException ' => InvalidParameterValueException::class,
122
118
'PolicyLengthExceededException ' => PolicyLengthExceededException::class,
123
119
'PreconditionFailedException ' => PreconditionFailedException::class,
120
+ 'ResourceConflictException ' => ResourceConflictException::class,
121
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
122
+ 'ServiceException ' => ServiceException::class,
123
+ 'TooManyRequestsException ' => TooManyRequestsException::class,
124
124
]]));
125
125
126
126
return new AddLayerVersionPermissionResponse ($ response );
@@ -143,21 +143,21 @@ public function addLayerVersionPermission($input): AddLayerVersionPermissionResp
143
143
* '@region'?: string|null,
144
144
* }|DeleteFunctionRequest $input
145
145
*
146
- * @throws ServiceException
147
- * @throws ResourceNotFoundException
148
- * @throws TooManyRequestsException
149
146
* @throws InvalidParameterValueException
150
147
* @throws ResourceConflictException
148
+ * @throws ResourceNotFoundException
149
+ * @throws ServiceException
150
+ * @throws TooManyRequestsException
151
151
*/
152
152
public function deleteFunction ($ input ): Result
153
153
{
154
154
$ input = DeleteFunctionRequest::create ($ input );
155
155
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteFunction ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
156
- 'ServiceException ' => ServiceException::class,
157
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
158
- 'TooManyRequestsException ' => TooManyRequestsException::class,
159
156
'InvalidParameterValueException ' => InvalidParameterValueException::class,
160
157
'ResourceConflictException ' => ResourceConflictException::class,
158
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
159
+ 'ServiceException ' => ServiceException::class,
160
+ 'TooManyRequestsException ' => TooManyRequestsException::class,
161
161
]]));
162
162
163
163
return new Result ($ response );
@@ -178,19 +178,19 @@ public function deleteFunction($input): Result
178
178
* '@region'?: string|null,
179
179
* }|GetFunctionConfigurationRequest $input
180
180
*
181
- * @throws ServiceException
181
+ * @throws InvalidParameterValueException
182
182
* @throws ResourceNotFoundException
183
+ * @throws ServiceException
183
184
* @throws TooManyRequestsException
184
- * @throws InvalidParameterValueException
185
185
*/
186
186
public function getFunctionConfiguration ($ input ): FunctionConfiguration
187
187
{
188
188
$ input = GetFunctionConfigurationRequest::create ($ input );
189
189
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetFunctionConfiguration ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
190
- 'ServiceException ' => ServiceException ::class,
190
+ 'InvalidParameterValueException ' => InvalidParameterValueException ::class,
191
191
'ResourceNotFoundException ' => ResourceNotFoundException::class,
192
+ 'ServiceException ' => ServiceException::class,
192
193
'TooManyRequestsException ' => TooManyRequestsException::class,
193
- 'InvalidParameterValueException ' => InvalidParameterValueException::class,
194
194
]]));
195
195
196
196
return new FunctionConfiguration ($ response );
@@ -251,71 +251,71 @@ public function getFunctionConfiguration($input): FunctionConfiguration
251
251
* '@region'?: string|null,
252
252
* }|InvocationRequest $input
253
253
*
254
- * @throws ServiceException
255
- * @throws ResourceNotFoundException
256
- * @throws InvalidRequestContentException
257
- * @throws RequestTooLargeException
258
- * @throws UnsupportedMediaTypeException
259
- * @throws TooManyRequestsException
260
- * @throws InvalidParameterValueException
254
+ * @throws EC2AccessDeniedException
255
+ * @throws EC2ThrottledException
261
256
* @throws EC2UnexpectedException
262
- * @throws SubnetIPAddressLimitReachedException
263
- * @throws ENILimitReachedException
257
+ * @throws EFSIOException
264
258
* @throws EFSMountConnectivityException
265
259
* @throws EFSMountFailureException
266
260
* @throws EFSMountTimeoutException
267
- * @throws EFSIOException
268
- * @throws SnapStartException
269
- * @throws SnapStartTimeoutException
270
- * @throws SnapStartNotReadyException
271
- * @throws EC2ThrottledException
272
- * @throws EC2AccessDeniedException
273
- * @throws InvalidSubnetIDException
261
+ * @throws ENILimitReachedException
262
+ * @throws InvalidParameterValueException
263
+ * @throws InvalidRequestContentException
264
+ * @throws InvalidRuntimeException
274
265
* @throws InvalidSecurityGroupIDException
266
+ * @throws InvalidSubnetIDException
275
267
* @throws InvalidZipFileException
268
+ * @throws KMSAccessDeniedException
276
269
* @throws KMSDisabledException
277
270
* @throws KMSInvalidStateException
278
- * @throws KMSAccessDeniedException
279
271
* @throws KMSNotFoundException
280
- * @throws InvalidRuntimeException
272
+ * @throws RecursiveInvocationException
273
+ * @throws RequestTooLargeException
281
274
* @throws ResourceConflictException
275
+ * @throws ResourceNotFoundException
282
276
* @throws ResourceNotReadyException
283
- * @throws RecursiveInvocationException
277
+ * @throws ServiceException
278
+ * @throws SnapStartException
279
+ * @throws SnapStartNotReadyException
280
+ * @throws SnapStartTimeoutException
281
+ * @throws SubnetIPAddressLimitReachedException
282
+ * @throws TooManyRequestsException
283
+ * @throws UnsupportedMediaTypeException
284
284
*/
285
285
public function invoke ($ input ): InvocationResponse
286
286
{
287
287
$ input = InvocationRequest::create ($ input );
288
288
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'Invoke ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
289
- 'ServiceException ' => ServiceException::class,
290
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
291
- 'InvalidRequestContentException ' => InvalidRequestContentException::class,
292
- 'RequestTooLargeException ' => RequestTooLargeException::class,
293
- 'UnsupportedMediaTypeException ' => UnsupportedMediaTypeException::class,
294
- 'TooManyRequestsException ' => TooManyRequestsException::class,
295
- 'InvalidParameterValueException ' => InvalidParameterValueException::class,
289
+ 'EC2AccessDeniedException ' => EC2AccessDeniedException::class,
290
+ 'EC2ThrottledException ' => EC2ThrottledException::class,
296
291
'EC2UnexpectedException ' => EC2UnexpectedException::class,
297
- 'SubnetIPAddressLimitReachedException ' => SubnetIPAddressLimitReachedException::class,
298
- 'ENILimitReachedException ' => ENILimitReachedException::class,
292
+ 'EFSIOException ' => EFSIOException::class,
299
293
'EFSMountConnectivityException ' => EFSMountConnectivityException::class,
300
294
'EFSMountFailureException ' => EFSMountFailureException::class,
301
295
'EFSMountTimeoutException ' => EFSMountTimeoutException::class,
302
- 'EFSIOException ' => EFSIOException::class,
303
- 'SnapStartException ' => SnapStartException::class,
304
- 'SnapStartTimeoutException ' => SnapStartTimeoutException::class,
305
- 'SnapStartNotReadyException ' => SnapStartNotReadyException::class,
306
- 'EC2ThrottledException ' => EC2ThrottledException::class,
307
- 'EC2AccessDeniedException ' => EC2AccessDeniedException::class,
308
- 'InvalidSubnetIDException ' => InvalidSubnetIDException::class,
296
+ 'ENILimitReachedException ' => ENILimitReachedException::class,
297
+ 'InvalidParameterValueException ' => InvalidParameterValueException::class,
298
+ 'InvalidRequestContentException ' => InvalidRequestContentException::class,
299
+ 'InvalidRuntimeException ' => InvalidRuntimeException::class,
309
300
'InvalidSecurityGroupIDException ' => InvalidSecurityGroupIDException::class,
301
+ 'InvalidSubnetIDException ' => InvalidSubnetIDException::class,
310
302
'InvalidZipFileException ' => InvalidZipFileException::class,
303
+ 'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
311
304
'KMSDisabledException ' => KMSDisabledException::class,
312
305
'KMSInvalidStateException ' => KMSInvalidStateException::class,
313
- 'KMSAccessDeniedException ' => KMSAccessDeniedException::class,
314
306
'KMSNotFoundException ' => KMSNotFoundException::class,
315
- 'InvalidRuntimeException ' => InvalidRuntimeException::class,
307
+ 'RecursiveInvocationException ' => RecursiveInvocationException::class,
308
+ 'RequestTooLargeException ' => RequestTooLargeException::class,
316
309
'ResourceConflictException ' => ResourceConflictException::class,
310
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
317
311
'ResourceNotReadyException ' => ResourceNotReadyException::class,
318
- 'RecursiveInvocationException ' => RecursiveInvocationException::class,
312
+ 'ServiceException ' => ServiceException::class,
313
+ 'SnapStartException ' => SnapStartException::class,
314
+ 'SnapStartNotReadyException ' => SnapStartNotReadyException::class,
315
+ 'SnapStartTimeoutException ' => SnapStartTimeoutException::class,
316
+ 'SubnetIPAddressLimitReachedException ' => SubnetIPAddressLimitReachedException::class,
317
+ 'TooManyRequestsException ' => TooManyRequestsException::class,
318
+ 'UnsupportedMediaTypeException ' => UnsupportedMediaTypeException::class,
319
319
]]));
320
320
321
321
return new InvocationResponse ($ response );
@@ -343,17 +343,17 @@ public function invoke($input): InvocationResponse
343
343
* '@region'?: string|null,
344
344
* }|ListFunctionsRequest $input
345
345
*
346
+ * @throws InvalidParameterValueException
346
347
* @throws ServiceException
347
348
* @throws TooManyRequestsException
348
- * @throws InvalidParameterValueException
349
349
*/
350
350
public function listFunctions ($ input = []): ListFunctionsResponse
351
351
{
352
352
$ input = ListFunctionsRequest::create ($ input );
353
353
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListFunctions ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
354
+ 'InvalidParameterValueException ' => InvalidParameterValueException::class,
354
355
'ServiceException ' => ServiceException::class,
355
356
'TooManyRequestsException ' => TooManyRequestsException::class,
356
- 'InvalidParameterValueException ' => InvalidParameterValueException::class,
357
357
]]));
358
358
359
359
return new ListFunctionsResponse ($ response , $ this , $ input );
@@ -379,18 +379,18 @@ public function listFunctions($input = []): ListFunctionsResponse
379
379
* '@region'?: string|null,
380
380
* }|ListLayerVersionsRequest $input
381
381
*
382
- * @throws ServiceException
383
382
* @throws InvalidParameterValueException
384
383
* @throws ResourceNotFoundException
384
+ * @throws ServiceException
385
385
* @throws TooManyRequestsException
386
386
*/
387
387
public function listLayerVersions ($ input ): ListLayerVersionsResponse
388
388
{
389
389
$ input = ListLayerVersionsRequest::create ($ input );
390
390
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListLayerVersions ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
391
- 'ServiceException ' => ServiceException::class,
392
391
'InvalidParameterValueException ' => InvalidParameterValueException::class,
393
392
'ResourceNotFoundException ' => ResourceNotFoundException::class,
393
+ 'ServiceException ' => ServiceException::class,
394
394
'TooManyRequestsException ' => TooManyRequestsException::class,
395
395
]]));
396
396
@@ -413,18 +413,18 @@ public function listLayerVersions($input): ListLayerVersionsResponse
413
413
* '@region'?: string|null,
414
414
* }|ListVersionsByFunctionRequest $input
415
415
*
416
- * @throws ServiceException
417
- * @throws ResourceNotFoundException
418
416
* @throws InvalidParameterValueException
417
+ * @throws ResourceNotFoundException
418
+ * @throws ServiceException
419
419
* @throws TooManyRequestsException
420
420
*/
421
421
public function listVersionsByFunction ($ input ): ListVersionsByFunctionResponse
422
422
{
423
423
$ input = ListVersionsByFunctionRequest::create ($ input );
424
424
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListVersionsByFunction ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
425
- 'ServiceException ' => ServiceException::class,
426
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
427
425
'InvalidParameterValueException ' => InvalidParameterValueException::class,
426
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
427
+ 'ServiceException ' => ServiceException::class,
428
428
'TooManyRequestsException ' => TooManyRequestsException::class,
429
429
]]));
430
430
@@ -452,21 +452,21 @@ public function listVersionsByFunction($input): ListVersionsByFunctionResponse
452
452
* '@region'?: string|null,
453
453
* }|PublishLayerVersionRequest $input
454
454
*
455
- * @throws ServiceException
455
+ * @throws CodeStorageExceededException
456
+ * @throws InvalidParameterValueException
456
457
* @throws ResourceNotFoundException
458
+ * @throws ServiceException
457
459
* @throws TooManyRequestsException
458
- * @throws InvalidParameterValueException
459
- * @throws CodeStorageExceededException
460
460
*/
461
461
public function publishLayerVersion ($ input ): PublishLayerVersionResponse
462
462
{
463
463
$ input = PublishLayerVersionRequest::create ($ input );
464
464
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'PublishLayerVersion ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
465
- 'ServiceException ' => ServiceException::class,
465
+ 'CodeStorageExceededException ' => CodeStorageExceededException::class,
466
+ 'InvalidParameterValueException ' => InvalidParameterValueException::class,
466
467
'ResourceNotFoundException ' => ResourceNotFoundException::class,
468
+ 'ServiceException ' => ServiceException::class,
467
469
'TooManyRequestsException ' => TooManyRequestsException::class,
468
- 'InvalidParameterValueException ' => InvalidParameterValueException::class,
469
- 'CodeStorageExceededException ' => CodeStorageExceededException::class,
470
470
]]));
471
471
472
472
return new PublishLayerVersionResponse ($ response );
@@ -515,29 +515,29 @@ public function publishLayerVersion($input): PublishLayerVersionResponse
515
515
* '@region'?: string|null,
516
516
* }|UpdateFunctionConfigurationRequest $input
517
517
*
518
- * @throws ServiceException
519
- * @throws ResourceNotFoundException
520
- * @throws InvalidParameterValueException
521
- * @throws TooManyRequestsException
522
- * @throws ResourceConflictException
523
- * @throws PreconditionFailedException
518
+ * @throws CodeSigningConfigNotFoundException
524
519
* @throws CodeVerificationFailedException
525
520
* @throws InvalidCodeSignatureException
526
- * @throws CodeSigningConfigNotFoundException
521
+ * @throws InvalidParameterValueException
522
+ * @throws PreconditionFailedException
523
+ * @throws ResourceConflictException
524
+ * @throws ResourceNotFoundException
525
+ * @throws ServiceException
526
+ * @throws TooManyRequestsException
527
527
*/
528
528
public function updateFunctionConfiguration ($ input ): FunctionConfiguration
529
529
{
530
530
$ input = UpdateFunctionConfigurationRequest::create ($ input );
531
531
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'UpdateFunctionConfiguration ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
532
- 'ServiceException ' => ServiceException::class,
533
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
534
- 'InvalidParameterValueException ' => InvalidParameterValueException::class,
535
- 'TooManyRequestsException ' => TooManyRequestsException::class,
536
- 'ResourceConflictException ' => ResourceConflictException::class,
537
- 'PreconditionFailedException ' => PreconditionFailedException::class,
532
+ 'CodeSigningConfigNotFoundException ' => CodeSigningConfigNotFoundException::class,
538
533
'CodeVerificationFailedException ' => CodeVerificationFailedException::class,
539
534
'InvalidCodeSignatureException ' => InvalidCodeSignatureException::class,
540
- 'CodeSigningConfigNotFoundException ' => CodeSigningConfigNotFoundException::class,
535
+ 'InvalidParameterValueException ' => InvalidParameterValueException::class,
536
+ 'PreconditionFailedException ' => PreconditionFailedException::class,
537
+ 'ResourceConflictException ' => ResourceConflictException::class,
538
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
539
+ 'ServiceException ' => ServiceException::class,
540
+ 'TooManyRequestsException ' => TooManyRequestsException::class,
541
541
]]));
542
542
543
543
return new FunctionConfiguration ($ response );
0 commit comments