@aws-sdk/client-schemas 3.315.0 → 3.319.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.Schemas = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateDiscovererCommand_1 = require("./commands/CreateDiscovererCommand");
5
6
  const CreateRegistryCommand_1 = require("./commands/CreateRegistryCommand");
6
7
  const CreateSchemaCommand_1 = require("./commands/CreateSchemaCommand");
@@ -33,440 +34,40 @@ const UpdateDiscovererCommand_1 = require("./commands/UpdateDiscovererCommand");
33
34
  const UpdateRegistryCommand_1 = require("./commands/UpdateRegistryCommand");
34
35
  const UpdateSchemaCommand_1 = require("./commands/UpdateSchemaCommand");
35
36
  const SchemasClient_1 = require("./SchemasClient");
37
+ const commands = {
38
+ CreateDiscovererCommand: CreateDiscovererCommand_1.CreateDiscovererCommand,
39
+ CreateRegistryCommand: CreateRegistryCommand_1.CreateRegistryCommand,
40
+ CreateSchemaCommand: CreateSchemaCommand_1.CreateSchemaCommand,
41
+ DeleteDiscovererCommand: DeleteDiscovererCommand_1.DeleteDiscovererCommand,
42
+ DeleteRegistryCommand: DeleteRegistryCommand_1.DeleteRegistryCommand,
43
+ DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
44
+ DeleteSchemaCommand: DeleteSchemaCommand_1.DeleteSchemaCommand,
45
+ DeleteSchemaVersionCommand: DeleteSchemaVersionCommand_1.DeleteSchemaVersionCommand,
46
+ DescribeCodeBindingCommand: DescribeCodeBindingCommand_1.DescribeCodeBindingCommand,
47
+ DescribeDiscovererCommand: DescribeDiscovererCommand_1.DescribeDiscovererCommand,
48
+ DescribeRegistryCommand: DescribeRegistryCommand_1.DescribeRegistryCommand,
49
+ DescribeSchemaCommand: DescribeSchemaCommand_1.DescribeSchemaCommand,
50
+ ExportSchemaCommand: ExportSchemaCommand_1.ExportSchemaCommand,
51
+ GetCodeBindingSourceCommand: GetCodeBindingSourceCommand_1.GetCodeBindingSourceCommand,
52
+ GetDiscoveredSchemaCommand: GetDiscoveredSchemaCommand_1.GetDiscoveredSchemaCommand,
53
+ GetResourcePolicyCommand: GetResourcePolicyCommand_1.GetResourcePolicyCommand,
54
+ ListDiscoverersCommand: ListDiscoverersCommand_1.ListDiscoverersCommand,
55
+ ListRegistriesCommand: ListRegistriesCommand_1.ListRegistriesCommand,
56
+ ListSchemasCommand: ListSchemasCommand_1.ListSchemasCommand,
57
+ ListSchemaVersionsCommand: ListSchemaVersionsCommand_1.ListSchemaVersionsCommand,
58
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
59
+ PutCodeBindingCommand: PutCodeBindingCommand_1.PutCodeBindingCommand,
60
+ PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
61
+ SearchSchemasCommand: SearchSchemasCommand_1.SearchSchemasCommand,
62
+ StartDiscovererCommand: StartDiscovererCommand_1.StartDiscovererCommand,
63
+ StopDiscovererCommand: StopDiscovererCommand_1.StopDiscovererCommand,
64
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
65
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
66
+ UpdateDiscovererCommand: UpdateDiscovererCommand_1.UpdateDiscovererCommand,
67
+ UpdateRegistryCommand: UpdateRegistryCommand_1.UpdateRegistryCommand,
68
+ UpdateSchemaCommand: UpdateSchemaCommand_1.UpdateSchemaCommand,
69
+ };
36
70
  class Schemas extends SchemasClient_1.SchemasClient {
37
- createDiscoverer(args, optionsOrCb, cb) {
38
- const command = new CreateDiscovererCommand_1.CreateDiscovererCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- createRegistry(args, optionsOrCb, cb) {
52
- const command = new CreateRegistryCommand_1.CreateRegistryCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- createSchema(args, optionsOrCb, cb) {
66
- const command = new CreateSchemaCommand_1.CreateSchemaCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- deleteDiscoverer(args, optionsOrCb, cb) {
80
- const command = new DeleteDiscovererCommand_1.DeleteDiscovererCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
- deleteRegistry(args, optionsOrCb, cb) {
94
- const command = new DeleteRegistryCommand_1.DeleteRegistryCommand(args);
95
- if (typeof optionsOrCb === "function") {
96
- this.send(command, optionsOrCb);
97
- }
98
- else if (typeof cb === "function") {
99
- if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
- this.send(command, optionsOrCb || {}, cb);
102
- }
103
- else {
104
- return this.send(command, optionsOrCb);
105
- }
106
- }
107
- deleteResourcePolicy(args, optionsOrCb, cb) {
108
- const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
109
- if (typeof optionsOrCb === "function") {
110
- this.send(command, optionsOrCb);
111
- }
112
- else if (typeof cb === "function") {
113
- if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
- this.send(command, optionsOrCb || {}, cb);
116
- }
117
- else {
118
- return this.send(command, optionsOrCb);
119
- }
120
- }
121
- deleteSchema(args, optionsOrCb, cb) {
122
- const command = new DeleteSchemaCommand_1.DeleteSchemaCommand(args);
123
- if (typeof optionsOrCb === "function") {
124
- this.send(command, optionsOrCb);
125
- }
126
- else if (typeof cb === "function") {
127
- if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
- this.send(command, optionsOrCb || {}, cb);
130
- }
131
- else {
132
- return this.send(command, optionsOrCb);
133
- }
134
- }
135
- deleteSchemaVersion(args, optionsOrCb, cb) {
136
- const command = new DeleteSchemaVersionCommand_1.DeleteSchemaVersionCommand(args);
137
- if (typeof optionsOrCb === "function") {
138
- this.send(command, optionsOrCb);
139
- }
140
- else if (typeof cb === "function") {
141
- if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
- this.send(command, optionsOrCb || {}, cb);
144
- }
145
- else {
146
- return this.send(command, optionsOrCb);
147
- }
148
- }
149
- describeCodeBinding(args, optionsOrCb, cb) {
150
- const command = new DescribeCodeBindingCommand_1.DescribeCodeBindingCommand(args);
151
- if (typeof optionsOrCb === "function") {
152
- this.send(command, optionsOrCb);
153
- }
154
- else if (typeof cb === "function") {
155
- if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
- this.send(command, optionsOrCb || {}, cb);
158
- }
159
- else {
160
- return this.send(command, optionsOrCb);
161
- }
162
- }
163
- describeDiscoverer(args, optionsOrCb, cb) {
164
- const command = new DescribeDiscovererCommand_1.DescribeDiscovererCommand(args);
165
- if (typeof optionsOrCb === "function") {
166
- this.send(command, optionsOrCb);
167
- }
168
- else if (typeof cb === "function") {
169
- if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
- this.send(command, optionsOrCb || {}, cb);
172
- }
173
- else {
174
- return this.send(command, optionsOrCb);
175
- }
176
- }
177
- describeRegistry(args, optionsOrCb, cb) {
178
- const command = new DescribeRegistryCommand_1.DescribeRegistryCommand(args);
179
- if (typeof optionsOrCb === "function") {
180
- this.send(command, optionsOrCb);
181
- }
182
- else if (typeof cb === "function") {
183
- if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
- this.send(command, optionsOrCb || {}, cb);
186
- }
187
- else {
188
- return this.send(command, optionsOrCb);
189
- }
190
- }
191
- describeSchema(args, optionsOrCb, cb) {
192
- const command = new DescribeSchemaCommand_1.DescribeSchemaCommand(args);
193
- if (typeof optionsOrCb === "function") {
194
- this.send(command, optionsOrCb);
195
- }
196
- else if (typeof cb === "function") {
197
- if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
- this.send(command, optionsOrCb || {}, cb);
200
- }
201
- else {
202
- return this.send(command, optionsOrCb);
203
- }
204
- }
205
- exportSchema(args, optionsOrCb, cb) {
206
- const command = new ExportSchemaCommand_1.ExportSchemaCommand(args);
207
- if (typeof optionsOrCb === "function") {
208
- this.send(command, optionsOrCb);
209
- }
210
- else if (typeof cb === "function") {
211
- if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
- this.send(command, optionsOrCb || {}, cb);
214
- }
215
- else {
216
- return this.send(command, optionsOrCb);
217
- }
218
- }
219
- getCodeBindingSource(args, optionsOrCb, cb) {
220
- const command = new GetCodeBindingSourceCommand_1.GetCodeBindingSourceCommand(args);
221
- if (typeof optionsOrCb === "function") {
222
- this.send(command, optionsOrCb);
223
- }
224
- else if (typeof cb === "function") {
225
- if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
- this.send(command, optionsOrCb || {}, cb);
228
- }
229
- else {
230
- return this.send(command, optionsOrCb);
231
- }
232
- }
233
- getDiscoveredSchema(args, optionsOrCb, cb) {
234
- const command = new GetDiscoveredSchemaCommand_1.GetDiscoveredSchemaCommand(args);
235
- if (typeof optionsOrCb === "function") {
236
- this.send(command, optionsOrCb);
237
- }
238
- else if (typeof cb === "function") {
239
- if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
- this.send(command, optionsOrCb || {}, cb);
242
- }
243
- else {
244
- return this.send(command, optionsOrCb);
245
- }
246
- }
247
- getResourcePolicy(args, optionsOrCb, cb) {
248
- const command = new GetResourcePolicyCommand_1.GetResourcePolicyCommand(args);
249
- if (typeof optionsOrCb === "function") {
250
- this.send(command, optionsOrCb);
251
- }
252
- else if (typeof cb === "function") {
253
- if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
- this.send(command, optionsOrCb || {}, cb);
256
- }
257
- else {
258
- return this.send(command, optionsOrCb);
259
- }
260
- }
261
- listDiscoverers(args, optionsOrCb, cb) {
262
- const command = new ListDiscoverersCommand_1.ListDiscoverersCommand(args);
263
- if (typeof optionsOrCb === "function") {
264
- this.send(command, optionsOrCb);
265
- }
266
- else if (typeof cb === "function") {
267
- if (typeof optionsOrCb !== "object")
268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
269
- this.send(command, optionsOrCb || {}, cb);
270
- }
271
- else {
272
- return this.send(command, optionsOrCb);
273
- }
274
- }
275
- listRegistries(args, optionsOrCb, cb) {
276
- const command = new ListRegistriesCommand_1.ListRegistriesCommand(args);
277
- if (typeof optionsOrCb === "function") {
278
- this.send(command, optionsOrCb);
279
- }
280
- else if (typeof cb === "function") {
281
- if (typeof optionsOrCb !== "object")
282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
283
- this.send(command, optionsOrCb || {}, cb);
284
- }
285
- else {
286
- return this.send(command, optionsOrCb);
287
- }
288
- }
289
- listSchemas(args, optionsOrCb, cb) {
290
- const command = new ListSchemasCommand_1.ListSchemasCommand(args);
291
- if (typeof optionsOrCb === "function") {
292
- this.send(command, optionsOrCb);
293
- }
294
- else if (typeof cb === "function") {
295
- if (typeof optionsOrCb !== "object")
296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
297
- this.send(command, optionsOrCb || {}, cb);
298
- }
299
- else {
300
- return this.send(command, optionsOrCb);
301
- }
302
- }
303
- listSchemaVersions(args, optionsOrCb, cb) {
304
- const command = new ListSchemaVersionsCommand_1.ListSchemaVersionsCommand(args);
305
- if (typeof optionsOrCb === "function") {
306
- this.send(command, optionsOrCb);
307
- }
308
- else if (typeof cb === "function") {
309
- if (typeof optionsOrCb !== "object")
310
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
311
- this.send(command, optionsOrCb || {}, cb);
312
- }
313
- else {
314
- return this.send(command, optionsOrCb);
315
- }
316
- }
317
- listTagsForResource(args, optionsOrCb, cb) {
318
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
319
- if (typeof optionsOrCb === "function") {
320
- this.send(command, optionsOrCb);
321
- }
322
- else if (typeof cb === "function") {
323
- if (typeof optionsOrCb !== "object")
324
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
- this.send(command, optionsOrCb || {}, cb);
326
- }
327
- else {
328
- return this.send(command, optionsOrCb);
329
- }
330
- }
331
- putCodeBinding(args, optionsOrCb, cb) {
332
- const command = new PutCodeBindingCommand_1.PutCodeBindingCommand(args);
333
- if (typeof optionsOrCb === "function") {
334
- this.send(command, optionsOrCb);
335
- }
336
- else if (typeof cb === "function") {
337
- if (typeof optionsOrCb !== "object")
338
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
339
- this.send(command, optionsOrCb || {}, cb);
340
- }
341
- else {
342
- return this.send(command, optionsOrCb);
343
- }
344
- }
345
- putResourcePolicy(args, optionsOrCb, cb) {
346
- const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
347
- if (typeof optionsOrCb === "function") {
348
- this.send(command, optionsOrCb);
349
- }
350
- else if (typeof cb === "function") {
351
- if (typeof optionsOrCb !== "object")
352
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
353
- this.send(command, optionsOrCb || {}, cb);
354
- }
355
- else {
356
- return this.send(command, optionsOrCb);
357
- }
358
- }
359
- searchSchemas(args, optionsOrCb, cb) {
360
- const command = new SearchSchemasCommand_1.SearchSchemasCommand(args);
361
- if (typeof optionsOrCb === "function") {
362
- this.send(command, optionsOrCb);
363
- }
364
- else if (typeof cb === "function") {
365
- if (typeof optionsOrCb !== "object")
366
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
367
- this.send(command, optionsOrCb || {}, cb);
368
- }
369
- else {
370
- return this.send(command, optionsOrCb);
371
- }
372
- }
373
- startDiscoverer(args, optionsOrCb, cb) {
374
- const command = new StartDiscovererCommand_1.StartDiscovererCommand(args);
375
- if (typeof optionsOrCb === "function") {
376
- this.send(command, optionsOrCb);
377
- }
378
- else if (typeof cb === "function") {
379
- if (typeof optionsOrCb !== "object")
380
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
381
- this.send(command, optionsOrCb || {}, cb);
382
- }
383
- else {
384
- return this.send(command, optionsOrCb);
385
- }
386
- }
387
- stopDiscoverer(args, optionsOrCb, cb) {
388
- const command = new StopDiscovererCommand_1.StopDiscovererCommand(args);
389
- if (typeof optionsOrCb === "function") {
390
- this.send(command, optionsOrCb);
391
- }
392
- else if (typeof cb === "function") {
393
- if (typeof optionsOrCb !== "object")
394
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
395
- this.send(command, optionsOrCb || {}, cb);
396
- }
397
- else {
398
- return this.send(command, optionsOrCb);
399
- }
400
- }
401
- tagResource(args, optionsOrCb, cb) {
402
- const command = new TagResourceCommand_1.TagResourceCommand(args);
403
- if (typeof optionsOrCb === "function") {
404
- this.send(command, optionsOrCb);
405
- }
406
- else if (typeof cb === "function") {
407
- if (typeof optionsOrCb !== "object")
408
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
- this.send(command, optionsOrCb || {}, cb);
410
- }
411
- else {
412
- return this.send(command, optionsOrCb);
413
- }
414
- }
415
- untagResource(args, optionsOrCb, cb) {
416
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
417
- if (typeof optionsOrCb === "function") {
418
- this.send(command, optionsOrCb);
419
- }
420
- else if (typeof cb === "function") {
421
- if (typeof optionsOrCb !== "object")
422
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
423
- this.send(command, optionsOrCb || {}, cb);
424
- }
425
- else {
426
- return this.send(command, optionsOrCb);
427
- }
428
- }
429
- updateDiscoverer(args, optionsOrCb, cb) {
430
- const command = new UpdateDiscovererCommand_1.UpdateDiscovererCommand(args);
431
- if (typeof optionsOrCb === "function") {
432
- this.send(command, optionsOrCb);
433
- }
434
- else if (typeof cb === "function") {
435
- if (typeof optionsOrCb !== "object")
436
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
437
- this.send(command, optionsOrCb || {}, cb);
438
- }
439
- else {
440
- return this.send(command, optionsOrCb);
441
- }
442
- }
443
- updateRegistry(args, optionsOrCb, cb) {
444
- const command = new UpdateRegistryCommand_1.UpdateRegistryCommand(args);
445
- if (typeof optionsOrCb === "function") {
446
- this.send(command, optionsOrCb);
447
- }
448
- else if (typeof cb === "function") {
449
- if (typeof optionsOrCb !== "object")
450
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
- this.send(command, optionsOrCb || {}, cb);
452
- }
453
- else {
454
- return this.send(command, optionsOrCb);
455
- }
456
- }
457
- updateSchema(args, optionsOrCb, cb) {
458
- const command = new UpdateSchemaCommand_1.UpdateSchemaCommand(args);
459
- if (typeof optionsOrCb === "function") {
460
- this.send(command, optionsOrCb);
461
- }
462
- else if (typeof cb === "function") {
463
- if (typeof optionsOrCb !== "object")
464
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
465
- this.send(command, optionsOrCb || {}, cb);
466
- }
467
- else {
468
- return this.send(command, optionsOrCb);
469
- }
470
- }
471
71
  }
472
72
  exports.Schemas = Schemas;
73
+ (0, smithy_client_1.createAggregatedClient)(commands, Schemas);
@@ -666,7 +666,7 @@ const se_UpdateSchemaCommand = async (input, context) => {
666
666
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
667
667
  let body;
668
668
  body = JSON.stringify((0, smithy_client_1.take)(input, {
669
- ClientTokenId: (_) => _ ?? (0, uuid_1.v4)(),
669
+ ClientTokenId: [true, (_) => _ ?? (0, uuid_1.v4)()],
670
670
  Content: [],
671
671
  Description: [],
672
672
  Type: [],
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateDiscovererCommand, } from "./commands/CreateDiscovererCommand";
2
3
  import { CreateRegistryCommand, } from "./commands/CreateRegistryCommand";
3
4
  import { CreateSchemaCommand, } from "./commands/CreateSchemaCommand";
@@ -30,439 +31,39 @@ import { UpdateDiscovererCommand, } from "./commands/UpdateDiscovererCommand";
30
31
  import { UpdateRegistryCommand, } from "./commands/UpdateRegistryCommand";
31
32
  import { UpdateSchemaCommand, } from "./commands/UpdateSchemaCommand";
32
33
  import { SchemasClient } from "./SchemasClient";
34
+ const commands = {
35
+ CreateDiscovererCommand,
36
+ CreateRegistryCommand,
37
+ CreateSchemaCommand,
38
+ DeleteDiscovererCommand,
39
+ DeleteRegistryCommand,
40
+ DeleteResourcePolicyCommand,
41
+ DeleteSchemaCommand,
42
+ DeleteSchemaVersionCommand,
43
+ DescribeCodeBindingCommand,
44
+ DescribeDiscovererCommand,
45
+ DescribeRegistryCommand,
46
+ DescribeSchemaCommand,
47
+ ExportSchemaCommand,
48
+ GetCodeBindingSourceCommand,
49
+ GetDiscoveredSchemaCommand,
50
+ GetResourcePolicyCommand,
51
+ ListDiscoverersCommand,
52
+ ListRegistriesCommand,
53
+ ListSchemasCommand,
54
+ ListSchemaVersionsCommand,
55
+ ListTagsForResourceCommand,
56
+ PutCodeBindingCommand,
57
+ PutResourcePolicyCommand,
58
+ SearchSchemasCommand,
59
+ StartDiscovererCommand,
60
+ StopDiscovererCommand,
61
+ TagResourceCommand,
62
+ UntagResourceCommand,
63
+ UpdateDiscovererCommand,
64
+ UpdateRegistryCommand,
65
+ UpdateSchemaCommand,
66
+ };
33
67
  export class Schemas extends SchemasClient {
34
- createDiscoverer(args, optionsOrCb, cb) {
35
- const command = new CreateDiscovererCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
- createRegistry(args, optionsOrCb, cb) {
49
- const command = new CreateRegistryCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- createSchema(args, optionsOrCb, cb) {
63
- const command = new CreateSchemaCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- deleteDiscoverer(args, optionsOrCb, cb) {
77
- const command = new DeleteDiscovererCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- deleteRegistry(args, optionsOrCb, cb) {
91
- const command = new DeleteRegistryCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- deleteResourcePolicy(args, optionsOrCb, cb) {
105
- const command = new DeleteResourcePolicyCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- deleteSchema(args, optionsOrCb, cb) {
119
- const command = new DeleteSchemaCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- deleteSchemaVersion(args, optionsOrCb, cb) {
133
- const command = new DeleteSchemaVersionCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- describeCodeBinding(args, optionsOrCb, cb) {
147
- const command = new DescribeCodeBindingCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- describeDiscoverer(args, optionsOrCb, cb) {
161
- const command = new DescribeDiscovererCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- describeRegistry(args, optionsOrCb, cb) {
175
- const command = new DescribeRegistryCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- describeSchema(args, optionsOrCb, cb) {
189
- const command = new DescribeSchemaCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- exportSchema(args, optionsOrCb, cb) {
203
- const command = new ExportSchemaCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
- getCodeBindingSource(args, optionsOrCb, cb) {
217
- const command = new GetCodeBindingSourceCommand(args);
218
- if (typeof optionsOrCb === "function") {
219
- this.send(command, optionsOrCb);
220
- }
221
- else if (typeof cb === "function") {
222
- if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
224
- this.send(command, optionsOrCb || {}, cb);
225
- }
226
- else {
227
- return this.send(command, optionsOrCb);
228
- }
229
- }
230
- getDiscoveredSchema(args, optionsOrCb, cb) {
231
- const command = new GetDiscoveredSchemaCommand(args);
232
- if (typeof optionsOrCb === "function") {
233
- this.send(command, optionsOrCb);
234
- }
235
- else if (typeof cb === "function") {
236
- if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
- this.send(command, optionsOrCb || {}, cb);
239
- }
240
- else {
241
- return this.send(command, optionsOrCb);
242
- }
243
- }
244
- getResourcePolicy(args, optionsOrCb, cb) {
245
- const command = new GetResourcePolicyCommand(args);
246
- if (typeof optionsOrCb === "function") {
247
- this.send(command, optionsOrCb);
248
- }
249
- else if (typeof cb === "function") {
250
- if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
- this.send(command, optionsOrCb || {}, cb);
253
- }
254
- else {
255
- return this.send(command, optionsOrCb);
256
- }
257
- }
258
- listDiscoverers(args, optionsOrCb, cb) {
259
- const command = new ListDiscoverersCommand(args);
260
- if (typeof optionsOrCb === "function") {
261
- this.send(command, optionsOrCb);
262
- }
263
- else if (typeof cb === "function") {
264
- if (typeof optionsOrCb !== "object")
265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
266
- this.send(command, optionsOrCb || {}, cb);
267
- }
268
- else {
269
- return this.send(command, optionsOrCb);
270
- }
271
- }
272
- listRegistries(args, optionsOrCb, cb) {
273
- const command = new ListRegistriesCommand(args);
274
- if (typeof optionsOrCb === "function") {
275
- this.send(command, optionsOrCb);
276
- }
277
- else if (typeof cb === "function") {
278
- if (typeof optionsOrCb !== "object")
279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
280
- this.send(command, optionsOrCb || {}, cb);
281
- }
282
- else {
283
- return this.send(command, optionsOrCb);
284
- }
285
- }
286
- listSchemas(args, optionsOrCb, cb) {
287
- const command = new ListSchemasCommand(args);
288
- if (typeof optionsOrCb === "function") {
289
- this.send(command, optionsOrCb);
290
- }
291
- else if (typeof cb === "function") {
292
- if (typeof optionsOrCb !== "object")
293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
294
- this.send(command, optionsOrCb || {}, cb);
295
- }
296
- else {
297
- return this.send(command, optionsOrCb);
298
- }
299
- }
300
- listSchemaVersions(args, optionsOrCb, cb) {
301
- const command = new ListSchemaVersionsCommand(args);
302
- if (typeof optionsOrCb === "function") {
303
- this.send(command, optionsOrCb);
304
- }
305
- else if (typeof cb === "function") {
306
- if (typeof optionsOrCb !== "object")
307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
308
- this.send(command, optionsOrCb || {}, cb);
309
- }
310
- else {
311
- return this.send(command, optionsOrCb);
312
- }
313
- }
314
- listTagsForResource(args, optionsOrCb, cb) {
315
- const command = new ListTagsForResourceCommand(args);
316
- if (typeof optionsOrCb === "function") {
317
- this.send(command, optionsOrCb);
318
- }
319
- else if (typeof cb === "function") {
320
- if (typeof optionsOrCb !== "object")
321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
322
- this.send(command, optionsOrCb || {}, cb);
323
- }
324
- else {
325
- return this.send(command, optionsOrCb);
326
- }
327
- }
328
- putCodeBinding(args, optionsOrCb, cb) {
329
- const command = new PutCodeBindingCommand(args);
330
- if (typeof optionsOrCb === "function") {
331
- this.send(command, optionsOrCb);
332
- }
333
- else if (typeof cb === "function") {
334
- if (typeof optionsOrCb !== "object")
335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
- this.send(command, optionsOrCb || {}, cb);
337
- }
338
- else {
339
- return this.send(command, optionsOrCb);
340
- }
341
- }
342
- putResourcePolicy(args, optionsOrCb, cb) {
343
- const command = new PutResourcePolicyCommand(args);
344
- if (typeof optionsOrCb === "function") {
345
- this.send(command, optionsOrCb);
346
- }
347
- else if (typeof cb === "function") {
348
- if (typeof optionsOrCb !== "object")
349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
350
- this.send(command, optionsOrCb || {}, cb);
351
- }
352
- else {
353
- return this.send(command, optionsOrCb);
354
- }
355
- }
356
- searchSchemas(args, optionsOrCb, cb) {
357
- const command = new SearchSchemasCommand(args);
358
- if (typeof optionsOrCb === "function") {
359
- this.send(command, optionsOrCb);
360
- }
361
- else if (typeof cb === "function") {
362
- if (typeof optionsOrCb !== "object")
363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
364
- this.send(command, optionsOrCb || {}, cb);
365
- }
366
- else {
367
- return this.send(command, optionsOrCb);
368
- }
369
- }
370
- startDiscoverer(args, optionsOrCb, cb) {
371
- const command = new StartDiscovererCommand(args);
372
- if (typeof optionsOrCb === "function") {
373
- this.send(command, optionsOrCb);
374
- }
375
- else if (typeof cb === "function") {
376
- if (typeof optionsOrCb !== "object")
377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
378
- this.send(command, optionsOrCb || {}, cb);
379
- }
380
- else {
381
- return this.send(command, optionsOrCb);
382
- }
383
- }
384
- stopDiscoverer(args, optionsOrCb, cb) {
385
- const command = new StopDiscovererCommand(args);
386
- if (typeof optionsOrCb === "function") {
387
- this.send(command, optionsOrCb);
388
- }
389
- else if (typeof cb === "function") {
390
- if (typeof optionsOrCb !== "object")
391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
392
- this.send(command, optionsOrCb || {}, cb);
393
- }
394
- else {
395
- return this.send(command, optionsOrCb);
396
- }
397
- }
398
- tagResource(args, optionsOrCb, cb) {
399
- const command = new TagResourceCommand(args);
400
- if (typeof optionsOrCb === "function") {
401
- this.send(command, optionsOrCb);
402
- }
403
- else if (typeof cb === "function") {
404
- if (typeof optionsOrCb !== "object")
405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
406
- this.send(command, optionsOrCb || {}, cb);
407
- }
408
- else {
409
- return this.send(command, optionsOrCb);
410
- }
411
- }
412
- untagResource(args, optionsOrCb, cb) {
413
- const command = new UntagResourceCommand(args);
414
- if (typeof optionsOrCb === "function") {
415
- this.send(command, optionsOrCb);
416
- }
417
- else if (typeof cb === "function") {
418
- if (typeof optionsOrCb !== "object")
419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
420
- this.send(command, optionsOrCb || {}, cb);
421
- }
422
- else {
423
- return this.send(command, optionsOrCb);
424
- }
425
- }
426
- updateDiscoverer(args, optionsOrCb, cb) {
427
- const command = new UpdateDiscovererCommand(args);
428
- if (typeof optionsOrCb === "function") {
429
- this.send(command, optionsOrCb);
430
- }
431
- else if (typeof cb === "function") {
432
- if (typeof optionsOrCb !== "object")
433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
434
- this.send(command, optionsOrCb || {}, cb);
435
- }
436
- else {
437
- return this.send(command, optionsOrCb);
438
- }
439
- }
440
- updateRegistry(args, optionsOrCb, cb) {
441
- const command = new UpdateRegistryCommand(args);
442
- if (typeof optionsOrCb === "function") {
443
- this.send(command, optionsOrCb);
444
- }
445
- else if (typeof cb === "function") {
446
- if (typeof optionsOrCb !== "object")
447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
448
- this.send(command, optionsOrCb || {}, cb);
449
- }
450
- else {
451
- return this.send(command, optionsOrCb);
452
- }
453
- }
454
- updateSchema(args, optionsOrCb, cb) {
455
- const command = new UpdateSchemaCommand(args);
456
- if (typeof optionsOrCb === "function") {
457
- this.send(command, optionsOrCb);
458
- }
459
- else if (typeof cb === "function") {
460
- if (typeof optionsOrCb !== "object")
461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
462
- this.send(command, optionsOrCb || {}, cb);
463
- }
464
- else {
465
- return this.send(command, optionsOrCb);
466
- }
467
- }
468
68
  }
69
+ createAggregatedClient(commands, Schemas);
@@ -632,7 +632,7 @@ export const se_UpdateSchemaCommand = async (input, context) => {
632
632
  resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
633
633
  let body;
634
634
  body = JSON.stringify(take(input, {
635
- ClientTokenId: (_) => _ ?? generateIdempotencyToken(),
635
+ ClientTokenId: [true, (_) => _ ?? generateIdempotencyToken()],
636
636
  Content: [],
637
637
  Description: [],
638
638
  Type: [],
@@ -31,225 +31,197 @@ import { UpdateDiscovererCommandInput, UpdateDiscovererCommandOutput } from "./c
31
31
  import { UpdateRegistryCommandInput, UpdateRegistryCommandOutput } from "./commands/UpdateRegistryCommand";
32
32
  import { UpdateSchemaCommandInput, UpdateSchemaCommandOutput } from "./commands/UpdateSchemaCommand";
33
33
  import { SchemasClient } from "./SchemasClient";
34
- /**
35
- * @public
36
- * <p>Amazon EventBridge Schema Registry</p>
37
- */
38
- export declare class Schemas extends SchemasClient {
34
+ export interface Schemas {
39
35
  /**
40
- * @public
41
- * <p>Creates a discoverer.</p>
36
+ * @see {@link CreateDiscovererCommand}
42
37
  */
43
38
  createDiscoverer(args: CreateDiscovererCommandInput, options?: __HttpHandlerOptions): Promise<CreateDiscovererCommandOutput>;
44
39
  createDiscoverer(args: CreateDiscovererCommandInput, cb: (err: any, data?: CreateDiscovererCommandOutput) => void): void;
45
40
  createDiscoverer(args: CreateDiscovererCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDiscovererCommandOutput) => void): void;
46
41
  /**
47
- * @public
48
- * <p>Creates a registry.</p>
42
+ * @see {@link CreateRegistryCommand}
49
43
  */
50
44
  createRegistry(args: CreateRegistryCommandInput, options?: __HttpHandlerOptions): Promise<CreateRegistryCommandOutput>;
51
45
  createRegistry(args: CreateRegistryCommandInput, cb: (err: any, data?: CreateRegistryCommandOutput) => void): void;
52
46
  createRegistry(args: CreateRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRegistryCommandOutput) => void): void;
53
47
  /**
54
- * @public
55
- * <p>Creates a schema definition.</p> <note><p>Inactive schemas will be deleted after two years.</p></note>
48
+ * @see {@link CreateSchemaCommand}
56
49
  */
57
50
  createSchema(args: CreateSchemaCommandInput, options?: __HttpHandlerOptions): Promise<CreateSchemaCommandOutput>;
58
51
  createSchema(args: CreateSchemaCommandInput, cb: (err: any, data?: CreateSchemaCommandOutput) => void): void;
59
52
  createSchema(args: CreateSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSchemaCommandOutput) => void): void;
60
53
  /**
61
- * @public
62
- * <p>Deletes a discoverer.</p>
54
+ * @see {@link DeleteDiscovererCommand}
63
55
  */
64
56
  deleteDiscoverer(args: DeleteDiscovererCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDiscovererCommandOutput>;
65
57
  deleteDiscoverer(args: DeleteDiscovererCommandInput, cb: (err: any, data?: DeleteDiscovererCommandOutput) => void): void;
66
58
  deleteDiscoverer(args: DeleteDiscovererCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDiscovererCommandOutput) => void): void;
67
59
  /**
68
- * @public
69
- * <p>Deletes a Registry.</p>
60
+ * @see {@link DeleteRegistryCommand}
70
61
  */
71
62
  deleteRegistry(args: DeleteRegistryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRegistryCommandOutput>;
72
63
  deleteRegistry(args: DeleteRegistryCommandInput, cb: (err: any, data?: DeleteRegistryCommandOutput) => void): void;
73
64
  deleteRegistry(args: DeleteRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRegistryCommandOutput) => void): void;
74
65
  /**
75
- * @public
76
- * <p>Delete the resource-based policy attached to the specified registry.</p>
66
+ * @see {@link DeleteResourcePolicyCommand}
77
67
  */
78
68
  deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
79
69
  deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
80
70
  deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
81
71
  /**
82
- * @public
83
- * <p>Delete a schema definition.</p>
72
+ * @see {@link DeleteSchemaCommand}
84
73
  */
85
74
  deleteSchema(args: DeleteSchemaCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSchemaCommandOutput>;
86
75
  deleteSchema(args: DeleteSchemaCommandInput, cb: (err: any, data?: DeleteSchemaCommandOutput) => void): void;
87
76
  deleteSchema(args: DeleteSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSchemaCommandOutput) => void): void;
88
77
  /**
89
- * @public
90
- * <p>Delete the schema version definition</p>
78
+ * @see {@link DeleteSchemaVersionCommand}
91
79
  */
92
80
  deleteSchemaVersion(args: DeleteSchemaVersionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSchemaVersionCommandOutput>;
93
81
  deleteSchemaVersion(args: DeleteSchemaVersionCommandInput, cb: (err: any, data?: DeleteSchemaVersionCommandOutput) => void): void;
94
82
  deleteSchemaVersion(args: DeleteSchemaVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSchemaVersionCommandOutput) => void): void;
95
83
  /**
96
- * @public
97
- * <p>Describe the code binding URI.</p>
84
+ * @see {@link DescribeCodeBindingCommand}
98
85
  */
99
86
  describeCodeBinding(args: DescribeCodeBindingCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCodeBindingCommandOutput>;
100
87
  describeCodeBinding(args: DescribeCodeBindingCommandInput, cb: (err: any, data?: DescribeCodeBindingCommandOutput) => void): void;
101
88
  describeCodeBinding(args: DescribeCodeBindingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCodeBindingCommandOutput) => void): void;
102
89
  /**
103
- * @public
104
- * <p>Describes the discoverer.</p>
90
+ * @see {@link DescribeDiscovererCommand}
105
91
  */
106
92
  describeDiscoverer(args: DescribeDiscovererCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDiscovererCommandOutput>;
107
93
  describeDiscoverer(args: DescribeDiscovererCommandInput, cb: (err: any, data?: DescribeDiscovererCommandOutput) => void): void;
108
94
  describeDiscoverer(args: DescribeDiscovererCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDiscovererCommandOutput) => void): void;
109
95
  /**
110
- * @public
111
- * <p>Describes the registry.</p>
96
+ * @see {@link DescribeRegistryCommand}
112
97
  */
113
98
  describeRegistry(args: DescribeRegistryCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRegistryCommandOutput>;
114
99
  describeRegistry(args: DescribeRegistryCommandInput, cb: (err: any, data?: DescribeRegistryCommandOutput) => void): void;
115
100
  describeRegistry(args: DescribeRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRegistryCommandOutput) => void): void;
116
101
  /**
117
- * @public
118
- * <p>Retrieve the schema definition.</p>
102
+ * @see {@link DescribeSchemaCommand}
119
103
  */
120
104
  describeSchema(args: DescribeSchemaCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSchemaCommandOutput>;
121
105
  describeSchema(args: DescribeSchemaCommandInput, cb: (err: any, data?: DescribeSchemaCommandOutput) => void): void;
122
106
  describeSchema(args: DescribeSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSchemaCommandOutput) => void): void;
123
107
  /**
124
- * @public
108
+ * @see {@link ExportSchemaCommand}
125
109
  */
126
110
  exportSchema(args: ExportSchemaCommandInput, options?: __HttpHandlerOptions): Promise<ExportSchemaCommandOutput>;
127
111
  exportSchema(args: ExportSchemaCommandInput, cb: (err: any, data?: ExportSchemaCommandOutput) => void): void;
128
112
  exportSchema(args: ExportSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportSchemaCommandOutput) => void): void;
129
113
  /**
130
- * @public
131
- * <p>Get the code binding source URI.</p>
114
+ * @see {@link GetCodeBindingSourceCommand}
132
115
  */
133
116
  getCodeBindingSource(args: GetCodeBindingSourceCommandInput, options?: __HttpHandlerOptions): Promise<GetCodeBindingSourceCommandOutput>;
134
117
  getCodeBindingSource(args: GetCodeBindingSourceCommandInput, cb: (err: any, data?: GetCodeBindingSourceCommandOutput) => void): void;
135
118
  getCodeBindingSource(args: GetCodeBindingSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCodeBindingSourceCommandOutput) => void): void;
136
119
  /**
137
- * @public
138
- * <p>Get the discovered schema that was generated based on sampled events.</p>
120
+ * @see {@link GetDiscoveredSchemaCommand}
139
121
  */
140
122
  getDiscoveredSchema(args: GetDiscoveredSchemaCommandInput, options?: __HttpHandlerOptions): Promise<GetDiscoveredSchemaCommandOutput>;
141
123
  getDiscoveredSchema(args: GetDiscoveredSchemaCommandInput, cb: (err: any, data?: GetDiscoveredSchemaCommandOutput) => void): void;
142
124
  getDiscoveredSchema(args: GetDiscoveredSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDiscoveredSchemaCommandOutput) => void): void;
143
125
  /**
144
- * @public
145
- * <p>Retrieves the resource-based policy attached to a given registry.</p>
126
+ * @see {@link GetResourcePolicyCommand}
146
127
  */
147
128
  getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
148
129
  getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
149
130
  getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
150
131
  /**
151
- * @public
152
- * <p>List the discoverers.</p>
132
+ * @see {@link ListDiscoverersCommand}
153
133
  */
154
134
  listDiscoverers(args: ListDiscoverersCommandInput, options?: __HttpHandlerOptions): Promise<ListDiscoverersCommandOutput>;
155
135
  listDiscoverers(args: ListDiscoverersCommandInput, cb: (err: any, data?: ListDiscoverersCommandOutput) => void): void;
156
136
  listDiscoverers(args: ListDiscoverersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDiscoverersCommandOutput) => void): void;
157
137
  /**
158
- * @public
159
- * <p>List the registries.</p>
138
+ * @see {@link ListRegistriesCommand}
160
139
  */
161
140
  listRegistries(args: ListRegistriesCommandInput, options?: __HttpHandlerOptions): Promise<ListRegistriesCommandOutput>;
162
141
  listRegistries(args: ListRegistriesCommandInput, cb: (err: any, data?: ListRegistriesCommandOutput) => void): void;
163
142
  listRegistries(args: ListRegistriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRegistriesCommandOutput) => void): void;
164
143
  /**
165
- * @public
166
- * <p>List the schemas.</p>
144
+ * @see {@link ListSchemasCommand}
167
145
  */
168
146
  listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemasCommandOutput>;
169
147
  listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
170
148
  listSchemas(args: ListSchemasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
171
149
  /**
172
- * @public
173
- * <p>Provides a list of the schema versions and related information.</p>
150
+ * @see {@link ListSchemaVersionsCommand}
174
151
  */
175
152
  listSchemaVersions(args: ListSchemaVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemaVersionsCommandOutput>;
176
153
  listSchemaVersions(args: ListSchemaVersionsCommandInput, cb: (err: any, data?: ListSchemaVersionsCommandOutput) => void): void;
177
154
  listSchemaVersions(args: ListSchemaVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchemaVersionsCommandOutput) => void): void;
178
155
  /**
179
- * @public
180
- * <p>Get tags for resource.</p>
156
+ * @see {@link ListTagsForResourceCommand}
181
157
  */
182
158
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
183
159
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
184
160
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
185
161
  /**
186
- * @public
187
- * <p>Put code binding URI</p>
162
+ * @see {@link PutCodeBindingCommand}
188
163
  */
189
164
  putCodeBinding(args: PutCodeBindingCommandInput, options?: __HttpHandlerOptions): Promise<PutCodeBindingCommandOutput>;
190
165
  putCodeBinding(args: PutCodeBindingCommandInput, cb: (err: any, data?: PutCodeBindingCommandOutput) => void): void;
191
166
  putCodeBinding(args: PutCodeBindingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCodeBindingCommandOutput) => void): void;
192
167
  /**
193
- * @public
194
- * <p>The name of the policy.</p>
168
+ * @see {@link PutResourcePolicyCommand}
195
169
  */
196
170
  putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
197
171
  putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
198
172
  putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
199
173
  /**
200
- * @public
201
- * <p>Search the schemas</p>
174
+ * @see {@link SearchSchemasCommand}
202
175
  */
203
176
  searchSchemas(args: SearchSchemasCommandInput, options?: __HttpHandlerOptions): Promise<SearchSchemasCommandOutput>;
204
177
  searchSchemas(args: SearchSchemasCommandInput, cb: (err: any, data?: SearchSchemasCommandOutput) => void): void;
205
178
  searchSchemas(args: SearchSchemasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchSchemasCommandOutput) => void): void;
206
179
  /**
207
- * @public
208
- * <p>Starts the discoverer</p>
180
+ * @see {@link StartDiscovererCommand}
209
181
  */
210
182
  startDiscoverer(args: StartDiscovererCommandInput, options?: __HttpHandlerOptions): Promise<StartDiscovererCommandOutput>;
211
183
  startDiscoverer(args: StartDiscovererCommandInput, cb: (err: any, data?: StartDiscovererCommandOutput) => void): void;
212
184
  startDiscoverer(args: StartDiscovererCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDiscovererCommandOutput) => void): void;
213
185
  /**
214
- * @public
215
- * <p>Stops the discoverer</p>
186
+ * @see {@link StopDiscovererCommand}
216
187
  */
217
188
  stopDiscoverer(args: StopDiscovererCommandInput, options?: __HttpHandlerOptions): Promise<StopDiscovererCommandOutput>;
218
189
  stopDiscoverer(args: StopDiscovererCommandInput, cb: (err: any, data?: StopDiscovererCommandOutput) => void): void;
219
190
  stopDiscoverer(args: StopDiscovererCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopDiscovererCommandOutput) => void): void;
220
191
  /**
221
- * @public
222
- * <p>Add tags to a resource.</p>
192
+ * @see {@link TagResourceCommand}
223
193
  */
224
194
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
225
195
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
226
196
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
227
197
  /**
228
- * @public
229
- * <p>Removes tags from a resource.</p>
198
+ * @see {@link UntagResourceCommand}
230
199
  */
231
200
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
232
201
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
233
202
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
234
203
  /**
235
- * @public
236
- * <p>Updates the discoverer</p>
204
+ * @see {@link UpdateDiscovererCommand}
237
205
  */
238
206
  updateDiscoverer(args: UpdateDiscovererCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDiscovererCommandOutput>;
239
207
  updateDiscoverer(args: UpdateDiscovererCommandInput, cb: (err: any, data?: UpdateDiscovererCommandOutput) => void): void;
240
208
  updateDiscoverer(args: UpdateDiscovererCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDiscovererCommandOutput) => void): void;
241
209
  /**
242
- * @public
243
- * <p>Updates a registry.</p>
210
+ * @see {@link UpdateRegistryCommand}
244
211
  */
245
212
  updateRegistry(args: UpdateRegistryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRegistryCommandOutput>;
246
213
  updateRegistry(args: UpdateRegistryCommandInput, cb: (err: any, data?: UpdateRegistryCommandOutput) => void): void;
247
214
  updateRegistry(args: UpdateRegistryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRegistryCommandOutput) => void): void;
248
215
  /**
249
- * @public
250
- * <p>Updates the schema definition</p> <note><p>Inactive schemas will be deleted after two years.</p></note>
216
+ * @see {@link UpdateSchemaCommand}
251
217
  */
252
218
  updateSchema(args: UpdateSchemaCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSchemaCommandOutput>;
253
219
  updateSchema(args: UpdateSchemaCommandInput, cb: (err: any, data?: UpdateSchemaCommandOutput) => void): void;
254
220
  updateSchema(args: UpdateSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSchemaCommandOutput) => void): void;
255
221
  }
222
+ /**
223
+ * @public
224
+ * <p>Amazon EventBridge Schema Registry</p>
225
+ */
226
+ export declare class Schemas extends SchemasClient implements Schemas {
227
+ }
@@ -124,7 +124,7 @@ import {
124
124
  UpdateSchemaCommandOutput,
125
125
  } from "./commands/UpdateSchemaCommand";
126
126
  import { SchemasClient } from "./SchemasClient";
127
- export declare class Schemas extends SchemasClient {
127
+ export interface Schemas {
128
128
  createDiscoverer(
129
129
  args: CreateDiscovererCommandInput,
130
130
  options?: __HttpHandlerOptions
@@ -529,3 +529,4 @@ export declare class Schemas extends SchemasClient {
529
529
  cb: (err: any, data?: UpdateSchemaCommandOutput) => void
530
530
  ): void;
531
531
  }
532
+ export declare class Schemas extends SchemasClient implements Schemas {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.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.319.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.319.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",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
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",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",