@aws-sdk/client-service-catalog-appregistry 3.303.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/AssociateAttributeGroupCommand.js +2 -2
- package/dist-cjs/commands/AssociateResourceCommand.js +2 -2
- package/dist-cjs/commands/CreateApplicationCommand.js +2 -2
- package/dist-cjs/commands/CreateAttributeGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/dist-cjs/commands/DeleteAttributeGroupCommand.js +2 -2
- package/dist-cjs/commands/DisassociateAttributeGroupCommand.js +2 -2
- package/dist-cjs/commands/DisassociateResourceCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetAssociatedResourceCommand.js +2 -2
- package/dist-cjs/commands/GetAttributeGroupCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/ListAssociatedAttributeGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListAssociatedResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListAttributeGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListAttributeGroupsForApplicationCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutConfigurationCommand.js +2 -2
- package/dist-cjs/commands/SyncResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
- package/dist-cjs/commands/UpdateAttributeGroupCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +290 -296
- package/dist-es/commands/AssociateAttributeGroupCommand.js +3 -3
- package/dist-es/commands/AssociateResourceCommand.js +3 -3
- package/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/dist-es/commands/CreateAttributeGroupCommand.js +3 -3
- package/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/dist-es/commands/DeleteAttributeGroupCommand.js +3 -3
- package/dist-es/commands/DisassociateAttributeGroupCommand.js +3 -3
- package/dist-es/commands/DisassociateResourceCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetAssociatedResourceCommand.js +3 -3
- package/dist-es/commands/GetAttributeGroupCommand.js +3 -3
- package/dist-es/commands/GetConfigurationCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/ListAssociatedAttributeGroupsCommand.js +3 -3
- package/dist-es/commands/ListAssociatedResourcesCommand.js +3 -3
- package/dist-es/commands/ListAttributeGroupsCommand.js +3 -3
- package/dist-es/commands/ListAttributeGroupsForApplicationCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutConfigurationCommand.js +3 -3
- package/dist-es/commands/SyncResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationCommand.js +3 -3
- package/dist-es/commands/UpdateAttributeGroupCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +241 -247
- package/dist-types/protocols/Aws_restJson1.d.ts +192 -48
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -48
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateAttributeGroupCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SyncResourceCommand = exports.de_PutConfigurationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListAttributeGroupsForApplicationCommand = exports.de_ListAttributeGroupsCommand = exports.de_ListAssociatedResourcesCommand = exports.de_ListAssociatedAttributeGroupsCommand = exports.de_ListApplicationsCommand = exports.de_GetConfigurationCommand = exports.de_GetAttributeGroupCommand = exports.de_GetAssociatedResourceCommand = exports.de_GetApplicationCommand = exports.de_DisassociateResourceCommand = exports.de_DisassociateAttributeGroupCommand = exports.de_DeleteAttributeGroupCommand = exports.de_DeleteApplicationCommand = exports.de_CreateAttributeGroupCommand = exports.de_CreateApplicationCommand = exports.de_AssociateResourceCommand = exports.de_AssociateAttributeGroupCommand = exports.se_UpdateAttributeGroupCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SyncResourceCommand = exports.se_PutConfigurationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListAttributeGroupsForApplicationCommand = exports.se_ListAttributeGroupsCommand = exports.se_ListAssociatedResourcesCommand = exports.se_ListAssociatedAttributeGroupsCommand = exports.se_ListApplicationsCommand = exports.se_GetConfigurationCommand = exports.se_GetAttributeGroupCommand = exports.se_GetAssociatedResourceCommand = exports.se_GetApplicationCommand = exports.se_DisassociateResourceCommand = exports.se_DisassociateAttributeGroupCommand = exports.se_DeleteAttributeGroupCommand = exports.se_DeleteApplicationCommand = exports.se_CreateAttributeGroupCommand = exports.se_CreateApplicationCommand = exports.se_AssociateResourceCommand = exports.se_AssociateAttributeGroupCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const ServiceCatalogAppRegistryServiceException_1 = require("../models/ServiceCatalogAppRegistryServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_AssociateAttributeGroupCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -24,8 +24,8 @@ const serializeAws_restJson1AssociateAttributeGroupCommand = async (input, conte
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_AssociateAttributeGroupCommand = se_AssociateAttributeGroupCommand;
|
|
28
|
+
const se_AssociateResourceCommand = async (input, context) => {
|
|
29
29
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
30
|
const headers = {};
|
|
31
31
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -44,8 +44,8 @@ const serializeAws_restJson1AssociateResourceCommand = async (input, context) =>
|
|
|
44
44
|
body,
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_AssociateResourceCommand = se_AssociateResourceCommand;
|
|
48
|
+
const se_CreateApplicationCommand = async (input, context) => {
|
|
49
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
50
50
|
const headers = {
|
|
51
51
|
"content-type": "application/json",
|
|
@@ -56,7 +56,7 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
56
56
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
57
57
|
...(input.description != null && { description: input.description }),
|
|
58
58
|
...(input.name != null && { name: input.name }),
|
|
59
|
-
...(input.tags != null && { tags:
|
|
59
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
60
60
|
});
|
|
61
61
|
return new protocol_http_1.HttpRequest({
|
|
62
62
|
protocol,
|
|
@@ -68,8 +68,8 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
68
68
|
body,
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
-
exports.
|
|
72
|
-
const
|
|
71
|
+
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
72
|
+
const se_CreateAttributeGroupCommand = async (input, context) => {
|
|
73
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
74
|
const headers = {
|
|
75
75
|
"content-type": "application/json",
|
|
@@ -81,7 +81,7 @@ const serializeAws_restJson1CreateAttributeGroupCommand = async (input, context)
|
|
|
81
81
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
82
82
|
...(input.description != null && { description: input.description }),
|
|
83
83
|
...(input.name != null && { name: input.name }),
|
|
84
|
-
...(input.tags != null && { tags:
|
|
84
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
85
85
|
});
|
|
86
86
|
return new protocol_http_1.HttpRequest({
|
|
87
87
|
protocol,
|
|
@@ -93,8 +93,8 @@ const serializeAws_restJson1CreateAttributeGroupCommand = async (input, context)
|
|
|
93
93
|
body,
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
exports.
|
|
97
|
-
const
|
|
96
|
+
exports.se_CreateAttributeGroupCommand = se_CreateAttributeGroupCommand;
|
|
97
|
+
const se_DeleteApplicationCommand = async (input, context) => {
|
|
98
98
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
99
|
const headers = {};
|
|
100
100
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
@@ -110,8 +110,8 @@ const serializeAws_restJson1DeleteApplicationCommand = async (input, context) =>
|
|
|
110
110
|
body,
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
exports.
|
|
114
|
-
const
|
|
113
|
+
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
114
|
+
const se_DeleteAttributeGroupCommand = async (input, context) => {
|
|
115
115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
116
116
|
const headers = {};
|
|
117
117
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
@@ -127,8 +127,8 @@ const serializeAws_restJson1DeleteAttributeGroupCommand = async (input, context)
|
|
|
127
127
|
body,
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
|
-
exports.
|
|
131
|
-
const
|
|
130
|
+
exports.se_DeleteAttributeGroupCommand = se_DeleteAttributeGroupCommand;
|
|
131
|
+
const se_DisassociateAttributeGroupCommand = async (input, context) => {
|
|
132
132
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
133
|
const headers = {};
|
|
134
134
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -146,8 +146,8 @@ const serializeAws_restJson1DisassociateAttributeGroupCommand = async (input, co
|
|
|
146
146
|
body,
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
-
exports.
|
|
150
|
-
const
|
|
149
|
+
exports.se_DisassociateAttributeGroupCommand = se_DisassociateAttributeGroupCommand;
|
|
150
|
+
const se_DisassociateResourceCommand = async (input, context) => {
|
|
151
151
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
152
|
const headers = {};
|
|
153
153
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -166,8 +166,8 @@ const serializeAws_restJson1DisassociateResourceCommand = async (input, context)
|
|
|
166
166
|
body,
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
|
-
exports.
|
|
170
|
-
const
|
|
169
|
+
exports.se_DisassociateResourceCommand = se_DisassociateResourceCommand;
|
|
170
|
+
const se_GetApplicationCommand = async (input, context) => {
|
|
171
171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
172
172
|
const headers = {};
|
|
173
173
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
@@ -183,8 +183,8 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
183
183
|
body,
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
|
-
exports.
|
|
187
|
-
const
|
|
186
|
+
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
187
|
+
const se_GetAssociatedResourceCommand = async (input, context) => {
|
|
188
188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
189
|
const headers = {};
|
|
190
190
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -203,8 +203,8 @@ const serializeAws_restJson1GetAssociatedResourceCommand = async (input, context
|
|
|
203
203
|
body,
|
|
204
204
|
});
|
|
205
205
|
};
|
|
206
|
-
exports.
|
|
207
|
-
const
|
|
206
|
+
exports.se_GetAssociatedResourceCommand = se_GetAssociatedResourceCommand;
|
|
207
|
+
const se_GetAttributeGroupCommand = async (input, context) => {
|
|
208
208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
209
|
const headers = {};
|
|
210
210
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
@@ -220,8 +220,8 @@ const serializeAws_restJson1GetAttributeGroupCommand = async (input, context) =>
|
|
|
220
220
|
body,
|
|
221
221
|
});
|
|
222
222
|
};
|
|
223
|
-
exports.
|
|
224
|
-
const
|
|
223
|
+
exports.se_GetAttributeGroupCommand = se_GetAttributeGroupCommand;
|
|
224
|
+
const se_GetConfigurationCommand = async (input, context) => {
|
|
225
225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
226
|
const headers = {
|
|
227
227
|
"content-type": "application/json",
|
|
@@ -239,8 +239,8 @@ const serializeAws_restJson1GetConfigurationCommand = async (input, context) =>
|
|
|
239
239
|
body,
|
|
240
240
|
});
|
|
241
241
|
};
|
|
242
|
-
exports.
|
|
243
|
-
const
|
|
242
|
+
exports.se_GetConfigurationCommand = se_GetConfigurationCommand;
|
|
243
|
+
const se_ListApplicationsCommand = async (input, context) => {
|
|
244
244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
245
|
const headers = {};
|
|
246
246
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
@@ -260,8 +260,8 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
260
260
|
body,
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
|
-
exports.
|
|
264
|
-
const
|
|
263
|
+
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
264
|
+
const se_ListAssociatedAttributeGroupsCommand = async (input, context) => {
|
|
265
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
266
266
|
const headers = {};
|
|
267
267
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -283,8 +283,8 @@ const serializeAws_restJson1ListAssociatedAttributeGroupsCommand = async (input,
|
|
|
283
283
|
body,
|
|
284
284
|
});
|
|
285
285
|
};
|
|
286
|
-
exports.
|
|
287
|
-
const
|
|
286
|
+
exports.se_ListAssociatedAttributeGroupsCommand = se_ListAssociatedAttributeGroupsCommand;
|
|
287
|
+
const se_ListAssociatedResourcesCommand = async (input, context) => {
|
|
288
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
289
|
const headers = {};
|
|
290
290
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}/resources";
|
|
@@ -305,8 +305,8 @@ const serializeAws_restJson1ListAssociatedResourcesCommand = async (input, conte
|
|
|
305
305
|
body,
|
|
306
306
|
});
|
|
307
307
|
};
|
|
308
|
-
exports.
|
|
309
|
-
const
|
|
308
|
+
exports.se_ListAssociatedResourcesCommand = se_ListAssociatedResourcesCommand;
|
|
309
|
+
const se_ListAttributeGroupsCommand = async (input, context) => {
|
|
310
310
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
311
311
|
const headers = {};
|
|
312
312
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
|
|
@@ -326,8 +326,8 @@ const serializeAws_restJson1ListAttributeGroupsCommand = async (input, context)
|
|
|
326
326
|
body,
|
|
327
327
|
});
|
|
328
328
|
};
|
|
329
|
-
exports.
|
|
330
|
-
const
|
|
329
|
+
exports.se_ListAttributeGroupsCommand = se_ListAttributeGroupsCommand;
|
|
330
|
+
const se_ListAttributeGroupsForApplicationCommand = async (input, context) => {
|
|
331
331
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
332
332
|
const headers = {};
|
|
333
333
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -349,8 +349,8 @@ const serializeAws_restJson1ListAttributeGroupsForApplicationCommand = async (in
|
|
|
349
349
|
body,
|
|
350
350
|
});
|
|
351
351
|
};
|
|
352
|
-
exports.
|
|
353
|
-
const
|
|
352
|
+
exports.se_ListAttributeGroupsForApplicationCommand = se_ListAttributeGroupsForApplicationCommand;
|
|
353
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
354
354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
355
355
|
const headers = {};
|
|
356
356
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -366,8 +366,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
366
366
|
body,
|
|
367
367
|
});
|
|
368
368
|
};
|
|
369
|
-
exports.
|
|
370
|
-
const
|
|
369
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
370
|
+
const se_PutConfigurationCommand = async (input, context) => {
|
|
371
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
372
372
|
const headers = {
|
|
373
373
|
"content-type": "application/json",
|
|
@@ -375,9 +375,7 @@ const serializeAws_restJson1PutConfigurationCommand = async (input, context) =>
|
|
|
375
375
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
376
376
|
let body;
|
|
377
377
|
body = JSON.stringify({
|
|
378
|
-
...(input.configuration != null && {
|
|
379
|
-
configuration: serializeAws_restJson1AppRegistryConfiguration(input.configuration, context),
|
|
380
|
-
}),
|
|
378
|
+
...(input.configuration != null && { configuration: se_AppRegistryConfiguration(input.configuration, context) }),
|
|
381
379
|
});
|
|
382
380
|
return new protocol_http_1.HttpRequest({
|
|
383
381
|
protocol,
|
|
@@ -389,8 +387,8 @@ const serializeAws_restJson1PutConfigurationCommand = async (input, context) =>
|
|
|
389
387
|
body,
|
|
390
388
|
});
|
|
391
389
|
};
|
|
392
|
-
exports.
|
|
393
|
-
const
|
|
390
|
+
exports.se_PutConfigurationCommand = se_PutConfigurationCommand;
|
|
391
|
+
const se_SyncResourceCommand = async (input, context) => {
|
|
394
392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
395
393
|
const headers = {};
|
|
396
394
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync/{resourceType}/{resource}";
|
|
@@ -407,8 +405,8 @@ const serializeAws_restJson1SyncResourceCommand = async (input, context) => {
|
|
|
407
405
|
body,
|
|
408
406
|
});
|
|
409
407
|
};
|
|
410
|
-
exports.
|
|
411
|
-
const
|
|
408
|
+
exports.se_SyncResourceCommand = se_SyncResourceCommand;
|
|
409
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
412
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
411
|
const headers = {
|
|
414
412
|
"content-type": "application/json",
|
|
@@ -417,7 +415,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
417
415
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
418
416
|
let body;
|
|
419
417
|
body = JSON.stringify({
|
|
420
|
-
...(input.tags != null && { tags:
|
|
418
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
421
419
|
});
|
|
422
420
|
return new protocol_http_1.HttpRequest({
|
|
423
421
|
protocol,
|
|
@@ -429,8 +427,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
429
427
|
body,
|
|
430
428
|
});
|
|
431
429
|
};
|
|
432
|
-
exports.
|
|
433
|
-
const
|
|
430
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
431
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
434
432
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
433
|
const headers = {};
|
|
436
434
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -453,8 +451,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
453
451
|
body,
|
|
454
452
|
});
|
|
455
453
|
};
|
|
456
|
-
exports.
|
|
457
|
-
const
|
|
454
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
455
|
+
const se_UpdateApplicationCommand = async (input, context) => {
|
|
458
456
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
457
|
const headers = {
|
|
460
458
|
"content-type": "application/json",
|
|
@@ -476,8 +474,8 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
476
474
|
body,
|
|
477
475
|
});
|
|
478
476
|
};
|
|
479
|
-
exports.
|
|
480
|
-
const
|
|
477
|
+
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
478
|
+
const se_UpdateAttributeGroupCommand = async (input, context) => {
|
|
481
479
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
482
480
|
const headers = {
|
|
483
481
|
"content-type": "application/json",
|
|
@@ -500,10 +498,10 @@ const serializeAws_restJson1UpdateAttributeGroupCommand = async (input, context)
|
|
|
500
498
|
body,
|
|
501
499
|
});
|
|
502
500
|
};
|
|
503
|
-
exports.
|
|
504
|
-
const
|
|
501
|
+
exports.se_UpdateAttributeGroupCommand = se_UpdateAttributeGroupCommand;
|
|
502
|
+
const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
505
503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
506
|
-
return
|
|
504
|
+
return de_AssociateAttributeGroupCommandError(output, context);
|
|
507
505
|
}
|
|
508
506
|
const contents = map({
|
|
509
507
|
$metadata: deserializeMetadata(output),
|
|
@@ -517,8 +515,8 @@ const deserializeAws_restJson1AssociateAttributeGroupCommand = async (output, co
|
|
|
517
515
|
}
|
|
518
516
|
return contents;
|
|
519
517
|
};
|
|
520
|
-
exports.
|
|
521
|
-
const
|
|
518
|
+
exports.de_AssociateAttributeGroupCommand = de_AssociateAttributeGroupCommand;
|
|
519
|
+
const de_AssociateAttributeGroupCommandError = async (output, context) => {
|
|
522
520
|
const parsedOutput = {
|
|
523
521
|
...output,
|
|
524
522
|
body: await parseErrorBody(output.body, context),
|
|
@@ -527,19 +525,19 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
527
525
|
switch (errorCode) {
|
|
528
526
|
case "ConflictException":
|
|
529
527
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
530
|
-
throw await
|
|
528
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
531
529
|
case "InternalServerException":
|
|
532
530
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
533
|
-
throw await
|
|
531
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
534
532
|
case "ResourceNotFoundException":
|
|
535
533
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
536
|
-
throw await
|
|
534
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
537
535
|
case "ServiceQuotaExceededException":
|
|
538
536
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
539
|
-
throw await
|
|
537
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
540
538
|
case "ValidationException":
|
|
541
539
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
542
|
-
throw await
|
|
540
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
543
541
|
default:
|
|
544
542
|
const parsedBody = parsedOutput.body;
|
|
545
543
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -550,9 +548,9 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
550
548
|
});
|
|
551
549
|
}
|
|
552
550
|
};
|
|
553
|
-
const
|
|
551
|
+
const de_AssociateResourceCommand = async (output, context) => {
|
|
554
552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
555
|
-
return
|
|
553
|
+
return de_AssociateResourceCommandError(output, context);
|
|
556
554
|
}
|
|
557
555
|
const contents = map({
|
|
558
556
|
$metadata: deserializeMetadata(output),
|
|
@@ -566,8 +564,8 @@ const deserializeAws_restJson1AssociateResourceCommand = async (output, context)
|
|
|
566
564
|
}
|
|
567
565
|
return contents;
|
|
568
566
|
};
|
|
569
|
-
exports.
|
|
570
|
-
const
|
|
567
|
+
exports.de_AssociateResourceCommand = de_AssociateResourceCommand;
|
|
568
|
+
const de_AssociateResourceCommandError = async (output, context) => {
|
|
571
569
|
const parsedOutput = {
|
|
572
570
|
...output,
|
|
573
571
|
body: await parseErrorBody(output.body, context),
|
|
@@ -576,22 +574,22 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
576
574
|
switch (errorCode) {
|
|
577
575
|
case "ConflictException":
|
|
578
576
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
579
|
-
throw await
|
|
577
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
580
578
|
case "InternalServerException":
|
|
581
579
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
582
|
-
throw await
|
|
580
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
583
581
|
case "ResourceNotFoundException":
|
|
584
582
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
585
|
-
throw await
|
|
583
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
586
584
|
case "ServiceQuotaExceededException":
|
|
587
585
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
588
|
-
throw await
|
|
586
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
589
587
|
case "ThrottlingException":
|
|
590
588
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
591
|
-
throw await
|
|
589
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
592
590
|
case "ValidationException":
|
|
593
591
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
594
|
-
throw await
|
|
592
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
595
593
|
default:
|
|
596
594
|
const parsedBody = parsedOutput.body;
|
|
597
595
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -602,21 +600,21 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
602
600
|
});
|
|
603
601
|
}
|
|
604
602
|
};
|
|
605
|
-
const
|
|
603
|
+
const de_CreateApplicationCommand = async (output, context) => {
|
|
606
604
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
607
|
-
return
|
|
605
|
+
return de_CreateApplicationCommandError(output, context);
|
|
608
606
|
}
|
|
609
607
|
const contents = map({
|
|
610
608
|
$metadata: deserializeMetadata(output),
|
|
611
609
|
});
|
|
612
610
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
613
611
|
if (data.application != null) {
|
|
614
|
-
contents.application =
|
|
612
|
+
contents.application = de_Application(data.application, context);
|
|
615
613
|
}
|
|
616
614
|
return contents;
|
|
617
615
|
};
|
|
618
|
-
exports.
|
|
619
|
-
const
|
|
616
|
+
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
617
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
620
618
|
const parsedOutput = {
|
|
621
619
|
...output,
|
|
622
620
|
body: await parseErrorBody(output.body, context),
|
|
@@ -625,19 +623,19 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
625
623
|
switch (errorCode) {
|
|
626
624
|
case "ConflictException":
|
|
627
625
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
628
|
-
throw await
|
|
626
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
629
627
|
case "InternalServerException":
|
|
630
628
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
631
|
-
throw await
|
|
629
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
632
630
|
case "ServiceQuotaExceededException":
|
|
633
631
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
634
|
-
throw await
|
|
632
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
635
633
|
case "ThrottlingException":
|
|
636
634
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
637
|
-
throw await
|
|
635
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
638
636
|
case "ValidationException":
|
|
639
637
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
640
|
-
throw await
|
|
638
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
639
|
default:
|
|
642
640
|
const parsedBody = parsedOutput.body;
|
|
643
641
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -648,21 +646,21 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
648
646
|
});
|
|
649
647
|
}
|
|
650
648
|
};
|
|
651
|
-
const
|
|
649
|
+
const de_CreateAttributeGroupCommand = async (output, context) => {
|
|
652
650
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
653
|
-
return
|
|
651
|
+
return de_CreateAttributeGroupCommandError(output, context);
|
|
654
652
|
}
|
|
655
653
|
const contents = map({
|
|
656
654
|
$metadata: deserializeMetadata(output),
|
|
657
655
|
});
|
|
658
656
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
659
657
|
if (data.attributeGroup != null) {
|
|
660
|
-
contents.attributeGroup =
|
|
658
|
+
contents.attributeGroup = de_AttributeGroup(data.attributeGroup, context);
|
|
661
659
|
}
|
|
662
660
|
return contents;
|
|
663
661
|
};
|
|
664
|
-
exports.
|
|
665
|
-
const
|
|
662
|
+
exports.de_CreateAttributeGroupCommand = de_CreateAttributeGroupCommand;
|
|
663
|
+
const de_CreateAttributeGroupCommandError = async (output, context) => {
|
|
666
664
|
const parsedOutput = {
|
|
667
665
|
...output,
|
|
668
666
|
body: await parseErrorBody(output.body, context),
|
|
@@ -671,16 +669,16 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
671
669
|
switch (errorCode) {
|
|
672
670
|
case "ConflictException":
|
|
673
671
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
674
|
-
throw await
|
|
672
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
675
673
|
case "InternalServerException":
|
|
676
674
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
677
|
-
throw await
|
|
675
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
678
676
|
case "ServiceQuotaExceededException":
|
|
679
677
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
680
|
-
throw await
|
|
678
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
681
679
|
case "ValidationException":
|
|
682
680
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
683
|
-
throw await
|
|
681
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
682
|
default:
|
|
685
683
|
const parsedBody = parsedOutput.body;
|
|
686
684
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -691,21 +689,21 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
691
689
|
});
|
|
692
690
|
}
|
|
693
691
|
};
|
|
694
|
-
const
|
|
692
|
+
const de_DeleteApplicationCommand = async (output, context) => {
|
|
695
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
-
return
|
|
694
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
697
695
|
}
|
|
698
696
|
const contents = map({
|
|
699
697
|
$metadata: deserializeMetadata(output),
|
|
700
698
|
});
|
|
701
699
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
702
700
|
if (data.application != null) {
|
|
703
|
-
contents.application =
|
|
701
|
+
contents.application = de_ApplicationSummary(data.application, context);
|
|
704
702
|
}
|
|
705
703
|
return contents;
|
|
706
704
|
};
|
|
707
|
-
exports.
|
|
708
|
-
const
|
|
705
|
+
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
706
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
709
707
|
const parsedOutput = {
|
|
710
708
|
...output,
|
|
711
709
|
body: await parseErrorBody(output.body, context),
|
|
@@ -714,13 +712,13 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
714
712
|
switch (errorCode) {
|
|
715
713
|
case "InternalServerException":
|
|
716
714
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
717
|
-
throw await
|
|
715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
718
716
|
case "ResourceNotFoundException":
|
|
719
717
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
720
|
-
throw await
|
|
718
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
719
|
case "ValidationException":
|
|
722
720
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
723
|
-
throw await
|
|
721
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
724
722
|
default:
|
|
725
723
|
const parsedBody = parsedOutput.body;
|
|
726
724
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -731,21 +729,21 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
731
729
|
});
|
|
732
730
|
}
|
|
733
731
|
};
|
|
734
|
-
const
|
|
732
|
+
const de_DeleteAttributeGroupCommand = async (output, context) => {
|
|
735
733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
734
|
+
return de_DeleteAttributeGroupCommandError(output, context);
|
|
737
735
|
}
|
|
738
736
|
const contents = map({
|
|
739
737
|
$metadata: deserializeMetadata(output),
|
|
740
738
|
});
|
|
741
739
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
742
740
|
if (data.attributeGroup != null) {
|
|
743
|
-
contents.attributeGroup =
|
|
741
|
+
contents.attributeGroup = de_AttributeGroupSummary(data.attributeGroup, context);
|
|
744
742
|
}
|
|
745
743
|
return contents;
|
|
746
744
|
};
|
|
747
|
-
exports.
|
|
748
|
-
const
|
|
745
|
+
exports.de_DeleteAttributeGroupCommand = de_DeleteAttributeGroupCommand;
|
|
746
|
+
const de_DeleteAttributeGroupCommandError = async (output, context) => {
|
|
749
747
|
const parsedOutput = {
|
|
750
748
|
...output,
|
|
751
749
|
body: await parseErrorBody(output.body, context),
|
|
@@ -754,13 +752,13 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
754
752
|
switch (errorCode) {
|
|
755
753
|
case "InternalServerException":
|
|
756
754
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
757
|
-
throw await
|
|
755
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
758
756
|
case "ResourceNotFoundException":
|
|
759
757
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
760
|
-
throw await
|
|
758
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
761
759
|
case "ValidationException":
|
|
762
760
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
763
|
-
throw await
|
|
761
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
764
762
|
default:
|
|
765
763
|
const parsedBody = parsedOutput.body;
|
|
766
764
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -771,9 +769,9 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
771
769
|
});
|
|
772
770
|
}
|
|
773
771
|
};
|
|
774
|
-
const
|
|
772
|
+
const de_DisassociateAttributeGroupCommand = async (output, context) => {
|
|
775
773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return
|
|
774
|
+
return de_DisassociateAttributeGroupCommandError(output, context);
|
|
777
775
|
}
|
|
778
776
|
const contents = map({
|
|
779
777
|
$metadata: deserializeMetadata(output),
|
|
@@ -787,8 +785,8 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommand = async (output,
|
|
|
787
785
|
}
|
|
788
786
|
return contents;
|
|
789
787
|
};
|
|
790
|
-
exports.
|
|
791
|
-
const
|
|
788
|
+
exports.de_DisassociateAttributeGroupCommand = de_DisassociateAttributeGroupCommand;
|
|
789
|
+
const de_DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
792
790
|
const parsedOutput = {
|
|
793
791
|
...output,
|
|
794
792
|
body: await parseErrorBody(output.body, context),
|
|
@@ -797,13 +795,13 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
797
795
|
switch (errorCode) {
|
|
798
796
|
case "InternalServerException":
|
|
799
797
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
800
|
-
throw await
|
|
798
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
801
799
|
case "ResourceNotFoundException":
|
|
802
800
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
803
|
-
throw await
|
|
801
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
804
802
|
case "ValidationException":
|
|
805
803
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
806
|
-
throw await
|
|
804
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
805
|
default:
|
|
808
806
|
const parsedBody = parsedOutput.body;
|
|
809
807
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -814,9 +812,9 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
814
812
|
});
|
|
815
813
|
}
|
|
816
814
|
};
|
|
817
|
-
const
|
|
815
|
+
const de_DisassociateResourceCommand = async (output, context) => {
|
|
818
816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
819
|
-
return
|
|
817
|
+
return de_DisassociateResourceCommandError(output, context);
|
|
820
818
|
}
|
|
821
819
|
const contents = map({
|
|
822
820
|
$metadata: deserializeMetadata(output),
|
|
@@ -830,8 +828,8 @@ const deserializeAws_restJson1DisassociateResourceCommand = async (output, conte
|
|
|
830
828
|
}
|
|
831
829
|
return contents;
|
|
832
830
|
};
|
|
833
|
-
exports.
|
|
834
|
-
const
|
|
831
|
+
exports.de_DisassociateResourceCommand = de_DisassociateResourceCommand;
|
|
832
|
+
const de_DisassociateResourceCommandError = async (output, context) => {
|
|
835
833
|
const parsedOutput = {
|
|
836
834
|
...output,
|
|
837
835
|
body: await parseErrorBody(output.body, context),
|
|
@@ -840,16 +838,16 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
840
838
|
switch (errorCode) {
|
|
841
839
|
case "InternalServerException":
|
|
842
840
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
843
|
-
throw await
|
|
841
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
844
842
|
case "ResourceNotFoundException":
|
|
845
843
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
846
|
-
throw await
|
|
844
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
847
845
|
case "ThrottlingException":
|
|
848
846
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
849
|
-
throw await
|
|
847
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
850
848
|
case "ValidationException":
|
|
851
849
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
852
|
-
throw await
|
|
850
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
853
851
|
default:
|
|
854
852
|
const parsedBody = parsedOutput.body;
|
|
855
853
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -860,9 +858,9 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
860
858
|
});
|
|
861
859
|
}
|
|
862
860
|
};
|
|
863
|
-
const
|
|
861
|
+
const de_GetApplicationCommand = async (output, context) => {
|
|
864
862
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
-
return
|
|
863
|
+
return de_GetApplicationCommandError(output, context);
|
|
866
864
|
}
|
|
867
865
|
const contents = map({
|
|
868
866
|
$metadata: deserializeMetadata(output),
|
|
@@ -884,7 +882,7 @@ const deserializeAws_restJson1GetApplicationCommand = async (output, context) =>
|
|
|
884
882
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
885
883
|
}
|
|
886
884
|
if (data.integrations != null) {
|
|
887
|
-
contents.integrations =
|
|
885
|
+
contents.integrations = de_Integrations(data.integrations, context);
|
|
888
886
|
}
|
|
889
887
|
if (data.lastUpdateTime != null) {
|
|
890
888
|
contents.lastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.lastUpdateTime));
|
|
@@ -893,12 +891,12 @@ const deserializeAws_restJson1GetApplicationCommand = async (output, context) =>
|
|
|
893
891
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
894
892
|
}
|
|
895
893
|
if (data.tags != null) {
|
|
896
|
-
contents.tags =
|
|
894
|
+
contents.tags = de_Tags(data.tags, context);
|
|
897
895
|
}
|
|
898
896
|
return contents;
|
|
899
897
|
};
|
|
900
|
-
exports.
|
|
901
|
-
const
|
|
898
|
+
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
899
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
902
900
|
const parsedOutput = {
|
|
903
901
|
...output,
|
|
904
902
|
body: await parseErrorBody(output.body, context),
|
|
@@ -907,16 +905,16 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
907
905
|
switch (errorCode) {
|
|
908
906
|
case "ConflictException":
|
|
909
907
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
910
|
-
throw await
|
|
908
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
911
909
|
case "InternalServerException":
|
|
912
910
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
913
|
-
throw await
|
|
911
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
914
912
|
case "ResourceNotFoundException":
|
|
915
913
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
916
|
-
throw await
|
|
914
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
915
|
case "ValidationException":
|
|
918
916
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
919
|
-
throw await
|
|
917
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
920
918
|
default:
|
|
921
919
|
const parsedBody = parsedOutput.body;
|
|
922
920
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -927,21 +925,21 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
927
925
|
});
|
|
928
926
|
}
|
|
929
927
|
};
|
|
930
|
-
const
|
|
928
|
+
const de_GetAssociatedResourceCommand = async (output, context) => {
|
|
931
929
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
|
-
return
|
|
930
|
+
return de_GetAssociatedResourceCommandError(output, context);
|
|
933
931
|
}
|
|
934
932
|
const contents = map({
|
|
935
933
|
$metadata: deserializeMetadata(output),
|
|
936
934
|
});
|
|
937
935
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
938
936
|
if (data.resource != null) {
|
|
939
|
-
contents.resource =
|
|
937
|
+
contents.resource = de_Resource(data.resource, context);
|
|
940
938
|
}
|
|
941
939
|
return contents;
|
|
942
940
|
};
|
|
943
|
-
exports.
|
|
944
|
-
const
|
|
941
|
+
exports.de_GetAssociatedResourceCommand = de_GetAssociatedResourceCommand;
|
|
942
|
+
const de_GetAssociatedResourceCommandError = async (output, context) => {
|
|
945
943
|
const parsedOutput = {
|
|
946
944
|
...output,
|
|
947
945
|
body: await parseErrorBody(output.body, context),
|
|
@@ -950,13 +948,13 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
950
948
|
switch (errorCode) {
|
|
951
949
|
case "InternalServerException":
|
|
952
950
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
953
|
-
throw await
|
|
951
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
954
952
|
case "ResourceNotFoundException":
|
|
955
953
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
956
|
-
throw await
|
|
954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
957
955
|
case "ValidationException":
|
|
958
956
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
959
|
-
throw await
|
|
957
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
960
958
|
default:
|
|
961
959
|
const parsedBody = parsedOutput.body;
|
|
962
960
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -967,9 +965,9 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
967
965
|
});
|
|
968
966
|
}
|
|
969
967
|
};
|
|
970
|
-
const
|
|
968
|
+
const de_GetAttributeGroupCommand = async (output, context) => {
|
|
971
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
972
|
-
return
|
|
970
|
+
return de_GetAttributeGroupCommandError(output, context);
|
|
973
971
|
}
|
|
974
972
|
const contents = map({
|
|
975
973
|
$metadata: deserializeMetadata(output),
|
|
@@ -1000,12 +998,12 @@ const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context)
|
|
|
1000
998
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1001
999
|
}
|
|
1002
1000
|
if (data.tags != null) {
|
|
1003
|
-
contents.tags =
|
|
1001
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1004
1002
|
}
|
|
1005
1003
|
return contents;
|
|
1006
1004
|
};
|
|
1007
|
-
exports.
|
|
1008
|
-
const
|
|
1005
|
+
exports.de_GetAttributeGroupCommand = de_GetAttributeGroupCommand;
|
|
1006
|
+
const de_GetAttributeGroupCommandError = async (output, context) => {
|
|
1009
1007
|
const parsedOutput = {
|
|
1010
1008
|
...output,
|
|
1011
1009
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1014,16 +1012,16 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1014
1012
|
switch (errorCode) {
|
|
1015
1013
|
case "ConflictException":
|
|
1016
1014
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1017
|
-
throw await
|
|
1015
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1018
1016
|
case "InternalServerException":
|
|
1019
1017
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1020
|
-
throw await
|
|
1018
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1021
1019
|
case "ResourceNotFoundException":
|
|
1022
1020
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1023
|
-
throw await
|
|
1021
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1024
1022
|
case "ValidationException":
|
|
1025
1023
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1026
|
-
throw await
|
|
1024
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1027
1025
|
default:
|
|
1028
1026
|
const parsedBody = parsedOutput.body;
|
|
1029
1027
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1034,21 +1032,21 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1034
1032
|
});
|
|
1035
1033
|
}
|
|
1036
1034
|
};
|
|
1037
|
-
const
|
|
1035
|
+
const de_GetConfigurationCommand = async (output, context) => {
|
|
1038
1036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
1037
|
+
return de_GetConfigurationCommandError(output, context);
|
|
1040
1038
|
}
|
|
1041
1039
|
const contents = map({
|
|
1042
1040
|
$metadata: deserializeMetadata(output),
|
|
1043
1041
|
});
|
|
1044
1042
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
1043
|
if (data.configuration != null) {
|
|
1046
|
-
contents.configuration =
|
|
1044
|
+
contents.configuration = de_AppRegistryConfiguration(data.configuration, context);
|
|
1047
1045
|
}
|
|
1048
1046
|
return contents;
|
|
1049
1047
|
};
|
|
1050
|
-
exports.
|
|
1051
|
-
const
|
|
1048
|
+
exports.de_GetConfigurationCommand = de_GetConfigurationCommand;
|
|
1049
|
+
const de_GetConfigurationCommandError = async (output, context) => {
|
|
1052
1050
|
const parsedOutput = {
|
|
1053
1051
|
...output,
|
|
1054
1052
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1057,7 +1055,7 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1057
1055
|
switch (errorCode) {
|
|
1058
1056
|
case "InternalServerException":
|
|
1059
1057
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1060
|
-
throw await
|
|
1058
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1061
1059
|
default:
|
|
1062
1060
|
const parsedBody = parsedOutput.body;
|
|
1063
1061
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1068,24 +1066,24 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1068
1066
|
});
|
|
1069
1067
|
}
|
|
1070
1068
|
};
|
|
1071
|
-
const
|
|
1069
|
+
const de_ListApplicationsCommand = async (output, context) => {
|
|
1072
1070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return
|
|
1071
|
+
return de_ListApplicationsCommandError(output, context);
|
|
1074
1072
|
}
|
|
1075
1073
|
const contents = map({
|
|
1076
1074
|
$metadata: deserializeMetadata(output),
|
|
1077
1075
|
});
|
|
1078
1076
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1079
1077
|
if (data.applications != null) {
|
|
1080
|
-
contents.applications =
|
|
1078
|
+
contents.applications = de_ApplicationSummaries(data.applications, context);
|
|
1081
1079
|
}
|
|
1082
1080
|
if (data.nextToken != null) {
|
|
1083
1081
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1084
1082
|
}
|
|
1085
1083
|
return contents;
|
|
1086
1084
|
};
|
|
1087
|
-
exports.
|
|
1088
|
-
const
|
|
1085
|
+
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
1086
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1089
1087
|
const parsedOutput = {
|
|
1090
1088
|
...output,
|
|
1091
1089
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1094,10 +1092,10 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1094
1092
|
switch (errorCode) {
|
|
1095
1093
|
case "InternalServerException":
|
|
1096
1094
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1097
|
-
throw await
|
|
1095
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1098
1096
|
case "ValidationException":
|
|
1099
1097
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1100
|
-
throw await
|
|
1098
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1101
1099
|
default:
|
|
1102
1100
|
const parsedBody = parsedOutput.body;
|
|
1103
1101
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1108,24 +1106,24 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1108
1106
|
});
|
|
1109
1107
|
}
|
|
1110
1108
|
};
|
|
1111
|
-
const
|
|
1109
|
+
const de_ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
1112
1110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1113
|
-
return
|
|
1111
|
+
return de_ListAssociatedAttributeGroupsCommandError(output, context);
|
|
1114
1112
|
}
|
|
1115
1113
|
const contents = map({
|
|
1116
1114
|
$metadata: deserializeMetadata(output),
|
|
1117
1115
|
});
|
|
1118
1116
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1119
1117
|
if (data.attributeGroups != null) {
|
|
1120
|
-
contents.attributeGroups =
|
|
1118
|
+
contents.attributeGroups = de_AttributeGroupIds(data.attributeGroups, context);
|
|
1121
1119
|
}
|
|
1122
1120
|
if (data.nextToken != null) {
|
|
1123
1121
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1124
1122
|
}
|
|
1125
1123
|
return contents;
|
|
1126
1124
|
};
|
|
1127
|
-
exports.
|
|
1128
|
-
const
|
|
1125
|
+
exports.de_ListAssociatedAttributeGroupsCommand = de_ListAssociatedAttributeGroupsCommand;
|
|
1126
|
+
const de_ListAssociatedAttributeGroupsCommandError = async (output, context) => {
|
|
1129
1127
|
const parsedOutput = {
|
|
1130
1128
|
...output,
|
|
1131
1129
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1134,13 +1132,13 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1134
1132
|
switch (errorCode) {
|
|
1135
1133
|
case "InternalServerException":
|
|
1136
1134
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1137
|
-
throw await
|
|
1135
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1138
1136
|
case "ResourceNotFoundException":
|
|
1139
1137
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1140
|
-
throw await
|
|
1138
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1141
1139
|
case "ValidationException":
|
|
1142
1140
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1143
|
-
throw await
|
|
1141
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1144
1142
|
default:
|
|
1145
1143
|
const parsedBody = parsedOutput.body;
|
|
1146
1144
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1151,9 +1149,9 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1151
1149
|
});
|
|
1152
1150
|
}
|
|
1153
1151
|
};
|
|
1154
|
-
const
|
|
1152
|
+
const de_ListAssociatedResourcesCommand = async (output, context) => {
|
|
1155
1153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1156
|
-
return
|
|
1154
|
+
return de_ListAssociatedResourcesCommandError(output, context);
|
|
1157
1155
|
}
|
|
1158
1156
|
const contents = map({
|
|
1159
1157
|
$metadata: deserializeMetadata(output),
|
|
@@ -1163,12 +1161,12 @@ const deserializeAws_restJson1ListAssociatedResourcesCommand = async (output, co
|
|
|
1163
1161
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1164
1162
|
}
|
|
1165
1163
|
if (data.resources != null) {
|
|
1166
|
-
contents.resources =
|
|
1164
|
+
contents.resources = de_Resources(data.resources, context);
|
|
1167
1165
|
}
|
|
1168
1166
|
return contents;
|
|
1169
1167
|
};
|
|
1170
|
-
exports.
|
|
1171
|
-
const
|
|
1168
|
+
exports.de_ListAssociatedResourcesCommand = de_ListAssociatedResourcesCommand;
|
|
1169
|
+
const de_ListAssociatedResourcesCommandError = async (output, context) => {
|
|
1172
1170
|
const parsedOutput = {
|
|
1173
1171
|
...output,
|
|
1174
1172
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1177,13 +1175,13 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1177
1175
|
switch (errorCode) {
|
|
1178
1176
|
case "InternalServerException":
|
|
1179
1177
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1180
|
-
throw await
|
|
1178
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1181
1179
|
case "ResourceNotFoundException":
|
|
1182
1180
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1183
|
-
throw await
|
|
1181
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1184
1182
|
case "ValidationException":
|
|
1185
1183
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1186
|
-
throw await
|
|
1184
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1187
1185
|
default:
|
|
1188
1186
|
const parsedBody = parsedOutput.body;
|
|
1189
1187
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1194,24 +1192,24 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1194
1192
|
});
|
|
1195
1193
|
}
|
|
1196
1194
|
};
|
|
1197
|
-
const
|
|
1195
|
+
const de_ListAttributeGroupsCommand = async (output, context) => {
|
|
1198
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1199
|
-
return
|
|
1197
|
+
return de_ListAttributeGroupsCommandError(output, context);
|
|
1200
1198
|
}
|
|
1201
1199
|
const contents = map({
|
|
1202
1200
|
$metadata: deserializeMetadata(output),
|
|
1203
1201
|
});
|
|
1204
1202
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1205
1203
|
if (data.attributeGroups != null) {
|
|
1206
|
-
contents.attributeGroups =
|
|
1204
|
+
contents.attributeGroups = de_AttributeGroupSummaries(data.attributeGroups, context);
|
|
1207
1205
|
}
|
|
1208
1206
|
if (data.nextToken != null) {
|
|
1209
1207
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1210
1208
|
}
|
|
1211
1209
|
return contents;
|
|
1212
1210
|
};
|
|
1213
|
-
exports.
|
|
1214
|
-
const
|
|
1211
|
+
exports.de_ListAttributeGroupsCommand = de_ListAttributeGroupsCommand;
|
|
1212
|
+
const de_ListAttributeGroupsCommandError = async (output, context) => {
|
|
1215
1213
|
const parsedOutput = {
|
|
1216
1214
|
...output,
|
|
1217
1215
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1220,10 +1218,10 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1220
1218
|
switch (errorCode) {
|
|
1221
1219
|
case "InternalServerException":
|
|
1222
1220
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1223
|
-
throw await
|
|
1221
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1224
1222
|
case "ValidationException":
|
|
1225
1223
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1226
|
-
throw await
|
|
1224
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1227
1225
|
default:
|
|
1228
1226
|
const parsedBody = parsedOutput.body;
|
|
1229
1227
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1234,24 +1232,24 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1234
1232
|
});
|
|
1235
1233
|
}
|
|
1236
1234
|
};
|
|
1237
|
-
const
|
|
1235
|
+
const de_ListAttributeGroupsForApplicationCommand = async (output, context) => {
|
|
1238
1236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
|
-
return
|
|
1237
|
+
return de_ListAttributeGroupsForApplicationCommandError(output, context);
|
|
1240
1238
|
}
|
|
1241
1239
|
const contents = map({
|
|
1242
1240
|
$metadata: deserializeMetadata(output),
|
|
1243
1241
|
});
|
|
1244
1242
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1245
1243
|
if (data.attributeGroupsDetails != null) {
|
|
1246
|
-
contents.attributeGroupsDetails =
|
|
1244
|
+
contents.attributeGroupsDetails = de_AttributeGroupDetailsList(data.attributeGroupsDetails, context);
|
|
1247
1245
|
}
|
|
1248
1246
|
if (data.nextToken != null) {
|
|
1249
1247
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1250
1248
|
}
|
|
1251
1249
|
return contents;
|
|
1252
1250
|
};
|
|
1253
|
-
exports.
|
|
1254
|
-
const
|
|
1251
|
+
exports.de_ListAttributeGroupsForApplicationCommand = de_ListAttributeGroupsForApplicationCommand;
|
|
1252
|
+
const de_ListAttributeGroupsForApplicationCommandError = async (output, context) => {
|
|
1255
1253
|
const parsedOutput = {
|
|
1256
1254
|
...output,
|
|
1257
1255
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1260,13 +1258,13 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1260
1258
|
switch (errorCode) {
|
|
1261
1259
|
case "InternalServerException":
|
|
1262
1260
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1263
|
-
throw await
|
|
1261
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1264
1262
|
case "ResourceNotFoundException":
|
|
1265
1263
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1266
|
-
throw await
|
|
1264
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1267
1265
|
case "ValidationException":
|
|
1268
1266
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1269
|
-
throw await
|
|
1267
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
1268
|
default:
|
|
1271
1269
|
const parsedBody = parsedOutput.body;
|
|
1272
1270
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1277,21 +1275,21 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1277
1275
|
});
|
|
1278
1276
|
}
|
|
1279
1277
|
};
|
|
1280
|
-
const
|
|
1278
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1281
1279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return
|
|
1280
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1283
1281
|
}
|
|
1284
1282
|
const contents = map({
|
|
1285
1283
|
$metadata: deserializeMetadata(output),
|
|
1286
1284
|
});
|
|
1287
1285
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1288
1286
|
if (data.tags != null) {
|
|
1289
|
-
contents.tags =
|
|
1287
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1290
1288
|
}
|
|
1291
1289
|
return contents;
|
|
1292
1290
|
};
|
|
1293
|
-
exports.
|
|
1294
|
-
const
|
|
1291
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1292
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1295
1293
|
const parsedOutput = {
|
|
1296
1294
|
...output,
|
|
1297
1295
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1300,13 +1298,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1300
1298
|
switch (errorCode) {
|
|
1301
1299
|
case "InternalServerException":
|
|
1302
1300
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1303
|
-
throw await
|
|
1301
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1304
1302
|
case "ResourceNotFoundException":
|
|
1305
1303
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1306
|
-
throw await
|
|
1304
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1307
1305
|
case "ValidationException":
|
|
1308
1306
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1309
|
-
throw await
|
|
1307
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1310
1308
|
default:
|
|
1311
1309
|
const parsedBody = parsedOutput.body;
|
|
1312
1310
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1317,9 +1315,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1317
1315
|
});
|
|
1318
1316
|
}
|
|
1319
1317
|
};
|
|
1320
|
-
const
|
|
1318
|
+
const de_PutConfigurationCommand = async (output, context) => {
|
|
1321
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1322
|
-
return
|
|
1320
|
+
return de_PutConfigurationCommandError(output, context);
|
|
1323
1321
|
}
|
|
1324
1322
|
const contents = map({
|
|
1325
1323
|
$metadata: deserializeMetadata(output),
|
|
@@ -1327,8 +1325,8 @@ const deserializeAws_restJson1PutConfigurationCommand = async (output, context)
|
|
|
1327
1325
|
await collectBody(output.body, context);
|
|
1328
1326
|
return contents;
|
|
1329
1327
|
};
|
|
1330
|
-
exports.
|
|
1331
|
-
const
|
|
1328
|
+
exports.de_PutConfigurationCommand = de_PutConfigurationCommand;
|
|
1329
|
+
const de_PutConfigurationCommandError = async (output, context) => {
|
|
1332
1330
|
const parsedOutput = {
|
|
1333
1331
|
...output,
|
|
1334
1332
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1337,13 +1335,13 @@ const deserializeAws_restJson1PutConfigurationCommandError = async (output, cont
|
|
|
1337
1335
|
switch (errorCode) {
|
|
1338
1336
|
case "ConflictException":
|
|
1339
1337
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1340
|
-
throw await
|
|
1338
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1341
1339
|
case "InternalServerException":
|
|
1342
1340
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1343
|
-
throw await
|
|
1341
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1344
1342
|
case "ValidationException":
|
|
1345
1343
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1346
|
-
throw await
|
|
1344
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1347
1345
|
default:
|
|
1348
1346
|
const parsedBody = parsedOutput.body;
|
|
1349
1347
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1354,9 +1352,9 @@ const deserializeAws_restJson1PutConfigurationCommandError = async (output, cont
|
|
|
1354
1352
|
});
|
|
1355
1353
|
}
|
|
1356
1354
|
};
|
|
1357
|
-
const
|
|
1355
|
+
const de_SyncResourceCommand = async (output, context) => {
|
|
1358
1356
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
1357
|
+
return de_SyncResourceCommandError(output, context);
|
|
1360
1358
|
}
|
|
1361
1359
|
const contents = map({
|
|
1362
1360
|
$metadata: deserializeMetadata(output),
|
|
@@ -1373,8 +1371,8 @@ const deserializeAws_restJson1SyncResourceCommand = async (output, context) => {
|
|
|
1373
1371
|
}
|
|
1374
1372
|
return contents;
|
|
1375
1373
|
};
|
|
1376
|
-
exports.
|
|
1377
|
-
const
|
|
1374
|
+
exports.de_SyncResourceCommand = de_SyncResourceCommand;
|
|
1375
|
+
const de_SyncResourceCommandError = async (output, context) => {
|
|
1378
1376
|
const parsedOutput = {
|
|
1379
1377
|
...output,
|
|
1380
1378
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1383,19 +1381,19 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1383
1381
|
switch (errorCode) {
|
|
1384
1382
|
case "ConflictException":
|
|
1385
1383
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1386
|
-
throw await
|
|
1384
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1387
1385
|
case "InternalServerException":
|
|
1388
1386
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1389
|
-
throw await
|
|
1387
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1390
1388
|
case "ResourceNotFoundException":
|
|
1391
1389
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1392
|
-
throw await
|
|
1390
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
1391
|
case "ThrottlingException":
|
|
1394
1392
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1395
|
-
throw await
|
|
1393
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1396
1394
|
case "ValidationException":
|
|
1397
1395
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1398
|
-
throw await
|
|
1396
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1399
1397
|
default:
|
|
1400
1398
|
const parsedBody = parsedOutput.body;
|
|
1401
1399
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1406,9 +1404,9 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1406
1404
|
});
|
|
1407
1405
|
}
|
|
1408
1406
|
};
|
|
1409
|
-
const
|
|
1407
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1410
1408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
|
-
return
|
|
1409
|
+
return de_TagResourceCommandError(output, context);
|
|
1412
1410
|
}
|
|
1413
1411
|
const contents = map({
|
|
1414
1412
|
$metadata: deserializeMetadata(output),
|
|
@@ -1416,8 +1414,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1416
1414
|
await collectBody(output.body, context);
|
|
1417
1415
|
return contents;
|
|
1418
1416
|
};
|
|
1419
|
-
exports.
|
|
1420
|
-
const
|
|
1417
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1418
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1421
1419
|
const parsedOutput = {
|
|
1422
1420
|
...output,
|
|
1423
1421
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1426,13 +1424,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1426
1424
|
switch (errorCode) {
|
|
1427
1425
|
case "InternalServerException":
|
|
1428
1426
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1429
|
-
throw await
|
|
1427
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1430
1428
|
case "ResourceNotFoundException":
|
|
1431
1429
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1432
|
-
throw await
|
|
1430
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1433
1431
|
case "ValidationException":
|
|
1434
1432
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1435
|
-
throw await
|
|
1433
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1436
1434
|
default:
|
|
1437
1435
|
const parsedBody = parsedOutput.body;
|
|
1438
1436
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1443,9 +1441,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1443
1441
|
});
|
|
1444
1442
|
}
|
|
1445
1443
|
};
|
|
1446
|
-
const
|
|
1444
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1447
1445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
1446
|
+
return de_UntagResourceCommandError(output, context);
|
|
1449
1447
|
}
|
|
1450
1448
|
const contents = map({
|
|
1451
1449
|
$metadata: deserializeMetadata(output),
|
|
@@ -1453,8 +1451,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1453
1451
|
await collectBody(output.body, context);
|
|
1454
1452
|
return contents;
|
|
1455
1453
|
};
|
|
1456
|
-
exports.
|
|
1457
|
-
const
|
|
1454
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1455
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1458
1456
|
const parsedOutput = {
|
|
1459
1457
|
...output,
|
|
1460
1458
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1463,13 +1461,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1463
1461
|
switch (errorCode) {
|
|
1464
1462
|
case "InternalServerException":
|
|
1465
1463
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1466
|
-
throw await
|
|
1464
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1467
1465
|
case "ResourceNotFoundException":
|
|
1468
1466
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1469
|
-
throw await
|
|
1467
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1470
1468
|
case "ValidationException":
|
|
1471
1469
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1472
|
-
throw await
|
|
1470
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1473
1471
|
default:
|
|
1474
1472
|
const parsedBody = parsedOutput.body;
|
|
1475
1473
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1480,21 +1478,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1480
1478
|
});
|
|
1481
1479
|
}
|
|
1482
1480
|
};
|
|
1483
|
-
const
|
|
1481
|
+
const de_UpdateApplicationCommand = async (output, context) => {
|
|
1484
1482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
1483
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
1486
1484
|
}
|
|
1487
1485
|
const contents = map({
|
|
1488
1486
|
$metadata: deserializeMetadata(output),
|
|
1489
1487
|
});
|
|
1490
1488
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1491
1489
|
if (data.application != null) {
|
|
1492
|
-
contents.application =
|
|
1490
|
+
contents.application = de_Application(data.application, context);
|
|
1493
1491
|
}
|
|
1494
1492
|
return contents;
|
|
1495
1493
|
};
|
|
1496
|
-
exports.
|
|
1497
|
-
const
|
|
1494
|
+
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
1495
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1498
1496
|
const parsedOutput = {
|
|
1499
1497
|
...output,
|
|
1500
1498
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1503,19 +1501,19 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1503
1501
|
switch (errorCode) {
|
|
1504
1502
|
case "ConflictException":
|
|
1505
1503
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1506
|
-
throw await
|
|
1504
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1507
1505
|
case "InternalServerException":
|
|
1508
1506
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1509
|
-
throw await
|
|
1507
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1510
1508
|
case "ResourceNotFoundException":
|
|
1511
1509
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1512
|
-
throw await
|
|
1510
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1513
1511
|
case "ThrottlingException":
|
|
1514
1512
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1515
|
-
throw await
|
|
1513
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1516
1514
|
case "ValidationException":
|
|
1517
1515
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1518
|
-
throw await
|
|
1516
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1519
1517
|
default:
|
|
1520
1518
|
const parsedBody = parsedOutput.body;
|
|
1521
1519
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1526,21 +1524,21 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1526
1524
|
});
|
|
1527
1525
|
}
|
|
1528
1526
|
};
|
|
1529
|
-
const
|
|
1527
|
+
const de_UpdateAttributeGroupCommand = async (output, context) => {
|
|
1530
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1531
|
-
return
|
|
1529
|
+
return de_UpdateAttributeGroupCommandError(output, context);
|
|
1532
1530
|
}
|
|
1533
1531
|
const contents = map({
|
|
1534
1532
|
$metadata: deserializeMetadata(output),
|
|
1535
1533
|
});
|
|
1536
1534
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1537
1535
|
if (data.attributeGroup != null) {
|
|
1538
|
-
contents.attributeGroup =
|
|
1536
|
+
contents.attributeGroup = de_AttributeGroup(data.attributeGroup, context);
|
|
1539
1537
|
}
|
|
1540
1538
|
return contents;
|
|
1541
1539
|
};
|
|
1542
|
-
exports.
|
|
1543
|
-
const
|
|
1540
|
+
exports.de_UpdateAttributeGroupCommand = de_UpdateAttributeGroupCommand;
|
|
1541
|
+
const de_UpdateAttributeGroupCommandError = async (output, context) => {
|
|
1544
1542
|
const parsedOutput = {
|
|
1545
1543
|
...output,
|
|
1546
1544
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1549,16 +1547,16 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1549
1547
|
switch (errorCode) {
|
|
1550
1548
|
case "ConflictException":
|
|
1551
1549
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1552
|
-
throw await
|
|
1550
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1553
1551
|
case "InternalServerException":
|
|
1554
1552
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1555
|
-
throw await
|
|
1553
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1556
1554
|
case "ResourceNotFoundException":
|
|
1557
1555
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1558
|
-
throw await
|
|
1556
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1559
1557
|
case "ValidationException":
|
|
1560
1558
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1561
|
-
throw await
|
|
1559
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1562
1560
|
default:
|
|
1563
1561
|
const parsedBody = parsedOutput.body;
|
|
1564
1562
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1570,7 +1568,7 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1570
1568
|
}
|
|
1571
1569
|
};
|
|
1572
1570
|
const map = smithy_client_1.map;
|
|
1573
|
-
const
|
|
1571
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1574
1572
|
const contents = map({});
|
|
1575
1573
|
const data = parsedOutput.body;
|
|
1576
1574
|
if (data.message != null) {
|
|
@@ -1582,7 +1580,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1582
1580
|
});
|
|
1583
1581
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1584
1582
|
};
|
|
1585
|
-
const
|
|
1583
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1586
1584
|
const contents = map({});
|
|
1587
1585
|
const data = parsedOutput.body;
|
|
1588
1586
|
if (data.message != null) {
|
|
@@ -1594,7 +1592,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1594
1592
|
});
|
|
1595
1593
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1596
1594
|
};
|
|
1597
|
-
const
|
|
1595
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1598
1596
|
const contents = map({});
|
|
1599
1597
|
const data = parsedOutput.body;
|
|
1600
1598
|
if (data.message != null) {
|
|
@@ -1606,7 +1604,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1606
1604
|
});
|
|
1607
1605
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1608
1606
|
};
|
|
1609
|
-
const
|
|
1607
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1610
1608
|
const contents = map({});
|
|
1611
1609
|
const data = parsedOutput.body;
|
|
1612
1610
|
if (data.message != null) {
|
|
@@ -1618,7 +1616,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1618
1616
|
});
|
|
1619
1617
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1620
1618
|
};
|
|
1621
|
-
const
|
|
1619
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1622
1620
|
const contents = map({});
|
|
1623
1621
|
const data = parsedOutput.body;
|
|
1624
1622
|
if (data.message != null) {
|
|
@@ -1633,7 +1631,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1633
1631
|
});
|
|
1634
1632
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1635
1633
|
};
|
|
1636
|
-
const
|
|
1634
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1637
1635
|
const contents = map({});
|
|
1638
1636
|
const data = parsedOutput.body;
|
|
1639
1637
|
if (data.message != null) {
|
|
@@ -1645,19 +1643,19 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1645
1643
|
});
|
|
1646
1644
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1647
1645
|
};
|
|
1648
|
-
const
|
|
1646
|
+
const se_AppRegistryConfiguration = (input, context) => {
|
|
1649
1647
|
return {
|
|
1650
1648
|
...(input.tagQueryConfiguration != null && {
|
|
1651
|
-
tagQueryConfiguration:
|
|
1649
|
+
tagQueryConfiguration: se_TagQueryConfiguration(input.tagQueryConfiguration, context),
|
|
1652
1650
|
}),
|
|
1653
1651
|
};
|
|
1654
1652
|
};
|
|
1655
|
-
const
|
|
1653
|
+
const se_TagQueryConfiguration = (input, context) => {
|
|
1656
1654
|
return {
|
|
1657
1655
|
...(input.tagKey != null && { tagKey: input.tagKey }),
|
|
1658
1656
|
};
|
|
1659
1657
|
};
|
|
1660
|
-
const
|
|
1658
|
+
const se_Tags = (input, context) => {
|
|
1661
1659
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1662
1660
|
if (value === null) {
|
|
1663
1661
|
return acc;
|
|
@@ -1666,7 +1664,7 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1666
1664
|
return acc;
|
|
1667
1665
|
}, {});
|
|
1668
1666
|
};
|
|
1669
|
-
const
|
|
1667
|
+
const de_Application = (output, context) => {
|
|
1670
1668
|
return {
|
|
1671
1669
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1672
1670
|
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
|
|
@@ -1676,21 +1674,21 @@ const deserializeAws_restJson1Application = (output, context) => {
|
|
|
1676
1674
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastUpdateTime))
|
|
1677
1675
|
: undefined,
|
|
1678
1676
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1679
|
-
tags: output.tags != null ?
|
|
1677
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1680
1678
|
};
|
|
1681
1679
|
};
|
|
1682
|
-
const
|
|
1680
|
+
const de_ApplicationSummaries = (output, context) => {
|
|
1683
1681
|
const retVal = (output || [])
|
|
1684
1682
|
.filter((e) => e != null)
|
|
1685
1683
|
.map((entry) => {
|
|
1686
1684
|
if (entry === null) {
|
|
1687
1685
|
return null;
|
|
1688
1686
|
}
|
|
1689
|
-
return
|
|
1687
|
+
return de_ApplicationSummary(entry, context);
|
|
1690
1688
|
});
|
|
1691
1689
|
return retVal;
|
|
1692
1690
|
};
|
|
1693
|
-
const
|
|
1691
|
+
const de_ApplicationSummary = (output, context) => {
|
|
1694
1692
|
return {
|
|
1695
1693
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1696
1694
|
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
|
|
@@ -1702,14 +1700,14 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1702
1700
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1703
1701
|
};
|
|
1704
1702
|
};
|
|
1705
|
-
const
|
|
1703
|
+
const de_AppRegistryConfiguration = (output, context) => {
|
|
1706
1704
|
return {
|
|
1707
1705
|
tagQueryConfiguration: output.tagQueryConfiguration != null
|
|
1708
|
-
?
|
|
1706
|
+
? de_TagQueryConfiguration(output.tagQueryConfiguration, context)
|
|
1709
1707
|
: undefined,
|
|
1710
1708
|
};
|
|
1711
1709
|
};
|
|
1712
|
-
const
|
|
1710
|
+
const de_AttributeGroup = (output, context) => {
|
|
1713
1711
|
return {
|
|
1714
1712
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1715
1713
|
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
|
|
@@ -1719,10 +1717,10 @@ const deserializeAws_restJson1AttributeGroup = (output, context) => {
|
|
|
1719
1717
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastUpdateTime))
|
|
1720
1718
|
: undefined,
|
|
1721
1719
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1722
|
-
tags: output.tags != null ?
|
|
1720
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1723
1721
|
};
|
|
1724
1722
|
};
|
|
1725
|
-
const
|
|
1723
|
+
const de_AttributeGroupDetails = (output, context) => {
|
|
1726
1724
|
return {
|
|
1727
1725
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1728
1726
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
@@ -1730,18 +1728,18 @@ const deserializeAws_restJson1AttributeGroupDetails = (output, context) => {
|
|
|
1730
1728
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1731
1729
|
};
|
|
1732
1730
|
};
|
|
1733
|
-
const
|
|
1731
|
+
const de_AttributeGroupDetailsList = (output, context) => {
|
|
1734
1732
|
const retVal = (output || [])
|
|
1735
1733
|
.filter((e) => e != null)
|
|
1736
1734
|
.map((entry) => {
|
|
1737
1735
|
if (entry === null) {
|
|
1738
1736
|
return null;
|
|
1739
1737
|
}
|
|
1740
|
-
return
|
|
1738
|
+
return de_AttributeGroupDetails(entry, context);
|
|
1741
1739
|
});
|
|
1742
1740
|
return retVal;
|
|
1743
1741
|
};
|
|
1744
|
-
const
|
|
1742
|
+
const de_AttributeGroupIds = (output, context) => {
|
|
1745
1743
|
const retVal = (output || [])
|
|
1746
1744
|
.filter((e) => e != null)
|
|
1747
1745
|
.map((entry) => {
|
|
@@ -1752,18 +1750,18 @@ const deserializeAws_restJson1AttributeGroupIds = (output, context) => {
|
|
|
1752
1750
|
});
|
|
1753
1751
|
return retVal;
|
|
1754
1752
|
};
|
|
1755
|
-
const
|
|
1753
|
+
const de_AttributeGroupSummaries = (output, context) => {
|
|
1756
1754
|
const retVal = (output || [])
|
|
1757
1755
|
.filter((e) => e != null)
|
|
1758
1756
|
.map((entry) => {
|
|
1759
1757
|
if (entry === null) {
|
|
1760
1758
|
return null;
|
|
1761
1759
|
}
|
|
1762
|
-
return
|
|
1760
|
+
return de_AttributeGroupSummary(entry, context);
|
|
1763
1761
|
});
|
|
1764
1762
|
return retVal;
|
|
1765
1763
|
};
|
|
1766
|
-
const
|
|
1764
|
+
const de_AttributeGroupSummary = (output, context) => {
|
|
1767
1765
|
return {
|
|
1768
1766
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1769
1767
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
@@ -1776,67 +1774,63 @@ const deserializeAws_restJson1AttributeGroupSummary = (output, context) => {
|
|
|
1776
1774
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1777
1775
|
};
|
|
1778
1776
|
};
|
|
1779
|
-
const
|
|
1777
|
+
const de_Integrations = (output, context) => {
|
|
1780
1778
|
return {
|
|
1781
|
-
resourceGroup: output.resourceGroup != null ?
|
|
1779
|
+
resourceGroup: output.resourceGroup != null ? de_ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1782
1780
|
};
|
|
1783
1781
|
};
|
|
1784
|
-
const
|
|
1782
|
+
const de_Resource = (output, context) => {
|
|
1785
1783
|
return {
|
|
1786
1784
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1787
1785
|
associationTime: output.associationTime != null
|
|
1788
1786
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.associationTime))
|
|
1789
1787
|
: undefined,
|
|
1790
|
-
integrations: output.integrations != null
|
|
1791
|
-
? deserializeAws_restJson1ResourceIntegrations(output.integrations, context)
|
|
1792
|
-
: undefined,
|
|
1788
|
+
integrations: output.integrations != null ? de_ResourceIntegrations(output.integrations, context) : undefined,
|
|
1793
1789
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1794
1790
|
};
|
|
1795
1791
|
};
|
|
1796
|
-
const
|
|
1792
|
+
const de_ResourceDetails = (output, context) => {
|
|
1797
1793
|
return {
|
|
1798
1794
|
tagValue: (0, smithy_client_1.expectString)(output.tagValue),
|
|
1799
1795
|
};
|
|
1800
1796
|
};
|
|
1801
|
-
const
|
|
1797
|
+
const de_ResourceGroup = (output, context) => {
|
|
1802
1798
|
return {
|
|
1803
1799
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1804
1800
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1805
1801
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
1806
1802
|
};
|
|
1807
1803
|
};
|
|
1808
|
-
const
|
|
1804
|
+
const de_ResourceInfo = (output, context) => {
|
|
1809
1805
|
return {
|
|
1810
1806
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1811
1807
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1812
|
-
resourceDetails: output.resourceDetails != null
|
|
1813
|
-
? deserializeAws_restJson1ResourceDetails(output.resourceDetails, context)
|
|
1814
|
-
: undefined,
|
|
1808
|
+
resourceDetails: output.resourceDetails != null ? de_ResourceDetails(output.resourceDetails, context) : undefined,
|
|
1815
1809
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1816
1810
|
};
|
|
1817
1811
|
};
|
|
1818
|
-
const
|
|
1812
|
+
const de_ResourceIntegrations = (output, context) => {
|
|
1819
1813
|
return {
|
|
1820
|
-
resourceGroup: output.resourceGroup != null ?
|
|
1814
|
+
resourceGroup: output.resourceGroup != null ? de_ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1821
1815
|
};
|
|
1822
1816
|
};
|
|
1823
|
-
const
|
|
1817
|
+
const de_Resources = (output, context) => {
|
|
1824
1818
|
const retVal = (output || [])
|
|
1825
1819
|
.filter((e) => e != null)
|
|
1826
1820
|
.map((entry) => {
|
|
1827
1821
|
if (entry === null) {
|
|
1828
1822
|
return null;
|
|
1829
1823
|
}
|
|
1830
|
-
return
|
|
1824
|
+
return de_ResourceInfo(entry, context);
|
|
1831
1825
|
});
|
|
1832
1826
|
return retVal;
|
|
1833
1827
|
};
|
|
1834
|
-
const
|
|
1828
|
+
const de_TagQueryConfiguration = (output, context) => {
|
|
1835
1829
|
return {
|
|
1836
1830
|
tagKey: (0, smithy_client_1.expectString)(output.tagKey),
|
|
1837
1831
|
};
|
|
1838
1832
|
};
|
|
1839
|
-
const
|
|
1833
|
+
const de_Tags = (output, context) => {
|
|
1840
1834
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1841
1835
|
if (value === null) {
|
|
1842
1836
|
return acc;
|