@aws-sdk/client-schemas 3.181.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist-es/Schemas.js +126 -133
- package/dist-es/SchemasClient.js +22 -28
- package/dist-es/commands/CreateDiscovererCommand.js +21 -28
- package/dist-es/commands/CreateRegistryCommand.js +21 -28
- package/dist-es/commands/CreateSchemaCommand.js +21 -28
- package/dist-es/commands/DeleteDiscovererCommand.js +22 -29
- package/dist-es/commands/DeleteRegistryCommand.js +22 -29
- package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -29
- package/dist-es/commands/DeleteSchemaCommand.js +22 -29
- package/dist-es/commands/DeleteSchemaVersionCommand.js +22 -29
- package/dist-es/commands/DescribeCodeBindingCommand.js +21 -28
- package/dist-es/commands/DescribeDiscovererCommand.js +21 -28
- package/dist-es/commands/DescribeRegistryCommand.js +21 -28
- package/dist-es/commands/DescribeSchemaCommand.js +21 -28
- package/dist-es/commands/ExportSchemaCommand.js +21 -28
- package/dist-es/commands/GetCodeBindingSourceCommand.js +21 -28
- package/dist-es/commands/GetDiscoveredSchemaCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/ListDiscoverersCommand.js +21 -28
- package/dist-es/commands/ListRegistriesCommand.js +21 -28
- package/dist-es/commands/ListSchemaVersionsCommand.js +21 -28
- package/dist-es/commands/ListSchemasCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutCodeBindingCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/SearchSchemasCommand.js +21 -28
- package/dist-es/commands/StartDiscovererCommand.js +21 -28
- package/dist-es/commands/StopDiscovererCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateDiscovererCommand.js +21 -28
- package/dist-es/commands/UpdateRegistryCommand.js +21 -28
- package/dist-es/commands/UpdateSchemaCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SchemasServiceException.js +5 -10
- package/dist-es/models/models_0.js +313 -192
- package/dist-es/pagination/ListDiscoverersPaginator.js +25 -68
- package/dist-es/pagination/ListRegistriesPaginator.js +25 -68
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListSchemasPaginator.js +25 -68
- package/dist-es/pagination/SearchSchemasPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2431 -3445
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForCodeBindingExists.js +48 -68
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-schemas
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
15
|
|
|
8
16
|
|
package/dist-es/Schemas.js
CHANGED
|
@@ -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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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(
|
|
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
|
-
|
|
54
|
-
|
|
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(
|
|
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
|
-
|
|
68
|
-
|
|
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(
|
|
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
|
-
|
|
82
|
-
|
|
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(
|
|
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
|
-
|
|
96
|
-
|
|
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(
|
|
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
|
-
|
|
110
|
-
|
|
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(
|
|
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
|
-
|
|
124
|
-
|
|
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(
|
|
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
|
-
|
|
138
|
-
|
|
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(
|
|
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
|
-
|
|
152
|
-
|
|
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(
|
|
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
|
-
|
|
166
|
-
|
|
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(
|
|
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
|
-
|
|
180
|
-
|
|
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(
|
|
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
|
-
|
|
194
|
-
|
|
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(
|
|
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
|
-
|
|
208
|
-
|
|
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(
|
|
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
|
-
|
|
222
|
-
|
|
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(
|
|
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
|
-
|
|
236
|
-
|
|
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(
|
|
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
|
-
|
|
250
|
-
|
|
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(
|
|
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
|
-
|
|
264
|
-
|
|
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(
|
|
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
|
-
|
|
278
|
-
|
|
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(
|
|
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
|
-
|
|
292
|
-
|
|
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(
|
|
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
|
-
|
|
306
|
-
|
|
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(
|
|
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
|
-
|
|
320
|
-
|
|
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(
|
|
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
|
-
|
|
334
|
-
|
|
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(
|
|
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
|
-
|
|
348
|
-
|
|
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(
|
|
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
|
-
|
|
362
|
-
|
|
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(
|
|
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
|
-
|
|
376
|
-
|
|
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(
|
|
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
|
-
|
|
390
|
-
|
|
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(
|
|
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
|
-
|
|
404
|
-
|
|
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(
|
|
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
|
-
|
|
418
|
-
|
|
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(
|
|
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
|
-
|
|
432
|
-
|
|
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(
|
|
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
|
-
|
|
446
|
-
|
|
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(
|
|
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
|
-
|
|
460
|
-
|
|
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(
|
|
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
|
-
|
|
474
|
-
}(SchemasClient));
|
|
475
|
-
export { Schemas };
|
|
467
|
+
}
|
|
468
|
+
}
|
package/dist-es/SchemasClient.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class SchemasClient 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));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { SchemasClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|