@@ -78,21 +78,21 @@ class AppSyncClient extends AbstractApi
78
78
* '@region'?: string|null,
79
79
* }|CreateResolverRequest $input
80
80
*
81
+ * @throws BadRequestException
81
82
* @throws ConcurrentModificationException
83
+ * @throws InternalFailureException
82
84
* @throws NotFoundException
83
85
* @throws UnauthorizedException
84
- * @throws InternalFailureException
85
- * @throws BadRequestException
86
86
*/
87
87
public function createResolver ($ input ): CreateResolverResponse
88
88
{
89
89
$ input = CreateResolverRequest::create ($ input );
90
90
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'CreateResolver ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
91
+ 'BadRequestException ' => BadRequestException::class,
91
92
'ConcurrentModificationException ' => ConcurrentModificationException::class,
93
+ 'InternalFailureException ' => InternalFailureException::class,
92
94
'NotFoundException ' => NotFoundException::class,
93
95
'UnauthorizedException ' => UnauthorizedException::class,
94
- 'InternalFailureException ' => InternalFailureException::class,
95
- 'BadRequestException ' => BadRequestException::class,
96
96
]]));
97
97
98
98
return new CreateResolverResponse ($ response );
@@ -111,21 +111,21 @@ public function createResolver($input): CreateResolverResponse
111
111
* '@region'?: string|null,
112
112
* }|DeleteResolverRequest $input
113
113
*
114
+ * @throws BadRequestException
114
115
* @throws ConcurrentModificationException
116
+ * @throws InternalFailureException
115
117
* @throws NotFoundException
116
118
* @throws UnauthorizedException
117
- * @throws InternalFailureException
118
- * @throws BadRequestException
119
119
*/
120
120
public function deleteResolver ($ input ): DeleteResolverResponse
121
121
{
122
122
$ input = DeleteResolverRequest::create ($ input );
123
123
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteResolver ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
124
+ 'BadRequestException ' => BadRequestException::class,
124
125
'ConcurrentModificationException ' => ConcurrentModificationException::class,
126
+ 'InternalFailureException ' => InternalFailureException::class,
125
127
'NotFoundException ' => NotFoundException::class,
126
128
'UnauthorizedException ' => UnauthorizedException::class,
127
- 'InternalFailureException ' => InternalFailureException::class,
128
- 'BadRequestException ' => BadRequestException::class,
129
129
]]));
130
130
131
131
return new DeleteResolverResponse ($ response );
@@ -143,18 +143,18 @@ public function deleteResolver($input): DeleteResolverResponse
143
143
* }|GetSchemaCreationStatusRequest $input
144
144
*
145
145
* @throws BadRequestException
146
+ * @throws InternalFailureException
146
147
* @throws NotFoundException
147
148
* @throws UnauthorizedException
148
- * @throws InternalFailureException
149
149
*/
150
150
public function getSchemaCreationStatus ($ input ): GetSchemaCreationStatusResponse
151
151
{
152
152
$ input = GetSchemaCreationStatusRequest::create ($ input );
153
153
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'GetSchemaCreationStatus ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
154
154
'BadRequestException ' => BadRequestException::class,
155
+ 'InternalFailureException ' => InternalFailureException::class,
155
156
'NotFoundException ' => NotFoundException::class,
156
157
'UnauthorizedException ' => UnauthorizedException::class,
157
- 'InternalFailureException ' => InternalFailureException::class,
158
158
]]));
159
159
160
160
return new GetSchemaCreationStatusResponse ($ response );
@@ -178,18 +178,18 @@ public function getSchemaCreationStatus($input): GetSchemaCreationStatusResponse
178
178
* }|ListApiKeysRequest $input
179
179
*
180
180
* @throws BadRequestException
181
+ * @throws InternalFailureException
181
182
* @throws NotFoundException
182
183
* @throws UnauthorizedException
183
- * @throws InternalFailureException
184
184
*/
185
185
public function listApiKeys ($ input ): ListApiKeysResponse
186
186
{
187
187
$ input = ListApiKeysRequest::create ($ input );
188
188
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListApiKeys ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
189
189
'BadRequestException ' => BadRequestException::class,
190
+ 'InternalFailureException ' => InternalFailureException::class,
190
191
'NotFoundException ' => NotFoundException::class,
191
192
'UnauthorizedException ' => UnauthorizedException::class,
192
- 'InternalFailureException ' => InternalFailureException::class,
193
193
]]));
194
194
195
195
return new ListApiKeysResponse ($ response , $ this , $ input );
@@ -210,18 +210,18 @@ public function listApiKeys($input): ListApiKeysResponse
210
210
* }|ListResolversRequest $input
211
211
*
212
212
* @throws BadRequestException
213
+ * @throws InternalFailureException
213
214
* @throws NotFoundException
214
215
* @throws UnauthorizedException
215
- * @throws InternalFailureException
216
216
*/
217
217
public function listResolvers ($ input ): ListResolversResponse
218
218
{
219
219
$ input = ListResolversRequest::create ($ input );
220
220
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'ListResolvers ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
221
221
'BadRequestException ' => BadRequestException::class,
222
+ 'InternalFailureException ' => InternalFailureException::class,
222
223
'NotFoundException ' => NotFoundException::class,
223
224
'UnauthorizedException ' => UnauthorizedException::class,
224
- 'InternalFailureException ' => InternalFailureException::class,
225
225
]]));
226
226
227
227
return new ListResolversResponse ($ response , $ this , $ input );
@@ -243,19 +243,19 @@ public function listResolvers($input): ListResolversResponse
243
243
*
244
244
* @throws BadRequestException
245
245
* @throws ConcurrentModificationException
246
+ * @throws InternalFailureException
246
247
* @throws NotFoundException
247
248
* @throws UnauthorizedException
248
- * @throws InternalFailureException
249
249
*/
250
250
public function startSchemaCreation ($ input ): StartSchemaCreationResponse
251
251
{
252
252
$ input = StartSchemaCreationRequest::create ($ input );
253
253
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'StartSchemaCreation ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
254
254
'BadRequestException ' => BadRequestException::class,
255
255
'ConcurrentModificationException ' => ConcurrentModificationException::class,
256
+ 'InternalFailureException ' => InternalFailureException::class,
256
257
'NotFoundException ' => NotFoundException::class,
257
258
'UnauthorizedException ' => UnauthorizedException::class,
258
- 'InternalFailureException ' => InternalFailureException::class,
259
259
]]));
260
260
261
261
return new StartSchemaCreationResponse ($ response );
@@ -275,23 +275,23 @@ public function startSchemaCreation($input): StartSchemaCreationResponse
275
275
* '@region'?: string|null,
276
276
* }|UpdateApiKeyRequest $input
277
277
*
278
+ * @throws ApiKeyValidityOutOfBoundsException
278
279
* @throws BadRequestException
280
+ * @throws InternalFailureException
281
+ * @throws LimitExceededException
279
282
* @throws NotFoundException
280
283
* @throws UnauthorizedException
281
- * @throws LimitExceededException
282
- * @throws InternalFailureException
283
- * @throws ApiKeyValidityOutOfBoundsException
284
284
*/
285
285
public function updateApiKey ($ input ): UpdateApiKeyResponse
286
286
{
287
287
$ input = UpdateApiKeyRequest::create ($ input );
288
288
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'UpdateApiKey ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
289
+ 'ApiKeyValidityOutOfBoundsException ' => ApiKeyValidityOutOfBoundsException::class,
289
290
'BadRequestException ' => BadRequestException::class,
291
+ 'InternalFailureException ' => InternalFailureException::class,
292
+ 'LimitExceededException ' => LimitExceededException::class,
290
293
'NotFoundException ' => NotFoundException::class,
291
294
'UnauthorizedException ' => UnauthorizedException::class,
292
- 'LimitExceededException ' => LimitExceededException::class,
293
- 'InternalFailureException ' => InternalFailureException::class,
294
- 'ApiKeyValidityOutOfBoundsException ' => ApiKeyValidityOutOfBoundsException::class,
295
295
]]));
296
296
297
297
return new UpdateApiKeyResponse ($ response );
@@ -322,19 +322,19 @@ public function updateApiKey($input): UpdateApiKeyResponse
322
322
*
323
323
* @throws BadRequestException
324
324
* @throws ConcurrentModificationException
325
+ * @throws InternalFailureException
325
326
* @throws NotFoundException
326
327
* @throws UnauthorizedException
327
- * @throws InternalFailureException
328
328
*/
329
329
public function updateDataSource ($ input ): UpdateDataSourceResponse
330
330
{
331
331
$ input = UpdateDataSourceRequest::create ($ input );
332
332
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'UpdateDataSource ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
333
333
'BadRequestException ' => BadRequestException::class,
334
334
'ConcurrentModificationException ' => ConcurrentModificationException::class,
335
+ 'InternalFailureException ' => InternalFailureException::class,
335
336
'NotFoundException ' => NotFoundException::class,
336
337
'UnauthorizedException ' => UnauthorizedException::class,
337
- 'InternalFailureException ' => InternalFailureException::class,
338
338
]]));
339
339
340
340
return new UpdateDataSourceResponse ($ response );
@@ -364,21 +364,21 @@ public function updateDataSource($input): UpdateDataSourceResponse
364
364
* '@region'?: string|null,
365
365
* }|UpdateResolverRequest $input
366
366
*
367
+ * @throws BadRequestException
367
368
* @throws ConcurrentModificationException
369
+ * @throws InternalFailureException
368
370
* @throws NotFoundException
369
371
* @throws UnauthorizedException
370
- * @throws InternalFailureException
371
- * @throws BadRequestException
372
372
*/
373
373
public function updateResolver ($ input ): UpdateResolverResponse
374
374
{
375
375
$ input = UpdateResolverRequest::create ($ input );
376
376
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'UpdateResolver ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
377
+ 'BadRequestException ' => BadRequestException::class,
377
378
'ConcurrentModificationException ' => ConcurrentModificationException::class,
379
+ 'InternalFailureException ' => InternalFailureException::class,
378
380
'NotFoundException ' => NotFoundException::class,
379
381
'UnauthorizedException ' => UnauthorizedException::class,
380
- 'InternalFailureException ' => InternalFailureException::class,
381
- 'BadRequestException ' => BadRequestException::class,
382
382
]]));
383
383
384
384
return new UpdateResolverResponse ($ response );
0 commit comments