@@ -65,19 +65,19 @@ class IotClient extends AbstractApi
6565 * '@region'?: string|null,
6666 * }|AddThingToThingGroupRequest $input
6767 *
68- * @throws InvalidRequestException
69- * @throws ThrottlingException
7068 * @throws InternalFailureException
69+ * @throws InvalidRequestException
7170 * @throws ResourceNotFoundException
71+ * @throws ThrottlingException
7272 */
7373 public function addThingToThingGroup ($ input = []): AddThingToThingGroupResponse
7474 {
7575 $ input = AddThingToThingGroupRequest::create ($ input );
7676 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'AddThingToThingGroup ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
77- 'InvalidRequestException ' => InvalidRequestException::class,
78- 'ThrottlingException ' => ThrottlingException::class,
7977 'InternalFailureException ' => InternalFailureException::class,
78+ 'InvalidRequestException ' => InvalidRequestException::class,
8079 'ResourceNotFoundException ' => ResourceNotFoundException::class,
80+ 'ThrottlingException ' => ThrottlingException::class,
8181 ]]));
8282
8383 return new AddThingToThingGroupResponse ($ response );
@@ -106,25 +106,25 @@ public function addThingToThingGroup($input = []): AddThingToThingGroupResponse
106106 * '@region'?: string|null,
107107 * }|CreateThingRequest $input
108108 *
109- * @throws InvalidRequestException
110- * @throws ThrottlingException
111- * @throws UnauthorizedException
112- * @throws ServiceUnavailableException
113109 * @throws InternalFailureException
110+ * @throws InvalidRequestException
114111 * @throws ResourceAlreadyExistsException
115112 * @throws ResourceNotFoundException
113+ * @throws ServiceUnavailableException
114+ * @throws ThrottlingException
115+ * @throws UnauthorizedException
116116 */
117117 public function createThing ($ input ): CreateThingResponse
118118 {
119119 $ input = CreateThingRequest::create ($ input );
120120 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'CreateThing ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
121- 'InvalidRequestException ' => InvalidRequestException::class,
122- 'ThrottlingException ' => ThrottlingException::class,
123- 'UnauthorizedException ' => UnauthorizedException::class,
124- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
125121 'InternalFailureException ' => InternalFailureException::class,
122+ 'InvalidRequestException ' => InvalidRequestException::class,
126123 'ResourceAlreadyExistsException ' => ResourceAlreadyExistsException::class,
127124 'ResourceNotFoundException ' => ResourceNotFoundException::class,
125+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
126+ 'ThrottlingException ' => ThrottlingException::class,
127+ 'UnauthorizedException ' => UnauthorizedException::class,
128128 ]]));
129129
130130 return new CreateThingResponse ($ response );
@@ -154,19 +154,19 @@ public function createThing($input): CreateThingResponse
154154 * '@region'?: string|null,
155155 * }|CreateThingGroupRequest $input
156156 *
157+ * @throws InternalFailureException
157158 * @throws InvalidRequestException
158159 * @throws ResourceAlreadyExistsException
159160 * @throws ThrottlingException
160- * @throws InternalFailureException
161161 */
162162 public function createThingGroup ($ input ): CreateThingGroupResponse
163163 {
164164 $ input = CreateThingGroupRequest::create ($ input );
165165 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'CreateThingGroup ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
166+ 'InternalFailureException ' => InternalFailureException::class,
166167 'InvalidRequestException ' => InvalidRequestException::class,
167168 'ResourceAlreadyExistsException ' => ResourceAlreadyExistsException::class,
168169 'ThrottlingException ' => ThrottlingException::class,
169- 'InternalFailureException ' => InternalFailureException::class,
170170 ]]));
171171
172172 return new CreateThingGroupResponse ($ response );
@@ -191,23 +191,23 @@ public function createThingGroup($input): CreateThingGroupResponse
191191 * '@region'?: string|null,
192192 * }|CreateThingTypeRequest $input
193193 *
194+ * @throws InternalFailureException
194195 * @throws InvalidRequestException
196+ * @throws ResourceAlreadyExistsException
197+ * @throws ServiceUnavailableException
195198 * @throws ThrottlingException
196199 * @throws UnauthorizedException
197- * @throws ServiceUnavailableException
198- * @throws InternalFailureException
199- * @throws ResourceAlreadyExistsException
200200 */
201201 public function createThingType ($ input ): CreateThingTypeResponse
202202 {
203203 $ input = CreateThingTypeRequest::create ($ input );
204204 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'CreateThingType ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
205+ 'InternalFailureException ' => InternalFailureException::class,
205206 'InvalidRequestException ' => InvalidRequestException::class,
207+ 'ResourceAlreadyExistsException ' => ResourceAlreadyExistsException::class,
208+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
206209 'ThrottlingException ' => ThrottlingException::class,
207210 'UnauthorizedException ' => UnauthorizedException::class,
208- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
209- 'InternalFailureException ' => InternalFailureException::class,
210- 'ResourceAlreadyExistsException ' => ResourceAlreadyExistsException::class,
211211 ]]));
212212
213213 return new CreateThingTypeResponse ($ response );
@@ -230,25 +230,25 @@ public function createThingType($input): CreateThingTypeResponse
230230 * '@region'?: string|null,
231231 * }|DeleteThingRequest $input
232232 *
233- * @throws ResourceNotFoundException
234- * @throws VersionConflictException
233+ * @throws InternalFailureException
235234 * @throws InvalidRequestException
235+ * @throws ResourceNotFoundException
236+ * @throws ServiceUnavailableException
236237 * @throws ThrottlingException
237238 * @throws UnauthorizedException
238- * @throws ServiceUnavailableException
239- * @throws InternalFailureException
239+ * @throws VersionConflictException
240240 */
241241 public function deleteThing ($ input ): DeleteThingResponse
242242 {
243243 $ input = DeleteThingRequest::create ($ input );
244244 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteThing ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
245- 'ResourceNotFoundException ' => ResourceNotFoundException::class,
246- 'VersionConflictException ' => VersionConflictException::class,
245+ 'InternalFailureException ' => InternalFailureException::class,
247246 'InvalidRequestException ' => InvalidRequestException::class,
247+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
248+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
248249 'ThrottlingException ' => ThrottlingException::class,
249250 'UnauthorizedException ' => UnauthorizedException::class,
250- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
251- 'InternalFailureException ' => InternalFailureException::class,
251+ 'VersionConflictException ' => VersionConflictException::class,
252252 ]]));
253253
254254 return new DeleteThingResponse ($ response );
@@ -270,19 +270,19 @@ public function deleteThing($input): DeleteThingResponse
270270 * '@region'?: string|null,
271271 * }|DeleteThingGroupRequest $input
272272 *
273+ * @throws InternalFailureException
273274 * @throws InvalidRequestException
274- * @throws VersionConflictException
275275 * @throws ThrottlingException
276- * @throws InternalFailureException
276+ * @throws VersionConflictException
277277 */
278278 public function deleteThingGroup ($ input ): DeleteThingGroupResponse
279279 {
280280 $ input = DeleteThingGroupRequest::create ($ input );
281281 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteThingGroup ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
282+ 'InternalFailureException ' => InternalFailureException::class,
282283 'InvalidRequestException ' => InvalidRequestException::class,
283- 'VersionConflictException ' => VersionConflictException::class,
284284 'ThrottlingException ' => ThrottlingException::class,
285- 'InternalFailureException ' => InternalFailureException ::class,
285+ 'VersionConflictException ' => VersionConflictException ::class,
286286 ]]));
287287
288288 return new DeleteThingGroupResponse ($ response );
@@ -306,23 +306,23 @@ public function deleteThingGroup($input): DeleteThingGroupResponse
306306 * '@region'?: string|null,
307307 * }|DeleteThingTypeRequest $input
308308 *
309- * @throws ResourceNotFoundException
309+ * @throws InternalFailureException
310310 * @throws InvalidRequestException
311+ * @throws ResourceNotFoundException
312+ * @throws ServiceUnavailableException
311313 * @throws ThrottlingException
312314 * @throws UnauthorizedException
313- * @throws ServiceUnavailableException
314- * @throws InternalFailureException
315315 */
316316 public function deleteThingType ($ input ): DeleteThingTypeResponse
317317 {
318318 $ input = DeleteThingTypeRequest::create ($ input );
319319 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteThingType ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
320- 'ResourceNotFoundException ' => ResourceNotFoundException ::class,
320+ 'InternalFailureException ' => InternalFailureException ::class,
321321 'InvalidRequestException ' => InvalidRequestException::class,
322+ 'ResourceNotFoundException ' => ResourceNotFoundException::class,
323+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
322324 'ThrottlingException ' => ThrottlingException::class,
323325 'UnauthorizedException ' => UnauthorizedException::class,
324- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
325- 'InternalFailureException ' => InternalFailureException::class,
326326 ]]));
327327
328328 return new DeleteThingTypeResponse ($ response );
@@ -347,17 +347,17 @@ public function deleteThingType($input): DeleteThingTypeResponse
347347 * '@region'?: string|null,
348348 * }|ListThingGroupsRequest $input
349349 *
350- * @throws InvalidRequestException
351350 * @throws InternalFailureException
351+ * @throws InvalidRequestException
352352 * @throws ResourceNotFoundException
353353 * @throws ThrottlingException
354354 */
355355 public function listThingGroups ($ input = []): ListThingGroupsResponse
356356 {
357357 $ input = ListThingGroupsRequest::create ($ input );
358358 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListThingGroups ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
359- 'InvalidRequestException ' => InvalidRequestException::class,
360359 'InternalFailureException ' => InternalFailureException::class,
360+ 'InvalidRequestException ' => InvalidRequestException::class,
361361 'ResourceNotFoundException ' => ResourceNotFoundException::class,
362362 'ThrottlingException ' => ThrottlingException::class,
363363 ]]));
@@ -382,17 +382,17 @@ public function listThingGroups($input = []): ListThingGroupsResponse
382382 * '@region'?: string|null,
383383 * }|ListThingGroupsForThingRequest $input
384384 *
385- * @throws InvalidRequestException
386385 * @throws InternalFailureException
386+ * @throws InvalidRequestException
387387 * @throws ResourceNotFoundException
388388 * @throws ThrottlingException
389389 */
390390 public function listThingGroupsForThing ($ input ): ListThingGroupsForThingResponse
391391 {
392392 $ input = ListThingGroupsForThingRequest::create ($ input );
393393 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListThingGroupsForThing ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
394- 'InvalidRequestException ' => InvalidRequestException::class,
395394 'InternalFailureException ' => InternalFailureException::class,
395+ 'InvalidRequestException ' => InvalidRequestException::class,
396396 'ResourceNotFoundException ' => ResourceNotFoundException::class,
397397 'ThrottlingException ' => ThrottlingException::class,
398398 ]]));
@@ -417,21 +417,21 @@ public function listThingGroupsForThing($input): ListThingGroupsForThingResponse
417417 * '@region'?: string|null,
418418 * }|ListThingTypesRequest $input
419419 *
420+ * @throws InternalFailureException
420421 * @throws InvalidRequestException
422+ * @throws ServiceUnavailableException
421423 * @throws ThrottlingException
422424 * @throws UnauthorizedException
423- * @throws ServiceUnavailableException
424- * @throws InternalFailureException
425425 */
426426 public function listThingTypes ($ input = []): ListThingTypesResponse
427427 {
428428 $ input = ListThingTypesRequest::create ($ input );
429429 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListThingTypes ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
430+ 'InternalFailureException ' => InternalFailureException::class,
430431 'InvalidRequestException ' => InvalidRequestException::class,
432+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
431433 'ThrottlingException ' => ThrottlingException::class,
432434 'UnauthorizedException ' => UnauthorizedException::class,
433- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
434- 'InternalFailureException ' => InternalFailureException::class,
435435 ]]));
436436
437437 return new ListThingTypesResponse ($ response , $ this , $ input );
@@ -464,21 +464,21 @@ public function listThingTypes($input = []): ListThingTypesResponse
464464 * '@region'?: string|null,
465465 * }|ListThingsRequest $input
466466 *
467+ * @throws InternalFailureException
467468 * @throws InvalidRequestException
469+ * @throws ServiceUnavailableException
468470 * @throws ThrottlingException
469471 * @throws UnauthorizedException
470- * @throws ServiceUnavailableException
471- * @throws InternalFailureException
472472 */
473473 public function listThings ($ input = []): ListThingsResponse
474474 {
475475 $ input = ListThingsRequest::create ($ input );
476476 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListThings ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
477+ 'InternalFailureException ' => InternalFailureException::class,
477478 'InvalidRequestException ' => InvalidRequestException::class,
479+ 'ServiceUnavailableException ' => ServiceUnavailableException::class,
478480 'ThrottlingException ' => ThrottlingException::class,
479481 'UnauthorizedException ' => UnauthorizedException::class,
480- 'ServiceUnavailableException ' => ServiceUnavailableException::class,
481- 'InternalFailureException ' => InternalFailureException::class,
482482 ]]));
483483
484484 return new ListThingsResponse ($ response , $ this , $ input );
@@ -502,17 +502,17 @@ public function listThings($input = []): ListThingsResponse
502502 * '@region'?: string|null,
503503 * }|ListThingsInThingGroupRequest $input
504504 *
505- * @throws InvalidRequestException
506505 * @throws InternalFailureException
506+ * @throws InvalidRequestException
507507 * @throws ResourceNotFoundException
508508 * @throws ThrottlingException
509509 */
510510 public function listThingsInThingGroup ($ input ): ListThingsInThingGroupResponse
511511 {
512512 $ input = ListThingsInThingGroupRequest::create ($ input );
513513 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListThingsInThingGroup ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
514- 'InvalidRequestException ' => InvalidRequestException::class,
515514 'InternalFailureException ' => InternalFailureException::class,
515+ 'InvalidRequestException ' => InvalidRequestException::class,
516516 'ResourceNotFoundException ' => ResourceNotFoundException::class,
517517 'ThrottlingException ' => ThrottlingException::class,
518518 ]]));
0 commit comments