@effect-aws/client-api-gateway-v2 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/ApiGatewayV2ClientInstance/package.json +6 -0
  2. package/ApiGatewayV2Service/package.json +6 -0
  3. package/ApiGatewayV2ServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +19 -0
  6. package/README.md +58 -0
  7. package/dist/cjs/ApiGatewayV2ClientInstance.d.ts +24 -0
  8. package/dist/cjs/ApiGatewayV2ClientInstance.d.ts.map +1 -0
  9. package/dist/cjs/ApiGatewayV2ClientInstance.js +50 -0
  10. package/dist/cjs/ApiGatewayV2ClientInstance.js.map +1 -0
  11. package/dist/cjs/ApiGatewayV2Service.d.ts +330 -0
  12. package/dist/cjs/ApiGatewayV2Service.d.ts.map +1 -0
  13. package/dist/cjs/ApiGatewayV2Service.js +131 -0
  14. package/dist/cjs/ApiGatewayV2Service.js.map +1 -0
  15. package/dist/cjs/ApiGatewayV2ServiceConfig.d.ts +25 -0
  16. package/dist/cjs/ApiGatewayV2ServiceConfig.d.ts.map +1 -0
  17. package/dist/cjs/ApiGatewayV2ServiceConfig.js +35 -0
  18. package/dist/cjs/ApiGatewayV2ServiceConfig.js.map +1 -0
  19. package/dist/cjs/Errors.d.ts +12 -0
  20. package/dist/cjs/Errors.d.ts.map +1 -0
  21. package/dist/cjs/Errors.js +13 -0
  22. package/dist/cjs/Errors.js.map +1 -0
  23. package/dist/cjs/index.d.ts +39 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/ApiGatewayV2ClientInstance.d.ts +24 -0
  28. package/dist/dts/ApiGatewayV2ClientInstance.d.ts.map +1 -0
  29. package/dist/dts/ApiGatewayV2Service.d.ts +330 -0
  30. package/dist/dts/ApiGatewayV2Service.d.ts.map +1 -0
  31. package/dist/dts/ApiGatewayV2ServiceConfig.d.ts +25 -0
  32. package/dist/dts/ApiGatewayV2ServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/Errors.d.ts +12 -0
  34. package/dist/dts/Errors.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +39 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/ApiGatewayV2ClientInstance.js +23 -0
  38. package/dist/esm/ApiGatewayV2ClientInstance.js.map +1 -0
  39. package/dist/esm/ApiGatewayV2Service.js +104 -0
  40. package/dist/esm/ApiGatewayV2Service.js.map +1 -0
  41. package/dist/esm/ApiGatewayV2ServiceConfig.js +31 -0
  42. package/dist/esm/ApiGatewayV2ServiceConfig.js.map +1 -0
  43. package/dist/esm/Errors.js +10 -0
  44. package/dist/esm/Errors.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/ApiGatewayV2ClientInstance.ts +33 -0
  50. package/src/ApiGatewayV2Service.ts +1170 -0
  51. package/src/ApiGatewayV2ServiceConfig.ts +52 -0
  52. package/src/Errors.ts +26 -0
  53. package/src/index.ts +44 -0
@@ -0,0 +1,1170 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ type ApiGatewayV2Client,
6
+ type ApiGatewayV2ClientConfig,
7
+ CreateApiCommand,
8
+ type CreateApiCommandInput,
9
+ type CreateApiCommandOutput,
10
+ CreateApiMappingCommand,
11
+ type CreateApiMappingCommandInput,
12
+ type CreateApiMappingCommandOutput,
13
+ CreateAuthorizerCommand,
14
+ type CreateAuthorizerCommandInput,
15
+ type CreateAuthorizerCommandOutput,
16
+ CreateDeploymentCommand,
17
+ type CreateDeploymentCommandInput,
18
+ type CreateDeploymentCommandOutput,
19
+ CreateDomainNameCommand,
20
+ type CreateDomainNameCommandInput,
21
+ type CreateDomainNameCommandOutput,
22
+ CreateIntegrationCommand,
23
+ type CreateIntegrationCommandInput,
24
+ type CreateIntegrationCommandOutput,
25
+ CreateIntegrationResponseCommand,
26
+ type CreateIntegrationResponseCommandInput,
27
+ type CreateIntegrationResponseCommandOutput,
28
+ CreateModelCommand,
29
+ type CreateModelCommandInput,
30
+ type CreateModelCommandOutput,
31
+ CreateRouteCommand,
32
+ type CreateRouteCommandInput,
33
+ type CreateRouteCommandOutput,
34
+ CreateRouteResponseCommand,
35
+ type CreateRouteResponseCommandInput,
36
+ type CreateRouteResponseCommandOutput,
37
+ CreateStageCommand,
38
+ type CreateStageCommandInput,
39
+ type CreateStageCommandOutput,
40
+ CreateVpcLinkCommand,
41
+ type CreateVpcLinkCommandInput,
42
+ type CreateVpcLinkCommandOutput,
43
+ DeleteAccessLogSettingsCommand,
44
+ type DeleteAccessLogSettingsCommandInput,
45
+ type DeleteAccessLogSettingsCommandOutput,
46
+ DeleteApiCommand,
47
+ type DeleteApiCommandInput,
48
+ type DeleteApiCommandOutput,
49
+ DeleteApiMappingCommand,
50
+ type DeleteApiMappingCommandInput,
51
+ type DeleteApiMappingCommandOutput,
52
+ DeleteAuthorizerCommand,
53
+ type DeleteAuthorizerCommandInput,
54
+ type DeleteAuthorizerCommandOutput,
55
+ DeleteCorsConfigurationCommand,
56
+ type DeleteCorsConfigurationCommandInput,
57
+ type DeleteCorsConfigurationCommandOutput,
58
+ DeleteDeploymentCommand,
59
+ type DeleteDeploymentCommandInput,
60
+ type DeleteDeploymentCommandOutput,
61
+ DeleteDomainNameCommand,
62
+ type DeleteDomainNameCommandInput,
63
+ type DeleteDomainNameCommandOutput,
64
+ DeleteIntegrationCommand,
65
+ type DeleteIntegrationCommandInput,
66
+ type DeleteIntegrationCommandOutput,
67
+ DeleteIntegrationResponseCommand,
68
+ type DeleteIntegrationResponseCommandInput,
69
+ type DeleteIntegrationResponseCommandOutput,
70
+ DeleteModelCommand,
71
+ type DeleteModelCommandInput,
72
+ type DeleteModelCommandOutput,
73
+ DeleteRouteCommand,
74
+ type DeleteRouteCommandInput,
75
+ type DeleteRouteCommandOutput,
76
+ DeleteRouteRequestParameterCommand,
77
+ type DeleteRouteRequestParameterCommandInput,
78
+ type DeleteRouteRequestParameterCommandOutput,
79
+ DeleteRouteResponseCommand,
80
+ type DeleteRouteResponseCommandInput,
81
+ type DeleteRouteResponseCommandOutput,
82
+ DeleteRouteSettingsCommand,
83
+ type DeleteRouteSettingsCommandInput,
84
+ type DeleteRouteSettingsCommandOutput,
85
+ DeleteStageCommand,
86
+ type DeleteStageCommandInput,
87
+ type DeleteStageCommandOutput,
88
+ DeleteVpcLinkCommand,
89
+ type DeleteVpcLinkCommandInput,
90
+ type DeleteVpcLinkCommandOutput,
91
+ ExportApiCommand,
92
+ type ExportApiCommandInput,
93
+ type ExportApiCommandOutput,
94
+ GetApiCommand,
95
+ type GetApiCommandInput,
96
+ type GetApiCommandOutput,
97
+ GetApiMappingCommand,
98
+ type GetApiMappingCommandInput,
99
+ type GetApiMappingCommandOutput,
100
+ GetApiMappingsCommand,
101
+ type GetApiMappingsCommandInput,
102
+ type GetApiMappingsCommandOutput,
103
+ GetApisCommand,
104
+ type GetApisCommandInput,
105
+ type GetApisCommandOutput,
106
+ GetAuthorizerCommand,
107
+ type GetAuthorizerCommandInput,
108
+ type GetAuthorizerCommandOutput,
109
+ GetAuthorizersCommand,
110
+ type GetAuthorizersCommandInput,
111
+ type GetAuthorizersCommandOutput,
112
+ GetDeploymentCommand,
113
+ type GetDeploymentCommandInput,
114
+ type GetDeploymentCommandOutput,
115
+ GetDeploymentsCommand,
116
+ type GetDeploymentsCommandInput,
117
+ type GetDeploymentsCommandOutput,
118
+ GetDomainNameCommand,
119
+ type GetDomainNameCommandInput,
120
+ type GetDomainNameCommandOutput,
121
+ GetDomainNamesCommand,
122
+ type GetDomainNamesCommandInput,
123
+ type GetDomainNamesCommandOutput,
124
+ GetIntegrationCommand,
125
+ type GetIntegrationCommandInput,
126
+ type GetIntegrationCommandOutput,
127
+ GetIntegrationResponseCommand,
128
+ type GetIntegrationResponseCommandInput,
129
+ type GetIntegrationResponseCommandOutput,
130
+ GetIntegrationResponsesCommand,
131
+ type GetIntegrationResponsesCommandInput,
132
+ type GetIntegrationResponsesCommandOutput,
133
+ GetIntegrationsCommand,
134
+ type GetIntegrationsCommandInput,
135
+ type GetIntegrationsCommandOutput,
136
+ GetModelCommand,
137
+ type GetModelCommandInput,
138
+ type GetModelCommandOutput,
139
+ GetModelsCommand,
140
+ type GetModelsCommandInput,
141
+ type GetModelsCommandOutput,
142
+ GetModelTemplateCommand,
143
+ type GetModelTemplateCommandInput,
144
+ type GetModelTemplateCommandOutput,
145
+ GetRouteCommand,
146
+ type GetRouteCommandInput,
147
+ type GetRouteCommandOutput,
148
+ GetRouteResponseCommand,
149
+ type GetRouteResponseCommandInput,
150
+ type GetRouteResponseCommandOutput,
151
+ GetRouteResponsesCommand,
152
+ type GetRouteResponsesCommandInput,
153
+ type GetRouteResponsesCommandOutput,
154
+ GetRoutesCommand,
155
+ type GetRoutesCommandInput,
156
+ type GetRoutesCommandOutput,
157
+ GetStageCommand,
158
+ type GetStageCommandInput,
159
+ type GetStageCommandOutput,
160
+ GetStagesCommand,
161
+ type GetStagesCommandInput,
162
+ type GetStagesCommandOutput,
163
+ GetTagsCommand,
164
+ type GetTagsCommandInput,
165
+ type GetTagsCommandOutput,
166
+ GetVpcLinkCommand,
167
+ type GetVpcLinkCommandInput,
168
+ type GetVpcLinkCommandOutput,
169
+ GetVpcLinksCommand,
170
+ type GetVpcLinksCommandInput,
171
+ type GetVpcLinksCommandOutput,
172
+ ImportApiCommand,
173
+ type ImportApiCommandInput,
174
+ type ImportApiCommandOutput,
175
+ ReimportApiCommand,
176
+ type ReimportApiCommandInput,
177
+ type ReimportApiCommandOutput,
178
+ ResetAuthorizersCacheCommand,
179
+ type ResetAuthorizersCacheCommandInput,
180
+ type ResetAuthorizersCacheCommandOutput,
181
+ TagResourceCommand,
182
+ type TagResourceCommandInput,
183
+ type TagResourceCommandOutput,
184
+ UntagResourceCommand,
185
+ type UntagResourceCommandInput,
186
+ type UntagResourceCommandOutput,
187
+ UpdateApiCommand,
188
+ type UpdateApiCommandInput,
189
+ type UpdateApiCommandOutput,
190
+ UpdateApiMappingCommand,
191
+ type UpdateApiMappingCommandInput,
192
+ type UpdateApiMappingCommandOutput,
193
+ UpdateAuthorizerCommand,
194
+ type UpdateAuthorizerCommandInput,
195
+ type UpdateAuthorizerCommandOutput,
196
+ UpdateDeploymentCommand,
197
+ type UpdateDeploymentCommandInput,
198
+ type UpdateDeploymentCommandOutput,
199
+ UpdateDomainNameCommand,
200
+ type UpdateDomainNameCommandInput,
201
+ type UpdateDomainNameCommandOutput,
202
+ UpdateIntegrationCommand,
203
+ type UpdateIntegrationCommandInput,
204
+ type UpdateIntegrationCommandOutput,
205
+ UpdateIntegrationResponseCommand,
206
+ type UpdateIntegrationResponseCommandInput,
207
+ type UpdateIntegrationResponseCommandOutput,
208
+ UpdateModelCommand,
209
+ type UpdateModelCommandInput,
210
+ type UpdateModelCommandOutput,
211
+ UpdateRouteCommand,
212
+ type UpdateRouteCommandInput,
213
+ type UpdateRouteCommandOutput,
214
+ UpdateRouteResponseCommand,
215
+ type UpdateRouteResponseCommandInput,
216
+ type UpdateRouteResponseCommandOutput,
217
+ UpdateStageCommand,
218
+ type UpdateStageCommandInput,
219
+ type UpdateStageCommandOutput,
220
+ UpdateVpcLinkCommand,
221
+ type UpdateVpcLinkCommandInput,
222
+ type UpdateVpcLinkCommandOutput,
223
+ } from "@aws-sdk/client-apigatewayv2";
224
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
225
+ import { Service } from "@effect-aws/commons";
226
+ import type { Cause } from "effect";
227
+ import { Effect, Layer } from "effect";
228
+ import * as Instance from "./ApiGatewayV2ClientInstance.js";
229
+ import * as ApiGatewayV2ServiceConfig from "./ApiGatewayV2ServiceConfig.js";
230
+ import type {
231
+ AccessDeniedError,
232
+ BadRequestError,
233
+ ConflictError,
234
+ NotFoundError,
235
+ TooManyRequestsError,
236
+ } from "./Errors.js";
237
+ import { AllServiceErrors } from "./Errors.js";
238
+
239
+ const commands = {
240
+ CreateApiCommand,
241
+ CreateApiMappingCommand,
242
+ CreateAuthorizerCommand,
243
+ CreateDeploymentCommand,
244
+ CreateDomainNameCommand,
245
+ CreateIntegrationCommand,
246
+ CreateIntegrationResponseCommand,
247
+ CreateModelCommand,
248
+ CreateRouteCommand,
249
+ CreateRouteResponseCommand,
250
+ CreateStageCommand,
251
+ CreateVpcLinkCommand,
252
+ DeleteAccessLogSettingsCommand,
253
+ DeleteApiCommand,
254
+ DeleteApiMappingCommand,
255
+ DeleteAuthorizerCommand,
256
+ DeleteCorsConfigurationCommand,
257
+ DeleteDeploymentCommand,
258
+ DeleteDomainNameCommand,
259
+ DeleteIntegrationCommand,
260
+ DeleteIntegrationResponseCommand,
261
+ DeleteModelCommand,
262
+ DeleteRouteCommand,
263
+ DeleteRouteRequestParameterCommand,
264
+ DeleteRouteResponseCommand,
265
+ DeleteRouteSettingsCommand,
266
+ DeleteStageCommand,
267
+ DeleteVpcLinkCommand,
268
+ ExportApiCommand,
269
+ GetApiCommand,
270
+ GetApiMappingCommand,
271
+ GetApiMappingsCommand,
272
+ GetApisCommand,
273
+ GetAuthorizerCommand,
274
+ GetAuthorizersCommand,
275
+ GetDeploymentCommand,
276
+ GetDeploymentsCommand,
277
+ GetDomainNameCommand,
278
+ GetDomainNamesCommand,
279
+ GetIntegrationCommand,
280
+ GetIntegrationResponseCommand,
281
+ GetIntegrationResponsesCommand,
282
+ GetIntegrationsCommand,
283
+ GetModelCommand,
284
+ GetModelTemplateCommand,
285
+ GetModelsCommand,
286
+ GetRouteCommand,
287
+ GetRouteResponseCommand,
288
+ GetRouteResponsesCommand,
289
+ GetRoutesCommand,
290
+ GetStageCommand,
291
+ GetStagesCommand,
292
+ GetTagsCommand,
293
+ GetVpcLinkCommand,
294
+ GetVpcLinksCommand,
295
+ ImportApiCommand,
296
+ ReimportApiCommand,
297
+ ResetAuthorizersCacheCommand,
298
+ TagResourceCommand,
299
+ UntagResourceCommand,
300
+ UpdateApiCommand,
301
+ UpdateApiMappingCommand,
302
+ UpdateAuthorizerCommand,
303
+ UpdateDeploymentCommand,
304
+ UpdateDomainNameCommand,
305
+ UpdateIntegrationCommand,
306
+ UpdateIntegrationResponseCommand,
307
+ UpdateModelCommand,
308
+ UpdateRouteCommand,
309
+ UpdateRouteResponseCommand,
310
+ UpdateStageCommand,
311
+ UpdateVpcLinkCommand,
312
+ };
313
+
314
+ interface ApiGatewayV2Service$ {
315
+ readonly _: unique symbol;
316
+
317
+ /**
318
+ * @see {@link CreateApiCommand}
319
+ */
320
+ createApi(
321
+ args: CreateApiCommandInput,
322
+ options?: HttpHandlerOptions,
323
+ ): Effect.Effect<
324
+ CreateApiCommandOutput,
325
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
326
+ >;
327
+
328
+ /**
329
+ * @see {@link CreateApiMappingCommand}
330
+ */
331
+ createApiMapping(
332
+ args: CreateApiMappingCommandInput,
333
+ options?: HttpHandlerOptions,
334
+ ): Effect.Effect<
335
+ CreateApiMappingCommandOutput,
336
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
337
+ >;
338
+
339
+ /**
340
+ * @see {@link CreateAuthorizerCommand}
341
+ */
342
+ createAuthorizer(
343
+ args: CreateAuthorizerCommandInput,
344
+ options?: HttpHandlerOptions,
345
+ ): Effect.Effect<
346
+ CreateAuthorizerCommandOutput,
347
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
348
+ >;
349
+
350
+ /**
351
+ * @see {@link CreateDeploymentCommand}
352
+ */
353
+ createDeployment(
354
+ args: CreateDeploymentCommandInput,
355
+ options?: HttpHandlerOptions,
356
+ ): Effect.Effect<
357
+ CreateDeploymentCommandOutput,
358
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
359
+ >;
360
+
361
+ /**
362
+ * @see {@link CreateDomainNameCommand}
363
+ */
364
+ createDomainName(
365
+ args: CreateDomainNameCommandInput,
366
+ options?: HttpHandlerOptions,
367
+ ): Effect.Effect<
368
+ CreateDomainNameCommandOutput,
369
+ | Cause.TimeoutException
370
+ | SdkError
371
+ | AccessDeniedError
372
+ | BadRequestError
373
+ | ConflictError
374
+ | NotFoundError
375
+ | TooManyRequestsError
376
+ >;
377
+
378
+ /**
379
+ * @see {@link CreateIntegrationCommand}
380
+ */
381
+ createIntegration(
382
+ args: CreateIntegrationCommandInput,
383
+ options?: HttpHandlerOptions,
384
+ ): Effect.Effect<
385
+ CreateIntegrationCommandOutput,
386
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
387
+ >;
388
+
389
+ /**
390
+ * @see {@link CreateIntegrationResponseCommand}
391
+ */
392
+ createIntegrationResponse(
393
+ args: CreateIntegrationResponseCommandInput,
394
+ options?: HttpHandlerOptions,
395
+ ): Effect.Effect<
396
+ CreateIntegrationResponseCommandOutput,
397
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
398
+ >;
399
+
400
+ /**
401
+ * @see {@link CreateModelCommand}
402
+ */
403
+ createModel(
404
+ args: CreateModelCommandInput,
405
+ options?: HttpHandlerOptions,
406
+ ): Effect.Effect<
407
+ CreateModelCommandOutput,
408
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
409
+ >;
410
+
411
+ /**
412
+ * @see {@link CreateRouteCommand}
413
+ */
414
+ createRoute(
415
+ args: CreateRouteCommandInput,
416
+ options?: HttpHandlerOptions,
417
+ ): Effect.Effect<
418
+ CreateRouteCommandOutput,
419
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
420
+ >;
421
+
422
+ /**
423
+ * @see {@link CreateRouteResponseCommand}
424
+ */
425
+ createRouteResponse(
426
+ args: CreateRouteResponseCommandInput,
427
+ options?: HttpHandlerOptions,
428
+ ): Effect.Effect<
429
+ CreateRouteResponseCommandOutput,
430
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
431
+ >;
432
+
433
+ /**
434
+ * @see {@link CreateStageCommand}
435
+ */
436
+ createStage(
437
+ args: CreateStageCommandInput,
438
+ options?: HttpHandlerOptions,
439
+ ): Effect.Effect<
440
+ CreateStageCommandOutput,
441
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
442
+ >;
443
+
444
+ /**
445
+ * @see {@link CreateVpcLinkCommand}
446
+ */
447
+ createVpcLink(
448
+ args: CreateVpcLinkCommandInput,
449
+ options?: HttpHandlerOptions,
450
+ ): Effect.Effect<
451
+ CreateVpcLinkCommandOutput,
452
+ Cause.TimeoutException | SdkError | BadRequestError | TooManyRequestsError
453
+ >;
454
+
455
+ /**
456
+ * @see {@link DeleteAccessLogSettingsCommand}
457
+ */
458
+ deleteAccessLogSettings(
459
+ args: DeleteAccessLogSettingsCommandInput,
460
+ options?: HttpHandlerOptions,
461
+ ): Effect.Effect<
462
+ DeleteAccessLogSettingsCommandOutput,
463
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
464
+ >;
465
+
466
+ /**
467
+ * @see {@link DeleteApiCommand}
468
+ */
469
+ deleteApi(
470
+ args: DeleteApiCommandInput,
471
+ options?: HttpHandlerOptions,
472
+ ): Effect.Effect<
473
+ DeleteApiCommandOutput,
474
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
475
+ >;
476
+
477
+ /**
478
+ * @see {@link DeleteApiMappingCommand}
479
+ */
480
+ deleteApiMapping(
481
+ args: DeleteApiMappingCommandInput,
482
+ options?: HttpHandlerOptions,
483
+ ): Effect.Effect<
484
+ DeleteApiMappingCommandOutput,
485
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
486
+ >;
487
+
488
+ /**
489
+ * @see {@link DeleteAuthorizerCommand}
490
+ */
491
+ deleteAuthorizer(
492
+ args: DeleteAuthorizerCommandInput,
493
+ options?: HttpHandlerOptions,
494
+ ): Effect.Effect<
495
+ DeleteAuthorizerCommandOutput,
496
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
497
+ >;
498
+
499
+ /**
500
+ * @see {@link DeleteCorsConfigurationCommand}
501
+ */
502
+ deleteCorsConfiguration(
503
+ args: DeleteCorsConfigurationCommandInput,
504
+ options?: HttpHandlerOptions,
505
+ ): Effect.Effect<
506
+ DeleteCorsConfigurationCommandOutput,
507
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
508
+ >;
509
+
510
+ /**
511
+ * @see {@link DeleteDeploymentCommand}
512
+ */
513
+ deleteDeployment(
514
+ args: DeleteDeploymentCommandInput,
515
+ options?: HttpHandlerOptions,
516
+ ): Effect.Effect<
517
+ DeleteDeploymentCommandOutput,
518
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
519
+ >;
520
+
521
+ /**
522
+ * @see {@link DeleteDomainNameCommand}
523
+ */
524
+ deleteDomainName(
525
+ args: DeleteDomainNameCommandInput,
526
+ options?: HttpHandlerOptions,
527
+ ): Effect.Effect<
528
+ DeleteDomainNameCommandOutput,
529
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
530
+ >;
531
+
532
+ /**
533
+ * @see {@link DeleteIntegrationCommand}
534
+ */
535
+ deleteIntegration(
536
+ args: DeleteIntegrationCommandInput,
537
+ options?: HttpHandlerOptions,
538
+ ): Effect.Effect<
539
+ DeleteIntegrationCommandOutput,
540
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
541
+ >;
542
+
543
+ /**
544
+ * @see {@link DeleteIntegrationResponseCommand}
545
+ */
546
+ deleteIntegrationResponse(
547
+ args: DeleteIntegrationResponseCommandInput,
548
+ options?: HttpHandlerOptions,
549
+ ): Effect.Effect<
550
+ DeleteIntegrationResponseCommandOutput,
551
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
552
+ >;
553
+
554
+ /**
555
+ * @see {@link DeleteModelCommand}
556
+ */
557
+ deleteModel(
558
+ args: DeleteModelCommandInput,
559
+ options?: HttpHandlerOptions,
560
+ ): Effect.Effect<
561
+ DeleteModelCommandOutput,
562
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
563
+ >;
564
+
565
+ /**
566
+ * @see {@link DeleteRouteCommand}
567
+ */
568
+ deleteRoute(
569
+ args: DeleteRouteCommandInput,
570
+ options?: HttpHandlerOptions,
571
+ ): Effect.Effect<
572
+ DeleteRouteCommandOutput,
573
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
574
+ >;
575
+
576
+ /**
577
+ * @see {@link DeleteRouteRequestParameterCommand}
578
+ */
579
+ deleteRouteRequestParameter(
580
+ args: DeleteRouteRequestParameterCommandInput,
581
+ options?: HttpHandlerOptions,
582
+ ): Effect.Effect<
583
+ DeleteRouteRequestParameterCommandOutput,
584
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
585
+ >;
586
+
587
+ /**
588
+ * @see {@link DeleteRouteResponseCommand}
589
+ */
590
+ deleteRouteResponse(
591
+ args: DeleteRouteResponseCommandInput,
592
+ options?: HttpHandlerOptions,
593
+ ): Effect.Effect<
594
+ DeleteRouteResponseCommandOutput,
595
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
596
+ >;
597
+
598
+ /**
599
+ * @see {@link DeleteRouteSettingsCommand}
600
+ */
601
+ deleteRouteSettings(
602
+ args: DeleteRouteSettingsCommandInput,
603
+ options?: HttpHandlerOptions,
604
+ ): Effect.Effect<
605
+ DeleteRouteSettingsCommandOutput,
606
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
607
+ >;
608
+
609
+ /**
610
+ * @see {@link DeleteStageCommand}
611
+ */
612
+ deleteStage(
613
+ args: DeleteStageCommandInput,
614
+ options?: HttpHandlerOptions,
615
+ ): Effect.Effect<
616
+ DeleteStageCommandOutput,
617
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
618
+ >;
619
+
620
+ /**
621
+ * @see {@link DeleteVpcLinkCommand}
622
+ */
623
+ deleteVpcLink(
624
+ args: DeleteVpcLinkCommandInput,
625
+ options?: HttpHandlerOptions,
626
+ ): Effect.Effect<
627
+ DeleteVpcLinkCommandOutput,
628
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
629
+ >;
630
+
631
+ /**
632
+ * @see {@link ExportApiCommand}
633
+ */
634
+ exportApi(
635
+ args: ExportApiCommandInput,
636
+ options?: HttpHandlerOptions,
637
+ ): Effect.Effect<
638
+ ExportApiCommandOutput,
639
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
640
+ >;
641
+
642
+ /**
643
+ * @see {@link GetApiCommand}
644
+ */
645
+ getApi(
646
+ args: GetApiCommandInput,
647
+ options?: HttpHandlerOptions,
648
+ ): Effect.Effect<
649
+ GetApiCommandOutput,
650
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
651
+ >;
652
+
653
+ /**
654
+ * @see {@link GetApiMappingCommand}
655
+ */
656
+ getApiMapping(
657
+ args: GetApiMappingCommandInput,
658
+ options?: HttpHandlerOptions,
659
+ ): Effect.Effect<
660
+ GetApiMappingCommandOutput,
661
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
662
+ >;
663
+
664
+ /**
665
+ * @see {@link GetApiMappingsCommand}
666
+ */
667
+ getApiMappings(
668
+ args: GetApiMappingsCommandInput,
669
+ options?: HttpHandlerOptions,
670
+ ): Effect.Effect<
671
+ GetApiMappingsCommandOutput,
672
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
673
+ >;
674
+
675
+ /**
676
+ * @see {@link GetApisCommand}
677
+ */
678
+ getApis(
679
+ args: GetApisCommandInput,
680
+ options?: HttpHandlerOptions,
681
+ ): Effect.Effect<
682
+ GetApisCommandOutput,
683
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
684
+ >;
685
+
686
+ /**
687
+ * @see {@link GetAuthorizerCommand}
688
+ */
689
+ getAuthorizer(
690
+ args: GetAuthorizerCommandInput,
691
+ options?: HttpHandlerOptions,
692
+ ): Effect.Effect<
693
+ GetAuthorizerCommandOutput,
694
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
695
+ >;
696
+
697
+ /**
698
+ * @see {@link GetAuthorizersCommand}
699
+ */
700
+ getAuthorizers(
701
+ args: GetAuthorizersCommandInput,
702
+ options?: HttpHandlerOptions,
703
+ ): Effect.Effect<
704
+ GetAuthorizersCommandOutput,
705
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
706
+ >;
707
+
708
+ /**
709
+ * @see {@link GetDeploymentCommand}
710
+ */
711
+ getDeployment(
712
+ args: GetDeploymentCommandInput,
713
+ options?: HttpHandlerOptions,
714
+ ): Effect.Effect<
715
+ GetDeploymentCommandOutput,
716
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
717
+ >;
718
+
719
+ /**
720
+ * @see {@link GetDeploymentsCommand}
721
+ */
722
+ getDeployments(
723
+ args: GetDeploymentsCommandInput,
724
+ options?: HttpHandlerOptions,
725
+ ): Effect.Effect<
726
+ GetDeploymentsCommandOutput,
727
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
728
+ >;
729
+
730
+ /**
731
+ * @see {@link GetDomainNameCommand}
732
+ */
733
+ getDomainName(
734
+ args: GetDomainNameCommandInput,
735
+ options?: HttpHandlerOptions,
736
+ ): Effect.Effect<
737
+ GetDomainNameCommandOutput,
738
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
739
+ >;
740
+
741
+ /**
742
+ * @see {@link GetDomainNamesCommand}
743
+ */
744
+ getDomainNames(
745
+ args: GetDomainNamesCommandInput,
746
+ options?: HttpHandlerOptions,
747
+ ): Effect.Effect<
748
+ GetDomainNamesCommandOutput,
749
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
750
+ >;
751
+
752
+ /**
753
+ * @see {@link GetIntegrationCommand}
754
+ */
755
+ getIntegration(
756
+ args: GetIntegrationCommandInput,
757
+ options?: HttpHandlerOptions,
758
+ ): Effect.Effect<
759
+ GetIntegrationCommandOutput,
760
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
761
+ >;
762
+
763
+ /**
764
+ * @see {@link GetIntegrationResponseCommand}
765
+ */
766
+ getIntegrationResponse(
767
+ args: GetIntegrationResponseCommandInput,
768
+ options?: HttpHandlerOptions,
769
+ ): Effect.Effect<
770
+ GetIntegrationResponseCommandOutput,
771
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
772
+ >;
773
+
774
+ /**
775
+ * @see {@link GetIntegrationResponsesCommand}
776
+ */
777
+ getIntegrationResponses(
778
+ args: GetIntegrationResponsesCommandInput,
779
+ options?: HttpHandlerOptions,
780
+ ): Effect.Effect<
781
+ GetIntegrationResponsesCommandOutput,
782
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
783
+ >;
784
+
785
+ /**
786
+ * @see {@link GetIntegrationsCommand}
787
+ */
788
+ getIntegrations(
789
+ args: GetIntegrationsCommandInput,
790
+ options?: HttpHandlerOptions,
791
+ ): Effect.Effect<
792
+ GetIntegrationsCommandOutput,
793
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
794
+ >;
795
+
796
+ /**
797
+ * @see {@link GetModelCommand}
798
+ */
799
+ getModel(
800
+ args: GetModelCommandInput,
801
+ options?: HttpHandlerOptions,
802
+ ): Effect.Effect<
803
+ GetModelCommandOutput,
804
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
805
+ >;
806
+
807
+ /**
808
+ * @see {@link GetModelTemplateCommand}
809
+ */
810
+ getModelTemplate(
811
+ args: GetModelTemplateCommandInput,
812
+ options?: HttpHandlerOptions,
813
+ ): Effect.Effect<
814
+ GetModelTemplateCommandOutput,
815
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
816
+ >;
817
+
818
+ /**
819
+ * @see {@link GetModelsCommand}
820
+ */
821
+ getModels(
822
+ args: GetModelsCommandInput,
823
+ options?: HttpHandlerOptions,
824
+ ): Effect.Effect<
825
+ GetModelsCommandOutput,
826
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
827
+ >;
828
+
829
+ /**
830
+ * @see {@link GetRouteCommand}
831
+ */
832
+ getRoute(
833
+ args: GetRouteCommandInput,
834
+ options?: HttpHandlerOptions,
835
+ ): Effect.Effect<
836
+ GetRouteCommandOutput,
837
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
838
+ >;
839
+
840
+ /**
841
+ * @see {@link GetRouteResponseCommand}
842
+ */
843
+ getRouteResponse(
844
+ args: GetRouteResponseCommandInput,
845
+ options?: HttpHandlerOptions,
846
+ ): Effect.Effect<
847
+ GetRouteResponseCommandOutput,
848
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
849
+ >;
850
+
851
+ /**
852
+ * @see {@link GetRouteResponsesCommand}
853
+ */
854
+ getRouteResponses(
855
+ args: GetRouteResponsesCommandInput,
856
+ options?: HttpHandlerOptions,
857
+ ): Effect.Effect<
858
+ GetRouteResponsesCommandOutput,
859
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
860
+ >;
861
+
862
+ /**
863
+ * @see {@link GetRoutesCommand}
864
+ */
865
+ getRoutes(
866
+ args: GetRoutesCommandInput,
867
+ options?: HttpHandlerOptions,
868
+ ): Effect.Effect<
869
+ GetRoutesCommandOutput,
870
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
871
+ >;
872
+
873
+ /**
874
+ * @see {@link GetStageCommand}
875
+ */
876
+ getStage(
877
+ args: GetStageCommandInput,
878
+ options?: HttpHandlerOptions,
879
+ ): Effect.Effect<
880
+ GetStageCommandOutput,
881
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
882
+ >;
883
+
884
+ /**
885
+ * @see {@link GetStagesCommand}
886
+ */
887
+ getStages(
888
+ args: GetStagesCommandInput,
889
+ options?: HttpHandlerOptions,
890
+ ): Effect.Effect<
891
+ GetStagesCommandOutput,
892
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
893
+ >;
894
+
895
+ /**
896
+ * @see {@link GetTagsCommand}
897
+ */
898
+ getTags(
899
+ args: GetTagsCommandInput,
900
+ options?: HttpHandlerOptions,
901
+ ): Effect.Effect<
902
+ GetTagsCommandOutput,
903
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
904
+ >;
905
+
906
+ /**
907
+ * @see {@link GetVpcLinkCommand}
908
+ */
909
+ getVpcLink(
910
+ args: GetVpcLinkCommandInput,
911
+ options?: HttpHandlerOptions,
912
+ ): Effect.Effect<
913
+ GetVpcLinkCommandOutput,
914
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
915
+ >;
916
+
917
+ /**
918
+ * @see {@link GetVpcLinksCommand}
919
+ */
920
+ getVpcLinks(
921
+ args: GetVpcLinksCommandInput,
922
+ options?: HttpHandlerOptions,
923
+ ): Effect.Effect<
924
+ GetVpcLinksCommandOutput,
925
+ Cause.TimeoutException | SdkError | BadRequestError | TooManyRequestsError
926
+ >;
927
+
928
+ /**
929
+ * @see {@link ImportApiCommand}
930
+ */
931
+ importApi(
932
+ args: ImportApiCommandInput,
933
+ options?: HttpHandlerOptions,
934
+ ): Effect.Effect<
935
+ ImportApiCommandOutput,
936
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
937
+ >;
938
+
939
+ /**
940
+ * @see {@link ReimportApiCommand}
941
+ */
942
+ reimportApi(
943
+ args: ReimportApiCommandInput,
944
+ options?: HttpHandlerOptions,
945
+ ): Effect.Effect<
946
+ ReimportApiCommandOutput,
947
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
948
+ >;
949
+
950
+ /**
951
+ * @see {@link ResetAuthorizersCacheCommand}
952
+ */
953
+ resetAuthorizersCache(
954
+ args: ResetAuthorizersCacheCommandInput,
955
+ options?: HttpHandlerOptions,
956
+ ): Effect.Effect<
957
+ ResetAuthorizersCacheCommandOutput,
958
+ Cause.TimeoutException | SdkError | NotFoundError | TooManyRequestsError
959
+ >;
960
+
961
+ /**
962
+ * @see {@link TagResourceCommand}
963
+ */
964
+ tagResource(
965
+ args: TagResourceCommandInput,
966
+ options?: HttpHandlerOptions,
967
+ ): Effect.Effect<
968
+ TagResourceCommandOutput,
969
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
970
+ >;
971
+
972
+ /**
973
+ * @see {@link UntagResourceCommand}
974
+ */
975
+ untagResource(
976
+ args: UntagResourceCommandInput,
977
+ options?: HttpHandlerOptions,
978
+ ): Effect.Effect<
979
+ UntagResourceCommandOutput,
980
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
981
+ >;
982
+
983
+ /**
984
+ * @see {@link UpdateApiCommand}
985
+ */
986
+ updateApi(
987
+ args: UpdateApiCommandInput,
988
+ options?: HttpHandlerOptions,
989
+ ): Effect.Effect<
990
+ UpdateApiCommandOutput,
991
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
992
+ >;
993
+
994
+ /**
995
+ * @see {@link UpdateApiMappingCommand}
996
+ */
997
+ updateApiMapping(
998
+ args: UpdateApiMappingCommandInput,
999
+ options?: HttpHandlerOptions,
1000
+ ): Effect.Effect<
1001
+ UpdateApiMappingCommandOutput,
1002
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1003
+ >;
1004
+
1005
+ /**
1006
+ * @see {@link UpdateAuthorizerCommand}
1007
+ */
1008
+ updateAuthorizer(
1009
+ args: UpdateAuthorizerCommandInput,
1010
+ options?: HttpHandlerOptions,
1011
+ ): Effect.Effect<
1012
+ UpdateAuthorizerCommandOutput,
1013
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1014
+ >;
1015
+
1016
+ /**
1017
+ * @see {@link UpdateDeploymentCommand}
1018
+ */
1019
+ updateDeployment(
1020
+ args: UpdateDeploymentCommandInput,
1021
+ options?: HttpHandlerOptions,
1022
+ ): Effect.Effect<
1023
+ UpdateDeploymentCommandOutput,
1024
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1025
+ >;
1026
+
1027
+ /**
1028
+ * @see {@link UpdateDomainNameCommand}
1029
+ */
1030
+ updateDomainName(
1031
+ args: UpdateDomainNameCommandInput,
1032
+ options?: HttpHandlerOptions,
1033
+ ): Effect.Effect<
1034
+ UpdateDomainNameCommandOutput,
1035
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1036
+ >;
1037
+
1038
+ /**
1039
+ * @see {@link UpdateIntegrationCommand}
1040
+ */
1041
+ updateIntegration(
1042
+ args: UpdateIntegrationCommandInput,
1043
+ options?: HttpHandlerOptions,
1044
+ ): Effect.Effect<
1045
+ UpdateIntegrationCommandOutput,
1046
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1047
+ >;
1048
+
1049
+ /**
1050
+ * @see {@link UpdateIntegrationResponseCommand}
1051
+ */
1052
+ updateIntegrationResponse(
1053
+ args: UpdateIntegrationResponseCommandInput,
1054
+ options?: HttpHandlerOptions,
1055
+ ): Effect.Effect<
1056
+ UpdateIntegrationResponseCommandOutput,
1057
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1058
+ >;
1059
+
1060
+ /**
1061
+ * @see {@link UpdateModelCommand}
1062
+ */
1063
+ updateModel(
1064
+ args: UpdateModelCommandInput,
1065
+ options?: HttpHandlerOptions,
1066
+ ): Effect.Effect<
1067
+ UpdateModelCommandOutput,
1068
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1069
+ >;
1070
+
1071
+ /**
1072
+ * @see {@link UpdateRouteCommand}
1073
+ */
1074
+ updateRoute(
1075
+ args: UpdateRouteCommandInput,
1076
+ options?: HttpHandlerOptions,
1077
+ ): Effect.Effect<
1078
+ UpdateRouteCommandOutput,
1079
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1080
+ >;
1081
+
1082
+ /**
1083
+ * @see {@link UpdateRouteResponseCommand}
1084
+ */
1085
+ updateRouteResponse(
1086
+ args: UpdateRouteResponseCommandInput,
1087
+ options?: HttpHandlerOptions,
1088
+ ): Effect.Effect<
1089
+ UpdateRouteResponseCommandOutput,
1090
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1091
+ >;
1092
+
1093
+ /**
1094
+ * @see {@link UpdateStageCommand}
1095
+ */
1096
+ updateStage(
1097
+ args: UpdateStageCommandInput,
1098
+ options?: HttpHandlerOptions,
1099
+ ): Effect.Effect<
1100
+ UpdateStageCommandOutput,
1101
+ Cause.TimeoutException | SdkError | BadRequestError | ConflictError | NotFoundError | TooManyRequestsError
1102
+ >;
1103
+
1104
+ /**
1105
+ * @see {@link UpdateVpcLinkCommand}
1106
+ */
1107
+ updateVpcLink(
1108
+ args: UpdateVpcLinkCommandInput,
1109
+ options?: HttpHandlerOptions,
1110
+ ): Effect.Effect<
1111
+ UpdateVpcLinkCommandOutput,
1112
+ Cause.TimeoutException | SdkError | BadRequestError | NotFoundError | TooManyRequestsError
1113
+ >;
1114
+ }
1115
+
1116
+ /**
1117
+ * @since 1.0.0
1118
+ * @category constructors
1119
+ */
1120
+ export const makeApiGatewayV2Service = Effect.gen(function*() {
1121
+ const client = yield* Instance.ApiGatewayV2ClientInstance;
1122
+
1123
+ return yield* Service.fromClientAndCommands<ApiGatewayV2Service$>(
1124
+ client,
1125
+ commands,
1126
+ {
1127
+ errorTags: AllServiceErrors,
1128
+ resolveClientConfig: ApiGatewayV2ServiceConfig.toApiGatewayV2ClientConfig,
1129
+ },
1130
+ );
1131
+ });
1132
+
1133
+ /**
1134
+ * @since 1.0.0
1135
+ * @category models
1136
+ */
1137
+ export class ApiGatewayV2Service extends Effect.Tag("@effect-aws/client-api-gateway-v2/ApiGatewayV2Service")<
1138
+ ApiGatewayV2Service,
1139
+ ApiGatewayV2Service$
1140
+ >() {
1141
+ static readonly defaultLayer = Layer.effect(this, makeApiGatewayV2Service).pipe(Layer.provide(Instance.layer));
1142
+ static readonly layer = (config: ApiGatewayV2Service.Config) =>
1143
+ Layer.effect(this, makeApiGatewayV2Service).pipe(
1144
+ Layer.provide(Instance.layer),
1145
+ Layer.provide(ApiGatewayV2ServiceConfig.setApiGatewayV2ServiceConfig(config)),
1146
+ );
1147
+ static readonly baseLayer = (
1148
+ evaluate: (defaultConfig: ApiGatewayV2ClientConfig) => ApiGatewayV2Client,
1149
+ ) =>
1150
+ Layer.effect(this, makeApiGatewayV2Service).pipe(
1151
+ Layer.provide(
1152
+ Layer.effect(
1153
+ Instance.ApiGatewayV2ClientInstance,
1154
+ Effect.map(ApiGatewayV2ServiceConfig.toApiGatewayV2ClientConfig, evaluate),
1155
+ ),
1156
+ ),
1157
+ );
1158
+ }
1159
+
1160
+ /**
1161
+ * @since 1.0.0
1162
+ */
1163
+ export declare namespace ApiGatewayV2Service {
1164
+ /**
1165
+ * @since 1.0.0
1166
+ */
1167
+ export interface Config extends Omit<ApiGatewayV2ClientConfig, "logger"> {
1168
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
1169
+ }
1170
+ }