@aws-sdk/client-schemas 3.185.0 → 3.188.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 (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Schemas.js +126 -133
  3. package/dist-es/SchemasClient.js +22 -28
  4. package/dist-es/commands/CreateDiscovererCommand.js +21 -28
  5. package/dist-es/commands/CreateRegistryCommand.js +21 -28
  6. package/dist-es/commands/CreateSchemaCommand.js +21 -28
  7. package/dist-es/commands/DeleteDiscovererCommand.js +22 -29
  8. package/dist-es/commands/DeleteRegistryCommand.js +22 -29
  9. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -29
  10. package/dist-es/commands/DeleteSchemaCommand.js +22 -29
  11. package/dist-es/commands/DeleteSchemaVersionCommand.js +22 -29
  12. package/dist-es/commands/DescribeCodeBindingCommand.js +21 -28
  13. package/dist-es/commands/DescribeDiscovererCommand.js +21 -28
  14. package/dist-es/commands/DescribeRegistryCommand.js +21 -28
  15. package/dist-es/commands/DescribeSchemaCommand.js +21 -28
  16. package/dist-es/commands/ExportSchemaCommand.js +21 -28
  17. package/dist-es/commands/GetCodeBindingSourceCommand.js +21 -28
  18. package/dist-es/commands/GetDiscoveredSchemaCommand.js +21 -28
  19. package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
  20. package/dist-es/commands/ListDiscoverersCommand.js +21 -28
  21. package/dist-es/commands/ListRegistriesCommand.js +21 -28
  22. package/dist-es/commands/ListSchemaVersionsCommand.js +21 -28
  23. package/dist-es/commands/ListSchemasCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/PutCodeBindingCommand.js +21 -28
  26. package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
  27. package/dist-es/commands/SearchSchemasCommand.js +21 -28
  28. package/dist-es/commands/StartDiscovererCommand.js +21 -28
  29. package/dist-es/commands/StopDiscovererCommand.js +21 -28
  30. package/dist-es/commands/TagResourceCommand.js +22 -29
  31. package/dist-es/commands/UntagResourceCommand.js +22 -29
  32. package/dist-es/commands/UpdateDiscovererCommand.js +21 -28
  33. package/dist-es/commands/UpdateRegistryCommand.js +21 -28
  34. package/dist-es/commands/UpdateSchemaCommand.js +21 -28
  35. package/dist-es/endpoints.js +8 -8
  36. package/dist-es/models/SchemasServiceException.js +5 -10
  37. package/dist-es/models/models_0.js +313 -192
  38. package/dist-es/pagination/ListDiscoverersPaginator.js +25 -68
  39. package/dist-es/pagination/ListRegistriesPaginator.js +25 -68
  40. package/dist-es/pagination/ListSchemaVersionsPaginator.js +25 -68
  41. package/dist-es/pagination/ListSchemasPaginator.js +25 -68
  42. package/dist-es/pagination/SearchSchemasPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +2431 -3445
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/dist-es/waiters/waitForCodeBindingExists.js +48 -68
  49. package/package.json +34 -34
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-schemas
9
+
10
+
11
+
12
+
13
+
14
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-schemas
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
23
 
8
24
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateDiscovererCommand, } from "./commands/CreateDiscovererCommand";
3
2
  import { CreateRegistryCommand, } from "./commands/CreateRegistryCommand";
4
3
  import { CreateSchemaCommand, } from "./commands/CreateSchemaCommand";
@@ -31,445 +30,439 @@ import { UpdateDiscovererCommand, } from "./commands/UpdateDiscovererCommand";
31
30
  import { UpdateRegistryCommand, } from "./commands/UpdateRegistryCommand";
32
31
  import { UpdateSchemaCommand, } from "./commands/UpdateSchemaCommand";
33
32
  import { SchemasClient } from "./SchemasClient";
34
- var Schemas = (function (_super) {
35
- __extends(Schemas, _super);
36
- function Schemas() {
37
- return _super !== null && _super.apply(this, arguments) || this;
38
- }
39
- Schemas.prototype.createDiscoverer = function (args, optionsOrCb, cb) {
40
- var command = new CreateDiscovererCommand(args);
33
+ export class Schemas extends SchemasClient {
34
+ createDiscoverer(args, optionsOrCb, cb) {
35
+ const command = new CreateDiscovererCommand(args);
41
36
  if (typeof optionsOrCb === "function") {
42
37
  this.send(command, optionsOrCb);
43
38
  }
44
39
  else if (typeof cb === "function") {
45
40
  if (typeof optionsOrCb !== "object")
46
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
42
  this.send(command, optionsOrCb || {}, cb);
48
43
  }
49
44
  else {
50
45
  return this.send(command, optionsOrCb);
51
46
  }
52
- };
53
- Schemas.prototype.createRegistry = function (args, optionsOrCb, cb) {
54
- var command = new CreateRegistryCommand(args);
47
+ }
48
+ createRegistry(args, optionsOrCb, cb) {
49
+ const command = new CreateRegistryCommand(args);
55
50
  if (typeof optionsOrCb === "function") {
56
51
  this.send(command, optionsOrCb);
57
52
  }
58
53
  else if (typeof cb === "function") {
59
54
  if (typeof optionsOrCb !== "object")
60
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
55
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
56
  this.send(command, optionsOrCb || {}, cb);
62
57
  }
63
58
  else {
64
59
  return this.send(command, optionsOrCb);
65
60
  }
66
- };
67
- Schemas.prototype.createSchema = function (args, optionsOrCb, cb) {
68
- var command = new CreateSchemaCommand(args);
61
+ }
62
+ createSchema(args, optionsOrCb, cb) {
63
+ const command = new CreateSchemaCommand(args);
69
64
  if (typeof optionsOrCb === "function") {
70
65
  this.send(command, optionsOrCb);
71
66
  }
72
67
  else if (typeof cb === "function") {
73
68
  if (typeof optionsOrCb !== "object")
74
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
69
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
70
  this.send(command, optionsOrCb || {}, cb);
76
71
  }
77
72
  else {
78
73
  return this.send(command, optionsOrCb);
79
74
  }
80
- };
81
- Schemas.prototype.deleteDiscoverer = function (args, optionsOrCb, cb) {
82
- var command = new DeleteDiscovererCommand(args);
75
+ }
76
+ deleteDiscoverer(args, optionsOrCb, cb) {
77
+ const command = new DeleteDiscovererCommand(args);
83
78
  if (typeof optionsOrCb === "function") {
84
79
  this.send(command, optionsOrCb);
85
80
  }
86
81
  else if (typeof cb === "function") {
87
82
  if (typeof optionsOrCb !== "object")
88
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
84
  this.send(command, optionsOrCb || {}, cb);
90
85
  }
91
86
  else {
92
87
  return this.send(command, optionsOrCb);
93
88
  }
94
- };
95
- Schemas.prototype.deleteRegistry = function (args, optionsOrCb, cb) {
96
- var command = new DeleteRegistryCommand(args);
89
+ }
90
+ deleteRegistry(args, optionsOrCb, cb) {
91
+ const command = new DeleteRegistryCommand(args);
97
92
  if (typeof optionsOrCb === "function") {
98
93
  this.send(command, optionsOrCb);
99
94
  }
100
95
  else if (typeof cb === "function") {
101
96
  if (typeof optionsOrCb !== "object")
102
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
98
  this.send(command, optionsOrCb || {}, cb);
104
99
  }
105
100
  else {
106
101
  return this.send(command, optionsOrCb);
107
102
  }
108
- };
109
- Schemas.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
110
- var command = new DeleteResourcePolicyCommand(args);
103
+ }
104
+ deleteResourcePolicy(args, optionsOrCb, cb) {
105
+ const command = new DeleteResourcePolicyCommand(args);
111
106
  if (typeof optionsOrCb === "function") {
112
107
  this.send(command, optionsOrCb);
113
108
  }
114
109
  else if (typeof cb === "function") {
115
110
  if (typeof optionsOrCb !== "object")
116
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
112
  this.send(command, optionsOrCb || {}, cb);
118
113
  }
119
114
  else {
120
115
  return this.send(command, optionsOrCb);
121
116
  }
122
- };
123
- Schemas.prototype.deleteSchema = function (args, optionsOrCb, cb) {
124
- var command = new DeleteSchemaCommand(args);
117
+ }
118
+ deleteSchema(args, optionsOrCb, cb) {
119
+ const command = new DeleteSchemaCommand(args);
125
120
  if (typeof optionsOrCb === "function") {
126
121
  this.send(command, optionsOrCb);
127
122
  }
128
123
  else if (typeof cb === "function") {
129
124
  if (typeof optionsOrCb !== "object")
130
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
126
  this.send(command, optionsOrCb || {}, cb);
132
127
  }
133
128
  else {
134
129
  return this.send(command, optionsOrCb);
135
130
  }
136
- };
137
- Schemas.prototype.deleteSchemaVersion = function (args, optionsOrCb, cb) {
138
- var command = new DeleteSchemaVersionCommand(args);
131
+ }
132
+ deleteSchemaVersion(args, optionsOrCb, cb) {
133
+ const command = new DeleteSchemaVersionCommand(args);
139
134
  if (typeof optionsOrCb === "function") {
140
135
  this.send(command, optionsOrCb);
141
136
  }
142
137
  else if (typeof cb === "function") {
143
138
  if (typeof optionsOrCb !== "object")
144
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
140
  this.send(command, optionsOrCb || {}, cb);
146
141
  }
147
142
  else {
148
143
  return this.send(command, optionsOrCb);
149
144
  }
150
- };
151
- Schemas.prototype.describeCodeBinding = function (args, optionsOrCb, cb) {
152
- var command = new DescribeCodeBindingCommand(args);
145
+ }
146
+ describeCodeBinding(args, optionsOrCb, cb) {
147
+ const command = new DescribeCodeBindingCommand(args);
153
148
  if (typeof optionsOrCb === "function") {
154
149
  this.send(command, optionsOrCb);
155
150
  }
156
151
  else if (typeof cb === "function") {
157
152
  if (typeof optionsOrCb !== "object")
158
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
154
  this.send(command, optionsOrCb || {}, cb);
160
155
  }
161
156
  else {
162
157
  return this.send(command, optionsOrCb);
163
158
  }
164
- };
165
- Schemas.prototype.describeDiscoverer = function (args, optionsOrCb, cb) {
166
- var command = new DescribeDiscovererCommand(args);
159
+ }
160
+ describeDiscoverer(args, optionsOrCb, cb) {
161
+ const command = new DescribeDiscovererCommand(args);
167
162
  if (typeof optionsOrCb === "function") {
168
163
  this.send(command, optionsOrCb);
169
164
  }
170
165
  else if (typeof cb === "function") {
171
166
  if (typeof optionsOrCb !== "object")
172
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
168
  this.send(command, optionsOrCb || {}, cb);
174
169
  }
175
170
  else {
176
171
  return this.send(command, optionsOrCb);
177
172
  }
178
- };
179
- Schemas.prototype.describeRegistry = function (args, optionsOrCb, cb) {
180
- var command = new DescribeRegistryCommand(args);
173
+ }
174
+ describeRegistry(args, optionsOrCb, cb) {
175
+ const command = new DescribeRegistryCommand(args);
181
176
  if (typeof optionsOrCb === "function") {
182
177
  this.send(command, optionsOrCb);
183
178
  }
184
179
  else if (typeof cb === "function") {
185
180
  if (typeof optionsOrCb !== "object")
186
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
182
  this.send(command, optionsOrCb || {}, cb);
188
183
  }
189
184
  else {
190
185
  return this.send(command, optionsOrCb);
191
186
  }
192
- };
193
- Schemas.prototype.describeSchema = function (args, optionsOrCb, cb) {
194
- var command = new DescribeSchemaCommand(args);
187
+ }
188
+ describeSchema(args, optionsOrCb, cb) {
189
+ const command = new DescribeSchemaCommand(args);
195
190
  if (typeof optionsOrCb === "function") {
196
191
  this.send(command, optionsOrCb);
197
192
  }
198
193
  else if (typeof cb === "function") {
199
194
  if (typeof optionsOrCb !== "object")
200
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
196
  this.send(command, optionsOrCb || {}, cb);
202
197
  }
203
198
  else {
204
199
  return this.send(command, optionsOrCb);
205
200
  }
206
- };
207
- Schemas.prototype.exportSchema = function (args, optionsOrCb, cb) {
208
- var command = new ExportSchemaCommand(args);
201
+ }
202
+ exportSchema(args, optionsOrCb, cb) {
203
+ const command = new ExportSchemaCommand(args);
209
204
  if (typeof optionsOrCb === "function") {
210
205
  this.send(command, optionsOrCb);
211
206
  }
212
207
  else if (typeof cb === "function") {
213
208
  if (typeof optionsOrCb !== "object")
214
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
209
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
210
  this.send(command, optionsOrCb || {}, cb);
216
211
  }
217
212
  else {
218
213
  return this.send(command, optionsOrCb);
219
214
  }
220
- };
221
- Schemas.prototype.getCodeBindingSource = function (args, optionsOrCb, cb) {
222
- var command = new GetCodeBindingSourceCommand(args);
215
+ }
216
+ getCodeBindingSource(args, optionsOrCb, cb) {
217
+ const command = new GetCodeBindingSourceCommand(args);
223
218
  if (typeof optionsOrCb === "function") {
224
219
  this.send(command, optionsOrCb);
225
220
  }
226
221
  else if (typeof cb === "function") {
227
222
  if (typeof optionsOrCb !== "object")
228
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
223
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
224
  this.send(command, optionsOrCb || {}, cb);
230
225
  }
231
226
  else {
232
227
  return this.send(command, optionsOrCb);
233
228
  }
234
- };
235
- Schemas.prototype.getDiscoveredSchema = function (args, optionsOrCb, cb) {
236
- var command = new GetDiscoveredSchemaCommand(args);
229
+ }
230
+ getDiscoveredSchema(args, optionsOrCb, cb) {
231
+ const command = new GetDiscoveredSchemaCommand(args);
237
232
  if (typeof optionsOrCb === "function") {
238
233
  this.send(command, optionsOrCb);
239
234
  }
240
235
  else if (typeof cb === "function") {
241
236
  if (typeof optionsOrCb !== "object")
242
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
237
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
238
  this.send(command, optionsOrCb || {}, cb);
244
239
  }
245
240
  else {
246
241
  return this.send(command, optionsOrCb);
247
242
  }
248
- };
249
- Schemas.prototype.getResourcePolicy = function (args, optionsOrCb, cb) {
250
- var command = new GetResourcePolicyCommand(args);
243
+ }
244
+ getResourcePolicy(args, optionsOrCb, cb) {
245
+ const command = new GetResourcePolicyCommand(args);
251
246
  if (typeof optionsOrCb === "function") {
252
247
  this.send(command, optionsOrCb);
253
248
  }
254
249
  else if (typeof cb === "function") {
255
250
  if (typeof optionsOrCb !== "object")
256
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
251
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
252
  this.send(command, optionsOrCb || {}, cb);
258
253
  }
259
254
  else {
260
255
  return this.send(command, optionsOrCb);
261
256
  }
262
- };
263
- Schemas.prototype.listDiscoverers = function (args, optionsOrCb, cb) {
264
- var command = new ListDiscoverersCommand(args);
257
+ }
258
+ listDiscoverers(args, optionsOrCb, cb) {
259
+ const command = new ListDiscoverersCommand(args);
265
260
  if (typeof optionsOrCb === "function") {
266
261
  this.send(command, optionsOrCb);
267
262
  }
268
263
  else if (typeof cb === "function") {
269
264
  if (typeof optionsOrCb !== "object")
270
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
265
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
266
  this.send(command, optionsOrCb || {}, cb);
272
267
  }
273
268
  else {
274
269
  return this.send(command, optionsOrCb);
275
270
  }
276
- };
277
- Schemas.prototype.listRegistries = function (args, optionsOrCb, cb) {
278
- var command = new ListRegistriesCommand(args);
271
+ }
272
+ listRegistries(args, optionsOrCb, cb) {
273
+ const command = new ListRegistriesCommand(args);
279
274
  if (typeof optionsOrCb === "function") {
280
275
  this.send(command, optionsOrCb);
281
276
  }
282
277
  else if (typeof cb === "function") {
283
278
  if (typeof optionsOrCb !== "object")
284
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
279
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
280
  this.send(command, optionsOrCb || {}, cb);
286
281
  }
287
282
  else {
288
283
  return this.send(command, optionsOrCb);
289
284
  }
290
- };
291
- Schemas.prototype.listSchemas = function (args, optionsOrCb, cb) {
292
- var command = new ListSchemasCommand(args);
285
+ }
286
+ listSchemas(args, optionsOrCb, cb) {
287
+ const command = new ListSchemasCommand(args);
293
288
  if (typeof optionsOrCb === "function") {
294
289
  this.send(command, optionsOrCb);
295
290
  }
296
291
  else if (typeof cb === "function") {
297
292
  if (typeof optionsOrCb !== "object")
298
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
294
  this.send(command, optionsOrCb || {}, cb);
300
295
  }
301
296
  else {
302
297
  return this.send(command, optionsOrCb);
303
298
  }
304
- };
305
- Schemas.prototype.listSchemaVersions = function (args, optionsOrCb, cb) {
306
- var command = new ListSchemaVersionsCommand(args);
299
+ }
300
+ listSchemaVersions(args, optionsOrCb, cb) {
301
+ const command = new ListSchemaVersionsCommand(args);
307
302
  if (typeof optionsOrCb === "function") {
308
303
  this.send(command, optionsOrCb);
309
304
  }
310
305
  else if (typeof cb === "function") {
311
306
  if (typeof optionsOrCb !== "object")
312
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
307
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
308
  this.send(command, optionsOrCb || {}, cb);
314
309
  }
315
310
  else {
316
311
  return this.send(command, optionsOrCb);
317
312
  }
318
- };
319
- Schemas.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
320
- var command = new ListTagsForResourceCommand(args);
313
+ }
314
+ listTagsForResource(args, optionsOrCb, cb) {
315
+ const command = new ListTagsForResourceCommand(args);
321
316
  if (typeof optionsOrCb === "function") {
322
317
  this.send(command, optionsOrCb);
323
318
  }
324
319
  else if (typeof cb === "function") {
325
320
  if (typeof optionsOrCb !== "object")
326
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
321
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
327
322
  this.send(command, optionsOrCb || {}, cb);
328
323
  }
329
324
  else {
330
325
  return this.send(command, optionsOrCb);
331
326
  }
332
- };
333
- Schemas.prototype.putCodeBinding = function (args, optionsOrCb, cb) {
334
- var command = new PutCodeBindingCommand(args);
327
+ }
328
+ putCodeBinding(args, optionsOrCb, cb) {
329
+ const command = new PutCodeBindingCommand(args);
335
330
  if (typeof optionsOrCb === "function") {
336
331
  this.send(command, optionsOrCb);
337
332
  }
338
333
  else if (typeof cb === "function") {
339
334
  if (typeof optionsOrCb !== "object")
340
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
335
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
336
  this.send(command, optionsOrCb || {}, cb);
342
337
  }
343
338
  else {
344
339
  return this.send(command, optionsOrCb);
345
340
  }
346
- };
347
- Schemas.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
348
- var command = new PutResourcePolicyCommand(args);
341
+ }
342
+ putResourcePolicy(args, optionsOrCb, cb) {
343
+ const command = new PutResourcePolicyCommand(args);
349
344
  if (typeof optionsOrCb === "function") {
350
345
  this.send(command, optionsOrCb);
351
346
  }
352
347
  else if (typeof cb === "function") {
353
348
  if (typeof optionsOrCb !== "object")
354
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
349
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
350
  this.send(command, optionsOrCb || {}, cb);
356
351
  }
357
352
  else {
358
353
  return this.send(command, optionsOrCb);
359
354
  }
360
- };
361
- Schemas.prototype.searchSchemas = function (args, optionsOrCb, cb) {
362
- var command = new SearchSchemasCommand(args);
355
+ }
356
+ searchSchemas(args, optionsOrCb, cb) {
357
+ const command = new SearchSchemasCommand(args);
363
358
  if (typeof optionsOrCb === "function") {
364
359
  this.send(command, optionsOrCb);
365
360
  }
366
361
  else if (typeof cb === "function") {
367
362
  if (typeof optionsOrCb !== "object")
368
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
363
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
364
  this.send(command, optionsOrCb || {}, cb);
370
365
  }
371
366
  else {
372
367
  return this.send(command, optionsOrCb);
373
368
  }
374
- };
375
- Schemas.prototype.startDiscoverer = function (args, optionsOrCb, cb) {
376
- var command = new StartDiscovererCommand(args);
369
+ }
370
+ startDiscoverer(args, optionsOrCb, cb) {
371
+ const command = new StartDiscovererCommand(args);
377
372
  if (typeof optionsOrCb === "function") {
378
373
  this.send(command, optionsOrCb);
379
374
  }
380
375
  else if (typeof cb === "function") {
381
376
  if (typeof optionsOrCb !== "object")
382
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
377
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
378
  this.send(command, optionsOrCb || {}, cb);
384
379
  }
385
380
  else {
386
381
  return this.send(command, optionsOrCb);
387
382
  }
388
- };
389
- Schemas.prototype.stopDiscoverer = function (args, optionsOrCb, cb) {
390
- var command = new StopDiscovererCommand(args);
383
+ }
384
+ stopDiscoverer(args, optionsOrCb, cb) {
385
+ const command = new StopDiscovererCommand(args);
391
386
  if (typeof optionsOrCb === "function") {
392
387
  this.send(command, optionsOrCb);
393
388
  }
394
389
  else if (typeof cb === "function") {
395
390
  if (typeof optionsOrCb !== "object")
396
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
391
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
392
  this.send(command, optionsOrCb || {}, cb);
398
393
  }
399
394
  else {
400
395
  return this.send(command, optionsOrCb);
401
396
  }
402
- };
403
- Schemas.prototype.tagResource = function (args, optionsOrCb, cb) {
404
- var command = new TagResourceCommand(args);
397
+ }
398
+ tagResource(args, optionsOrCb, cb) {
399
+ const command = new TagResourceCommand(args);
405
400
  if (typeof optionsOrCb === "function") {
406
401
  this.send(command, optionsOrCb);
407
402
  }
408
403
  else if (typeof cb === "function") {
409
404
  if (typeof optionsOrCb !== "object")
410
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
405
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
406
  this.send(command, optionsOrCb || {}, cb);
412
407
  }
413
408
  else {
414
409
  return this.send(command, optionsOrCb);
415
410
  }
416
- };
417
- Schemas.prototype.untagResource = function (args, optionsOrCb, cb) {
418
- var command = new UntagResourceCommand(args);
411
+ }
412
+ untagResource(args, optionsOrCb, cb) {
413
+ const command = new UntagResourceCommand(args);
419
414
  if (typeof optionsOrCb === "function") {
420
415
  this.send(command, optionsOrCb);
421
416
  }
422
417
  else if (typeof cb === "function") {
423
418
  if (typeof optionsOrCb !== "object")
424
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
419
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
420
  this.send(command, optionsOrCb || {}, cb);
426
421
  }
427
422
  else {
428
423
  return this.send(command, optionsOrCb);
429
424
  }
430
- };
431
- Schemas.prototype.updateDiscoverer = function (args, optionsOrCb, cb) {
432
- var command = new UpdateDiscovererCommand(args);
425
+ }
426
+ updateDiscoverer(args, optionsOrCb, cb) {
427
+ const command = new UpdateDiscovererCommand(args);
433
428
  if (typeof optionsOrCb === "function") {
434
429
  this.send(command, optionsOrCb);
435
430
  }
436
431
  else if (typeof cb === "function") {
437
432
  if (typeof optionsOrCb !== "object")
438
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
433
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
439
434
  this.send(command, optionsOrCb || {}, cb);
440
435
  }
441
436
  else {
442
437
  return this.send(command, optionsOrCb);
443
438
  }
444
- };
445
- Schemas.prototype.updateRegistry = function (args, optionsOrCb, cb) {
446
- var command = new UpdateRegistryCommand(args);
439
+ }
440
+ updateRegistry(args, optionsOrCb, cb) {
441
+ const command = new UpdateRegistryCommand(args);
447
442
  if (typeof optionsOrCb === "function") {
448
443
  this.send(command, optionsOrCb);
449
444
  }
450
445
  else if (typeof cb === "function") {
451
446
  if (typeof optionsOrCb !== "object")
452
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
447
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
453
448
  this.send(command, optionsOrCb || {}, cb);
454
449
  }
455
450
  else {
456
451
  return this.send(command, optionsOrCb);
457
452
  }
458
- };
459
- Schemas.prototype.updateSchema = function (args, optionsOrCb, cb) {
460
- var command = new UpdateSchemaCommand(args);
453
+ }
454
+ updateSchema(args, optionsOrCb, cb) {
455
+ const command = new UpdateSchemaCommand(args);
461
456
  if (typeof optionsOrCb === "function") {
462
457
  this.send(command, optionsOrCb);
463
458
  }
464
459
  else if (typeof cb === "function") {
465
460
  if (typeof optionsOrCb !== "object")
466
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
462
  this.send(command, optionsOrCb || {}, cb);
468
463
  }
469
464
  else {
470
465
  return this.send(command, optionsOrCb);
471
466
  }
472
- };
473
- return Schemas;
474
- }(SchemasClient));
475
- export { Schemas };
467
+ }
468
+ }