@aws-sdk/client-ssm-sap 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/DeleteResourcePermissionCommand.js +2 -2
- package/dist-cjs/commands/DeregisterApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetComponentCommand.js +2 -2
- package/dist-cjs/commands/GetDatabaseCommand.js +2 -2
- package/dist-cjs/commands/GetOperationCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePermissionCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/ListComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListDatabasesCommand.js +2 -2
- package/dist-cjs/commands/ListOperationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePermissionCommand.js +2 -2
- package/dist-cjs/commands/RegisterApplicationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationSettingsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +214 -218
- package/dist-es/commands/DeleteResourcePermissionCommand.js +3 -3
- package/dist-es/commands/DeregisterApplicationCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetComponentCommand.js +3 -3
- package/dist-es/commands/GetDatabaseCommand.js +3 -3
- package/dist-es/commands/GetOperationCommand.js +3 -3
- package/dist-es/commands/GetResourcePermissionCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/ListComponentsCommand.js +3 -3
- package/dist-es/commands/ListDatabasesCommand.js +3 -3
- package/dist-es/commands/ListOperationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutResourcePermissionCommand.js +3 -3
- package/dist-es/commands/RegisterApplicationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationSettingsCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +179 -183
- package/dist-types/protocols/Aws_restJson1.d.ts +136 -34
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +34 -34
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateApplicationSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterApplicationCommand = exports.de_PutResourcePermissionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOperationsCommand = exports.de_ListDatabasesCommand = exports.de_ListComponentsCommand = exports.de_ListApplicationsCommand = exports.de_GetResourcePermissionCommand = exports.de_GetOperationCommand = exports.de_GetDatabaseCommand = exports.de_GetComponentCommand = exports.de_GetApplicationCommand = exports.de_DeregisterApplicationCommand = exports.de_DeleteResourcePermissionCommand = exports.se_UpdateApplicationSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterApplicationCommand = exports.se_PutResourcePermissionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOperationsCommand = exports.se_ListDatabasesCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_GetResourcePermissionCommand = exports.se_GetOperationCommand = exports.se_GetDatabaseCommand = exports.se_GetComponentCommand = exports.se_GetApplicationCommand = exports.se_DeregisterApplicationCommand = exports.se_DeleteResourcePermissionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SsmSapServiceException_1 = require("../models/SsmSapServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_DeleteResourcePermissionCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -27,8 +27,8 @@ const serializeAws_restJson1DeleteResourcePermissionCommand = async (input, cont
|
|
|
27
27
|
body,
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
31
|
-
const
|
|
30
|
+
exports.se_DeleteResourcePermissionCommand = se_DeleteResourcePermissionCommand;
|
|
31
|
+
const se_DeregisterApplicationCommand = async (input, context) => {
|
|
32
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/json",
|
|
@@ -48,8 +48,8 @@ const serializeAws_restJson1DeregisterApplicationCommand = async (input, context
|
|
|
48
48
|
body,
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
|
-
exports.
|
|
52
|
-
const
|
|
51
|
+
exports.se_DeregisterApplicationCommand = se_DeregisterApplicationCommand;
|
|
52
|
+
const se_GetApplicationCommand = async (input, context) => {
|
|
53
53
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
54
54
|
const headers = {
|
|
55
55
|
"content-type": "application/json",
|
|
@@ -71,8 +71,8 @@ const serializeAws_restJson1GetApplicationCommand = async (input, context) => {
|
|
|
71
71
|
body,
|
|
72
72
|
});
|
|
73
73
|
};
|
|
74
|
-
exports.
|
|
75
|
-
const
|
|
74
|
+
exports.se_GetApplicationCommand = se_GetApplicationCommand;
|
|
75
|
+
const se_GetComponentCommand = async (input, context) => {
|
|
76
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
77
77
|
const headers = {
|
|
78
78
|
"content-type": "application/json",
|
|
@@ -93,8 +93,8 @@ const serializeAws_restJson1GetComponentCommand = async (input, context) => {
|
|
|
93
93
|
body,
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
exports.
|
|
97
|
-
const
|
|
96
|
+
exports.se_GetComponentCommand = se_GetComponentCommand;
|
|
97
|
+
const se_GetDatabaseCommand = async (input, context) => {
|
|
98
98
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/json",
|
|
@@ -117,8 +117,8 @@ const serializeAws_restJson1GetDatabaseCommand = async (input, context) => {
|
|
|
117
117
|
body,
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
-
exports.
|
|
121
|
-
const
|
|
120
|
+
exports.se_GetDatabaseCommand = se_GetDatabaseCommand;
|
|
121
|
+
const se_GetOperationCommand = async (input, context) => {
|
|
122
122
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/json",
|
|
@@ -138,8 +138,8 @@ const serializeAws_restJson1GetOperationCommand = async (input, context) => {
|
|
|
138
138
|
body,
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
exports.
|
|
142
|
-
const
|
|
141
|
+
exports.se_GetOperationCommand = se_GetOperationCommand;
|
|
142
|
+
const se_GetResourcePermissionCommand = async (input, context) => {
|
|
143
143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
144
144
|
const headers = {
|
|
145
145
|
"content-type": "application/json",
|
|
@@ -160,8 +160,8 @@ const serializeAws_restJson1GetResourcePermissionCommand = async (input, context
|
|
|
160
160
|
body,
|
|
161
161
|
});
|
|
162
162
|
};
|
|
163
|
-
exports.
|
|
164
|
-
const
|
|
163
|
+
exports.se_GetResourcePermissionCommand = se_GetResourcePermissionCommand;
|
|
164
|
+
const se_ListApplicationsCommand = async (input, context) => {
|
|
165
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
166
166
|
const headers = {
|
|
167
167
|
"content-type": "application/json",
|
|
@@ -182,8 +182,8 @@ const serializeAws_restJson1ListApplicationsCommand = async (input, context) =>
|
|
|
182
182
|
body,
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
|
-
exports.
|
|
186
|
-
const
|
|
185
|
+
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
186
|
+
const se_ListComponentsCommand = async (input, context) => {
|
|
187
187
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
188
188
|
const headers = {
|
|
189
189
|
"content-type": "application/json",
|
|
@@ -205,8 +205,8 @@ const serializeAws_restJson1ListComponentsCommand = async (input, context) => {
|
|
|
205
205
|
body,
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
209
|
+
const se_ListDatabasesCommand = async (input, context) => {
|
|
210
210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
211
|
const headers = {
|
|
212
212
|
"content-type": "application/json",
|
|
@@ -229,8 +229,8 @@ const serializeAws_restJson1ListDatabasesCommand = async (input, context) => {
|
|
|
229
229
|
body,
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
|
-
exports.
|
|
233
|
-
const
|
|
232
|
+
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
233
|
+
const se_ListOperationsCommand = async (input, context) => {
|
|
234
234
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
235
235
|
const headers = {
|
|
236
236
|
"content-type": "application/json",
|
|
@@ -239,7 +239,7 @@ const serializeAws_restJson1ListOperationsCommand = async (input, context) => {
|
|
|
239
239
|
let body;
|
|
240
240
|
body = JSON.stringify({
|
|
241
241
|
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
242
|
-
...(input.Filters != null && { Filters:
|
|
242
|
+
...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
|
|
243
243
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
244
244
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
245
245
|
});
|
|
@@ -253,8 +253,8 @@ const serializeAws_restJson1ListOperationsCommand = async (input, context) => {
|
|
|
253
253
|
body,
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
|
-
exports.
|
|
257
|
-
const
|
|
256
|
+
exports.se_ListOperationsCommand = se_ListOperationsCommand;
|
|
257
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
258
258
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
259
259
|
const headers = {};
|
|
260
260
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -270,8 +270,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
270
270
|
body,
|
|
271
271
|
});
|
|
272
272
|
};
|
|
273
|
-
exports.
|
|
274
|
-
const
|
|
273
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
274
|
+
const se_PutResourcePermissionCommand = async (input, context) => {
|
|
275
275
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
276
276
|
const headers = {
|
|
277
277
|
"content-type": "application/json",
|
|
@@ -293,8 +293,8 @@ const serializeAws_restJson1PutResourcePermissionCommand = async (input, context
|
|
|
293
293
|
body,
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
|
-
exports.
|
|
297
|
-
const
|
|
296
|
+
exports.se_PutResourcePermissionCommand = se_PutResourcePermissionCommand;
|
|
297
|
+
const se_RegisterApplicationCommand = async (input, context) => {
|
|
298
298
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
299
299
|
const headers = {
|
|
300
300
|
"content-type": "application/json",
|
|
@@ -304,13 +304,11 @@ const serializeAws_restJson1RegisterApplicationCommand = async (input, context)
|
|
|
304
304
|
body = JSON.stringify({
|
|
305
305
|
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
306
306
|
...(input.ApplicationType != null && { ApplicationType: input.ApplicationType }),
|
|
307
|
-
...(input.Credentials != null && {
|
|
308
|
-
|
|
309
|
-
}),
|
|
310
|
-
...(input.Instances != null && { Instances: serializeAws_restJson1InstanceList(input.Instances, context) }),
|
|
307
|
+
...(input.Credentials != null && { Credentials: se_ApplicationCredentialList(input.Credentials, context) }),
|
|
308
|
+
...(input.Instances != null && { Instances: se_InstanceList(input.Instances, context) }),
|
|
311
309
|
...(input.SapInstanceNumber != null && { SapInstanceNumber: input.SapInstanceNumber }),
|
|
312
310
|
...(input.Sid != null && { Sid: input.Sid }),
|
|
313
|
-
...(input.Tags != null && { Tags:
|
|
311
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
314
312
|
});
|
|
315
313
|
return new protocol_http_1.HttpRequest({
|
|
316
314
|
protocol,
|
|
@@ -322,8 +320,8 @@ const serializeAws_restJson1RegisterApplicationCommand = async (input, context)
|
|
|
322
320
|
body,
|
|
323
321
|
});
|
|
324
322
|
};
|
|
325
|
-
exports.
|
|
326
|
-
const
|
|
323
|
+
exports.se_RegisterApplicationCommand = se_RegisterApplicationCommand;
|
|
324
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
327
325
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
328
326
|
const headers = {
|
|
329
327
|
"content-type": "application/json",
|
|
@@ -332,7 +330,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
332
330
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
333
331
|
let body;
|
|
334
332
|
body = JSON.stringify({
|
|
335
|
-
...(input.tags != null && { tags:
|
|
333
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
336
334
|
});
|
|
337
335
|
return new protocol_http_1.HttpRequest({
|
|
338
336
|
protocol,
|
|
@@ -344,8 +342,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
344
342
|
body,
|
|
345
343
|
});
|
|
346
344
|
};
|
|
347
|
-
exports.
|
|
348
|
-
const
|
|
345
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
346
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
349
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
350
348
|
const headers = {};
|
|
351
349
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -368,8 +366,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
368
366
|
body,
|
|
369
367
|
});
|
|
370
368
|
};
|
|
371
|
-
exports.
|
|
372
|
-
const
|
|
369
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
370
|
+
const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
373
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
372
|
const headers = {
|
|
375
373
|
"content-type": "application/json",
|
|
@@ -379,10 +377,10 @@ const serializeAws_restJson1UpdateApplicationSettingsCommand = async (input, con
|
|
|
379
377
|
body = JSON.stringify({
|
|
380
378
|
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
381
379
|
...(input.CredentialsToAddOrUpdate != null && {
|
|
382
|
-
CredentialsToAddOrUpdate:
|
|
380
|
+
CredentialsToAddOrUpdate: se_ApplicationCredentialList(input.CredentialsToAddOrUpdate, context),
|
|
383
381
|
}),
|
|
384
382
|
...(input.CredentialsToRemove != null && {
|
|
385
|
-
CredentialsToRemove:
|
|
383
|
+
CredentialsToRemove: se_ApplicationCredentialList(input.CredentialsToRemove, context),
|
|
386
384
|
}),
|
|
387
385
|
});
|
|
388
386
|
return new protocol_http_1.HttpRequest({
|
|
@@ -395,10 +393,10 @@ const serializeAws_restJson1UpdateApplicationSettingsCommand = async (input, con
|
|
|
395
393
|
body,
|
|
396
394
|
});
|
|
397
395
|
};
|
|
398
|
-
exports.
|
|
399
|
-
const
|
|
396
|
+
exports.se_UpdateApplicationSettingsCommand = se_UpdateApplicationSettingsCommand;
|
|
397
|
+
const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
400
398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
401
|
-
return
|
|
399
|
+
return de_DeleteResourcePermissionCommandError(output, context);
|
|
402
400
|
}
|
|
403
401
|
const contents = map({
|
|
404
402
|
$metadata: deserializeMetadata(output),
|
|
@@ -409,8 +407,8 @@ const deserializeAws_restJson1DeleteResourcePermissionCommand = async (output, c
|
|
|
409
407
|
}
|
|
410
408
|
return contents;
|
|
411
409
|
};
|
|
412
|
-
exports.
|
|
413
|
-
const
|
|
410
|
+
exports.de_DeleteResourcePermissionCommand = de_DeleteResourcePermissionCommand;
|
|
411
|
+
const de_DeleteResourcePermissionCommandError = async (output, context) => {
|
|
414
412
|
const parsedOutput = {
|
|
415
413
|
...output,
|
|
416
414
|
body: await parseErrorBody(output.body, context),
|
|
@@ -419,13 +417,13 @@ const deserializeAws_restJson1DeleteResourcePermissionCommandError = async (outp
|
|
|
419
417
|
switch (errorCode) {
|
|
420
418
|
case "InternalServerException":
|
|
421
419
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
422
|
-
throw await
|
|
420
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
423
421
|
case "ResourceNotFoundException":
|
|
424
422
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
425
|
-
throw await
|
|
423
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
426
424
|
case "ValidationException":
|
|
427
425
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
428
|
-
throw await
|
|
426
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
429
427
|
default:
|
|
430
428
|
const parsedBody = parsedOutput.body;
|
|
431
429
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -436,9 +434,9 @@ const deserializeAws_restJson1DeleteResourcePermissionCommandError = async (outp
|
|
|
436
434
|
});
|
|
437
435
|
}
|
|
438
436
|
};
|
|
439
|
-
const
|
|
437
|
+
const de_DeregisterApplicationCommand = async (output, context) => {
|
|
440
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return
|
|
439
|
+
return de_DeregisterApplicationCommandError(output, context);
|
|
442
440
|
}
|
|
443
441
|
const contents = map({
|
|
444
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -446,8 +444,8 @@ const deserializeAws_restJson1DeregisterApplicationCommand = async (output, cont
|
|
|
446
444
|
await collectBody(output.body, context);
|
|
447
445
|
return contents;
|
|
448
446
|
};
|
|
449
|
-
exports.
|
|
450
|
-
const
|
|
447
|
+
exports.de_DeregisterApplicationCommand = de_DeregisterApplicationCommand;
|
|
448
|
+
const de_DeregisterApplicationCommandError = async (output, context) => {
|
|
451
449
|
const parsedOutput = {
|
|
452
450
|
...output,
|
|
453
451
|
body: await parseErrorBody(output.body, context),
|
|
@@ -456,10 +454,10 @@ const deserializeAws_restJson1DeregisterApplicationCommandError = async (output,
|
|
|
456
454
|
switch (errorCode) {
|
|
457
455
|
case "InternalServerException":
|
|
458
456
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
459
|
-
throw await
|
|
457
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
460
458
|
case "ValidationException":
|
|
461
459
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
462
|
-
throw await
|
|
460
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
463
461
|
default:
|
|
464
462
|
const parsedBody = parsedOutput.body;
|
|
465
463
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -470,24 +468,24 @@ const deserializeAws_restJson1DeregisterApplicationCommandError = async (output,
|
|
|
470
468
|
});
|
|
471
469
|
}
|
|
472
470
|
};
|
|
473
|
-
const
|
|
471
|
+
const de_GetApplicationCommand = async (output, context) => {
|
|
474
472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
475
|
-
return
|
|
473
|
+
return de_GetApplicationCommandError(output, context);
|
|
476
474
|
}
|
|
477
475
|
const contents = map({
|
|
478
476
|
$metadata: deserializeMetadata(output),
|
|
479
477
|
});
|
|
480
478
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
481
479
|
if (data.Application != null) {
|
|
482
|
-
contents.Application =
|
|
480
|
+
contents.Application = de_Application(data.Application, context);
|
|
483
481
|
}
|
|
484
482
|
if (data.Tags != null) {
|
|
485
|
-
contents.Tags =
|
|
483
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
486
484
|
}
|
|
487
485
|
return contents;
|
|
488
486
|
};
|
|
489
|
-
exports.
|
|
490
|
-
const
|
|
487
|
+
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
488
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
491
489
|
const parsedOutput = {
|
|
492
490
|
...output,
|
|
493
491
|
body: await parseErrorBody(output.body, context),
|
|
@@ -496,10 +494,10 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
496
494
|
switch (errorCode) {
|
|
497
495
|
case "InternalServerException":
|
|
498
496
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
499
|
-
throw await
|
|
497
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
500
498
|
case "ValidationException":
|
|
501
499
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
502
|
-
throw await
|
|
500
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
503
501
|
default:
|
|
504
502
|
const parsedBody = parsedOutput.body;
|
|
505
503
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -510,21 +508,21 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
510
508
|
});
|
|
511
509
|
}
|
|
512
510
|
};
|
|
513
|
-
const
|
|
511
|
+
const de_GetComponentCommand = async (output, context) => {
|
|
514
512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
515
|
-
return
|
|
513
|
+
return de_GetComponentCommandError(output, context);
|
|
516
514
|
}
|
|
517
515
|
const contents = map({
|
|
518
516
|
$metadata: deserializeMetadata(output),
|
|
519
517
|
});
|
|
520
518
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
521
519
|
if (data.Component != null) {
|
|
522
|
-
contents.Component =
|
|
520
|
+
contents.Component = de_Component(data.Component, context);
|
|
523
521
|
}
|
|
524
522
|
return contents;
|
|
525
523
|
};
|
|
526
|
-
exports.
|
|
527
|
-
const
|
|
524
|
+
exports.de_GetComponentCommand = de_GetComponentCommand;
|
|
525
|
+
const de_GetComponentCommandError = async (output, context) => {
|
|
528
526
|
const parsedOutput = {
|
|
529
527
|
...output,
|
|
530
528
|
body: await parseErrorBody(output.body, context),
|
|
@@ -533,10 +531,10 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
533
531
|
switch (errorCode) {
|
|
534
532
|
case "InternalServerException":
|
|
535
533
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
536
|
-
throw await
|
|
534
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
537
535
|
case "ValidationException":
|
|
538
536
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
539
|
-
throw await
|
|
537
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
540
538
|
default:
|
|
541
539
|
const parsedBody = parsedOutput.body;
|
|
542
540
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -547,24 +545,24 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
547
545
|
});
|
|
548
546
|
}
|
|
549
547
|
};
|
|
550
|
-
const
|
|
548
|
+
const de_GetDatabaseCommand = async (output, context) => {
|
|
551
549
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
552
|
-
return
|
|
550
|
+
return de_GetDatabaseCommandError(output, context);
|
|
553
551
|
}
|
|
554
552
|
const contents = map({
|
|
555
553
|
$metadata: deserializeMetadata(output),
|
|
556
554
|
});
|
|
557
555
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
558
556
|
if (data.Database != null) {
|
|
559
|
-
contents.Database =
|
|
557
|
+
contents.Database = de_Database(data.Database, context);
|
|
560
558
|
}
|
|
561
559
|
if (data.Tags != null) {
|
|
562
|
-
contents.Tags =
|
|
560
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
563
561
|
}
|
|
564
562
|
return contents;
|
|
565
563
|
};
|
|
566
|
-
exports.
|
|
567
|
-
const
|
|
564
|
+
exports.de_GetDatabaseCommand = de_GetDatabaseCommand;
|
|
565
|
+
const de_GetDatabaseCommandError = async (output, context) => {
|
|
568
566
|
const parsedOutput = {
|
|
569
567
|
...output,
|
|
570
568
|
body: await parseErrorBody(output.body, context),
|
|
@@ -573,10 +571,10 @@ const deserializeAws_restJson1GetDatabaseCommandError = async (output, context)
|
|
|
573
571
|
switch (errorCode) {
|
|
574
572
|
case "InternalServerException":
|
|
575
573
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
576
|
-
throw await
|
|
574
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
575
|
case "ValidationException":
|
|
578
576
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
579
|
-
throw await
|
|
577
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
580
578
|
default:
|
|
581
579
|
const parsedBody = parsedOutput.body;
|
|
582
580
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -587,21 +585,21 @@ const deserializeAws_restJson1GetDatabaseCommandError = async (output, context)
|
|
|
587
585
|
});
|
|
588
586
|
}
|
|
589
587
|
};
|
|
590
|
-
const
|
|
588
|
+
const de_GetOperationCommand = async (output, context) => {
|
|
591
589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
-
return
|
|
590
|
+
return de_GetOperationCommandError(output, context);
|
|
593
591
|
}
|
|
594
592
|
const contents = map({
|
|
595
593
|
$metadata: deserializeMetadata(output),
|
|
596
594
|
});
|
|
597
595
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
598
596
|
if (data.Operation != null) {
|
|
599
|
-
contents.Operation =
|
|
597
|
+
contents.Operation = de_Operation(data.Operation, context);
|
|
600
598
|
}
|
|
601
599
|
return contents;
|
|
602
600
|
};
|
|
603
|
-
exports.
|
|
604
|
-
const
|
|
601
|
+
exports.de_GetOperationCommand = de_GetOperationCommand;
|
|
602
|
+
const de_GetOperationCommandError = async (output, context) => {
|
|
605
603
|
const parsedOutput = {
|
|
606
604
|
...output,
|
|
607
605
|
body: await parseErrorBody(output.body, context),
|
|
@@ -610,10 +608,10 @@ const deserializeAws_restJson1GetOperationCommandError = async (output, context)
|
|
|
610
608
|
switch (errorCode) {
|
|
611
609
|
case "InternalServerException":
|
|
612
610
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
613
|
-
throw await
|
|
611
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
614
612
|
case "ValidationException":
|
|
615
613
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
616
|
-
throw await
|
|
614
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
617
615
|
default:
|
|
618
616
|
const parsedBody = parsedOutput.body;
|
|
619
617
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -624,9 +622,9 @@ const deserializeAws_restJson1GetOperationCommandError = async (output, context)
|
|
|
624
622
|
});
|
|
625
623
|
}
|
|
626
624
|
};
|
|
627
|
-
const
|
|
625
|
+
const de_GetResourcePermissionCommand = async (output, context) => {
|
|
628
626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return
|
|
627
|
+
return de_GetResourcePermissionCommandError(output, context);
|
|
630
628
|
}
|
|
631
629
|
const contents = map({
|
|
632
630
|
$metadata: deserializeMetadata(output),
|
|
@@ -637,8 +635,8 @@ const deserializeAws_restJson1GetResourcePermissionCommand = async (output, cont
|
|
|
637
635
|
}
|
|
638
636
|
return contents;
|
|
639
637
|
};
|
|
640
|
-
exports.
|
|
641
|
-
const
|
|
638
|
+
exports.de_GetResourcePermissionCommand = de_GetResourcePermissionCommand;
|
|
639
|
+
const de_GetResourcePermissionCommandError = async (output, context) => {
|
|
642
640
|
const parsedOutput = {
|
|
643
641
|
...output,
|
|
644
642
|
body: await parseErrorBody(output.body, context),
|
|
@@ -647,13 +645,13 @@ const deserializeAws_restJson1GetResourcePermissionCommandError = async (output,
|
|
|
647
645
|
switch (errorCode) {
|
|
648
646
|
case "InternalServerException":
|
|
649
647
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
650
|
-
throw await
|
|
648
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
651
649
|
case "ResourceNotFoundException":
|
|
652
650
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
653
|
-
throw await
|
|
651
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
654
652
|
case "ValidationException":
|
|
655
653
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
656
|
-
throw await
|
|
654
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
657
655
|
default:
|
|
658
656
|
const parsedBody = parsedOutput.body;
|
|
659
657
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -664,24 +662,24 @@ const deserializeAws_restJson1GetResourcePermissionCommandError = async (output,
|
|
|
664
662
|
});
|
|
665
663
|
}
|
|
666
664
|
};
|
|
667
|
-
const
|
|
665
|
+
const de_ListApplicationsCommand = async (output, context) => {
|
|
668
666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return
|
|
667
|
+
return de_ListApplicationsCommandError(output, context);
|
|
670
668
|
}
|
|
671
669
|
const contents = map({
|
|
672
670
|
$metadata: deserializeMetadata(output),
|
|
673
671
|
});
|
|
674
672
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
675
673
|
if (data.Applications != null) {
|
|
676
|
-
contents.Applications =
|
|
674
|
+
contents.Applications = de_ApplicationSummaryList(data.Applications, context);
|
|
677
675
|
}
|
|
678
676
|
if (data.NextToken != null) {
|
|
679
677
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
680
678
|
}
|
|
681
679
|
return contents;
|
|
682
680
|
};
|
|
683
|
-
exports.
|
|
684
|
-
const
|
|
681
|
+
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
682
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
685
683
|
const parsedOutput = {
|
|
686
684
|
...output,
|
|
687
685
|
body: await parseErrorBody(output.body, context),
|
|
@@ -690,13 +688,13 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
690
688
|
switch (errorCode) {
|
|
691
689
|
case "InternalServerException":
|
|
692
690
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
693
|
-
throw await
|
|
691
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
694
692
|
case "ResourceNotFoundException":
|
|
695
693
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
696
|
-
throw await
|
|
694
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
695
|
case "ValidationException":
|
|
698
696
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
699
|
-
throw await
|
|
697
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
698
|
default:
|
|
701
699
|
const parsedBody = parsedOutput.body;
|
|
702
700
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -707,24 +705,24 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
707
705
|
});
|
|
708
706
|
}
|
|
709
707
|
};
|
|
710
|
-
const
|
|
708
|
+
const de_ListComponentsCommand = async (output, context) => {
|
|
711
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
-
return
|
|
710
|
+
return de_ListComponentsCommandError(output, context);
|
|
713
711
|
}
|
|
714
712
|
const contents = map({
|
|
715
713
|
$metadata: deserializeMetadata(output),
|
|
716
714
|
});
|
|
717
715
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
718
716
|
if (data.Components != null) {
|
|
719
|
-
contents.Components =
|
|
717
|
+
contents.Components = de_ComponentSummaryList(data.Components, context);
|
|
720
718
|
}
|
|
721
719
|
if (data.NextToken != null) {
|
|
722
720
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
723
721
|
}
|
|
724
722
|
return contents;
|
|
725
723
|
};
|
|
726
|
-
exports.
|
|
727
|
-
const
|
|
724
|
+
exports.de_ListComponentsCommand = de_ListComponentsCommand;
|
|
725
|
+
const de_ListComponentsCommandError = async (output, context) => {
|
|
728
726
|
const parsedOutput = {
|
|
729
727
|
...output,
|
|
730
728
|
body: await parseErrorBody(output.body, context),
|
|
@@ -733,13 +731,13 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
733
731
|
switch (errorCode) {
|
|
734
732
|
case "InternalServerException":
|
|
735
733
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
736
|
-
throw await
|
|
734
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
737
735
|
case "ResourceNotFoundException":
|
|
738
736
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
739
|
-
throw await
|
|
737
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
740
738
|
case "ValidationException":
|
|
741
739
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
742
|
-
throw await
|
|
740
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
741
|
default:
|
|
744
742
|
const parsedBody = parsedOutput.body;
|
|
745
743
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -750,24 +748,24 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
750
748
|
});
|
|
751
749
|
}
|
|
752
750
|
};
|
|
753
|
-
const
|
|
751
|
+
const de_ListDatabasesCommand = async (output, context) => {
|
|
754
752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
753
|
+
return de_ListDatabasesCommandError(output, context);
|
|
756
754
|
}
|
|
757
755
|
const contents = map({
|
|
758
756
|
$metadata: deserializeMetadata(output),
|
|
759
757
|
});
|
|
760
758
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
761
759
|
if (data.Databases != null) {
|
|
762
|
-
contents.Databases =
|
|
760
|
+
contents.Databases = de_DatabaseSummaryList(data.Databases, context);
|
|
763
761
|
}
|
|
764
762
|
if (data.NextToken != null) {
|
|
765
763
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
766
764
|
}
|
|
767
765
|
return contents;
|
|
768
766
|
};
|
|
769
|
-
exports.
|
|
770
|
-
const
|
|
767
|
+
exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
|
|
768
|
+
const de_ListDatabasesCommandError = async (output, context) => {
|
|
771
769
|
const parsedOutput = {
|
|
772
770
|
...output,
|
|
773
771
|
body: await parseErrorBody(output.body, context),
|
|
@@ -776,13 +774,13 @@ const deserializeAws_restJson1ListDatabasesCommandError = async (output, context
|
|
|
776
774
|
switch (errorCode) {
|
|
777
775
|
case "InternalServerException":
|
|
778
776
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
779
|
-
throw await
|
|
777
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
780
778
|
case "ResourceNotFoundException":
|
|
781
779
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
782
|
-
throw await
|
|
780
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
783
781
|
case "ValidationException":
|
|
784
782
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
785
|
-
throw await
|
|
783
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
786
784
|
default:
|
|
787
785
|
const parsedBody = parsedOutput.body;
|
|
788
786
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -793,9 +791,9 @@ const deserializeAws_restJson1ListDatabasesCommandError = async (output, context
|
|
|
793
791
|
});
|
|
794
792
|
}
|
|
795
793
|
};
|
|
796
|
-
const
|
|
794
|
+
const de_ListOperationsCommand = async (output, context) => {
|
|
797
795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
-
return
|
|
796
|
+
return de_ListOperationsCommandError(output, context);
|
|
799
797
|
}
|
|
800
798
|
const contents = map({
|
|
801
799
|
$metadata: deserializeMetadata(output),
|
|
@@ -805,12 +803,12 @@ const deserializeAws_restJson1ListOperationsCommand = async (output, context) =>
|
|
|
805
803
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
806
804
|
}
|
|
807
805
|
if (data.Operations != null) {
|
|
808
|
-
contents.Operations =
|
|
806
|
+
contents.Operations = de_OperationList(data.Operations, context);
|
|
809
807
|
}
|
|
810
808
|
return contents;
|
|
811
809
|
};
|
|
812
|
-
exports.
|
|
813
|
-
const
|
|
810
|
+
exports.de_ListOperationsCommand = de_ListOperationsCommand;
|
|
811
|
+
const de_ListOperationsCommandError = async (output, context) => {
|
|
814
812
|
const parsedOutput = {
|
|
815
813
|
...output,
|
|
816
814
|
body: await parseErrorBody(output.body, context),
|
|
@@ -819,10 +817,10 @@ const deserializeAws_restJson1ListOperationsCommandError = async (output, contex
|
|
|
819
817
|
switch (errorCode) {
|
|
820
818
|
case "InternalServerException":
|
|
821
819
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
822
|
-
throw await
|
|
820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
823
821
|
case "ValidationException":
|
|
824
822
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
825
|
-
throw await
|
|
823
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
826
824
|
default:
|
|
827
825
|
const parsedBody = parsedOutput.body;
|
|
828
826
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -833,21 +831,21 @@ const deserializeAws_restJson1ListOperationsCommandError = async (output, contex
|
|
|
833
831
|
});
|
|
834
832
|
}
|
|
835
833
|
};
|
|
836
|
-
const
|
|
834
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
837
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
836
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
839
837
|
}
|
|
840
838
|
const contents = map({
|
|
841
839
|
$metadata: deserializeMetadata(output),
|
|
842
840
|
});
|
|
843
841
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
844
842
|
if (data.tags != null) {
|
|
845
|
-
contents.tags =
|
|
843
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
846
844
|
}
|
|
847
845
|
return contents;
|
|
848
846
|
};
|
|
849
|
-
exports.
|
|
850
|
-
const
|
|
847
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
848
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
851
849
|
const parsedOutput = {
|
|
852
850
|
...output,
|
|
853
851
|
body: await parseErrorBody(output.body, context),
|
|
@@ -856,13 +854,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
856
854
|
switch (errorCode) {
|
|
857
855
|
case "ConflictException":
|
|
858
856
|
case "com.amazonaws.ssmsap#ConflictException":
|
|
859
|
-
throw await
|
|
857
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
860
858
|
case "ResourceNotFoundException":
|
|
861
859
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
862
|
-
throw await
|
|
860
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
863
861
|
case "ValidationException":
|
|
864
862
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
865
|
-
throw await
|
|
863
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
866
864
|
default:
|
|
867
865
|
const parsedBody = parsedOutput.body;
|
|
868
866
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -873,9 +871,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
873
871
|
});
|
|
874
872
|
}
|
|
875
873
|
};
|
|
876
|
-
const
|
|
874
|
+
const de_PutResourcePermissionCommand = async (output, context) => {
|
|
877
875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
|
-
return
|
|
876
|
+
return de_PutResourcePermissionCommandError(output, context);
|
|
879
877
|
}
|
|
880
878
|
const contents = map({
|
|
881
879
|
$metadata: deserializeMetadata(output),
|
|
@@ -886,8 +884,8 @@ const deserializeAws_restJson1PutResourcePermissionCommand = async (output, cont
|
|
|
886
884
|
}
|
|
887
885
|
return contents;
|
|
888
886
|
};
|
|
889
|
-
exports.
|
|
890
|
-
const
|
|
887
|
+
exports.de_PutResourcePermissionCommand = de_PutResourcePermissionCommand;
|
|
888
|
+
const de_PutResourcePermissionCommandError = async (output, context) => {
|
|
891
889
|
const parsedOutput = {
|
|
892
890
|
...output,
|
|
893
891
|
body: await parseErrorBody(output.body, context),
|
|
@@ -896,13 +894,13 @@ const deserializeAws_restJson1PutResourcePermissionCommandError = async (output,
|
|
|
896
894
|
switch (errorCode) {
|
|
897
895
|
case "InternalServerException":
|
|
898
896
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
899
|
-
throw await
|
|
897
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
900
898
|
case "ResourceNotFoundException":
|
|
901
899
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
902
|
-
throw await
|
|
900
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
903
901
|
case "ValidationException":
|
|
904
902
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
905
|
-
throw await
|
|
903
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
906
904
|
default:
|
|
907
905
|
const parsedBody = parsedOutput.body;
|
|
908
906
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -913,24 +911,24 @@ const deserializeAws_restJson1PutResourcePermissionCommandError = async (output,
|
|
|
913
911
|
});
|
|
914
912
|
}
|
|
915
913
|
};
|
|
916
|
-
const
|
|
914
|
+
const de_RegisterApplicationCommand = async (output, context) => {
|
|
917
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
918
|
-
return
|
|
916
|
+
return de_RegisterApplicationCommandError(output, context);
|
|
919
917
|
}
|
|
920
918
|
const contents = map({
|
|
921
919
|
$metadata: deserializeMetadata(output),
|
|
922
920
|
});
|
|
923
921
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
924
922
|
if (data.Application != null) {
|
|
925
|
-
contents.Application =
|
|
923
|
+
contents.Application = de_Application(data.Application, context);
|
|
926
924
|
}
|
|
927
925
|
if (data.OperationId != null) {
|
|
928
926
|
contents.OperationId = (0, smithy_client_1.expectString)(data.OperationId);
|
|
929
927
|
}
|
|
930
928
|
return contents;
|
|
931
929
|
};
|
|
932
|
-
exports.
|
|
933
|
-
const
|
|
930
|
+
exports.de_RegisterApplicationCommand = de_RegisterApplicationCommand;
|
|
931
|
+
const de_RegisterApplicationCommandError = async (output, context) => {
|
|
934
932
|
const parsedOutput = {
|
|
935
933
|
...output,
|
|
936
934
|
body: await parseErrorBody(output.body, context),
|
|
@@ -939,13 +937,13 @@ const deserializeAws_restJson1RegisterApplicationCommandError = async (output, c
|
|
|
939
937
|
switch (errorCode) {
|
|
940
938
|
case "ConflictException":
|
|
941
939
|
case "com.amazonaws.ssmsap#ConflictException":
|
|
942
|
-
throw await
|
|
940
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
943
941
|
case "InternalServerException":
|
|
944
942
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
945
|
-
throw await
|
|
943
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
946
944
|
case "ValidationException":
|
|
947
945
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
948
|
-
throw await
|
|
946
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
949
947
|
default:
|
|
950
948
|
const parsedBody = parsedOutput.body;
|
|
951
949
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -956,9 +954,9 @@ const deserializeAws_restJson1RegisterApplicationCommandError = async (output, c
|
|
|
956
954
|
});
|
|
957
955
|
}
|
|
958
956
|
};
|
|
959
|
-
const
|
|
957
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
960
958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
959
|
+
return de_TagResourceCommandError(output, context);
|
|
962
960
|
}
|
|
963
961
|
const contents = map({
|
|
964
962
|
$metadata: deserializeMetadata(output),
|
|
@@ -966,8 +964,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
966
964
|
await collectBody(output.body, context);
|
|
967
965
|
return contents;
|
|
968
966
|
};
|
|
969
|
-
exports.
|
|
970
|
-
const
|
|
967
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
968
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
971
969
|
const parsedOutput = {
|
|
972
970
|
...output,
|
|
973
971
|
body: await parseErrorBody(output.body, context),
|
|
@@ -976,13 +974,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
976
974
|
switch (errorCode) {
|
|
977
975
|
case "ConflictException":
|
|
978
976
|
case "com.amazonaws.ssmsap#ConflictException":
|
|
979
|
-
throw await
|
|
977
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
980
978
|
case "ResourceNotFoundException":
|
|
981
979
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
982
|
-
throw await
|
|
980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
981
|
case "ValidationException":
|
|
984
982
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
985
|
-
throw await
|
|
983
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
986
984
|
default:
|
|
987
985
|
const parsedBody = parsedOutput.body;
|
|
988
986
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -993,9 +991,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
993
991
|
});
|
|
994
992
|
}
|
|
995
993
|
};
|
|
996
|
-
const
|
|
994
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
997
995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
998
|
-
return
|
|
996
|
+
return de_UntagResourceCommandError(output, context);
|
|
999
997
|
}
|
|
1000
998
|
const contents = map({
|
|
1001
999
|
$metadata: deserializeMetadata(output),
|
|
@@ -1003,8 +1001,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1003
1001
|
await collectBody(output.body, context);
|
|
1004
1002
|
return contents;
|
|
1005
1003
|
};
|
|
1006
|
-
exports.
|
|
1007
|
-
const
|
|
1004
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1005
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1008
1006
|
const parsedOutput = {
|
|
1009
1007
|
...output,
|
|
1010
1008
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1013,13 +1011,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1013
1011
|
switch (errorCode) {
|
|
1014
1012
|
case "ConflictException":
|
|
1015
1013
|
case "com.amazonaws.ssmsap#ConflictException":
|
|
1016
|
-
throw await
|
|
1014
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1017
1015
|
case "ResourceNotFoundException":
|
|
1018
1016
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1019
|
-
throw await
|
|
1017
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1020
1018
|
case "ValidationException":
|
|
1021
1019
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
1022
|
-
throw await
|
|
1020
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1023
1021
|
default:
|
|
1024
1022
|
const parsedBody = parsedOutput.body;
|
|
1025
1023
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1030,9 +1028,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1030
1028
|
});
|
|
1031
1029
|
}
|
|
1032
1030
|
};
|
|
1033
|
-
const
|
|
1031
|
+
const de_UpdateApplicationSettingsCommand = async (output, context) => {
|
|
1034
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1035
|
-
return
|
|
1033
|
+
return de_UpdateApplicationSettingsCommandError(output, context);
|
|
1036
1034
|
}
|
|
1037
1035
|
const contents = map({
|
|
1038
1036
|
$metadata: deserializeMetadata(output),
|
|
@@ -1042,12 +1040,12 @@ const deserializeAws_restJson1UpdateApplicationSettingsCommand = async (output,
|
|
|
1042
1040
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1043
1041
|
}
|
|
1044
1042
|
if (data.OperationIds != null) {
|
|
1045
|
-
contents.OperationIds =
|
|
1043
|
+
contents.OperationIds = de_OperationIdList(data.OperationIds, context);
|
|
1046
1044
|
}
|
|
1047
1045
|
return contents;
|
|
1048
1046
|
};
|
|
1049
|
-
exports.
|
|
1050
|
-
const
|
|
1047
|
+
exports.de_UpdateApplicationSettingsCommand = de_UpdateApplicationSettingsCommand;
|
|
1048
|
+
const de_UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
1051
1049
|
const parsedOutput = {
|
|
1052
1050
|
...output,
|
|
1053
1051
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1056,13 +1054,13 @@ const deserializeAws_restJson1UpdateApplicationSettingsCommandError = async (out
|
|
|
1056
1054
|
switch (errorCode) {
|
|
1057
1055
|
case "InternalServerException":
|
|
1058
1056
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1059
|
-
throw await
|
|
1057
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
1058
|
case "ResourceNotFoundException":
|
|
1061
1059
|
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
1062
|
-
throw await
|
|
1060
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1063
1061
|
case "ValidationException":
|
|
1064
1062
|
case "com.amazonaws.ssmsap#ValidationException":
|
|
1065
|
-
throw await
|
|
1063
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1066
1064
|
default:
|
|
1067
1065
|
const parsedBody = parsedOutput.body;
|
|
1068
1066
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1074,7 +1072,7 @@ const deserializeAws_restJson1UpdateApplicationSettingsCommandError = async (out
|
|
|
1074
1072
|
}
|
|
1075
1073
|
};
|
|
1076
1074
|
const map = smithy_client_1.map;
|
|
1077
|
-
const
|
|
1075
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1078
1076
|
const contents = map({});
|
|
1079
1077
|
const data = parsedOutput.body;
|
|
1080
1078
|
if (data.Message != null) {
|
|
@@ -1086,7 +1084,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1086
1084
|
});
|
|
1087
1085
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1088
1086
|
};
|
|
1089
|
-
const
|
|
1087
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1090
1088
|
const contents = map({});
|
|
1091
1089
|
const data = parsedOutput.body;
|
|
1092
1090
|
if (data.Message != null) {
|
|
@@ -1098,7 +1096,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1098
1096
|
});
|
|
1099
1097
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1100
1098
|
};
|
|
1101
|
-
const
|
|
1099
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1102
1100
|
const contents = map({});
|
|
1103
1101
|
const data = parsedOutput.body;
|
|
1104
1102
|
if (data.Message != null) {
|
|
@@ -1110,7 +1108,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1110
1108
|
});
|
|
1111
1109
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1112
1110
|
};
|
|
1113
|
-
const
|
|
1111
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1114
1112
|
const contents = map({});
|
|
1115
1113
|
const data = parsedOutput.body;
|
|
1116
1114
|
if (data.Message != null) {
|
|
@@ -1122,42 +1120,42 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1122
1120
|
});
|
|
1123
1121
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1124
1122
|
};
|
|
1125
|
-
const
|
|
1123
|
+
const se_ApplicationCredential = (input, context) => {
|
|
1126
1124
|
return {
|
|
1127
1125
|
...(input.CredentialType != null && { CredentialType: input.CredentialType }),
|
|
1128
1126
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1129
1127
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1130
1128
|
};
|
|
1131
1129
|
};
|
|
1132
|
-
const
|
|
1130
|
+
const se_ApplicationCredentialList = (input, context) => {
|
|
1133
1131
|
return input
|
|
1134
1132
|
.filter((e) => e != null)
|
|
1135
1133
|
.map((entry) => {
|
|
1136
|
-
return
|
|
1134
|
+
return se_ApplicationCredential(entry, context);
|
|
1137
1135
|
});
|
|
1138
1136
|
};
|
|
1139
|
-
const
|
|
1137
|
+
const se_Filter = (input, context) => {
|
|
1140
1138
|
return {
|
|
1141
1139
|
...(input.Name != null && { Name: input.Name }),
|
|
1142
1140
|
...(input.Operator != null && { Operator: input.Operator }),
|
|
1143
1141
|
...(input.Value != null && { Value: input.Value }),
|
|
1144
1142
|
};
|
|
1145
1143
|
};
|
|
1146
|
-
const
|
|
1144
|
+
const se_FilterList = (input, context) => {
|
|
1147
1145
|
return input
|
|
1148
1146
|
.filter((e) => e != null)
|
|
1149
1147
|
.map((entry) => {
|
|
1150
|
-
return
|
|
1148
|
+
return se_Filter(entry, context);
|
|
1151
1149
|
});
|
|
1152
1150
|
};
|
|
1153
|
-
const
|
|
1151
|
+
const se_InstanceList = (input, context) => {
|
|
1154
1152
|
return input
|
|
1155
1153
|
.filter((e) => e != null)
|
|
1156
1154
|
.map((entry) => {
|
|
1157
1155
|
return entry;
|
|
1158
1156
|
});
|
|
1159
1157
|
};
|
|
1160
|
-
const
|
|
1158
|
+
const se_TagMap = (input, context) => {
|
|
1161
1159
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1162
1160
|
if (value === null) {
|
|
1163
1161
|
return acc;
|
|
@@ -1166,11 +1164,11 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1166
1164
|
return acc;
|
|
1167
1165
|
}, {});
|
|
1168
1166
|
};
|
|
1169
|
-
const
|
|
1167
|
+
const de_Application = (output, context) => {
|
|
1170
1168
|
return {
|
|
1171
1169
|
AppRegistryArn: (0, smithy_client_1.expectString)(output.AppRegistryArn),
|
|
1172
1170
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1173
|
-
Components: output.Components != null ?
|
|
1171
|
+
Components: output.Components != null ? de_ComponentIdList(output.Components, context) : undefined,
|
|
1174
1172
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1175
1173
|
LastUpdated: output.LastUpdated != null
|
|
1176
1174
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
@@ -1180,50 +1178,50 @@ const deserializeAws_restJson1Application = (output, context) => {
|
|
|
1180
1178
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1181
1179
|
};
|
|
1182
1180
|
};
|
|
1183
|
-
const
|
|
1181
|
+
const de_ApplicationCredential = (output, context) => {
|
|
1184
1182
|
return {
|
|
1185
1183
|
CredentialType: (0, smithy_client_1.expectString)(output.CredentialType),
|
|
1186
1184
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1187
1185
|
SecretId: (0, smithy_client_1.expectString)(output.SecretId),
|
|
1188
1186
|
};
|
|
1189
1187
|
};
|
|
1190
|
-
const
|
|
1188
|
+
const de_ApplicationCredentialList = (output, context) => {
|
|
1191
1189
|
const retVal = (output || [])
|
|
1192
1190
|
.filter((e) => e != null)
|
|
1193
1191
|
.map((entry) => {
|
|
1194
1192
|
if (entry === null) {
|
|
1195
1193
|
return null;
|
|
1196
1194
|
}
|
|
1197
|
-
return
|
|
1195
|
+
return de_ApplicationCredential(entry, context);
|
|
1198
1196
|
});
|
|
1199
1197
|
return retVal;
|
|
1200
1198
|
};
|
|
1201
|
-
const
|
|
1199
|
+
const de_ApplicationSummary = (output, context) => {
|
|
1202
1200
|
return {
|
|
1203
1201
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1204
1202
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1205
|
-
Tags: output.Tags != null ?
|
|
1203
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1206
1204
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1207
1205
|
};
|
|
1208
1206
|
};
|
|
1209
|
-
const
|
|
1207
|
+
const de_ApplicationSummaryList = (output, context) => {
|
|
1210
1208
|
const retVal = (output || [])
|
|
1211
1209
|
.filter((e) => e != null)
|
|
1212
1210
|
.map((entry) => {
|
|
1213
1211
|
if (entry === null) {
|
|
1214
1212
|
return null;
|
|
1215
1213
|
}
|
|
1216
|
-
return
|
|
1214
|
+
return de_ApplicationSummary(entry, context);
|
|
1217
1215
|
});
|
|
1218
1216
|
return retVal;
|
|
1219
1217
|
};
|
|
1220
|
-
const
|
|
1218
|
+
const de_Component = (output, context) => {
|
|
1221
1219
|
return {
|
|
1222
1220
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
1223
1221
|
ComponentId: (0, smithy_client_1.expectString)(output.ComponentId),
|
|
1224
1222
|
ComponentType: (0, smithy_client_1.expectString)(output.ComponentType),
|
|
1225
|
-
Databases: output.Databases != null ?
|
|
1226
|
-
Hosts: output.Hosts != null ?
|
|
1223
|
+
Databases: output.Databases != null ? de_DatabaseIdList(output.Databases, context) : undefined,
|
|
1224
|
+
Hosts: output.Hosts != null ? de_HostList(output.Hosts, context) : undefined,
|
|
1227
1225
|
LastUpdated: output.LastUpdated != null
|
|
1228
1226
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdated)))
|
|
1229
1227
|
: undefined,
|
|
@@ -1231,7 +1229,7 @@ const deserializeAws_restJson1Component = (output, context) => {
|
|
|
1231
1229
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1232
1230
|
};
|
|
1233
1231
|
};
|
|
1234
|
-
const
|
|
1232
|
+
const de_ComponentIdList = (output, context) => {
|
|
1235
1233
|
const retVal = (output || [])
|
|
1236
1234
|
.filter((e) => e != null)
|
|
1237
1235
|
.map((entry) => {
|
|
@@ -1242,33 +1240,31 @@ const deserializeAws_restJson1ComponentIdList = (output, context) => {
|
|
|
1242
1240
|
});
|
|
1243
1241
|
return retVal;
|
|
1244
1242
|
};
|
|
1245
|
-
const
|
|
1243
|
+
const de_ComponentSummary = (output, context) => {
|
|
1246
1244
|
return {
|
|
1247
1245
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
1248
1246
|
ComponentId: (0, smithy_client_1.expectString)(output.ComponentId),
|
|
1249
1247
|
ComponentType: (0, smithy_client_1.expectString)(output.ComponentType),
|
|
1250
|
-
Tags: output.Tags != null ?
|
|
1248
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1251
1249
|
};
|
|
1252
1250
|
};
|
|
1253
|
-
const
|
|
1251
|
+
const de_ComponentSummaryList = (output, context) => {
|
|
1254
1252
|
const retVal = (output || [])
|
|
1255
1253
|
.filter((e) => e != null)
|
|
1256
1254
|
.map((entry) => {
|
|
1257
1255
|
if (entry === null) {
|
|
1258
1256
|
return null;
|
|
1259
1257
|
}
|
|
1260
|
-
return
|
|
1258
|
+
return de_ComponentSummary(entry, context);
|
|
1261
1259
|
});
|
|
1262
1260
|
return retVal;
|
|
1263
1261
|
};
|
|
1264
|
-
const
|
|
1262
|
+
const de_Database = (output, context) => {
|
|
1265
1263
|
return {
|
|
1266
1264
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
1267
1265
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1268
1266
|
ComponentId: (0, smithy_client_1.expectString)(output.ComponentId),
|
|
1269
|
-
Credentials: output.Credentials != null
|
|
1270
|
-
? deserializeAws_restJson1ApplicationCredentialList(output.Credentials, context)
|
|
1271
|
-
: undefined,
|
|
1267
|
+
Credentials: output.Credentials != null ? de_ApplicationCredentialList(output.Credentials, context) : undefined,
|
|
1272
1268
|
DatabaseId: (0, smithy_client_1.expectString)(output.DatabaseId),
|
|
1273
1269
|
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1274
1270
|
DatabaseType: (0, smithy_client_1.expectString)(output.DatabaseType),
|
|
@@ -1280,7 +1276,7 @@ const deserializeAws_restJson1Database = (output, context) => {
|
|
|
1280
1276
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1281
1277
|
};
|
|
1282
1278
|
};
|
|
1283
|
-
const
|
|
1279
|
+
const de_DatabaseIdList = (output, context) => {
|
|
1284
1280
|
const retVal = (output || [])
|
|
1285
1281
|
.filter((e) => e != null)
|
|
1286
1282
|
.map((entry) => {
|
|
@@ -1291,28 +1287,28 @@ const deserializeAws_restJson1DatabaseIdList = (output, context) => {
|
|
|
1291
1287
|
});
|
|
1292
1288
|
return retVal;
|
|
1293
1289
|
};
|
|
1294
|
-
const
|
|
1290
|
+
const de_DatabaseSummary = (output, context) => {
|
|
1295
1291
|
return {
|
|
1296
1292
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
1297
1293
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1298
1294
|
ComponentId: (0, smithy_client_1.expectString)(output.ComponentId),
|
|
1299
1295
|
DatabaseId: (0, smithy_client_1.expectString)(output.DatabaseId),
|
|
1300
1296
|
DatabaseType: (0, smithy_client_1.expectString)(output.DatabaseType),
|
|
1301
|
-
Tags: output.Tags != null ?
|
|
1297
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1302
1298
|
};
|
|
1303
1299
|
};
|
|
1304
|
-
const
|
|
1300
|
+
const de_DatabaseSummaryList = (output, context) => {
|
|
1305
1301
|
const retVal = (output || [])
|
|
1306
1302
|
.filter((e) => e != null)
|
|
1307
1303
|
.map((entry) => {
|
|
1308
1304
|
if (entry === null) {
|
|
1309
1305
|
return null;
|
|
1310
1306
|
}
|
|
1311
|
-
return
|
|
1307
|
+
return de_DatabaseSummary(entry, context);
|
|
1312
1308
|
});
|
|
1313
1309
|
return retVal;
|
|
1314
1310
|
};
|
|
1315
|
-
const
|
|
1311
|
+
const de_Host = (output, context) => {
|
|
1316
1312
|
return {
|
|
1317
1313
|
HostIp: (0, smithy_client_1.expectString)(output.HostIp),
|
|
1318
1314
|
HostName: (0, smithy_client_1.expectString)(output.HostName),
|
|
@@ -1320,25 +1316,25 @@ const deserializeAws_restJson1Host = (output, context) => {
|
|
|
1320
1316
|
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
1321
1317
|
};
|
|
1322
1318
|
};
|
|
1323
|
-
const
|
|
1319
|
+
const de_HostList = (output, context) => {
|
|
1324
1320
|
const retVal = (output || [])
|
|
1325
1321
|
.filter((e) => e != null)
|
|
1326
1322
|
.map((entry) => {
|
|
1327
1323
|
if (entry === null) {
|
|
1328
1324
|
return null;
|
|
1329
1325
|
}
|
|
1330
|
-
return
|
|
1326
|
+
return de_Host(entry, context);
|
|
1331
1327
|
});
|
|
1332
1328
|
return retVal;
|
|
1333
1329
|
};
|
|
1334
|
-
const
|
|
1330
|
+
const de_Operation = (output, context) => {
|
|
1335
1331
|
return {
|
|
1336
1332
|
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1337
1333
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1338
1334
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1339
1335
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
|
|
1340
1336
|
: undefined,
|
|
1341
|
-
Properties: output.Properties != null ?
|
|
1337
|
+
Properties: output.Properties != null ? de_OperationProperties(output.Properties, context) : undefined,
|
|
1342
1338
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1343
1339
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1344
1340
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
@@ -1348,7 +1344,7 @@ const deserializeAws_restJson1Operation = (output, context) => {
|
|
|
1348
1344
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1349
1345
|
};
|
|
1350
1346
|
};
|
|
1351
|
-
const
|
|
1347
|
+
const de_OperationIdList = (output, context) => {
|
|
1352
1348
|
const retVal = (output || [])
|
|
1353
1349
|
.filter((e) => e != null)
|
|
1354
1350
|
.map((entry) => {
|
|
@@ -1359,18 +1355,18 @@ const deserializeAws_restJson1OperationIdList = (output, context) => {
|
|
|
1359
1355
|
});
|
|
1360
1356
|
return retVal;
|
|
1361
1357
|
};
|
|
1362
|
-
const
|
|
1358
|
+
const de_OperationList = (output, context) => {
|
|
1363
1359
|
const retVal = (output || [])
|
|
1364
1360
|
.filter((e) => e != null)
|
|
1365
1361
|
.map((entry) => {
|
|
1366
1362
|
if (entry === null) {
|
|
1367
1363
|
return null;
|
|
1368
1364
|
}
|
|
1369
|
-
return
|
|
1365
|
+
return de_Operation(entry, context);
|
|
1370
1366
|
});
|
|
1371
1367
|
return retVal;
|
|
1372
1368
|
};
|
|
1373
|
-
const
|
|
1369
|
+
const de_OperationProperties = (output, context) => {
|
|
1374
1370
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1375
1371
|
if (value === null) {
|
|
1376
1372
|
acc[key] = null;
|
|
@@ -1380,7 +1376,7 @@ const deserializeAws_restJson1OperationProperties = (output, context) => {
|
|
|
1380
1376
|
return acc;
|
|
1381
1377
|
}, {});
|
|
1382
1378
|
};
|
|
1383
|
-
const
|
|
1379
|
+
const de_TagMap = (output, context) => {
|
|
1384
1380
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1385
1381
|
if (value === null) {
|
|
1386
1382
|
return acc;
|