@effect-aws/client-opensearch-serverless 1.10.9 → 2.0.0-beta.1

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 (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/OpenSearchServerlessClientInstance.d.ts +4 -2
  4. package/dist/dts/OpenSearchServerlessClientInstance.d.ts.map +1 -1
  5. package/dist/dts/OpenSearchServerlessService.d.ts +67 -47
  6. package/dist/dts/OpenSearchServerlessService.d.ts.map +1 -1
  7. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts +2 -1
  8. package/dist/dts/OpenSearchServerlessServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/OpenSearchServerlessClientInstance.js +5 -3
  10. package/dist/esm/OpenSearchServerlessClientInstance.js.map +1 -1
  11. package/dist/esm/OpenSearchServerlessService.js +10 -3
  12. package/dist/esm/OpenSearchServerlessService.js.map +1 -1
  13. package/dist/esm/OpenSearchServerlessServiceConfig.js +7 -6
  14. package/dist/esm/OpenSearchServerlessServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/OpenSearchServerlessClientInstance.ts +9 -5
  17. package/src/OpenSearchServerlessService.ts +124 -74
  18. package/src/OpenSearchServerlessServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -13
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -12
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts +0 -24
  24. package/dist/cjs/OpenSearchServerlessClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/OpenSearchServerlessClientInstance.js +0 -50
  26. package/dist/cjs/OpenSearchServerlessClientInstance.js.map +0 -1
  27. package/dist/cjs/OpenSearchServerlessService.d.ts +0 -210
  28. package/dist/cjs/OpenSearchServerlessService.d.ts.map +0 -1
  29. package/dist/cjs/OpenSearchServerlessService.js +0 -100
  30. package/dist/cjs/OpenSearchServerlessService.js.map +0 -1
  31. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts +0 -25
  32. package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/OpenSearchServerlessServiceConfig.js +0 -35
  34. package/dist/cjs/OpenSearchServerlessServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-aws/client-opensearch-serverless",
3
- "version": "1.10.9",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Effectful AWS OpenSearch Serverless client",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,40 +16,34 @@
16
16
  "homepage": "https://floydspace.github.io/effect-aws/docs/client-opensearch-serverless",
17
17
  "dependencies": {
18
18
  "@aws-sdk/client-opensearchserverless": "^3",
19
- "@effect-aws/commons": "^0.3.1"
19
+ "@effect-aws/commons": "^1.0.0-beta.1"
20
20
  },
21
21
  "peerDependencies": {
22
- "effect": ">=3.0.4 <4.0.0"
22
+ "effect": ">=4.0.0 <5.0.0"
23
23
  },
24
- "main": "./dist/cjs/index.js",
25
24
  "module": "./dist/esm/index.js",
26
25
  "types": "./dist/dts/index.d.ts",
27
26
  "exports": {
28
27
  "./package.json": "./package.json",
29
28
  ".": {
30
29
  "types": "./dist/dts/index.d.ts",
31
- "import": "./dist/esm/index.js",
32
- "default": "./dist/cjs/index.js"
30
+ "import": "./dist/esm/index.js"
33
31
  },
34
32
  "./Errors": {
35
33
  "types": "./dist/dts/Errors.d.ts",
36
- "import": "./dist/esm/Errors.js",
37
- "default": "./dist/cjs/Errors.js"
34
+ "import": "./dist/esm/Errors.js"
38
35
  },
39
36
  "./OpenSearchServerlessClientInstance": {
40
37
  "types": "./dist/dts/OpenSearchServerlessClientInstance.d.ts",
41
- "import": "./dist/esm/OpenSearchServerlessClientInstance.js",
42
- "default": "./dist/cjs/OpenSearchServerlessClientInstance.js"
38
+ "import": "./dist/esm/OpenSearchServerlessClientInstance.js"
43
39
  },
44
40
  "./OpenSearchServerlessService": {
45
41
  "types": "./dist/dts/OpenSearchServerlessService.d.ts",
46
- "import": "./dist/esm/OpenSearchServerlessService.js",
47
- "default": "./dist/cjs/OpenSearchServerlessService.js"
42
+ "import": "./dist/esm/OpenSearchServerlessService.js"
48
43
  },
49
44
  "./OpenSearchServerlessServiceConfig": {
50
45
  "types": "./dist/dts/OpenSearchServerlessServiceConfig.d.ts",
51
- "import": "./dist/esm/OpenSearchServerlessServiceConfig.js",
52
- "default": "./dist/cjs/OpenSearchServerlessServiceConfig.js"
46
+ "import": "./dist/esm/OpenSearchServerlessServiceConfig.js"
53
47
  }
54
48
  },
55
49
  "typesVersions": {
@@ -2,16 +2,20 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
5
- import { Context, Effect, Layer } from "effect";
5
+ import * as Effect from "effect/Effect";
6
+ import * as Layer from "effect/Layer";
7
+ import * as ServiceMap from "effect/ServiceMap";
6
8
  import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
7
9
 
8
10
  /**
9
11
  * @since 1.0.0
10
12
  * @category tags
11
13
  */
12
- export class OpenSearchServerlessClientInstance extends Context.Tag(
13
- "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance",
14
- )<OpenSearchServerlessClientInstance, OpenSearchServerlessClient>() {}
14
+ export class OpenSearchServerlessClientInstance
15
+ extends ServiceMap.Service<OpenSearchServerlessClientInstance, OpenSearchServerlessClient>()(
16
+ "@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance",
17
+ )
18
+ {}
15
19
 
16
20
  /**
17
21
  * @since 1.0.0
@@ -30,4 +34,4 @@ export const make = Effect.flatMap(
30
34
  * @since 1.0.0
31
35
  * @category layers
32
36
  */
33
- export const layer = Layer.scoped(OpenSearchServerlessClientInstance, make);
37
+ export const layer = Layer.effect(OpenSearchServerlessClientInstance, make);
@@ -5,6 +5,9 @@ import {
5
5
  BatchGetCollectionCommand,
6
6
  type BatchGetCollectionCommandInput,
7
7
  type BatchGetCollectionCommandOutput,
8
+ BatchGetCollectionGroupCommand,
9
+ type BatchGetCollectionGroupCommandInput,
10
+ type BatchGetCollectionGroupCommandOutput,
8
11
  BatchGetEffectiveLifecyclePolicyCommand,
9
12
  type BatchGetEffectiveLifecyclePolicyCommandInput,
10
13
  type BatchGetEffectiveLifecyclePolicyCommandOutput,
@@ -20,6 +23,9 @@ import {
20
23
  CreateCollectionCommand,
21
24
  type CreateCollectionCommandInput,
22
25
  type CreateCollectionCommandOutput,
26
+ CreateCollectionGroupCommand,
27
+ type CreateCollectionGroupCommandInput,
28
+ type CreateCollectionGroupCommandOutput,
23
29
  CreateIndexCommand,
24
30
  type CreateIndexCommandInput,
25
31
  type CreateIndexCommandOutput,
@@ -41,6 +47,9 @@ import {
41
47
  DeleteCollectionCommand,
42
48
  type DeleteCollectionCommandInput,
43
49
  type DeleteCollectionCommandOutput,
50
+ DeleteCollectionGroupCommand,
51
+ type DeleteCollectionGroupCommandInput,
52
+ type DeleteCollectionGroupCommandOutput,
44
53
  DeleteIndexCommand,
45
54
  type DeleteIndexCommandInput,
46
55
  type DeleteIndexCommandOutput,
@@ -77,6 +86,9 @@ import {
77
86
  ListAccessPoliciesCommand,
78
87
  type ListAccessPoliciesCommandInput,
79
88
  type ListAccessPoliciesCommandOutput,
89
+ ListCollectionGroupsCommand,
90
+ type ListCollectionGroupsCommandInput,
91
+ type ListCollectionGroupsCommandOutput,
80
92
  ListCollectionsCommand,
81
93
  type ListCollectionsCommandInput,
82
94
  type ListCollectionsCommandOutput,
@@ -112,6 +124,9 @@ import {
112
124
  UpdateCollectionCommand,
113
125
  type UpdateCollectionCommandInput,
114
126
  type UpdateCollectionCommandOutput,
127
+ UpdateCollectionGroupCommand,
128
+ type UpdateCollectionGroupCommandInput,
129
+ type UpdateCollectionGroupCommandOutput,
115
130
  UpdateIndexCommand,
116
131
  type UpdateIndexCommandInput,
117
132
  type UpdateIndexCommandOutput,
@@ -130,8 +145,10 @@ import {
130
145
  } from "@aws-sdk/client-opensearchserverless";
131
146
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
132
147
  import { Service } from "@effect-aws/commons";
133
- import type { Cause } from "effect";
134
- import { Effect, Layer } from "effect";
148
+ import type * as Cause from "effect/Cause";
149
+ import * as Effect from "effect/Effect";
150
+ import * as Layer from "effect/Layer";
151
+ import * as ServiceMap from "effect/ServiceMap";
135
152
  import type {
136
153
  ConflictError,
137
154
  InternalServerError,
@@ -147,11 +164,13 @@ import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServic
147
164
 
148
165
  const commands = {
149
166
  BatchGetCollectionCommand,
167
+ BatchGetCollectionGroupCommand,
150
168
  BatchGetEffectiveLifecyclePolicyCommand,
151
169
  BatchGetLifecyclePolicyCommand,
152
170
  BatchGetVpcEndpointCommand,
153
171
  CreateAccessPolicyCommand,
154
172
  CreateCollectionCommand,
173
+ CreateCollectionGroupCommand,
155
174
  CreateIndexCommand,
156
175
  CreateLifecyclePolicyCommand,
157
176
  CreateSecurityConfigCommand,
@@ -159,6 +178,7 @@ const commands = {
159
178
  CreateVpcEndpointCommand,
160
179
  DeleteAccessPolicyCommand,
161
180
  DeleteCollectionCommand,
181
+ DeleteCollectionGroupCommand,
162
182
  DeleteIndexCommand,
163
183
  DeleteLifecyclePolicyCommand,
164
184
  DeleteSecurityConfigCommand,
@@ -171,6 +191,7 @@ const commands = {
171
191
  GetSecurityConfigCommand,
172
192
  GetSecurityPolicyCommand,
173
193
  ListAccessPoliciesCommand,
194
+ ListCollectionGroupsCommand,
174
195
  ListCollectionsCommand,
175
196
  ListLifecyclePoliciesCommand,
176
197
  ListSecurityConfigsCommand,
@@ -182,6 +203,7 @@ const commands = {
182
203
  UpdateAccessPolicyCommand,
183
204
  UpdateAccountSettingsCommand,
184
205
  UpdateCollectionCommand,
206
+ UpdateCollectionGroupCommand,
185
207
  UpdateIndexCommand,
186
208
  UpdateLifecyclePolicyCommand,
187
209
  UpdateSecurityConfigCommand,
@@ -200,7 +222,18 @@ interface OpenSearchServerlessService$ {
200
222
  options?: HttpHandlerOptions,
201
223
  ): Effect.Effect<
202
224
  BatchGetCollectionCommandOutput,
203
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
225
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
226
+ >;
227
+
228
+ /**
229
+ * @see {@link BatchGetCollectionGroupCommand}
230
+ */
231
+ batchGetCollectionGroup(
232
+ args: BatchGetCollectionGroupCommandInput,
233
+ options?: HttpHandlerOptions,
234
+ ): Effect.Effect<
235
+ BatchGetCollectionGroupCommandOutput,
236
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
204
237
  >;
205
238
 
206
239
  /**
@@ -211,7 +244,7 @@ interface OpenSearchServerlessService$ {
211
244
  options?: HttpHandlerOptions,
212
245
  ): Effect.Effect<
213
246
  BatchGetEffectiveLifecyclePolicyCommandOutput,
214
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
247
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
215
248
  >;
216
249
 
217
250
  /**
@@ -222,7 +255,7 @@ interface OpenSearchServerlessService$ {
222
255
  options?: HttpHandlerOptions,
223
256
  ): Effect.Effect<
224
257
  BatchGetLifecyclePolicyCommandOutput,
225
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
258
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
226
259
  >;
227
260
 
228
261
  /**
@@ -233,7 +266,7 @@ interface OpenSearchServerlessService$ {
233
266
  options?: HttpHandlerOptions,
234
267
  ): Effect.Effect<
235
268
  BatchGetVpcEndpointCommandOutput,
236
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
269
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
237
270
  >;
238
271
 
239
272
  /**
@@ -244,12 +277,7 @@ interface OpenSearchServerlessService$ {
244
277
  options?: HttpHandlerOptions,
245
278
  ): Effect.Effect<
246
279
  CreateAccessPolicyCommandOutput,
247
- | Cause.TimeoutException
248
- | SdkError
249
- | ConflictError
250
- | InternalServerError
251
- | ServiceQuotaExceededError
252
- | ValidationError
280
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
253
281
  >;
254
282
 
255
283
  /**
@@ -260,7 +288,7 @@ interface OpenSearchServerlessService$ {
260
288
  options?: HttpHandlerOptions,
261
289
  ): Effect.Effect<
262
290
  CreateCollectionCommandOutput,
263
- | Cause.TimeoutException
291
+ | Cause.TimeoutError
264
292
  | SdkError
265
293
  | ConflictError
266
294
  | InternalServerError
@@ -269,6 +297,17 @@ interface OpenSearchServerlessService$ {
269
297
  | ValidationError
270
298
  >;
271
299
 
300
+ /**
301
+ * @see {@link CreateCollectionGroupCommand}
302
+ */
303
+ createCollectionGroup(
304
+ args: CreateCollectionGroupCommandInput,
305
+ options?: HttpHandlerOptions,
306
+ ): Effect.Effect<
307
+ CreateCollectionGroupCommandOutput,
308
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
309
+ >;
310
+
272
311
  /**
273
312
  * @see {@link CreateIndexCommand}
274
313
  */
@@ -277,7 +316,7 @@ interface OpenSearchServerlessService$ {
277
316
  options?: HttpHandlerOptions,
278
317
  ): Effect.Effect<
279
318
  CreateIndexCommandOutput,
280
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
319
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
281
320
  >;
282
321
 
283
322
  /**
@@ -288,12 +327,7 @@ interface OpenSearchServerlessService$ {
288
327
  options?: HttpHandlerOptions,
289
328
  ): Effect.Effect<
290
329
  CreateLifecyclePolicyCommandOutput,
291
- | Cause.TimeoutException
292
- | SdkError
293
- | ConflictError
294
- | InternalServerError
295
- | ServiceQuotaExceededError
296
- | ValidationError
330
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
297
331
  >;
298
332
 
299
333
  /**
@@ -304,12 +338,7 @@ interface OpenSearchServerlessService$ {
304
338
  options?: HttpHandlerOptions,
305
339
  ): Effect.Effect<
306
340
  CreateSecurityConfigCommandOutput,
307
- | Cause.TimeoutException
308
- | SdkError
309
- | ConflictError
310
- | InternalServerError
311
- | ServiceQuotaExceededError
312
- | ValidationError
341
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
313
342
  >;
314
343
 
315
344
  /**
@@ -320,12 +349,7 @@ interface OpenSearchServerlessService$ {
320
349
  options?: HttpHandlerOptions,
321
350
  ): Effect.Effect<
322
351
  CreateSecurityPolicyCommandOutput,
323
- | Cause.TimeoutException
324
- | SdkError
325
- | ConflictError
326
- | InternalServerError
327
- | ServiceQuotaExceededError
328
- | ValidationError
352
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
329
353
  >;
330
354
 
331
355
  /**
@@ -336,12 +360,7 @@ interface OpenSearchServerlessService$ {
336
360
  options?: HttpHandlerOptions,
337
361
  ): Effect.Effect<
338
362
  CreateVpcEndpointCommandOutput,
339
- | Cause.TimeoutException
340
- | SdkError
341
- | ConflictError
342
- | InternalServerError
343
- | ServiceQuotaExceededError
344
- | ValidationError
363
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
345
364
  >;
346
365
 
347
366
  /**
@@ -352,7 +371,7 @@ interface OpenSearchServerlessService$ {
352
371
  options?: HttpHandlerOptions,
353
372
  ): Effect.Effect<
354
373
  DeleteAccessPolicyCommandOutput,
355
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
374
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
356
375
  >;
357
376
 
358
377
  /**
@@ -363,7 +382,18 @@ interface OpenSearchServerlessService$ {
363
382
  options?: HttpHandlerOptions,
364
383
  ): Effect.Effect<
365
384
  DeleteCollectionCommandOutput,
366
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
385
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
386
+ >;
387
+
388
+ /**
389
+ * @see {@link DeleteCollectionGroupCommand}
390
+ */
391
+ deleteCollectionGroup(
392
+ args: DeleteCollectionGroupCommandInput,
393
+ options?: HttpHandlerOptions,
394
+ ): Effect.Effect<
395
+ DeleteCollectionGroupCommandOutput,
396
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
367
397
  >;
368
398
 
369
399
  /**
@@ -374,7 +404,7 @@ interface OpenSearchServerlessService$ {
374
404
  options?: HttpHandlerOptions,
375
405
  ): Effect.Effect<
376
406
  DeleteIndexCommandOutput,
377
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
407
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
378
408
  >;
379
409
 
380
410
  /**
@@ -385,7 +415,7 @@ interface OpenSearchServerlessService$ {
385
415
  options?: HttpHandlerOptions,
386
416
  ): Effect.Effect<
387
417
  DeleteLifecyclePolicyCommandOutput,
388
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
418
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
389
419
  >;
390
420
 
391
421
  /**
@@ -396,7 +426,7 @@ interface OpenSearchServerlessService$ {
396
426
  options?: HttpHandlerOptions,
397
427
  ): Effect.Effect<
398
428
  DeleteSecurityConfigCommandOutput,
399
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
429
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
400
430
  >;
401
431
 
402
432
  /**
@@ -407,7 +437,7 @@ interface OpenSearchServerlessService$ {
407
437
  options?: HttpHandlerOptions,
408
438
  ): Effect.Effect<
409
439
  DeleteSecurityPolicyCommandOutput,
410
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
440
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
411
441
  >;
412
442
 
413
443
  /**
@@ -418,7 +448,7 @@ interface OpenSearchServerlessService$ {
418
448
  options?: HttpHandlerOptions,
419
449
  ): Effect.Effect<
420
450
  DeleteVpcEndpointCommandOutput,
421
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
451
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
422
452
  >;
423
453
 
424
454
  /**
@@ -429,7 +459,7 @@ interface OpenSearchServerlessService$ {
429
459
  options?: HttpHandlerOptions,
430
460
  ): Effect.Effect<
431
461
  GetAccessPolicyCommandOutput,
432
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
462
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
433
463
  >;
434
464
 
435
465
  /**
@@ -440,7 +470,7 @@ interface OpenSearchServerlessService$ {
440
470
  options?: HttpHandlerOptions,
441
471
  ): Effect.Effect<
442
472
  GetAccountSettingsCommandOutput,
443
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
473
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
444
474
  >;
445
475
 
446
476
  /**
@@ -451,7 +481,7 @@ interface OpenSearchServerlessService$ {
451
481
  options?: HttpHandlerOptions,
452
482
  ): Effect.Effect<
453
483
  GetIndexCommandOutput,
454
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
484
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
455
485
  >;
456
486
 
457
487
  /**
@@ -462,7 +492,7 @@ interface OpenSearchServerlessService$ {
462
492
  options?: HttpHandlerOptions,
463
493
  ): Effect.Effect<
464
494
  GetPoliciesStatsCommandOutput,
465
- Cause.TimeoutException | SdkError | InternalServerError
495
+ Cause.TimeoutError | SdkError | InternalServerError
466
496
  >;
467
497
 
468
498
  /**
@@ -473,7 +503,7 @@ interface OpenSearchServerlessService$ {
473
503
  options?: HttpHandlerOptions,
474
504
  ): Effect.Effect<
475
505
  GetSecurityConfigCommandOutput,
476
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
506
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
477
507
  >;
478
508
 
479
509
  /**
@@ -484,7 +514,7 @@ interface OpenSearchServerlessService$ {
484
514
  options?: HttpHandlerOptions,
485
515
  ): Effect.Effect<
486
516
  GetSecurityPolicyCommandOutput,
487
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
517
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
488
518
  >;
489
519
 
490
520
  /**
@@ -495,7 +525,18 @@ interface OpenSearchServerlessService$ {
495
525
  options?: HttpHandlerOptions,
496
526
  ): Effect.Effect<
497
527
  ListAccessPoliciesCommandOutput,
498
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
528
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
529
+ >;
530
+
531
+ /**
532
+ * @see {@link ListCollectionGroupsCommand}
533
+ */
534
+ listCollectionGroups(
535
+ args: ListCollectionGroupsCommandInput,
536
+ options?: HttpHandlerOptions,
537
+ ): Effect.Effect<
538
+ ListCollectionGroupsCommandOutput,
539
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
499
540
  >;
500
541
 
501
542
  /**
@@ -506,7 +547,7 @@ interface OpenSearchServerlessService$ {
506
547
  options?: HttpHandlerOptions,
507
548
  ): Effect.Effect<
508
549
  ListCollectionsCommandOutput,
509
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
550
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
510
551
  >;
511
552
 
512
553
  /**
@@ -517,7 +558,7 @@ interface OpenSearchServerlessService$ {
517
558
  options?: HttpHandlerOptions,
518
559
  ): Effect.Effect<
519
560
  ListLifecyclePoliciesCommandOutput,
520
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
561
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
521
562
  >;
522
563
 
523
564
  /**
@@ -528,7 +569,7 @@ interface OpenSearchServerlessService$ {
528
569
  options?: HttpHandlerOptions,
529
570
  ): Effect.Effect<
530
571
  ListSecurityConfigsCommandOutput,
531
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
572
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
532
573
  >;
533
574
 
534
575
  /**
@@ -539,7 +580,7 @@ interface OpenSearchServerlessService$ {
539
580
  options?: HttpHandlerOptions,
540
581
  ): Effect.Effect<
541
582
  ListSecurityPoliciesCommandOutput,
542
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
583
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
543
584
  >;
544
585
 
545
586
  /**
@@ -550,7 +591,7 @@ interface OpenSearchServerlessService$ {
550
591
  options?: HttpHandlerOptions,
551
592
  ): Effect.Effect<
552
593
  ListTagsForResourceCommandOutput,
553
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
594
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
554
595
  >;
555
596
 
556
597
  /**
@@ -561,7 +602,7 @@ interface OpenSearchServerlessService$ {
561
602
  options?: HttpHandlerOptions,
562
603
  ): Effect.Effect<
563
604
  ListVpcEndpointsCommandOutput,
564
- Cause.TimeoutException | SdkError | InternalServerError | ValidationError
605
+ Cause.TimeoutError | SdkError | InternalServerError | ValidationError
565
606
  >;
566
607
 
567
608
  /**
@@ -572,7 +613,7 @@ interface OpenSearchServerlessService$ {
572
613
  options?: HttpHandlerOptions,
573
614
  ): Effect.Effect<
574
615
  TagResourceCommandOutput,
575
- | Cause.TimeoutException
616
+ | Cause.TimeoutError
576
617
  | SdkError
577
618
  | ConflictError
578
619
  | InternalServerError
@@ -589,7 +630,7 @@ interface OpenSearchServerlessService$ {
589
630
  options?: HttpHandlerOptions,
590
631
  ): Effect.Effect<
591
632
  UntagResourceCommandOutput,
592
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
633
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
593
634
  >;
594
635
 
595
636
  /**
@@ -600,7 +641,7 @@ interface OpenSearchServerlessService$ {
600
641
  options?: HttpHandlerOptions,
601
642
  ): Effect.Effect<
602
643
  UpdateAccessPolicyCommandOutput,
603
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
644
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
604
645
  >;
605
646
 
606
647
  /**
@@ -611,7 +652,7 @@ interface OpenSearchServerlessService$ {
611
652
  options?: HttpHandlerOptions,
612
653
  ): Effect.Effect<
613
654
  UpdateAccountSettingsCommandOutput,
614
- Cause.TimeoutException | SdkError | InternalServerError | ServiceQuotaExceededError | ValidationError
655
+ Cause.TimeoutError | SdkError | InternalServerError | ServiceQuotaExceededError | ValidationError
615
656
  >;
616
657
 
617
658
  /**
@@ -622,7 +663,18 @@ interface OpenSearchServerlessService$ {
622
663
  options?: HttpHandlerOptions,
623
664
  ): Effect.Effect<
624
665
  UpdateCollectionCommandOutput,
625
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ValidationError
666
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ValidationError
667
+ >;
668
+
669
+ /**
670
+ * @see {@link UpdateCollectionGroupCommand}
671
+ */
672
+ updateCollectionGroup(
673
+ args: UpdateCollectionGroupCommandInput,
674
+ options?: HttpHandlerOptions,
675
+ ): Effect.Effect<
676
+ UpdateCollectionGroupCommandOutput,
677
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
626
678
  >;
627
679
 
628
680
  /**
@@ -633,7 +685,7 @@ interface OpenSearchServerlessService$ {
633
685
  options?: HttpHandlerOptions,
634
686
  ): Effect.Effect<
635
687
  UpdateIndexCommandOutput,
636
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
688
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
637
689
  >;
638
690
 
639
691
  /**
@@ -644,7 +696,7 @@ interface OpenSearchServerlessService$ {
644
696
  options?: HttpHandlerOptions,
645
697
  ): Effect.Effect<
646
698
  UpdateLifecyclePolicyCommandOutput,
647
- | Cause.TimeoutException
699
+ | Cause.TimeoutError
648
700
  | SdkError
649
701
  | ConflictError
650
702
  | InternalServerError
@@ -661,7 +713,7 @@ interface OpenSearchServerlessService$ {
661
713
  options?: HttpHandlerOptions,
662
714
  ): Effect.Effect<
663
715
  UpdateSecurityConfigCommandOutput,
664
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
716
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
665
717
  >;
666
718
 
667
719
  /**
@@ -672,7 +724,7 @@ interface OpenSearchServerlessService$ {
672
724
  options?: HttpHandlerOptions,
673
725
  ): Effect.Effect<
674
726
  UpdateSecurityPolicyCommandOutput,
675
- | Cause.TimeoutException
727
+ | Cause.TimeoutError
676
728
  | SdkError
677
729
  | ConflictError
678
730
  | InternalServerError
@@ -689,7 +741,7 @@ interface OpenSearchServerlessService$ {
689
741
  options?: HttpHandlerOptions,
690
742
  ): Effect.Effect<
691
743
  UpdateVpcEndpointCommandOutput,
692
- Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ValidationError
744
+ Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ValidationError
693
745
  >;
694
746
  }
695
747
 
@@ -714,12 +766,10 @@ export const makeOpenSearchServerlessService = Effect.gen(function*() {
714
766
  * @since 1.0.0
715
767
  * @category models
716
768
  */
717
- export class OpenSearchServerlessService
718
- extends Effect.Tag("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService")<
719
- OpenSearchServerlessService,
720
- OpenSearchServerlessService$
721
- >()
722
- {
769
+ export class OpenSearchServerlessService extends ServiceMap.Service<
770
+ OpenSearchServerlessService,
771
+ OpenSearchServerlessService$
772
+ >()("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService") {
723
773
  static readonly defaultLayer = Layer.effect(this, makeOpenSearchServerlessService).pipe(
724
774
  Layer.provide(Instance.layer),
725
775
  );