@aws-sdk/client-cloudsearch 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CloudSearch = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CloudSearchClient_1 = require("./CloudSearchClient");
5
6
  const BuildSuggestersCommand_1 = require("./commands/BuildSuggestersCommand");
6
7
  const CreateDomainCommand_1 = require("./commands/CreateDomainCommand");
@@ -28,370 +29,35 @@ const UpdateAvailabilityOptionsCommand_1 = require("./commands/UpdateAvailabilit
28
29
  const UpdateDomainEndpointOptionsCommand_1 = require("./commands/UpdateDomainEndpointOptionsCommand");
29
30
  const UpdateScalingParametersCommand_1 = require("./commands/UpdateScalingParametersCommand");
30
31
  const UpdateServiceAccessPoliciesCommand_1 = require("./commands/UpdateServiceAccessPoliciesCommand");
32
+ const commands = {
33
+ BuildSuggestersCommand: BuildSuggestersCommand_1.BuildSuggestersCommand,
34
+ CreateDomainCommand: CreateDomainCommand_1.CreateDomainCommand,
35
+ DefineAnalysisSchemeCommand: DefineAnalysisSchemeCommand_1.DefineAnalysisSchemeCommand,
36
+ DefineExpressionCommand: DefineExpressionCommand_1.DefineExpressionCommand,
37
+ DefineIndexFieldCommand: DefineIndexFieldCommand_1.DefineIndexFieldCommand,
38
+ DefineSuggesterCommand: DefineSuggesterCommand_1.DefineSuggesterCommand,
39
+ DeleteAnalysisSchemeCommand: DeleteAnalysisSchemeCommand_1.DeleteAnalysisSchemeCommand,
40
+ DeleteDomainCommand: DeleteDomainCommand_1.DeleteDomainCommand,
41
+ DeleteExpressionCommand: DeleteExpressionCommand_1.DeleteExpressionCommand,
42
+ DeleteIndexFieldCommand: DeleteIndexFieldCommand_1.DeleteIndexFieldCommand,
43
+ DeleteSuggesterCommand: DeleteSuggesterCommand_1.DeleteSuggesterCommand,
44
+ DescribeAnalysisSchemesCommand: DescribeAnalysisSchemesCommand_1.DescribeAnalysisSchemesCommand,
45
+ DescribeAvailabilityOptionsCommand: DescribeAvailabilityOptionsCommand_1.DescribeAvailabilityOptionsCommand,
46
+ DescribeDomainEndpointOptionsCommand: DescribeDomainEndpointOptionsCommand_1.DescribeDomainEndpointOptionsCommand,
47
+ DescribeDomainsCommand: DescribeDomainsCommand_1.DescribeDomainsCommand,
48
+ DescribeExpressionsCommand: DescribeExpressionsCommand_1.DescribeExpressionsCommand,
49
+ DescribeIndexFieldsCommand: DescribeIndexFieldsCommand_1.DescribeIndexFieldsCommand,
50
+ DescribeScalingParametersCommand: DescribeScalingParametersCommand_1.DescribeScalingParametersCommand,
51
+ DescribeServiceAccessPoliciesCommand: DescribeServiceAccessPoliciesCommand_1.DescribeServiceAccessPoliciesCommand,
52
+ DescribeSuggestersCommand: DescribeSuggestersCommand_1.DescribeSuggestersCommand,
53
+ IndexDocumentsCommand: IndexDocumentsCommand_1.IndexDocumentsCommand,
54
+ ListDomainNamesCommand: ListDomainNamesCommand_1.ListDomainNamesCommand,
55
+ UpdateAvailabilityOptionsCommand: UpdateAvailabilityOptionsCommand_1.UpdateAvailabilityOptionsCommand,
56
+ UpdateDomainEndpointOptionsCommand: UpdateDomainEndpointOptionsCommand_1.UpdateDomainEndpointOptionsCommand,
57
+ UpdateScalingParametersCommand: UpdateScalingParametersCommand_1.UpdateScalingParametersCommand,
58
+ UpdateServiceAccessPoliciesCommand: UpdateServiceAccessPoliciesCommand_1.UpdateServiceAccessPoliciesCommand,
59
+ };
31
60
  class CloudSearch extends CloudSearchClient_1.CloudSearchClient {
32
- buildSuggesters(args, optionsOrCb, cb) {
33
- const command = new BuildSuggestersCommand_1.BuildSuggestersCommand(args);
34
- if (typeof optionsOrCb === "function") {
35
- this.send(command, optionsOrCb);
36
- }
37
- else if (typeof cb === "function") {
38
- if (typeof optionsOrCb !== "object")
39
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
- this.send(command, optionsOrCb || {}, cb);
41
- }
42
- else {
43
- return this.send(command, optionsOrCb);
44
- }
45
- }
46
- createDomain(args, optionsOrCb, cb) {
47
- const command = new CreateDomainCommand_1.CreateDomainCommand(args);
48
- if (typeof optionsOrCb === "function") {
49
- this.send(command, optionsOrCb);
50
- }
51
- else if (typeof cb === "function") {
52
- if (typeof optionsOrCb !== "object")
53
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
- this.send(command, optionsOrCb || {}, cb);
55
- }
56
- else {
57
- return this.send(command, optionsOrCb);
58
- }
59
- }
60
- defineAnalysisScheme(args, optionsOrCb, cb) {
61
- const command = new DefineAnalysisSchemeCommand_1.DefineAnalysisSchemeCommand(args);
62
- if (typeof optionsOrCb === "function") {
63
- this.send(command, optionsOrCb);
64
- }
65
- else if (typeof cb === "function") {
66
- if (typeof optionsOrCb !== "object")
67
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
- this.send(command, optionsOrCb || {}, cb);
69
- }
70
- else {
71
- return this.send(command, optionsOrCb);
72
- }
73
- }
74
- defineExpression(args, optionsOrCb, cb) {
75
- const command = new DefineExpressionCommand_1.DefineExpressionCommand(args);
76
- if (typeof optionsOrCb === "function") {
77
- this.send(command, optionsOrCb);
78
- }
79
- else if (typeof cb === "function") {
80
- if (typeof optionsOrCb !== "object")
81
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
- this.send(command, optionsOrCb || {}, cb);
83
- }
84
- else {
85
- return this.send(command, optionsOrCb);
86
- }
87
- }
88
- defineIndexField(args, optionsOrCb, cb) {
89
- const command = new DefineIndexFieldCommand_1.DefineIndexFieldCommand(args);
90
- if (typeof optionsOrCb === "function") {
91
- this.send(command, optionsOrCb);
92
- }
93
- else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object")
95
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
- this.send(command, optionsOrCb || {}, cb);
97
- }
98
- else {
99
- return this.send(command, optionsOrCb);
100
- }
101
- }
102
- defineSuggester(args, optionsOrCb, cb) {
103
- const command = new DefineSuggesterCommand_1.DefineSuggesterCommand(args);
104
- if (typeof optionsOrCb === "function") {
105
- this.send(command, optionsOrCb);
106
- }
107
- else if (typeof cb === "function") {
108
- if (typeof optionsOrCb !== "object")
109
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
- this.send(command, optionsOrCb || {}, cb);
111
- }
112
- else {
113
- return this.send(command, optionsOrCb);
114
- }
115
- }
116
- deleteAnalysisScheme(args, optionsOrCb, cb) {
117
- const command = new DeleteAnalysisSchemeCommand_1.DeleteAnalysisSchemeCommand(args);
118
- if (typeof optionsOrCb === "function") {
119
- this.send(command, optionsOrCb);
120
- }
121
- else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object")
123
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
- this.send(command, optionsOrCb || {}, cb);
125
- }
126
- else {
127
- return this.send(command, optionsOrCb);
128
- }
129
- }
130
- deleteDomain(args, optionsOrCb, cb) {
131
- const command = new DeleteDomainCommand_1.DeleteDomainCommand(args);
132
- if (typeof optionsOrCb === "function") {
133
- this.send(command, optionsOrCb);
134
- }
135
- else if (typeof cb === "function") {
136
- if (typeof optionsOrCb !== "object")
137
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
- this.send(command, optionsOrCb || {}, cb);
139
- }
140
- else {
141
- return this.send(command, optionsOrCb);
142
- }
143
- }
144
- deleteExpression(args, optionsOrCb, cb) {
145
- const command = new DeleteExpressionCommand_1.DeleteExpressionCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- deleteIndexField(args, optionsOrCb, cb) {
159
- const command = new DeleteIndexFieldCommand_1.DeleteIndexFieldCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- deleteSuggester(args, optionsOrCb, cb) {
173
- const command = new DeleteSuggesterCommand_1.DeleteSuggesterCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- describeAnalysisSchemes(args, optionsOrCb, cb) {
187
- const command = new DescribeAnalysisSchemesCommand_1.DescribeAnalysisSchemesCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- describeAvailabilityOptions(args, optionsOrCb, cb) {
201
- const command = new DescribeAvailabilityOptionsCommand_1.DescribeAvailabilityOptionsCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- describeDomainEndpointOptions(args, optionsOrCb, cb) {
215
- const command = new DescribeDomainEndpointOptionsCommand_1.DescribeDomainEndpointOptionsCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
- describeDomains(args, optionsOrCb, cb) {
229
- const command = new DescribeDomainsCommand_1.DescribeDomainsCommand(args);
230
- if (typeof optionsOrCb === "function") {
231
- this.send(command, optionsOrCb);
232
- }
233
- else if (typeof cb === "function") {
234
- if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
- this.send(command, optionsOrCb || {}, cb);
237
- }
238
- else {
239
- return this.send(command, optionsOrCb);
240
- }
241
- }
242
- describeExpressions(args, optionsOrCb, cb) {
243
- const command = new DescribeExpressionsCommand_1.DescribeExpressionsCommand(args);
244
- if (typeof optionsOrCb === "function") {
245
- this.send(command, optionsOrCb);
246
- }
247
- else if (typeof cb === "function") {
248
- if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
- this.send(command, optionsOrCb || {}, cb);
251
- }
252
- else {
253
- return this.send(command, optionsOrCb);
254
- }
255
- }
256
- describeIndexFields(args, optionsOrCb, cb) {
257
- const command = new DescribeIndexFieldsCommand_1.DescribeIndexFieldsCommand(args);
258
- if (typeof optionsOrCb === "function") {
259
- this.send(command, optionsOrCb);
260
- }
261
- else if (typeof cb === "function") {
262
- if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
- this.send(command, optionsOrCb || {}, cb);
265
- }
266
- else {
267
- return this.send(command, optionsOrCb);
268
- }
269
- }
270
- describeScalingParameters(args, optionsOrCb, cb) {
271
- const command = new DescribeScalingParametersCommand_1.DescribeScalingParametersCommand(args);
272
- if (typeof optionsOrCb === "function") {
273
- this.send(command, optionsOrCb);
274
- }
275
- else if (typeof cb === "function") {
276
- if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- }
280
- else {
281
- return this.send(command, optionsOrCb);
282
- }
283
- }
284
- describeServiceAccessPolicies(args, optionsOrCb, cb) {
285
- const command = new DescribeServiceAccessPoliciesCommand_1.DescribeServiceAccessPoliciesCommand(args);
286
- if (typeof optionsOrCb === "function") {
287
- this.send(command, optionsOrCb);
288
- }
289
- else if (typeof cb === "function") {
290
- if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
- this.send(command, optionsOrCb || {}, cb);
293
- }
294
- else {
295
- return this.send(command, optionsOrCb);
296
- }
297
- }
298
- describeSuggesters(args, optionsOrCb, cb) {
299
- const command = new DescribeSuggestersCommand_1.DescribeSuggestersCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- }
303
- else if (typeof cb === "function") {
304
- if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
- this.send(command, optionsOrCb || {}, cb);
307
- }
308
- else {
309
- return this.send(command, optionsOrCb);
310
- }
311
- }
312
- indexDocuments(args, optionsOrCb, cb) {
313
- const command = new IndexDocumentsCommand_1.IndexDocumentsCommand(args);
314
- if (typeof optionsOrCb === "function") {
315
- this.send(command, optionsOrCb);
316
- }
317
- else if (typeof cb === "function") {
318
- if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
- this.send(command, optionsOrCb || {}, cb);
321
- }
322
- else {
323
- return this.send(command, optionsOrCb);
324
- }
325
- }
326
- listDomainNames(args, optionsOrCb, cb) {
327
- const command = new ListDomainNamesCommand_1.ListDomainNamesCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- }
331
- else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
- this.send(command, optionsOrCb || {}, cb);
335
- }
336
- else {
337
- return this.send(command, optionsOrCb);
338
- }
339
- }
340
- updateAvailabilityOptions(args, optionsOrCb, cb) {
341
- const command = new UpdateAvailabilityOptionsCommand_1.UpdateAvailabilityOptionsCommand(args);
342
- if (typeof optionsOrCb === "function") {
343
- this.send(command, optionsOrCb);
344
- }
345
- else if (typeof cb === "function") {
346
- if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
- this.send(command, optionsOrCb || {}, cb);
349
- }
350
- else {
351
- return this.send(command, optionsOrCb);
352
- }
353
- }
354
- updateDomainEndpointOptions(args, optionsOrCb, cb) {
355
- const command = new UpdateDomainEndpointOptionsCommand_1.UpdateDomainEndpointOptionsCommand(args);
356
- if (typeof optionsOrCb === "function") {
357
- this.send(command, optionsOrCb);
358
- }
359
- else if (typeof cb === "function") {
360
- if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
- this.send(command, optionsOrCb || {}, cb);
363
- }
364
- else {
365
- return this.send(command, optionsOrCb);
366
- }
367
- }
368
- updateScalingParameters(args, optionsOrCb, cb) {
369
- const command = new UpdateScalingParametersCommand_1.UpdateScalingParametersCommand(args);
370
- if (typeof optionsOrCb === "function") {
371
- this.send(command, optionsOrCb);
372
- }
373
- else if (typeof cb === "function") {
374
- if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- }
378
- else {
379
- return this.send(command, optionsOrCb);
380
- }
381
- }
382
- updateServiceAccessPolicies(args, optionsOrCb, cb) {
383
- const command = new UpdateServiceAccessPoliciesCommand_1.UpdateServiceAccessPoliciesCommand(args);
384
- if (typeof optionsOrCb === "function") {
385
- this.send(command, optionsOrCb);
386
- }
387
- else if (typeof cb === "function") {
388
- if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
- this.send(command, optionsOrCb || {}, cb);
391
- }
392
- else {
393
- return this.send(command, optionsOrCb);
394
- }
395
- }
396
61
  }
397
62
  exports.CloudSearch = CloudSearch;
63
+ (0, smithy_client_1.createAggregatedClient)(commands, CloudSearch);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CloudSearchClient } from "./CloudSearchClient";
2
3
  import { BuildSuggestersCommand, } from "./commands/BuildSuggestersCommand";
3
4
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
@@ -25,369 +26,34 @@ import { UpdateAvailabilityOptionsCommand, } from "./commands/UpdateAvailability
25
26
  import { UpdateDomainEndpointOptionsCommand, } from "./commands/UpdateDomainEndpointOptionsCommand";
26
27
  import { UpdateScalingParametersCommand, } from "./commands/UpdateScalingParametersCommand";
27
28
  import { UpdateServiceAccessPoliciesCommand, } from "./commands/UpdateServiceAccessPoliciesCommand";
29
+ const commands = {
30
+ BuildSuggestersCommand,
31
+ CreateDomainCommand,
32
+ DefineAnalysisSchemeCommand,
33
+ DefineExpressionCommand,
34
+ DefineIndexFieldCommand,
35
+ DefineSuggesterCommand,
36
+ DeleteAnalysisSchemeCommand,
37
+ DeleteDomainCommand,
38
+ DeleteExpressionCommand,
39
+ DeleteIndexFieldCommand,
40
+ DeleteSuggesterCommand,
41
+ DescribeAnalysisSchemesCommand,
42
+ DescribeAvailabilityOptionsCommand,
43
+ DescribeDomainEndpointOptionsCommand,
44
+ DescribeDomainsCommand,
45
+ DescribeExpressionsCommand,
46
+ DescribeIndexFieldsCommand,
47
+ DescribeScalingParametersCommand,
48
+ DescribeServiceAccessPoliciesCommand,
49
+ DescribeSuggestersCommand,
50
+ IndexDocumentsCommand,
51
+ ListDomainNamesCommand,
52
+ UpdateAvailabilityOptionsCommand,
53
+ UpdateDomainEndpointOptionsCommand,
54
+ UpdateScalingParametersCommand,
55
+ UpdateServiceAccessPoliciesCommand,
56
+ };
28
57
  export class CloudSearch extends CloudSearchClient {
29
- buildSuggesters(args, optionsOrCb, cb) {
30
- const command = new BuildSuggestersCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- createDomain(args, optionsOrCb, cb) {
44
- const command = new CreateDomainCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- defineAnalysisScheme(args, optionsOrCb, cb) {
58
- const command = new DefineAnalysisSchemeCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- defineExpression(args, optionsOrCb, cb) {
72
- const command = new DefineExpressionCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- defineIndexField(args, optionsOrCb, cb) {
86
- const command = new DefineIndexFieldCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- defineSuggester(args, optionsOrCb, cb) {
100
- const command = new DefineSuggesterCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- deleteAnalysisScheme(args, optionsOrCb, cb) {
114
- const command = new DeleteAnalysisSchemeCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- deleteDomain(args, optionsOrCb, cb) {
128
- const command = new DeleteDomainCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- deleteExpression(args, optionsOrCb, cb) {
142
- const command = new DeleteExpressionCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- deleteIndexField(args, optionsOrCb, cb) {
156
- const command = new DeleteIndexFieldCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- deleteSuggester(args, optionsOrCb, cb) {
170
- const command = new DeleteSuggesterCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- describeAnalysisSchemes(args, optionsOrCb, cb) {
184
- const command = new DescribeAnalysisSchemesCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- describeAvailabilityOptions(args, optionsOrCb, cb) {
198
- const command = new DescribeAvailabilityOptionsCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- describeDomainEndpointOptions(args, optionsOrCb, cb) {
212
- const command = new DescribeDomainEndpointOptionsCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- describeDomains(args, optionsOrCb, cb) {
226
- const command = new DescribeDomainsCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- describeExpressions(args, optionsOrCb, cb) {
240
- const command = new DescribeExpressionsCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- describeIndexFields(args, optionsOrCb, cb) {
254
- const command = new DescribeIndexFieldsCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- describeScalingParameters(args, optionsOrCb, cb) {
268
- const command = new DescribeScalingParametersCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- describeServiceAccessPolicies(args, optionsOrCb, cb) {
282
- const command = new DescribeServiceAccessPoliciesCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- describeSuggesters(args, optionsOrCb, cb) {
296
- const command = new DescribeSuggestersCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- indexDocuments(args, optionsOrCb, cb) {
310
- const command = new IndexDocumentsCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- listDomainNames(args, optionsOrCb, cb) {
324
- const command = new ListDomainNamesCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- updateAvailabilityOptions(args, optionsOrCb, cb) {
338
- const command = new UpdateAvailabilityOptionsCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
- updateDomainEndpointOptions(args, optionsOrCb, cb) {
352
- const command = new UpdateDomainEndpointOptionsCommand(args);
353
- if (typeof optionsOrCb === "function") {
354
- this.send(command, optionsOrCb);
355
- }
356
- else if (typeof cb === "function") {
357
- if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
359
- this.send(command, optionsOrCb || {}, cb);
360
- }
361
- else {
362
- return this.send(command, optionsOrCb);
363
- }
364
- }
365
- updateScalingParameters(args, optionsOrCb, cb) {
366
- const command = new UpdateScalingParametersCommand(args);
367
- if (typeof optionsOrCb === "function") {
368
- this.send(command, optionsOrCb);
369
- }
370
- else if (typeof cb === "function") {
371
- if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
- this.send(command, optionsOrCb || {}, cb);
374
- }
375
- else {
376
- return this.send(command, optionsOrCb);
377
- }
378
- }
379
- updateServiceAccessPolicies(args, optionsOrCb, cb) {
380
- const command = new UpdateServiceAccessPoliciesCommand(args);
381
- if (typeof optionsOrCb === "function") {
382
- this.send(command, optionsOrCb);
383
- }
384
- else if (typeof cb === "function") {
385
- if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
387
- this.send(command, optionsOrCb || {}, cb);
388
- }
389
- else {
390
- return this.send(command, optionsOrCb);
391
- }
392
- }
393
58
  }
59
+ createAggregatedClient(commands, CloudSearch);
@@ -26,206 +26,173 @@ import { UpdateAvailabilityOptionsCommandInput, UpdateAvailabilityOptionsCommand
26
26
  import { UpdateDomainEndpointOptionsCommandInput, UpdateDomainEndpointOptionsCommandOutput } from "./commands/UpdateDomainEndpointOptionsCommand";
27
27
  import { UpdateScalingParametersCommandInput, UpdateScalingParametersCommandOutput } from "./commands/UpdateScalingParametersCommand";
28
28
  import { UpdateServiceAccessPoliciesCommandInput, UpdateServiceAccessPoliciesCommandOutput } from "./commands/UpdateServiceAccessPoliciesCommand";
29
- /**
30
- * @public
31
- * <fullname>Amazon CloudSearch Configuration Service</fullname>
32
- * <p>You use the Amazon CloudSearch configuration service to create, configure, and manage search domains.
33
- * Configuration service requests are submitted using the AWS Query protocol. AWS Query requests
34
- * are HTTP or HTTPS requests submitted via HTTP GET or POST with a query parameter named Action.</p>
35
- * <p>The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com.
36
- * For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported regions and endpoints,
37
- * see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" target="_blank">Regions and Endpoints</a>.</p>
38
- */
39
- export declare class CloudSearch extends CloudSearchClient {
29
+ export interface CloudSearch {
40
30
  /**
41
- * @public
42
- * <p>Indexes the search suggestions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters">Configuring Suggesters</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
31
+ * @see {@link BuildSuggestersCommand}
43
32
  */
44
33
  buildSuggesters(args: BuildSuggestersCommandInput, options?: __HttpHandlerOptions): Promise<BuildSuggestersCommandOutput>;
45
34
  buildSuggesters(args: BuildSuggestersCommandInput, cb: (err: any, data?: BuildSuggestersCommandOutput) => void): void;
46
35
  buildSuggesters(args: BuildSuggestersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BuildSuggestersCommandOutput) => void): void;
47
36
  /**
48
- * @public
49
- * <p>Creates a new search domain. For more information,
50
- * see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html" target="_blank">Creating a Search Domain</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
37
+ * @see {@link CreateDomainCommand}
51
38
  */
52
39
  createDomain(args: CreateDomainCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainCommandOutput>;
53
40
  createDomain(args: CreateDomainCommandInput, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
54
41
  createDomain(args: CreateDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
55
42
  /**
56
- * @public
57
- * <p>Configures an analysis scheme that can be applied to a <code>text</code> or <code>text-array</code> field to define language-specific text processing options. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
43
+ * @see {@link DefineAnalysisSchemeCommand}
58
44
  */
59
45
  defineAnalysisScheme(args: DefineAnalysisSchemeCommandInput, options?: __HttpHandlerOptions): Promise<DefineAnalysisSchemeCommandOutput>;
60
46
  defineAnalysisScheme(args: DefineAnalysisSchemeCommandInput, cb: (err: any, data?: DefineAnalysisSchemeCommandOutput) => void): void;
61
47
  defineAnalysisScheme(args: DefineAnalysisSchemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DefineAnalysisSchemeCommandOutput) => void): void;
62
48
  /**
63
- * @public
64
- * <p>Configures an <code><a>Expression</a></code> for the search domain. Used to create new expressions and modify existing ones. If the expression exists, the new configuration replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
49
+ * @see {@link DefineExpressionCommand}
65
50
  */
66
51
  defineExpression(args: DefineExpressionCommandInput, options?: __HttpHandlerOptions): Promise<DefineExpressionCommandOutput>;
67
52
  defineExpression(args: DefineExpressionCommandInput, cb: (err: any, data?: DefineExpressionCommandOutput) => void): void;
68
53
  defineExpression(args: DefineExpressionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DefineExpressionCommandOutput) => void): void;
69
54
  /**
70
- * @public
71
- * <p>Configures an <code><a>IndexField</a></code> for the search domain. Used to create new fields and modify existing ones. You must specify the name of the domain you are configuring and an index field configuration. The index field configuration specifies a unique name, the index field type, and the options you want to configure for the field. The options you can specify depend on the <code><a>IndexFieldType</a></code>. If the field exists, the new configuration replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
55
+ * @see {@link DefineIndexFieldCommand}
72
56
  */
73
57
  defineIndexField(args: DefineIndexFieldCommandInput, options?: __HttpHandlerOptions): Promise<DefineIndexFieldCommandOutput>;
74
58
  defineIndexField(args: DefineIndexFieldCommandInput, cb: (err: any, data?: DefineIndexFieldCommandOutput) => void): void;
75
59
  defineIndexField(args: DefineIndexFieldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DefineIndexFieldCommandOutput) => void): void;
76
60
  /**
77
- * @public
78
- * <p>Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
61
+ * @see {@link DefineSuggesterCommand}
79
62
  */
80
63
  defineSuggester(args: DefineSuggesterCommandInput, options?: __HttpHandlerOptions): Promise<DefineSuggesterCommandOutput>;
81
64
  defineSuggester(args: DefineSuggesterCommandInput, cb: (err: any, data?: DefineSuggesterCommandOutput) => void): void;
82
65
  defineSuggester(args: DefineSuggesterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DefineSuggesterCommandOutput) => void): void;
83
66
  /**
84
- * @public
85
- * <p>Deletes an analysis scheme. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
67
+ * @see {@link DeleteAnalysisSchemeCommand}
86
68
  */
87
69
  deleteAnalysisScheme(args: DeleteAnalysisSchemeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAnalysisSchemeCommandOutput>;
88
70
  deleteAnalysisScheme(args: DeleteAnalysisSchemeCommandInput, cb: (err: any, data?: DeleteAnalysisSchemeCommandOutput) => void): void;
89
71
  deleteAnalysisScheme(args: DeleteAnalysisSchemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAnalysisSchemeCommandOutput) => void): void;
90
72
  /**
91
- * @public
92
- * <p>Permanently deletes a search domain and all of its data. Once a domain has been deleted, it cannot be recovered. For more information,
93
- * see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html" target="_blank">Deleting a Search Domain</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
73
+ * @see {@link DeleteDomainCommand}
94
74
  */
95
75
  deleteDomain(args: DeleteDomainCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainCommandOutput>;
96
76
  deleteDomain(args: DeleteDomainCommandInput, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
97
77
  deleteDomain(args: DeleteDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
98
78
  /**
99
- * @public
100
- * <p>Removes an <code><a>Expression</a></code> from the search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
79
+ * @see {@link DeleteExpressionCommand}
101
80
  */
102
81
  deleteExpression(args: DeleteExpressionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteExpressionCommandOutput>;
103
82
  deleteExpression(args: DeleteExpressionCommandInput, cb: (err: any, data?: DeleteExpressionCommandOutput) => void): void;
104
83
  deleteExpression(args: DeleteExpressionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteExpressionCommandOutput) => void): void;
105
84
  /**
106
- * @public
107
- * <p>Removes an <code><a>IndexField</a></code> from the search domain. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html" target="_blank">Configuring Index Fields</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
85
+ * @see {@link DeleteIndexFieldCommand}
108
86
  */
109
87
  deleteIndexField(args: DeleteIndexFieldCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIndexFieldCommandOutput>;
110
88
  deleteIndexField(args: DeleteIndexFieldCommandInput, cb: (err: any, data?: DeleteIndexFieldCommandOutput) => void): void;
111
89
  deleteIndexField(args: DeleteIndexFieldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIndexFieldCommandOutput) => void): void;
112
90
  /**
113
- * @public
114
- * <p>Deletes a suggester. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
91
+ * @see {@link DeleteSuggesterCommand}
115
92
  */
116
93
  deleteSuggester(args: DeleteSuggesterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSuggesterCommandOutput>;
117
94
  deleteSuggester(args: DeleteSuggesterCommandInput, cb: (err: any, data?: DeleteSuggesterCommandOutput) => void): void;
118
95
  deleteSuggester(args: DeleteSuggesterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSuggesterCommandOutput) => void): void;
119
96
  /**
120
- * @public
121
- * <p>Gets the analysis schemes configured for a domain. An analysis scheme defines language-specific text processing options for a <code>text</code> field. Can be limited to specific analysis schemes by name. By default, shows all analysis schemes and includes any pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> to show the active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html" target="_blank">Configuring Analysis Schemes</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
97
+ * @see {@link DescribeAnalysisSchemesCommand}
122
98
  */
123
99
  describeAnalysisSchemes(args: DescribeAnalysisSchemesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAnalysisSchemesCommandOutput>;
124
100
  describeAnalysisSchemes(args: DescribeAnalysisSchemesCommandInput, cb: (err: any, data?: DescribeAnalysisSchemesCommandOutput) => void): void;
125
101
  describeAnalysisSchemes(args: DescribeAnalysisSchemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAnalysisSchemesCommandOutput) => void): void;
126
102
  /**
127
- * @public
128
- * <p>Gets the availability options configured for a domain. By default, shows the configuration with any pending changes. Set the <code>Deployed</code> option to <code>true</code> to show the active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
103
+ * @see {@link DescribeAvailabilityOptionsCommand}
129
104
  */
130
105
  describeAvailabilityOptions(args: DescribeAvailabilityOptionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAvailabilityOptionsCommandOutput>;
131
106
  describeAvailabilityOptions(args: DescribeAvailabilityOptionsCommandInput, cb: (err: any, data?: DescribeAvailabilityOptionsCommandOutput) => void): void;
132
107
  describeAvailabilityOptions(args: DescribeAvailabilityOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAvailabilityOptionsCommandOutput) => void): void;
133
108
  /**
134
- * @public
135
- * <p>Returns the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
109
+ * @see {@link DescribeDomainEndpointOptionsCommand}
136
110
  */
137
111
  describeDomainEndpointOptions(args: DescribeDomainEndpointOptionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainEndpointOptionsCommandOutput>;
138
112
  describeDomainEndpointOptions(args: DescribeDomainEndpointOptionsCommandInput, cb: (err: any, data?: DescribeDomainEndpointOptionsCommandOutput) => void): void;
139
113
  describeDomainEndpointOptions(args: DescribeDomainEndpointOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainEndpointOptionsCommandOutput) => void): void;
140
114
  /**
141
- * @public
142
- * <p>Gets information about the search domains owned by this account. Can be limited to specific domains. Shows
143
- * all domains by default. To get the number of searchable documents in a domain, use the console or submit a <code>matchall</code> request to your domain's search endpoint: <code>q=matchall&amp;q.parser=structured&amp;size=0</code>. For more information,
144
- * see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" target="_blank">Getting Information about a Search Domain</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
115
+ * @see {@link DescribeDomainsCommand}
145
116
  */
146
117
  describeDomains(args: DescribeDomainsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainsCommandOutput>;
147
118
  describeDomains(args: DescribeDomainsCommandInput, cb: (err: any, data?: DescribeDomainsCommandOutput) => void): void;
148
119
  describeDomains(args: DescribeDomainsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainsCommandOutput) => void): void;
149
120
  /**
150
- * @public
151
- * <p>Gets the expressions configured for the search domain. Can be limited to specific expressions by name. By default, shows all expressions and includes any pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> to show the active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
121
+ * @see {@link DescribeExpressionsCommand}
152
122
  */
153
123
  describeExpressions(args: DescribeExpressionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeExpressionsCommandOutput>;
154
124
  describeExpressions(args: DescribeExpressionsCommandInput, cb: (err: any, data?: DescribeExpressionsCommandOutput) => void): void;
155
125
  describeExpressions(args: DescribeExpressionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeExpressionsCommandOutput) => void): void;
156
126
  /**
157
- * @public
158
- * <p>Gets information about the index fields configured for the search domain.
159
- * Can be limited to specific fields by name. By default, shows all fields and includes any pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> to show the active configuration and exclude pending changes. For more information,
160
- * see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html" target="_blank">Getting Domain Information</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
127
+ * @see {@link DescribeIndexFieldsCommand}
161
128
  */
162
129
  describeIndexFields(args: DescribeIndexFieldsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIndexFieldsCommandOutput>;
163
130
  describeIndexFields(args: DescribeIndexFieldsCommandInput, cb: (err: any, data?: DescribeIndexFieldsCommandOutput) => void): void;
164
131
  describeIndexFields(args: DescribeIndexFieldsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIndexFieldsCommandOutput) => void): void;
165
132
  /**
166
- * @public
167
- * <p>Gets the scaling parameters configured for a domain. A domain's scaling parameters specify the desired search instance type and replication count. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
133
+ * @see {@link DescribeScalingParametersCommand}
168
134
  */
169
135
  describeScalingParameters(args: DescribeScalingParametersCommandInput, options?: __HttpHandlerOptions): Promise<DescribeScalingParametersCommandOutput>;
170
136
  describeScalingParameters(args: DescribeScalingParametersCommandInput, cb: (err: any, data?: DescribeScalingParametersCommandOutput) => void): void;
171
137
  describeScalingParameters(args: DescribeScalingParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeScalingParametersCommandOutput) => void): void;
172
138
  /**
173
- * @public
174
- * <p>Gets information about the access policies that control access to the domain's document and search endpoints. By default, shows the configuration with any pending changes. Set the <code>Deployed</code> option to <code>true</code> to show the active configuration and exclude pending changes. For more information,
175
- * see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" target="_blank">Configuring Access for a Search Domain</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
139
+ * @see {@link DescribeServiceAccessPoliciesCommand}
176
140
  */
177
141
  describeServiceAccessPolicies(args: DescribeServiceAccessPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeServiceAccessPoliciesCommandOutput>;
178
142
  describeServiceAccessPolicies(args: DescribeServiceAccessPoliciesCommandInput, cb: (err: any, data?: DescribeServiceAccessPoliciesCommandOutput) => void): void;
179
143
  describeServiceAccessPolicies(args: DescribeServiceAccessPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServiceAccessPoliciesCommandOutput) => void): void;
180
144
  /**
181
- * @public
182
- * <p>Gets the suggesters configured for a domain. A suggester enables you to display possible matches before users finish typing their queries. Can be limited to specific suggesters by name. By default, shows all suggesters and includes any pending changes to the configuration. Set the <code>Deployed</code> option to <code>true</code> to show the active configuration and exclude pending changes. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html" target="_blank">Getting Search Suggestions</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
145
+ * @see {@link DescribeSuggestersCommand}
183
146
  */
184
147
  describeSuggesters(args: DescribeSuggestersCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSuggestersCommandOutput>;
185
148
  describeSuggesters(args: DescribeSuggestersCommandInput, cb: (err: any, data?: DescribeSuggestersCommandOutput) => void): void;
186
149
  describeSuggesters(args: DescribeSuggestersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSuggestersCommandOutput) => void): void;
187
150
  /**
188
- * @public
189
- * <p>Tells the search domain to start indexing its documents using the latest indexing options. This operation must be invoked to activate options whose <a>OptionStatus</a> is <code>RequiresIndexDocuments</code>.</p>
151
+ * @see {@link IndexDocumentsCommand}
190
152
  */
191
153
  indexDocuments(args: IndexDocumentsCommandInput, options?: __HttpHandlerOptions): Promise<IndexDocumentsCommandOutput>;
192
154
  indexDocuments(args: IndexDocumentsCommandInput, cb: (err: any, data?: IndexDocumentsCommandOutput) => void): void;
193
155
  indexDocuments(args: IndexDocumentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IndexDocumentsCommandOutput) => void): void;
194
156
  /**
195
- * @public
196
- * <p>Lists all search domains owned by an account.</p>
157
+ * @see {@link ListDomainNamesCommand}
197
158
  */
198
159
  listDomainNames(args: ListDomainNamesCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainNamesCommandOutput>;
199
160
  listDomainNames(args: ListDomainNamesCommandInput, cb: (err: any, data?: ListDomainNamesCommandOutput) => void): void;
200
161
  listDomainNames(args: ListDomainNamesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDomainNamesCommandOutput) => void): void;
201
162
  /**
202
- * @public
203
- * <p>Configures the availability options for a domain. Enabling the Multi-AZ option expands an Amazon CloudSearch domain to an additional Availability Zone in the same Region to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ option can take about half an hour to become active. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html" target="_blank">Configuring Availability Options</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
163
+ * @see {@link UpdateAvailabilityOptionsCommand}
204
164
  */
205
165
  updateAvailabilityOptions(args: UpdateAvailabilityOptionsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAvailabilityOptionsCommandOutput>;
206
166
  updateAvailabilityOptions(args: UpdateAvailabilityOptionsCommandInput, cb: (err: any, data?: UpdateAvailabilityOptionsCommandOutput) => void): void;
207
167
  updateAvailabilityOptions(args: UpdateAvailabilityOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAvailabilityOptionsCommandOutput) => void): void;
208
168
  /**
209
- * @public
210
- * <p>Updates the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-domain-endpoint-options.html" target="_blank">Configuring Domain Endpoint Options</a> in the <i>Amazon CloudSearch Developer Guide</i>.</p>
169
+ * @see {@link UpdateDomainEndpointOptionsCommand}
211
170
  */
212
171
  updateDomainEndpointOptions(args: UpdateDomainEndpointOptionsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDomainEndpointOptionsCommandOutput>;
213
172
  updateDomainEndpointOptions(args: UpdateDomainEndpointOptionsCommandInput, cb: (err: any, data?: UpdateDomainEndpointOptionsCommandOutput) => void): void;
214
173
  updateDomainEndpointOptions(args: UpdateDomainEndpointOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDomainEndpointOptionsCommandOutput) => void): void;
215
174
  /**
216
- * @public
217
- * <p>Configures scaling parameters for a domain. A domain's scaling parameters specify the desired search instance type and replication count. Amazon CloudSearch will still automatically scale your domain based on the volume of data and traffic, but not below the desired instance type and replication count. If the Multi-AZ option is enabled, these values control the resources used per Availability Zone. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html" target="_blank">Configuring Scaling Options</a> in the <i>Amazon CloudSearch Developer Guide</i>. </p>
175
+ * @see {@link UpdateScalingParametersCommand}
218
176
  */
219
177
  updateScalingParameters(args: UpdateScalingParametersCommandInput, options?: __HttpHandlerOptions): Promise<UpdateScalingParametersCommandOutput>;
220
178
  updateScalingParameters(args: UpdateScalingParametersCommandInput, cb: (err: any, data?: UpdateScalingParametersCommandOutput) => void): void;
221
179
  updateScalingParameters(args: UpdateScalingParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateScalingParametersCommandOutput) => void): void;
222
180
  /**
223
- * @public
224
- * <p>Configures the access rules that control access to the domain's document and search endpoints.
225
- * For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html" target="_blank">
226
- * Configuring Access for an Amazon CloudSearch Domain</a>.</p>
181
+ * @see {@link UpdateServiceAccessPoliciesCommand}
227
182
  */
228
183
  updateServiceAccessPolicies(args: UpdateServiceAccessPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<UpdateServiceAccessPoliciesCommandOutput>;
229
184
  updateServiceAccessPolicies(args: UpdateServiceAccessPoliciesCommandInput, cb: (err: any, data?: UpdateServiceAccessPoliciesCommandOutput) => void): void;
230
185
  updateServiceAccessPolicies(args: UpdateServiceAccessPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateServiceAccessPoliciesCommandOutput) => void): void;
231
186
  }
187
+ /**
188
+ * @public
189
+ * <fullname>Amazon CloudSearch Configuration Service</fullname>
190
+ * <p>You use the Amazon CloudSearch configuration service to create, configure, and manage search domains.
191
+ * Configuration service requests are submitted using the AWS Query protocol. AWS Query requests
192
+ * are HTTP or HTTPS requests submitted via HTTP GET or POST with a query parameter named Action.</p>
193
+ * <p>The endpoint for configuration service requests is region-specific: cloudsearch.<i>region</i>.amazonaws.com.
194
+ * For example, cloudsearch.us-east-1.amazonaws.com. For a current list of supported regions and endpoints,
195
+ * see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#cloudsearch_region" target="_blank">Regions and Endpoints</a>.</p>
196
+ */
197
+ export declare class CloudSearch extends CloudSearchClient implements CloudSearch {
198
+ }
@@ -104,7 +104,7 @@ import {
104
104
  UpdateServiceAccessPoliciesCommandInput,
105
105
  UpdateServiceAccessPoliciesCommandOutput,
106
106
  } from "./commands/UpdateServiceAccessPoliciesCommand";
107
- export declare class CloudSearch extends CloudSearchClient {
107
+ export interface CloudSearch {
108
108
  buildSuggesters(
109
109
  args: BuildSuggestersCommandInput,
110
110
  options?: __HttpHandlerOptions
@@ -444,3 +444,6 @@ export declare class CloudSearch extends CloudSearchClient {
444
444
  cb: (err: any, data?: UpdateServiceAccessPoliciesCommandOutput) => void
445
445
  ): void;
446
446
  }
447
+ export declare class CloudSearch
448
+ extends CloudSearchClient
449
+ implements CloudSearch {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",