@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
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { ServiceCatalogAppRegistryServiceException as __BaseException } from "../models/ServiceCatalogAppRegistryServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssociateAttributeGroupCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {};
|
|
9
9
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -21,7 +21,7 @@ export const serializeAws_restJson1AssociateAttributeGroupCommand = async (input
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_AssociateResourceCommand = async (input, context) => {
|
|
25
25
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
26
26
|
const headers = {};
|
|
27
27
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -40,7 +40,7 @@ export const serializeAws_restJson1AssociateResourceCommand = async (input, cont
|
|
|
40
40
|
body,
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
|
-
export const
|
|
43
|
+
export const se_CreateApplicationCommand = async (input, context) => {
|
|
44
44
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
45
|
const headers = {
|
|
46
46
|
"content-type": "application/json",
|
|
@@ -51,7 +51,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
51
51
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
52
52
|
...(input.description != null && { description: input.description }),
|
|
53
53
|
...(input.name != null && { name: input.name }),
|
|
54
|
-
...(input.tags != null && { tags:
|
|
54
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
55
55
|
});
|
|
56
56
|
return new __HttpRequest({
|
|
57
57
|
protocol,
|
|
@@ -63,7 +63,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
63
63
|
body,
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
|
-
export const
|
|
66
|
+
export const se_CreateAttributeGroupCommand = async (input, context) => {
|
|
67
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
68
|
const headers = {
|
|
69
69
|
"content-type": "application/json",
|
|
@@ -75,7 +75,7 @@ export const serializeAws_restJson1CreateAttributeGroupCommand = async (input, c
|
|
|
75
75
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
76
76
|
...(input.description != null && { description: input.description }),
|
|
77
77
|
...(input.name != null && { name: input.name }),
|
|
78
|
-
...(input.tags != null && { tags:
|
|
78
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
79
79
|
});
|
|
80
80
|
return new __HttpRequest({
|
|
81
81
|
protocol,
|
|
@@ -87,7 +87,7 @@ export const serializeAws_restJson1CreateAttributeGroupCommand = async (input, c
|
|
|
87
87
|
body,
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
export const
|
|
90
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
91
91
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
92
|
const headers = {};
|
|
93
93
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
@@ -103,7 +103,7 @@ export const serializeAws_restJson1DeleteApplicationCommand = async (input, cont
|
|
|
103
103
|
body,
|
|
104
104
|
});
|
|
105
105
|
};
|
|
106
|
-
export const
|
|
106
|
+
export const se_DeleteAttributeGroupCommand = async (input, context) => {
|
|
107
107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
108
108
|
const headers = {};
|
|
109
109
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
@@ -119,7 +119,7 @@ export const serializeAws_restJson1DeleteAttributeGroupCommand = async (input, c
|
|
|
119
119
|
body,
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_DisassociateAttributeGroupCommand = async (input, context) => {
|
|
123
123
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
124
|
const headers = {};
|
|
125
125
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -137,7 +137,7 @@ export const serializeAws_restJson1DisassociateAttributeGroupCommand = async (in
|
|
|
137
137
|
body,
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_DisassociateResourceCommand = async (input, context) => {
|
|
141
141
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
142
142
|
const headers = {};
|
|
143
143
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -156,7 +156,7 @@ export const serializeAws_restJson1DisassociateResourceCommand = async (input, c
|
|
|
156
156
|
body,
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_GetApplicationCommand = async (input, context) => {
|
|
160
160
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
161
|
const headers = {};
|
|
162
162
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}";
|
|
@@ -172,7 +172,7 @@ export const serializeAws_restJson1GetApplicationCommand = async (input, context
|
|
|
172
172
|
body,
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
|
-
export const
|
|
175
|
+
export const se_GetAssociatedResourceCommand = async (input, context) => {
|
|
176
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
177
177
|
const headers = {};
|
|
178
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -191,7 +191,7 @@ export const serializeAws_restJson1GetAssociatedResourceCommand = async (input,
|
|
|
191
191
|
body,
|
|
192
192
|
});
|
|
193
193
|
};
|
|
194
|
-
export const
|
|
194
|
+
export const se_GetAttributeGroupCommand = async (input, context) => {
|
|
195
195
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
196
|
const headers = {};
|
|
197
197
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups/{attributeGroup}";
|
|
@@ -207,7 +207,7 @@ export const serializeAws_restJson1GetAttributeGroupCommand = async (input, cont
|
|
|
207
207
|
body,
|
|
208
208
|
});
|
|
209
209
|
};
|
|
210
|
-
export const
|
|
210
|
+
export const se_GetConfigurationCommand = async (input, context) => {
|
|
211
211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
212
|
const headers = {
|
|
213
213
|
"content-type": "application/json",
|
|
@@ -225,7 +225,7 @@ export const serializeAws_restJson1GetConfigurationCommand = async (input, conte
|
|
|
225
225
|
body,
|
|
226
226
|
});
|
|
227
227
|
};
|
|
228
|
-
export const
|
|
228
|
+
export const se_ListApplicationsCommand = async (input, context) => {
|
|
229
229
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
230
|
const headers = {};
|
|
231
231
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
@@ -245,7 +245,7 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
|
|
|
245
245
|
body,
|
|
246
246
|
});
|
|
247
247
|
};
|
|
248
|
-
export const
|
|
248
|
+
export const se_ListAssociatedAttributeGroupsCommand = async (input, context) => {
|
|
249
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
250
|
const headers = {};
|
|
251
251
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -267,7 +267,7 @@ export const serializeAws_restJson1ListAssociatedAttributeGroupsCommand = async
|
|
|
267
267
|
body,
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
|
-
export const
|
|
270
|
+
export const se_ListAssociatedResourcesCommand = async (input, context) => {
|
|
271
271
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
272
272
|
const headers = {};
|
|
273
273
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{application}/resources";
|
|
@@ -288,7 +288,7 @@ export const serializeAws_restJson1ListAssociatedResourcesCommand = async (input
|
|
|
288
288
|
body,
|
|
289
289
|
});
|
|
290
290
|
};
|
|
291
|
-
export const
|
|
291
|
+
export const se_ListAttributeGroupsCommand = async (input, context) => {
|
|
292
292
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
293
293
|
const headers = {};
|
|
294
294
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attribute-groups";
|
|
@@ -308,7 +308,7 @@ export const serializeAws_restJson1ListAttributeGroupsCommand = async (input, co
|
|
|
308
308
|
body,
|
|
309
309
|
});
|
|
310
310
|
};
|
|
311
|
-
export const
|
|
311
|
+
export const se_ListAttributeGroupsForApplicationCommand = async (input, context) => {
|
|
312
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
313
313
|
const headers = {};
|
|
314
314
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -330,7 +330,7 @@ export const serializeAws_restJson1ListAttributeGroupsForApplicationCommand = as
|
|
|
330
330
|
body,
|
|
331
331
|
});
|
|
332
332
|
};
|
|
333
|
-
export const
|
|
333
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
334
334
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
335
|
const headers = {};
|
|
336
336
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -346,7 +346,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
346
346
|
body,
|
|
347
347
|
});
|
|
348
348
|
};
|
|
349
|
-
export const
|
|
349
|
+
export const se_PutConfigurationCommand = async (input, context) => {
|
|
350
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
351
351
|
const headers = {
|
|
352
352
|
"content-type": "application/json",
|
|
@@ -354,9 +354,7 @@ export const serializeAws_restJson1PutConfigurationCommand = async (input, conte
|
|
|
354
354
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
|
|
355
355
|
let body;
|
|
356
356
|
body = JSON.stringify({
|
|
357
|
-
...(input.configuration != null && {
|
|
358
|
-
configuration: serializeAws_restJson1AppRegistryConfiguration(input.configuration, context),
|
|
359
|
-
}),
|
|
357
|
+
...(input.configuration != null && { configuration: se_AppRegistryConfiguration(input.configuration, context) }),
|
|
360
358
|
});
|
|
361
359
|
return new __HttpRequest({
|
|
362
360
|
protocol,
|
|
@@ -368,7 +366,7 @@ export const serializeAws_restJson1PutConfigurationCommand = async (input, conte
|
|
|
368
366
|
body,
|
|
369
367
|
});
|
|
370
368
|
};
|
|
371
|
-
export const
|
|
369
|
+
export const se_SyncResourceCommand = async (input, context) => {
|
|
372
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
371
|
const headers = {};
|
|
374
372
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync/{resourceType}/{resource}";
|
|
@@ -385,7 +383,7 @@ export const serializeAws_restJson1SyncResourceCommand = async (input, context)
|
|
|
385
383
|
body,
|
|
386
384
|
});
|
|
387
385
|
};
|
|
388
|
-
export const
|
|
386
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
389
387
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
388
|
const headers = {
|
|
391
389
|
"content-type": "application/json",
|
|
@@ -394,7 +392,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
394
392
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
395
393
|
let body;
|
|
396
394
|
body = JSON.stringify({
|
|
397
|
-
...(input.tags != null && { tags:
|
|
395
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
398
396
|
});
|
|
399
397
|
return new __HttpRequest({
|
|
400
398
|
protocol,
|
|
@@ -406,7 +404,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
406
404
|
body,
|
|
407
405
|
});
|
|
408
406
|
};
|
|
409
|
-
export const
|
|
407
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
410
408
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
409
|
const headers = {};
|
|
412
410
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -429,7 +427,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
429
427
|
body,
|
|
430
428
|
});
|
|
431
429
|
};
|
|
432
|
-
export const
|
|
430
|
+
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
433
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
434
432
|
const headers = {
|
|
435
433
|
"content-type": "application/json",
|
|
@@ -451,7 +449,7 @@ export const serializeAws_restJson1UpdateApplicationCommand = async (input, cont
|
|
|
451
449
|
body,
|
|
452
450
|
});
|
|
453
451
|
};
|
|
454
|
-
export const
|
|
452
|
+
export const se_UpdateAttributeGroupCommand = async (input, context) => {
|
|
455
453
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
456
454
|
const headers = {
|
|
457
455
|
"content-type": "application/json",
|
|
@@ -474,9 +472,9 @@ export const serializeAws_restJson1UpdateAttributeGroupCommand = async (input, c
|
|
|
474
472
|
body,
|
|
475
473
|
});
|
|
476
474
|
};
|
|
477
|
-
export const
|
|
475
|
+
export const de_AssociateAttributeGroupCommand = async (output, context) => {
|
|
478
476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
479
|
-
return
|
|
477
|
+
return de_AssociateAttributeGroupCommandError(output, context);
|
|
480
478
|
}
|
|
481
479
|
const contents = map({
|
|
482
480
|
$metadata: deserializeMetadata(output),
|
|
@@ -490,7 +488,7 @@ export const deserializeAws_restJson1AssociateAttributeGroupCommand = async (out
|
|
|
490
488
|
}
|
|
491
489
|
return contents;
|
|
492
490
|
};
|
|
493
|
-
const
|
|
491
|
+
const de_AssociateAttributeGroupCommandError = async (output, context) => {
|
|
494
492
|
const parsedOutput = {
|
|
495
493
|
...output,
|
|
496
494
|
body: await parseErrorBody(output.body, context),
|
|
@@ -499,19 +497,19 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
499
497
|
switch (errorCode) {
|
|
500
498
|
case "ConflictException":
|
|
501
499
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
502
|
-
throw await
|
|
500
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
503
501
|
case "InternalServerException":
|
|
504
502
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
505
|
-
throw await
|
|
503
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
506
504
|
case "ResourceNotFoundException":
|
|
507
505
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
508
|
-
throw await
|
|
506
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
509
507
|
case "ServiceQuotaExceededException":
|
|
510
508
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
511
|
-
throw await
|
|
509
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
512
510
|
case "ValidationException":
|
|
513
511
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
514
|
-
throw await
|
|
512
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
515
513
|
default:
|
|
516
514
|
const parsedBody = parsedOutput.body;
|
|
517
515
|
throwDefaultError({
|
|
@@ -522,9 +520,9 @@ const deserializeAws_restJson1AssociateAttributeGroupCommandError = async (outpu
|
|
|
522
520
|
});
|
|
523
521
|
}
|
|
524
522
|
};
|
|
525
|
-
export const
|
|
523
|
+
export const de_AssociateResourceCommand = async (output, context) => {
|
|
526
524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
-
return
|
|
525
|
+
return de_AssociateResourceCommandError(output, context);
|
|
528
526
|
}
|
|
529
527
|
const contents = map({
|
|
530
528
|
$metadata: deserializeMetadata(output),
|
|
@@ -538,7 +536,7 @@ export const deserializeAws_restJson1AssociateResourceCommand = async (output, c
|
|
|
538
536
|
}
|
|
539
537
|
return contents;
|
|
540
538
|
};
|
|
541
|
-
const
|
|
539
|
+
const de_AssociateResourceCommandError = async (output, context) => {
|
|
542
540
|
const parsedOutput = {
|
|
543
541
|
...output,
|
|
544
542
|
body: await parseErrorBody(output.body, context),
|
|
@@ -547,22 +545,22 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
547
545
|
switch (errorCode) {
|
|
548
546
|
case "ConflictException":
|
|
549
547
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
550
|
-
throw await
|
|
548
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
551
549
|
case "InternalServerException":
|
|
552
550
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
553
|
-
throw await
|
|
551
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
554
552
|
case "ResourceNotFoundException":
|
|
555
553
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
556
|
-
throw await
|
|
554
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
557
555
|
case "ServiceQuotaExceededException":
|
|
558
556
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
559
|
-
throw await
|
|
557
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
560
558
|
case "ThrottlingException":
|
|
561
559
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
562
|
-
throw await
|
|
560
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
563
561
|
case "ValidationException":
|
|
564
562
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
565
|
-
throw await
|
|
563
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
566
564
|
default:
|
|
567
565
|
const parsedBody = parsedOutput.body;
|
|
568
566
|
throwDefaultError({
|
|
@@ -573,20 +571,20 @@ const deserializeAws_restJson1AssociateResourceCommandError = async (output, con
|
|
|
573
571
|
});
|
|
574
572
|
}
|
|
575
573
|
};
|
|
576
|
-
export const
|
|
574
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
577
575
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
578
|
-
return
|
|
576
|
+
return de_CreateApplicationCommandError(output, context);
|
|
579
577
|
}
|
|
580
578
|
const contents = map({
|
|
581
579
|
$metadata: deserializeMetadata(output),
|
|
582
580
|
});
|
|
583
581
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
584
582
|
if (data.application != null) {
|
|
585
|
-
contents.application =
|
|
583
|
+
contents.application = de_Application(data.application, context);
|
|
586
584
|
}
|
|
587
585
|
return contents;
|
|
588
586
|
};
|
|
589
|
-
const
|
|
587
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
590
588
|
const parsedOutput = {
|
|
591
589
|
...output,
|
|
592
590
|
body: await parseErrorBody(output.body, context),
|
|
@@ -595,19 +593,19 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
595
593
|
switch (errorCode) {
|
|
596
594
|
case "ConflictException":
|
|
597
595
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
598
|
-
throw await
|
|
596
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
599
597
|
case "InternalServerException":
|
|
600
598
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
601
|
-
throw await
|
|
599
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
602
600
|
case "ServiceQuotaExceededException":
|
|
603
601
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
604
|
-
throw await
|
|
602
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
605
603
|
case "ThrottlingException":
|
|
606
604
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
607
|
-
throw await
|
|
605
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
608
606
|
case "ValidationException":
|
|
609
607
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
610
|
-
throw await
|
|
608
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
611
609
|
default:
|
|
612
610
|
const parsedBody = parsedOutput.body;
|
|
613
611
|
throwDefaultError({
|
|
@@ -618,20 +616,20 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
618
616
|
});
|
|
619
617
|
}
|
|
620
618
|
};
|
|
621
|
-
export const
|
|
619
|
+
export const de_CreateAttributeGroupCommand = async (output, context) => {
|
|
622
620
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
623
|
-
return
|
|
621
|
+
return de_CreateAttributeGroupCommandError(output, context);
|
|
624
622
|
}
|
|
625
623
|
const contents = map({
|
|
626
624
|
$metadata: deserializeMetadata(output),
|
|
627
625
|
});
|
|
628
626
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
629
627
|
if (data.attributeGroup != null) {
|
|
630
|
-
contents.attributeGroup =
|
|
628
|
+
contents.attributeGroup = de_AttributeGroup(data.attributeGroup, context);
|
|
631
629
|
}
|
|
632
630
|
return contents;
|
|
633
631
|
};
|
|
634
|
-
const
|
|
632
|
+
const de_CreateAttributeGroupCommandError = async (output, context) => {
|
|
635
633
|
const parsedOutput = {
|
|
636
634
|
...output,
|
|
637
635
|
body: await parseErrorBody(output.body, context),
|
|
@@ -640,16 +638,16 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
640
638
|
switch (errorCode) {
|
|
641
639
|
case "ConflictException":
|
|
642
640
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
643
|
-
throw await
|
|
641
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
644
642
|
case "InternalServerException":
|
|
645
643
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
646
|
-
throw await
|
|
644
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
647
645
|
case "ServiceQuotaExceededException":
|
|
648
646
|
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
649
|
-
throw await
|
|
647
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
650
648
|
case "ValidationException":
|
|
651
649
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
652
|
-
throw await
|
|
650
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
653
651
|
default:
|
|
654
652
|
const parsedBody = parsedOutput.body;
|
|
655
653
|
throwDefaultError({
|
|
@@ -660,20 +658,20 @@ const deserializeAws_restJson1CreateAttributeGroupCommandError = async (output,
|
|
|
660
658
|
});
|
|
661
659
|
}
|
|
662
660
|
};
|
|
663
|
-
export const
|
|
661
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
664
662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
-
return
|
|
663
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
666
664
|
}
|
|
667
665
|
const contents = map({
|
|
668
666
|
$metadata: deserializeMetadata(output),
|
|
669
667
|
});
|
|
670
668
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
671
669
|
if (data.application != null) {
|
|
672
|
-
contents.application =
|
|
670
|
+
contents.application = de_ApplicationSummary(data.application, context);
|
|
673
671
|
}
|
|
674
672
|
return contents;
|
|
675
673
|
};
|
|
676
|
-
const
|
|
674
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
677
675
|
const parsedOutput = {
|
|
678
676
|
...output,
|
|
679
677
|
body: await parseErrorBody(output.body, context),
|
|
@@ -682,13 +680,13 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
682
680
|
switch (errorCode) {
|
|
683
681
|
case "InternalServerException":
|
|
684
682
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
685
|
-
throw await
|
|
683
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
686
684
|
case "ResourceNotFoundException":
|
|
687
685
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
688
|
-
throw await
|
|
686
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
689
687
|
case "ValidationException":
|
|
690
688
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
691
|
-
throw await
|
|
689
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
692
690
|
default:
|
|
693
691
|
const parsedBody = parsedOutput.body;
|
|
694
692
|
throwDefaultError({
|
|
@@ -699,20 +697,20 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
699
697
|
});
|
|
700
698
|
}
|
|
701
699
|
};
|
|
702
|
-
export const
|
|
700
|
+
export const de_DeleteAttributeGroupCommand = async (output, context) => {
|
|
703
701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
704
|
-
return
|
|
702
|
+
return de_DeleteAttributeGroupCommandError(output, context);
|
|
705
703
|
}
|
|
706
704
|
const contents = map({
|
|
707
705
|
$metadata: deserializeMetadata(output),
|
|
708
706
|
});
|
|
709
707
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
710
708
|
if (data.attributeGroup != null) {
|
|
711
|
-
contents.attributeGroup =
|
|
709
|
+
contents.attributeGroup = de_AttributeGroupSummary(data.attributeGroup, context);
|
|
712
710
|
}
|
|
713
711
|
return contents;
|
|
714
712
|
};
|
|
715
|
-
const
|
|
713
|
+
const de_DeleteAttributeGroupCommandError = async (output, context) => {
|
|
716
714
|
const parsedOutput = {
|
|
717
715
|
...output,
|
|
718
716
|
body: await parseErrorBody(output.body, context),
|
|
@@ -721,13 +719,13 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
721
719
|
switch (errorCode) {
|
|
722
720
|
case "InternalServerException":
|
|
723
721
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
724
|
-
throw await
|
|
722
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
725
723
|
case "ResourceNotFoundException":
|
|
726
724
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
727
|
-
throw await
|
|
725
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
726
|
case "ValidationException":
|
|
729
727
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
730
|
-
throw await
|
|
728
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
729
|
default:
|
|
732
730
|
const parsedBody = parsedOutput.body;
|
|
733
731
|
throwDefaultError({
|
|
@@ -738,9 +736,9 @@ const deserializeAws_restJson1DeleteAttributeGroupCommandError = async (output,
|
|
|
738
736
|
});
|
|
739
737
|
}
|
|
740
738
|
};
|
|
741
|
-
export const
|
|
739
|
+
export const de_DisassociateAttributeGroupCommand = async (output, context) => {
|
|
742
740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
-
return
|
|
741
|
+
return de_DisassociateAttributeGroupCommandError(output, context);
|
|
744
742
|
}
|
|
745
743
|
const contents = map({
|
|
746
744
|
$metadata: deserializeMetadata(output),
|
|
@@ -754,7 +752,7 @@ export const deserializeAws_restJson1DisassociateAttributeGroupCommand = async (
|
|
|
754
752
|
}
|
|
755
753
|
return contents;
|
|
756
754
|
};
|
|
757
|
-
const
|
|
755
|
+
const de_DisassociateAttributeGroupCommandError = async (output, context) => {
|
|
758
756
|
const parsedOutput = {
|
|
759
757
|
...output,
|
|
760
758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -763,13 +761,13 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
763
761
|
switch (errorCode) {
|
|
764
762
|
case "InternalServerException":
|
|
765
763
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
766
|
-
throw await
|
|
764
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
767
765
|
case "ResourceNotFoundException":
|
|
768
766
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
769
|
-
throw await
|
|
767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
770
768
|
case "ValidationException":
|
|
771
769
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
772
|
-
throw await
|
|
770
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
773
771
|
default:
|
|
774
772
|
const parsedBody = parsedOutput.body;
|
|
775
773
|
throwDefaultError({
|
|
@@ -780,9 +778,9 @@ const deserializeAws_restJson1DisassociateAttributeGroupCommandError = async (ou
|
|
|
780
778
|
});
|
|
781
779
|
}
|
|
782
780
|
};
|
|
783
|
-
export const
|
|
781
|
+
export const de_DisassociateResourceCommand = async (output, context) => {
|
|
784
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
|
-
return
|
|
783
|
+
return de_DisassociateResourceCommandError(output, context);
|
|
786
784
|
}
|
|
787
785
|
const contents = map({
|
|
788
786
|
$metadata: deserializeMetadata(output),
|
|
@@ -796,7 +794,7 @@ export const deserializeAws_restJson1DisassociateResourceCommand = async (output
|
|
|
796
794
|
}
|
|
797
795
|
return contents;
|
|
798
796
|
};
|
|
799
|
-
const
|
|
797
|
+
const de_DisassociateResourceCommandError = async (output, context) => {
|
|
800
798
|
const parsedOutput = {
|
|
801
799
|
...output,
|
|
802
800
|
body: await parseErrorBody(output.body, context),
|
|
@@ -805,16 +803,16 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
805
803
|
switch (errorCode) {
|
|
806
804
|
case "InternalServerException":
|
|
807
805
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
808
|
-
throw await
|
|
806
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
809
807
|
case "ResourceNotFoundException":
|
|
810
808
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
811
|
-
throw await
|
|
809
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
812
810
|
case "ThrottlingException":
|
|
813
811
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
814
|
-
throw await
|
|
812
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
815
813
|
case "ValidationException":
|
|
816
814
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
817
|
-
throw await
|
|
815
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
818
816
|
default:
|
|
819
817
|
const parsedBody = parsedOutput.body;
|
|
820
818
|
throwDefaultError({
|
|
@@ -825,9 +823,9 @@ const deserializeAws_restJson1DisassociateResourceCommandError = async (output,
|
|
|
825
823
|
});
|
|
826
824
|
}
|
|
827
825
|
};
|
|
828
|
-
export const
|
|
826
|
+
export const de_GetApplicationCommand = async (output, context) => {
|
|
829
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
830
|
-
return
|
|
828
|
+
return de_GetApplicationCommandError(output, context);
|
|
831
829
|
}
|
|
832
830
|
const contents = map({
|
|
833
831
|
$metadata: deserializeMetadata(output),
|
|
@@ -849,7 +847,7 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
849
847
|
contents.id = __expectString(data.id);
|
|
850
848
|
}
|
|
851
849
|
if (data.integrations != null) {
|
|
852
|
-
contents.integrations =
|
|
850
|
+
contents.integrations = de_Integrations(data.integrations, context);
|
|
853
851
|
}
|
|
854
852
|
if (data.lastUpdateTime != null) {
|
|
855
853
|
contents.lastUpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastUpdateTime));
|
|
@@ -858,11 +856,11 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
858
856
|
contents.name = __expectString(data.name);
|
|
859
857
|
}
|
|
860
858
|
if (data.tags != null) {
|
|
861
|
-
contents.tags =
|
|
859
|
+
contents.tags = de_Tags(data.tags, context);
|
|
862
860
|
}
|
|
863
861
|
return contents;
|
|
864
862
|
};
|
|
865
|
-
const
|
|
863
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
866
864
|
const parsedOutput = {
|
|
867
865
|
...output,
|
|
868
866
|
body: await parseErrorBody(output.body, context),
|
|
@@ -871,16 +869,16 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
871
869
|
switch (errorCode) {
|
|
872
870
|
case "ConflictException":
|
|
873
871
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
874
|
-
throw await
|
|
872
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
875
873
|
case "InternalServerException":
|
|
876
874
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
877
|
-
throw await
|
|
875
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
878
876
|
case "ResourceNotFoundException":
|
|
879
877
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
880
|
-
throw await
|
|
878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
881
879
|
case "ValidationException":
|
|
882
880
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
883
|
-
throw await
|
|
881
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
884
882
|
default:
|
|
885
883
|
const parsedBody = parsedOutput.body;
|
|
886
884
|
throwDefaultError({
|
|
@@ -891,20 +889,20 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
891
889
|
});
|
|
892
890
|
}
|
|
893
891
|
};
|
|
894
|
-
export const
|
|
892
|
+
export const de_GetAssociatedResourceCommand = async (output, context) => {
|
|
895
893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
896
|
-
return
|
|
894
|
+
return de_GetAssociatedResourceCommandError(output, context);
|
|
897
895
|
}
|
|
898
896
|
const contents = map({
|
|
899
897
|
$metadata: deserializeMetadata(output),
|
|
900
898
|
});
|
|
901
899
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
902
900
|
if (data.resource != null) {
|
|
903
|
-
contents.resource =
|
|
901
|
+
contents.resource = de_Resource(data.resource, context);
|
|
904
902
|
}
|
|
905
903
|
return contents;
|
|
906
904
|
};
|
|
907
|
-
const
|
|
905
|
+
const de_GetAssociatedResourceCommandError = async (output, context) => {
|
|
908
906
|
const parsedOutput = {
|
|
909
907
|
...output,
|
|
910
908
|
body: await parseErrorBody(output.body, context),
|
|
@@ -913,13 +911,13 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
913
911
|
switch (errorCode) {
|
|
914
912
|
case "InternalServerException":
|
|
915
913
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
916
|
-
throw await
|
|
914
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
917
915
|
case "ResourceNotFoundException":
|
|
918
916
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
919
|
-
throw await
|
|
917
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
920
918
|
case "ValidationException":
|
|
921
919
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
922
|
-
throw await
|
|
920
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
923
921
|
default:
|
|
924
922
|
const parsedBody = parsedOutput.body;
|
|
925
923
|
throwDefaultError({
|
|
@@ -930,9 +928,9 @@ const deserializeAws_restJson1GetAssociatedResourceCommandError = async (output,
|
|
|
930
928
|
});
|
|
931
929
|
}
|
|
932
930
|
};
|
|
933
|
-
export const
|
|
931
|
+
export const de_GetAttributeGroupCommand = async (output, context) => {
|
|
934
932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
933
|
+
return de_GetAttributeGroupCommandError(output, context);
|
|
936
934
|
}
|
|
937
935
|
const contents = map({
|
|
938
936
|
$metadata: deserializeMetadata(output),
|
|
@@ -963,11 +961,11 @@ export const deserializeAws_restJson1GetAttributeGroupCommand = async (output, c
|
|
|
963
961
|
contents.name = __expectString(data.name);
|
|
964
962
|
}
|
|
965
963
|
if (data.tags != null) {
|
|
966
|
-
contents.tags =
|
|
964
|
+
contents.tags = de_Tags(data.tags, context);
|
|
967
965
|
}
|
|
968
966
|
return contents;
|
|
969
967
|
};
|
|
970
|
-
const
|
|
968
|
+
const de_GetAttributeGroupCommandError = async (output, context) => {
|
|
971
969
|
const parsedOutput = {
|
|
972
970
|
...output,
|
|
973
971
|
body: await parseErrorBody(output.body, context),
|
|
@@ -976,16 +974,16 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
976
974
|
switch (errorCode) {
|
|
977
975
|
case "ConflictException":
|
|
978
976
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
979
|
-
throw await
|
|
977
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
980
978
|
case "InternalServerException":
|
|
981
979
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
982
|
-
throw await
|
|
980
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
983
981
|
case "ResourceNotFoundException":
|
|
984
982
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
985
|
-
throw await
|
|
983
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
984
|
case "ValidationException":
|
|
987
985
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
988
|
-
throw await
|
|
986
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
989
987
|
default:
|
|
990
988
|
const parsedBody = parsedOutput.body;
|
|
991
989
|
throwDefaultError({
|
|
@@ -996,20 +994,20 @@ const deserializeAws_restJson1GetAttributeGroupCommandError = async (output, con
|
|
|
996
994
|
});
|
|
997
995
|
}
|
|
998
996
|
};
|
|
999
|
-
export const
|
|
997
|
+
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1000
998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
999
|
+
return de_GetConfigurationCommandError(output, context);
|
|
1002
1000
|
}
|
|
1003
1001
|
const contents = map({
|
|
1004
1002
|
$metadata: deserializeMetadata(output),
|
|
1005
1003
|
});
|
|
1006
1004
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1007
1005
|
if (data.configuration != null) {
|
|
1008
|
-
contents.configuration =
|
|
1006
|
+
contents.configuration = de_AppRegistryConfiguration(data.configuration, context);
|
|
1009
1007
|
}
|
|
1010
1008
|
return contents;
|
|
1011
1009
|
};
|
|
1012
|
-
const
|
|
1010
|
+
const de_GetConfigurationCommandError = async (output, context) => {
|
|
1013
1011
|
const parsedOutput = {
|
|
1014
1012
|
...output,
|
|
1015
1013
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1018,7 +1016,7 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1018
1016
|
switch (errorCode) {
|
|
1019
1017
|
case "InternalServerException":
|
|
1020
1018
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1021
|
-
throw await
|
|
1019
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1022
1020
|
default:
|
|
1023
1021
|
const parsedBody = parsedOutput.body;
|
|
1024
1022
|
throwDefaultError({
|
|
@@ -1029,23 +1027,23 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1029
1027
|
});
|
|
1030
1028
|
}
|
|
1031
1029
|
};
|
|
1032
|
-
export const
|
|
1030
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
1033
1031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
1032
|
+
return de_ListApplicationsCommandError(output, context);
|
|
1035
1033
|
}
|
|
1036
1034
|
const contents = map({
|
|
1037
1035
|
$metadata: deserializeMetadata(output),
|
|
1038
1036
|
});
|
|
1039
1037
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1040
1038
|
if (data.applications != null) {
|
|
1041
|
-
contents.applications =
|
|
1039
|
+
contents.applications = de_ApplicationSummaries(data.applications, context);
|
|
1042
1040
|
}
|
|
1043
1041
|
if (data.nextToken != null) {
|
|
1044
1042
|
contents.nextToken = __expectString(data.nextToken);
|
|
1045
1043
|
}
|
|
1046
1044
|
return contents;
|
|
1047
1045
|
};
|
|
1048
|
-
const
|
|
1046
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
1049
1047
|
const parsedOutput = {
|
|
1050
1048
|
...output,
|
|
1051
1049
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1054,10 +1052,10 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1054
1052
|
switch (errorCode) {
|
|
1055
1053
|
case "InternalServerException":
|
|
1056
1054
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1057
|
-
throw await
|
|
1055
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1058
1056
|
case "ValidationException":
|
|
1059
1057
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1060
|
-
throw await
|
|
1058
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1061
1059
|
default:
|
|
1062
1060
|
const parsedBody = parsedOutput.body;
|
|
1063
1061
|
throwDefaultError({
|
|
@@ -1068,23 +1066,23 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
1068
1066
|
});
|
|
1069
1067
|
}
|
|
1070
1068
|
};
|
|
1071
|
-
export const
|
|
1069
|
+
export const de_ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
1072
1070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return
|
|
1071
|
+
return de_ListAssociatedAttributeGroupsCommandError(output, context);
|
|
1074
1072
|
}
|
|
1075
1073
|
const contents = map({
|
|
1076
1074
|
$metadata: deserializeMetadata(output),
|
|
1077
1075
|
});
|
|
1078
1076
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1079
1077
|
if (data.attributeGroups != null) {
|
|
1080
|
-
contents.attributeGroups =
|
|
1078
|
+
contents.attributeGroups = de_AttributeGroupIds(data.attributeGroups, context);
|
|
1081
1079
|
}
|
|
1082
1080
|
if (data.nextToken != null) {
|
|
1083
1081
|
contents.nextToken = __expectString(data.nextToken);
|
|
1084
1082
|
}
|
|
1085
1083
|
return contents;
|
|
1086
1084
|
};
|
|
1087
|
-
const
|
|
1085
|
+
const de_ListAssociatedAttributeGroupsCommandError = async (output, context) => {
|
|
1088
1086
|
const parsedOutput = {
|
|
1089
1087
|
...output,
|
|
1090
1088
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1093,13 +1091,13 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1093
1091
|
switch (errorCode) {
|
|
1094
1092
|
case "InternalServerException":
|
|
1095
1093
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1096
|
-
throw await
|
|
1094
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
1095
|
case "ResourceNotFoundException":
|
|
1098
1096
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1099
|
-
throw await
|
|
1097
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
1098
|
case "ValidationException":
|
|
1101
1099
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1102
|
-
throw await
|
|
1100
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1103
1101
|
default:
|
|
1104
1102
|
const parsedBody = parsedOutput.body;
|
|
1105
1103
|
throwDefaultError({
|
|
@@ -1110,9 +1108,9 @@ const deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = async
|
|
|
1110
1108
|
});
|
|
1111
1109
|
}
|
|
1112
1110
|
};
|
|
1113
|
-
export const
|
|
1111
|
+
export const de_ListAssociatedResourcesCommand = async (output, context) => {
|
|
1114
1112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
1113
|
+
return de_ListAssociatedResourcesCommandError(output, context);
|
|
1116
1114
|
}
|
|
1117
1115
|
const contents = map({
|
|
1118
1116
|
$metadata: deserializeMetadata(output),
|
|
@@ -1122,11 +1120,11 @@ export const deserializeAws_restJson1ListAssociatedResourcesCommand = async (out
|
|
|
1122
1120
|
contents.nextToken = __expectString(data.nextToken);
|
|
1123
1121
|
}
|
|
1124
1122
|
if (data.resources != null) {
|
|
1125
|
-
contents.resources =
|
|
1123
|
+
contents.resources = de_Resources(data.resources, context);
|
|
1126
1124
|
}
|
|
1127
1125
|
return contents;
|
|
1128
1126
|
};
|
|
1129
|
-
const
|
|
1127
|
+
const de_ListAssociatedResourcesCommandError = async (output, context) => {
|
|
1130
1128
|
const parsedOutput = {
|
|
1131
1129
|
...output,
|
|
1132
1130
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1135,13 +1133,13 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1135
1133
|
switch (errorCode) {
|
|
1136
1134
|
case "InternalServerException":
|
|
1137
1135
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1138
|
-
throw await
|
|
1136
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1139
1137
|
case "ResourceNotFoundException":
|
|
1140
1138
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1141
|
-
throw await
|
|
1139
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1142
1140
|
case "ValidationException":
|
|
1143
1141
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1144
|
-
throw await
|
|
1142
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
1143
|
default:
|
|
1146
1144
|
const parsedBody = parsedOutput.body;
|
|
1147
1145
|
throwDefaultError({
|
|
@@ -1152,23 +1150,23 @@ const deserializeAws_restJson1ListAssociatedResourcesCommandError = async (outpu
|
|
|
1152
1150
|
});
|
|
1153
1151
|
}
|
|
1154
1152
|
};
|
|
1155
|
-
export const
|
|
1153
|
+
export const de_ListAttributeGroupsCommand = async (output, context) => {
|
|
1156
1154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
1155
|
+
return de_ListAttributeGroupsCommandError(output, context);
|
|
1158
1156
|
}
|
|
1159
1157
|
const contents = map({
|
|
1160
1158
|
$metadata: deserializeMetadata(output),
|
|
1161
1159
|
});
|
|
1162
1160
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1163
1161
|
if (data.attributeGroups != null) {
|
|
1164
|
-
contents.attributeGroups =
|
|
1162
|
+
contents.attributeGroups = de_AttributeGroupSummaries(data.attributeGroups, context);
|
|
1165
1163
|
}
|
|
1166
1164
|
if (data.nextToken != null) {
|
|
1167
1165
|
contents.nextToken = __expectString(data.nextToken);
|
|
1168
1166
|
}
|
|
1169
1167
|
return contents;
|
|
1170
1168
|
};
|
|
1171
|
-
const
|
|
1169
|
+
const de_ListAttributeGroupsCommandError = async (output, context) => {
|
|
1172
1170
|
const parsedOutput = {
|
|
1173
1171
|
...output,
|
|
1174
1172
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1177,10 +1175,10 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
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 "ValidationException":
|
|
1182
1180
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1183
|
-
throw await
|
|
1181
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1184
1182
|
default:
|
|
1185
1183
|
const parsedBody = parsedOutput.body;
|
|
1186
1184
|
throwDefaultError({
|
|
@@ -1191,23 +1189,23 @@ const deserializeAws_restJson1ListAttributeGroupsCommandError = async (output, c
|
|
|
1191
1189
|
});
|
|
1192
1190
|
}
|
|
1193
1191
|
};
|
|
1194
|
-
export const
|
|
1192
|
+
export const de_ListAttributeGroupsForApplicationCommand = async (output, context) => {
|
|
1195
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
1194
|
+
return de_ListAttributeGroupsForApplicationCommandError(output, context);
|
|
1197
1195
|
}
|
|
1198
1196
|
const contents = map({
|
|
1199
1197
|
$metadata: deserializeMetadata(output),
|
|
1200
1198
|
});
|
|
1201
1199
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1202
1200
|
if (data.attributeGroupsDetails != null) {
|
|
1203
|
-
contents.attributeGroupsDetails =
|
|
1201
|
+
contents.attributeGroupsDetails = de_AttributeGroupDetailsList(data.attributeGroupsDetails, context);
|
|
1204
1202
|
}
|
|
1205
1203
|
if (data.nextToken != null) {
|
|
1206
1204
|
contents.nextToken = __expectString(data.nextToken);
|
|
1207
1205
|
}
|
|
1208
1206
|
return contents;
|
|
1209
1207
|
};
|
|
1210
|
-
const
|
|
1208
|
+
const de_ListAttributeGroupsForApplicationCommandError = async (output, context) => {
|
|
1211
1209
|
const parsedOutput = {
|
|
1212
1210
|
...output,
|
|
1213
1211
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1216,13 +1214,13 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1216
1214
|
switch (errorCode) {
|
|
1217
1215
|
case "InternalServerException":
|
|
1218
1216
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1219
|
-
throw await
|
|
1217
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1220
1218
|
case "ResourceNotFoundException":
|
|
1221
1219
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1222
|
-
throw await
|
|
1220
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1223
1221
|
case "ValidationException":
|
|
1224
1222
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1225
|
-
throw await
|
|
1223
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1226
1224
|
default:
|
|
1227
1225
|
const parsedBody = parsedOutput.body;
|
|
1228
1226
|
throwDefaultError({
|
|
@@ -1233,20 +1231,20 @@ const deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = as
|
|
|
1233
1231
|
});
|
|
1234
1232
|
}
|
|
1235
1233
|
};
|
|
1236
|
-
export const
|
|
1234
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1237
1235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
-
return
|
|
1236
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1239
1237
|
}
|
|
1240
1238
|
const contents = map({
|
|
1241
1239
|
$metadata: deserializeMetadata(output),
|
|
1242
1240
|
});
|
|
1243
1241
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1244
1242
|
if (data.tags != null) {
|
|
1245
|
-
contents.tags =
|
|
1243
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1246
1244
|
}
|
|
1247
1245
|
return contents;
|
|
1248
1246
|
};
|
|
1249
|
-
const
|
|
1247
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1250
1248
|
const parsedOutput = {
|
|
1251
1249
|
...output,
|
|
1252
1250
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1255,13 +1253,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1255
1253
|
switch (errorCode) {
|
|
1256
1254
|
case "InternalServerException":
|
|
1257
1255
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1258
|
-
throw await
|
|
1256
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1259
1257
|
case "ResourceNotFoundException":
|
|
1260
1258
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1261
|
-
throw await
|
|
1259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1262
1260
|
case "ValidationException":
|
|
1263
1261
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1264
|
-
throw await
|
|
1262
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1265
1263
|
default:
|
|
1266
1264
|
const parsedBody = parsedOutput.body;
|
|
1267
1265
|
throwDefaultError({
|
|
@@ -1272,9 +1270,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1272
1270
|
});
|
|
1273
1271
|
}
|
|
1274
1272
|
};
|
|
1275
|
-
export const
|
|
1273
|
+
export const de_PutConfigurationCommand = async (output, context) => {
|
|
1276
1274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1277
|
-
return
|
|
1275
|
+
return de_PutConfigurationCommandError(output, context);
|
|
1278
1276
|
}
|
|
1279
1277
|
const contents = map({
|
|
1280
1278
|
$metadata: deserializeMetadata(output),
|
|
@@ -1282,7 +1280,7 @@ export const deserializeAws_restJson1PutConfigurationCommand = async (output, co
|
|
|
1282
1280
|
await collectBody(output.body, context);
|
|
1283
1281
|
return contents;
|
|
1284
1282
|
};
|
|
1285
|
-
const
|
|
1283
|
+
const de_PutConfigurationCommandError = async (output, context) => {
|
|
1286
1284
|
const parsedOutput = {
|
|
1287
1285
|
...output,
|
|
1288
1286
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1291,13 +1289,13 @@ const deserializeAws_restJson1PutConfigurationCommandError = async (output, cont
|
|
|
1291
1289
|
switch (errorCode) {
|
|
1292
1290
|
case "ConflictException":
|
|
1293
1291
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1294
|
-
throw await
|
|
1292
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1295
1293
|
case "InternalServerException":
|
|
1296
1294
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1297
|
-
throw await
|
|
1295
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
1296
|
case "ValidationException":
|
|
1299
1297
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1300
|
-
throw await
|
|
1298
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1301
1299
|
default:
|
|
1302
1300
|
const parsedBody = parsedOutput.body;
|
|
1303
1301
|
throwDefaultError({
|
|
@@ -1308,9 +1306,9 @@ const deserializeAws_restJson1PutConfigurationCommandError = async (output, cont
|
|
|
1308
1306
|
});
|
|
1309
1307
|
}
|
|
1310
1308
|
};
|
|
1311
|
-
export const
|
|
1309
|
+
export const de_SyncResourceCommand = async (output, context) => {
|
|
1312
1310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1313
|
-
return
|
|
1311
|
+
return de_SyncResourceCommandError(output, context);
|
|
1314
1312
|
}
|
|
1315
1313
|
const contents = map({
|
|
1316
1314
|
$metadata: deserializeMetadata(output),
|
|
@@ -1327,7 +1325,7 @@ export const deserializeAws_restJson1SyncResourceCommand = async (output, contex
|
|
|
1327
1325
|
}
|
|
1328
1326
|
return contents;
|
|
1329
1327
|
};
|
|
1330
|
-
const
|
|
1328
|
+
const de_SyncResourceCommandError = async (output, context) => {
|
|
1331
1329
|
const parsedOutput = {
|
|
1332
1330
|
...output,
|
|
1333
1331
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1336,19 +1334,19 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1336
1334
|
switch (errorCode) {
|
|
1337
1335
|
case "ConflictException":
|
|
1338
1336
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1339
|
-
throw await
|
|
1337
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1340
1338
|
case "InternalServerException":
|
|
1341
1339
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1342
|
-
throw await
|
|
1340
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1343
1341
|
case "ResourceNotFoundException":
|
|
1344
1342
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1345
|
-
throw await
|
|
1343
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1346
1344
|
case "ThrottlingException":
|
|
1347
1345
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1348
|
-
throw await
|
|
1346
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1349
1347
|
case "ValidationException":
|
|
1350
1348
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1351
|
-
throw await
|
|
1349
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1352
1350
|
default:
|
|
1353
1351
|
const parsedBody = parsedOutput.body;
|
|
1354
1352
|
throwDefaultError({
|
|
@@ -1359,9 +1357,9 @@ const deserializeAws_restJson1SyncResourceCommandError = async (output, context)
|
|
|
1359
1357
|
});
|
|
1360
1358
|
}
|
|
1361
1359
|
};
|
|
1362
|
-
export const
|
|
1360
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1363
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1362
|
+
return de_TagResourceCommandError(output, context);
|
|
1365
1363
|
}
|
|
1366
1364
|
const contents = map({
|
|
1367
1365
|
$metadata: deserializeMetadata(output),
|
|
@@ -1369,7 +1367,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1369
1367
|
await collectBody(output.body, context);
|
|
1370
1368
|
return contents;
|
|
1371
1369
|
};
|
|
1372
|
-
const
|
|
1370
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1373
1371
|
const parsedOutput = {
|
|
1374
1372
|
...output,
|
|
1375
1373
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1378,13 +1376,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1378
1376
|
switch (errorCode) {
|
|
1379
1377
|
case "InternalServerException":
|
|
1380
1378
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1381
|
-
throw await
|
|
1379
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1382
1380
|
case "ResourceNotFoundException":
|
|
1383
1381
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1384
|
-
throw await
|
|
1382
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
1383
|
case "ValidationException":
|
|
1386
1384
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1387
|
-
throw await
|
|
1385
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1388
1386
|
default:
|
|
1389
1387
|
const parsedBody = parsedOutput.body;
|
|
1390
1388
|
throwDefaultError({
|
|
@@ -1395,9 +1393,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1395
1393
|
});
|
|
1396
1394
|
}
|
|
1397
1395
|
};
|
|
1398
|
-
export const
|
|
1396
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1399
1397
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1398
|
+
return de_UntagResourceCommandError(output, context);
|
|
1401
1399
|
}
|
|
1402
1400
|
const contents = map({
|
|
1403
1401
|
$metadata: deserializeMetadata(output),
|
|
@@ -1405,7 +1403,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1405
1403
|
await collectBody(output.body, context);
|
|
1406
1404
|
return contents;
|
|
1407
1405
|
};
|
|
1408
|
-
const
|
|
1406
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1409
1407
|
const parsedOutput = {
|
|
1410
1408
|
...output,
|
|
1411
1409
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1414,13 +1412,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1414
1412
|
switch (errorCode) {
|
|
1415
1413
|
case "InternalServerException":
|
|
1416
1414
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1417
|
-
throw await
|
|
1415
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1418
1416
|
case "ResourceNotFoundException":
|
|
1419
1417
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1420
|
-
throw await
|
|
1418
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1421
1419
|
case "ValidationException":
|
|
1422
1420
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1423
|
-
throw await
|
|
1421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1424
1422
|
default:
|
|
1425
1423
|
const parsedBody = parsedOutput.body;
|
|
1426
1424
|
throwDefaultError({
|
|
@@ -1431,20 +1429,20 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1431
1429
|
});
|
|
1432
1430
|
}
|
|
1433
1431
|
};
|
|
1434
|
-
export const
|
|
1432
|
+
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
1435
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1434
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
1437
1435
|
}
|
|
1438
1436
|
const contents = map({
|
|
1439
1437
|
$metadata: deserializeMetadata(output),
|
|
1440
1438
|
});
|
|
1441
1439
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1442
1440
|
if (data.application != null) {
|
|
1443
|
-
contents.application =
|
|
1441
|
+
contents.application = de_Application(data.application, context);
|
|
1444
1442
|
}
|
|
1445
1443
|
return contents;
|
|
1446
1444
|
};
|
|
1447
|
-
const
|
|
1445
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1448
1446
|
const parsedOutput = {
|
|
1449
1447
|
...output,
|
|
1450
1448
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1453,19 +1451,19 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1453
1451
|
switch (errorCode) {
|
|
1454
1452
|
case "ConflictException":
|
|
1455
1453
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1456
|
-
throw await
|
|
1454
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1457
1455
|
case "InternalServerException":
|
|
1458
1456
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1459
|
-
throw await
|
|
1457
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1460
1458
|
case "ResourceNotFoundException":
|
|
1461
1459
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1462
|
-
throw await
|
|
1460
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1463
1461
|
case "ThrottlingException":
|
|
1464
1462
|
case "com.amazonaws.servicecatalogappregistry#ThrottlingException":
|
|
1465
|
-
throw await
|
|
1463
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1466
1464
|
case "ValidationException":
|
|
1467
1465
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1468
|
-
throw await
|
|
1466
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
1467
|
default:
|
|
1470
1468
|
const parsedBody = parsedOutput.body;
|
|
1471
1469
|
throwDefaultError({
|
|
@@ -1476,20 +1474,20 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
1476
1474
|
});
|
|
1477
1475
|
}
|
|
1478
1476
|
};
|
|
1479
|
-
export const
|
|
1477
|
+
export const de_UpdateAttributeGroupCommand = async (output, context) => {
|
|
1480
1478
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1479
|
+
return de_UpdateAttributeGroupCommandError(output, context);
|
|
1482
1480
|
}
|
|
1483
1481
|
const contents = map({
|
|
1484
1482
|
$metadata: deserializeMetadata(output),
|
|
1485
1483
|
});
|
|
1486
1484
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1487
1485
|
if (data.attributeGroup != null) {
|
|
1488
|
-
contents.attributeGroup =
|
|
1486
|
+
contents.attributeGroup = de_AttributeGroup(data.attributeGroup, context);
|
|
1489
1487
|
}
|
|
1490
1488
|
return contents;
|
|
1491
1489
|
};
|
|
1492
|
-
const
|
|
1490
|
+
const de_UpdateAttributeGroupCommandError = async (output, context) => {
|
|
1493
1491
|
const parsedOutput = {
|
|
1494
1492
|
...output,
|
|
1495
1493
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1498,16 +1496,16 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1498
1496
|
switch (errorCode) {
|
|
1499
1497
|
case "ConflictException":
|
|
1500
1498
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
1501
|
-
throw await
|
|
1499
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1502
1500
|
case "InternalServerException":
|
|
1503
1501
|
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1504
|
-
throw await
|
|
1502
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1505
1503
|
case "ResourceNotFoundException":
|
|
1506
1504
|
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1507
|
-
throw await
|
|
1505
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1508
1506
|
case "ValidationException":
|
|
1509
1507
|
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
1510
|
-
throw await
|
|
1508
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1511
1509
|
default:
|
|
1512
1510
|
const parsedBody = parsedOutput.body;
|
|
1513
1511
|
throwDefaultError({
|
|
@@ -1519,7 +1517,7 @@ const deserializeAws_restJson1UpdateAttributeGroupCommandError = async (output,
|
|
|
1519
1517
|
}
|
|
1520
1518
|
};
|
|
1521
1519
|
const map = __map;
|
|
1522
|
-
const
|
|
1520
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1523
1521
|
const contents = map({});
|
|
1524
1522
|
const data = parsedOutput.body;
|
|
1525
1523
|
if (data.message != null) {
|
|
@@ -1531,7 +1529,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1531
1529
|
});
|
|
1532
1530
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1533
1531
|
};
|
|
1534
|
-
const
|
|
1532
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1535
1533
|
const contents = map({});
|
|
1536
1534
|
const data = parsedOutput.body;
|
|
1537
1535
|
if (data.message != null) {
|
|
@@ -1543,7 +1541,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1543
1541
|
});
|
|
1544
1542
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1545
1543
|
};
|
|
1546
|
-
const
|
|
1544
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1547
1545
|
const contents = map({});
|
|
1548
1546
|
const data = parsedOutput.body;
|
|
1549
1547
|
if (data.message != null) {
|
|
@@ -1555,7 +1553,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1555
1553
|
});
|
|
1556
1554
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1557
1555
|
};
|
|
1558
|
-
const
|
|
1556
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1559
1557
|
const contents = map({});
|
|
1560
1558
|
const data = parsedOutput.body;
|
|
1561
1559
|
if (data.message != null) {
|
|
@@ -1567,7 +1565,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1567
1565
|
});
|
|
1568
1566
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1569
1567
|
};
|
|
1570
|
-
const
|
|
1568
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1571
1569
|
const contents = map({});
|
|
1572
1570
|
const data = parsedOutput.body;
|
|
1573
1571
|
if (data.message != null) {
|
|
@@ -1582,7 +1580,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1582
1580
|
});
|
|
1583
1581
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1584
1582
|
};
|
|
1585
|
-
const
|
|
1583
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1586
1584
|
const contents = map({});
|
|
1587
1585
|
const data = parsedOutput.body;
|
|
1588
1586
|
if (data.message != null) {
|
|
@@ -1594,19 +1592,19 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1594
1592
|
});
|
|
1595
1593
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1596
1594
|
};
|
|
1597
|
-
const
|
|
1595
|
+
const se_AppRegistryConfiguration = (input, context) => {
|
|
1598
1596
|
return {
|
|
1599
1597
|
...(input.tagQueryConfiguration != null && {
|
|
1600
|
-
tagQueryConfiguration:
|
|
1598
|
+
tagQueryConfiguration: se_TagQueryConfiguration(input.tagQueryConfiguration, context),
|
|
1601
1599
|
}),
|
|
1602
1600
|
};
|
|
1603
1601
|
};
|
|
1604
|
-
const
|
|
1602
|
+
const se_TagQueryConfiguration = (input, context) => {
|
|
1605
1603
|
return {
|
|
1606
1604
|
...(input.tagKey != null && { tagKey: input.tagKey }),
|
|
1607
1605
|
};
|
|
1608
1606
|
};
|
|
1609
|
-
const
|
|
1607
|
+
const se_Tags = (input, context) => {
|
|
1610
1608
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1611
1609
|
if (value === null) {
|
|
1612
1610
|
return acc;
|
|
@@ -1615,7 +1613,7 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1615
1613
|
return acc;
|
|
1616
1614
|
}, {});
|
|
1617
1615
|
};
|
|
1618
|
-
const
|
|
1616
|
+
const de_Application = (output, context) => {
|
|
1619
1617
|
return {
|
|
1620
1618
|
arn: __expectString(output.arn),
|
|
1621
1619
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
@@ -1625,21 +1623,21 @@ const deserializeAws_restJson1Application = (output, context) => {
|
|
|
1625
1623
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.lastUpdateTime))
|
|
1626
1624
|
: undefined,
|
|
1627
1625
|
name: __expectString(output.name),
|
|
1628
|
-
tags: output.tags != null ?
|
|
1626
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1629
1627
|
};
|
|
1630
1628
|
};
|
|
1631
|
-
const
|
|
1629
|
+
const de_ApplicationSummaries = (output, context) => {
|
|
1632
1630
|
const retVal = (output || [])
|
|
1633
1631
|
.filter((e) => e != null)
|
|
1634
1632
|
.map((entry) => {
|
|
1635
1633
|
if (entry === null) {
|
|
1636
1634
|
return null;
|
|
1637
1635
|
}
|
|
1638
|
-
return
|
|
1636
|
+
return de_ApplicationSummary(entry, context);
|
|
1639
1637
|
});
|
|
1640
1638
|
return retVal;
|
|
1641
1639
|
};
|
|
1642
|
-
const
|
|
1640
|
+
const de_ApplicationSummary = (output, context) => {
|
|
1643
1641
|
return {
|
|
1644
1642
|
arn: __expectString(output.arn),
|
|
1645
1643
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
@@ -1651,14 +1649,14 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1651
1649
|
name: __expectString(output.name),
|
|
1652
1650
|
};
|
|
1653
1651
|
};
|
|
1654
|
-
const
|
|
1652
|
+
const de_AppRegistryConfiguration = (output, context) => {
|
|
1655
1653
|
return {
|
|
1656
1654
|
tagQueryConfiguration: output.tagQueryConfiguration != null
|
|
1657
|
-
?
|
|
1655
|
+
? de_TagQueryConfiguration(output.tagQueryConfiguration, context)
|
|
1658
1656
|
: undefined,
|
|
1659
1657
|
};
|
|
1660
1658
|
};
|
|
1661
|
-
const
|
|
1659
|
+
const de_AttributeGroup = (output, context) => {
|
|
1662
1660
|
return {
|
|
1663
1661
|
arn: __expectString(output.arn),
|
|
1664
1662
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
@@ -1668,10 +1666,10 @@ const deserializeAws_restJson1AttributeGroup = (output, context) => {
|
|
|
1668
1666
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.lastUpdateTime))
|
|
1669
1667
|
: undefined,
|
|
1670
1668
|
name: __expectString(output.name),
|
|
1671
|
-
tags: output.tags != null ?
|
|
1669
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1672
1670
|
};
|
|
1673
1671
|
};
|
|
1674
|
-
const
|
|
1672
|
+
const de_AttributeGroupDetails = (output, context) => {
|
|
1675
1673
|
return {
|
|
1676
1674
|
arn: __expectString(output.arn),
|
|
1677
1675
|
createdBy: __expectString(output.createdBy),
|
|
@@ -1679,18 +1677,18 @@ const deserializeAws_restJson1AttributeGroupDetails = (output, context) => {
|
|
|
1679
1677
|
name: __expectString(output.name),
|
|
1680
1678
|
};
|
|
1681
1679
|
};
|
|
1682
|
-
const
|
|
1680
|
+
const de_AttributeGroupDetailsList = (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_AttributeGroupDetails(entry, context);
|
|
1690
1688
|
});
|
|
1691
1689
|
return retVal;
|
|
1692
1690
|
};
|
|
1693
|
-
const
|
|
1691
|
+
const de_AttributeGroupIds = (output, context) => {
|
|
1694
1692
|
const retVal = (output || [])
|
|
1695
1693
|
.filter((e) => e != null)
|
|
1696
1694
|
.map((entry) => {
|
|
@@ -1701,18 +1699,18 @@ const deserializeAws_restJson1AttributeGroupIds = (output, context) => {
|
|
|
1701
1699
|
});
|
|
1702
1700
|
return retVal;
|
|
1703
1701
|
};
|
|
1704
|
-
const
|
|
1702
|
+
const de_AttributeGroupSummaries = (output, context) => {
|
|
1705
1703
|
const retVal = (output || [])
|
|
1706
1704
|
.filter((e) => e != null)
|
|
1707
1705
|
.map((entry) => {
|
|
1708
1706
|
if (entry === null) {
|
|
1709
1707
|
return null;
|
|
1710
1708
|
}
|
|
1711
|
-
return
|
|
1709
|
+
return de_AttributeGroupSummary(entry, context);
|
|
1712
1710
|
});
|
|
1713
1711
|
return retVal;
|
|
1714
1712
|
};
|
|
1715
|
-
const
|
|
1713
|
+
const de_AttributeGroupSummary = (output, context) => {
|
|
1716
1714
|
return {
|
|
1717
1715
|
arn: __expectString(output.arn),
|
|
1718
1716
|
createdBy: __expectString(output.createdBy),
|
|
@@ -1725,67 +1723,63 @@ const deserializeAws_restJson1AttributeGroupSummary = (output, context) => {
|
|
|
1725
1723
|
name: __expectString(output.name),
|
|
1726
1724
|
};
|
|
1727
1725
|
};
|
|
1728
|
-
const
|
|
1726
|
+
const de_Integrations = (output, context) => {
|
|
1729
1727
|
return {
|
|
1730
|
-
resourceGroup: output.resourceGroup != null ?
|
|
1728
|
+
resourceGroup: output.resourceGroup != null ? de_ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1731
1729
|
};
|
|
1732
1730
|
};
|
|
1733
|
-
const
|
|
1731
|
+
const de_Resource = (output, context) => {
|
|
1734
1732
|
return {
|
|
1735
1733
|
arn: __expectString(output.arn),
|
|
1736
1734
|
associationTime: output.associationTime != null
|
|
1737
1735
|
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.associationTime))
|
|
1738
1736
|
: undefined,
|
|
1739
|
-
integrations: output.integrations != null
|
|
1740
|
-
? deserializeAws_restJson1ResourceIntegrations(output.integrations, context)
|
|
1741
|
-
: undefined,
|
|
1737
|
+
integrations: output.integrations != null ? de_ResourceIntegrations(output.integrations, context) : undefined,
|
|
1742
1738
|
name: __expectString(output.name),
|
|
1743
1739
|
};
|
|
1744
1740
|
};
|
|
1745
|
-
const
|
|
1741
|
+
const de_ResourceDetails = (output, context) => {
|
|
1746
1742
|
return {
|
|
1747
1743
|
tagValue: __expectString(output.tagValue),
|
|
1748
1744
|
};
|
|
1749
1745
|
};
|
|
1750
|
-
const
|
|
1746
|
+
const de_ResourceGroup = (output, context) => {
|
|
1751
1747
|
return {
|
|
1752
1748
|
arn: __expectString(output.arn),
|
|
1753
1749
|
errorMessage: __expectString(output.errorMessage),
|
|
1754
1750
|
state: __expectString(output.state),
|
|
1755
1751
|
};
|
|
1756
1752
|
};
|
|
1757
|
-
const
|
|
1753
|
+
const de_ResourceInfo = (output, context) => {
|
|
1758
1754
|
return {
|
|
1759
1755
|
arn: __expectString(output.arn),
|
|
1760
1756
|
name: __expectString(output.name),
|
|
1761
|
-
resourceDetails: output.resourceDetails != null
|
|
1762
|
-
? deserializeAws_restJson1ResourceDetails(output.resourceDetails, context)
|
|
1763
|
-
: undefined,
|
|
1757
|
+
resourceDetails: output.resourceDetails != null ? de_ResourceDetails(output.resourceDetails, context) : undefined,
|
|
1764
1758
|
resourceType: __expectString(output.resourceType),
|
|
1765
1759
|
};
|
|
1766
1760
|
};
|
|
1767
|
-
const
|
|
1761
|
+
const de_ResourceIntegrations = (output, context) => {
|
|
1768
1762
|
return {
|
|
1769
|
-
resourceGroup: output.resourceGroup != null ?
|
|
1763
|
+
resourceGroup: output.resourceGroup != null ? de_ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1770
1764
|
};
|
|
1771
1765
|
};
|
|
1772
|
-
const
|
|
1766
|
+
const de_Resources = (output, context) => {
|
|
1773
1767
|
const retVal = (output || [])
|
|
1774
1768
|
.filter((e) => e != null)
|
|
1775
1769
|
.map((entry) => {
|
|
1776
1770
|
if (entry === null) {
|
|
1777
1771
|
return null;
|
|
1778
1772
|
}
|
|
1779
|
-
return
|
|
1773
|
+
return de_ResourceInfo(entry, context);
|
|
1780
1774
|
});
|
|
1781
1775
|
return retVal;
|
|
1782
1776
|
};
|
|
1783
|
-
const
|
|
1777
|
+
const de_TagQueryConfiguration = (output, context) => {
|
|
1784
1778
|
return {
|
|
1785
1779
|
tagKey: __expectString(output.tagKey),
|
|
1786
1780
|
};
|
|
1787
1781
|
};
|
|
1788
|
-
const
|
|
1782
|
+
const de_Tags = (output, context) => {
|
|
1789
1783
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1790
1784
|
if (value === null) {
|
|
1791
1785
|
return acc;
|