@aws-sdk/client-schemas 3.183.0 → 3.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Schemas.js +133 -126
- package/dist-es/SchemasClient.js +28 -22
- package/dist-es/commands/CreateDiscovererCommand.js +28 -21
- package/dist-es/commands/CreateRegistryCommand.js +28 -21
- package/dist-es/commands/CreateSchemaCommand.js +28 -21
- package/dist-es/commands/DeleteDiscovererCommand.js +29 -22
- package/dist-es/commands/DeleteRegistryCommand.js +29 -22
- package/dist-es/commands/DeleteResourcePolicyCommand.js +29 -22
- package/dist-es/commands/DeleteSchemaCommand.js +29 -22
- package/dist-es/commands/DeleteSchemaVersionCommand.js +29 -22
- package/dist-es/commands/DescribeCodeBindingCommand.js +28 -21
- package/dist-es/commands/DescribeDiscovererCommand.js +28 -21
- package/dist-es/commands/DescribeRegistryCommand.js +28 -21
- package/dist-es/commands/DescribeSchemaCommand.js +28 -21
- package/dist-es/commands/ExportSchemaCommand.js +28 -21
- package/dist-es/commands/GetCodeBindingSourceCommand.js +28 -21
- package/dist-es/commands/GetDiscoveredSchemaCommand.js +28 -21
- package/dist-es/commands/GetResourcePolicyCommand.js +28 -21
- package/dist-es/commands/ListDiscoverersCommand.js +28 -21
- package/dist-es/commands/ListRegistriesCommand.js +28 -21
- package/dist-es/commands/ListSchemaVersionsCommand.js +28 -21
- package/dist-es/commands/ListSchemasCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutCodeBindingCommand.js +28 -21
- package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
- package/dist-es/commands/SearchSchemasCommand.js +28 -21
- package/dist-es/commands/StartDiscovererCommand.js +28 -21
- package/dist-es/commands/StopDiscovererCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateDiscovererCommand.js +28 -21
- package/dist-es/commands/UpdateRegistryCommand.js +28 -21
- package/dist-es/commands/UpdateSchemaCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SchemasServiceException.js +10 -5
- package/dist-es/models/models_0.js +192 -313
- package/dist-es/pagination/ListDiscoverersPaginator.js +68 -25
- package/dist-es/pagination/ListRegistriesPaginator.js +68 -25
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListSchemasPaginator.js +68 -25
- package/dist-es/pagination/SearchSchemasPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +3445 -2431
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForCodeBindingExists.js +68 -48
- package/package.json +34 -34
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
|
|
2
3
|
export var DiscovererState;
|
|
3
4
|
(function (DiscovererState) {
|
|
@@ -9,332 +10,210 @@ export var Type;
|
|
|
9
10
|
Type["JSONSchemaDraft4"] = "JSONSchemaDraft4";
|
|
10
11
|
Type["OpenApi3"] = "OpenApi3";
|
|
11
12
|
})(Type || (Type = {}));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.Code = opts.Code;
|
|
23
|
-
this.Message = opts.Message;
|
|
13
|
+
var BadRequestException = (function (_super) {
|
|
14
|
+
__extends(BadRequestException, _super);
|
|
15
|
+
function BadRequestException(opts) {
|
|
16
|
+
var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
|
|
17
|
+
_this.name = "BadRequestException";
|
|
18
|
+
_this.$fault = "client";
|
|
19
|
+
Object.setPrototypeOf(_this, BadRequestException.prototype);
|
|
20
|
+
_this.Code = opts.Code;
|
|
21
|
+
_this.Message = opts.Message;
|
|
22
|
+
return _this;
|
|
24
23
|
}
|
|
25
|
-
|
|
24
|
+
return BadRequestException;
|
|
25
|
+
}(__BaseException));
|
|
26
|
+
export { BadRequestException };
|
|
26
27
|
export var CodeGenerationStatus;
|
|
27
28
|
(function (CodeGenerationStatus) {
|
|
28
29
|
CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
|
|
29
30
|
CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
|
|
30
31
|
CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
|
|
31
32
|
})(CodeGenerationStatus || (CodeGenerationStatus = {}));
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.Code = opts.Code;
|
|
43
|
-
this.Message = opts.Message;
|
|
33
|
+
var ConflictException = (function (_super) {
|
|
34
|
+
__extends(ConflictException, _super);
|
|
35
|
+
function ConflictException(opts) {
|
|
36
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
37
|
+
_this.name = "ConflictException";
|
|
38
|
+
_this.$fault = "client";
|
|
39
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
40
|
+
_this.Code = opts.Code;
|
|
41
|
+
_this.Message = opts.Message;
|
|
42
|
+
return _this;
|
|
44
43
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
return ConflictException;
|
|
45
|
+
}(__BaseException));
|
|
46
|
+
export { ConflictException };
|
|
47
|
+
var ForbiddenException = (function (_super) {
|
|
48
|
+
__extends(ForbiddenException, _super);
|
|
49
|
+
function ForbiddenException(opts) {
|
|
50
|
+
var _this = _super.call(this, __assign({ name: "ForbiddenException", $fault: "client" }, opts)) || this;
|
|
51
|
+
_this.name = "ForbiddenException";
|
|
52
|
+
_this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(_this, ForbiddenException.prototype);
|
|
54
|
+
_this.Code = opts.Code;
|
|
55
|
+
_this.Message = opts.Message;
|
|
56
|
+
return _this;
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
return ForbiddenException;
|
|
59
|
+
}(__BaseException));
|
|
60
|
+
export { ForbiddenException };
|
|
61
|
+
var InternalServerErrorException = (function (_super) {
|
|
62
|
+
__extends(InternalServerErrorException, _super);
|
|
63
|
+
function InternalServerErrorException(opts) {
|
|
64
|
+
var _this = _super.call(this, __assign({ name: "InternalServerErrorException", $fault: "server" }, opts)) || this;
|
|
65
|
+
_this.name = "InternalServerErrorException";
|
|
66
|
+
_this.$fault = "server";
|
|
67
|
+
Object.setPrototypeOf(_this, InternalServerErrorException.prototype);
|
|
68
|
+
_this.Code = opts.Code;
|
|
69
|
+
_this.Message = opts.Message;
|
|
70
|
+
return _this;
|
|
72
71
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
return InternalServerErrorException;
|
|
73
|
+
}(__BaseException));
|
|
74
|
+
export { InternalServerErrorException };
|
|
75
|
+
var ServiceUnavailableException = (function (_super) {
|
|
76
|
+
__extends(ServiceUnavailableException, _super);
|
|
77
|
+
function ServiceUnavailableException(opts) {
|
|
78
|
+
var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
|
|
79
|
+
_this.name = "ServiceUnavailableException";
|
|
80
|
+
_this.$fault = "server";
|
|
81
|
+
Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
|
|
82
|
+
_this.Code = opts.Code;
|
|
83
|
+
_this.Message = opts.Message;
|
|
84
|
+
return _this;
|
|
86
85
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
86
|
+
return ServiceUnavailableException;
|
|
87
|
+
}(__BaseException));
|
|
88
|
+
export { ServiceUnavailableException };
|
|
89
|
+
var UnauthorizedException = (function (_super) {
|
|
90
|
+
__extends(UnauthorizedException, _super);
|
|
91
|
+
function UnauthorizedException(opts) {
|
|
92
|
+
var _this = _super.call(this, __assign({ name: "UnauthorizedException", $fault: "client" }, opts)) || this;
|
|
93
|
+
_this.name = "UnauthorizedException";
|
|
94
|
+
_this.$fault = "client";
|
|
95
|
+
Object.setPrototypeOf(_this, UnauthorizedException.prototype);
|
|
96
|
+
_this.Code = opts.Code;
|
|
97
|
+
_this.Message = opts.Message;
|
|
98
|
+
return _this;
|
|
100
99
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
100
|
+
return UnauthorizedException;
|
|
101
|
+
}(__BaseException));
|
|
102
|
+
export { UnauthorizedException };
|
|
103
|
+
var NotFoundException = (function (_super) {
|
|
104
|
+
__extends(NotFoundException, _super);
|
|
105
|
+
function NotFoundException(opts) {
|
|
106
|
+
var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
|
|
107
|
+
_this.name = "NotFoundException";
|
|
108
|
+
_this.$fault = "client";
|
|
109
|
+
Object.setPrototypeOf(_this, NotFoundException.prototype);
|
|
110
|
+
_this.Code = opts.Code;
|
|
111
|
+
_this.Message = opts.Message;
|
|
112
|
+
return _this;
|
|
114
113
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
114
|
+
return NotFoundException;
|
|
115
|
+
}(__BaseException));
|
|
116
|
+
export { NotFoundException };
|
|
117
|
+
var TooManyRequestsException = (function (_super) {
|
|
118
|
+
__extends(TooManyRequestsException, _super);
|
|
119
|
+
function TooManyRequestsException(opts) {
|
|
120
|
+
var _this = _super.call(this, __assign({ name: "TooManyRequestsException", $fault: "client" }, opts)) || this;
|
|
121
|
+
_this.name = "TooManyRequestsException";
|
|
122
|
+
_this.$fault = "client";
|
|
123
|
+
Object.setPrototypeOf(_this, TooManyRequestsException.prototype);
|
|
124
|
+
_this.Code = opts.Code;
|
|
125
|
+
_this.Message = opts.Message;
|
|
126
|
+
return _this;
|
|
128
127
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
128
|
+
return TooManyRequestsException;
|
|
129
|
+
}(__BaseException));
|
|
130
|
+
export { TooManyRequestsException };
|
|
131
|
+
var GoneException = (function (_super) {
|
|
132
|
+
__extends(GoneException, _super);
|
|
133
|
+
function GoneException(opts) {
|
|
134
|
+
var _this = _super.call(this, __assign({ name: "GoneException", $fault: "client" }, opts)) || this;
|
|
135
|
+
_this.name = "GoneException";
|
|
136
|
+
_this.$fault = "client";
|
|
137
|
+
Object.setPrototypeOf(_this, GoneException.prototype);
|
|
138
|
+
_this.Code = opts.Code;
|
|
139
|
+
_this.Message = opts.Message;
|
|
140
|
+
return _this;
|
|
142
141
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
142
|
+
return GoneException;
|
|
143
|
+
}(__BaseException));
|
|
144
|
+
export { GoneException };
|
|
145
|
+
var PreconditionFailedException = (function (_super) {
|
|
146
|
+
__extends(PreconditionFailedException, _super);
|
|
147
|
+
function PreconditionFailedException(opts) {
|
|
148
|
+
var _this = _super.call(this, __assign({ name: "PreconditionFailedException", $fault: "client" }, opts)) || this;
|
|
149
|
+
_this.name = "PreconditionFailedException";
|
|
150
|
+
_this.$fault = "client";
|
|
151
|
+
Object.setPrototypeOf(_this, PreconditionFailedException.prototype);
|
|
152
|
+
_this.Code = opts.Code;
|
|
153
|
+
_this.Message = opts.Message;
|
|
154
|
+
return _this;
|
|
156
155
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
});
|
|
161
|
-
export
|
|
162
|
-
|
|
163
|
-
});
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
});
|
|
167
|
-
export
|
|
168
|
-
|
|
169
|
-
});
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
});
|
|
173
|
-
export
|
|
174
|
-
|
|
175
|
-
});
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
});
|
|
179
|
-
export
|
|
180
|
-
|
|
181
|
-
});
|
|
182
|
-
export
|
|
183
|
-
|
|
184
|
-
});
|
|
185
|
-
export
|
|
186
|
-
|
|
187
|
-
});
|
|
188
|
-
export
|
|
189
|
-
|
|
190
|
-
});
|
|
191
|
-
export
|
|
192
|
-
|
|
193
|
-
});
|
|
194
|
-
export
|
|
195
|
-
|
|
196
|
-
});
|
|
197
|
-
export
|
|
198
|
-
|
|
199
|
-
});
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
});
|
|
203
|
-
export
|
|
204
|
-
|
|
205
|
-
});
|
|
206
|
-
export
|
|
207
|
-
|
|
208
|
-
});
|
|
209
|
-
export
|
|
210
|
-
|
|
211
|
-
});
|
|
212
|
-
export
|
|
213
|
-
|
|
214
|
-
});
|
|
215
|
-
export
|
|
216
|
-
|
|
217
|
-
});
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
});
|
|
221
|
-
export const DescribeRegistryRequestFilterSensitiveLog = (obj) => ({
|
|
222
|
-
...obj,
|
|
223
|
-
});
|
|
224
|
-
export const DescribeRegistryResponseFilterSensitiveLog = (obj) => ({
|
|
225
|
-
...obj,
|
|
226
|
-
});
|
|
227
|
-
export const DescribeSchemaRequestFilterSensitiveLog = (obj) => ({
|
|
228
|
-
...obj,
|
|
229
|
-
});
|
|
230
|
-
export const DescribeSchemaResponseFilterSensitiveLog = (obj) => ({
|
|
231
|
-
...obj,
|
|
232
|
-
});
|
|
233
|
-
export const ExportSchemaRequestFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
});
|
|
236
|
-
export const ExportSchemaResponseFilterSensitiveLog = (obj) => ({
|
|
237
|
-
...obj,
|
|
238
|
-
});
|
|
239
|
-
export const GetCodeBindingSourceRequestFilterSensitiveLog = (obj) => ({
|
|
240
|
-
...obj,
|
|
241
|
-
});
|
|
242
|
-
export const GetCodeBindingSourceResponseFilterSensitiveLog = (obj) => ({
|
|
243
|
-
...obj,
|
|
244
|
-
});
|
|
245
|
-
export const GetDiscoveredSchemaRequestFilterSensitiveLog = (obj) => ({
|
|
246
|
-
...obj,
|
|
247
|
-
});
|
|
248
|
-
export const GetDiscoveredSchemaResponseFilterSensitiveLog = (obj) => ({
|
|
249
|
-
...obj,
|
|
250
|
-
});
|
|
251
|
-
export const GetResourcePolicyRequestFilterSensitiveLog = (obj) => ({
|
|
252
|
-
...obj,
|
|
253
|
-
});
|
|
254
|
-
export const GetResourcePolicyResponseFilterSensitiveLog = (obj) => ({
|
|
255
|
-
...obj,
|
|
256
|
-
});
|
|
257
|
-
export const ListDiscoverersRequestFilterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
});
|
|
260
|
-
export const ListDiscoverersResponseFilterSensitiveLog = (obj) => ({
|
|
261
|
-
...obj,
|
|
262
|
-
});
|
|
263
|
-
export const ListRegistriesRequestFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
});
|
|
266
|
-
export const ListRegistriesResponseFilterSensitiveLog = (obj) => ({
|
|
267
|
-
...obj,
|
|
268
|
-
});
|
|
269
|
-
export const ListSchemasRequestFilterSensitiveLog = (obj) => ({
|
|
270
|
-
...obj,
|
|
271
|
-
});
|
|
272
|
-
export const ListSchemasResponseFilterSensitiveLog = (obj) => ({
|
|
273
|
-
...obj,
|
|
274
|
-
});
|
|
275
|
-
export const ListSchemaVersionsRequestFilterSensitiveLog = (obj) => ({
|
|
276
|
-
...obj,
|
|
277
|
-
});
|
|
278
|
-
export const ListSchemaVersionsResponseFilterSensitiveLog = (obj) => ({
|
|
279
|
-
...obj,
|
|
280
|
-
});
|
|
281
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
282
|
-
...obj,
|
|
283
|
-
});
|
|
284
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
285
|
-
...obj,
|
|
286
|
-
});
|
|
287
|
-
export const PutCodeBindingRequestFilterSensitiveLog = (obj) => ({
|
|
288
|
-
...obj,
|
|
289
|
-
});
|
|
290
|
-
export const PutCodeBindingResponseFilterSensitiveLog = (obj) => ({
|
|
291
|
-
...obj,
|
|
292
|
-
});
|
|
293
|
-
export const PutResourcePolicyRequestFilterSensitiveLog = (obj) => ({
|
|
294
|
-
...obj,
|
|
295
|
-
});
|
|
296
|
-
export const PutResourcePolicyResponseFilterSensitiveLog = (obj) => ({
|
|
297
|
-
...obj,
|
|
298
|
-
});
|
|
299
|
-
export const SearchSchemasRequestFilterSensitiveLog = (obj) => ({
|
|
300
|
-
...obj,
|
|
301
|
-
});
|
|
302
|
-
export const SearchSchemasResponseFilterSensitiveLog = (obj) => ({
|
|
303
|
-
...obj,
|
|
304
|
-
});
|
|
305
|
-
export const StartDiscovererRequestFilterSensitiveLog = (obj) => ({
|
|
306
|
-
...obj,
|
|
307
|
-
});
|
|
308
|
-
export const StartDiscovererResponseFilterSensitiveLog = (obj) => ({
|
|
309
|
-
...obj,
|
|
310
|
-
});
|
|
311
|
-
export const StopDiscovererRequestFilterSensitiveLog = (obj) => ({
|
|
312
|
-
...obj,
|
|
313
|
-
});
|
|
314
|
-
export const StopDiscovererResponseFilterSensitiveLog = (obj) => ({
|
|
315
|
-
...obj,
|
|
316
|
-
});
|
|
317
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
318
|
-
...obj,
|
|
319
|
-
});
|
|
320
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
321
|
-
...obj,
|
|
322
|
-
});
|
|
323
|
-
export const UpdateDiscovererRequestFilterSensitiveLog = (obj) => ({
|
|
324
|
-
...obj,
|
|
325
|
-
});
|
|
326
|
-
export const UpdateDiscovererResponseFilterSensitiveLog = (obj) => ({
|
|
327
|
-
...obj,
|
|
328
|
-
});
|
|
329
|
-
export const UpdateRegistryRequestFilterSensitiveLog = (obj) => ({
|
|
330
|
-
...obj,
|
|
331
|
-
});
|
|
332
|
-
export const UpdateRegistryResponseFilterSensitiveLog = (obj) => ({
|
|
333
|
-
...obj,
|
|
334
|
-
});
|
|
335
|
-
export const UpdateSchemaRequestFilterSensitiveLog = (obj) => ({
|
|
336
|
-
...obj,
|
|
337
|
-
});
|
|
338
|
-
export const UpdateSchemaResponseFilterSensitiveLog = (obj) => ({
|
|
339
|
-
...obj,
|
|
340
|
-
});
|
|
156
|
+
return PreconditionFailedException;
|
|
157
|
+
}(__BaseException));
|
|
158
|
+
export { PreconditionFailedException };
|
|
159
|
+
export var DiscovererSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
160
|
+
export var RegistrySummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
161
|
+
export var SchemaSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
+
export var SchemaVersionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
163
|
+
export var SearchSchemaVersionSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
164
|
+
export var SearchSchemaSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
|
+
export var CreateDiscovererRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
166
|
+
export var CreateDiscovererResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
167
|
+
export var CreateRegistryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
168
|
+
export var CreateRegistryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
169
|
+
export var CreateSchemaRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
170
|
+
export var CreateSchemaResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
171
|
+
export var DeleteDiscovererRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
|
+
export var DeleteRegistryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
export var DeleteResourcePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
174
|
+
export var DeleteSchemaRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
175
|
+
export var DeleteSchemaVersionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
176
|
+
export var DescribeCodeBindingRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
177
|
+
export var DescribeCodeBindingResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
+
export var DescribeDiscovererRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
179
|
+
export var DescribeDiscovererResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
180
|
+
export var DescribeRegistryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
|
+
export var DescribeRegistryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
|
+
export var DescribeSchemaRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
183
|
+
export var DescribeSchemaResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
184
|
+
export var ExportSchemaRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
|
+
export var ExportSchemaResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
|
+
export var GetCodeBindingSourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
187
|
+
export var GetCodeBindingSourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
188
|
+
export var GetDiscoveredSchemaRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
189
|
+
export var GetDiscoveredSchemaResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
|
+
export var GetResourcePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
191
|
+
export var GetResourcePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
|
+
export var ListDiscoverersRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
|
+
export var ListDiscoverersResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
+
export var ListRegistriesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
195
|
+
export var ListRegistriesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
196
|
+
export var ListSchemasRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
197
|
+
export var ListSchemasResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
+
export var ListSchemaVersionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
199
|
+
export var ListSchemaVersionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
202
|
+
export var PutCodeBindingRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
203
|
+
export var PutCodeBindingResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
204
|
+
export var PutResourcePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
205
|
+
export var PutResourcePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
206
|
+
export var SearchSchemasRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
207
|
+
export var SearchSchemasResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
208
|
+
export var StartDiscovererRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
209
|
+
export var StartDiscovererResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
210
|
+
export var StopDiscovererRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
211
|
+
export var StopDiscovererResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
213
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
214
|
+
export var UpdateDiscovererRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
215
|
+
export var UpdateDiscovererResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
216
|
+
export var UpdateRegistryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
217
|
+
export var UpdateRegistryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
218
|
+
export var UpdateSchemaRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
219
|
+
export var UpdateSchemaResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { ListDiscoverersCommand, } from "../commands/ListDiscoverersCommand";
|
|
2
3
|
import { Schemas } from "../Schemas";
|
|
3
4
|
import { SchemasClient } from "../SchemasClient";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDiscoverersCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listDiscoverers.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["Limit"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof Schemas) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof SchemasClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListDiscoverers(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListDiscoverers_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["Limit"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Schemas)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof SchemasClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Schemas | SchemasClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|