@aws-sdk/client-service-catalog-appregistry 3.137.0 → 3.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +283 -637
- package/dist-es/protocols/Aws_restJson1.js +368 -639
- package/package.json +11 -6
|
@@ -11,26 +11,8 @@ const serializeAws_restJson1AssociateAttributeGroupCommand = async (input, conte
|
|
|
11
11
|
const headers = {};
|
|
12
12
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
13
13
|
"/applications/{application}/attribute-groups/{attributeGroup}";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (labelValue.length <= 0) {
|
|
17
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
18
|
-
}
|
|
19
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
23
|
-
}
|
|
24
|
-
if (input.attributeGroup !== undefined) {
|
|
25
|
-
const labelValue = input.attributeGroup;
|
|
26
|
-
if (labelValue.length <= 0) {
|
|
27
|
-
throw new Error("Empty value provided for input HTTP label: attributeGroup.");
|
|
28
|
-
}
|
|
29
|
-
resolvedPath = resolvedPath.replace("{attributeGroup}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
throw new Error("No value provided for input HTTP label: attributeGroup.");
|
|
33
|
-
}
|
|
14
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
15
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
34
16
|
let body;
|
|
35
17
|
return new protocol_http_1.HttpRequest({
|
|
36
18
|
protocol,
|
|
@@ -48,36 +30,9 @@ const serializeAws_restJson1AssociateResourceCommand = async (input, context) =>
|
|
|
48
30
|
const headers = {};
|
|
49
31
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
50
32
|
"/applications/{application}/resources/{resourceType}/{resource}";
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
55
|
-
}
|
|
56
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
60
|
-
}
|
|
61
|
-
if (input.resourceType !== undefined) {
|
|
62
|
-
const labelValue = input.resourceType;
|
|
63
|
-
if (labelValue.length <= 0) {
|
|
64
|
-
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
65
|
-
}
|
|
66
|
-
resolvedPath = resolvedPath.replace("{resourceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
70
|
-
}
|
|
71
|
-
if (input.resource !== undefined) {
|
|
72
|
-
const labelValue = input.resource;
|
|
73
|
-
if (labelValue.length <= 0) {
|
|
74
|
-
throw new Error("Empty value provided for input HTTP label: resource.");
|
|
75
|
-
}
|
|
76
|
-
resolvedPath = resolvedPath.replace("{resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
throw new Error("No value provided for input HTTP label: resource.");
|
|
80
|
-
}
|
|
33
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
34
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
|
|
35
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
81
36
|
let body;
|
|
82
37
|
return new protocol_http_1.HttpRequest({
|
|
83
38
|
protocol,
|
|
@@ -145,16 +100,7 @@ const serializeAws_restJson1DeleteApplicationCommand = async (input, context) =>
|
|
|
145
100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
101
|
const headers = {};
|
|
147
102
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
148
|
-
|
|
149
|
-
const labelValue = input.application;
|
|
150
|
-
if (labelValue.length <= 0) {
|
|
151
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
152
|
-
}
|
|
153
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
157
|
-
}
|
|
103
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
158
104
|
let body;
|
|
159
105
|
return new protocol_http_1.HttpRequest({
|
|
160
106
|
protocol,
|
|
@@ -171,16 +117,7 @@ const serializeAws_restJson1DeleteAttributeGroupCommand = async (input, context)
|
|
|
171
117
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
172
118
|
const headers = {};
|
|
173
119
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
174
|
-
|
|
175
|
-
const labelValue = input.attributeGroup;
|
|
176
|
-
if (labelValue.length <= 0) {
|
|
177
|
-
throw new Error("Empty value provided for input HTTP label: attributeGroup.");
|
|
178
|
-
}
|
|
179
|
-
resolvedPath = resolvedPath.replace("{attributeGroup}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
throw new Error("No value provided for input HTTP label: attributeGroup.");
|
|
183
|
-
}
|
|
120
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
184
121
|
let body;
|
|
185
122
|
return new protocol_http_1.HttpRequest({
|
|
186
123
|
protocol,
|
|
@@ -198,26 +135,8 @@ const serializeAws_restJson1DisassociateAttributeGroupCommand = async (input, co
|
|
|
198
135
|
const headers = {};
|
|
199
136
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
200
137
|
"/applications/{application}/attribute-groups/{attributeGroup}";
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (labelValue.length <= 0) {
|
|
204
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
205
|
-
}
|
|
206
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
210
|
-
}
|
|
211
|
-
if (input.attributeGroup !== undefined) {
|
|
212
|
-
const labelValue = input.attributeGroup;
|
|
213
|
-
if (labelValue.length <= 0) {
|
|
214
|
-
throw new Error("Empty value provided for input HTTP label: attributeGroup.");
|
|
215
|
-
}
|
|
216
|
-
resolvedPath = resolvedPath.replace("{attributeGroup}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
throw new Error("No value provided for input HTTP label: attributeGroup.");
|
|
220
|
-
}
|
|
138
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
139
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
221
140
|
let body;
|
|
222
141
|
return new protocol_http_1.HttpRequest({
|
|
223
142
|
protocol,
|
|
@@ -235,36 +154,9 @@ const serializeAws_restJson1DisassociateResourceCommand = async (input, context)
|
|
|
235
154
|
const headers = {};
|
|
236
155
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
237
156
|
"/applications/{application}/resources/{resourceType}/{resource}";
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
242
|
-
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
247
|
-
}
|
|
248
|
-
if (input.resourceType !== undefined) {
|
|
249
|
-
const labelValue = input.resourceType;
|
|
250
|
-
if (labelValue.length <= 0) {
|
|
251
|
-
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
252
|
-
}
|
|
253
|
-
resolvedPath = resolvedPath.replace("{resourceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
257
|
-
}
|
|
258
|
-
if (input.resource !== undefined) {
|
|
259
|
-
const labelValue = input.resource;
|
|
260
|
-
if (labelValue.length <= 0) {
|
|
261
|
-
throw new Error("Empty value provided for input HTTP label: resource.");
|
|
262
|
-
}
|
|
263
|
-
resolvedPath = resolvedPath.replace("{resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
throw new Error("No value provided for input HTTP label: resource.");
|
|
267
|
-
}
|
|
157
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
158
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
|
|
159
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
268
160
|
let body;
|
|
269
161
|
return new protocol_http_1.HttpRequest({
|
|
270
162
|
protocol,
|
|
@@ -281,16 +173,7 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
281
173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
174
|
const headers = {};
|
|
283
175
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
284
|
-
|
|
285
|
-
const labelValue = input.application;
|
|
286
|
-
if (labelValue.length <= 0) {
|
|
287
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
288
|
-
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
293
|
-
}
|
|
176
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
294
177
|
let body;
|
|
295
178
|
return new protocol_http_1.HttpRequest({
|
|
296
179
|
protocol,
|
|
@@ -308,36 +191,9 @@ const serializeAws_restJson1GetAssociatedResourceCommand = async (input, context
|
|
|
308
191
|
const headers = {};
|
|
309
192
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
310
193
|
"/applications/{application}/resources/{resourceType}/{resource}";
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
315
|
-
}
|
|
316
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
320
|
-
}
|
|
321
|
-
if (input.resourceType !== undefined) {
|
|
322
|
-
const labelValue = input.resourceType;
|
|
323
|
-
if (labelValue.length <= 0) {
|
|
324
|
-
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
325
|
-
}
|
|
326
|
-
resolvedPath = resolvedPath.replace("{resourceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
330
|
-
}
|
|
331
|
-
if (input.resource !== undefined) {
|
|
332
|
-
const labelValue = input.resource;
|
|
333
|
-
if (labelValue.length <= 0) {
|
|
334
|
-
throw new Error("Empty value provided for input HTTP label: resource.");
|
|
335
|
-
}
|
|
336
|
-
resolvedPath = resolvedPath.replace("{resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
throw new Error("No value provided for input HTTP label: resource.");
|
|
340
|
-
}
|
|
194
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
195
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
|
|
196
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
341
197
|
let body;
|
|
342
198
|
return new protocol_http_1.HttpRequest({
|
|
343
199
|
protocol,
|
|
@@ -354,16 +210,7 @@ const serializeAws_restJson1GetAttributeGroupCommand = async (input, context) =>
|
|
|
354
210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
355
211
|
const headers = {};
|
|
356
212
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
357
|
-
|
|
358
|
-
const labelValue = input.attributeGroup;
|
|
359
|
-
if (labelValue.length <= 0) {
|
|
360
|
-
throw new Error("Empty value provided for input HTTP label: attributeGroup.");
|
|
361
|
-
}
|
|
362
|
-
resolvedPath = resolvedPath.replace("{attributeGroup}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
throw new Error("No value provided for input HTTP label: attributeGroup.");
|
|
366
|
-
}
|
|
213
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
367
214
|
let body;
|
|
368
215
|
return new protocol_http_1.HttpRequest({
|
|
369
216
|
protocol,
|
|
@@ -380,10 +227,10 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
380
227
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
381
228
|
const headers = {};
|
|
382
229
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
383
|
-
const query = {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
};
|
|
230
|
+
const query = map({
|
|
231
|
+
nextToken: [, input.nextToken],
|
|
232
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
233
|
+
});
|
|
387
234
|
let body;
|
|
388
235
|
return new protocol_http_1.HttpRequest({
|
|
389
236
|
protocol,
|
|
@@ -402,20 +249,11 @@ const serializeAws_restJson1ListAssociatedAttributeGroupsCommand = async (input,
|
|
|
402
249
|
const headers = {};
|
|
403
250
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
404
251
|
"/applications/{application}/attribute-groups";
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
414
|
-
}
|
|
415
|
-
const query = {
|
|
416
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
417
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
418
|
-
};
|
|
252
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
253
|
+
const query = map({
|
|
254
|
+
nextToken: [, input.nextToken],
|
|
255
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
256
|
+
});
|
|
419
257
|
let body;
|
|
420
258
|
return new protocol_http_1.HttpRequest({
|
|
421
259
|
protocol,
|
|
@@ -433,20 +271,11 @@ const serializeAws_restJson1ListAssociatedResourcesCommand = async (input, conte
|
|
|
433
271
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
434
272
|
const headers = {};
|
|
435
273
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}/resources";
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
445
|
-
}
|
|
446
|
-
const query = {
|
|
447
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
448
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
449
|
-
};
|
|
274
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
275
|
+
const query = map({
|
|
276
|
+
nextToken: [, input.nextToken],
|
|
277
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
278
|
+
});
|
|
450
279
|
let body;
|
|
451
280
|
return new protocol_http_1.HttpRequest({
|
|
452
281
|
protocol,
|
|
@@ -464,10 +293,10 @@ const serializeAws_restJson1ListAttributeGroupsCommand = async (input, context)
|
|
|
464
293
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
465
294
|
const headers = {};
|
|
466
295
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
|
|
467
|
-
const query = {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
};
|
|
296
|
+
const query = map({
|
|
297
|
+
nextToken: [, input.nextToken],
|
|
298
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
299
|
+
});
|
|
471
300
|
let body;
|
|
472
301
|
return new protocol_http_1.HttpRequest({
|
|
473
302
|
protocol,
|
|
@@ -486,20 +315,11 @@ const serializeAws_restJson1ListAttributeGroupsForApplicationCommand = async (in
|
|
|
486
315
|
const headers = {};
|
|
487
316
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
488
317
|
"/applications/{application}/attribute-group-details";
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
495
|
-
}
|
|
496
|
-
else {
|
|
497
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
498
|
-
}
|
|
499
|
-
const query = {
|
|
500
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
501
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
502
|
-
};
|
|
318
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
319
|
+
const query = map({
|
|
320
|
+
nextToken: [, input.nextToken],
|
|
321
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
322
|
+
});
|
|
503
323
|
let body;
|
|
504
324
|
return new protocol_http_1.HttpRequest({
|
|
505
325
|
protocol,
|
|
@@ -517,16 +337,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
517
337
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
338
|
const headers = {};
|
|
519
339
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
520
|
-
|
|
521
|
-
const labelValue = input.resourceArn;
|
|
522
|
-
if (labelValue.length <= 0) {
|
|
523
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
524
|
-
}
|
|
525
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
526
|
-
}
|
|
527
|
-
else {
|
|
528
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
529
|
-
}
|
|
340
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
530
341
|
let body;
|
|
531
342
|
return new protocol_http_1.HttpRequest({
|
|
532
343
|
protocol,
|
|
@@ -543,26 +354,8 @@ const serializeAws_restJson1SyncResourceCommand = async (input, context) => {
|
|
|
543
354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
544
355
|
const headers = {};
|
|
545
356
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sync/{resourceType}/{resource}";
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
if (labelValue.length <= 0) {
|
|
549
|
-
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
550
|
-
}
|
|
551
|
-
resolvedPath = resolvedPath.replace("{resourceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
555
|
-
}
|
|
556
|
-
if (input.resource !== undefined) {
|
|
557
|
-
const labelValue = input.resource;
|
|
558
|
-
if (labelValue.length <= 0) {
|
|
559
|
-
throw new Error("Empty value provided for input HTTP label: resource.");
|
|
560
|
-
}
|
|
561
|
-
resolvedPath = resolvedPath.replace("{resource}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
562
|
-
}
|
|
563
|
-
else {
|
|
564
|
-
throw new Error("No value provided for input HTTP label: resource.");
|
|
565
|
-
}
|
|
357
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
|
|
358
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
|
|
566
359
|
let body;
|
|
567
360
|
return new protocol_http_1.HttpRequest({
|
|
568
361
|
protocol,
|
|
@@ -581,16 +374,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
581
374
|
"content-type": "application/json",
|
|
582
375
|
};
|
|
583
376
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
584
|
-
|
|
585
|
-
const labelValue = input.resourceArn;
|
|
586
|
-
if (labelValue.length <= 0) {
|
|
587
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
588
|
-
}
|
|
589
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
593
|
-
}
|
|
377
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
594
378
|
let body;
|
|
595
379
|
body = JSON.stringify({
|
|
596
380
|
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
@@ -610,19 +394,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
610
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
611
395
|
const headers = {};
|
|
612
396
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
}
|
|
618
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
622
|
-
}
|
|
623
|
-
const query = {
|
|
624
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
625
|
-
};
|
|
397
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
398
|
+
const query = map({
|
|
399
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
400
|
+
});
|
|
626
401
|
let body;
|
|
627
402
|
return new protocol_http_1.HttpRequest({
|
|
628
403
|
protocol,
|
|
@@ -642,16 +417,7 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
642
417
|
"content-type": "application/json",
|
|
643
418
|
};
|
|
644
419
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
645
|
-
|
|
646
|
-
const labelValue = input.application;
|
|
647
|
-
if (labelValue.length <= 0) {
|
|
648
|
-
throw new Error("Empty value provided for input HTTP label: application.");
|
|
649
|
-
}
|
|
650
|
-
resolvedPath = resolvedPath.replace("{application}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
throw new Error("No value provided for input HTTP label: application.");
|
|
654
|
-
}
|
|
420
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
|
|
655
421
|
let body;
|
|
656
422
|
body = JSON.stringify({
|
|
657
423
|
...(input.description != null && { description: input.description }),
|
|
@@ -674,16 +440,7 @@ const serializeAws_restJson1UpdateAttributeGroupCommand = async (input, context)
|
|
|
674
440
|
"content-type": "application/json",
|
|
675
441
|
};
|
|
676
442
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
677
|
-
|
|
678
|
-
const labelValue = input.attributeGroup;
|
|
679
|
-
if (labelValue.length <= 0) {
|
|
680
|
-
throw new Error("Empty value provided for input HTTP label: attributeGroup.");
|
|
681
|
-
}
|
|
682
|
-
resolvedPath = resolvedPath.replace("{attributeGroup}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
683
|
-
}
|
|
684
|
-
else {
|
|
685
|
-
throw new Error("No value provided for input HTTP label: attributeGroup.");
|
|
686
|
-
}
|
|
443
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "attributeGroup", () => input.attributeGroup, "{attributeGroup}", false);
|
|
687
444
|
let body;
|
|
688
445
|
body = JSON.stringify({
|
|
689
446
|
...(input.attributes != null && { attributes: input.attributes }),
|
|
@@ -705,19 +462,17 @@ const deserializeAws_restJson1AssociateAttributeGroupCommand = async (output, co
|
|
|
705
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
463
|
return deserializeAws_restJson1AssociateAttributeGroupCommandError(output, context);
|
|
707
464
|
}
|
|
708
|
-
const contents = {
|
|
465
|
+
const contents = map({
|
|
709
466
|
$metadata: deserializeMetadata(output),
|
|
710
|
-
|
|
711
|
-
attributeGroupArn: undefined,
|
|
712
|
-
};
|
|
467
|
+
});
|
|
713
468
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
714
|
-
if (data.applicationArn
|
|
469
|
+
if (data.applicationArn != null) {
|
|
715
470
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
716
471
|
}
|
|
717
|
-
if (data.attributeGroupArn
|
|
472
|
+
if (data.attributeGroupArn != null) {
|
|
718
473
|
contents.attributeGroupArn = (0, smithy_client_1.expectString)(data.attributeGroupArn);
|
|
719
474
|
}
|
|
720
|
-
return
|
|
475
|
+
return contents;
|
|
721
476
|
};
|
|
722
477
|
exports.deserializeAws_restJson1AssociateAttributeGroupCommand = deserializeAws_restJson1AssociateAttributeGroupCommand;
|
|
723
478
|
const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -725,7 +480,6 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
725
480
|
...output,
|
|
726
481
|
body: await parseBody(output.body, context),
|
|
727
482
|
};
|
|
728
|
-
let response;
|
|
729
483
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
484
|
switch (errorCode) {
|
|
731
485
|
case "ConflictException":
|
|
@@ -745,33 +499,29 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
745
499
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
746
500
|
default:
|
|
747
501
|
const parsedBody = parsedOutput.body;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
$metadata,
|
|
502
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
503
|
+
output,
|
|
504
|
+
parsedBody,
|
|
505
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
506
|
+
errorCode,
|
|
754
507
|
});
|
|
755
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
756
508
|
}
|
|
757
509
|
};
|
|
758
510
|
const deserializeAws_restJson1AssociateResourceCommand = async (output, context) => {
|
|
759
511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
512
|
return deserializeAws_restJson1AssociateResourceCommandError(output, context);
|
|
761
513
|
}
|
|
762
|
-
const contents = {
|
|
514
|
+
const contents = map({
|
|
763
515
|
$metadata: deserializeMetadata(output),
|
|
764
|
-
|
|
765
|
-
resourceArn: undefined,
|
|
766
|
-
};
|
|
516
|
+
});
|
|
767
517
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
768
|
-
if (data.applicationArn
|
|
518
|
+
if (data.applicationArn != null) {
|
|
769
519
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
770
520
|
}
|
|
771
|
-
if (data.resourceArn
|
|
521
|
+
if (data.resourceArn != null) {
|
|
772
522
|
contents.resourceArn = (0, smithy_client_1.expectString)(data.resourceArn);
|
|
773
523
|
}
|
|
774
|
-
return
|
|
524
|
+
return contents;
|
|
775
525
|
};
|
|
776
526
|
exports.deserializeAws_restJson1AssociateResourceCommand = deserializeAws_restJson1AssociateResourceCommand;
|
|
777
527
|
const deserializeAws_restJson1AssociateResourceCommandError = async (output, context) => {
|
|
@@ -779,7 +529,6 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
779
529
|
...output,
|
|
780
530
|
body: await parseBody(output.body, context),
|
|
781
531
|
};
|
|
782
|
-
let response;
|
|
783
532
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
533
|
switch (errorCode) {
|
|
785
534
|
case "ConflictException":
|
|
@@ -799,29 +548,26 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
799
548
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
800
549
|
default:
|
|
801
550
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
$metadata,
|
|
551
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
552
|
+
output,
|
|
553
|
+
parsedBody,
|
|
554
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
555
|
+
errorCode,
|
|
808
556
|
});
|
|
809
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
810
557
|
}
|
|
811
558
|
};
|
|
812
559
|
const deserializeAws_restJson1CreateApplicationCommand = async (output, context) => {
|
|
813
560
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
814
561
|
return deserializeAws_restJson1CreateApplicationCommandError(output, context);
|
|
815
562
|
}
|
|
816
|
-
const contents = {
|
|
563
|
+
const contents = map({
|
|
817
564
|
$metadata: deserializeMetadata(output),
|
|
818
|
-
|
|
819
|
-
};
|
|
565
|
+
});
|
|
820
566
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
821
|
-
if (data.application
|
|
567
|
+
if (data.application != null) {
|
|
822
568
|
contents.application = deserializeAws_restJson1Application(data.application, context);
|
|
823
569
|
}
|
|
824
|
-
return
|
|
570
|
+
return contents;
|
|
825
571
|
};
|
|
826
572
|
exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJson1CreateApplicationCommand;
|
|
827
573
|
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
@@ -829,7 +575,6 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
829
575
|
...output,
|
|
830
576
|
body: await parseBody(output.body, context),
|
|
831
577
|
};
|
|
832
|
-
let response;
|
|
833
578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
579
|
switch (errorCode) {
|
|
835
580
|
case "ConflictException":
|
|
@@ -846,29 +591,26 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
846
591
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
847
592
|
default:
|
|
848
593
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
$metadata,
|
|
594
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
595
|
+
output,
|
|
596
|
+
parsedBody,
|
|
597
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
598
|
+
errorCode,
|
|
855
599
|
});
|
|
856
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
857
600
|
}
|
|
858
601
|
};
|
|
859
602
|
const deserializeAws_restJson1CreateAttributeGroupCommand = async (output, context) => {
|
|
860
603
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
861
604
|
return deserializeAws_restJson1CreateAttributeGroupCommandError(output, context);
|
|
862
605
|
}
|
|
863
|
-
const contents = {
|
|
606
|
+
const contents = map({
|
|
864
607
|
$metadata: deserializeMetadata(output),
|
|
865
|
-
|
|
866
|
-
};
|
|
608
|
+
});
|
|
867
609
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
868
|
-
if (data.attributeGroup
|
|
610
|
+
if (data.attributeGroup != null) {
|
|
869
611
|
contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
|
|
870
612
|
}
|
|
871
|
-
return
|
|
613
|
+
return contents;
|
|
872
614
|
};
|
|
873
615
|
exports.deserializeAws_restJson1CreateAttributeGroupCommand = deserializeAws_restJson1CreateAttributeGroupCommand;
|
|
874
616
|
const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -876,7 +618,6 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
876
618
|
...output,
|
|
877
619
|
body: await parseBody(output.body, context),
|
|
878
620
|
};
|
|
879
|
-
let response;
|
|
880
621
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
881
622
|
switch (errorCode) {
|
|
882
623
|
case "ConflictException":
|
|
@@ -893,29 +634,26 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
893
634
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
894
635
|
default:
|
|
895
636
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
$metadata,
|
|
637
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
638
|
+
output,
|
|
639
|
+
parsedBody,
|
|
640
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
641
|
+
errorCode,
|
|
902
642
|
});
|
|
903
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
904
643
|
}
|
|
905
644
|
};
|
|
906
645
|
const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
907
646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
647
|
return deserializeAws_restJson1DeleteApplicationCommandError(output, context);
|
|
909
648
|
}
|
|
910
|
-
const contents = {
|
|
649
|
+
const contents = map({
|
|
911
650
|
$metadata: deserializeMetadata(output),
|
|
912
|
-
|
|
913
|
-
};
|
|
651
|
+
});
|
|
914
652
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
915
|
-
if (data.application
|
|
653
|
+
if (data.application != null) {
|
|
916
654
|
contents.application = deserializeAws_restJson1ApplicationSummary(data.application, context);
|
|
917
655
|
}
|
|
918
|
-
return
|
|
656
|
+
return contents;
|
|
919
657
|
};
|
|
920
658
|
exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJson1DeleteApplicationCommand;
|
|
921
659
|
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
@@ -923,7 +661,6 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
923
661
|
...output,
|
|
924
662
|
body: await parseBody(output.body, context),
|
|
925
663
|
};
|
|
926
|
-
let response;
|
|
927
664
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
665
|
switch (errorCode) {
|
|
929
666
|
case "InternalServerException":
|
|
@@ -937,29 +674,26 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
937
674
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
938
675
|
default:
|
|
939
676
|
const parsedBody = parsedOutput.body;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
$metadata,
|
|
677
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
678
|
+
output,
|
|
679
|
+
parsedBody,
|
|
680
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
681
|
+
errorCode,
|
|
946
682
|
});
|
|
947
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
948
683
|
}
|
|
949
684
|
};
|
|
950
685
|
const deserializeAws_restJson1DeleteAttributeGroupCommand = async (output, context) => {
|
|
951
686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
687
|
return deserializeAws_restJson1DeleteAttributeGroupCommandError(output, context);
|
|
953
688
|
}
|
|
954
|
-
const contents = {
|
|
689
|
+
const contents = map({
|
|
955
690
|
$metadata: deserializeMetadata(output),
|
|
956
|
-
|
|
957
|
-
};
|
|
691
|
+
});
|
|
958
692
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
959
|
-
if (data.attributeGroup
|
|
693
|
+
if (data.attributeGroup != null) {
|
|
960
694
|
contents.attributeGroup = deserializeAws_restJson1AttributeGroupSummary(data.attributeGroup, context);
|
|
961
695
|
}
|
|
962
|
-
return
|
|
696
|
+
return contents;
|
|
963
697
|
};
|
|
964
698
|
exports.deserializeAws_restJson1DeleteAttributeGroupCommand = deserializeAws_restJson1DeleteAttributeGroupCommand;
|
|
965
699
|
const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output, context) => {
|
|
@@ -967,7 +701,6 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
967
701
|
...output,
|
|
968
702
|
body: await parseBody(output.body, context),
|
|
969
703
|
};
|
|
970
|
-
let response;
|
|
971
704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
705
|
switch (errorCode) {
|
|
973
706
|
case "InternalServerException":
|
|
@@ -981,33 +714,29 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
981
714
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
982
715
|
default:
|
|
983
716
|
const parsedBody = parsedOutput.body;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
$metadata,
|
|
717
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
718
|
+
output,
|
|
719
|
+
parsedBody,
|
|
720
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
721
|
+
errorCode,
|
|
990
722
|
});
|
|
991
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
992
723
|
}
|
|
993
724
|
};
|
|
994
725
|
const deserializeAws_restJson1DisassociateAttributeGroupCommand = async (output, context) => {
|
|
995
726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
727
|
return deserializeAws_restJson1DisassociateAttributeGroupCommandError(output, context);
|
|
997
728
|
}
|
|
998
|
-
const contents = {
|
|
729
|
+
const contents = map({
|
|
999
730
|
$metadata: deserializeMetadata(output),
|
|
1000
|
-
|
|
1001
|
-
attributeGroupArn: undefined,
|
|
1002
|
-
};
|
|
731
|
+
});
|
|
1003
732
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1004
|
-
if (data.applicationArn
|
|
733
|
+
if (data.applicationArn != null) {
|
|
1005
734
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
1006
735
|
}
|
|
1007
|
-
if (data.attributeGroupArn
|
|
736
|
+
if (data.attributeGroupArn != null) {
|
|
1008
737
|
contents.attributeGroupArn = (0, smithy_client_1.expectString)(data.attributeGroupArn);
|
|
1009
738
|
}
|
|
1010
|
-
return
|
|
739
|
+
return contents;
|
|
1011
740
|
};
|
|
1012
741
|
exports.deserializeAws_restJson1DisassociateAttributeGroupCommand = deserializeAws_restJson1DisassociateAttributeGroupCommand;
|
|
1013
742
|
const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -1015,7 +744,6 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
1015
744
|
...output,
|
|
1016
745
|
body: await parseBody(output.body, context),
|
|
1017
746
|
};
|
|
1018
|
-
let response;
|
|
1019
747
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
748
|
switch (errorCode) {
|
|
1021
749
|
case "InternalServerException":
|
|
@@ -1029,33 +757,29 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
1029
757
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1030
758
|
default:
|
|
1031
759
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
$metadata,
|
|
760
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
761
|
+
output,
|
|
762
|
+
parsedBody,
|
|
763
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
764
|
+
errorCode,
|
|
1038
765
|
});
|
|
1039
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1040
766
|
}
|
|
1041
767
|
};
|
|
1042
768
|
const deserializeAws_restJson1DisassociateResourceCommand = async (output, context) => {
|
|
1043
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1044
770
|
return deserializeAws_restJson1DisassociateResourceCommandError(output, context);
|
|
1045
771
|
}
|
|
1046
|
-
const contents = {
|
|
772
|
+
const contents = map({
|
|
1047
773
|
$metadata: deserializeMetadata(output),
|
|
1048
|
-
|
|
1049
|
-
resourceArn: undefined,
|
|
1050
|
-
};
|
|
774
|
+
});
|
|
1051
775
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1052
|
-
if (data.applicationArn
|
|
776
|
+
if (data.applicationArn != null) {
|
|
1053
777
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
1054
778
|
}
|
|
1055
|
-
if (data.resourceArn
|
|
779
|
+
if (data.resourceArn != null) {
|
|
1056
780
|
contents.resourceArn = (0, smithy_client_1.expectString)(data.resourceArn);
|
|
1057
781
|
}
|
|
1058
|
-
return
|
|
782
|
+
return contents;
|
|
1059
783
|
};
|
|
1060
784
|
exports.deserializeAws_restJson1DisassociateResourceCommand = deserializeAws_restJson1DisassociateResourceCommand;
|
|
1061
785
|
const deserializeAws_restJson1DisassociateResourceCommandError = async (output, context) => {
|
|
@@ -1063,7 +787,6 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
1063
787
|
...output,
|
|
1064
788
|
body: await parseBody(output.body, context),
|
|
1065
789
|
};
|
|
1066
|
-
let response;
|
|
1067
790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
791
|
switch (errorCode) {
|
|
1069
792
|
case "InternalServerException":
|
|
@@ -1077,61 +800,50 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
1077
800
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1078
801
|
default:
|
|
1079
802
|
const parsedBody = parsedOutput.body;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
$metadata,
|
|
803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
804
|
+
output,
|
|
805
|
+
parsedBody,
|
|
806
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
807
|
+
errorCode,
|
|
1086
808
|
});
|
|
1087
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1088
809
|
}
|
|
1089
810
|
};
|
|
1090
811
|
const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
|
|
1091
812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1092
813
|
return deserializeAws_restJson1GetApplicationCommandError(output, context);
|
|
1093
814
|
}
|
|
1094
|
-
const contents = {
|
|
815
|
+
const contents = map({
|
|
1095
816
|
$metadata: deserializeMetadata(output),
|
|
1096
|
-
|
|
1097
|
-
associatedResourceCount: undefined,
|
|
1098
|
-
creationTime: undefined,
|
|
1099
|
-
description: undefined,
|
|
1100
|
-
id: undefined,
|
|
1101
|
-
integrations: undefined,
|
|
1102
|
-
lastUpdateTime: undefined,
|
|
1103
|
-
name: undefined,
|
|
1104
|
-
tags: undefined,
|
|
1105
|
-
};
|
|
817
|
+
});
|
|
1106
818
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1107
|
-
if (data.arn
|
|
819
|
+
if (data.arn != null) {
|
|
1108
820
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1109
821
|
}
|
|
1110
|
-
if (data.associatedResourceCount
|
|
822
|
+
if (data.associatedResourceCount != null) {
|
|
1111
823
|
contents.associatedResourceCount = (0, smithy_client_1.expectInt32)(data.associatedResourceCount);
|
|
1112
824
|
}
|
|
1113
|
-
if (data.creationTime
|
|
825
|
+
if (data.creationTime != null) {
|
|
1114
826
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.creationTime));
|
|
1115
827
|
}
|
|
1116
|
-
if (data.description
|
|
828
|
+
if (data.description != null) {
|
|
1117
829
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1118
830
|
}
|
|
1119
|
-
if (data.id
|
|
831
|
+
if (data.id != null) {
|
|
1120
832
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
1121
833
|
}
|
|
1122
|
-
if (data.integrations
|
|
834
|
+
if (data.integrations != null) {
|
|
1123
835
|
contents.integrations = deserializeAws_restJson1Integrations(data.integrations, context);
|
|
1124
836
|
}
|
|
1125
|
-
if (data.lastUpdateTime
|
|
837
|
+
if (data.lastUpdateTime != null) {
|
|
1126
838
|
contents.lastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdateTime));
|
|
1127
839
|
}
|
|
1128
|
-
if (data.name
|
|
840
|
+
if (data.name != null) {
|
|
1129
841
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1130
842
|
}
|
|
1131
|
-
if (data.tags
|
|
843
|
+
if (data.tags != null) {
|
|
1132
844
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1133
845
|
}
|
|
1134
|
-
return
|
|
846
|
+
return contents;
|
|
1135
847
|
};
|
|
1136
848
|
exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1GetApplicationCommand;
|
|
1137
849
|
const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
|
|
@@ -1139,7 +851,6 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1139
851
|
...output,
|
|
1140
852
|
body: await parseBody(output.body, context),
|
|
1141
853
|
};
|
|
1142
|
-
let response;
|
|
1143
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1144
855
|
switch (errorCode) {
|
|
1145
856
|
case "ConflictException":
|
|
@@ -1156,29 +867,26 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1156
867
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1157
868
|
default:
|
|
1158
869
|
const parsedBody = parsedOutput.body;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
$metadata,
|
|
870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
871
|
+
output,
|
|
872
|
+
parsedBody,
|
|
873
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
874
|
+
errorCode,
|
|
1165
875
|
});
|
|
1166
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1167
876
|
}
|
|
1168
877
|
};
|
|
1169
878
|
const deserializeAws_restJson1GetAssociatedResourceCommand = async (output, context) => {
|
|
1170
879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1171
880
|
return deserializeAws_restJson1GetAssociatedResourceCommandError(output, context);
|
|
1172
881
|
}
|
|
1173
|
-
const contents = {
|
|
882
|
+
const contents = map({
|
|
1174
883
|
$metadata: deserializeMetadata(output),
|
|
1175
|
-
|
|
1176
|
-
};
|
|
884
|
+
});
|
|
1177
885
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1178
|
-
if (data.resource
|
|
886
|
+
if (data.resource != null) {
|
|
1179
887
|
contents.resource = deserializeAws_restJson1Resource(data.resource, context);
|
|
1180
888
|
}
|
|
1181
|
-
return
|
|
889
|
+
return contents;
|
|
1182
890
|
};
|
|
1183
891
|
exports.deserializeAws_restJson1GetAssociatedResourceCommand = deserializeAws_restJson1GetAssociatedResourceCommand;
|
|
1184
892
|
const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output, context) => {
|
|
@@ -1186,7 +894,6 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
1186
894
|
...output,
|
|
1187
895
|
body: await parseBody(output.body, context),
|
|
1188
896
|
};
|
|
1189
|
-
let response;
|
|
1190
897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
898
|
switch (errorCode) {
|
|
1192
899
|
case "InternalServerException":
|
|
@@ -1200,57 +907,47 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
1200
907
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1201
908
|
default:
|
|
1202
909
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
$metadata,
|
|
910
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
911
|
+
output,
|
|
912
|
+
parsedBody,
|
|
913
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
914
|
+
errorCode,
|
|
1209
915
|
});
|
|
1210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
916
|
}
|
|
1212
917
|
};
|
|
1213
918
|
const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context) => {
|
|
1214
919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1215
920
|
return deserializeAws_restJson1GetAttributeGroupCommandError(output, context);
|
|
1216
921
|
}
|
|
1217
|
-
const contents = {
|
|
922
|
+
const contents = map({
|
|
1218
923
|
$metadata: deserializeMetadata(output),
|
|
1219
|
-
|
|
1220
|
-
attributes: undefined,
|
|
1221
|
-
creationTime: undefined,
|
|
1222
|
-
description: undefined,
|
|
1223
|
-
id: undefined,
|
|
1224
|
-
lastUpdateTime: undefined,
|
|
1225
|
-
name: undefined,
|
|
1226
|
-
tags: undefined,
|
|
1227
|
-
};
|
|
924
|
+
});
|
|
1228
925
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1229
|
-
if (data.arn
|
|
926
|
+
if (data.arn != null) {
|
|
1230
927
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1231
928
|
}
|
|
1232
|
-
if (data.attributes
|
|
929
|
+
if (data.attributes != null) {
|
|
1233
930
|
contents.attributes = (0, smithy_client_1.expectString)(data.attributes);
|
|
1234
931
|
}
|
|
1235
|
-
if (data.creationTime
|
|
932
|
+
if (data.creationTime != null) {
|
|
1236
933
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.creationTime));
|
|
1237
934
|
}
|
|
1238
|
-
if (data.description
|
|
935
|
+
if (data.description != null) {
|
|
1239
936
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1240
937
|
}
|
|
1241
|
-
if (data.id
|
|
938
|
+
if (data.id != null) {
|
|
1242
939
|
contents.id = (0, smithy_client_1.expectString)(data.id);
|
|
1243
940
|
}
|
|
1244
|
-
if (data.lastUpdateTime
|
|
941
|
+
if (data.lastUpdateTime != null) {
|
|
1245
942
|
contents.lastUpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.lastUpdateTime));
|
|
1246
943
|
}
|
|
1247
|
-
if (data.name
|
|
944
|
+
if (data.name != null) {
|
|
1248
945
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1249
946
|
}
|
|
1250
|
-
if (data.tags
|
|
947
|
+
if (data.tags != null) {
|
|
1251
948
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1252
949
|
}
|
|
1253
|
-
return
|
|
950
|
+
return contents;
|
|
1254
951
|
};
|
|
1255
952
|
exports.deserializeAws_restJson1GetAttributeGroupCommand = deserializeAws_restJson1GetAttributeGroupCommand;
|
|
1256
953
|
const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, context) => {
|
|
@@ -1258,7 +955,6 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1258
955
|
...output,
|
|
1259
956
|
body: await parseBody(output.body, context),
|
|
1260
957
|
};
|
|
1261
|
-
let response;
|
|
1262
958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
959
|
switch (errorCode) {
|
|
1264
960
|
case "ConflictException":
|
|
@@ -1275,33 +971,29 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
1275
971
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1276
972
|
default:
|
|
1277
973
|
const parsedBody = parsedOutput.body;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
$metadata,
|
|
974
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
975
|
+
output,
|
|
976
|
+
parsedBody,
|
|
977
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
978
|
+
errorCode,
|
|
1284
979
|
});
|
|
1285
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1286
980
|
}
|
|
1287
981
|
};
|
|
1288
982
|
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
1289
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1290
984
|
return deserializeAws_restJson1ListApplicationsCommandError(output, context);
|
|
1291
985
|
}
|
|
1292
|
-
const contents = {
|
|
986
|
+
const contents = map({
|
|
1293
987
|
$metadata: deserializeMetadata(output),
|
|
1294
|
-
|
|
1295
|
-
nextToken: undefined,
|
|
1296
|
-
};
|
|
988
|
+
});
|
|
1297
989
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1298
|
-
if (data.applications
|
|
990
|
+
if (data.applications != null) {
|
|
1299
991
|
contents.applications = deserializeAws_restJson1ApplicationSummaries(data.applications, context);
|
|
1300
992
|
}
|
|
1301
|
-
if (data.nextToken
|
|
993
|
+
if (data.nextToken != null) {
|
|
1302
994
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1303
995
|
}
|
|
1304
|
-
return
|
|
996
|
+
return contents;
|
|
1305
997
|
};
|
|
1306
998
|
exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJson1ListApplicationsCommand;
|
|
1307
999
|
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
@@ -1309,7 +1001,6 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1309
1001
|
...output,
|
|
1310
1002
|
body: await parseBody(output.body, context),
|
|
1311
1003
|
};
|
|
1312
|
-
let response;
|
|
1313
1004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
1005
|
switch (errorCode) {
|
|
1315
1006
|
case "InternalServerException":
|
|
@@ -1320,33 +1011,29 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1320
1011
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1321
1012
|
default:
|
|
1322
1013
|
const parsedBody = parsedOutput.body;
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
$metadata,
|
|
1014
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1015
|
+
output,
|
|
1016
|
+
parsedBody,
|
|
1017
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1018
|
+
errorCode,
|
|
1329
1019
|
});
|
|
1330
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1020
|
}
|
|
1332
1021
|
};
|
|
1333
1022
|
const deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
1334
1023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
1024
|
return deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError(output, context);
|
|
1336
1025
|
}
|
|
1337
|
-
const contents = {
|
|
1026
|
+
const contents = map({
|
|
1338
1027
|
$metadata: deserializeMetadata(output),
|
|
1339
|
-
|
|
1340
|
-
nextToken: undefined,
|
|
1341
|
-
};
|
|
1028
|
+
});
|
|
1342
1029
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1343
|
-
if (data.attributeGroups
|
|
1030
|
+
if (data.attributeGroups != null) {
|
|
1344
1031
|
contents.attributeGroups = deserializeAws_restJson1AttributeGroupIds(data.attributeGroups, context);
|
|
1345
1032
|
}
|
|
1346
|
-
if (data.nextToken
|
|
1033
|
+
if (data.nextToken != null) {
|
|
1347
1034
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1348
1035
|
}
|
|
1349
|
-
return
|
|
1036
|
+
return contents;
|
|
1350
1037
|
};
|
|
1351
1038
|
exports.deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = deserializeAws_restJson1ListAssociatedAttributeGroupsCommand;
|
|
1352
1039
|
const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async (output, context) => {
|
|
@@ -1354,7 +1041,6 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1354
1041
|
...output,
|
|
1355
1042
|
body: await parseBody(output.body, context),
|
|
1356
1043
|
};
|
|
1357
|
-
let response;
|
|
1358
1044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1045
|
switch (errorCode) {
|
|
1360
1046
|
case "InternalServerException":
|
|
@@ -1368,33 +1054,29 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1368
1054
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1369
1055
|
default:
|
|
1370
1056
|
const parsedBody = parsedOutput.body;
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
$metadata,
|
|
1057
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1058
|
+
output,
|
|
1059
|
+
parsedBody,
|
|
1060
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1061
|
+
errorCode,
|
|
1377
1062
|
});
|
|
1378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1379
1063
|
}
|
|
1380
1064
|
};
|
|
1381
1065
|
const deserializeAws_restJson1ListAssociatedResourcesCommand = async (output, context) => {
|
|
1382
1066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1383
1067
|
return deserializeAws_restJson1ListAssociatedResourcesCommandError(output, context);
|
|
1384
1068
|
}
|
|
1385
|
-
const contents = {
|
|
1069
|
+
const contents = map({
|
|
1386
1070
|
$metadata: deserializeMetadata(output),
|
|
1387
|
-
|
|
1388
|
-
resources: undefined,
|
|
1389
|
-
};
|
|
1071
|
+
});
|
|
1390
1072
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1391
|
-
if (data.nextToken
|
|
1073
|
+
if (data.nextToken != null) {
|
|
1392
1074
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1393
1075
|
}
|
|
1394
|
-
if (data.resources
|
|
1076
|
+
if (data.resources != null) {
|
|
1395
1077
|
contents.resources = deserializeAws_restJson1Resources(data.resources, context);
|
|
1396
1078
|
}
|
|
1397
|
-
return
|
|
1079
|
+
return contents;
|
|
1398
1080
|
};
|
|
1399
1081
|
exports.deserializeAws_restJson1ListAssociatedResourcesCommand = deserializeAws_restJson1ListAssociatedResourcesCommand;
|
|
1400
1082
|
const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (output, context) => {
|
|
@@ -1402,7 +1084,6 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1402
1084
|
...output,
|
|
1403
1085
|
body: await parseBody(output.body, context),
|
|
1404
1086
|
};
|
|
1405
|
-
let response;
|
|
1406
1087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
1088
|
switch (errorCode) {
|
|
1408
1089
|
case "InternalServerException":
|
|
@@ -1416,33 +1097,29 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1416
1097
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1417
1098
|
default:
|
|
1418
1099
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
$metadata,
|
|
1100
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1101
|
+
output,
|
|
1102
|
+
parsedBody,
|
|
1103
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1104
|
+
errorCode,
|
|
1425
1105
|
});
|
|
1426
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1427
1106
|
}
|
|
1428
1107
|
};
|
|
1429
1108
|
const deserializeAws_restJson1ListAttributeGroupsCommand = async (output, context) => {
|
|
1430
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1431
1110
|
return deserializeAws_restJson1ListAttributeGroupsCommandError(output, context);
|
|
1432
1111
|
}
|
|
1433
|
-
const contents = {
|
|
1112
|
+
const contents = map({
|
|
1434
1113
|
$metadata: deserializeMetadata(output),
|
|
1435
|
-
|
|
1436
|
-
nextToken: undefined,
|
|
1437
|
-
};
|
|
1114
|
+
});
|
|
1438
1115
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1439
|
-
if (data.attributeGroups
|
|
1116
|
+
if (data.attributeGroups != null) {
|
|
1440
1117
|
contents.attributeGroups = deserializeAws_restJson1AttributeGroupSummaries(data.attributeGroups, context);
|
|
1441
1118
|
}
|
|
1442
|
-
if (data.nextToken
|
|
1119
|
+
if (data.nextToken != null) {
|
|
1443
1120
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1444
1121
|
}
|
|
1445
|
-
return
|
|
1122
|
+
return contents;
|
|
1446
1123
|
};
|
|
1447
1124
|
exports.deserializeAws_restJson1ListAttributeGroupsCommand = deserializeAws_restJson1ListAttributeGroupsCommand;
|
|
1448
1125
|
const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, context) => {
|
|
@@ -1450,7 +1127,6 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1450
1127
|
...output,
|
|
1451
1128
|
body: await parseBody(output.body, context),
|
|
1452
1129
|
};
|
|
1453
|
-
let response;
|
|
1454
1130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1131
|
switch (errorCode) {
|
|
1456
1132
|
case "InternalServerException":
|
|
@@ -1461,33 +1137,29 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1461
1137
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1462
1138
|
default:
|
|
1463
1139
|
const parsedBody = parsedOutput.body;
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
$metadata,
|
|
1140
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1141
|
+
output,
|
|
1142
|
+
parsedBody,
|
|
1143
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1144
|
+
errorCode,
|
|
1470
1145
|
});
|
|
1471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1472
1146
|
}
|
|
1473
1147
|
};
|
|
1474
1148
|
const deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = async (output, context) => {
|
|
1475
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1476
1150
|
return deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError(output, context);
|
|
1477
1151
|
}
|
|
1478
|
-
const contents = {
|
|
1152
|
+
const contents = map({
|
|
1479
1153
|
$metadata: deserializeMetadata(output),
|
|
1480
|
-
|
|
1481
|
-
nextToken: undefined,
|
|
1482
|
-
};
|
|
1154
|
+
});
|
|
1483
1155
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1484
|
-
if (data.attributeGroupsDetails
|
|
1156
|
+
if (data.attributeGroupsDetails != null) {
|
|
1485
1157
|
contents.attributeGroupsDetails = deserializeAws_restJson1AttributeGroupDetailsList(data.attributeGroupsDetails, context);
|
|
1486
1158
|
}
|
|
1487
|
-
if (data.nextToken
|
|
1159
|
+
if (data.nextToken != null) {
|
|
1488
1160
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1489
1161
|
}
|
|
1490
|
-
return
|
|
1162
|
+
return contents;
|
|
1491
1163
|
};
|
|
1492
1164
|
exports.deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = deserializeAws_restJson1ListAttributeGroupsForApplicationCommand;
|
|
1493
1165
|
const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = async (output, context) => {
|
|
@@ -1495,7 +1167,6 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1495
1167
|
...output,
|
|
1496
1168
|
body: await parseBody(output.body, context),
|
|
1497
1169
|
};
|
|
1498
|
-
let response;
|
|
1499
1170
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1171
|
switch (errorCode) {
|
|
1501
1172
|
case "InternalServerException":
|
|
@@ -1509,29 +1180,26 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1509
1180
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1510
1181
|
default:
|
|
1511
1182
|
const parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
$metadata,
|
|
1183
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1184
|
+
output,
|
|
1185
|
+
parsedBody,
|
|
1186
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1187
|
+
errorCode,
|
|
1518
1188
|
});
|
|
1519
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1520
1189
|
}
|
|
1521
1190
|
};
|
|
1522
1191
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1523
1192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1524
1193
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
1525
1194
|
}
|
|
1526
|
-
const contents = {
|
|
1195
|
+
const contents = map({
|
|
1527
1196
|
$metadata: deserializeMetadata(output),
|
|
1528
|
-
|
|
1529
|
-
};
|
|
1197
|
+
});
|
|
1530
1198
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1531
|
-
if (data.tags
|
|
1199
|
+
if (data.tags != null) {
|
|
1532
1200
|
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1533
1201
|
}
|
|
1534
|
-
return
|
|
1202
|
+
return contents;
|
|
1535
1203
|
};
|
|
1536
1204
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
1537
1205
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1539,7 +1207,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1539
1207
|
...output,
|
|
1540
1208
|
body: await parseBody(output.body, context),
|
|
1541
1209
|
};
|
|
1542
|
-
let response;
|
|
1543
1210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
1211
|
switch (errorCode) {
|
|
1545
1212
|
case "InternalServerException":
|
|
@@ -1553,37 +1220,32 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1553
1220
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1554
1221
|
default:
|
|
1555
1222
|
const parsedBody = parsedOutput.body;
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
$metadata,
|
|
1223
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1224
|
+
output,
|
|
1225
|
+
parsedBody,
|
|
1226
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1227
|
+
errorCode,
|
|
1562
1228
|
});
|
|
1563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1564
1229
|
}
|
|
1565
1230
|
};
|
|
1566
1231
|
const deserializeAws_restJson1SyncResourceCommand = async (output, context) => {
|
|
1567
1232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1568
1233
|
return deserializeAws_restJson1SyncResourceCommandError(output, context);
|
|
1569
1234
|
}
|
|
1570
|
-
const contents = {
|
|
1235
|
+
const contents = map({
|
|
1571
1236
|
$metadata: deserializeMetadata(output),
|
|
1572
|
-
|
|
1573
|
-
applicationArn: undefined,
|
|
1574
|
-
resourceArn: undefined,
|
|
1575
|
-
};
|
|
1237
|
+
});
|
|
1576
1238
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1577
|
-
if (data.actionTaken
|
|
1239
|
+
if (data.actionTaken != null) {
|
|
1578
1240
|
contents.actionTaken = (0, smithy_client_1.expectString)(data.actionTaken);
|
|
1579
1241
|
}
|
|
1580
|
-
if (data.applicationArn
|
|
1242
|
+
if (data.applicationArn != null) {
|
|
1581
1243
|
contents.applicationArn = (0, smithy_client_1.expectString)(data.applicationArn);
|
|
1582
1244
|
}
|
|
1583
|
-
if (data.resourceArn
|
|
1245
|
+
if (data.resourceArn != null) {
|
|
1584
1246
|
contents.resourceArn = (0, smithy_client_1.expectString)(data.resourceArn);
|
|
1585
1247
|
}
|
|
1586
|
-
return
|
|
1248
|
+
return contents;
|
|
1587
1249
|
};
|
|
1588
1250
|
exports.deserializeAws_restJson1SyncResourceCommand = deserializeAws_restJson1SyncResourceCommand;
|
|
1589
1251
|
const deserializeAws_restJson1SyncResourceCommandError = async (output, context) => {
|
|
@@ -1591,7 +1253,6 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1591
1253
|
...output,
|
|
1592
1254
|
body: await parseBody(output.body, context),
|
|
1593
1255
|
};
|
|
1594
|
-
let response;
|
|
1595
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
1257
|
switch (errorCode) {
|
|
1597
1258
|
case "ConflictException":
|
|
@@ -1605,25 +1266,23 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1605
1266
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1606
1267
|
default:
|
|
1607
1268
|
const parsedBody = parsedOutput.body;
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
$metadata,
|
|
1269
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1270
|
+
output,
|
|
1271
|
+
parsedBody,
|
|
1272
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1273
|
+
errorCode,
|
|
1614
1274
|
});
|
|
1615
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1616
1275
|
}
|
|
1617
1276
|
};
|
|
1618
1277
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1619
1278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
1279
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1621
1280
|
}
|
|
1622
|
-
const contents = {
|
|
1281
|
+
const contents = map({
|
|
1623
1282
|
$metadata: deserializeMetadata(output),
|
|
1624
|
-
};
|
|
1283
|
+
});
|
|
1625
1284
|
await collectBody(output.body, context);
|
|
1626
|
-
return
|
|
1285
|
+
return contents;
|
|
1627
1286
|
};
|
|
1628
1287
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
1629
1288
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -1631,7 +1290,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1631
1290
|
...output,
|
|
1632
1291
|
body: await parseBody(output.body, context),
|
|
1633
1292
|
};
|
|
1634
|
-
let response;
|
|
1635
1293
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
1294
|
switch (errorCode) {
|
|
1637
1295
|
case "InternalServerException":
|
|
@@ -1645,25 +1303,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1645
1303
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1646
1304
|
default:
|
|
1647
1305
|
const parsedBody = parsedOutput.body;
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
$metadata,
|
|
1306
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1307
|
+
output,
|
|
1308
|
+
parsedBody,
|
|
1309
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1310
|
+
errorCode,
|
|
1654
1311
|
});
|
|
1655
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1656
1312
|
}
|
|
1657
1313
|
};
|
|
1658
1314
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1659
1315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1660
1316
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1661
1317
|
}
|
|
1662
|
-
const contents = {
|
|
1318
|
+
const contents = map({
|
|
1663
1319
|
$metadata: deserializeMetadata(output),
|
|
1664
|
-
};
|
|
1320
|
+
});
|
|
1665
1321
|
await collectBody(output.body, context);
|
|
1666
|
-
return
|
|
1322
|
+
return contents;
|
|
1667
1323
|
};
|
|
1668
1324
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
1669
1325
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -1671,7 +1327,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1671
1327
|
...output,
|
|
1672
1328
|
body: await parseBody(output.body, context),
|
|
1673
1329
|
};
|
|
1674
|
-
let response;
|
|
1675
1330
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
1331
|
switch (errorCode) {
|
|
1677
1332
|
case "InternalServerException":
|
|
@@ -1685,29 +1340,26 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1685
1340
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1686
1341
|
default:
|
|
1687
1342
|
const parsedBody = parsedOutput.body;
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
$metadata,
|
|
1343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1344
|
+
output,
|
|
1345
|
+
parsedBody,
|
|
1346
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1347
|
+
errorCode,
|
|
1694
1348
|
});
|
|
1695
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1696
1349
|
}
|
|
1697
1350
|
};
|
|
1698
1351
|
const deserializeAws_restJson1UpdateApplicationCommand = async (output, context) => {
|
|
1699
1352
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
1353
|
return deserializeAws_restJson1UpdateApplicationCommandError(output, context);
|
|
1701
1354
|
}
|
|
1702
|
-
const contents = {
|
|
1355
|
+
const contents = map({
|
|
1703
1356
|
$metadata: deserializeMetadata(output),
|
|
1704
|
-
|
|
1705
|
-
};
|
|
1357
|
+
});
|
|
1706
1358
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1707
|
-
if (data.application
|
|
1359
|
+
if (data.application != null) {
|
|
1708
1360
|
contents.application = deserializeAws_restJson1Application(data.application, context);
|
|
1709
1361
|
}
|
|
1710
|
-
return
|
|
1362
|
+
return contents;
|
|
1711
1363
|
};
|
|
1712
1364
|
exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJson1UpdateApplicationCommand;
|
|
1713
1365
|
const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
|
|
@@ -1715,7 +1367,6 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1715
1367
|
...output,
|
|
1716
1368
|
body: await parseBody(output.body, context),
|
|
1717
1369
|
};
|
|
1718
|
-
let response;
|
|
1719
1370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1371
|
switch (errorCode) {
|
|
1721
1372
|
case "ConflictException":
|
|
@@ -1732,29 +1383,26 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1732
1383
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1733
1384
|
default:
|
|
1734
1385
|
const parsedBody = parsedOutput.body;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
$metadata,
|
|
1386
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1387
|
+
output,
|
|
1388
|
+
parsedBody,
|
|
1389
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1390
|
+
errorCode,
|
|
1741
1391
|
});
|
|
1742
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1743
1392
|
}
|
|
1744
1393
|
};
|
|
1745
1394
|
const deserializeAws_restJson1UpdateAttributeGroupCommand = async (output, context) => {
|
|
1746
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
1396
|
return deserializeAws_restJson1UpdateAttributeGroupCommandError(output, context);
|
|
1748
1397
|
}
|
|
1749
|
-
const contents = {
|
|
1398
|
+
const contents = map({
|
|
1750
1399
|
$metadata: deserializeMetadata(output),
|
|
1751
|
-
|
|
1752
|
-
};
|
|
1400
|
+
});
|
|
1753
1401
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1754
|
-
if (data.attributeGroup
|
|
1402
|
+
if (data.attributeGroup != null) {
|
|
1755
1403
|
contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
|
|
1756
1404
|
}
|
|
1757
|
-
return
|
|
1405
|
+
return contents;
|
|
1758
1406
|
};
|
|
1759
1407
|
exports.deserializeAws_restJson1UpdateAttributeGroupCommand = deserializeAws_restJson1UpdateAttributeGroupCommand;
|
|
1760
1408
|
const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output, context) => {
|
|
@@ -1762,7 +1410,6 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1762
1410
|
...output,
|
|
1763
1411
|
body: await parseBody(output.body, context),
|
|
1764
1412
|
};
|
|
1765
|
-
let response;
|
|
1766
1413
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
1414
|
switch (errorCode) {
|
|
1768
1415
|
case "ConflictException":
|
|
@@ -1779,20 +1426,19 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1779
1426
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1780
1427
|
default:
|
|
1781
1428
|
const parsedBody = parsedOutput.body;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
$metadata,
|
|
1429
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1430
|
+
output,
|
|
1431
|
+
parsedBody,
|
|
1432
|
+
exceptionCtor: ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException,
|
|
1433
|
+
errorCode,
|
|
1788
1434
|
});
|
|
1789
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1790
1435
|
}
|
|
1791
1436
|
};
|
|
1437
|
+
const map = smithy_client_1.map;
|
|
1792
1438
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1793
|
-
const contents = {};
|
|
1439
|
+
const contents = map({});
|
|
1794
1440
|
const data = parsedOutput.body;
|
|
1795
|
-
if (data.message
|
|
1441
|
+
if (data.message != null) {
|
|
1796
1442
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1797
1443
|
}
|
|
1798
1444
|
const exception = new models_0_1.ConflictException({
|
|
@@ -1802,9 +1448,9 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1802
1448
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1803
1449
|
};
|
|
1804
1450
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1805
|
-
const contents = {};
|
|
1451
|
+
const contents = map({});
|
|
1806
1452
|
const data = parsedOutput.body;
|
|
1807
|
-
if (data.message
|
|
1453
|
+
if (data.message != null) {
|
|
1808
1454
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1809
1455
|
}
|
|
1810
1456
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -1814,9 +1460,9 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1814
1460
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1815
1461
|
};
|
|
1816
1462
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1817
|
-
const contents = {};
|
|
1463
|
+
const contents = map({});
|
|
1818
1464
|
const data = parsedOutput.body;
|
|
1819
|
-
if (data.message
|
|
1465
|
+
if (data.message != null) {
|
|
1820
1466
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1821
1467
|
}
|
|
1822
1468
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -1826,9 +1472,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1826
1472
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1827
1473
|
};
|
|
1828
1474
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1829
|
-
const contents = {};
|
|
1475
|
+
const contents = map({});
|
|
1830
1476
|
const data = parsedOutput.body;
|
|
1831
|
-
if (data.message
|
|
1477
|
+
if (data.message != null) {
|
|
1832
1478
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1833
1479
|
}
|
|
1834
1480
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -1838,9 +1484,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1838
1484
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1839
1485
|
};
|
|
1840
1486
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1841
|
-
const contents = {};
|
|
1487
|
+
const contents = map({});
|
|
1842
1488
|
const data = parsedOutput.body;
|
|
1843
|
-
if (data.message
|
|
1489
|
+
if (data.message != null) {
|
|
1844
1490
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1845
1491
|
}
|
|
1846
1492
|
const exception = new models_0_1.ValidationException({
|