@aws-sdk/client-schemas 3.185.0 → 3.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Schemas.js +126 -133
  3. package/dist-es/SchemasClient.js +22 -28
  4. package/dist-es/commands/CreateDiscovererCommand.js +21 -28
  5. package/dist-es/commands/CreateRegistryCommand.js +21 -28
  6. package/dist-es/commands/CreateSchemaCommand.js +21 -28
  7. package/dist-es/commands/DeleteDiscovererCommand.js +22 -29
  8. package/dist-es/commands/DeleteRegistryCommand.js +22 -29
  9. package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -29
  10. package/dist-es/commands/DeleteSchemaCommand.js +22 -29
  11. package/dist-es/commands/DeleteSchemaVersionCommand.js +22 -29
  12. package/dist-es/commands/DescribeCodeBindingCommand.js +21 -28
  13. package/dist-es/commands/DescribeDiscovererCommand.js +21 -28
  14. package/dist-es/commands/DescribeRegistryCommand.js +21 -28
  15. package/dist-es/commands/DescribeSchemaCommand.js +21 -28
  16. package/dist-es/commands/ExportSchemaCommand.js +21 -28
  17. package/dist-es/commands/GetCodeBindingSourceCommand.js +21 -28
  18. package/dist-es/commands/GetDiscoveredSchemaCommand.js +21 -28
  19. package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
  20. package/dist-es/commands/ListDiscoverersCommand.js +21 -28
  21. package/dist-es/commands/ListRegistriesCommand.js +21 -28
  22. package/dist-es/commands/ListSchemaVersionsCommand.js +21 -28
  23. package/dist-es/commands/ListSchemasCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/PutCodeBindingCommand.js +21 -28
  26. package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
  27. package/dist-es/commands/SearchSchemasCommand.js +21 -28
  28. package/dist-es/commands/StartDiscovererCommand.js +21 -28
  29. package/dist-es/commands/StopDiscovererCommand.js +21 -28
  30. package/dist-es/commands/TagResourceCommand.js +22 -29
  31. package/dist-es/commands/UntagResourceCommand.js +22 -29
  32. package/dist-es/commands/UpdateDiscovererCommand.js +21 -28
  33. package/dist-es/commands/UpdateRegistryCommand.js +21 -28
  34. package/dist-es/commands/UpdateSchemaCommand.js +21 -28
  35. package/dist-es/endpoints.js +8 -8
  36. package/dist-es/models/SchemasServiceException.js +5 -10
  37. package/dist-es/models/models_0.js +313 -192
  38. package/dist-es/pagination/ListDiscoverersPaginator.js +25 -68
  39. package/dist-es/pagination/ListRegistriesPaginator.js +25 -68
  40. package/dist-es/pagination/ListSchemaVersionsPaginator.js +25 -68
  41. package/dist-es/pagination/ListSchemasPaginator.js +25 -68
  42. package/dist-es/pagination/SearchSchemasPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +2431 -3445
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/dist-es/waiters/waitForCodeBindingExists.js +48 -68
  49. package/package.json +34 -34
@@ -1,4 +1,3 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SchemasServiceException as __BaseException } from "./SchemasServiceException";
3
2
  export var DiscovererState;
4
3
  (function (DiscovererState) {
@@ -10,210 +9,332 @@ export var Type;
10
9
  Type["JSONSchemaDraft4"] = "JSONSchemaDraft4";
11
10
  Type["OpenApi3"] = "OpenApi3";
12
11
  })(Type || (Type = {}));
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;
12
+ export class BadRequestException extends __BaseException {
13
+ constructor(opts) {
14
+ super({
15
+ name: "BadRequestException",
16
+ $fault: "client",
17
+ ...opts,
18
+ });
19
+ this.name = "BadRequestException";
20
+ this.$fault = "client";
21
+ Object.setPrototypeOf(this, BadRequestException.prototype);
22
+ this.Code = opts.Code;
23
+ this.Message = opts.Message;
23
24
  }
24
- return BadRequestException;
25
- }(__BaseException));
26
- export { BadRequestException };
25
+ }
27
26
  export var CodeGenerationStatus;
28
27
  (function (CodeGenerationStatus) {
29
28
  CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
30
29
  CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
31
30
  CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
32
31
  })(CodeGenerationStatus || (CodeGenerationStatus = {}));
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;
32
+ export class ConflictException extends __BaseException {
33
+ constructor(opts) {
34
+ super({
35
+ name: "ConflictException",
36
+ $fault: "client",
37
+ ...opts,
38
+ });
39
+ this.name = "ConflictException";
40
+ this.$fault = "client";
41
+ Object.setPrototypeOf(this, ConflictException.prototype);
42
+ this.Code = opts.Code;
43
+ this.Message = opts.Message;
43
44
  }
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;
45
+ }
46
+ export class ForbiddenException extends __BaseException {
47
+ constructor(opts) {
48
+ super({
49
+ name: "ForbiddenException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ this.name = "ForbiddenException";
54
+ this.$fault = "client";
55
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
56
+ this.Code = opts.Code;
57
+ this.Message = opts.Message;
57
58
  }
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;
59
+ }
60
+ export class InternalServerErrorException extends __BaseException {
61
+ constructor(opts) {
62
+ super({
63
+ name: "InternalServerErrorException",
64
+ $fault: "server",
65
+ ...opts,
66
+ });
67
+ this.name = "InternalServerErrorException";
68
+ this.$fault = "server";
69
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
70
+ this.Code = opts.Code;
71
+ this.Message = opts.Message;
71
72
  }
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;
73
+ }
74
+ export class ServiceUnavailableException extends __BaseException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "ServiceUnavailableException",
78
+ $fault: "server",
79
+ ...opts,
80
+ });
81
+ this.name = "ServiceUnavailableException";
82
+ this.$fault = "server";
83
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
84
+ this.Code = opts.Code;
85
+ this.Message = opts.Message;
85
86
  }
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;
87
+ }
88
+ export class UnauthorizedException extends __BaseException {
89
+ constructor(opts) {
90
+ super({
91
+ name: "UnauthorizedException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ this.name = "UnauthorizedException";
96
+ this.$fault = "client";
97
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
98
+ this.Code = opts.Code;
99
+ this.Message = opts.Message;
99
100
  }
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;
101
+ }
102
+ export class NotFoundException extends __BaseException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "NotFoundException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "NotFoundException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, NotFoundException.prototype);
112
+ this.Code = opts.Code;
113
+ this.Message = opts.Message;
113
114
  }
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;
115
+ }
116
+ export class TooManyRequestsException extends __BaseException {
117
+ constructor(opts) {
118
+ super({
119
+ name: "TooManyRequestsException",
120
+ $fault: "client",
121
+ ...opts,
122
+ });
123
+ this.name = "TooManyRequestsException";
124
+ this.$fault = "client";
125
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
126
+ this.Code = opts.Code;
127
+ this.Message = opts.Message;
127
128
  }
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;
129
+ }
130
+ export class GoneException extends __BaseException {
131
+ constructor(opts) {
132
+ super({
133
+ name: "GoneException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ this.name = "GoneException";
138
+ this.$fault = "client";
139
+ Object.setPrototypeOf(this, GoneException.prototype);
140
+ this.Code = opts.Code;
141
+ this.Message = opts.Message;
141
142
  }
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;
143
+ }
144
+ export class PreconditionFailedException extends __BaseException {
145
+ constructor(opts) {
146
+ super({
147
+ name: "PreconditionFailedException",
148
+ $fault: "client",
149
+ ...opts,
150
+ });
151
+ this.name = "PreconditionFailedException";
152
+ this.$fault = "client";
153
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
154
+ this.Code = opts.Code;
155
+ this.Message = opts.Message;
155
156
  }
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)); };
157
+ }
158
+ export const DiscovererSummaryFilterSensitiveLog = (obj) => ({
159
+ ...obj,
160
+ });
161
+ export const RegistrySummaryFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ export const SchemaSummaryFilterSensitiveLog = (obj) => ({
165
+ ...obj,
166
+ });
167
+ export const SchemaVersionSummaryFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ });
170
+ export const SearchSchemaVersionSummaryFilterSensitiveLog = (obj) => ({
171
+ ...obj,
172
+ });
173
+ export const SearchSchemaSummaryFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ });
176
+ export const CreateDiscovererRequestFilterSensitiveLog = (obj) => ({
177
+ ...obj,
178
+ });
179
+ export const CreateDiscovererResponseFilterSensitiveLog = (obj) => ({
180
+ ...obj,
181
+ });
182
+ export const CreateRegistryRequestFilterSensitiveLog = (obj) => ({
183
+ ...obj,
184
+ });
185
+ export const CreateRegistryResponseFilterSensitiveLog = (obj) => ({
186
+ ...obj,
187
+ });
188
+ export const CreateSchemaRequestFilterSensitiveLog = (obj) => ({
189
+ ...obj,
190
+ });
191
+ export const CreateSchemaResponseFilterSensitiveLog = (obj) => ({
192
+ ...obj,
193
+ });
194
+ export const DeleteDiscovererRequestFilterSensitiveLog = (obj) => ({
195
+ ...obj,
196
+ });
197
+ export const DeleteRegistryRequestFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ export const DeleteResourcePolicyRequestFilterSensitiveLog = (obj) => ({
201
+ ...obj,
202
+ });
203
+ export const DeleteSchemaRequestFilterSensitiveLog = (obj) => ({
204
+ ...obj,
205
+ });
206
+ export const DeleteSchemaVersionRequestFilterSensitiveLog = (obj) => ({
207
+ ...obj,
208
+ });
209
+ export const DescribeCodeBindingRequestFilterSensitiveLog = (obj) => ({
210
+ ...obj,
211
+ });
212
+ export const DescribeCodeBindingResponseFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ });
215
+ export const DescribeDiscovererRequestFilterSensitiveLog = (obj) => ({
216
+ ...obj,
217
+ });
218
+ export const DescribeDiscovererResponseFilterSensitiveLog = (obj) => ({
219
+ ...obj,
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
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListDiscoverersCommand, } from "../commands/ListDiscoverersCommand";
3
2
  import { Schemas } from "../Schemas";
4
3
  import { SchemasClient } from "../SchemasClient";
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
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListDiscoverersCommand(input), ...args);
18
6
  };
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
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listDiscoverers(input, ...args);
32
9
  };
33
- export function paginateListDiscoverers(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListDiscoverers(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
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));
37
30
  }
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
- });
31
+ return undefined;
75
32
  }