@aws-sdk/client-cloudsearch 3.183.0 → 3.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_query.js +2 -2
  3. package/dist-es/CloudSearch.js +113 -106
  4. package/dist-es/CloudSearchClient.js +28 -22
  5. package/dist-es/commands/BuildSuggestersCommand.js +28 -21
  6. package/dist-es/commands/CreateDomainCommand.js +28 -21
  7. package/dist-es/commands/DefineAnalysisSchemeCommand.js +28 -21
  8. package/dist-es/commands/DefineExpressionCommand.js +28 -21
  9. package/dist-es/commands/DefineIndexFieldCommand.js +28 -21
  10. package/dist-es/commands/DefineSuggesterCommand.js +28 -21
  11. package/dist-es/commands/DeleteAnalysisSchemeCommand.js +28 -21
  12. package/dist-es/commands/DeleteDomainCommand.js +28 -21
  13. package/dist-es/commands/DeleteExpressionCommand.js +28 -21
  14. package/dist-es/commands/DeleteIndexFieldCommand.js +28 -21
  15. package/dist-es/commands/DeleteSuggesterCommand.js +28 -21
  16. package/dist-es/commands/DescribeAnalysisSchemesCommand.js +28 -21
  17. package/dist-es/commands/DescribeAvailabilityOptionsCommand.js +28 -21
  18. package/dist-es/commands/DescribeDomainEndpointOptionsCommand.js +28 -21
  19. package/dist-es/commands/DescribeDomainsCommand.js +28 -21
  20. package/dist-es/commands/DescribeExpressionsCommand.js +28 -21
  21. package/dist-es/commands/DescribeIndexFieldsCommand.js +28 -21
  22. package/dist-es/commands/DescribeScalingParametersCommand.js +28 -21
  23. package/dist-es/commands/DescribeServiceAccessPoliciesCommand.js +28 -21
  24. package/dist-es/commands/DescribeSuggestersCommand.js +28 -21
  25. package/dist-es/commands/IndexDocumentsCommand.js +28 -21
  26. package/dist-es/commands/ListDomainNamesCommand.js +29 -22
  27. package/dist-es/commands/UpdateAvailabilityOptionsCommand.js +28 -21
  28. package/dist-es/commands/UpdateDomainEndpointOptionsCommand.js +28 -21
  29. package/dist-es/commands/UpdateScalingParametersCommand.js +28 -21
  30. package/dist-es/commands/UpdateServiceAccessPoliciesCommand.js +28 -21
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/CloudSearchServiceException.js +10 -5
  33. package/dist-es/models/models_0.js +187 -350
  34. package/dist-es/protocols/Aws_query.js +2483 -1887
  35. package/dist-es/runtimeConfig.browser.js +12 -26
  36. package/dist-es/runtimeConfig.js +12 -30
  37. package/dist-es/runtimeConfig.native.js +5 -8
  38. package/dist-es/runtimeConfig.shared.js +11 -8
  39. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cloudsearch
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-cloudsearch
@@ -3402,10 +3402,10 @@ const deserializeAws_queryValidationException = (output, context) => {
3402
3402
  return contents;
3403
3403
  };
3404
3404
  const deserializeMetadata = (output) => {
3405
- var _a;
3405
+ var _a, _b;
3406
3406
  return ({
3407
3407
  httpStatusCode: output.statusCode,
3408
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
3408
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
3409
3409
  extendedRequestId: output.headers["x-amz-id-2"],
3410
3410
  cfId: output.headers["x-amz-cf-id"],
3411
3411
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CloudSearchClient } from "./CloudSearchClient";
2
3
  import { BuildSuggestersCommand, } from "./commands/BuildSuggestersCommand";
3
4
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
@@ -25,369 +26,375 @@ 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";
28
- export class CloudSearch extends CloudSearchClient {
29
- buildSuggesters(args, optionsOrCb, cb) {
30
- const command = new BuildSuggestersCommand(args);
29
+ var CloudSearch = (function (_super) {
30
+ __extends(CloudSearch, _super);
31
+ function CloudSearch() {
32
+ return _super !== null && _super.apply(this, arguments) || this;
33
+ }
34
+ CloudSearch.prototype.buildSuggesters = function (args, optionsOrCb, cb) {
35
+ var command = new BuildSuggestersCommand(args);
31
36
  if (typeof optionsOrCb === "function") {
32
37
  this.send(command, optionsOrCb);
33
38
  }
34
39
  else if (typeof cb === "function") {
35
40
  if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
42
  this.send(command, optionsOrCb || {}, cb);
38
43
  }
39
44
  else {
40
45
  return this.send(command, optionsOrCb);
41
46
  }
42
- }
43
- createDomain(args, optionsOrCb, cb) {
44
- const command = new CreateDomainCommand(args);
47
+ };
48
+ CloudSearch.prototype.createDomain = function (args, optionsOrCb, cb) {
49
+ var command = new CreateDomainCommand(args);
45
50
  if (typeof optionsOrCb === "function") {
46
51
  this.send(command, optionsOrCb);
47
52
  }
48
53
  else if (typeof cb === "function") {
49
54
  if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
56
  this.send(command, optionsOrCb || {}, cb);
52
57
  }
53
58
  else {
54
59
  return this.send(command, optionsOrCb);
55
60
  }
56
- }
57
- defineAnalysisScheme(args, optionsOrCb, cb) {
58
- const command = new DefineAnalysisSchemeCommand(args);
61
+ };
62
+ CloudSearch.prototype.defineAnalysisScheme = function (args, optionsOrCb, cb) {
63
+ var command = new DefineAnalysisSchemeCommand(args);
59
64
  if (typeof optionsOrCb === "function") {
60
65
  this.send(command, optionsOrCb);
61
66
  }
62
67
  else if (typeof cb === "function") {
63
68
  if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
70
  this.send(command, optionsOrCb || {}, cb);
66
71
  }
67
72
  else {
68
73
  return this.send(command, optionsOrCb);
69
74
  }
70
- }
71
- defineExpression(args, optionsOrCb, cb) {
72
- const command = new DefineExpressionCommand(args);
75
+ };
76
+ CloudSearch.prototype.defineExpression = function (args, optionsOrCb, cb) {
77
+ var command = new DefineExpressionCommand(args);
73
78
  if (typeof optionsOrCb === "function") {
74
79
  this.send(command, optionsOrCb);
75
80
  }
76
81
  else if (typeof cb === "function") {
77
82
  if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
84
  this.send(command, optionsOrCb || {}, cb);
80
85
  }
81
86
  else {
82
87
  return this.send(command, optionsOrCb);
83
88
  }
84
- }
85
- defineIndexField(args, optionsOrCb, cb) {
86
- const command = new DefineIndexFieldCommand(args);
89
+ };
90
+ CloudSearch.prototype.defineIndexField = function (args, optionsOrCb, cb) {
91
+ var command = new DefineIndexFieldCommand(args);
87
92
  if (typeof optionsOrCb === "function") {
88
93
  this.send(command, optionsOrCb);
89
94
  }
90
95
  else if (typeof cb === "function") {
91
96
  if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
98
  this.send(command, optionsOrCb || {}, cb);
94
99
  }
95
100
  else {
96
101
  return this.send(command, optionsOrCb);
97
102
  }
98
- }
99
- defineSuggester(args, optionsOrCb, cb) {
100
- const command = new DefineSuggesterCommand(args);
103
+ };
104
+ CloudSearch.prototype.defineSuggester = function (args, optionsOrCb, cb) {
105
+ var command = new DefineSuggesterCommand(args);
101
106
  if (typeof optionsOrCb === "function") {
102
107
  this.send(command, optionsOrCb);
103
108
  }
104
109
  else if (typeof cb === "function") {
105
110
  if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
112
  this.send(command, optionsOrCb || {}, cb);
108
113
  }
109
114
  else {
110
115
  return this.send(command, optionsOrCb);
111
116
  }
112
- }
113
- deleteAnalysisScheme(args, optionsOrCb, cb) {
114
- const command = new DeleteAnalysisSchemeCommand(args);
117
+ };
118
+ CloudSearch.prototype.deleteAnalysisScheme = function (args, optionsOrCb, cb) {
119
+ var command = new DeleteAnalysisSchemeCommand(args);
115
120
  if (typeof optionsOrCb === "function") {
116
121
  this.send(command, optionsOrCb);
117
122
  }
118
123
  else if (typeof cb === "function") {
119
124
  if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
126
  this.send(command, optionsOrCb || {}, cb);
122
127
  }
123
128
  else {
124
129
  return this.send(command, optionsOrCb);
125
130
  }
126
- }
127
- deleteDomain(args, optionsOrCb, cb) {
128
- const command = new DeleteDomainCommand(args);
131
+ };
132
+ CloudSearch.prototype.deleteDomain = function (args, optionsOrCb, cb) {
133
+ var command = new DeleteDomainCommand(args);
129
134
  if (typeof optionsOrCb === "function") {
130
135
  this.send(command, optionsOrCb);
131
136
  }
132
137
  else if (typeof cb === "function") {
133
138
  if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
140
  this.send(command, optionsOrCb || {}, cb);
136
141
  }
137
142
  else {
138
143
  return this.send(command, optionsOrCb);
139
144
  }
140
- }
141
- deleteExpression(args, optionsOrCb, cb) {
142
- const command = new DeleteExpressionCommand(args);
145
+ };
146
+ CloudSearch.prototype.deleteExpression = function (args, optionsOrCb, cb) {
147
+ var command = new DeleteExpressionCommand(args);
143
148
  if (typeof optionsOrCb === "function") {
144
149
  this.send(command, optionsOrCb);
145
150
  }
146
151
  else if (typeof cb === "function") {
147
152
  if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
154
  this.send(command, optionsOrCb || {}, cb);
150
155
  }
151
156
  else {
152
157
  return this.send(command, optionsOrCb);
153
158
  }
154
- }
155
- deleteIndexField(args, optionsOrCb, cb) {
156
- const command = new DeleteIndexFieldCommand(args);
159
+ };
160
+ CloudSearch.prototype.deleteIndexField = function (args, optionsOrCb, cb) {
161
+ var command = new DeleteIndexFieldCommand(args);
157
162
  if (typeof optionsOrCb === "function") {
158
163
  this.send(command, optionsOrCb);
159
164
  }
160
165
  else if (typeof cb === "function") {
161
166
  if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
168
  this.send(command, optionsOrCb || {}, cb);
164
169
  }
165
170
  else {
166
171
  return this.send(command, optionsOrCb);
167
172
  }
168
- }
169
- deleteSuggester(args, optionsOrCb, cb) {
170
- const command = new DeleteSuggesterCommand(args);
173
+ };
174
+ CloudSearch.prototype.deleteSuggester = function (args, optionsOrCb, cb) {
175
+ var command = new DeleteSuggesterCommand(args);
171
176
  if (typeof optionsOrCb === "function") {
172
177
  this.send(command, optionsOrCb);
173
178
  }
174
179
  else if (typeof cb === "function") {
175
180
  if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
182
  this.send(command, optionsOrCb || {}, cb);
178
183
  }
179
184
  else {
180
185
  return this.send(command, optionsOrCb);
181
186
  }
182
- }
183
- describeAnalysisSchemes(args, optionsOrCb, cb) {
184
- const command = new DescribeAnalysisSchemesCommand(args);
187
+ };
188
+ CloudSearch.prototype.describeAnalysisSchemes = function (args, optionsOrCb, cb) {
189
+ var command = new DescribeAnalysisSchemesCommand(args);
185
190
  if (typeof optionsOrCb === "function") {
186
191
  this.send(command, optionsOrCb);
187
192
  }
188
193
  else if (typeof cb === "function") {
189
194
  if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
196
  this.send(command, optionsOrCb || {}, cb);
192
197
  }
193
198
  else {
194
199
  return this.send(command, optionsOrCb);
195
200
  }
196
- }
197
- describeAvailabilityOptions(args, optionsOrCb, cb) {
198
- const command = new DescribeAvailabilityOptionsCommand(args);
201
+ };
202
+ CloudSearch.prototype.describeAvailabilityOptions = function (args, optionsOrCb, cb) {
203
+ var command = new DescribeAvailabilityOptionsCommand(args);
199
204
  if (typeof optionsOrCb === "function") {
200
205
  this.send(command, optionsOrCb);
201
206
  }
202
207
  else if (typeof cb === "function") {
203
208
  if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
210
  this.send(command, optionsOrCb || {}, cb);
206
211
  }
207
212
  else {
208
213
  return this.send(command, optionsOrCb);
209
214
  }
210
- }
211
- describeDomainEndpointOptions(args, optionsOrCb, cb) {
212
- const command = new DescribeDomainEndpointOptionsCommand(args);
215
+ };
216
+ CloudSearch.prototype.describeDomainEndpointOptions = function (args, optionsOrCb, cb) {
217
+ var command = new DescribeDomainEndpointOptionsCommand(args);
213
218
  if (typeof optionsOrCb === "function") {
214
219
  this.send(command, optionsOrCb);
215
220
  }
216
221
  else if (typeof cb === "function") {
217
222
  if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
224
  this.send(command, optionsOrCb || {}, cb);
220
225
  }
221
226
  else {
222
227
  return this.send(command, optionsOrCb);
223
228
  }
224
- }
225
- describeDomains(args, optionsOrCb, cb) {
226
- const command = new DescribeDomainsCommand(args);
229
+ };
230
+ CloudSearch.prototype.describeDomains = function (args, optionsOrCb, cb) {
231
+ var command = new DescribeDomainsCommand(args);
227
232
  if (typeof optionsOrCb === "function") {
228
233
  this.send(command, optionsOrCb);
229
234
  }
230
235
  else if (typeof cb === "function") {
231
236
  if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
238
  this.send(command, optionsOrCb || {}, cb);
234
239
  }
235
240
  else {
236
241
  return this.send(command, optionsOrCb);
237
242
  }
238
- }
239
- describeExpressions(args, optionsOrCb, cb) {
240
- const command = new DescribeExpressionsCommand(args);
243
+ };
244
+ CloudSearch.prototype.describeExpressions = function (args, optionsOrCb, cb) {
245
+ var command = new DescribeExpressionsCommand(args);
241
246
  if (typeof optionsOrCb === "function") {
242
247
  this.send(command, optionsOrCb);
243
248
  }
244
249
  else if (typeof cb === "function") {
245
250
  if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
251
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
252
  this.send(command, optionsOrCb || {}, cb);
248
253
  }
249
254
  else {
250
255
  return this.send(command, optionsOrCb);
251
256
  }
252
- }
253
- describeIndexFields(args, optionsOrCb, cb) {
254
- const command = new DescribeIndexFieldsCommand(args);
257
+ };
258
+ CloudSearch.prototype.describeIndexFields = function (args, optionsOrCb, cb) {
259
+ var command = new DescribeIndexFieldsCommand(args);
255
260
  if (typeof optionsOrCb === "function") {
256
261
  this.send(command, optionsOrCb);
257
262
  }
258
263
  else if (typeof cb === "function") {
259
264
  if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
265
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
266
  this.send(command, optionsOrCb || {}, cb);
262
267
  }
263
268
  else {
264
269
  return this.send(command, optionsOrCb);
265
270
  }
266
- }
267
- describeScalingParameters(args, optionsOrCb, cb) {
268
- const command = new DescribeScalingParametersCommand(args);
271
+ };
272
+ CloudSearch.prototype.describeScalingParameters = function (args, optionsOrCb, cb) {
273
+ var command = new DescribeScalingParametersCommand(args);
269
274
  if (typeof optionsOrCb === "function") {
270
275
  this.send(command, optionsOrCb);
271
276
  }
272
277
  else if (typeof cb === "function") {
273
278
  if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
280
  this.send(command, optionsOrCb || {}, cb);
276
281
  }
277
282
  else {
278
283
  return this.send(command, optionsOrCb);
279
284
  }
280
- }
281
- describeServiceAccessPolicies(args, optionsOrCb, cb) {
282
- const command = new DescribeServiceAccessPoliciesCommand(args);
285
+ };
286
+ CloudSearch.prototype.describeServiceAccessPolicies = function (args, optionsOrCb, cb) {
287
+ var command = new DescribeServiceAccessPoliciesCommand(args);
283
288
  if (typeof optionsOrCb === "function") {
284
289
  this.send(command, optionsOrCb);
285
290
  }
286
291
  else if (typeof cb === "function") {
287
292
  if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
294
  this.send(command, optionsOrCb || {}, cb);
290
295
  }
291
296
  else {
292
297
  return this.send(command, optionsOrCb);
293
298
  }
294
- }
295
- describeSuggesters(args, optionsOrCb, cb) {
296
- const command = new DescribeSuggestersCommand(args);
299
+ };
300
+ CloudSearch.prototype.describeSuggesters = function (args, optionsOrCb, cb) {
301
+ var command = new DescribeSuggestersCommand(args);
297
302
  if (typeof optionsOrCb === "function") {
298
303
  this.send(command, optionsOrCb);
299
304
  }
300
305
  else if (typeof cb === "function") {
301
306
  if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
308
  this.send(command, optionsOrCb || {}, cb);
304
309
  }
305
310
  else {
306
311
  return this.send(command, optionsOrCb);
307
312
  }
308
- }
309
- indexDocuments(args, optionsOrCb, cb) {
310
- const command = new IndexDocumentsCommand(args);
313
+ };
314
+ CloudSearch.prototype.indexDocuments = function (args, optionsOrCb, cb) {
315
+ var command = new IndexDocumentsCommand(args);
311
316
  if (typeof optionsOrCb === "function") {
312
317
  this.send(command, optionsOrCb);
313
318
  }
314
319
  else if (typeof cb === "function") {
315
320
  if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
322
  this.send(command, optionsOrCb || {}, cb);
318
323
  }
319
324
  else {
320
325
  return this.send(command, optionsOrCb);
321
326
  }
322
- }
323
- listDomainNames(args, optionsOrCb, cb) {
324
- const command = new ListDomainNamesCommand(args);
327
+ };
328
+ CloudSearch.prototype.listDomainNames = function (args, optionsOrCb, cb) {
329
+ var command = new ListDomainNamesCommand(args);
325
330
  if (typeof optionsOrCb === "function") {
326
331
  this.send(command, optionsOrCb);
327
332
  }
328
333
  else if (typeof cb === "function") {
329
334
  if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
335
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
336
  this.send(command, optionsOrCb || {}, cb);
332
337
  }
333
338
  else {
334
339
  return this.send(command, optionsOrCb);
335
340
  }
336
- }
337
- updateAvailabilityOptions(args, optionsOrCb, cb) {
338
- const command = new UpdateAvailabilityOptionsCommand(args);
341
+ };
342
+ CloudSearch.prototype.updateAvailabilityOptions = function (args, optionsOrCb, cb) {
343
+ var command = new UpdateAvailabilityOptionsCommand(args);
339
344
  if (typeof optionsOrCb === "function") {
340
345
  this.send(command, optionsOrCb);
341
346
  }
342
347
  else if (typeof cb === "function") {
343
348
  if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
349
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
350
  this.send(command, optionsOrCb || {}, cb);
346
351
  }
347
352
  else {
348
353
  return this.send(command, optionsOrCb);
349
354
  }
350
- }
351
- updateDomainEndpointOptions(args, optionsOrCb, cb) {
352
- const command = new UpdateDomainEndpointOptionsCommand(args);
355
+ };
356
+ CloudSearch.prototype.updateDomainEndpointOptions = function (args, optionsOrCb, cb) {
357
+ var command = new UpdateDomainEndpointOptionsCommand(args);
353
358
  if (typeof optionsOrCb === "function") {
354
359
  this.send(command, optionsOrCb);
355
360
  }
356
361
  else if (typeof cb === "function") {
357
362
  if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
364
  this.send(command, optionsOrCb || {}, cb);
360
365
  }
361
366
  else {
362
367
  return this.send(command, optionsOrCb);
363
368
  }
364
- }
365
- updateScalingParameters(args, optionsOrCb, cb) {
366
- const command = new UpdateScalingParametersCommand(args);
369
+ };
370
+ CloudSearch.prototype.updateScalingParameters = function (args, optionsOrCb, cb) {
371
+ var command = new UpdateScalingParametersCommand(args);
367
372
  if (typeof optionsOrCb === "function") {
368
373
  this.send(command, optionsOrCb);
369
374
  }
370
375
  else if (typeof cb === "function") {
371
376
  if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
378
  this.send(command, optionsOrCb || {}, cb);
374
379
  }
375
380
  else {
376
381
  return this.send(command, optionsOrCb);
377
382
  }
378
- }
379
- updateServiceAccessPolicies(args, optionsOrCb, cb) {
380
- const command = new UpdateServiceAccessPoliciesCommand(args);
383
+ };
384
+ CloudSearch.prototype.updateServiceAccessPolicies = function (args, optionsOrCb, cb) {
385
+ var command = new UpdateServiceAccessPoliciesCommand(args);
381
386
  if (typeof optionsOrCb === "function") {
382
387
  this.send(command, optionsOrCb);
383
388
  }
384
389
  else if (typeof cb === "function") {
385
390
  if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
392
  this.send(command, optionsOrCb || {}, cb);
388
393
  }
389
394
  else {
390
395
  return this.send(command, optionsOrCb);
391
396
  }
392
- }
393
- }
397
+ };
398
+ return CloudSearch;
399
+ }(CloudSearchClient));
400
+ export { CloudSearch };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class CloudSearchClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var CloudSearchClient = (function (_super) {
13
+ __extends(CloudSearchClient, _super);
14
+ function CloudSearchClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ CloudSearchClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return CloudSearchClient;
38
+ }(__Client));
39
+ export { CloudSearchClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { BuildSuggestersRequestFilterSensitiveLog, BuildSuggestersResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_queryBuildSuggestersCommand, serializeAws_queryBuildSuggestersCommand, } from "../protocols/Aws_query";
5
- export class BuildSuggestersCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var BuildSuggestersCommand = (function (_super) {
7
+ __extends(BuildSuggestersCommand, _super);
8
+ function BuildSuggestersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ BuildSuggestersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudSearchClient";
15
- const commandName = "BuildSuggestersCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudSearchClient";
18
+ var commandName = "BuildSuggestersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: BuildSuggestersRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: BuildSuggestersResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BuildSuggestersCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_queryBuildSuggestersCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ BuildSuggestersCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_queryBuildSuggestersCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return BuildSuggestersCommand;
38
+ }($Command));
39
+ export { BuildSuggestersCommand };