@aws-sdk/client-schemas 3.306.0 → 3.309.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/commands/CreateDiscovererCommand.js +2 -2
- package/dist-cjs/commands/CreateRegistryCommand.js +2 -2
- package/dist-cjs/commands/CreateSchemaCommand.js +2 -2
- package/dist-cjs/commands/DeleteDiscovererCommand.js +2 -2
- package/dist-cjs/commands/DeleteRegistryCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteSchemaCommand.js +2 -2
- package/dist-cjs/commands/DeleteSchemaVersionCommand.js +2 -2
- package/dist-cjs/commands/DescribeCodeBindingCommand.js +2 -2
- package/dist-cjs/commands/DescribeDiscovererCommand.js +2 -2
- package/dist-cjs/commands/DescribeRegistryCommand.js +2 -2
- package/dist-cjs/commands/DescribeSchemaCommand.js +2 -2
- package/dist-cjs/commands/ExportSchemaCommand.js +2 -2
- package/dist-cjs/commands/GetCodeBindingSourceCommand.js +2 -2
- package/dist-cjs/commands/GetDiscoveredSchemaCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/ListDiscoverersCommand.js +2 -2
- package/dist-cjs/commands/ListRegistriesCommand.js +2 -2
- package/dist-cjs/commands/ListSchemaVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListSchemasCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutCodeBindingCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/SearchSchemasCommand.js +2 -2
- package/dist-cjs/commands/StartDiscovererCommand.js +2 -2
- package/dist-cjs/commands/StopDiscovererCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDiscovererCommand.js +2 -2
- package/dist-cjs/commands/UpdateRegistryCommand.js +2 -2
- package/dist-cjs/commands/UpdateSchemaCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +418 -422
- package/dist-es/commands/CreateDiscovererCommand.js +3 -3
- package/dist-es/commands/CreateRegistryCommand.js +3 -3
- package/dist-es/commands/CreateSchemaCommand.js +3 -3
- package/dist-es/commands/DeleteDiscovererCommand.js +3 -3
- package/dist-es/commands/DeleteRegistryCommand.js +3 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteSchemaCommand.js +3 -3
- package/dist-es/commands/DeleteSchemaVersionCommand.js +3 -3
- package/dist-es/commands/DescribeCodeBindingCommand.js +3 -3
- package/dist-es/commands/DescribeDiscovererCommand.js +3 -3
- package/dist-es/commands/DescribeRegistryCommand.js +3 -3
- package/dist-es/commands/DescribeSchemaCommand.js +3 -3
- package/dist-es/commands/ExportSchemaCommand.js +3 -3
- package/dist-es/commands/GetCodeBindingSourceCommand.js +3 -3
- package/dist-es/commands/GetDiscoveredSchemaCommand.js +3 -3
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -3
- package/dist-es/commands/ListDiscoverersCommand.js +3 -3
- package/dist-es/commands/ListRegistriesCommand.js +3 -3
- package/dist-es/commands/ListSchemaVersionsCommand.js +3 -3
- package/dist-es/commands/ListSchemasCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutCodeBindingCommand.js +3 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-es/commands/SearchSchemasCommand.js +3 -3
- package/dist-es/commands/StartDiscovererCommand.js +3 -3
- package/dist-es/commands/StopDiscovererCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDiscovererCommand.js +3 -3
- package/dist-es/commands/UpdateRegistryCommand.js +3 -3
- package/dist-es/commands/UpdateSchemaCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +354 -358
- package/dist-types/protocols/Aws_restJson1.d.ts +248 -62
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +62 -62
- package/package.json +6 -6
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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
|
+
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
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/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
|
-
const
|
|
10
|
+
const se_CreateDiscovererCommand = async (input, context) => {
|
|
11
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
@@ -18,7 +18,7 @@ const serializeAws_restJson1CreateDiscovererCommand = async (input, context) =>
|
|
|
18
18
|
...(input.CrossAccount != null && { CrossAccount: input.CrossAccount }),
|
|
19
19
|
...(input.Description != null && { Description: input.Description }),
|
|
20
20
|
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
21
|
-
...(input.Tags != null && { tags:
|
|
21
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
22
22
|
});
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
@@ -30,8 +30,8 @@ const serializeAws_restJson1CreateDiscovererCommand = async (input, context) =>
|
|
|
30
30
|
body,
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
33
|
+
exports.se_CreateDiscovererCommand = se_CreateDiscovererCommand;
|
|
34
|
+
const se_CreateRegistryCommand = async (input, context) => {
|
|
35
35
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
36
36
|
const headers = {
|
|
37
37
|
"content-type": "application/json",
|
|
@@ -41,7 +41,7 @@ const serializeAws_restJson1CreateRegistryCommand = async (input, context) => {
|
|
|
41
41
|
let body;
|
|
42
42
|
body = JSON.stringify({
|
|
43
43
|
...(input.Description != null && { Description: input.Description }),
|
|
44
|
-
...(input.Tags != null && { tags:
|
|
44
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
45
45
|
});
|
|
46
46
|
return new protocol_http_1.HttpRequest({
|
|
47
47
|
protocol,
|
|
@@ -53,8 +53,8 @@ const serializeAws_restJson1CreateRegistryCommand = async (input, context) => {
|
|
|
53
53
|
body,
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
exports.
|
|
57
|
-
const
|
|
56
|
+
exports.se_CreateRegistryCommand = se_CreateRegistryCommand;
|
|
57
|
+
const se_CreateSchemaCommand = async (input, context) => {
|
|
58
58
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/json",
|
|
@@ -67,7 +67,7 @@ const serializeAws_restJson1CreateSchemaCommand = async (input, context) => {
|
|
|
67
67
|
body = JSON.stringify({
|
|
68
68
|
...(input.Content != null && { Content: input.Content }),
|
|
69
69
|
...(input.Description != null && { Description: input.Description }),
|
|
70
|
-
...(input.Tags != null && { tags:
|
|
70
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
71
71
|
...(input.Type != null && { Type: input.Type }),
|
|
72
72
|
});
|
|
73
73
|
return new protocol_http_1.HttpRequest({
|
|
@@ -80,8 +80,8 @@ const serializeAws_restJson1CreateSchemaCommand = async (input, context) => {
|
|
|
80
80
|
body,
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
exports.
|
|
84
|
-
const
|
|
83
|
+
exports.se_CreateSchemaCommand = se_CreateSchemaCommand;
|
|
84
|
+
const se_DeleteDiscovererCommand = async (input, context) => {
|
|
85
85
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
86
|
const headers = {};
|
|
87
87
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}";
|
|
@@ -97,8 +97,8 @@ const serializeAws_restJson1DeleteDiscovererCommand = async (input, context) =>
|
|
|
97
97
|
body,
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
exports.
|
|
101
|
-
const
|
|
100
|
+
exports.se_DeleteDiscovererCommand = se_DeleteDiscovererCommand;
|
|
101
|
+
const se_DeleteRegistryCommand = async (input, context) => {
|
|
102
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
103
103
|
const headers = {};
|
|
104
104
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}";
|
|
@@ -114,8 +114,8 @@ const serializeAws_restJson1DeleteRegistryCommand = async (input, context) => {
|
|
|
114
114
|
body,
|
|
115
115
|
});
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_DeleteRegistryCommand = se_DeleteRegistryCommand;
|
|
118
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
119
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
120
|
const headers = {};
|
|
121
121
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy";
|
|
@@ -134,8 +134,8 @@ const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context)
|
|
|
134
134
|
body,
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
138
|
+
const se_DeleteSchemaCommand = async (input, context) => {
|
|
139
139
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
140
|
const headers = {};
|
|
141
141
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -153,8 +153,8 @@ const serializeAws_restJson1DeleteSchemaCommand = async (input, context) => {
|
|
|
153
153
|
body,
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
|
-
exports.
|
|
157
|
-
const
|
|
156
|
+
exports.se_DeleteSchemaCommand = se_DeleteSchemaCommand;
|
|
157
|
+
const se_DeleteSchemaVersionCommand = async (input, context) => {
|
|
158
158
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
159
|
const headers = {};
|
|
160
160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -173,8 +173,8 @@ const serializeAws_restJson1DeleteSchemaVersionCommand = async (input, context)
|
|
|
173
173
|
body,
|
|
174
174
|
});
|
|
175
175
|
};
|
|
176
|
-
exports.
|
|
177
|
-
const
|
|
176
|
+
exports.se_DeleteSchemaVersionCommand = se_DeleteSchemaVersionCommand;
|
|
177
|
+
const se_DescribeCodeBindingCommand = async (input, context) => {
|
|
178
178
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
179
|
const headers = {};
|
|
180
180
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -197,8 +197,8 @@ const serializeAws_restJson1DescribeCodeBindingCommand = async (input, context)
|
|
|
197
197
|
body,
|
|
198
198
|
});
|
|
199
199
|
};
|
|
200
|
-
exports.
|
|
201
|
-
const
|
|
200
|
+
exports.se_DescribeCodeBindingCommand = se_DescribeCodeBindingCommand;
|
|
201
|
+
const se_DescribeDiscovererCommand = async (input, context) => {
|
|
202
202
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
203
203
|
const headers = {};
|
|
204
204
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}";
|
|
@@ -214,8 +214,8 @@ const serializeAws_restJson1DescribeDiscovererCommand = async (input, context) =
|
|
|
214
214
|
body,
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
|
-
exports.
|
|
218
|
-
const
|
|
217
|
+
exports.se_DescribeDiscovererCommand = se_DescribeDiscovererCommand;
|
|
218
|
+
const se_DescribeRegistryCommand = async (input, context) => {
|
|
219
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
220
220
|
const headers = {};
|
|
221
221
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries/name/{RegistryName}";
|
|
@@ -231,8 +231,8 @@ const serializeAws_restJson1DescribeRegistryCommand = async (input, context) =>
|
|
|
231
231
|
body,
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
|
-
exports.
|
|
235
|
-
const
|
|
234
|
+
exports.se_DescribeRegistryCommand = se_DescribeRegistryCommand;
|
|
235
|
+
const se_DescribeSchemaCommand = async (input, context) => {
|
|
236
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
237
237
|
const headers = {};
|
|
238
238
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -254,8 +254,8 @@ const serializeAws_restJson1DescribeSchemaCommand = async (input, context) => {
|
|
|
254
254
|
body,
|
|
255
255
|
});
|
|
256
256
|
};
|
|
257
|
-
exports.
|
|
258
|
-
const
|
|
257
|
+
exports.se_DescribeSchemaCommand = se_DescribeSchemaCommand;
|
|
258
|
+
const se_ExportSchemaCommand = async (input, context) => {
|
|
259
259
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
260
260
|
const headers = {};
|
|
261
261
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -278,8 +278,8 @@ const serializeAws_restJson1ExportSchemaCommand = async (input, context) => {
|
|
|
278
278
|
body,
|
|
279
279
|
});
|
|
280
280
|
};
|
|
281
|
-
exports.
|
|
282
|
-
const
|
|
281
|
+
exports.se_ExportSchemaCommand = se_ExportSchemaCommand;
|
|
282
|
+
const se_GetCodeBindingSourceCommand = async (input, context) => {
|
|
283
283
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
284
284
|
const headers = {};
|
|
285
285
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -302,8 +302,8 @@ const serializeAws_restJson1GetCodeBindingSourceCommand = async (input, context)
|
|
|
302
302
|
body,
|
|
303
303
|
});
|
|
304
304
|
};
|
|
305
|
-
exports.
|
|
306
|
-
const
|
|
305
|
+
exports.se_GetCodeBindingSourceCommand = se_GetCodeBindingSourceCommand;
|
|
306
|
+
const se_GetDiscoveredSchemaCommand = async (input, context) => {
|
|
307
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
308
|
const headers = {
|
|
309
309
|
"content-type": "application/json",
|
|
@@ -311,9 +311,7 @@ const serializeAws_restJson1GetDiscoveredSchemaCommand = async (input, context)
|
|
|
311
311
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discover";
|
|
312
312
|
let body;
|
|
313
313
|
body = JSON.stringify({
|
|
314
|
-
...(input.Events != null && {
|
|
315
|
-
Events: serializeAws_restJson1__listOfGetDiscoveredSchemaVersionItemInput(input.Events, context),
|
|
316
|
-
}),
|
|
314
|
+
...(input.Events != null && { Events: se___listOfGetDiscoveredSchemaVersionItemInput(input.Events, context) }),
|
|
317
315
|
...(input.Type != null && { Type: input.Type }),
|
|
318
316
|
});
|
|
319
317
|
return new protocol_http_1.HttpRequest({
|
|
@@ -326,8 +324,8 @@ const serializeAws_restJson1GetDiscoveredSchemaCommand = async (input, context)
|
|
|
326
324
|
body,
|
|
327
325
|
});
|
|
328
326
|
};
|
|
329
|
-
exports.
|
|
330
|
-
const
|
|
327
|
+
exports.se_GetDiscoveredSchemaCommand = se_GetDiscoveredSchemaCommand;
|
|
328
|
+
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
331
329
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
332
330
|
const headers = {};
|
|
333
331
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/policy";
|
|
@@ -346,8 +344,8 @@ const serializeAws_restJson1GetResourcePolicyCommand = async (input, context) =>
|
|
|
346
344
|
body,
|
|
347
345
|
});
|
|
348
346
|
};
|
|
349
|
-
exports.
|
|
350
|
-
const
|
|
347
|
+
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
348
|
+
const se_ListDiscoverersCommand = async (input, context) => {
|
|
351
349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
352
350
|
const headers = {};
|
|
353
351
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers";
|
|
@@ -369,8 +367,8 @@ const serializeAws_restJson1ListDiscoverersCommand = async (input, context) => {
|
|
|
369
367
|
body,
|
|
370
368
|
});
|
|
371
369
|
};
|
|
372
|
-
exports.
|
|
373
|
-
const
|
|
370
|
+
exports.se_ListDiscoverersCommand = se_ListDiscoverersCommand;
|
|
371
|
+
const se_ListRegistriesCommand = async (input, context) => {
|
|
374
372
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
373
|
const headers = {};
|
|
376
374
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registries";
|
|
@@ -392,8 +390,8 @@ const serializeAws_restJson1ListRegistriesCommand = async (input, context) => {
|
|
|
392
390
|
body,
|
|
393
391
|
});
|
|
394
392
|
};
|
|
395
|
-
exports.
|
|
396
|
-
const
|
|
393
|
+
exports.se_ListRegistriesCommand = se_ListRegistriesCommand;
|
|
394
|
+
const se_ListSchemasCommand = async (input, context) => {
|
|
397
395
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
398
396
|
const headers = {};
|
|
399
397
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -416,8 +414,8 @@ const serializeAws_restJson1ListSchemasCommand = async (input, context) => {
|
|
|
416
414
|
body,
|
|
417
415
|
});
|
|
418
416
|
};
|
|
419
|
-
exports.
|
|
420
|
-
const
|
|
417
|
+
exports.se_ListSchemasCommand = se_ListSchemasCommand;
|
|
418
|
+
const se_ListSchemaVersionsCommand = async (input, context) => {
|
|
421
419
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
422
420
|
const headers = {};
|
|
423
421
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -440,8 +438,8 @@ const serializeAws_restJson1ListSchemaVersionsCommand = async (input, context) =
|
|
|
440
438
|
body,
|
|
441
439
|
});
|
|
442
440
|
};
|
|
443
|
-
exports.
|
|
444
|
-
const
|
|
441
|
+
exports.se_ListSchemaVersionsCommand = se_ListSchemaVersionsCommand;
|
|
442
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
445
443
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
446
444
|
const headers = {};
|
|
447
445
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -457,8 +455,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
457
455
|
body,
|
|
458
456
|
});
|
|
459
457
|
};
|
|
460
|
-
exports.
|
|
461
|
-
const
|
|
458
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
459
|
+
const se_PutCodeBindingCommand = async (input, context) => {
|
|
462
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
463
461
|
const headers = {};
|
|
464
462
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -481,8 +479,8 @@ const serializeAws_restJson1PutCodeBindingCommand = async (input, context) => {
|
|
|
481
479
|
body,
|
|
482
480
|
});
|
|
483
481
|
};
|
|
484
|
-
exports.
|
|
485
|
-
const
|
|
482
|
+
exports.se_PutCodeBindingCommand = se_PutCodeBindingCommand;
|
|
483
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
486
484
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
487
485
|
const headers = {
|
|
488
486
|
"content-type": "application/json",
|
|
@@ -507,8 +505,8 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
|
|
|
507
505
|
body,
|
|
508
506
|
});
|
|
509
507
|
};
|
|
510
|
-
exports.
|
|
511
|
-
const
|
|
508
|
+
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
509
|
+
const se_SearchSchemasCommand = async (input, context) => {
|
|
512
510
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
513
511
|
const headers = {};
|
|
514
512
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -531,8 +529,8 @@ const serializeAws_restJson1SearchSchemasCommand = async (input, context) => {
|
|
|
531
529
|
body,
|
|
532
530
|
});
|
|
533
531
|
};
|
|
534
|
-
exports.
|
|
535
|
-
const
|
|
532
|
+
exports.se_SearchSchemasCommand = se_SearchSchemasCommand;
|
|
533
|
+
const se_StartDiscovererCommand = async (input, context) => {
|
|
536
534
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
537
535
|
const headers = {};
|
|
538
536
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}/start";
|
|
@@ -548,8 +546,8 @@ const serializeAws_restJson1StartDiscovererCommand = async (input, context) => {
|
|
|
548
546
|
body,
|
|
549
547
|
});
|
|
550
548
|
};
|
|
551
|
-
exports.
|
|
552
|
-
const
|
|
549
|
+
exports.se_StartDiscovererCommand = se_StartDiscovererCommand;
|
|
550
|
+
const se_StopDiscovererCommand = async (input, context) => {
|
|
553
551
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
554
552
|
const headers = {};
|
|
555
553
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers/id/{DiscovererId}/stop";
|
|
@@ -565,8 +563,8 @@ const serializeAws_restJson1StopDiscovererCommand = async (input, context) => {
|
|
|
565
563
|
body,
|
|
566
564
|
});
|
|
567
565
|
};
|
|
568
|
-
exports.
|
|
569
|
-
const
|
|
566
|
+
exports.se_StopDiscovererCommand = se_StopDiscovererCommand;
|
|
567
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
570
568
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
571
569
|
const headers = {
|
|
572
570
|
"content-type": "application/json",
|
|
@@ -575,7 +573,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
575
573
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
576
574
|
let body;
|
|
577
575
|
body = JSON.stringify({
|
|
578
|
-
...(input.Tags != null && { tags:
|
|
576
|
+
...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
|
|
579
577
|
});
|
|
580
578
|
return new protocol_http_1.HttpRequest({
|
|
581
579
|
protocol,
|
|
@@ -587,8 +585,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
587
585
|
body,
|
|
588
586
|
});
|
|
589
587
|
};
|
|
590
|
-
exports.
|
|
591
|
-
const
|
|
588
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
589
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
592
590
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
593
591
|
const headers = {};
|
|
594
592
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -611,8 +609,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
611
609
|
body,
|
|
612
610
|
});
|
|
613
611
|
};
|
|
614
|
-
exports.
|
|
615
|
-
const
|
|
612
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
613
|
+
const se_UpdateDiscovererCommand = async (input, context) => {
|
|
616
614
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
617
615
|
const headers = {
|
|
618
616
|
"content-type": "application/json",
|
|
@@ -634,8 +632,8 @@ const serializeAws_restJson1UpdateDiscovererCommand = async (input, context) =>
|
|
|
634
632
|
body,
|
|
635
633
|
});
|
|
636
634
|
};
|
|
637
|
-
exports.
|
|
638
|
-
const
|
|
635
|
+
exports.se_UpdateDiscovererCommand = se_UpdateDiscovererCommand;
|
|
636
|
+
const se_UpdateRegistryCommand = async (input, context) => {
|
|
639
637
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
640
638
|
const headers = {
|
|
641
639
|
"content-type": "application/json",
|
|
@@ -656,8 +654,8 @@ const serializeAws_restJson1UpdateRegistryCommand = async (input, context) => {
|
|
|
656
654
|
body,
|
|
657
655
|
});
|
|
658
656
|
};
|
|
659
|
-
exports.
|
|
660
|
-
const
|
|
657
|
+
exports.se_UpdateRegistryCommand = se_UpdateRegistryCommand;
|
|
658
|
+
const se_UpdateSchemaCommand = async (input, context) => {
|
|
661
659
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
662
660
|
const headers = {
|
|
663
661
|
"content-type": "application/json",
|
|
@@ -683,10 +681,10 @@ const serializeAws_restJson1UpdateSchemaCommand = async (input, context) => {
|
|
|
683
681
|
body,
|
|
684
682
|
});
|
|
685
683
|
};
|
|
686
|
-
exports.
|
|
687
|
-
const
|
|
684
|
+
exports.se_UpdateSchemaCommand = se_UpdateSchemaCommand;
|
|
685
|
+
const de_CreateDiscovererCommand = async (output, context) => {
|
|
688
686
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
689
|
-
return
|
|
687
|
+
return de_CreateDiscovererCommandError(output, context);
|
|
690
688
|
}
|
|
691
689
|
const contents = map({
|
|
692
690
|
$metadata: deserializeMetadata(output),
|
|
@@ -711,12 +709,12 @@ const deserializeAws_restJson1CreateDiscovererCommand = async (output, context)
|
|
|
711
709
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
712
710
|
}
|
|
713
711
|
if (data.tags != null) {
|
|
714
|
-
contents.Tags =
|
|
712
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
715
713
|
}
|
|
716
714
|
return contents;
|
|
717
715
|
};
|
|
718
|
-
exports.
|
|
719
|
-
const
|
|
716
|
+
exports.de_CreateDiscovererCommand = de_CreateDiscovererCommand;
|
|
717
|
+
const de_CreateDiscovererCommandError = async (output, context) => {
|
|
720
718
|
const parsedOutput = {
|
|
721
719
|
...output,
|
|
722
720
|
body: await parseErrorBody(output.body, context),
|
|
@@ -725,22 +723,22 @@ const deserializeAws_restJson1CreateDiscovererCommandError = async (output, cont
|
|
|
725
723
|
switch (errorCode) {
|
|
726
724
|
case "BadRequestException":
|
|
727
725
|
case "com.amazonaws.schemas#BadRequestException":
|
|
728
|
-
throw await
|
|
726
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
729
727
|
case "ConflictException":
|
|
730
728
|
case "com.amazonaws.schemas#ConflictException":
|
|
731
|
-
throw await
|
|
729
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
732
730
|
case "ForbiddenException":
|
|
733
731
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
734
|
-
throw await
|
|
732
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
735
733
|
case "InternalServerErrorException":
|
|
736
734
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
737
|
-
throw await
|
|
735
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
738
736
|
case "ServiceUnavailableException":
|
|
739
737
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
740
|
-
throw await
|
|
738
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
741
739
|
case "UnauthorizedException":
|
|
742
740
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
743
|
-
throw await
|
|
741
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
744
742
|
default:
|
|
745
743
|
const parsedBody = parsedOutput.body;
|
|
746
744
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -751,9 +749,9 @@ const deserializeAws_restJson1CreateDiscovererCommandError = async (output, cont
|
|
|
751
749
|
});
|
|
752
750
|
}
|
|
753
751
|
};
|
|
754
|
-
const
|
|
752
|
+
const de_CreateRegistryCommand = async (output, context) => {
|
|
755
753
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
756
|
-
return
|
|
754
|
+
return de_CreateRegistryCommandError(output, context);
|
|
757
755
|
}
|
|
758
756
|
const contents = map({
|
|
759
757
|
$metadata: deserializeMetadata(output),
|
|
@@ -769,12 +767,12 @@ const deserializeAws_restJson1CreateRegistryCommand = async (output, context) =>
|
|
|
769
767
|
contents.RegistryName = (0, smithy_client_1.expectString)(data.RegistryName);
|
|
770
768
|
}
|
|
771
769
|
if (data.tags != null) {
|
|
772
|
-
contents.Tags =
|
|
770
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
773
771
|
}
|
|
774
772
|
return contents;
|
|
775
773
|
};
|
|
776
|
-
exports.
|
|
777
|
-
const
|
|
774
|
+
exports.de_CreateRegistryCommand = de_CreateRegistryCommand;
|
|
775
|
+
const de_CreateRegistryCommandError = async (output, context) => {
|
|
778
776
|
const parsedOutput = {
|
|
779
777
|
...output,
|
|
780
778
|
body: await parseErrorBody(output.body, context),
|
|
@@ -783,22 +781,22 @@ const deserializeAws_restJson1CreateRegistryCommandError = async (output, contex
|
|
|
783
781
|
switch (errorCode) {
|
|
784
782
|
case "BadRequestException":
|
|
785
783
|
case "com.amazonaws.schemas#BadRequestException":
|
|
786
|
-
throw await
|
|
784
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
787
785
|
case "ConflictException":
|
|
788
786
|
case "com.amazonaws.schemas#ConflictException":
|
|
789
|
-
throw await
|
|
787
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
790
788
|
case "ForbiddenException":
|
|
791
789
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
792
|
-
throw await
|
|
790
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
793
791
|
case "InternalServerErrorException":
|
|
794
792
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
795
|
-
throw await
|
|
793
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
796
794
|
case "ServiceUnavailableException":
|
|
797
795
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
798
|
-
throw await
|
|
796
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
799
797
|
case "UnauthorizedException":
|
|
800
798
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
801
|
-
throw await
|
|
799
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
802
800
|
default:
|
|
803
801
|
const parsedBody = parsedOutput.body;
|
|
804
802
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -809,9 +807,9 @@ const deserializeAws_restJson1CreateRegistryCommandError = async (output, contex
|
|
|
809
807
|
});
|
|
810
808
|
}
|
|
811
809
|
};
|
|
812
|
-
const
|
|
810
|
+
const de_CreateSchemaCommand = async (output, context) => {
|
|
813
811
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
814
|
-
return
|
|
812
|
+
return de_CreateSchemaCommandError(output, context);
|
|
815
813
|
}
|
|
816
814
|
const contents = map({
|
|
817
815
|
$metadata: deserializeMetadata(output),
|
|
@@ -833,7 +831,7 @@ const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
|
|
|
833
831
|
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
834
832
|
}
|
|
835
833
|
if (data.tags != null) {
|
|
836
|
-
contents.Tags =
|
|
834
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
837
835
|
}
|
|
838
836
|
if (data.Type != null) {
|
|
839
837
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
@@ -843,8 +841,8 @@ const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
|
|
|
843
841
|
}
|
|
844
842
|
return contents;
|
|
845
843
|
};
|
|
846
|
-
exports.
|
|
847
|
-
const
|
|
844
|
+
exports.de_CreateSchemaCommand = de_CreateSchemaCommand;
|
|
845
|
+
const de_CreateSchemaCommandError = async (output, context) => {
|
|
848
846
|
const parsedOutput = {
|
|
849
847
|
...output,
|
|
850
848
|
body: await parseErrorBody(output.body, context),
|
|
@@ -853,16 +851,16 @@ const deserializeAws_restJson1CreateSchemaCommandError = async (output, context)
|
|
|
853
851
|
switch (errorCode) {
|
|
854
852
|
case "BadRequestException":
|
|
855
853
|
case "com.amazonaws.schemas#BadRequestException":
|
|
856
|
-
throw await
|
|
854
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
857
855
|
case "ForbiddenException":
|
|
858
856
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
859
|
-
throw await
|
|
857
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
860
858
|
case "InternalServerErrorException":
|
|
861
859
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
862
|
-
throw await
|
|
860
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
863
861
|
case "ServiceUnavailableException":
|
|
864
862
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
865
|
-
throw await
|
|
863
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
866
864
|
default:
|
|
867
865
|
const parsedBody = parsedOutput.body;
|
|
868
866
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -873,9 +871,9 @@ const deserializeAws_restJson1CreateSchemaCommandError = async (output, context)
|
|
|
873
871
|
});
|
|
874
872
|
}
|
|
875
873
|
};
|
|
876
|
-
const
|
|
874
|
+
const de_DeleteDiscovererCommand = async (output, context) => {
|
|
877
875
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
878
|
-
return
|
|
876
|
+
return de_DeleteDiscovererCommandError(output, context);
|
|
879
877
|
}
|
|
880
878
|
const contents = map({
|
|
881
879
|
$metadata: deserializeMetadata(output),
|
|
@@ -883,8 +881,8 @@ const deserializeAws_restJson1DeleteDiscovererCommand = async (output, context)
|
|
|
883
881
|
await collectBody(output.body, context);
|
|
884
882
|
return contents;
|
|
885
883
|
};
|
|
886
|
-
exports.
|
|
887
|
-
const
|
|
884
|
+
exports.de_DeleteDiscovererCommand = de_DeleteDiscovererCommand;
|
|
885
|
+
const de_DeleteDiscovererCommandError = async (output, context) => {
|
|
888
886
|
const parsedOutput = {
|
|
889
887
|
...output,
|
|
890
888
|
body: await parseErrorBody(output.body, context),
|
|
@@ -893,22 +891,22 @@ const deserializeAws_restJson1DeleteDiscovererCommandError = async (output, cont
|
|
|
893
891
|
switch (errorCode) {
|
|
894
892
|
case "BadRequestException":
|
|
895
893
|
case "com.amazonaws.schemas#BadRequestException":
|
|
896
|
-
throw await
|
|
894
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
897
895
|
case "ForbiddenException":
|
|
898
896
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
899
|
-
throw await
|
|
897
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
900
898
|
case "InternalServerErrorException":
|
|
901
899
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
902
|
-
throw await
|
|
900
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
903
901
|
case "NotFoundException":
|
|
904
902
|
case "com.amazonaws.schemas#NotFoundException":
|
|
905
|
-
throw await
|
|
903
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
906
904
|
case "ServiceUnavailableException":
|
|
907
905
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
908
|
-
throw await
|
|
906
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
909
907
|
case "UnauthorizedException":
|
|
910
908
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
911
|
-
throw await
|
|
909
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
912
910
|
default:
|
|
913
911
|
const parsedBody = parsedOutput.body;
|
|
914
912
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -919,9 +917,9 @@ const deserializeAws_restJson1DeleteDiscovererCommandError = async (output, cont
|
|
|
919
917
|
});
|
|
920
918
|
}
|
|
921
919
|
};
|
|
922
|
-
const
|
|
920
|
+
const de_DeleteRegistryCommand = async (output, context) => {
|
|
923
921
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
924
|
-
return
|
|
922
|
+
return de_DeleteRegistryCommandError(output, context);
|
|
925
923
|
}
|
|
926
924
|
const contents = map({
|
|
927
925
|
$metadata: deserializeMetadata(output),
|
|
@@ -929,8 +927,8 @@ const deserializeAws_restJson1DeleteRegistryCommand = async (output, context) =>
|
|
|
929
927
|
await collectBody(output.body, context);
|
|
930
928
|
return contents;
|
|
931
929
|
};
|
|
932
|
-
exports.
|
|
933
|
-
const
|
|
930
|
+
exports.de_DeleteRegistryCommand = de_DeleteRegistryCommand;
|
|
931
|
+
const de_DeleteRegistryCommandError = async (output, context) => {
|
|
934
932
|
const parsedOutput = {
|
|
935
933
|
...output,
|
|
936
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -939,22 +937,22 @@ const deserializeAws_restJson1DeleteRegistryCommandError = async (output, contex
|
|
|
939
937
|
switch (errorCode) {
|
|
940
938
|
case "BadRequestException":
|
|
941
939
|
case "com.amazonaws.schemas#BadRequestException":
|
|
942
|
-
throw await
|
|
940
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
943
941
|
case "ForbiddenException":
|
|
944
942
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
945
|
-
throw await
|
|
943
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
946
944
|
case "InternalServerErrorException":
|
|
947
945
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
948
|
-
throw await
|
|
946
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
949
947
|
case "NotFoundException":
|
|
950
948
|
case "com.amazonaws.schemas#NotFoundException":
|
|
951
|
-
throw await
|
|
949
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
952
950
|
case "ServiceUnavailableException":
|
|
953
951
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
954
|
-
throw await
|
|
952
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
955
953
|
case "UnauthorizedException":
|
|
956
954
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
957
|
-
throw await
|
|
955
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
958
956
|
default:
|
|
959
957
|
const parsedBody = parsedOutput.body;
|
|
960
958
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -965,9 +963,9 @@ const deserializeAws_restJson1DeleteRegistryCommandError = async (output, contex
|
|
|
965
963
|
});
|
|
966
964
|
}
|
|
967
965
|
};
|
|
968
|
-
const
|
|
966
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
969
967
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
970
|
-
return
|
|
968
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
971
969
|
}
|
|
972
970
|
const contents = map({
|
|
973
971
|
$metadata: deserializeMetadata(output),
|
|
@@ -975,8 +973,8 @@ const deserializeAws_restJson1DeleteResourcePolicyCommand = async (output, conte
|
|
|
975
973
|
await collectBody(output.body, context);
|
|
976
974
|
return contents;
|
|
977
975
|
};
|
|
978
|
-
exports.
|
|
979
|
-
const
|
|
976
|
+
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
977
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
980
978
|
const parsedOutput = {
|
|
981
979
|
...output,
|
|
982
980
|
body: await parseErrorBody(output.body, context),
|
|
@@ -985,22 +983,22 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
985
983
|
switch (errorCode) {
|
|
986
984
|
case "BadRequestException":
|
|
987
985
|
case "com.amazonaws.schemas#BadRequestException":
|
|
988
|
-
throw await
|
|
986
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
989
987
|
case "ForbiddenException":
|
|
990
988
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
991
|
-
throw await
|
|
989
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
992
990
|
case "InternalServerErrorException":
|
|
993
991
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
994
|
-
throw await
|
|
992
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
995
993
|
case "NotFoundException":
|
|
996
994
|
case "com.amazonaws.schemas#NotFoundException":
|
|
997
|
-
throw await
|
|
995
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
998
996
|
case "ServiceUnavailableException":
|
|
999
997
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1000
|
-
throw await
|
|
998
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1001
999
|
case "UnauthorizedException":
|
|
1002
1000
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1003
|
-
throw await
|
|
1001
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1004
1002
|
default:
|
|
1005
1003
|
const parsedBody = parsedOutput.body;
|
|
1006
1004
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1011,9 +1009,9 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1011
1009
|
});
|
|
1012
1010
|
}
|
|
1013
1011
|
};
|
|
1014
|
-
const
|
|
1012
|
+
const de_DeleteSchemaCommand = async (output, context) => {
|
|
1015
1013
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1016
|
-
return
|
|
1014
|
+
return de_DeleteSchemaCommandError(output, context);
|
|
1017
1015
|
}
|
|
1018
1016
|
const contents = map({
|
|
1019
1017
|
$metadata: deserializeMetadata(output),
|
|
@@ -1021,8 +1019,8 @@ const deserializeAws_restJson1DeleteSchemaCommand = async (output, context) => {
|
|
|
1021
1019
|
await collectBody(output.body, context);
|
|
1022
1020
|
return contents;
|
|
1023
1021
|
};
|
|
1024
|
-
exports.
|
|
1025
|
-
const
|
|
1022
|
+
exports.de_DeleteSchemaCommand = de_DeleteSchemaCommand;
|
|
1023
|
+
const de_DeleteSchemaCommandError = async (output, context) => {
|
|
1026
1024
|
const parsedOutput = {
|
|
1027
1025
|
...output,
|
|
1028
1026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1031,22 +1029,22 @@ const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context)
|
|
|
1031
1029
|
switch (errorCode) {
|
|
1032
1030
|
case "BadRequestException":
|
|
1033
1031
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1034
|
-
throw await
|
|
1032
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1035
1033
|
case "ForbiddenException":
|
|
1036
1034
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1037
|
-
throw await
|
|
1035
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1038
1036
|
case "InternalServerErrorException":
|
|
1039
1037
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1040
|
-
throw await
|
|
1038
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1041
1039
|
case "NotFoundException":
|
|
1042
1040
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1043
|
-
throw await
|
|
1041
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1044
1042
|
case "ServiceUnavailableException":
|
|
1045
1043
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1046
|
-
throw await
|
|
1044
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1047
1045
|
case "UnauthorizedException":
|
|
1048
1046
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1049
|
-
throw await
|
|
1047
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1050
1048
|
default:
|
|
1051
1049
|
const parsedBody = parsedOutput.body;
|
|
1052
1050
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1057,9 +1055,9 @@ const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context)
|
|
|
1057
1055
|
});
|
|
1058
1056
|
}
|
|
1059
1057
|
};
|
|
1060
|
-
const
|
|
1058
|
+
const de_DeleteSchemaVersionCommand = async (output, context) => {
|
|
1061
1059
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1062
|
-
return
|
|
1060
|
+
return de_DeleteSchemaVersionCommandError(output, context);
|
|
1063
1061
|
}
|
|
1064
1062
|
const contents = map({
|
|
1065
1063
|
$metadata: deserializeMetadata(output),
|
|
@@ -1067,8 +1065,8 @@ const deserializeAws_restJson1DeleteSchemaVersionCommand = async (output, contex
|
|
|
1067
1065
|
await collectBody(output.body, context);
|
|
1068
1066
|
return contents;
|
|
1069
1067
|
};
|
|
1070
|
-
exports.
|
|
1071
|
-
const
|
|
1068
|
+
exports.de_DeleteSchemaVersionCommand = de_DeleteSchemaVersionCommand;
|
|
1069
|
+
const de_DeleteSchemaVersionCommandError = async (output, context) => {
|
|
1072
1070
|
const parsedOutput = {
|
|
1073
1071
|
...output,
|
|
1074
1072
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1077,22 +1075,22 @@ const deserializeAws_restJson1DeleteSchemaVersionCommandError = async (output, c
|
|
|
1077
1075
|
switch (errorCode) {
|
|
1078
1076
|
case "BadRequestException":
|
|
1079
1077
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1080
|
-
throw await
|
|
1078
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1081
1079
|
case "ForbiddenException":
|
|
1082
1080
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1083
|
-
throw await
|
|
1081
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1084
1082
|
case "InternalServerErrorException":
|
|
1085
1083
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1086
|
-
throw await
|
|
1084
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1087
1085
|
case "NotFoundException":
|
|
1088
1086
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1089
|
-
throw await
|
|
1087
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1090
1088
|
case "ServiceUnavailableException":
|
|
1091
1089
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1092
|
-
throw await
|
|
1090
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1093
1091
|
case "UnauthorizedException":
|
|
1094
1092
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1095
|
-
throw await
|
|
1093
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1096
1094
|
default:
|
|
1097
1095
|
const parsedBody = parsedOutput.body;
|
|
1098
1096
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1103,9 +1101,9 @@ const deserializeAws_restJson1DeleteSchemaVersionCommandError = async (output, c
|
|
|
1103
1101
|
});
|
|
1104
1102
|
}
|
|
1105
1103
|
};
|
|
1106
|
-
const
|
|
1104
|
+
const de_DescribeCodeBindingCommand = async (output, context) => {
|
|
1107
1105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
1106
|
+
return de_DescribeCodeBindingCommandError(output, context);
|
|
1109
1107
|
}
|
|
1110
1108
|
const contents = map({
|
|
1111
1109
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,8 +1123,8 @@ const deserializeAws_restJson1DescribeCodeBindingCommand = async (output, contex
|
|
|
1125
1123
|
}
|
|
1126
1124
|
return contents;
|
|
1127
1125
|
};
|
|
1128
|
-
exports.
|
|
1129
|
-
const
|
|
1126
|
+
exports.de_DescribeCodeBindingCommand = de_DescribeCodeBindingCommand;
|
|
1127
|
+
const de_DescribeCodeBindingCommandError = async (output, context) => {
|
|
1130
1128
|
const parsedOutput = {
|
|
1131
1129
|
...output,
|
|
1132
1130
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1135,22 +1133,22 @@ const deserializeAws_restJson1DescribeCodeBindingCommandError = async (output, c
|
|
|
1135
1133
|
switch (errorCode) {
|
|
1136
1134
|
case "BadRequestException":
|
|
1137
1135
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1138
|
-
throw await
|
|
1136
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1139
1137
|
case "ForbiddenException":
|
|
1140
1138
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1141
|
-
throw await
|
|
1139
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1142
1140
|
case "InternalServerErrorException":
|
|
1143
1141
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1144
|
-
throw await
|
|
1142
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1145
1143
|
case "NotFoundException":
|
|
1146
1144
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1147
|
-
throw await
|
|
1145
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1148
1146
|
case "TooManyRequestsException":
|
|
1149
1147
|
case "com.amazonaws.schemas#TooManyRequestsException":
|
|
1150
|
-
throw await
|
|
1148
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1151
1149
|
case "UnauthorizedException":
|
|
1152
1150
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1153
|
-
throw await
|
|
1151
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1154
1152
|
default:
|
|
1155
1153
|
const parsedBody = parsedOutput.body;
|
|
1156
1154
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1161,9 +1159,9 @@ const deserializeAws_restJson1DescribeCodeBindingCommandError = async (output, c
|
|
|
1161
1159
|
});
|
|
1162
1160
|
}
|
|
1163
1161
|
};
|
|
1164
|
-
const
|
|
1162
|
+
const de_DescribeDiscovererCommand = async (output, context) => {
|
|
1165
1163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
1164
|
+
return de_DescribeDiscovererCommandError(output, context);
|
|
1167
1165
|
}
|
|
1168
1166
|
const contents = map({
|
|
1169
1167
|
$metadata: deserializeMetadata(output),
|
|
@@ -1188,12 +1186,12 @@ const deserializeAws_restJson1DescribeDiscovererCommand = async (output, context
|
|
|
1188
1186
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1189
1187
|
}
|
|
1190
1188
|
if (data.tags != null) {
|
|
1191
|
-
contents.Tags =
|
|
1189
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1192
1190
|
}
|
|
1193
1191
|
return contents;
|
|
1194
1192
|
};
|
|
1195
|
-
exports.
|
|
1196
|
-
const
|
|
1193
|
+
exports.de_DescribeDiscovererCommand = de_DescribeDiscovererCommand;
|
|
1194
|
+
const de_DescribeDiscovererCommandError = async (output, context) => {
|
|
1197
1195
|
const parsedOutput = {
|
|
1198
1196
|
...output,
|
|
1199
1197
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1202,22 +1200,22 @@ const deserializeAws_restJson1DescribeDiscovererCommandError = async (output, co
|
|
|
1202
1200
|
switch (errorCode) {
|
|
1203
1201
|
case "BadRequestException":
|
|
1204
1202
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1205
|
-
throw await
|
|
1203
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1206
1204
|
case "ForbiddenException":
|
|
1207
1205
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1208
|
-
throw await
|
|
1206
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1209
1207
|
case "InternalServerErrorException":
|
|
1210
1208
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1211
|
-
throw await
|
|
1209
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1212
1210
|
case "NotFoundException":
|
|
1213
1211
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1214
|
-
throw await
|
|
1212
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1215
1213
|
case "ServiceUnavailableException":
|
|
1216
1214
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1217
|
-
throw await
|
|
1215
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1218
1216
|
case "UnauthorizedException":
|
|
1219
1217
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1220
|
-
throw await
|
|
1218
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1221
1219
|
default:
|
|
1222
1220
|
const parsedBody = parsedOutput.body;
|
|
1223
1221
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1228,9 +1226,9 @@ const deserializeAws_restJson1DescribeDiscovererCommandError = async (output, co
|
|
|
1228
1226
|
});
|
|
1229
1227
|
}
|
|
1230
1228
|
};
|
|
1231
|
-
const
|
|
1229
|
+
const de_DescribeRegistryCommand = async (output, context) => {
|
|
1232
1230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
|
-
return
|
|
1231
|
+
return de_DescribeRegistryCommandError(output, context);
|
|
1234
1232
|
}
|
|
1235
1233
|
const contents = map({
|
|
1236
1234
|
$metadata: deserializeMetadata(output),
|
|
@@ -1246,12 +1244,12 @@ const deserializeAws_restJson1DescribeRegistryCommand = async (output, context)
|
|
|
1246
1244
|
contents.RegistryName = (0, smithy_client_1.expectString)(data.RegistryName);
|
|
1247
1245
|
}
|
|
1248
1246
|
if (data.tags != null) {
|
|
1249
|
-
contents.Tags =
|
|
1247
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1250
1248
|
}
|
|
1251
1249
|
return contents;
|
|
1252
1250
|
};
|
|
1253
|
-
exports.
|
|
1254
|
-
const
|
|
1251
|
+
exports.de_DescribeRegistryCommand = de_DescribeRegistryCommand;
|
|
1252
|
+
const de_DescribeRegistryCommandError = async (output, context) => {
|
|
1255
1253
|
const parsedOutput = {
|
|
1256
1254
|
...output,
|
|
1257
1255
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1260,22 +1258,22 @@ const deserializeAws_restJson1DescribeRegistryCommandError = async (output, cont
|
|
|
1260
1258
|
switch (errorCode) {
|
|
1261
1259
|
case "BadRequestException":
|
|
1262
1260
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1263
|
-
throw await
|
|
1261
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1264
1262
|
case "ForbiddenException":
|
|
1265
1263
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1266
|
-
throw await
|
|
1264
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1267
1265
|
case "InternalServerErrorException":
|
|
1268
1266
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1269
|
-
throw await
|
|
1267
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1270
1268
|
case "NotFoundException":
|
|
1271
1269
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1272
|
-
throw await
|
|
1270
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1273
1271
|
case "ServiceUnavailableException":
|
|
1274
1272
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1275
|
-
throw await
|
|
1273
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
1274
|
case "UnauthorizedException":
|
|
1277
1275
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1278
|
-
throw await
|
|
1276
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1279
1277
|
default:
|
|
1280
1278
|
const parsedBody = parsedOutput.body;
|
|
1281
1279
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1286,9 +1284,9 @@ const deserializeAws_restJson1DescribeRegistryCommandError = async (output, cont
|
|
|
1286
1284
|
});
|
|
1287
1285
|
}
|
|
1288
1286
|
};
|
|
1289
|
-
const
|
|
1287
|
+
const de_DescribeSchemaCommand = async (output, context) => {
|
|
1290
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
1289
|
+
return de_DescribeSchemaCommandError(output, context);
|
|
1292
1290
|
}
|
|
1293
1291
|
const contents = map({
|
|
1294
1292
|
$metadata: deserializeMetadata(output),
|
|
@@ -1313,7 +1311,7 @@ const deserializeAws_restJson1DescribeSchemaCommand = async (output, context) =>
|
|
|
1313
1311
|
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
1314
1312
|
}
|
|
1315
1313
|
if (data.tags != null) {
|
|
1316
|
-
contents.Tags =
|
|
1314
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1317
1315
|
}
|
|
1318
1316
|
if (data.Type != null) {
|
|
1319
1317
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
@@ -1323,8 +1321,8 @@ const deserializeAws_restJson1DescribeSchemaCommand = async (output, context) =>
|
|
|
1323
1321
|
}
|
|
1324
1322
|
return contents;
|
|
1325
1323
|
};
|
|
1326
|
-
exports.
|
|
1327
|
-
const
|
|
1324
|
+
exports.de_DescribeSchemaCommand = de_DescribeSchemaCommand;
|
|
1325
|
+
const de_DescribeSchemaCommandError = async (output, context) => {
|
|
1328
1326
|
const parsedOutput = {
|
|
1329
1327
|
...output,
|
|
1330
1328
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1333,22 +1331,22 @@ const deserializeAws_restJson1DescribeSchemaCommandError = async (output, contex
|
|
|
1333
1331
|
switch (errorCode) {
|
|
1334
1332
|
case "BadRequestException":
|
|
1335
1333
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1336
|
-
throw await
|
|
1334
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1337
1335
|
case "ForbiddenException":
|
|
1338
1336
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1339
|
-
throw await
|
|
1337
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1340
1338
|
case "InternalServerErrorException":
|
|
1341
1339
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1342
|
-
throw await
|
|
1340
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1343
1341
|
case "NotFoundException":
|
|
1344
1342
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1345
|
-
throw await
|
|
1343
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1346
1344
|
case "ServiceUnavailableException":
|
|
1347
1345
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1348
|
-
throw await
|
|
1346
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1349
1347
|
case "UnauthorizedException":
|
|
1350
1348
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1351
|
-
throw await
|
|
1349
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1352
1350
|
default:
|
|
1353
1351
|
const parsedBody = parsedOutput.body;
|
|
1354
1352
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1359,9 +1357,9 @@ const deserializeAws_restJson1DescribeSchemaCommandError = async (output, contex
|
|
|
1359
1357
|
});
|
|
1360
1358
|
}
|
|
1361
1359
|
};
|
|
1362
|
-
const
|
|
1360
|
+
const de_ExportSchemaCommand = async (output, context) => {
|
|
1363
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1362
|
+
return de_ExportSchemaCommandError(output, context);
|
|
1365
1363
|
}
|
|
1366
1364
|
const contents = map({
|
|
1367
1365
|
$metadata: deserializeMetadata(output),
|
|
@@ -1384,8 +1382,8 @@ const deserializeAws_restJson1ExportSchemaCommand = async (output, context) => {
|
|
|
1384
1382
|
}
|
|
1385
1383
|
return contents;
|
|
1386
1384
|
};
|
|
1387
|
-
exports.
|
|
1388
|
-
const
|
|
1385
|
+
exports.de_ExportSchemaCommand = de_ExportSchemaCommand;
|
|
1386
|
+
const de_ExportSchemaCommandError = async (output, context) => {
|
|
1389
1387
|
const parsedOutput = {
|
|
1390
1388
|
...output,
|
|
1391
1389
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1394,25 +1392,25 @@ const deserializeAws_restJson1ExportSchemaCommandError = async (output, context)
|
|
|
1394
1392
|
switch (errorCode) {
|
|
1395
1393
|
case "BadRequestException":
|
|
1396
1394
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1397
|
-
throw await
|
|
1395
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1398
1396
|
case "ForbiddenException":
|
|
1399
1397
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1400
|
-
throw await
|
|
1398
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1401
1399
|
case "InternalServerErrorException":
|
|
1402
1400
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1403
|
-
throw await
|
|
1401
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1404
1402
|
case "NotFoundException":
|
|
1405
1403
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1406
|
-
throw await
|
|
1404
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1407
1405
|
case "ServiceUnavailableException":
|
|
1408
1406
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1409
|
-
throw await
|
|
1407
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1410
1408
|
case "TooManyRequestsException":
|
|
1411
1409
|
case "com.amazonaws.schemas#TooManyRequestsException":
|
|
1412
|
-
throw await
|
|
1410
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1413
1411
|
case "UnauthorizedException":
|
|
1414
1412
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1415
|
-
throw await
|
|
1413
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1416
1414
|
default:
|
|
1417
1415
|
const parsedBody = parsedOutput.body;
|
|
1418
1416
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1423,9 +1421,9 @@ const deserializeAws_restJson1ExportSchemaCommandError = async (output, context)
|
|
|
1423
1421
|
});
|
|
1424
1422
|
}
|
|
1425
1423
|
};
|
|
1426
|
-
const
|
|
1424
|
+
const de_GetCodeBindingSourceCommand = async (output, context) => {
|
|
1427
1425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
1426
|
+
return de_GetCodeBindingSourceCommandError(output, context);
|
|
1429
1427
|
}
|
|
1430
1428
|
const contents = map({
|
|
1431
1429
|
$metadata: deserializeMetadata(output),
|
|
@@ -1434,8 +1432,8 @@ const deserializeAws_restJson1GetCodeBindingSourceCommand = async (output, conte
|
|
|
1434
1432
|
contents.Body = data;
|
|
1435
1433
|
return contents;
|
|
1436
1434
|
};
|
|
1437
|
-
exports.
|
|
1438
|
-
const
|
|
1435
|
+
exports.de_GetCodeBindingSourceCommand = de_GetCodeBindingSourceCommand;
|
|
1436
|
+
const de_GetCodeBindingSourceCommandError = async (output, context) => {
|
|
1439
1437
|
const parsedOutput = {
|
|
1440
1438
|
...output,
|
|
1441
1439
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1444,22 +1442,22 @@ const deserializeAws_restJson1GetCodeBindingSourceCommandError = async (output,
|
|
|
1444
1442
|
switch (errorCode) {
|
|
1445
1443
|
case "BadRequestException":
|
|
1446
1444
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1447
|
-
throw await
|
|
1445
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1448
1446
|
case "ForbiddenException":
|
|
1449
1447
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1450
|
-
throw await
|
|
1448
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1451
1449
|
case "InternalServerErrorException":
|
|
1452
1450
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1453
|
-
throw await
|
|
1451
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1454
1452
|
case "NotFoundException":
|
|
1455
1453
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1456
|
-
throw await
|
|
1454
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1457
1455
|
case "TooManyRequestsException":
|
|
1458
1456
|
case "com.amazonaws.schemas#TooManyRequestsException":
|
|
1459
|
-
throw await
|
|
1457
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1460
1458
|
case "UnauthorizedException":
|
|
1461
1459
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1462
|
-
throw await
|
|
1460
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1463
1461
|
default:
|
|
1464
1462
|
const parsedBody = parsedOutput.body;
|
|
1465
1463
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1470,9 +1468,9 @@ const deserializeAws_restJson1GetCodeBindingSourceCommandError = async (output,
|
|
|
1470
1468
|
});
|
|
1471
1469
|
}
|
|
1472
1470
|
};
|
|
1473
|
-
const
|
|
1471
|
+
const de_GetDiscoveredSchemaCommand = async (output, context) => {
|
|
1474
1472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1475
|
-
return
|
|
1473
|
+
return de_GetDiscoveredSchemaCommandError(output, context);
|
|
1476
1474
|
}
|
|
1477
1475
|
const contents = map({
|
|
1478
1476
|
$metadata: deserializeMetadata(output),
|
|
@@ -1483,8 +1481,8 @@ const deserializeAws_restJson1GetDiscoveredSchemaCommand = async (output, contex
|
|
|
1483
1481
|
}
|
|
1484
1482
|
return contents;
|
|
1485
1483
|
};
|
|
1486
|
-
exports.
|
|
1487
|
-
const
|
|
1484
|
+
exports.de_GetDiscoveredSchemaCommand = de_GetDiscoveredSchemaCommand;
|
|
1485
|
+
const de_GetDiscoveredSchemaCommandError = async (output, context) => {
|
|
1488
1486
|
const parsedOutput = {
|
|
1489
1487
|
...output,
|
|
1490
1488
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1493,19 +1491,19 @@ const deserializeAws_restJson1GetDiscoveredSchemaCommandError = async (output, c
|
|
|
1493
1491
|
switch (errorCode) {
|
|
1494
1492
|
case "BadRequestException":
|
|
1495
1493
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1496
|
-
throw await
|
|
1494
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1497
1495
|
case "ForbiddenException":
|
|
1498
1496
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1499
|
-
throw await
|
|
1497
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1500
1498
|
case "InternalServerErrorException":
|
|
1501
1499
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1502
|
-
throw await
|
|
1500
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1503
1501
|
case "ServiceUnavailableException":
|
|
1504
1502
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1505
|
-
throw await
|
|
1503
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1506
1504
|
case "UnauthorizedException":
|
|
1507
1505
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1508
|
-
throw await
|
|
1506
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1509
1507
|
default:
|
|
1510
1508
|
const parsedBody = parsedOutput.body;
|
|
1511
1509
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1516,9 +1514,9 @@ const deserializeAws_restJson1GetDiscoveredSchemaCommandError = async (output, c
|
|
|
1516
1514
|
});
|
|
1517
1515
|
}
|
|
1518
1516
|
};
|
|
1519
|
-
const
|
|
1517
|
+
const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1520
1518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1521
|
-
return
|
|
1519
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
1522
1520
|
}
|
|
1523
1521
|
const contents = map({
|
|
1524
1522
|
$metadata: deserializeMetadata(output),
|
|
@@ -1532,8 +1530,8 @@ const deserializeAws_restJson1GetResourcePolicyCommand = async (output, context)
|
|
|
1532
1530
|
}
|
|
1533
1531
|
return contents;
|
|
1534
1532
|
};
|
|
1535
|
-
exports.
|
|
1536
|
-
const
|
|
1533
|
+
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
1534
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1537
1535
|
const parsedOutput = {
|
|
1538
1536
|
...output,
|
|
1539
1537
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1542,22 +1540,22 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1542
1540
|
switch (errorCode) {
|
|
1543
1541
|
case "BadRequestException":
|
|
1544
1542
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1545
|
-
throw await
|
|
1543
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1546
1544
|
case "ForbiddenException":
|
|
1547
1545
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1548
|
-
throw await
|
|
1546
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1549
1547
|
case "InternalServerErrorException":
|
|
1550
1548
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1551
|
-
throw await
|
|
1549
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1552
1550
|
case "NotFoundException":
|
|
1553
1551
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1554
|
-
throw await
|
|
1552
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1555
1553
|
case "ServiceUnavailableException":
|
|
1556
1554
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1557
|
-
throw await
|
|
1555
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1558
1556
|
case "UnauthorizedException":
|
|
1559
1557
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1560
|
-
throw await
|
|
1558
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1561
1559
|
default:
|
|
1562
1560
|
const parsedBody = parsedOutput.body;
|
|
1563
1561
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1568,24 +1566,24 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1568
1566
|
});
|
|
1569
1567
|
}
|
|
1570
1568
|
};
|
|
1571
|
-
const
|
|
1569
|
+
const de_ListDiscoverersCommand = async (output, context) => {
|
|
1572
1570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
1571
|
+
return de_ListDiscoverersCommandError(output, context);
|
|
1574
1572
|
}
|
|
1575
1573
|
const contents = map({
|
|
1576
1574
|
$metadata: deserializeMetadata(output),
|
|
1577
1575
|
});
|
|
1578
1576
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1579
1577
|
if (data.Discoverers != null) {
|
|
1580
|
-
contents.Discoverers =
|
|
1578
|
+
contents.Discoverers = de___listOfDiscovererSummary(data.Discoverers, context);
|
|
1581
1579
|
}
|
|
1582
1580
|
if (data.NextToken != null) {
|
|
1583
1581
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1584
1582
|
}
|
|
1585
1583
|
return contents;
|
|
1586
1584
|
};
|
|
1587
|
-
exports.
|
|
1588
|
-
const
|
|
1585
|
+
exports.de_ListDiscoverersCommand = de_ListDiscoverersCommand;
|
|
1586
|
+
const de_ListDiscoverersCommandError = async (output, context) => {
|
|
1589
1587
|
const parsedOutput = {
|
|
1590
1588
|
...output,
|
|
1591
1589
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1594,19 +1592,19 @@ const deserializeAws_restJson1ListDiscoverersCommandError = async (output, conte
|
|
|
1594
1592
|
switch (errorCode) {
|
|
1595
1593
|
case "BadRequestException":
|
|
1596
1594
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1597
|
-
throw await
|
|
1595
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1598
1596
|
case "ForbiddenException":
|
|
1599
1597
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1600
|
-
throw await
|
|
1598
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1601
1599
|
case "InternalServerErrorException":
|
|
1602
1600
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1603
|
-
throw await
|
|
1601
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1604
1602
|
case "ServiceUnavailableException":
|
|
1605
1603
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1606
|
-
throw await
|
|
1604
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1607
1605
|
case "UnauthorizedException":
|
|
1608
1606
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1609
|
-
throw await
|
|
1607
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1610
1608
|
default:
|
|
1611
1609
|
const parsedBody = parsedOutput.body;
|
|
1612
1610
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1617,9 +1615,9 @@ const deserializeAws_restJson1ListDiscoverersCommandError = async (output, conte
|
|
|
1617
1615
|
});
|
|
1618
1616
|
}
|
|
1619
1617
|
};
|
|
1620
|
-
const
|
|
1618
|
+
const de_ListRegistriesCommand = async (output, context) => {
|
|
1621
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1622
|
-
return
|
|
1620
|
+
return de_ListRegistriesCommandError(output, context);
|
|
1623
1621
|
}
|
|
1624
1622
|
const contents = map({
|
|
1625
1623
|
$metadata: deserializeMetadata(output),
|
|
@@ -1629,12 +1627,12 @@ const deserializeAws_restJson1ListRegistriesCommand = async (output, context) =>
|
|
|
1629
1627
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1630
1628
|
}
|
|
1631
1629
|
if (data.Registries != null) {
|
|
1632
|
-
contents.Registries =
|
|
1630
|
+
contents.Registries = de___listOfRegistrySummary(data.Registries, context);
|
|
1633
1631
|
}
|
|
1634
1632
|
return contents;
|
|
1635
1633
|
};
|
|
1636
|
-
exports.
|
|
1637
|
-
const
|
|
1634
|
+
exports.de_ListRegistriesCommand = de_ListRegistriesCommand;
|
|
1635
|
+
const de_ListRegistriesCommandError = async (output, context) => {
|
|
1638
1636
|
const parsedOutput = {
|
|
1639
1637
|
...output,
|
|
1640
1638
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1643,19 +1641,19 @@ const deserializeAws_restJson1ListRegistriesCommandError = async (output, contex
|
|
|
1643
1641
|
switch (errorCode) {
|
|
1644
1642
|
case "BadRequestException":
|
|
1645
1643
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1646
|
-
throw await
|
|
1644
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1647
1645
|
case "ForbiddenException":
|
|
1648
1646
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1649
|
-
throw await
|
|
1647
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1650
1648
|
case "InternalServerErrorException":
|
|
1651
1649
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1652
|
-
throw await
|
|
1650
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1653
1651
|
case "ServiceUnavailableException":
|
|
1654
1652
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1655
|
-
throw await
|
|
1653
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1656
1654
|
case "UnauthorizedException":
|
|
1657
1655
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1658
|
-
throw await
|
|
1656
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1659
1657
|
default:
|
|
1660
1658
|
const parsedBody = parsedOutput.body;
|
|
1661
1659
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1666,9 +1664,9 @@ const deserializeAws_restJson1ListRegistriesCommandError = async (output, contex
|
|
|
1666
1664
|
});
|
|
1667
1665
|
}
|
|
1668
1666
|
};
|
|
1669
|
-
const
|
|
1667
|
+
const de_ListSchemasCommand = async (output, context) => {
|
|
1670
1668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1671
|
-
return
|
|
1669
|
+
return de_ListSchemasCommandError(output, context);
|
|
1672
1670
|
}
|
|
1673
1671
|
const contents = map({
|
|
1674
1672
|
$metadata: deserializeMetadata(output),
|
|
@@ -1678,12 +1676,12 @@ const deserializeAws_restJson1ListSchemasCommand = async (output, context) => {
|
|
|
1678
1676
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1679
1677
|
}
|
|
1680
1678
|
if (data.Schemas != null) {
|
|
1681
|
-
contents.Schemas =
|
|
1679
|
+
contents.Schemas = de___listOfSchemaSummary(data.Schemas, context);
|
|
1682
1680
|
}
|
|
1683
1681
|
return contents;
|
|
1684
1682
|
};
|
|
1685
|
-
exports.
|
|
1686
|
-
const
|
|
1683
|
+
exports.de_ListSchemasCommand = de_ListSchemasCommand;
|
|
1684
|
+
const de_ListSchemasCommandError = async (output, context) => {
|
|
1687
1685
|
const parsedOutput = {
|
|
1688
1686
|
...output,
|
|
1689
1687
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1692,19 +1690,19 @@ const deserializeAws_restJson1ListSchemasCommandError = async (output, context)
|
|
|
1692
1690
|
switch (errorCode) {
|
|
1693
1691
|
case "BadRequestException":
|
|
1694
1692
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1695
|
-
throw await
|
|
1693
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1696
1694
|
case "ForbiddenException":
|
|
1697
1695
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1698
|
-
throw await
|
|
1696
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1699
1697
|
case "InternalServerErrorException":
|
|
1700
1698
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1701
|
-
throw await
|
|
1699
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1702
1700
|
case "ServiceUnavailableException":
|
|
1703
1701
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1704
|
-
throw await
|
|
1702
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1705
1703
|
case "UnauthorizedException":
|
|
1706
1704
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1707
|
-
throw await
|
|
1705
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1708
1706
|
default:
|
|
1709
1707
|
const parsedBody = parsedOutput.body;
|
|
1710
1708
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1715,9 +1713,9 @@ const deserializeAws_restJson1ListSchemasCommandError = async (output, context)
|
|
|
1715
1713
|
});
|
|
1716
1714
|
}
|
|
1717
1715
|
};
|
|
1718
|
-
const
|
|
1716
|
+
const de_ListSchemaVersionsCommand = async (output, context) => {
|
|
1719
1717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1720
|
-
return
|
|
1718
|
+
return de_ListSchemaVersionsCommandError(output, context);
|
|
1721
1719
|
}
|
|
1722
1720
|
const contents = map({
|
|
1723
1721
|
$metadata: deserializeMetadata(output),
|
|
@@ -1727,12 +1725,12 @@ const deserializeAws_restJson1ListSchemaVersionsCommand = async (output, context
|
|
|
1727
1725
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1728
1726
|
}
|
|
1729
1727
|
if (data.SchemaVersions != null) {
|
|
1730
|
-
contents.SchemaVersions =
|
|
1728
|
+
contents.SchemaVersions = de___listOfSchemaVersionSummary(data.SchemaVersions, context);
|
|
1731
1729
|
}
|
|
1732
1730
|
return contents;
|
|
1733
1731
|
};
|
|
1734
|
-
exports.
|
|
1735
|
-
const
|
|
1732
|
+
exports.de_ListSchemaVersionsCommand = de_ListSchemaVersionsCommand;
|
|
1733
|
+
const de_ListSchemaVersionsCommandError = async (output, context) => {
|
|
1736
1734
|
const parsedOutput = {
|
|
1737
1735
|
...output,
|
|
1738
1736
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1741,22 +1739,22 @@ const deserializeAws_restJson1ListSchemaVersionsCommandError = async (output, co
|
|
|
1741
1739
|
switch (errorCode) {
|
|
1742
1740
|
case "BadRequestException":
|
|
1743
1741
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1744
|
-
throw await
|
|
1742
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1745
1743
|
case "ForbiddenException":
|
|
1746
1744
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1747
|
-
throw await
|
|
1745
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1748
1746
|
case "InternalServerErrorException":
|
|
1749
1747
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1750
|
-
throw await
|
|
1748
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1751
1749
|
case "NotFoundException":
|
|
1752
1750
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1753
|
-
throw await
|
|
1751
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1754
1752
|
case "ServiceUnavailableException":
|
|
1755
1753
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1756
|
-
throw await
|
|
1754
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1757
1755
|
case "UnauthorizedException":
|
|
1758
1756
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1759
|
-
throw await
|
|
1757
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1760
1758
|
default:
|
|
1761
1759
|
const parsedBody = parsedOutput.body;
|
|
1762
1760
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1767,21 +1765,21 @@ const deserializeAws_restJson1ListSchemaVersionsCommandError = async (output, co
|
|
|
1767
1765
|
});
|
|
1768
1766
|
}
|
|
1769
1767
|
};
|
|
1770
|
-
const
|
|
1768
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1771
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1772
|
-
return
|
|
1770
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1773
1771
|
}
|
|
1774
1772
|
const contents = map({
|
|
1775
1773
|
$metadata: deserializeMetadata(output),
|
|
1776
1774
|
});
|
|
1777
1775
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1778
1776
|
if (data.tags != null) {
|
|
1779
|
-
contents.Tags =
|
|
1777
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
1780
1778
|
}
|
|
1781
1779
|
return contents;
|
|
1782
1780
|
};
|
|
1783
|
-
exports.
|
|
1784
|
-
const
|
|
1781
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1782
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1785
1783
|
const parsedOutput = {
|
|
1786
1784
|
...output,
|
|
1787
1785
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1790,16 +1788,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1790
1788
|
switch (errorCode) {
|
|
1791
1789
|
case "BadRequestException":
|
|
1792
1790
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1793
|
-
throw await
|
|
1791
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1794
1792
|
case "ForbiddenException":
|
|
1795
1793
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1796
|
-
throw await
|
|
1794
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1797
1795
|
case "InternalServerErrorException":
|
|
1798
1796
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1799
|
-
throw await
|
|
1797
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1800
1798
|
case "NotFoundException":
|
|
1801
1799
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1802
|
-
throw await
|
|
1800
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1803
1801
|
default:
|
|
1804
1802
|
const parsedBody = parsedOutput.body;
|
|
1805
1803
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1810,9 +1808,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1810
1808
|
});
|
|
1811
1809
|
}
|
|
1812
1810
|
};
|
|
1813
|
-
const
|
|
1811
|
+
const de_PutCodeBindingCommand = async (output, context) => {
|
|
1814
1812
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1815
|
-
return
|
|
1813
|
+
return de_PutCodeBindingCommandError(output, context);
|
|
1816
1814
|
}
|
|
1817
1815
|
const contents = map({
|
|
1818
1816
|
$metadata: deserializeMetadata(output),
|
|
@@ -1832,8 +1830,8 @@ const deserializeAws_restJson1PutCodeBindingCommand = async (output, context) =>
|
|
|
1832
1830
|
}
|
|
1833
1831
|
return contents;
|
|
1834
1832
|
};
|
|
1835
|
-
exports.
|
|
1836
|
-
const
|
|
1833
|
+
exports.de_PutCodeBindingCommand = de_PutCodeBindingCommand;
|
|
1834
|
+
const de_PutCodeBindingCommandError = async (output, context) => {
|
|
1837
1835
|
const parsedOutput = {
|
|
1838
1836
|
...output,
|
|
1839
1837
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1842,25 +1840,25 @@ const deserializeAws_restJson1PutCodeBindingCommandError = async (output, contex
|
|
|
1842
1840
|
switch (errorCode) {
|
|
1843
1841
|
case "BadRequestException":
|
|
1844
1842
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1845
|
-
throw await
|
|
1843
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1846
1844
|
case "ForbiddenException":
|
|
1847
1845
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1848
|
-
throw await
|
|
1846
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1849
1847
|
case "GoneException":
|
|
1850
1848
|
case "com.amazonaws.schemas#GoneException":
|
|
1851
|
-
throw await
|
|
1849
|
+
throw await de_GoneExceptionRes(parsedOutput, context);
|
|
1852
1850
|
case "InternalServerErrorException":
|
|
1853
1851
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1854
|
-
throw await
|
|
1852
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1855
1853
|
case "NotFoundException":
|
|
1856
1854
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1857
|
-
throw await
|
|
1855
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1858
1856
|
case "TooManyRequestsException":
|
|
1859
1857
|
case "com.amazonaws.schemas#TooManyRequestsException":
|
|
1860
|
-
throw await
|
|
1858
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1861
1859
|
case "UnauthorizedException":
|
|
1862
1860
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1863
|
-
throw await
|
|
1861
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1864
1862
|
default:
|
|
1865
1863
|
const parsedBody = parsedOutput.body;
|
|
1866
1864
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1871,9 +1869,9 @@ const deserializeAws_restJson1PutCodeBindingCommandError = async (output, contex
|
|
|
1871
1869
|
});
|
|
1872
1870
|
}
|
|
1873
1871
|
};
|
|
1874
|
-
const
|
|
1872
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1875
1873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1874
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1877
1875
|
}
|
|
1878
1876
|
const contents = map({
|
|
1879
1877
|
$metadata: deserializeMetadata(output),
|
|
@@ -1887,8 +1885,8 @@ const deserializeAws_restJson1PutResourcePolicyCommand = async (output, context)
|
|
|
1887
1885
|
}
|
|
1888
1886
|
return contents;
|
|
1889
1887
|
};
|
|
1890
|
-
exports.
|
|
1891
|
-
const
|
|
1888
|
+
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1889
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1892
1890
|
const parsedOutput = {
|
|
1893
1891
|
...output,
|
|
1894
1892
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1897,25 +1895,25 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1897
1895
|
switch (errorCode) {
|
|
1898
1896
|
case "BadRequestException":
|
|
1899
1897
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1900
|
-
throw await
|
|
1898
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1901
1899
|
case "ForbiddenException":
|
|
1902
1900
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1903
|
-
throw await
|
|
1901
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1904
1902
|
case "InternalServerErrorException":
|
|
1905
1903
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1906
|
-
throw await
|
|
1904
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1907
1905
|
case "NotFoundException":
|
|
1908
1906
|
case "com.amazonaws.schemas#NotFoundException":
|
|
1909
|
-
throw await
|
|
1907
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1910
1908
|
case "PreconditionFailedException":
|
|
1911
1909
|
case "com.amazonaws.schemas#PreconditionFailedException":
|
|
1912
|
-
throw await
|
|
1910
|
+
throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
|
|
1913
1911
|
case "ServiceUnavailableException":
|
|
1914
1912
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1915
|
-
throw await
|
|
1913
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1916
1914
|
case "UnauthorizedException":
|
|
1917
1915
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1918
|
-
throw await
|
|
1916
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1919
1917
|
default:
|
|
1920
1918
|
const parsedBody = parsedOutput.body;
|
|
1921
1919
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1926,9 +1924,9 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1926
1924
|
});
|
|
1927
1925
|
}
|
|
1928
1926
|
};
|
|
1929
|
-
const
|
|
1927
|
+
const de_SearchSchemasCommand = async (output, context) => {
|
|
1930
1928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
|
-
return
|
|
1929
|
+
return de_SearchSchemasCommandError(output, context);
|
|
1932
1930
|
}
|
|
1933
1931
|
const contents = map({
|
|
1934
1932
|
$metadata: deserializeMetadata(output),
|
|
@@ -1938,12 +1936,12 @@ const deserializeAws_restJson1SearchSchemasCommand = async (output, context) =>
|
|
|
1938
1936
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1939
1937
|
}
|
|
1940
1938
|
if (data.Schemas != null) {
|
|
1941
|
-
contents.Schemas =
|
|
1939
|
+
contents.Schemas = de___listOfSearchSchemaSummary(data.Schemas, context);
|
|
1942
1940
|
}
|
|
1943
1941
|
return contents;
|
|
1944
1942
|
};
|
|
1945
|
-
exports.
|
|
1946
|
-
const
|
|
1943
|
+
exports.de_SearchSchemasCommand = de_SearchSchemasCommand;
|
|
1944
|
+
const de_SearchSchemasCommandError = async (output, context) => {
|
|
1947
1945
|
const parsedOutput = {
|
|
1948
1946
|
...output,
|
|
1949
1947
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1952,19 +1950,19 @@ const deserializeAws_restJson1SearchSchemasCommandError = async (output, context
|
|
|
1952
1950
|
switch (errorCode) {
|
|
1953
1951
|
case "BadRequestException":
|
|
1954
1952
|
case "com.amazonaws.schemas#BadRequestException":
|
|
1955
|
-
throw await
|
|
1953
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1956
1954
|
case "ForbiddenException":
|
|
1957
1955
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
1958
|
-
throw await
|
|
1956
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1959
1957
|
case "InternalServerErrorException":
|
|
1960
1958
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
1961
|
-
throw await
|
|
1959
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1962
1960
|
case "ServiceUnavailableException":
|
|
1963
1961
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
1964
|
-
throw await
|
|
1962
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1965
1963
|
case "UnauthorizedException":
|
|
1966
1964
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
1967
|
-
throw await
|
|
1965
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1968
1966
|
default:
|
|
1969
1967
|
const parsedBody = parsedOutput.body;
|
|
1970
1968
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1975,9 +1973,9 @@ const deserializeAws_restJson1SearchSchemasCommandError = async (output, context
|
|
|
1975
1973
|
});
|
|
1976
1974
|
}
|
|
1977
1975
|
};
|
|
1978
|
-
const
|
|
1976
|
+
const de_StartDiscovererCommand = async (output, context) => {
|
|
1979
1977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1980
|
-
return
|
|
1978
|
+
return de_StartDiscovererCommandError(output, context);
|
|
1981
1979
|
}
|
|
1982
1980
|
const contents = map({
|
|
1983
1981
|
$metadata: deserializeMetadata(output),
|
|
@@ -1991,8 +1989,8 @@ const deserializeAws_restJson1StartDiscovererCommand = async (output, context) =
|
|
|
1991
1989
|
}
|
|
1992
1990
|
return contents;
|
|
1993
1991
|
};
|
|
1994
|
-
exports.
|
|
1995
|
-
const
|
|
1992
|
+
exports.de_StartDiscovererCommand = de_StartDiscovererCommand;
|
|
1993
|
+
const de_StartDiscovererCommandError = async (output, context) => {
|
|
1996
1994
|
const parsedOutput = {
|
|
1997
1995
|
...output,
|
|
1998
1996
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2001,22 +1999,22 @@ const deserializeAws_restJson1StartDiscovererCommandError = async (output, conte
|
|
|
2001
1999
|
switch (errorCode) {
|
|
2002
2000
|
case "BadRequestException":
|
|
2003
2001
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2004
|
-
throw await
|
|
2002
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2005
2003
|
case "ForbiddenException":
|
|
2006
2004
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2007
|
-
throw await
|
|
2005
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2008
2006
|
case "InternalServerErrorException":
|
|
2009
2007
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2010
|
-
throw await
|
|
2008
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2011
2009
|
case "NotFoundException":
|
|
2012
2010
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2013
|
-
throw await
|
|
2011
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2014
2012
|
case "ServiceUnavailableException":
|
|
2015
2013
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
2016
|
-
throw await
|
|
2014
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2017
2015
|
case "UnauthorizedException":
|
|
2018
2016
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
2019
|
-
throw await
|
|
2017
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2020
2018
|
default:
|
|
2021
2019
|
const parsedBody = parsedOutput.body;
|
|
2022
2020
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2027,9 +2025,9 @@ const deserializeAws_restJson1StartDiscovererCommandError = async (output, conte
|
|
|
2027
2025
|
});
|
|
2028
2026
|
}
|
|
2029
2027
|
};
|
|
2030
|
-
const
|
|
2028
|
+
const de_StopDiscovererCommand = async (output, context) => {
|
|
2031
2029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2032
|
-
return
|
|
2030
|
+
return de_StopDiscovererCommandError(output, context);
|
|
2033
2031
|
}
|
|
2034
2032
|
const contents = map({
|
|
2035
2033
|
$metadata: deserializeMetadata(output),
|
|
@@ -2043,8 +2041,8 @@ const deserializeAws_restJson1StopDiscovererCommand = async (output, context) =>
|
|
|
2043
2041
|
}
|
|
2044
2042
|
return contents;
|
|
2045
2043
|
};
|
|
2046
|
-
exports.
|
|
2047
|
-
const
|
|
2044
|
+
exports.de_StopDiscovererCommand = de_StopDiscovererCommand;
|
|
2045
|
+
const de_StopDiscovererCommandError = async (output, context) => {
|
|
2048
2046
|
const parsedOutput = {
|
|
2049
2047
|
...output,
|
|
2050
2048
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2053,22 +2051,22 @@ const deserializeAws_restJson1StopDiscovererCommandError = async (output, contex
|
|
|
2053
2051
|
switch (errorCode) {
|
|
2054
2052
|
case "BadRequestException":
|
|
2055
2053
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2056
|
-
throw await
|
|
2054
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2057
2055
|
case "ForbiddenException":
|
|
2058
2056
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2059
|
-
throw await
|
|
2057
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2060
2058
|
case "InternalServerErrorException":
|
|
2061
2059
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2062
|
-
throw await
|
|
2060
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2063
2061
|
case "NotFoundException":
|
|
2064
2062
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2065
|
-
throw await
|
|
2063
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2066
2064
|
case "ServiceUnavailableException":
|
|
2067
2065
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
2068
|
-
throw await
|
|
2066
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2069
2067
|
case "UnauthorizedException":
|
|
2070
2068
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
2071
|
-
throw await
|
|
2069
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2072
2070
|
default:
|
|
2073
2071
|
const parsedBody = parsedOutput.body;
|
|
2074
2072
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2079,9 +2077,9 @@ const deserializeAws_restJson1StopDiscovererCommandError = async (output, contex
|
|
|
2079
2077
|
});
|
|
2080
2078
|
}
|
|
2081
2079
|
};
|
|
2082
|
-
const
|
|
2080
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2083
2081
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2084
|
-
return
|
|
2082
|
+
return de_TagResourceCommandError(output, context);
|
|
2085
2083
|
}
|
|
2086
2084
|
const contents = map({
|
|
2087
2085
|
$metadata: deserializeMetadata(output),
|
|
@@ -2089,8 +2087,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
2089
2087
|
await collectBody(output.body, context);
|
|
2090
2088
|
return contents;
|
|
2091
2089
|
};
|
|
2092
|
-
exports.
|
|
2093
|
-
const
|
|
2090
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2091
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2094
2092
|
const parsedOutput = {
|
|
2095
2093
|
...output,
|
|
2096
2094
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2099,16 +2097,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2099
2097
|
switch (errorCode) {
|
|
2100
2098
|
case "BadRequestException":
|
|
2101
2099
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2102
|
-
throw await
|
|
2100
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2103
2101
|
case "ForbiddenException":
|
|
2104
2102
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2105
|
-
throw await
|
|
2103
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2106
2104
|
case "InternalServerErrorException":
|
|
2107
2105
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2108
|
-
throw await
|
|
2106
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2109
2107
|
case "NotFoundException":
|
|
2110
2108
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2111
|
-
throw await
|
|
2109
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2112
2110
|
default:
|
|
2113
2111
|
const parsedBody = parsedOutput.body;
|
|
2114
2112
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2119,9 +2117,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2119
2117
|
});
|
|
2120
2118
|
}
|
|
2121
2119
|
};
|
|
2122
|
-
const
|
|
2120
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2123
2121
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2124
|
-
return
|
|
2122
|
+
return de_UntagResourceCommandError(output, context);
|
|
2125
2123
|
}
|
|
2126
2124
|
const contents = map({
|
|
2127
2125
|
$metadata: deserializeMetadata(output),
|
|
@@ -2129,8 +2127,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2129
2127
|
await collectBody(output.body, context);
|
|
2130
2128
|
return contents;
|
|
2131
2129
|
};
|
|
2132
|
-
exports.
|
|
2133
|
-
const
|
|
2130
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2131
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2134
2132
|
const parsedOutput = {
|
|
2135
2133
|
...output,
|
|
2136
2134
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2139,16 +2137,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2139
2137
|
switch (errorCode) {
|
|
2140
2138
|
case "BadRequestException":
|
|
2141
2139
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2142
|
-
throw await
|
|
2140
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2143
2141
|
case "ForbiddenException":
|
|
2144
2142
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2145
|
-
throw await
|
|
2143
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2146
2144
|
case "InternalServerErrorException":
|
|
2147
2145
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2148
|
-
throw await
|
|
2146
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2149
2147
|
case "NotFoundException":
|
|
2150
2148
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2151
|
-
throw await
|
|
2149
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2152
2150
|
default:
|
|
2153
2151
|
const parsedBody = parsedOutput.body;
|
|
2154
2152
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2159,9 +2157,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2159
2157
|
});
|
|
2160
2158
|
}
|
|
2161
2159
|
};
|
|
2162
|
-
const
|
|
2160
|
+
const de_UpdateDiscovererCommand = async (output, context) => {
|
|
2163
2161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2164
|
-
return
|
|
2162
|
+
return de_UpdateDiscovererCommandError(output, context);
|
|
2165
2163
|
}
|
|
2166
2164
|
const contents = map({
|
|
2167
2165
|
$metadata: deserializeMetadata(output),
|
|
@@ -2186,12 +2184,12 @@ const deserializeAws_restJson1UpdateDiscovererCommand = async (output, context)
|
|
|
2186
2184
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
2187
2185
|
}
|
|
2188
2186
|
if (data.tags != null) {
|
|
2189
|
-
contents.Tags =
|
|
2187
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2190
2188
|
}
|
|
2191
2189
|
return contents;
|
|
2192
2190
|
};
|
|
2193
|
-
exports.
|
|
2194
|
-
const
|
|
2191
|
+
exports.de_UpdateDiscovererCommand = de_UpdateDiscovererCommand;
|
|
2192
|
+
const de_UpdateDiscovererCommandError = async (output, context) => {
|
|
2195
2193
|
const parsedOutput = {
|
|
2196
2194
|
...output,
|
|
2197
2195
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2200,22 +2198,22 @@ const deserializeAws_restJson1UpdateDiscovererCommandError = async (output, cont
|
|
|
2200
2198
|
switch (errorCode) {
|
|
2201
2199
|
case "BadRequestException":
|
|
2202
2200
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2203
|
-
throw await
|
|
2201
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2204
2202
|
case "ForbiddenException":
|
|
2205
2203
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2206
|
-
throw await
|
|
2204
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2207
2205
|
case "InternalServerErrorException":
|
|
2208
2206
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2209
|
-
throw await
|
|
2207
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2210
2208
|
case "NotFoundException":
|
|
2211
2209
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2212
|
-
throw await
|
|
2210
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2213
2211
|
case "ServiceUnavailableException":
|
|
2214
2212
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
2215
|
-
throw await
|
|
2213
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2216
2214
|
case "UnauthorizedException":
|
|
2217
2215
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
2218
|
-
throw await
|
|
2216
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2219
2217
|
default:
|
|
2220
2218
|
const parsedBody = parsedOutput.body;
|
|
2221
2219
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2226,9 +2224,9 @@ const deserializeAws_restJson1UpdateDiscovererCommandError = async (output, cont
|
|
|
2226
2224
|
});
|
|
2227
2225
|
}
|
|
2228
2226
|
};
|
|
2229
|
-
const
|
|
2227
|
+
const de_UpdateRegistryCommand = async (output, context) => {
|
|
2230
2228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
|
-
return
|
|
2229
|
+
return de_UpdateRegistryCommandError(output, context);
|
|
2232
2230
|
}
|
|
2233
2231
|
const contents = map({
|
|
2234
2232
|
$metadata: deserializeMetadata(output),
|
|
@@ -2244,12 +2242,12 @@ const deserializeAws_restJson1UpdateRegistryCommand = async (output, context) =>
|
|
|
2244
2242
|
contents.RegistryName = (0, smithy_client_1.expectString)(data.RegistryName);
|
|
2245
2243
|
}
|
|
2246
2244
|
if (data.tags != null) {
|
|
2247
|
-
contents.Tags =
|
|
2245
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2248
2246
|
}
|
|
2249
2247
|
return contents;
|
|
2250
2248
|
};
|
|
2251
|
-
exports.
|
|
2252
|
-
const
|
|
2249
|
+
exports.de_UpdateRegistryCommand = de_UpdateRegistryCommand;
|
|
2250
|
+
const de_UpdateRegistryCommandError = async (output, context) => {
|
|
2253
2251
|
const parsedOutput = {
|
|
2254
2252
|
...output,
|
|
2255
2253
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2258,22 +2256,22 @@ const deserializeAws_restJson1UpdateRegistryCommandError = async (output, contex
|
|
|
2258
2256
|
switch (errorCode) {
|
|
2259
2257
|
case "BadRequestException":
|
|
2260
2258
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2261
|
-
throw await
|
|
2259
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2262
2260
|
case "ForbiddenException":
|
|
2263
2261
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2264
|
-
throw await
|
|
2262
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2265
2263
|
case "InternalServerErrorException":
|
|
2266
2264
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2267
|
-
throw await
|
|
2265
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2268
2266
|
case "NotFoundException":
|
|
2269
2267
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2270
|
-
throw await
|
|
2268
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2271
2269
|
case "ServiceUnavailableException":
|
|
2272
2270
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
2273
|
-
throw await
|
|
2271
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2274
2272
|
case "UnauthorizedException":
|
|
2275
2273
|
case "com.amazonaws.schemas#UnauthorizedException":
|
|
2276
|
-
throw await
|
|
2274
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2277
2275
|
default:
|
|
2278
2276
|
const parsedBody = parsedOutput.body;
|
|
2279
2277
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2284,9 +2282,9 @@ const deserializeAws_restJson1UpdateRegistryCommandError = async (output, contex
|
|
|
2284
2282
|
});
|
|
2285
2283
|
}
|
|
2286
2284
|
};
|
|
2287
|
-
const
|
|
2285
|
+
const de_UpdateSchemaCommand = async (output, context) => {
|
|
2288
2286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2289
|
-
return
|
|
2287
|
+
return de_UpdateSchemaCommandError(output, context);
|
|
2290
2288
|
}
|
|
2291
2289
|
const contents = map({
|
|
2292
2290
|
$metadata: deserializeMetadata(output),
|
|
@@ -2308,7 +2306,7 @@ const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
|
|
|
2308
2306
|
contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
|
|
2309
2307
|
}
|
|
2310
2308
|
if (data.tags != null) {
|
|
2311
|
-
contents.Tags =
|
|
2309
|
+
contents.Tags = de_Tags(data.tags, context);
|
|
2312
2310
|
}
|
|
2313
2311
|
if (data.Type != null) {
|
|
2314
2312
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
@@ -2318,8 +2316,8 @@ const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
|
|
|
2318
2316
|
}
|
|
2319
2317
|
return contents;
|
|
2320
2318
|
};
|
|
2321
|
-
exports.
|
|
2322
|
-
const
|
|
2319
|
+
exports.de_UpdateSchemaCommand = de_UpdateSchemaCommand;
|
|
2320
|
+
const de_UpdateSchemaCommandError = async (output, context) => {
|
|
2323
2321
|
const parsedOutput = {
|
|
2324
2322
|
...output,
|
|
2325
2323
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2328,19 +2326,19 @@ const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context)
|
|
|
2328
2326
|
switch (errorCode) {
|
|
2329
2327
|
case "BadRequestException":
|
|
2330
2328
|
case "com.amazonaws.schemas#BadRequestException":
|
|
2331
|
-
throw await
|
|
2329
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2332
2330
|
case "ForbiddenException":
|
|
2333
2331
|
case "com.amazonaws.schemas#ForbiddenException":
|
|
2334
|
-
throw await
|
|
2332
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2335
2333
|
case "InternalServerErrorException":
|
|
2336
2334
|
case "com.amazonaws.schemas#InternalServerErrorException":
|
|
2337
|
-
throw await
|
|
2335
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2338
2336
|
case "NotFoundException":
|
|
2339
2337
|
case "com.amazonaws.schemas#NotFoundException":
|
|
2340
|
-
throw await
|
|
2338
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2341
2339
|
case "ServiceUnavailableException":
|
|
2342
2340
|
case "com.amazonaws.schemas#ServiceUnavailableException":
|
|
2343
|
-
throw await
|
|
2341
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2344
2342
|
default:
|
|
2345
2343
|
const parsedBody = parsedOutput.body;
|
|
2346
2344
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2352,7 +2350,7 @@ const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context)
|
|
|
2352
2350
|
}
|
|
2353
2351
|
};
|
|
2354
2352
|
const map = smithy_client_1.map;
|
|
2355
|
-
const
|
|
2353
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2356
2354
|
const contents = map({});
|
|
2357
2355
|
const data = parsedOutput.body;
|
|
2358
2356
|
if (data.Code != null) {
|
|
@@ -2367,7 +2365,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2367
2365
|
});
|
|
2368
2366
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2369
2367
|
};
|
|
2370
|
-
const
|
|
2368
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2371
2369
|
const contents = map({});
|
|
2372
2370
|
const data = parsedOutput.body;
|
|
2373
2371
|
if (data.Code != null) {
|
|
@@ -2382,7 +2380,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2382
2380
|
});
|
|
2383
2381
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2384
2382
|
};
|
|
2385
|
-
const
|
|
2383
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2386
2384
|
const contents = map({});
|
|
2387
2385
|
const data = parsedOutput.body;
|
|
2388
2386
|
if (data.Code != null) {
|
|
@@ -2397,7 +2395,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
2397
2395
|
});
|
|
2398
2396
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2399
2397
|
};
|
|
2400
|
-
const
|
|
2398
|
+
const de_GoneExceptionRes = async (parsedOutput, context) => {
|
|
2401
2399
|
const contents = map({});
|
|
2402
2400
|
const data = parsedOutput.body;
|
|
2403
2401
|
if (data.Code != null) {
|
|
@@ -2412,7 +2410,7 @@ const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, conte
|
|
|
2412
2410
|
});
|
|
2413
2411
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2414
2412
|
};
|
|
2415
|
-
const
|
|
2413
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2416
2414
|
const contents = map({});
|
|
2417
2415
|
const data = parsedOutput.body;
|
|
2418
2416
|
if (data.Code != null) {
|
|
@@ -2427,7 +2425,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
2427
2425
|
});
|
|
2428
2426
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2429
2427
|
};
|
|
2430
|
-
const
|
|
2428
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2431
2429
|
const contents = map({});
|
|
2432
2430
|
const data = parsedOutput.body;
|
|
2433
2431
|
if (data.Code != null) {
|
|
@@ -2442,7 +2440,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2442
2440
|
});
|
|
2443
2441
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2444
2442
|
};
|
|
2445
|
-
const
|
|
2443
|
+
const de_PreconditionFailedExceptionRes = async (parsedOutput, context) => {
|
|
2446
2444
|
const contents = map({});
|
|
2447
2445
|
const data = parsedOutput.body;
|
|
2448
2446
|
if (data.Code != null) {
|
|
@@ -2457,7 +2455,7 @@ const deserializeAws_restJson1PreconditionFailedExceptionResponse = async (parse
|
|
|
2457
2455
|
});
|
|
2458
2456
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2459
2457
|
};
|
|
2460
|
-
const
|
|
2458
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2461
2459
|
const contents = map({});
|
|
2462
2460
|
const data = parsedOutput.body;
|
|
2463
2461
|
if (data.Code != null) {
|
|
@@ -2472,7 +2470,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2472
2470
|
});
|
|
2473
2471
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2474
2472
|
};
|
|
2475
|
-
const
|
|
2473
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2476
2474
|
const contents = map({});
|
|
2477
2475
|
const data = parsedOutput.body;
|
|
2478
2476
|
if (data.Code != null) {
|
|
@@ -2487,7 +2485,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
2487
2485
|
});
|
|
2488
2486
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2489
2487
|
};
|
|
2490
|
-
const
|
|
2488
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2491
2489
|
const contents = map({});
|
|
2492
2490
|
const data = parsedOutput.body;
|
|
2493
2491
|
if (data.Code != null) {
|
|
@@ -2502,14 +2500,14 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
2502
2500
|
});
|
|
2503
2501
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2504
2502
|
};
|
|
2505
|
-
const
|
|
2503
|
+
const se___listOfGetDiscoveredSchemaVersionItemInput = (input, context) => {
|
|
2506
2504
|
return input
|
|
2507
2505
|
.filter((e) => e != null)
|
|
2508
2506
|
.map((entry) => {
|
|
2509
2507
|
return entry;
|
|
2510
2508
|
});
|
|
2511
2509
|
};
|
|
2512
|
-
const
|
|
2510
|
+
const se_Tags = (input, context) => {
|
|
2513
2511
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2514
2512
|
if (value === null) {
|
|
2515
2513
|
return acc;
|
|
@@ -2518,99 +2516,99 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2518
2516
|
return acc;
|
|
2519
2517
|
}, {});
|
|
2520
2518
|
};
|
|
2521
|
-
const
|
|
2519
|
+
const de___listOfDiscovererSummary = (output, context) => {
|
|
2522
2520
|
const retVal = (output || [])
|
|
2523
2521
|
.filter((e) => e != null)
|
|
2524
2522
|
.map((entry) => {
|
|
2525
2523
|
if (entry === null) {
|
|
2526
2524
|
return null;
|
|
2527
2525
|
}
|
|
2528
|
-
return
|
|
2526
|
+
return de_DiscovererSummary(entry, context);
|
|
2529
2527
|
});
|
|
2530
2528
|
return retVal;
|
|
2531
2529
|
};
|
|
2532
|
-
const
|
|
2530
|
+
const de___listOfRegistrySummary = (output, context) => {
|
|
2533
2531
|
const retVal = (output || [])
|
|
2534
2532
|
.filter((e) => e != null)
|
|
2535
2533
|
.map((entry) => {
|
|
2536
2534
|
if (entry === null) {
|
|
2537
2535
|
return null;
|
|
2538
2536
|
}
|
|
2539
|
-
return
|
|
2537
|
+
return de_RegistrySummary(entry, context);
|
|
2540
2538
|
});
|
|
2541
2539
|
return retVal;
|
|
2542
2540
|
};
|
|
2543
|
-
const
|
|
2541
|
+
const de___listOfSchemaSummary = (output, context) => {
|
|
2544
2542
|
const retVal = (output || [])
|
|
2545
2543
|
.filter((e) => e != null)
|
|
2546
2544
|
.map((entry) => {
|
|
2547
2545
|
if (entry === null) {
|
|
2548
2546
|
return null;
|
|
2549
2547
|
}
|
|
2550
|
-
return
|
|
2548
|
+
return de_SchemaSummary(entry, context);
|
|
2551
2549
|
});
|
|
2552
2550
|
return retVal;
|
|
2553
2551
|
};
|
|
2554
|
-
const
|
|
2552
|
+
const de___listOfSchemaVersionSummary = (output, context) => {
|
|
2555
2553
|
const retVal = (output || [])
|
|
2556
2554
|
.filter((e) => e != null)
|
|
2557
2555
|
.map((entry) => {
|
|
2558
2556
|
if (entry === null) {
|
|
2559
2557
|
return null;
|
|
2560
2558
|
}
|
|
2561
|
-
return
|
|
2559
|
+
return de_SchemaVersionSummary(entry, context);
|
|
2562
2560
|
});
|
|
2563
2561
|
return retVal;
|
|
2564
2562
|
};
|
|
2565
|
-
const
|
|
2563
|
+
const de___listOfSearchSchemaSummary = (output, context) => {
|
|
2566
2564
|
const retVal = (output || [])
|
|
2567
2565
|
.filter((e) => e != null)
|
|
2568
2566
|
.map((entry) => {
|
|
2569
2567
|
if (entry === null) {
|
|
2570
2568
|
return null;
|
|
2571
2569
|
}
|
|
2572
|
-
return
|
|
2570
|
+
return de_SearchSchemaSummary(entry, context);
|
|
2573
2571
|
});
|
|
2574
2572
|
return retVal;
|
|
2575
2573
|
};
|
|
2576
|
-
const
|
|
2574
|
+
const de___listOfSearchSchemaVersionSummary = (output, context) => {
|
|
2577
2575
|
const retVal = (output || [])
|
|
2578
2576
|
.filter((e) => e != null)
|
|
2579
2577
|
.map((entry) => {
|
|
2580
2578
|
if (entry === null) {
|
|
2581
2579
|
return null;
|
|
2582
2580
|
}
|
|
2583
|
-
return
|
|
2581
|
+
return de_SearchSchemaVersionSummary(entry, context);
|
|
2584
2582
|
});
|
|
2585
2583
|
return retVal;
|
|
2586
2584
|
};
|
|
2587
|
-
const
|
|
2585
|
+
const de_DiscovererSummary = (output, context) => {
|
|
2588
2586
|
return {
|
|
2589
2587
|
CrossAccount: (0, smithy_client_1.expectBoolean)(output.CrossAccount),
|
|
2590
2588
|
DiscovererArn: (0, smithy_client_1.expectString)(output.DiscovererArn),
|
|
2591
2589
|
DiscovererId: (0, smithy_client_1.expectString)(output.DiscovererId),
|
|
2592
2590
|
SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
|
|
2593
2591
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
2594
|
-
Tags: output.tags != null ?
|
|
2592
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2595
2593
|
};
|
|
2596
2594
|
};
|
|
2597
|
-
const
|
|
2595
|
+
const de_RegistrySummary = (output, context) => {
|
|
2598
2596
|
return {
|
|
2599
2597
|
RegistryArn: (0, smithy_client_1.expectString)(output.RegistryArn),
|
|
2600
2598
|
RegistryName: (0, smithy_client_1.expectString)(output.RegistryName),
|
|
2601
|
-
Tags: output.tags != null ?
|
|
2599
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2602
2600
|
};
|
|
2603
2601
|
};
|
|
2604
|
-
const
|
|
2602
|
+
const de_SchemaSummary = (output, context) => {
|
|
2605
2603
|
return {
|
|
2606
2604
|
LastModified: output.LastModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.LastModified)) : undefined,
|
|
2607
2605
|
SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
|
|
2608
2606
|
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
2609
|
-
Tags: output.tags != null ?
|
|
2607
|
+
Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2610
2608
|
VersionCount: (0, smithy_client_1.expectLong)(output.VersionCount),
|
|
2611
2609
|
};
|
|
2612
2610
|
};
|
|
2613
|
-
const
|
|
2611
|
+
const de_SchemaVersionSummary = (output, context) => {
|
|
2614
2612
|
return {
|
|
2615
2613
|
SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
|
|
2616
2614
|
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
@@ -2618,24 +2616,22 @@ const deserializeAws_restJson1SchemaVersionSummary = (output, context) => {
|
|
|
2618
2616
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2619
2617
|
};
|
|
2620
2618
|
};
|
|
2621
|
-
const
|
|
2619
|
+
const de_SearchSchemaSummary = (output, context) => {
|
|
2622
2620
|
return {
|
|
2623
2621
|
RegistryName: (0, smithy_client_1.expectString)(output.RegistryName),
|
|
2624
2622
|
SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
|
|
2625
2623
|
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
2626
|
-
SchemaVersions: output.SchemaVersions != null
|
|
2627
|
-
? deserializeAws_restJson1__listOfSearchSchemaVersionSummary(output.SchemaVersions, context)
|
|
2628
|
-
: undefined,
|
|
2624
|
+
SchemaVersions: output.SchemaVersions != null ? de___listOfSearchSchemaVersionSummary(output.SchemaVersions, context) : undefined,
|
|
2629
2625
|
};
|
|
2630
2626
|
};
|
|
2631
|
-
const
|
|
2627
|
+
const de_SearchSchemaVersionSummary = (output, context) => {
|
|
2632
2628
|
return {
|
|
2633
2629
|
CreatedDate: output.CreatedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedDate)) : undefined,
|
|
2634
2630
|
SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion),
|
|
2635
2631
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2636
2632
|
};
|
|
2637
2633
|
};
|
|
2638
|
-
const
|
|
2634
|
+
const de_Tags = (output, context) => {
|
|
2639
2635
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2640
2636
|
if (value === null) {
|
|
2641
2637
|
return acc;
|