@effect-aws/client-cloudsearch 1.2.0 → 1.9.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/CloudSearchClientInstance/package.json +6 -0
- package/CloudSearchService/package.json +6 -0
- package/CloudSearchServiceConfig/package.json +6 -0
- package/Errors/package.json +6 -0
- package/dist/cjs/CloudSearchClientInstance.d.ts +24 -0
- package/dist/cjs/CloudSearchClientInstance.d.ts.map +1 -0
- package/dist/cjs/CloudSearchClientInstance.js +50 -0
- package/dist/cjs/CloudSearchClientInstance.js.map +1 -0
- package/{lib → dist/cjs}/CloudSearchService.d.ts +16 -38
- package/dist/cjs/CloudSearchService.d.ts.map +1 -0
- package/dist/cjs/CloudSearchService.js +82 -0
- package/dist/cjs/CloudSearchService.js.map +1 -0
- package/dist/cjs/CloudSearchServiceConfig.d.ts +25 -0
- package/dist/cjs/CloudSearchServiceConfig.d.ts.map +1 -0
- package/dist/cjs/CloudSearchServiceConfig.js +35 -0
- package/dist/cjs/CloudSearchServiceConfig.js.map +1 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +16 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/CloudSearchClientInstance.d.ts +24 -0
- package/dist/dts/CloudSearchClientInstance.d.ts.map +1 -0
- package/dist/dts/CloudSearchService.d.ts +173 -0
- package/dist/dts/CloudSearchService.d.ts.map +1 -0
- package/dist/dts/CloudSearchServiceConfig.d.ts +25 -0
- package/dist/dts/CloudSearchServiceConfig.d.ts.map +1 -0
- package/dist/dts/Errors.d.ts +15 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/CloudSearchClientInstance.js +23 -0
- package/dist/esm/CloudSearchClientInstance.js.map +1 -0
- package/dist/esm/CloudSearchService.js +55 -0
- package/dist/esm/CloudSearchService.js.map +1 -0
- package/dist/esm/CloudSearchServiceConfig.js +31 -0
- package/dist/esm/CloudSearchServiceConfig.js.map +1 -0
- package/dist/esm/Errors.js +13 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/CloudSearchClientInstance.ts +33 -0
- package/src/CloudSearchService.ts +525 -0
- package/src/CloudSearchServiceConfig.ts +52 -0
- package/src/Errors.ts +35 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -35
- package/docgen.json +0 -8
- package/lib/CloudSearchClientInstance.d.ts +0 -31
- package/lib/CloudSearchClientInstance.js +0 -57
- package/lib/CloudSearchClientInstanceConfig.d.ts +0 -23
- package/lib/CloudSearchClientInstanceConfig.js +0 -44
- package/lib/CloudSearchService.js +0 -114
- package/lib/Errors.js +0 -16
- package/lib/esm/CloudSearchClientInstance.js +0 -30
- package/lib/esm/CloudSearchClientInstanceConfig.js +0 -40
- package/lib/esm/CloudSearchService.js +0 -110
- package/lib/esm/Errors.js +0 -13
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import {
|
|
5
|
+
BuildSuggestersCommand,
|
|
6
|
+
type BuildSuggestersCommandInput,
|
|
7
|
+
type BuildSuggestersCommandOutput,
|
|
8
|
+
type CloudSearchClient,
|
|
9
|
+
type CloudSearchClientConfig,
|
|
10
|
+
CreateDomainCommand,
|
|
11
|
+
type CreateDomainCommandInput,
|
|
12
|
+
type CreateDomainCommandOutput,
|
|
13
|
+
DefineAnalysisSchemeCommand,
|
|
14
|
+
type DefineAnalysisSchemeCommandInput,
|
|
15
|
+
type DefineAnalysisSchemeCommandOutput,
|
|
16
|
+
DefineExpressionCommand,
|
|
17
|
+
type DefineExpressionCommandInput,
|
|
18
|
+
type DefineExpressionCommandOutput,
|
|
19
|
+
DefineIndexFieldCommand,
|
|
20
|
+
type DefineIndexFieldCommandInput,
|
|
21
|
+
type DefineIndexFieldCommandOutput,
|
|
22
|
+
DefineSuggesterCommand,
|
|
23
|
+
type DefineSuggesterCommandInput,
|
|
24
|
+
type DefineSuggesterCommandOutput,
|
|
25
|
+
DeleteAnalysisSchemeCommand,
|
|
26
|
+
type DeleteAnalysisSchemeCommandInput,
|
|
27
|
+
type DeleteAnalysisSchemeCommandOutput,
|
|
28
|
+
DeleteDomainCommand,
|
|
29
|
+
type DeleteDomainCommandInput,
|
|
30
|
+
type DeleteDomainCommandOutput,
|
|
31
|
+
DeleteExpressionCommand,
|
|
32
|
+
type DeleteExpressionCommandInput,
|
|
33
|
+
type DeleteExpressionCommandOutput,
|
|
34
|
+
DeleteIndexFieldCommand,
|
|
35
|
+
type DeleteIndexFieldCommandInput,
|
|
36
|
+
type DeleteIndexFieldCommandOutput,
|
|
37
|
+
DeleteSuggesterCommand,
|
|
38
|
+
type DeleteSuggesterCommandInput,
|
|
39
|
+
type DeleteSuggesterCommandOutput,
|
|
40
|
+
DescribeAnalysisSchemesCommand,
|
|
41
|
+
type DescribeAnalysisSchemesCommandInput,
|
|
42
|
+
type DescribeAnalysisSchemesCommandOutput,
|
|
43
|
+
DescribeAvailabilityOptionsCommand,
|
|
44
|
+
type DescribeAvailabilityOptionsCommandInput,
|
|
45
|
+
type DescribeAvailabilityOptionsCommandOutput,
|
|
46
|
+
DescribeDomainEndpointOptionsCommand,
|
|
47
|
+
type DescribeDomainEndpointOptionsCommandInput,
|
|
48
|
+
type DescribeDomainEndpointOptionsCommandOutput,
|
|
49
|
+
DescribeDomainsCommand,
|
|
50
|
+
type DescribeDomainsCommandInput,
|
|
51
|
+
type DescribeDomainsCommandOutput,
|
|
52
|
+
DescribeExpressionsCommand,
|
|
53
|
+
type DescribeExpressionsCommandInput,
|
|
54
|
+
type DescribeExpressionsCommandOutput,
|
|
55
|
+
DescribeIndexFieldsCommand,
|
|
56
|
+
type DescribeIndexFieldsCommandInput,
|
|
57
|
+
type DescribeIndexFieldsCommandOutput,
|
|
58
|
+
DescribeScalingParametersCommand,
|
|
59
|
+
type DescribeScalingParametersCommandInput,
|
|
60
|
+
type DescribeScalingParametersCommandOutput,
|
|
61
|
+
DescribeServiceAccessPoliciesCommand,
|
|
62
|
+
type DescribeServiceAccessPoliciesCommandInput,
|
|
63
|
+
type DescribeServiceAccessPoliciesCommandOutput,
|
|
64
|
+
DescribeSuggestersCommand,
|
|
65
|
+
type DescribeSuggestersCommandInput,
|
|
66
|
+
type DescribeSuggestersCommandOutput,
|
|
67
|
+
IndexDocumentsCommand,
|
|
68
|
+
type IndexDocumentsCommandInput,
|
|
69
|
+
type IndexDocumentsCommandOutput,
|
|
70
|
+
ListDomainNamesCommand,
|
|
71
|
+
type ListDomainNamesCommandInput,
|
|
72
|
+
type ListDomainNamesCommandOutput,
|
|
73
|
+
UpdateAvailabilityOptionsCommand,
|
|
74
|
+
type UpdateAvailabilityOptionsCommandInput,
|
|
75
|
+
type UpdateAvailabilityOptionsCommandOutput,
|
|
76
|
+
UpdateDomainEndpointOptionsCommand,
|
|
77
|
+
type UpdateDomainEndpointOptionsCommandInput,
|
|
78
|
+
type UpdateDomainEndpointOptionsCommandOutput,
|
|
79
|
+
UpdateScalingParametersCommand,
|
|
80
|
+
type UpdateScalingParametersCommandInput,
|
|
81
|
+
type UpdateScalingParametersCommandOutput,
|
|
82
|
+
UpdateServiceAccessPoliciesCommand,
|
|
83
|
+
type UpdateServiceAccessPoliciesCommandInput,
|
|
84
|
+
type UpdateServiceAccessPoliciesCommandOutput,
|
|
85
|
+
} from "@aws-sdk/client-cloudsearch";
|
|
86
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
87
|
+
import { Service } from "@effect-aws/commons";
|
|
88
|
+
import { Effect, Layer } from "effect";
|
|
89
|
+
import * as Instance from "./CloudSearchClientInstance.js";
|
|
90
|
+
import * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
|
|
91
|
+
import type {
|
|
92
|
+
BaseError,
|
|
93
|
+
DisabledOperationError,
|
|
94
|
+
InternalError,
|
|
95
|
+
InvalidTypeError,
|
|
96
|
+
LimitExceededError,
|
|
97
|
+
ResourceAlreadyExistsError,
|
|
98
|
+
ResourceNotFoundError,
|
|
99
|
+
ValidationError,
|
|
100
|
+
} from "./Errors.js";
|
|
101
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
102
|
+
|
|
103
|
+
const commands = {
|
|
104
|
+
BuildSuggestersCommand,
|
|
105
|
+
CreateDomainCommand,
|
|
106
|
+
DefineAnalysisSchemeCommand,
|
|
107
|
+
DefineExpressionCommand,
|
|
108
|
+
DefineIndexFieldCommand,
|
|
109
|
+
DefineSuggesterCommand,
|
|
110
|
+
DeleteAnalysisSchemeCommand,
|
|
111
|
+
DeleteDomainCommand,
|
|
112
|
+
DeleteExpressionCommand,
|
|
113
|
+
DeleteIndexFieldCommand,
|
|
114
|
+
DeleteSuggesterCommand,
|
|
115
|
+
DescribeAnalysisSchemesCommand,
|
|
116
|
+
DescribeAvailabilityOptionsCommand,
|
|
117
|
+
DescribeDomainEndpointOptionsCommand,
|
|
118
|
+
DescribeDomainsCommand,
|
|
119
|
+
DescribeExpressionsCommand,
|
|
120
|
+
DescribeIndexFieldsCommand,
|
|
121
|
+
DescribeScalingParametersCommand,
|
|
122
|
+
DescribeServiceAccessPoliciesCommand,
|
|
123
|
+
DescribeSuggestersCommand,
|
|
124
|
+
IndexDocumentsCommand,
|
|
125
|
+
ListDomainNamesCommand,
|
|
126
|
+
UpdateAvailabilityOptionsCommand,
|
|
127
|
+
UpdateDomainEndpointOptionsCommand,
|
|
128
|
+
UpdateScalingParametersCommand,
|
|
129
|
+
UpdateServiceAccessPoliciesCommand,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
interface CloudSearchService$ {
|
|
133
|
+
readonly _: unique symbol;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @see {@link BuildSuggestersCommand}
|
|
137
|
+
*/
|
|
138
|
+
buildSuggesters(
|
|
139
|
+
args: BuildSuggestersCommandInput,
|
|
140
|
+
options?: HttpHandlerOptions,
|
|
141
|
+
): Effect.Effect<
|
|
142
|
+
BuildSuggestersCommandOutput,
|
|
143
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError
|
|
144
|
+
>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @see {@link CreateDomainCommand}
|
|
148
|
+
*/
|
|
149
|
+
createDomain(
|
|
150
|
+
args: CreateDomainCommandInput,
|
|
151
|
+
options?: HttpHandlerOptions,
|
|
152
|
+
): Effect.Effect<
|
|
153
|
+
CreateDomainCommandOutput,
|
|
154
|
+
SdkError | BaseError | InternalError | LimitExceededError | ResourceAlreadyExistsError | ValidationError
|
|
155
|
+
>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @see {@link DefineAnalysisSchemeCommand}
|
|
159
|
+
*/
|
|
160
|
+
defineAnalysisScheme(
|
|
161
|
+
args: DefineAnalysisSchemeCommandInput,
|
|
162
|
+
options?: HttpHandlerOptions,
|
|
163
|
+
): Effect.Effect<
|
|
164
|
+
DefineAnalysisSchemeCommandOutput,
|
|
165
|
+
| SdkError
|
|
166
|
+
| BaseError
|
|
167
|
+
| InternalError
|
|
168
|
+
| InvalidTypeError
|
|
169
|
+
| LimitExceededError
|
|
170
|
+
| ResourceNotFoundError
|
|
171
|
+
| ValidationError
|
|
172
|
+
>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @see {@link DefineExpressionCommand}
|
|
176
|
+
*/
|
|
177
|
+
defineExpression(
|
|
178
|
+
args: DefineExpressionCommandInput,
|
|
179
|
+
options?: HttpHandlerOptions,
|
|
180
|
+
): Effect.Effect<
|
|
181
|
+
DefineExpressionCommandOutput,
|
|
182
|
+
| SdkError
|
|
183
|
+
| BaseError
|
|
184
|
+
| InternalError
|
|
185
|
+
| InvalidTypeError
|
|
186
|
+
| LimitExceededError
|
|
187
|
+
| ResourceNotFoundError
|
|
188
|
+
| ValidationError
|
|
189
|
+
>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @see {@link DefineIndexFieldCommand}
|
|
193
|
+
*/
|
|
194
|
+
defineIndexField(
|
|
195
|
+
args: DefineIndexFieldCommandInput,
|
|
196
|
+
options?: HttpHandlerOptions,
|
|
197
|
+
): Effect.Effect<
|
|
198
|
+
DefineIndexFieldCommandOutput,
|
|
199
|
+
| SdkError
|
|
200
|
+
| BaseError
|
|
201
|
+
| InternalError
|
|
202
|
+
| InvalidTypeError
|
|
203
|
+
| LimitExceededError
|
|
204
|
+
| ResourceNotFoundError
|
|
205
|
+
| ValidationError
|
|
206
|
+
>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @see {@link DefineSuggesterCommand}
|
|
210
|
+
*/
|
|
211
|
+
defineSuggester(
|
|
212
|
+
args: DefineSuggesterCommandInput,
|
|
213
|
+
options?: HttpHandlerOptions,
|
|
214
|
+
): Effect.Effect<
|
|
215
|
+
DefineSuggesterCommandOutput,
|
|
216
|
+
| SdkError
|
|
217
|
+
| BaseError
|
|
218
|
+
| InternalError
|
|
219
|
+
| InvalidTypeError
|
|
220
|
+
| LimitExceededError
|
|
221
|
+
| ResourceNotFoundError
|
|
222
|
+
| ValidationError
|
|
223
|
+
>;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @see {@link DeleteAnalysisSchemeCommand}
|
|
227
|
+
*/
|
|
228
|
+
deleteAnalysisScheme(
|
|
229
|
+
args: DeleteAnalysisSchemeCommandInput,
|
|
230
|
+
options?: HttpHandlerOptions,
|
|
231
|
+
): Effect.Effect<
|
|
232
|
+
DeleteAnalysisSchemeCommandOutput,
|
|
233
|
+
SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError
|
|
234
|
+
>;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @see {@link DeleteDomainCommand}
|
|
238
|
+
*/
|
|
239
|
+
deleteDomain(
|
|
240
|
+
args: DeleteDomainCommandInput,
|
|
241
|
+
options?: HttpHandlerOptions,
|
|
242
|
+
): Effect.Effect<
|
|
243
|
+
DeleteDomainCommandOutput,
|
|
244
|
+
SdkError | BaseError | InternalError
|
|
245
|
+
>;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @see {@link DeleteExpressionCommand}
|
|
249
|
+
*/
|
|
250
|
+
deleteExpression(
|
|
251
|
+
args: DeleteExpressionCommandInput,
|
|
252
|
+
options?: HttpHandlerOptions,
|
|
253
|
+
): Effect.Effect<
|
|
254
|
+
DeleteExpressionCommandOutput,
|
|
255
|
+
SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError
|
|
256
|
+
>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @see {@link DeleteIndexFieldCommand}
|
|
260
|
+
*/
|
|
261
|
+
deleteIndexField(
|
|
262
|
+
args: DeleteIndexFieldCommandInput,
|
|
263
|
+
options?: HttpHandlerOptions,
|
|
264
|
+
): Effect.Effect<
|
|
265
|
+
DeleteIndexFieldCommandOutput,
|
|
266
|
+
SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError
|
|
267
|
+
>;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @see {@link DeleteSuggesterCommand}
|
|
271
|
+
*/
|
|
272
|
+
deleteSuggester(
|
|
273
|
+
args: DeleteSuggesterCommandInput,
|
|
274
|
+
options?: HttpHandlerOptions,
|
|
275
|
+
): Effect.Effect<
|
|
276
|
+
DeleteSuggesterCommandOutput,
|
|
277
|
+
SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError
|
|
278
|
+
>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @see {@link DescribeAnalysisSchemesCommand}
|
|
282
|
+
*/
|
|
283
|
+
describeAnalysisSchemes(
|
|
284
|
+
args: DescribeAnalysisSchemesCommandInput,
|
|
285
|
+
options?: HttpHandlerOptions,
|
|
286
|
+
): Effect.Effect<
|
|
287
|
+
DescribeAnalysisSchemesCommandOutput,
|
|
288
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError
|
|
289
|
+
>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @see {@link DescribeAvailabilityOptionsCommand}
|
|
293
|
+
*/
|
|
294
|
+
describeAvailabilityOptions(
|
|
295
|
+
args: DescribeAvailabilityOptionsCommandInput,
|
|
296
|
+
options?: HttpHandlerOptions,
|
|
297
|
+
): Effect.Effect<
|
|
298
|
+
DescribeAvailabilityOptionsCommandOutput,
|
|
299
|
+
| SdkError
|
|
300
|
+
| BaseError
|
|
301
|
+
| DisabledOperationError
|
|
302
|
+
| InternalError
|
|
303
|
+
| InvalidTypeError
|
|
304
|
+
| LimitExceededError
|
|
305
|
+
| ResourceNotFoundError
|
|
306
|
+
>;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @see {@link DescribeDomainEndpointOptionsCommand}
|
|
310
|
+
*/
|
|
311
|
+
describeDomainEndpointOptions(
|
|
312
|
+
args: DescribeDomainEndpointOptionsCommandInput,
|
|
313
|
+
options?: HttpHandlerOptions,
|
|
314
|
+
): Effect.Effect<
|
|
315
|
+
DescribeDomainEndpointOptionsCommandOutput,
|
|
316
|
+
SdkError | BaseError | DisabledOperationError | InternalError | LimitExceededError | ResourceNotFoundError
|
|
317
|
+
>;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @see {@link DescribeDomainsCommand}
|
|
321
|
+
*/
|
|
322
|
+
describeDomains(
|
|
323
|
+
args: DescribeDomainsCommandInput,
|
|
324
|
+
options?: HttpHandlerOptions,
|
|
325
|
+
): Effect.Effect<
|
|
326
|
+
DescribeDomainsCommandOutput,
|
|
327
|
+
SdkError | BaseError | InternalError
|
|
328
|
+
>;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @see {@link DescribeExpressionsCommand}
|
|
332
|
+
*/
|
|
333
|
+
describeExpressions(
|
|
334
|
+
args: DescribeExpressionsCommandInput,
|
|
335
|
+
options?: HttpHandlerOptions,
|
|
336
|
+
): Effect.Effect<
|
|
337
|
+
DescribeExpressionsCommandOutput,
|
|
338
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError
|
|
339
|
+
>;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @see {@link DescribeIndexFieldsCommand}
|
|
343
|
+
*/
|
|
344
|
+
describeIndexFields(
|
|
345
|
+
args: DescribeIndexFieldsCommandInput,
|
|
346
|
+
options?: HttpHandlerOptions,
|
|
347
|
+
): Effect.Effect<
|
|
348
|
+
DescribeIndexFieldsCommandOutput,
|
|
349
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError
|
|
350
|
+
>;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* @see {@link DescribeScalingParametersCommand}
|
|
354
|
+
*/
|
|
355
|
+
describeScalingParameters(
|
|
356
|
+
args: DescribeScalingParametersCommandInput,
|
|
357
|
+
options?: HttpHandlerOptions,
|
|
358
|
+
): Effect.Effect<
|
|
359
|
+
DescribeScalingParametersCommandOutput,
|
|
360
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError
|
|
361
|
+
>;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @see {@link DescribeServiceAccessPoliciesCommand}
|
|
365
|
+
*/
|
|
366
|
+
describeServiceAccessPolicies(
|
|
367
|
+
args: DescribeServiceAccessPoliciesCommandInput,
|
|
368
|
+
options?: HttpHandlerOptions,
|
|
369
|
+
): Effect.Effect<
|
|
370
|
+
DescribeServiceAccessPoliciesCommandOutput,
|
|
371
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError
|
|
372
|
+
>;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @see {@link DescribeSuggestersCommand}
|
|
376
|
+
*/
|
|
377
|
+
describeSuggesters(
|
|
378
|
+
args: DescribeSuggestersCommandInput,
|
|
379
|
+
options?: HttpHandlerOptions,
|
|
380
|
+
): Effect.Effect<
|
|
381
|
+
DescribeSuggestersCommandOutput,
|
|
382
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError
|
|
383
|
+
>;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @see {@link IndexDocumentsCommand}
|
|
387
|
+
*/
|
|
388
|
+
indexDocuments(
|
|
389
|
+
args: IndexDocumentsCommandInput,
|
|
390
|
+
options?: HttpHandlerOptions,
|
|
391
|
+
): Effect.Effect<
|
|
392
|
+
IndexDocumentsCommandOutput,
|
|
393
|
+
SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError
|
|
394
|
+
>;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @see {@link ListDomainNamesCommand}
|
|
398
|
+
*/
|
|
399
|
+
listDomainNames(
|
|
400
|
+
args: ListDomainNamesCommandInput,
|
|
401
|
+
options?: HttpHandlerOptions,
|
|
402
|
+
): Effect.Effect<
|
|
403
|
+
ListDomainNamesCommandOutput,
|
|
404
|
+
SdkError | BaseError
|
|
405
|
+
>;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @see {@link UpdateAvailabilityOptionsCommand}
|
|
409
|
+
*/
|
|
410
|
+
updateAvailabilityOptions(
|
|
411
|
+
args: UpdateAvailabilityOptionsCommandInput,
|
|
412
|
+
options?: HttpHandlerOptions,
|
|
413
|
+
): Effect.Effect<
|
|
414
|
+
UpdateAvailabilityOptionsCommandOutput,
|
|
415
|
+
| SdkError
|
|
416
|
+
| BaseError
|
|
417
|
+
| DisabledOperationError
|
|
418
|
+
| InternalError
|
|
419
|
+
| InvalidTypeError
|
|
420
|
+
| LimitExceededError
|
|
421
|
+
| ResourceNotFoundError
|
|
422
|
+
| ValidationError
|
|
423
|
+
>;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @see {@link UpdateDomainEndpointOptionsCommand}
|
|
427
|
+
*/
|
|
428
|
+
updateDomainEndpointOptions(
|
|
429
|
+
args: UpdateDomainEndpointOptionsCommandInput,
|
|
430
|
+
options?: HttpHandlerOptions,
|
|
431
|
+
): Effect.Effect<
|
|
432
|
+
UpdateDomainEndpointOptionsCommandOutput,
|
|
433
|
+
| SdkError
|
|
434
|
+
| BaseError
|
|
435
|
+
| DisabledOperationError
|
|
436
|
+
| InternalError
|
|
437
|
+
| InvalidTypeError
|
|
438
|
+
| LimitExceededError
|
|
439
|
+
| ResourceNotFoundError
|
|
440
|
+
| ValidationError
|
|
441
|
+
>;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @see {@link UpdateScalingParametersCommand}
|
|
445
|
+
*/
|
|
446
|
+
updateScalingParameters(
|
|
447
|
+
args: UpdateScalingParametersCommandInput,
|
|
448
|
+
options?: HttpHandlerOptions,
|
|
449
|
+
): Effect.Effect<
|
|
450
|
+
UpdateScalingParametersCommandOutput,
|
|
451
|
+
| SdkError
|
|
452
|
+
| BaseError
|
|
453
|
+
| InternalError
|
|
454
|
+
| InvalidTypeError
|
|
455
|
+
| LimitExceededError
|
|
456
|
+
| ResourceNotFoundError
|
|
457
|
+
| ValidationError
|
|
458
|
+
>;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @see {@link UpdateServiceAccessPoliciesCommand}
|
|
462
|
+
*/
|
|
463
|
+
updateServiceAccessPolicies(
|
|
464
|
+
args: UpdateServiceAccessPoliciesCommandInput,
|
|
465
|
+
options?: HttpHandlerOptions,
|
|
466
|
+
): Effect.Effect<
|
|
467
|
+
UpdateServiceAccessPoliciesCommandOutput,
|
|
468
|
+
| SdkError
|
|
469
|
+
| BaseError
|
|
470
|
+
| InternalError
|
|
471
|
+
| InvalidTypeError
|
|
472
|
+
| LimitExceededError
|
|
473
|
+
| ResourceNotFoundError
|
|
474
|
+
| ValidationError
|
|
475
|
+
>;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @since 1.0.0
|
|
480
|
+
* @category constructors
|
|
481
|
+
*/
|
|
482
|
+
export const makeCloudSearchService = Effect.gen(function*() {
|
|
483
|
+
const client = yield* Instance.CloudSearchClientInstance;
|
|
484
|
+
|
|
485
|
+
return Service.fromClientAndCommands<CloudSearchService$>(client, commands, AllServiceErrors);
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @since 1.0.0
|
|
490
|
+
* @category models
|
|
491
|
+
*/
|
|
492
|
+
export class CloudSearchService extends Effect.Tag("@effect-aws/client-cloudsearch/CloudSearchService")<
|
|
493
|
+
CloudSearchService,
|
|
494
|
+
CloudSearchService$
|
|
495
|
+
>() {
|
|
496
|
+
static readonly defaultLayer = Layer.effect(this, makeCloudSearchService).pipe(Layer.provide(Instance.layer));
|
|
497
|
+
static readonly layer = (config: CloudSearchService.Config) =>
|
|
498
|
+
Layer.effect(this, makeCloudSearchService).pipe(
|
|
499
|
+
Layer.provide(Instance.layer),
|
|
500
|
+
Layer.provide(CloudSearchServiceConfig.setCloudSearchServiceConfig(config)),
|
|
501
|
+
);
|
|
502
|
+
static readonly baseLayer = (
|
|
503
|
+
evaluate: (defaultConfig: CloudSearchClientConfig) => CloudSearchClient,
|
|
504
|
+
) =>
|
|
505
|
+
Layer.effect(this, makeCloudSearchService).pipe(
|
|
506
|
+
Layer.provide(
|
|
507
|
+
Layer.effect(
|
|
508
|
+
Instance.CloudSearchClientInstance,
|
|
509
|
+
Effect.map(CloudSearchServiceConfig.toCloudSearchClientConfig, evaluate),
|
|
510
|
+
),
|
|
511
|
+
),
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @since 1.0.0
|
|
517
|
+
*/
|
|
518
|
+
export declare namespace CloudSearchService {
|
|
519
|
+
/**
|
|
520
|
+
* @since 1.0.0
|
|
521
|
+
*/
|
|
522
|
+
export interface Config extends Omit<CloudSearchClientConfig, "logger"> {
|
|
523
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { CloudSearchClientConfig } from "@aws-sdk/client-cloudsearch";
|
|
5
|
+
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
7
|
+
import { dual } from "effect/Function";
|
|
8
|
+
import { globalValue } from "effect/GlobalValue";
|
|
9
|
+
import type { CloudSearchService } from "./CloudSearchService.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
* @category cloudsearch service config
|
|
14
|
+
*/
|
|
15
|
+
const currentCloudSearchServiceConfig = globalValue(
|
|
16
|
+
"@effect-aws/client-cloudsearch/currentCloudSearchServiceConfig",
|
|
17
|
+
() => FiberRef.unsafeMake<CloudSearchService.Config>({}),
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category cloudsearch service config
|
|
23
|
+
*/
|
|
24
|
+
export const withCloudSearchServiceConfig: {
|
|
25
|
+
(config: CloudSearchService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
26
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: CloudSearchService.Config): Effect.Effect<A, E, R>;
|
|
27
|
+
} = dual(
|
|
28
|
+
2,
|
|
29
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: CloudSearchService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
+
Effect.locally(effect, currentCloudSearchServiceConfig, config),
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category cloudsearch service config
|
|
36
|
+
*/
|
|
37
|
+
export const setCloudSearchServiceConfig = (config: CloudSearchService.Config) =>
|
|
38
|
+
Layer.locallyScoped(currentCloudSearchServiceConfig, config);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category adapters
|
|
43
|
+
*/
|
|
44
|
+
export const toCloudSearchClientConfig: Effect.Effect<CloudSearchClientConfig> = Effect.gen(function*() {
|
|
45
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudSearchServiceConfig);
|
|
46
|
+
|
|
47
|
+
const logger = serviceLogger === true
|
|
48
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
49
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
50
|
+
|
|
51
|
+
return { logger, ...config };
|
|
52
|
+
});
|
package/src/Errors.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
BaseException,
|
|
3
|
+
DisabledOperationException,
|
|
4
|
+
InternalException,
|
|
5
|
+
InvalidTypeException,
|
|
6
|
+
LimitExceededException,
|
|
7
|
+
ResourceAlreadyExistsException,
|
|
8
|
+
ResourceNotFoundException,
|
|
9
|
+
ValidationException,
|
|
10
|
+
} from "@aws-sdk/client-cloudsearch";
|
|
11
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
12
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
13
|
+
|
|
14
|
+
export const AllServiceErrors = [
|
|
15
|
+
"BaseException",
|
|
16
|
+
"DisabledOperationException",
|
|
17
|
+
"InternalException",
|
|
18
|
+
"InvalidTypeException",
|
|
19
|
+
"LimitExceededException",
|
|
20
|
+
"ResourceAlreadyExistsException",
|
|
21
|
+
"ResourceNotFoundException",
|
|
22
|
+
"ValidationException",
|
|
23
|
+
] as const;
|
|
24
|
+
|
|
25
|
+
export type BaseError = TaggedException<BaseException>;
|
|
26
|
+
export type DisabledOperationError = TaggedException<DisabledOperationException>;
|
|
27
|
+
export type InternalError = TaggedException<InternalException>;
|
|
28
|
+
export type InvalidTypeError = TaggedException<InvalidTypeException>;
|
|
29
|
+
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
30
|
+
export type ResourceAlreadyExistsError = TaggedException<ResourceAlreadyExistsException>;
|
|
31
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
32
|
+
export type ValidationError = TaggedException<ValidationException>;
|
|
33
|
+
|
|
34
|
+
export type SdkError = CommonSdkError;
|
|
35
|
+
export const SdkError = CommonSdkError;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { CloudSearchService } from "./CloudSearchService.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
*/
|
|
9
|
+
export * from "./Errors.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @since 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
export * as CloudSearchClientInstance from "./CloudSearchClientInstance.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @since 1.0.0
|
|
18
|
+
*/
|
|
19
|
+
export * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
*/
|
|
24
|
+
export * from "./CloudSearchService.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @since 1.0.0
|
|
28
|
+
* @category exports
|
|
29
|
+
* @alias CloudSearchService
|
|
30
|
+
*/
|
|
31
|
+
export declare namespace CloudSearch {
|
|
32
|
+
/**
|
|
33
|
+
* @since 1.0.0
|
|
34
|
+
* @alias CloudSearchService.Config
|
|
35
|
+
*/
|
|
36
|
+
export type Config = CloudSearchService.Config;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @since 1.0.0
|
|
41
|
+
* @category exports
|
|
42
|
+
* @alias CloudSearchService
|
|
43
|
+
*/
|
|
44
|
+
export const CloudSearch = CloudSearchService;
|
package/CHANGELOG.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# @effect-aws/client-cloudsearch
|
|
2
|
-
|
|
3
|
-
## 1.2.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#93](https://github.com/floydspace/effect-aws/pull/93) [`a96fbd8`](https://github.com/floydspace/effect-aws/commit/a96fbd8840a7a6cfb795a2a6ab96aa32d32a3525) Thanks [@godu](https://github.com/godu)! - Destroy client after layer lifecycle to release idle connections.
|
|
8
|
-
|
|
9
|
-
## 1.1.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- [#80](https://github.com/floydspace/effect-aws/pull/80) [`4b16fbe`](https://github.com/floydspace/effect-aws/commit/4b16fbebce8131df7798ee92f43cf6b7df3e907c) Thanks [@floydspace](https://github.com/floydspace)! - simplify layers configuration (closes #78)
|
|
14
|
-
|
|
15
|
-
## 1.0.1
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- [#75](https://github.com/floydspace/effect-aws/pull/75) [`9dc170d`](https://github.com/floydspace/effect-aws/commit/9dc170d975c04888bbc7ca7b241b4b5265668fb5) Thanks [@godu](https://github.com/godu)! - export the HttpHandlerOptions type
|
|
20
|
-
|
|
21
|
-
## 1.0.0
|
|
22
|
-
|
|
23
|
-
### Major Changes
|
|
24
|
-
|
|
25
|
-
- [#69](https://github.com/floydspace/effect-aws/pull/69) [`0cf6af5`](https://github.com/floydspace/effect-aws/commit/0cf6af591e45f0d8838b26493525db5ef389a90f) Thanks [@godu](https://github.com/godu)! - implement effectful account client
|
|
26
|
-
implement effectful cloudtrail client
|
|
27
|
-
implement effectful cloudwatch client
|
|
28
|
-
implement effectful cloudwatch-events client
|
|
29
|
-
implement effectful cloudwatch-logs client
|
|
30
|
-
implement effectful cognito-identity-provider client
|
|
31
|
-
implement effectful kms client
|
|
32
|
-
implement effectful mq client
|
|
33
|
-
implement effectful cloudsearch client
|
|
34
|
-
implement effectful rds client
|
|
35
|
-
implement effectful sts client
|