@effect-aws/client-opensearch-serverless 1.10.7 → 2.0.0-beta.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.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/OpenSearchServerlessClientInstance.d.ts +2 -2
- package/dist/dts/OpenSearchServerlessClientInstance.d.ts.map +1 -1
- package/dist/dts/OpenSearchServerlessService.d.ts +64 -46
- package/dist/dts/OpenSearchServerlessService.d.ts.map +1 -1
- package/dist/dts/OpenSearchServerlessServiceConfig.d.ts.map +1 -1
- package/dist/esm/OpenSearchServerlessClientInstance.js +3 -3
- package/dist/esm/OpenSearchServerlessClientInstance.js.map +1 -1
- package/dist/esm/OpenSearchServerlessService.js +8 -3
- package/dist/esm/OpenSearchServerlessService.js.map +1 -1
- package/dist/esm/OpenSearchServerlessServiceConfig.js +5 -6
- package/dist/esm/OpenSearchServerlessServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/OpenSearchServerlessClientInstance.ts +7 -5
- package/src/OpenSearchServerlessService.ts +121 -73
- package/src/OpenSearchServerlessServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -13
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -12
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/OpenSearchServerlessClientInstance.d.ts +0 -24
- package/dist/cjs/OpenSearchServerlessClientInstance.d.ts.map +0 -1
- package/dist/cjs/OpenSearchServerlessClientInstance.js +0 -50
- package/dist/cjs/OpenSearchServerlessClientInstance.js.map +0 -1
- package/dist/cjs/OpenSearchServerlessService.d.ts +0 -210
- package/dist/cjs/OpenSearchServerlessService.d.ts.map +0 -1
- package/dist/cjs/OpenSearchServerlessService.js +0 -100
- package/dist/cjs/OpenSearchServerlessService.js.map +0 -1
- package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts +0 -25
- package/dist/cjs/OpenSearchServerlessServiceConfig.d.ts.map +0 -1
- package/dist/cjs/OpenSearchServerlessServiceConfig.js +0 -35
- package/dist/cjs/OpenSearchServerlessServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { OpenSearchServerlessClient } from "@aws-sdk/client-opensearchserverless";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServiceConfig.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
|
10
10
|
* @category tags
|
|
11
11
|
*/
|
|
12
|
-
export class OpenSearchServerlessClientInstance
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
export class OpenSearchServerlessClientInstance
|
|
13
|
+
extends ServiceMap.Service<OpenSearchServerlessClientInstance, OpenSearchServerlessClient>()(
|
|
14
|
+
"@effect-aws/client-opensearch-serverless/OpenSearchServerlessClientInstance",
|
|
15
|
+
)
|
|
16
|
+
{}
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* @since 1.0.0
|
|
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
|
|
|
30
32
|
* @since 1.0.0
|
|
31
33
|
* @category layers
|
|
32
34
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
35
|
+
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,
|
|
@@ -131,7 +146,7 @@ import {
|
|
|
131
146
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
132
147
|
import { Service } from "@effect-aws/commons";
|
|
133
148
|
import type { Cause } from "effect";
|
|
134
|
-
import { Effect, Layer } from "effect";
|
|
149
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
135
150
|
import type {
|
|
136
151
|
ConflictError,
|
|
137
152
|
InternalServerError,
|
|
@@ -147,11 +162,13 @@ import * as OpenSearchServerlessServiceConfig from "./OpenSearchServerlessServic
|
|
|
147
162
|
|
|
148
163
|
const commands = {
|
|
149
164
|
BatchGetCollectionCommand,
|
|
165
|
+
BatchGetCollectionGroupCommand,
|
|
150
166
|
BatchGetEffectiveLifecyclePolicyCommand,
|
|
151
167
|
BatchGetLifecyclePolicyCommand,
|
|
152
168
|
BatchGetVpcEndpointCommand,
|
|
153
169
|
CreateAccessPolicyCommand,
|
|
154
170
|
CreateCollectionCommand,
|
|
171
|
+
CreateCollectionGroupCommand,
|
|
155
172
|
CreateIndexCommand,
|
|
156
173
|
CreateLifecyclePolicyCommand,
|
|
157
174
|
CreateSecurityConfigCommand,
|
|
@@ -159,6 +176,7 @@ const commands = {
|
|
|
159
176
|
CreateVpcEndpointCommand,
|
|
160
177
|
DeleteAccessPolicyCommand,
|
|
161
178
|
DeleteCollectionCommand,
|
|
179
|
+
DeleteCollectionGroupCommand,
|
|
162
180
|
DeleteIndexCommand,
|
|
163
181
|
DeleteLifecyclePolicyCommand,
|
|
164
182
|
DeleteSecurityConfigCommand,
|
|
@@ -171,6 +189,7 @@ const commands = {
|
|
|
171
189
|
GetSecurityConfigCommand,
|
|
172
190
|
GetSecurityPolicyCommand,
|
|
173
191
|
ListAccessPoliciesCommand,
|
|
192
|
+
ListCollectionGroupsCommand,
|
|
174
193
|
ListCollectionsCommand,
|
|
175
194
|
ListLifecyclePoliciesCommand,
|
|
176
195
|
ListSecurityConfigsCommand,
|
|
@@ -182,6 +201,7 @@ const commands = {
|
|
|
182
201
|
UpdateAccessPolicyCommand,
|
|
183
202
|
UpdateAccountSettingsCommand,
|
|
184
203
|
UpdateCollectionCommand,
|
|
204
|
+
UpdateCollectionGroupCommand,
|
|
185
205
|
UpdateIndexCommand,
|
|
186
206
|
UpdateLifecyclePolicyCommand,
|
|
187
207
|
UpdateSecurityConfigCommand,
|
|
@@ -200,7 +220,18 @@ interface OpenSearchServerlessService$ {
|
|
|
200
220
|
options?: HttpHandlerOptions,
|
|
201
221
|
): Effect.Effect<
|
|
202
222
|
BatchGetCollectionCommandOutput,
|
|
203
|
-
Cause.
|
|
223
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
224
|
+
>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @see {@link BatchGetCollectionGroupCommand}
|
|
228
|
+
*/
|
|
229
|
+
batchGetCollectionGroup(
|
|
230
|
+
args: BatchGetCollectionGroupCommandInput,
|
|
231
|
+
options?: HttpHandlerOptions,
|
|
232
|
+
): Effect.Effect<
|
|
233
|
+
BatchGetCollectionGroupCommandOutput,
|
|
234
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
204
235
|
>;
|
|
205
236
|
|
|
206
237
|
/**
|
|
@@ -211,7 +242,7 @@ interface OpenSearchServerlessService$ {
|
|
|
211
242
|
options?: HttpHandlerOptions,
|
|
212
243
|
): Effect.Effect<
|
|
213
244
|
BatchGetEffectiveLifecyclePolicyCommandOutput,
|
|
214
|
-
Cause.
|
|
245
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
215
246
|
>;
|
|
216
247
|
|
|
217
248
|
/**
|
|
@@ -222,7 +253,7 @@ interface OpenSearchServerlessService$ {
|
|
|
222
253
|
options?: HttpHandlerOptions,
|
|
223
254
|
): Effect.Effect<
|
|
224
255
|
BatchGetLifecyclePolicyCommandOutput,
|
|
225
|
-
Cause.
|
|
256
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
226
257
|
>;
|
|
227
258
|
|
|
228
259
|
/**
|
|
@@ -233,7 +264,7 @@ interface OpenSearchServerlessService$ {
|
|
|
233
264
|
options?: HttpHandlerOptions,
|
|
234
265
|
): Effect.Effect<
|
|
235
266
|
BatchGetVpcEndpointCommandOutput,
|
|
236
|
-
Cause.
|
|
267
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
237
268
|
>;
|
|
238
269
|
|
|
239
270
|
/**
|
|
@@ -244,12 +275,7 @@ interface OpenSearchServerlessService$ {
|
|
|
244
275
|
options?: HttpHandlerOptions,
|
|
245
276
|
): Effect.Effect<
|
|
246
277
|
CreateAccessPolicyCommandOutput,
|
|
247
|
-
|
|
|
248
|
-
| SdkError
|
|
249
|
-
| ConflictError
|
|
250
|
-
| InternalServerError
|
|
251
|
-
| ServiceQuotaExceededError
|
|
252
|
-
| ValidationError
|
|
278
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
253
279
|
>;
|
|
254
280
|
|
|
255
281
|
/**
|
|
@@ -260,7 +286,7 @@ interface OpenSearchServerlessService$ {
|
|
|
260
286
|
options?: HttpHandlerOptions,
|
|
261
287
|
): Effect.Effect<
|
|
262
288
|
CreateCollectionCommandOutput,
|
|
263
|
-
| Cause.
|
|
289
|
+
| Cause.TimeoutError
|
|
264
290
|
| SdkError
|
|
265
291
|
| ConflictError
|
|
266
292
|
| InternalServerError
|
|
@@ -269,6 +295,17 @@ interface OpenSearchServerlessService$ {
|
|
|
269
295
|
| ValidationError
|
|
270
296
|
>;
|
|
271
297
|
|
|
298
|
+
/**
|
|
299
|
+
* @see {@link CreateCollectionGroupCommand}
|
|
300
|
+
*/
|
|
301
|
+
createCollectionGroup(
|
|
302
|
+
args: CreateCollectionGroupCommandInput,
|
|
303
|
+
options?: HttpHandlerOptions,
|
|
304
|
+
): Effect.Effect<
|
|
305
|
+
CreateCollectionGroupCommandOutput,
|
|
306
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
307
|
+
>;
|
|
308
|
+
|
|
272
309
|
/**
|
|
273
310
|
* @see {@link CreateIndexCommand}
|
|
274
311
|
*/
|
|
@@ -277,7 +314,7 @@ interface OpenSearchServerlessService$ {
|
|
|
277
314
|
options?: HttpHandlerOptions,
|
|
278
315
|
): Effect.Effect<
|
|
279
316
|
CreateIndexCommandOutput,
|
|
280
|
-
Cause.
|
|
317
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
281
318
|
>;
|
|
282
319
|
|
|
283
320
|
/**
|
|
@@ -288,12 +325,7 @@ interface OpenSearchServerlessService$ {
|
|
|
288
325
|
options?: HttpHandlerOptions,
|
|
289
326
|
): Effect.Effect<
|
|
290
327
|
CreateLifecyclePolicyCommandOutput,
|
|
291
|
-
|
|
|
292
|
-
| SdkError
|
|
293
|
-
| ConflictError
|
|
294
|
-
| InternalServerError
|
|
295
|
-
| ServiceQuotaExceededError
|
|
296
|
-
| ValidationError
|
|
328
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
297
329
|
>;
|
|
298
330
|
|
|
299
331
|
/**
|
|
@@ -304,12 +336,7 @@ interface OpenSearchServerlessService$ {
|
|
|
304
336
|
options?: HttpHandlerOptions,
|
|
305
337
|
): Effect.Effect<
|
|
306
338
|
CreateSecurityConfigCommandOutput,
|
|
307
|
-
|
|
|
308
|
-
| SdkError
|
|
309
|
-
| ConflictError
|
|
310
|
-
| InternalServerError
|
|
311
|
-
| ServiceQuotaExceededError
|
|
312
|
-
| ValidationError
|
|
339
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
313
340
|
>;
|
|
314
341
|
|
|
315
342
|
/**
|
|
@@ -320,12 +347,7 @@ interface OpenSearchServerlessService$ {
|
|
|
320
347
|
options?: HttpHandlerOptions,
|
|
321
348
|
): Effect.Effect<
|
|
322
349
|
CreateSecurityPolicyCommandOutput,
|
|
323
|
-
|
|
|
324
|
-
| SdkError
|
|
325
|
-
| ConflictError
|
|
326
|
-
| InternalServerError
|
|
327
|
-
| ServiceQuotaExceededError
|
|
328
|
-
| ValidationError
|
|
350
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
329
351
|
>;
|
|
330
352
|
|
|
331
353
|
/**
|
|
@@ -336,12 +358,7 @@ interface OpenSearchServerlessService$ {
|
|
|
336
358
|
options?: HttpHandlerOptions,
|
|
337
359
|
): Effect.Effect<
|
|
338
360
|
CreateVpcEndpointCommandOutput,
|
|
339
|
-
|
|
|
340
|
-
| SdkError
|
|
341
|
-
| ConflictError
|
|
342
|
-
| InternalServerError
|
|
343
|
-
| ServiceQuotaExceededError
|
|
344
|
-
| ValidationError
|
|
361
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
345
362
|
>;
|
|
346
363
|
|
|
347
364
|
/**
|
|
@@ -352,7 +369,7 @@ interface OpenSearchServerlessService$ {
|
|
|
352
369
|
options?: HttpHandlerOptions,
|
|
353
370
|
): Effect.Effect<
|
|
354
371
|
DeleteAccessPolicyCommandOutput,
|
|
355
|
-
Cause.
|
|
372
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
356
373
|
>;
|
|
357
374
|
|
|
358
375
|
/**
|
|
@@ -363,7 +380,18 @@ interface OpenSearchServerlessService$ {
|
|
|
363
380
|
options?: HttpHandlerOptions,
|
|
364
381
|
): Effect.Effect<
|
|
365
382
|
DeleteCollectionCommandOutput,
|
|
366
|
-
Cause.
|
|
383
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
384
|
+
>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @see {@link DeleteCollectionGroupCommand}
|
|
388
|
+
*/
|
|
389
|
+
deleteCollectionGroup(
|
|
390
|
+
args: DeleteCollectionGroupCommandInput,
|
|
391
|
+
options?: HttpHandlerOptions,
|
|
392
|
+
): Effect.Effect<
|
|
393
|
+
DeleteCollectionGroupCommandOutput,
|
|
394
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
367
395
|
>;
|
|
368
396
|
|
|
369
397
|
/**
|
|
@@ -374,7 +402,7 @@ interface OpenSearchServerlessService$ {
|
|
|
374
402
|
options?: HttpHandlerOptions,
|
|
375
403
|
): Effect.Effect<
|
|
376
404
|
DeleteIndexCommandOutput,
|
|
377
|
-
Cause.
|
|
405
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
378
406
|
>;
|
|
379
407
|
|
|
380
408
|
/**
|
|
@@ -385,7 +413,7 @@ interface OpenSearchServerlessService$ {
|
|
|
385
413
|
options?: HttpHandlerOptions,
|
|
386
414
|
): Effect.Effect<
|
|
387
415
|
DeleteLifecyclePolicyCommandOutput,
|
|
388
|
-
Cause.
|
|
416
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
389
417
|
>;
|
|
390
418
|
|
|
391
419
|
/**
|
|
@@ -396,7 +424,7 @@ interface OpenSearchServerlessService$ {
|
|
|
396
424
|
options?: HttpHandlerOptions,
|
|
397
425
|
): Effect.Effect<
|
|
398
426
|
DeleteSecurityConfigCommandOutput,
|
|
399
|
-
Cause.
|
|
427
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
400
428
|
>;
|
|
401
429
|
|
|
402
430
|
/**
|
|
@@ -407,7 +435,7 @@ interface OpenSearchServerlessService$ {
|
|
|
407
435
|
options?: HttpHandlerOptions,
|
|
408
436
|
): Effect.Effect<
|
|
409
437
|
DeleteSecurityPolicyCommandOutput,
|
|
410
|
-
Cause.
|
|
438
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
411
439
|
>;
|
|
412
440
|
|
|
413
441
|
/**
|
|
@@ -418,7 +446,7 @@ interface OpenSearchServerlessService$ {
|
|
|
418
446
|
options?: HttpHandlerOptions,
|
|
419
447
|
): Effect.Effect<
|
|
420
448
|
DeleteVpcEndpointCommandOutput,
|
|
421
|
-
Cause.
|
|
449
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
422
450
|
>;
|
|
423
451
|
|
|
424
452
|
/**
|
|
@@ -429,7 +457,7 @@ interface OpenSearchServerlessService$ {
|
|
|
429
457
|
options?: HttpHandlerOptions,
|
|
430
458
|
): Effect.Effect<
|
|
431
459
|
GetAccessPolicyCommandOutput,
|
|
432
|
-
Cause.
|
|
460
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
433
461
|
>;
|
|
434
462
|
|
|
435
463
|
/**
|
|
@@ -440,7 +468,7 @@ interface OpenSearchServerlessService$ {
|
|
|
440
468
|
options?: HttpHandlerOptions,
|
|
441
469
|
): Effect.Effect<
|
|
442
470
|
GetAccountSettingsCommandOutput,
|
|
443
|
-
Cause.
|
|
471
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
444
472
|
>;
|
|
445
473
|
|
|
446
474
|
/**
|
|
@@ -451,7 +479,7 @@ interface OpenSearchServerlessService$ {
|
|
|
451
479
|
options?: HttpHandlerOptions,
|
|
452
480
|
): Effect.Effect<
|
|
453
481
|
GetIndexCommandOutput,
|
|
454
|
-
Cause.
|
|
482
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
455
483
|
>;
|
|
456
484
|
|
|
457
485
|
/**
|
|
@@ -462,7 +490,7 @@ interface OpenSearchServerlessService$ {
|
|
|
462
490
|
options?: HttpHandlerOptions,
|
|
463
491
|
): Effect.Effect<
|
|
464
492
|
GetPoliciesStatsCommandOutput,
|
|
465
|
-
Cause.
|
|
493
|
+
Cause.TimeoutError | SdkError | InternalServerError
|
|
466
494
|
>;
|
|
467
495
|
|
|
468
496
|
/**
|
|
@@ -473,7 +501,7 @@ interface OpenSearchServerlessService$ {
|
|
|
473
501
|
options?: HttpHandlerOptions,
|
|
474
502
|
): Effect.Effect<
|
|
475
503
|
GetSecurityConfigCommandOutput,
|
|
476
|
-
Cause.
|
|
504
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
477
505
|
>;
|
|
478
506
|
|
|
479
507
|
/**
|
|
@@ -484,7 +512,7 @@ interface OpenSearchServerlessService$ {
|
|
|
484
512
|
options?: HttpHandlerOptions,
|
|
485
513
|
): Effect.Effect<
|
|
486
514
|
GetSecurityPolicyCommandOutput,
|
|
487
|
-
Cause.
|
|
515
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
488
516
|
>;
|
|
489
517
|
|
|
490
518
|
/**
|
|
@@ -495,7 +523,18 @@ interface OpenSearchServerlessService$ {
|
|
|
495
523
|
options?: HttpHandlerOptions,
|
|
496
524
|
): Effect.Effect<
|
|
497
525
|
ListAccessPoliciesCommandOutput,
|
|
498
|
-
Cause.
|
|
526
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
527
|
+
>;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @see {@link ListCollectionGroupsCommand}
|
|
531
|
+
*/
|
|
532
|
+
listCollectionGroups(
|
|
533
|
+
args: ListCollectionGroupsCommandInput,
|
|
534
|
+
options?: HttpHandlerOptions,
|
|
535
|
+
): Effect.Effect<
|
|
536
|
+
ListCollectionGroupsCommandOutput,
|
|
537
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
499
538
|
>;
|
|
500
539
|
|
|
501
540
|
/**
|
|
@@ -506,7 +545,7 @@ interface OpenSearchServerlessService$ {
|
|
|
506
545
|
options?: HttpHandlerOptions,
|
|
507
546
|
): Effect.Effect<
|
|
508
547
|
ListCollectionsCommandOutput,
|
|
509
|
-
Cause.
|
|
548
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
510
549
|
>;
|
|
511
550
|
|
|
512
551
|
/**
|
|
@@ -517,7 +556,7 @@ interface OpenSearchServerlessService$ {
|
|
|
517
556
|
options?: HttpHandlerOptions,
|
|
518
557
|
): Effect.Effect<
|
|
519
558
|
ListLifecyclePoliciesCommandOutput,
|
|
520
|
-
Cause.
|
|
559
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
521
560
|
>;
|
|
522
561
|
|
|
523
562
|
/**
|
|
@@ -528,7 +567,7 @@ interface OpenSearchServerlessService$ {
|
|
|
528
567
|
options?: HttpHandlerOptions,
|
|
529
568
|
): Effect.Effect<
|
|
530
569
|
ListSecurityConfigsCommandOutput,
|
|
531
|
-
Cause.
|
|
570
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
532
571
|
>;
|
|
533
572
|
|
|
534
573
|
/**
|
|
@@ -539,7 +578,7 @@ interface OpenSearchServerlessService$ {
|
|
|
539
578
|
options?: HttpHandlerOptions,
|
|
540
579
|
): Effect.Effect<
|
|
541
580
|
ListSecurityPoliciesCommandOutput,
|
|
542
|
-
Cause.
|
|
581
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
543
582
|
>;
|
|
544
583
|
|
|
545
584
|
/**
|
|
@@ -550,7 +589,7 @@ interface OpenSearchServerlessService$ {
|
|
|
550
589
|
options?: HttpHandlerOptions,
|
|
551
590
|
): Effect.Effect<
|
|
552
591
|
ListTagsForResourceCommandOutput,
|
|
553
|
-
Cause.
|
|
592
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
554
593
|
>;
|
|
555
594
|
|
|
556
595
|
/**
|
|
@@ -561,7 +600,7 @@ interface OpenSearchServerlessService$ {
|
|
|
561
600
|
options?: HttpHandlerOptions,
|
|
562
601
|
): Effect.Effect<
|
|
563
602
|
ListVpcEndpointsCommandOutput,
|
|
564
|
-
Cause.
|
|
603
|
+
Cause.TimeoutError | SdkError | InternalServerError | ValidationError
|
|
565
604
|
>;
|
|
566
605
|
|
|
567
606
|
/**
|
|
@@ -572,7 +611,7 @@ interface OpenSearchServerlessService$ {
|
|
|
572
611
|
options?: HttpHandlerOptions,
|
|
573
612
|
): Effect.Effect<
|
|
574
613
|
TagResourceCommandOutput,
|
|
575
|
-
| Cause.
|
|
614
|
+
| Cause.TimeoutError
|
|
576
615
|
| SdkError
|
|
577
616
|
| ConflictError
|
|
578
617
|
| InternalServerError
|
|
@@ -589,7 +628,7 @@ interface OpenSearchServerlessService$ {
|
|
|
589
628
|
options?: HttpHandlerOptions,
|
|
590
629
|
): Effect.Effect<
|
|
591
630
|
UntagResourceCommandOutput,
|
|
592
|
-
Cause.
|
|
631
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
593
632
|
>;
|
|
594
633
|
|
|
595
634
|
/**
|
|
@@ -600,7 +639,7 @@ interface OpenSearchServerlessService$ {
|
|
|
600
639
|
options?: HttpHandlerOptions,
|
|
601
640
|
): Effect.Effect<
|
|
602
641
|
UpdateAccessPolicyCommandOutput,
|
|
603
|
-
Cause.
|
|
642
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
604
643
|
>;
|
|
605
644
|
|
|
606
645
|
/**
|
|
@@ -611,7 +650,7 @@ interface OpenSearchServerlessService$ {
|
|
|
611
650
|
options?: HttpHandlerOptions,
|
|
612
651
|
): Effect.Effect<
|
|
613
652
|
UpdateAccountSettingsCommandOutput,
|
|
614
|
-
Cause.
|
|
653
|
+
Cause.TimeoutError | SdkError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
615
654
|
>;
|
|
616
655
|
|
|
617
656
|
/**
|
|
@@ -622,7 +661,18 @@ interface OpenSearchServerlessService$ {
|
|
|
622
661
|
options?: HttpHandlerOptions,
|
|
623
662
|
): Effect.Effect<
|
|
624
663
|
UpdateCollectionCommandOutput,
|
|
625
|
-
Cause.
|
|
664
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ValidationError
|
|
665
|
+
>;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* @see {@link UpdateCollectionGroupCommand}
|
|
669
|
+
*/
|
|
670
|
+
updateCollectionGroup(
|
|
671
|
+
args: UpdateCollectionGroupCommandInput,
|
|
672
|
+
options?: HttpHandlerOptions,
|
|
673
|
+
): Effect.Effect<
|
|
674
|
+
UpdateCollectionGroupCommandOutput,
|
|
675
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ValidationError
|
|
626
676
|
>;
|
|
627
677
|
|
|
628
678
|
/**
|
|
@@ -633,7 +683,7 @@ interface OpenSearchServerlessService$ {
|
|
|
633
683
|
options?: HttpHandlerOptions,
|
|
634
684
|
): Effect.Effect<
|
|
635
685
|
UpdateIndexCommandOutput,
|
|
636
|
-
Cause.
|
|
686
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
637
687
|
>;
|
|
638
688
|
|
|
639
689
|
/**
|
|
@@ -644,7 +694,7 @@ interface OpenSearchServerlessService$ {
|
|
|
644
694
|
options?: HttpHandlerOptions,
|
|
645
695
|
): Effect.Effect<
|
|
646
696
|
UpdateLifecyclePolicyCommandOutput,
|
|
647
|
-
| Cause.
|
|
697
|
+
| Cause.TimeoutError
|
|
648
698
|
| SdkError
|
|
649
699
|
| ConflictError
|
|
650
700
|
| InternalServerError
|
|
@@ -661,7 +711,7 @@ interface OpenSearchServerlessService$ {
|
|
|
661
711
|
options?: HttpHandlerOptions,
|
|
662
712
|
): Effect.Effect<
|
|
663
713
|
UpdateSecurityConfigCommandOutput,
|
|
664
|
-
Cause.
|
|
714
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ValidationError
|
|
665
715
|
>;
|
|
666
716
|
|
|
667
717
|
/**
|
|
@@ -672,7 +722,7 @@ interface OpenSearchServerlessService$ {
|
|
|
672
722
|
options?: HttpHandlerOptions,
|
|
673
723
|
): Effect.Effect<
|
|
674
724
|
UpdateSecurityPolicyCommandOutput,
|
|
675
|
-
| Cause.
|
|
725
|
+
| Cause.TimeoutError
|
|
676
726
|
| SdkError
|
|
677
727
|
| ConflictError
|
|
678
728
|
| InternalServerError
|
|
@@ -689,7 +739,7 @@ interface OpenSearchServerlessService$ {
|
|
|
689
739
|
options?: HttpHandlerOptions,
|
|
690
740
|
): Effect.Effect<
|
|
691
741
|
UpdateVpcEndpointCommandOutput,
|
|
692
|
-
Cause.
|
|
742
|
+
Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ValidationError
|
|
693
743
|
>;
|
|
694
744
|
}
|
|
695
745
|
|
|
@@ -714,12 +764,10 @@ export const makeOpenSearchServerlessService = Effect.gen(function*() {
|
|
|
714
764
|
* @since 1.0.0
|
|
715
765
|
* @category models
|
|
716
766
|
*/
|
|
717
|
-
export class OpenSearchServerlessService
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
>()
|
|
722
|
-
{
|
|
767
|
+
export class OpenSearchServerlessService extends ServiceMap.Service<
|
|
768
|
+
OpenSearchServerlessService,
|
|
769
|
+
OpenSearchServerlessService$
|
|
770
|
+
>()("@effect-aws/client-opensearch-serverless/OpenSearchServerlessService") {
|
|
723
771
|
static readonly defaultLayer = Layer.effect(this, makeOpenSearchServerlessService).pipe(
|
|
724
772
|
Layer.provide(Instance.layer),
|
|
725
773
|
);
|
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import { Effect,
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import { globalValue } from "effect/GlobalValue";
|
|
9
8
|
import type { OpenSearchServerlessService } from "./OpenSearchServerlessService.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @since 1.0.0
|
|
13
12
|
* @category opensearch-serverless service config
|
|
14
13
|
*/
|
|
15
|
-
const currentOpenSearchServerlessServiceConfig =
|
|
14
|
+
const currentOpenSearchServerlessServiceConfig = ServiceMap.Reference<OpenSearchServerlessService.Config>(
|
|
16
15
|
"@effect-aws/client-opensearch-serverless/currentOpenSearchServerlessServiceConfig",
|
|
17
|
-
() =>
|
|
16
|
+
{ defaultValue: () => ({}) },
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -27,7 +26,7 @@ export const withOpenSearchServerlessServiceConfig: {
|
|
|
27
26
|
} = dual(
|
|
28
27
|
2,
|
|
29
28
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: OpenSearchServerlessService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
29
|
+
Effect.provideService(effect, currentOpenSearchServerlessServiceConfig, config),
|
|
31
30
|
);
|
|
32
31
|
|
|
33
32
|
/**
|
|
@@ -35,7 +34,7 @@ export const withOpenSearchServerlessServiceConfig: {
|
|
|
35
34
|
* @category opensearch-serverless service config
|
|
36
35
|
*/
|
|
37
36
|
export const setOpenSearchServerlessServiceConfig = (config: OpenSearchServerlessService.Config) =>
|
|
38
|
-
Layer.
|
|
37
|
+
Layer.succeed(currentOpenSearchServerlessServiceConfig, config);
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* @since 1.0.0
|
|
@@ -43,7 +42,7 @@ export const setOpenSearchServerlessServiceConfig = (config: OpenSearchServerles
|
|
|
43
42
|
*/
|
|
44
43
|
export const toOpenSearchServerlessClientConfig: Effect.Effect<OpenSearchServerlessClientConfig> = Effect.gen(
|
|
45
44
|
function*() {
|
|
46
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
45
|
+
const { logger: serviceLogger, ...config } = yield* currentOpenSearchServerlessServiceConfig;
|
|
47
46
|
|
|
48
47
|
const logger = serviceLogger === true
|
|
49
48
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ConflictException, InternalServerException, OcuLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException } from "@aws-sdk/client-opensearchserverless";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["ConflictException", "InternalServerException", "OcuLimitExceededException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ValidationException"];
|
|
4
|
-
export type ConflictError = TaggedException<ConflictException>;
|
|
5
|
-
export type InternalServerError = TaggedException<InternalServerException>;
|
|
6
|
-
export type OcuLimitExceededError = TaggedException<OcuLimitExceededException>;
|
|
7
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
8
|
-
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
9
|
-
export type ValidationError = TaggedException<ValidationException>;
|
|
10
|
-
export type SdkError = TaggedException<Error & {
|
|
11
|
-
name: "SdkError";
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,6KAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"ConflictException",
|
|
6
|
-
"InternalServerException",
|
|
7
|
-
"OcuLimitExceededException",
|
|
8
|
-
"ResourceNotFoundException",
|
|
9
|
-
"ServiceQuotaExceededException",
|
|
10
|
-
"ValidationException",
|
|
11
|
-
];
|
|
12
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;CACb,CAAC"}
|