@aws-sdk/client-schemas 3.474.0 → 3.477.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/dist-cjs/protocols/Aws_restJson1.js +214 -433
- package/dist-es/protocols/Aws_restJson1.js +215 -434
- package/package.json +5 -4
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_ListSchemasCommand = exports.de_ListRegistriesCommand = exports.de_ListDiscoverersCommand = exports.de_GetResourcePolicyCommand = exports.de_GetDiscoveredSchemaCommand = exports.de_GetCodeBindingSourceCommand = exports.de_ExportSchemaCommand = exports.de_DescribeSchemaCommand = exports.de_DescribeRegistryCommand = exports.de_DescribeDiscovererCommand = exports.de_DescribeCodeBindingCommand = exports.de_DeleteSchemaVersionCommand = exports.de_DeleteSchemaCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteRegistryCommand = exports.de_DeleteDiscovererCommand = exports.de_CreateSchemaCommand = exports.de_CreateRegistryCommand = exports.de_CreateDiscovererCommand = exports.se_UpdateSchemaCommand = exports.se_UpdateRegistryCommand = exports.se_UpdateDiscovererCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopDiscovererCommand = exports.se_StartDiscovererCommand = exports.se_SearchSchemasCommand = exports.se_PutResourcePolicyCommand = exports.se_PutCodeBindingCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchemaVersionsCommand = exports.se_ListSchemasCommand = exports.se_ListRegistriesCommand = exports.se_ListDiscoverersCommand = exports.se_GetResourcePolicyCommand = exports.se_GetDiscoveredSchemaCommand = exports.se_GetCodeBindingSourceCommand = exports.se_ExportSchemaCommand = exports.se_DescribeSchemaCommand = exports.se_DescribeRegistryCommand = exports.se_DescribeDiscovererCommand = exports.se_DescribeCodeBindingCommand = exports.se_DeleteSchemaVersionCommand = exports.se_DeleteSchemaCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteRegistryCommand = exports.se_DeleteDiscovererCommand = exports.se_CreateSchemaCommand = exports.se_CreateRegistryCommand = exports.se_CreateDiscovererCommand = void 0;
|
|
4
4
|
exports.de_UpdateSchemaCommand = exports.de_UpdateRegistryCommand = exports.de_UpdateDiscovererCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopDiscovererCommand = exports.de_StartDiscovererCommand = exports.de_SearchSchemasCommand = exports.de_PutResourcePolicyCommand = exports.de_PutCodeBindingCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchemaVersionsCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const SchemasServiceException_1 = require("../models/SchemasServiceException");
|
|
10
10
|
const se_CreateDiscovererCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/v1/discoverers");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
CrossAccount: [],
|
|
@@ -20,49 +20,34 @@ const se_CreateDiscovererCommand = async (input, context) => {
|
|
|
20
20
|
SourceArn: [],
|
|
21
21
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
exports.se_CreateDiscovererCommand = se_CreateDiscovererCommand;
|
|
34
27
|
const se_CreateRegistryCommand = async (input, context) => {
|
|
35
|
-
const
|
|
28
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
36
29
|
const headers = {
|
|
37
30
|
"content-type": "application/json",
|
|
38
31
|
};
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
b.bp("/v1/registries/name/{RegistryName}");
|
|
33
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
41
34
|
let body;
|
|
42
35
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
36
|
Description: [],
|
|
44
37
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
45
38
|
}));
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
hostname,
|
|
49
|
-
port,
|
|
50
|
-
method: "POST",
|
|
51
|
-
headers,
|
|
52
|
-
path: resolvedPath,
|
|
53
|
-
body,
|
|
54
|
-
});
|
|
39
|
+
b.m("POST").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
55
41
|
};
|
|
56
42
|
exports.se_CreateRegistryCommand = se_CreateRegistryCommand;
|
|
57
43
|
const se_CreateSchemaCommand = async (input, context) => {
|
|
58
|
-
const
|
|
44
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
59
45
|
const headers = {
|
|
60
46
|
"content-type": "application/json",
|
|
61
47
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
48
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
|
|
49
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
50
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
66
51
|
let body;
|
|
67
52
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
53
|
Content: [],
|
|
@@ -70,600 +55,379 @@ const se_CreateSchemaCommand = async (input, context) => {
|
|
|
70
55
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
71
56
|
Type: [],
|
|
72
57
|
}));
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
hostname,
|
|
76
|
-
port,
|
|
77
|
-
method: "POST",
|
|
78
|
-
headers,
|
|
79
|
-
path: resolvedPath,
|
|
80
|
-
body,
|
|
81
|
-
});
|
|
58
|
+
b.m("POST").h(headers).b(body);
|
|
59
|
+
return b.build();
|
|
82
60
|
};
|
|
83
61
|
exports.se_CreateSchemaCommand = se_CreateSchemaCommand;
|
|
84
62
|
const se_DeleteDiscovererCommand = async (input, context) => {
|
|
85
|
-
const
|
|
63
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
86
64
|
const headers = {};
|
|
87
|
-
|
|
88
|
-
|
|
65
|
+
b.bp("/v1/discoverers/id/{DiscovererId}");
|
|
66
|
+
b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
89
67
|
let body;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
hostname,
|
|
93
|
-
port,
|
|
94
|
-
method: "DELETE",
|
|
95
|
-
headers,
|
|
96
|
-
path: resolvedPath,
|
|
97
|
-
body,
|
|
98
|
-
});
|
|
68
|
+
b.m("DELETE").h(headers).b(body);
|
|
69
|
+
return b.build();
|
|
99
70
|
};
|
|
100
71
|
exports.se_DeleteDiscovererCommand = se_DeleteDiscovererCommand;
|
|
101
72
|
const se_DeleteRegistryCommand = async (input, context) => {
|
|
102
|
-
const
|
|
73
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
103
74
|
const headers = {};
|
|
104
|
-
|
|
105
|
-
|
|
75
|
+
b.bp("/v1/registries/name/{RegistryName}");
|
|
76
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
106
77
|
let body;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "DELETE",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
body,
|
|
115
|
-
});
|
|
78
|
+
b.m("DELETE").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
116
80
|
};
|
|
117
81
|
exports.se_DeleteRegistryCommand = se_DeleteRegistryCommand;
|
|
118
82
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
119
|
-
const
|
|
83
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
84
|
const headers = {};
|
|
121
|
-
|
|
85
|
+
b.bp("/v1/policy");
|
|
122
86
|
const query = (0, smithy_client_1.map)({
|
|
123
|
-
|
|
87
|
+
[_rN]: [, input[_RN]],
|
|
124
88
|
});
|
|
125
89
|
let body;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hostname,
|
|
129
|
-
port,
|
|
130
|
-
method: "DELETE",
|
|
131
|
-
headers,
|
|
132
|
-
path: resolvedPath,
|
|
133
|
-
query,
|
|
134
|
-
body,
|
|
135
|
-
});
|
|
90
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
91
|
+
return b.build();
|
|
136
92
|
};
|
|
137
93
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
138
94
|
const se_DeleteSchemaCommand = async (input, context) => {
|
|
139
|
-
const
|
|
95
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
140
96
|
const headers = {};
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
97
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
|
|
98
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
99
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
145
100
|
let body;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
hostname,
|
|
149
|
-
port,
|
|
150
|
-
method: "DELETE",
|
|
151
|
-
headers,
|
|
152
|
-
path: resolvedPath,
|
|
153
|
-
body,
|
|
154
|
-
});
|
|
101
|
+
b.m("DELETE").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
155
103
|
};
|
|
156
104
|
exports.se_DeleteSchemaCommand = se_DeleteSchemaCommand;
|
|
157
105
|
const se_DeleteSchemaVersionCommand = async (input, context) => {
|
|
158
|
-
const
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
159
107
|
const headers = {};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaVersion", () => input.SchemaVersion, "{SchemaVersion}", false);
|
|
108
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}");
|
|
109
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
110
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
111
|
+
b.p("SchemaVersion", () => input.SchemaVersion, "{SchemaVersion}", false);
|
|
165
112
|
let body;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
hostname,
|
|
169
|
-
port,
|
|
170
|
-
method: "DELETE",
|
|
171
|
-
headers,
|
|
172
|
-
path: resolvedPath,
|
|
173
|
-
body,
|
|
174
|
-
});
|
|
113
|
+
b.m("DELETE").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
175
115
|
};
|
|
176
116
|
exports.se_DeleteSchemaVersionCommand = se_DeleteSchemaVersionCommand;
|
|
177
117
|
const se_DescribeCodeBindingCommand = async (input, context) => {
|
|
178
|
-
const
|
|
118
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
119
|
const headers = {};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
120
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");
|
|
121
|
+
b.p("Language", () => input.Language, "{Language}", false);
|
|
122
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
123
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
185
124
|
const query = (0, smithy_client_1.map)({
|
|
186
|
-
|
|
125
|
+
[_sV]: [, input[_SV]],
|
|
187
126
|
});
|
|
188
127
|
let body;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
hostname,
|
|
192
|
-
port,
|
|
193
|
-
method: "GET",
|
|
194
|
-
headers,
|
|
195
|
-
path: resolvedPath,
|
|
196
|
-
query,
|
|
197
|
-
body,
|
|
198
|
-
});
|
|
128
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
129
|
+
return b.build();
|
|
199
130
|
};
|
|
200
131
|
exports.se_DescribeCodeBindingCommand = se_DescribeCodeBindingCommand;
|
|
201
132
|
const se_DescribeDiscovererCommand = async (input, context) => {
|
|
202
|
-
const
|
|
133
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
203
134
|
const headers = {};
|
|
204
|
-
|
|
205
|
-
|
|
135
|
+
b.bp("/v1/discoverers/id/{DiscovererId}");
|
|
136
|
+
b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
206
137
|
let body;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
hostname,
|
|
210
|
-
port,
|
|
211
|
-
method: "GET",
|
|
212
|
-
headers,
|
|
213
|
-
path: resolvedPath,
|
|
214
|
-
body,
|
|
215
|
-
});
|
|
138
|
+
b.m("GET").h(headers).b(body);
|
|
139
|
+
return b.build();
|
|
216
140
|
};
|
|
217
141
|
exports.se_DescribeDiscovererCommand = se_DescribeDiscovererCommand;
|
|
218
142
|
const se_DescribeRegistryCommand = async (input, context) => {
|
|
219
|
-
const
|
|
143
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
220
144
|
const headers = {};
|
|
221
|
-
|
|
222
|
-
|
|
145
|
+
b.bp("/v1/registries/name/{RegistryName}");
|
|
146
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
223
147
|
let body;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
hostname,
|
|
227
|
-
port,
|
|
228
|
-
method: "GET",
|
|
229
|
-
headers,
|
|
230
|
-
path: resolvedPath,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
148
|
+
b.m("GET").h(headers).b(body);
|
|
149
|
+
return b.build();
|
|
233
150
|
};
|
|
234
151
|
exports.se_DescribeRegistryCommand = se_DescribeRegistryCommand;
|
|
235
152
|
const se_DescribeSchemaCommand = async (input, context) => {
|
|
236
|
-
const
|
|
153
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
237
154
|
const headers = {};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
155
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
|
|
156
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
157
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
242
158
|
const query = (0, smithy_client_1.map)({
|
|
243
|
-
|
|
159
|
+
[_sV]: [, input[_SV]],
|
|
244
160
|
});
|
|
245
161
|
let body;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
hostname,
|
|
249
|
-
port,
|
|
250
|
-
method: "GET",
|
|
251
|
-
headers,
|
|
252
|
-
path: resolvedPath,
|
|
253
|
-
query,
|
|
254
|
-
body,
|
|
255
|
-
});
|
|
162
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
163
|
+
return b.build();
|
|
256
164
|
};
|
|
257
165
|
exports.se_DescribeSchemaCommand = se_DescribeSchemaCommand;
|
|
258
166
|
const se_ExportSchemaCommand = async (input, context) => {
|
|
259
|
-
const
|
|
167
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
260
168
|
const headers = {};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
169
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export");
|
|
170
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
171
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
265
172
|
const query = (0, smithy_client_1.map)({
|
|
266
|
-
|
|
267
|
-
|
|
173
|
+
[_sV]: [, input[_SV]],
|
|
174
|
+
[_t]: [, (0, smithy_client_1.expectNonNull)(input[_T], `Type`)],
|
|
268
175
|
});
|
|
269
176
|
let body;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
hostname,
|
|
273
|
-
port,
|
|
274
|
-
method: "GET",
|
|
275
|
-
headers,
|
|
276
|
-
path: resolvedPath,
|
|
277
|
-
query,
|
|
278
|
-
body,
|
|
279
|
-
});
|
|
177
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
178
|
+
return b.build();
|
|
280
179
|
};
|
|
281
180
|
exports.se_ExportSchemaCommand = se_ExportSchemaCommand;
|
|
282
181
|
const se_GetCodeBindingSourceCommand = async (input, context) => {
|
|
283
|
-
const
|
|
182
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
284
183
|
const headers = {};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
184
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source");
|
|
185
|
+
b.p("Language", () => input.Language, "{Language}", false);
|
|
186
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
187
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
290
188
|
const query = (0, smithy_client_1.map)({
|
|
291
|
-
|
|
189
|
+
[_sV]: [, input[_SV]],
|
|
292
190
|
});
|
|
293
191
|
let body;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
hostname,
|
|
297
|
-
port,
|
|
298
|
-
method: "GET",
|
|
299
|
-
headers,
|
|
300
|
-
path: resolvedPath,
|
|
301
|
-
query,
|
|
302
|
-
body,
|
|
303
|
-
});
|
|
192
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
193
|
+
return b.build();
|
|
304
194
|
};
|
|
305
195
|
exports.se_GetCodeBindingSourceCommand = se_GetCodeBindingSourceCommand;
|
|
306
196
|
const se_GetDiscoveredSchemaCommand = async (input, context) => {
|
|
307
|
-
const
|
|
197
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
308
198
|
const headers = {
|
|
309
199
|
"content-type": "application/json",
|
|
310
200
|
};
|
|
311
|
-
|
|
201
|
+
b.bp("/v1/discover");
|
|
312
202
|
let body;
|
|
313
203
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
204
|
Events: (_) => (0, smithy_client_1._json)(_),
|
|
315
205
|
Type: [],
|
|
316
206
|
}));
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
hostname,
|
|
320
|
-
port,
|
|
321
|
-
method: "POST",
|
|
322
|
-
headers,
|
|
323
|
-
path: resolvedPath,
|
|
324
|
-
body,
|
|
325
|
-
});
|
|
207
|
+
b.m("POST").h(headers).b(body);
|
|
208
|
+
return b.build();
|
|
326
209
|
};
|
|
327
210
|
exports.se_GetDiscoveredSchemaCommand = se_GetDiscoveredSchemaCommand;
|
|
328
211
|
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
329
|
-
const
|
|
212
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
330
213
|
const headers = {};
|
|
331
|
-
|
|
214
|
+
b.bp("/v1/policy");
|
|
332
215
|
const query = (0, smithy_client_1.map)({
|
|
333
|
-
|
|
216
|
+
[_rN]: [, input[_RN]],
|
|
334
217
|
});
|
|
335
218
|
let body;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
hostname,
|
|
339
|
-
port,
|
|
340
|
-
method: "GET",
|
|
341
|
-
headers,
|
|
342
|
-
path: resolvedPath,
|
|
343
|
-
query,
|
|
344
|
-
body,
|
|
345
|
-
});
|
|
219
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
220
|
+
return b.build();
|
|
346
221
|
};
|
|
347
222
|
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
348
223
|
const se_ListDiscoverersCommand = async (input, context) => {
|
|
349
|
-
const
|
|
224
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
350
225
|
const headers = {};
|
|
351
|
-
|
|
226
|
+
b.bp("/v1/discoverers");
|
|
352
227
|
const query = (0, smithy_client_1.map)({
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
228
|
+
[_dIP]: [, input[_DIP]],
|
|
229
|
+
[_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
|
|
230
|
+
[_nT]: [, input[_NT]],
|
|
231
|
+
[_sAP]: [, input[_SAP]],
|
|
357
232
|
});
|
|
358
233
|
let body;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
hostname,
|
|
362
|
-
port,
|
|
363
|
-
method: "GET",
|
|
364
|
-
headers,
|
|
365
|
-
path: resolvedPath,
|
|
366
|
-
query,
|
|
367
|
-
body,
|
|
368
|
-
});
|
|
234
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
+
return b.build();
|
|
369
236
|
};
|
|
370
237
|
exports.se_ListDiscoverersCommand = se_ListDiscoverersCommand;
|
|
371
238
|
const se_ListRegistriesCommand = async (input, context) => {
|
|
372
|
-
const
|
|
239
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
373
240
|
const headers = {};
|
|
374
|
-
|
|
241
|
+
b.bp("/v1/registries");
|
|
375
242
|
const query = (0, smithy_client_1.map)({
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
243
|
+
[_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
|
|
244
|
+
[_nT]: [, input[_NT]],
|
|
245
|
+
[_rNP]: [, input[_RNP]],
|
|
246
|
+
[_s]: [, input[_S]],
|
|
380
247
|
});
|
|
381
248
|
let body;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
hostname,
|
|
385
|
-
port,
|
|
386
|
-
method: "GET",
|
|
387
|
-
headers,
|
|
388
|
-
path: resolvedPath,
|
|
389
|
-
query,
|
|
390
|
-
body,
|
|
391
|
-
});
|
|
249
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
250
|
+
return b.build();
|
|
392
251
|
};
|
|
393
252
|
exports.se_ListRegistriesCommand = se_ListRegistriesCommand;
|
|
394
253
|
const se_ListSchemasCommand = async (input, context) => {
|
|
395
|
-
const
|
|
254
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
396
255
|
const headers = {};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
256
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas");
|
|
257
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
400
258
|
const query = (0, smithy_client_1.map)({
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
259
|
+
[_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
|
|
260
|
+
[_nT]: [, input[_NT]],
|
|
261
|
+
[_sNP]: [, input[_SNP]],
|
|
404
262
|
});
|
|
405
263
|
let body;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
hostname,
|
|
409
|
-
port,
|
|
410
|
-
method: "GET",
|
|
411
|
-
headers,
|
|
412
|
-
path: resolvedPath,
|
|
413
|
-
query,
|
|
414
|
-
body,
|
|
415
|
-
});
|
|
264
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
265
|
+
return b.build();
|
|
416
266
|
};
|
|
417
267
|
exports.se_ListSchemasCommand = se_ListSchemasCommand;
|
|
418
268
|
const se_ListSchemaVersionsCommand = async (input, context) => {
|
|
419
|
-
const
|
|
269
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
420
270
|
const headers = {};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
271
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions");
|
|
272
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
273
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
425
274
|
const query = (0, smithy_client_1.map)({
|
|
426
|
-
|
|
427
|
-
|
|
275
|
+
[_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
|
|
276
|
+
[_nT]: [, input[_NT]],
|
|
428
277
|
});
|
|
429
278
|
let body;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
hostname,
|
|
433
|
-
port,
|
|
434
|
-
method: "GET",
|
|
435
|
-
headers,
|
|
436
|
-
path: resolvedPath,
|
|
437
|
-
query,
|
|
438
|
-
body,
|
|
439
|
-
});
|
|
279
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
280
|
+
return b.build();
|
|
440
281
|
};
|
|
441
282
|
exports.se_ListSchemaVersionsCommand = se_ListSchemaVersionsCommand;
|
|
442
283
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
443
|
-
const
|
|
284
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
444
285
|
const headers = {};
|
|
445
|
-
|
|
446
|
-
|
|
286
|
+
b.bp("/tags/{ResourceArn}");
|
|
287
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
447
288
|
let body;
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
hostname,
|
|
451
|
-
port,
|
|
452
|
-
method: "GET",
|
|
453
|
-
headers,
|
|
454
|
-
path: resolvedPath,
|
|
455
|
-
body,
|
|
456
|
-
});
|
|
289
|
+
b.m("GET").h(headers).b(body);
|
|
290
|
+
return b.build();
|
|
457
291
|
};
|
|
458
292
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
459
293
|
const se_PutCodeBindingCommand = async (input, context) => {
|
|
460
|
-
const
|
|
294
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
461
295
|
const headers = {};
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
296
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}");
|
|
297
|
+
b.p("Language", () => input.Language, "{Language}", false);
|
|
298
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
299
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
467
300
|
const query = (0, smithy_client_1.map)({
|
|
468
|
-
|
|
301
|
+
[_sV]: [, input[_SV]],
|
|
469
302
|
});
|
|
470
303
|
let body;
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
hostname,
|
|
474
|
-
port,
|
|
475
|
-
method: "POST",
|
|
476
|
-
headers,
|
|
477
|
-
path: resolvedPath,
|
|
478
|
-
query,
|
|
479
|
-
body,
|
|
480
|
-
});
|
|
304
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
305
|
+
return b.build();
|
|
481
306
|
};
|
|
482
307
|
exports.se_PutCodeBindingCommand = se_PutCodeBindingCommand;
|
|
483
308
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
484
|
-
const
|
|
309
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
310
|
const headers = {
|
|
486
311
|
"content-type": "application/json",
|
|
487
312
|
};
|
|
488
|
-
|
|
313
|
+
b.bp("/v1/policy");
|
|
489
314
|
const query = (0, smithy_client_1.map)({
|
|
490
|
-
|
|
315
|
+
[_rN]: [, input[_RN]],
|
|
491
316
|
});
|
|
492
317
|
let body;
|
|
493
318
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
494
319
|
Policy: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
495
320
|
RevisionId: [],
|
|
496
321
|
}));
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
hostname,
|
|
500
|
-
port,
|
|
501
|
-
method: "PUT",
|
|
502
|
-
headers,
|
|
503
|
-
path: resolvedPath,
|
|
504
|
-
query,
|
|
505
|
-
body,
|
|
506
|
-
});
|
|
322
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
323
|
+
return b.build();
|
|
507
324
|
};
|
|
508
325
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
509
326
|
const se_SearchSchemasCommand = async (input, context) => {
|
|
510
|
-
const
|
|
327
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
511
328
|
const headers = {};
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
329
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/search");
|
|
330
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
515
331
|
const query = (0, smithy_client_1.map)({
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
332
|
+
[_k]: [, (0, smithy_client_1.expectNonNull)(input[_K], `Keywords`)],
|
|
333
|
+
[_l]: [() => input.Limit !== void 0, () => input[_L].toString()],
|
|
334
|
+
[_nT]: [, input[_NT]],
|
|
519
335
|
});
|
|
520
336
|
let body;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
hostname,
|
|
524
|
-
port,
|
|
525
|
-
method: "GET",
|
|
526
|
-
headers,
|
|
527
|
-
path: resolvedPath,
|
|
528
|
-
query,
|
|
529
|
-
body,
|
|
530
|
-
});
|
|
337
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
338
|
+
return b.build();
|
|
531
339
|
};
|
|
532
340
|
exports.se_SearchSchemasCommand = se_SearchSchemasCommand;
|
|
533
341
|
const se_StartDiscovererCommand = async (input, context) => {
|
|
534
|
-
const
|
|
342
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
535
343
|
const headers = {};
|
|
536
|
-
|
|
537
|
-
|
|
344
|
+
b.bp("/v1/discoverers/id/{DiscovererId}/start");
|
|
345
|
+
b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
538
346
|
let body;
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
hostname,
|
|
542
|
-
port,
|
|
543
|
-
method: "POST",
|
|
544
|
-
headers,
|
|
545
|
-
path: resolvedPath,
|
|
546
|
-
body,
|
|
547
|
-
});
|
|
347
|
+
b.m("POST").h(headers).b(body);
|
|
348
|
+
return b.build();
|
|
548
349
|
};
|
|
549
350
|
exports.se_StartDiscovererCommand = se_StartDiscovererCommand;
|
|
550
351
|
const se_StopDiscovererCommand = async (input, context) => {
|
|
551
|
-
const
|
|
352
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
552
353
|
const headers = {};
|
|
553
|
-
|
|
554
|
-
|
|
354
|
+
b.bp("/v1/discoverers/id/{DiscovererId}/stop");
|
|
355
|
+
b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
555
356
|
let body;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
hostname,
|
|
559
|
-
port,
|
|
560
|
-
method: "POST",
|
|
561
|
-
headers,
|
|
562
|
-
path: resolvedPath,
|
|
563
|
-
body,
|
|
564
|
-
});
|
|
357
|
+
b.m("POST").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
565
359
|
};
|
|
566
360
|
exports.se_StopDiscovererCommand = se_StopDiscovererCommand;
|
|
567
361
|
const se_TagResourceCommand = async (input, context) => {
|
|
568
|
-
const
|
|
362
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
569
363
|
const headers = {
|
|
570
364
|
"content-type": "application/json",
|
|
571
365
|
};
|
|
572
|
-
|
|
573
|
-
|
|
366
|
+
b.bp("/tags/{ResourceArn}");
|
|
367
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
574
368
|
let body;
|
|
575
369
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
576
370
|
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
577
371
|
}));
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
hostname,
|
|
581
|
-
port,
|
|
582
|
-
method: "POST",
|
|
583
|
-
headers,
|
|
584
|
-
path: resolvedPath,
|
|
585
|
-
body,
|
|
586
|
-
});
|
|
372
|
+
b.m("POST").h(headers).b(body);
|
|
373
|
+
return b.build();
|
|
587
374
|
};
|
|
588
375
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
589
376
|
const se_UntagResourceCommand = async (input, context) => {
|
|
590
|
-
const
|
|
377
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
591
378
|
const headers = {};
|
|
592
|
-
|
|
593
|
-
|
|
379
|
+
b.bp("/tags/{ResourceArn}");
|
|
380
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
594
381
|
const query = (0, smithy_client_1.map)({
|
|
595
|
-
|
|
382
|
+
[_tK]: [
|
|
596
383
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
597
|
-
() => (input
|
|
384
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
598
385
|
],
|
|
599
386
|
});
|
|
600
387
|
let body;
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
hostname,
|
|
604
|
-
port,
|
|
605
|
-
method: "DELETE",
|
|
606
|
-
headers,
|
|
607
|
-
path: resolvedPath,
|
|
608
|
-
query,
|
|
609
|
-
body,
|
|
610
|
-
});
|
|
388
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
389
|
+
return b.build();
|
|
611
390
|
};
|
|
612
391
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
613
392
|
const se_UpdateDiscovererCommand = async (input, context) => {
|
|
614
|
-
const
|
|
393
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
615
394
|
const headers = {
|
|
616
395
|
"content-type": "application/json",
|
|
617
396
|
};
|
|
618
|
-
|
|
619
|
-
|
|
397
|
+
b.bp("/v1/discoverers/id/{DiscovererId}");
|
|
398
|
+
b.p("DiscovererId", () => input.DiscovererId, "{DiscovererId}", false);
|
|
620
399
|
let body;
|
|
621
400
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
622
401
|
CrossAccount: [],
|
|
623
402
|
Description: [],
|
|
624
403
|
}));
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
hostname,
|
|
628
|
-
port,
|
|
629
|
-
method: "PUT",
|
|
630
|
-
headers,
|
|
631
|
-
path: resolvedPath,
|
|
632
|
-
body,
|
|
633
|
-
});
|
|
404
|
+
b.m("PUT").h(headers).b(body);
|
|
405
|
+
return b.build();
|
|
634
406
|
};
|
|
635
407
|
exports.se_UpdateDiscovererCommand = se_UpdateDiscovererCommand;
|
|
636
408
|
const se_UpdateRegistryCommand = async (input, context) => {
|
|
637
|
-
const
|
|
409
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
638
410
|
const headers = {
|
|
639
411
|
"content-type": "application/json",
|
|
640
412
|
};
|
|
641
|
-
|
|
642
|
-
|
|
413
|
+
b.bp("/v1/registries/name/{RegistryName}");
|
|
414
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
643
415
|
let body;
|
|
644
416
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
645
417
|
Description: [],
|
|
646
418
|
}));
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
hostname,
|
|
650
|
-
port,
|
|
651
|
-
method: "PUT",
|
|
652
|
-
headers,
|
|
653
|
-
path: resolvedPath,
|
|
654
|
-
body,
|
|
655
|
-
});
|
|
419
|
+
b.m("PUT").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
656
421
|
};
|
|
657
422
|
exports.se_UpdateRegistryCommand = se_UpdateRegistryCommand;
|
|
658
423
|
const se_UpdateSchemaCommand = async (input, context) => {
|
|
659
|
-
const
|
|
424
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
660
425
|
const headers = {
|
|
661
426
|
"content-type": "application/json",
|
|
662
427
|
};
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
428
|
+
b.bp("/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}");
|
|
429
|
+
b.p("RegistryName", () => input.RegistryName, "{RegistryName}", false);
|
|
430
|
+
b.p("SchemaName", () => input.SchemaName, "{SchemaName}", false);
|
|
667
431
|
let body;
|
|
668
432
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
669
433
|
ClientTokenId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -671,15 +435,8 @@ const se_UpdateSchemaCommand = async (input, context) => {
|
|
|
671
435
|
Description: [],
|
|
672
436
|
Type: [],
|
|
673
437
|
}));
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
hostname,
|
|
677
|
-
port,
|
|
678
|
-
method: "PUT",
|
|
679
|
-
headers,
|
|
680
|
-
path: resolvedPath,
|
|
681
|
-
body,
|
|
682
|
-
});
|
|
438
|
+
b.m("PUT").h(headers).b(body);
|
|
439
|
+
return b.build();
|
|
683
440
|
};
|
|
684
441
|
exports.se_UpdateSchemaCommand = se_UpdateSchemaCommand;
|
|
685
442
|
const de_CreateDiscovererCommand = async (output, context) => {
|
|
@@ -2439,6 +2196,30 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2439
2196
|
value !== "" &&
|
|
2440
2197
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2441
2198
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2199
|
+
const _DIP = "DiscovererIdPrefix";
|
|
2200
|
+
const _K = "Keywords";
|
|
2201
|
+
const _L = "Limit";
|
|
2202
|
+
const _NT = "NextToken";
|
|
2203
|
+
const _RN = "RegistryName";
|
|
2204
|
+
const _RNP = "RegistryNamePrefix";
|
|
2205
|
+
const _S = "Scope";
|
|
2206
|
+
const _SAP = "SourceArnPrefix";
|
|
2207
|
+
const _SNP = "SchemaNamePrefix";
|
|
2208
|
+
const _SV = "SchemaVersion";
|
|
2209
|
+
const _T = "Type";
|
|
2210
|
+
const _TK = "TagKeys";
|
|
2211
|
+
const _dIP = "discovererIdPrefix";
|
|
2212
|
+
const _k = "keywords";
|
|
2213
|
+
const _l = "limit";
|
|
2214
|
+
const _nT = "nextToken";
|
|
2215
|
+
const _rN = "registryName";
|
|
2216
|
+
const _rNP = "registryNamePrefix";
|
|
2217
|
+
const _s = "scope";
|
|
2218
|
+
const _sAP = "sourceArnPrefix";
|
|
2219
|
+
const _sNP = "schemaNamePrefix";
|
|
2220
|
+
const _sV = "schemaVersion";
|
|
2221
|
+
const _t = "type";
|
|
2222
|
+
const _tK = "tagKeys";
|
|
2442
2223
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2443
2224
|
if (encoded.length) {
|
|
2444
2225
|
return JSON.parse(encoded);
|