@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.
- package/CHANGELOG.md +16 -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
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
export
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
export
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
export
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
export
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
export
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
export
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
export
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
export
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
export
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
export
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
|
|
6
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
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
|
}
|