@@ -61,30 +61,30 @@ class BedrockRuntimeClient extends AbstractApi
61
61
* }|InvokeModelRequest $input
62
62
*
63
63
* @throws AccessDeniedException
64
- * @throws ResourceNotFoundException
65
- * @throws ThrottlingException
66
- * @throws ModelTimeoutException
67
64
* @throws InternalServerException
68
- * @throws ServiceUnavailableException
69
- * @throws ValidationException
65
+ * @throws ModelErrorException
70
66
* @throws ModelNotReadyException
67
+ * @throws ModelTimeoutException
68
+ * @throws ResourceNotFoundException
71
69
* @throws ServiceQuotaExceededException
72
- * @throws ModelErrorException
70
+ * @throws ServiceUnavailableException
71
+ * @throws ThrottlingException
72
+ * @throws ValidationException
73
73
*/
74
74
public function invokeModel ($ input ): InvokeModelResponse
75
75
{
76
76
$ input = InvokeModelRequest::create ($ input );
77
77
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'InvokeModel ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
78
78
'AccessDeniedException ' => AccessDeniedException::class,
79
- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
80
- 'ThrottlingException ' => ThrottlingException::class,
81
- 'ModelTimeoutException ' => ModelTimeoutException::class,
82
79
'InternalServerException ' => InternalServerException::class,
83
- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
84
- 'ValidationException ' => ValidationException::class,
80
+ 'ModelErrorException ' => ModelErrorException::class,
85
81
'ModelNotReadyException ' => ModelNotReadyException::class,
82
+ 'ModelTimeoutException ' => ModelTimeoutException::class,
83
+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
86
84
'ServiceQuotaExceededException ' => ServiceQuotaExceededException::class,
87
- 'ModelErrorException ' => ModelErrorException::class,
85
+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
86
+ 'ThrottlingException ' => ThrottlingException::class,
87
+ 'ValidationException ' => ValidationException::class,
88
88
]]));
89
89
90
90
return new InvokeModelResponse ($ response );
0 commit comments