@aws-sdk/client-ssm-sap 3.312.0 → 3.315.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/protocols/Aws_restJson1.js +235 -447
- package/dist-es/protocols/Aws_restJson1.js +214 -426
- package/package.json +6 -6
|
@@ -12,11 +12,11 @@ const se_DeleteResourcePermissionCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resource-permission";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
ActionType: [],
|
|
17
|
+
ResourceArn: [],
|
|
18
|
+
SourceResourceArn: [],
|
|
19
|
+
}));
|
|
20
20
|
return new protocol_http_1.HttpRequest({
|
|
21
21
|
protocol,
|
|
22
22
|
hostname,
|
|
@@ -35,9 +35,9 @@ const se_DeregisterApplicationCommand = async (input, context) => {
|
|
|
35
35
|
};
|
|
36
36
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deregister-application";
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify({
|
|
39
|
-
|
|
40
|
-
});
|
|
38
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
+
ApplicationId: [],
|
|
40
|
+
}));
|
|
41
41
|
return new protocol_http_1.HttpRequest({
|
|
42
42
|
protocol,
|
|
43
43
|
hostname,
|
|
@@ -56,11 +56,11 @@ const se_GetApplicationCommand = async (input, context) => {
|
|
|
56
56
|
};
|
|
57
57
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-application";
|
|
58
58
|
let body;
|
|
59
|
-
body = JSON.stringify({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
});
|
|
59
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
+
AppRegistryArn: [],
|
|
61
|
+
ApplicationArn: [],
|
|
62
|
+
ApplicationId: [],
|
|
63
|
+
}));
|
|
64
64
|
return new protocol_http_1.HttpRequest({
|
|
65
65
|
protocol,
|
|
66
66
|
hostname,
|
|
@@ -79,10 +79,10 @@ const se_GetComponentCommand = async (input, context) => {
|
|
|
79
79
|
};
|
|
80
80
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-component";
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
});
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
83
|
+
ApplicationId: [],
|
|
84
|
+
ComponentId: [],
|
|
85
|
+
}));
|
|
86
86
|
return new protocol_http_1.HttpRequest({
|
|
87
87
|
protocol,
|
|
88
88
|
hostname,
|
|
@@ -101,12 +101,12 @@ const se_GetDatabaseCommand = async (input, context) => {
|
|
|
101
101
|
};
|
|
102
102
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-database";
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify({
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
});
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
|
+
ApplicationId: [],
|
|
106
|
+
ComponentId: [],
|
|
107
|
+
DatabaseArn: [],
|
|
108
|
+
DatabaseId: [],
|
|
109
|
+
}));
|
|
110
110
|
return new protocol_http_1.HttpRequest({
|
|
111
111
|
protocol,
|
|
112
112
|
hostname,
|
|
@@ -125,9 +125,9 @@ const se_GetOperationCommand = async (input, context) => {
|
|
|
125
125
|
};
|
|
126
126
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-operation";
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify({
|
|
129
|
-
|
|
130
|
-
});
|
|
128
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
+
OperationId: [],
|
|
130
|
+
}));
|
|
131
131
|
return new protocol_http_1.HttpRequest({
|
|
132
132
|
protocol,
|
|
133
133
|
hostname,
|
|
@@ -146,10 +146,10 @@ const se_GetResourcePermissionCommand = async (input, context) => {
|
|
|
146
146
|
};
|
|
147
147
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-resource-permission";
|
|
148
148
|
let body;
|
|
149
|
-
body = JSON.stringify({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
});
|
|
149
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
150
|
+
ActionType: [],
|
|
151
|
+
ResourceArn: [],
|
|
152
|
+
}));
|
|
153
153
|
return new protocol_http_1.HttpRequest({
|
|
154
154
|
protocol,
|
|
155
155
|
hostname,
|
|
@@ -168,10 +168,10 @@ const se_ListApplicationsCommand = async (input, context) => {
|
|
|
168
168
|
};
|
|
169
169
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applications";
|
|
170
170
|
let body;
|
|
171
|
-
body = JSON.stringify({
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
});
|
|
171
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
172
|
+
MaxResults: [],
|
|
173
|
+
NextToken: [],
|
|
174
|
+
}));
|
|
175
175
|
return new protocol_http_1.HttpRequest({
|
|
176
176
|
protocol,
|
|
177
177
|
hostname,
|
|
@@ -190,11 +190,11 @@ const se_ListComponentsCommand = async (input, context) => {
|
|
|
190
190
|
};
|
|
191
191
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-components";
|
|
192
192
|
let body;
|
|
193
|
-
body = JSON.stringify({
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
});
|
|
193
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
194
|
+
ApplicationId: [],
|
|
195
|
+
MaxResults: [],
|
|
196
|
+
NextToken: [],
|
|
197
|
+
}));
|
|
198
198
|
return new protocol_http_1.HttpRequest({
|
|
199
199
|
protocol,
|
|
200
200
|
hostname,
|
|
@@ -213,12 +213,12 @@ const se_ListDatabasesCommand = async (input, context) => {
|
|
|
213
213
|
};
|
|
214
214
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-databases";
|
|
215
215
|
let body;
|
|
216
|
-
body = JSON.stringify({
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
});
|
|
216
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
217
|
+
ApplicationId: [],
|
|
218
|
+
ComponentId: [],
|
|
219
|
+
MaxResults: [],
|
|
220
|
+
NextToken: [],
|
|
221
|
+
}));
|
|
222
222
|
return new protocol_http_1.HttpRequest({
|
|
223
223
|
protocol,
|
|
224
224
|
hostname,
|
|
@@ -237,12 +237,12 @@ const se_ListOperationsCommand = async (input, context) => {
|
|
|
237
237
|
};
|
|
238
238
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-operations";
|
|
239
239
|
let body;
|
|
240
|
-
body = JSON.stringify({
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
});
|
|
240
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
241
|
+
ApplicationId: [],
|
|
242
|
+
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
243
|
+
MaxResults: [],
|
|
244
|
+
NextToken: [],
|
|
245
|
+
}));
|
|
246
246
|
return new protocol_http_1.HttpRequest({
|
|
247
247
|
protocol,
|
|
248
248
|
hostname,
|
|
@@ -278,11 +278,11 @@ const se_PutResourcePermissionCommand = async (input, context) => {
|
|
|
278
278
|
};
|
|
279
279
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-resource-permission";
|
|
280
280
|
let body;
|
|
281
|
-
body = JSON.stringify({
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
});
|
|
281
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
282
|
+
ActionType: [],
|
|
283
|
+
ResourceArn: [],
|
|
284
|
+
SourceResourceArn: [],
|
|
285
|
+
}));
|
|
286
286
|
return new protocol_http_1.HttpRequest({
|
|
287
287
|
protocol,
|
|
288
288
|
hostname,
|
|
@@ -301,15 +301,15 @@ const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
301
301
|
};
|
|
302
302
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-application";
|
|
303
303
|
let body;
|
|
304
|
-
body = JSON.stringify({
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
});
|
|
304
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
305
|
+
ApplicationId: [],
|
|
306
|
+
ApplicationType: [],
|
|
307
|
+
Credentials: (_) => (0, smithy_client_1._json)(_),
|
|
308
|
+
Instances: (_) => (0, smithy_client_1._json)(_),
|
|
309
|
+
SapInstanceNumber: [],
|
|
310
|
+
Sid: [],
|
|
311
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
312
|
+
}));
|
|
313
313
|
return new protocol_http_1.HttpRequest({
|
|
314
314
|
protocol,
|
|
315
315
|
hostname,
|
|
@@ -329,9 +329,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
329
329
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
330
330
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
331
331
|
let body;
|
|
332
|
-
body = JSON.stringify({
|
|
333
|
-
|
|
334
|
-
});
|
|
332
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
333
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
334
|
+
}));
|
|
335
335
|
return new protocol_http_1.HttpRequest({
|
|
336
336
|
protocol,
|
|
337
337
|
hostname,
|
|
@@ -348,7 +348,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
348
348
|
const headers = {};
|
|
349
349
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
350
350
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
351
|
-
const query = map({
|
|
351
|
+
const query = (0, smithy_client_1.map)({
|
|
352
352
|
tagKeys: [
|
|
353
353
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
354
354
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -374,15 +374,11 @@ const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
374
374
|
};
|
|
375
375
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-application-settings";
|
|
376
376
|
let body;
|
|
377
|
-
body = JSON.stringify({
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
...(input.CredentialsToRemove != null && {
|
|
383
|
-
CredentialsToRemove: se_ApplicationCredentialList(input.CredentialsToRemove, context),
|
|
384
|
-
}),
|
|
385
|
-
});
|
|
377
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
|
+
ApplicationId: [],
|
|
379
|
+
CredentialsToAddOrUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
380
|
+
CredentialsToRemove: (_) => (0, smithy_client_1._json)(_),
|
|
381
|
+
}));
|
|
386
382
|
return new protocol_http_1.HttpRequest({
|
|
387
383
|
protocol,
|
|
388
384
|
hostname,
|
|
@@ -398,13 +394,14 @@ const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
|
398
394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
399
395
|
return de_DeleteResourcePermissionCommandError(output, context);
|
|
400
396
|
}
|
|
401
|
-
const contents = map({
|
|
397
|
+
const contents = (0, smithy_client_1.map)({
|
|
402
398
|
$metadata: deserializeMetadata(output),
|
|
403
399
|
});
|
|
404
400
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
401
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
402
|
+
Policy: smithy_client_1.expectString,
|
|
403
|
+
});
|
|
404
|
+
Object.assign(contents, doc);
|
|
408
405
|
return contents;
|
|
409
406
|
};
|
|
410
407
|
exports.de_DeleteResourcePermissionCommand = de_DeleteResourcePermissionCommand;
|
|
@@ -426,10 +423,9 @@ const de_DeleteResourcePermissionCommandError = async (output, context) => {
|
|
|
426
423
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
427
424
|
default:
|
|
428
425
|
const parsedBody = parsedOutput.body;
|
|
429
|
-
|
|
426
|
+
return throwDefaultError({
|
|
430
427
|
output,
|
|
431
428
|
parsedBody,
|
|
432
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
433
429
|
errorCode,
|
|
434
430
|
});
|
|
435
431
|
}
|
|
@@ -438,7 +434,7 @@ const de_DeregisterApplicationCommand = async (output, context) => {
|
|
|
438
434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
439
435
|
return de_DeregisterApplicationCommandError(output, context);
|
|
440
436
|
}
|
|
441
|
-
const contents = map({
|
|
437
|
+
const contents = (0, smithy_client_1.map)({
|
|
442
438
|
$metadata: deserializeMetadata(output),
|
|
443
439
|
});
|
|
444
440
|
await collectBody(output.body, context);
|
|
@@ -460,10 +456,9 @@ const de_DeregisterApplicationCommandError = async (output, context) => {
|
|
|
460
456
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
461
457
|
default:
|
|
462
458
|
const parsedBody = parsedOutput.body;
|
|
463
|
-
|
|
459
|
+
return throwDefaultError({
|
|
464
460
|
output,
|
|
465
461
|
parsedBody,
|
|
466
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
467
462
|
errorCode,
|
|
468
463
|
});
|
|
469
464
|
}
|
|
@@ -472,16 +467,15 @@ const de_GetApplicationCommand = async (output, context) => {
|
|
|
472
467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
468
|
return de_GetApplicationCommandError(output, context);
|
|
474
469
|
}
|
|
475
|
-
const contents = map({
|
|
470
|
+
const contents = (0, smithy_client_1.map)({
|
|
476
471
|
$metadata: deserializeMetadata(output),
|
|
477
472
|
});
|
|
478
473
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}
|
|
474
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
475
|
+
Application: (_) => de_Application(_, context),
|
|
476
|
+
Tags: smithy_client_1._json,
|
|
477
|
+
});
|
|
478
|
+
Object.assign(contents, doc);
|
|
485
479
|
return contents;
|
|
486
480
|
};
|
|
487
481
|
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
@@ -500,10 +494,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
500
494
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
501
495
|
default:
|
|
502
496
|
const parsedBody = parsedOutput.body;
|
|
503
|
-
|
|
497
|
+
return throwDefaultError({
|
|
504
498
|
output,
|
|
505
499
|
parsedBody,
|
|
506
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
507
500
|
errorCode,
|
|
508
501
|
});
|
|
509
502
|
}
|
|
@@ -512,13 +505,14 @@ const de_GetComponentCommand = async (output, context) => {
|
|
|
512
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
513
506
|
return de_GetComponentCommandError(output, context);
|
|
514
507
|
}
|
|
515
|
-
const contents = map({
|
|
508
|
+
const contents = (0, smithy_client_1.map)({
|
|
516
509
|
$metadata: deserializeMetadata(output),
|
|
517
510
|
});
|
|
518
511
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
512
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
513
|
+
Component: (_) => de_Component(_, context),
|
|
514
|
+
});
|
|
515
|
+
Object.assign(contents, doc);
|
|
522
516
|
return contents;
|
|
523
517
|
};
|
|
524
518
|
exports.de_GetComponentCommand = de_GetComponentCommand;
|
|
@@ -537,10 +531,9 @@ const de_GetComponentCommandError = async (output, context) => {
|
|
|
537
531
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
538
532
|
default:
|
|
539
533
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
|
|
534
|
+
return throwDefaultError({
|
|
541
535
|
output,
|
|
542
536
|
parsedBody,
|
|
543
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
544
537
|
errorCode,
|
|
545
538
|
});
|
|
546
539
|
}
|
|
@@ -549,16 +542,15 @@ const de_GetDatabaseCommand = async (output, context) => {
|
|
|
549
542
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
543
|
return de_GetDatabaseCommandError(output, context);
|
|
551
544
|
}
|
|
552
|
-
const contents = map({
|
|
545
|
+
const contents = (0, smithy_client_1.map)({
|
|
553
546
|
$metadata: deserializeMetadata(output),
|
|
554
547
|
});
|
|
555
548
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
}
|
|
549
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
550
|
+
Database: (_) => de_Database(_, context),
|
|
551
|
+
Tags: smithy_client_1._json,
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
562
554
|
return contents;
|
|
563
555
|
};
|
|
564
556
|
exports.de_GetDatabaseCommand = de_GetDatabaseCommand;
|
|
@@ -577,10 +569,9 @@ const de_GetDatabaseCommandError = async (output, context) => {
|
|
|
577
569
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
570
|
default:
|
|
579
571
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
|
|
572
|
+
return throwDefaultError({
|
|
581
573
|
output,
|
|
582
574
|
parsedBody,
|
|
583
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
584
575
|
errorCode,
|
|
585
576
|
});
|
|
586
577
|
}
|
|
@@ -589,13 +580,14 @@ const de_GetOperationCommand = async (output, context) => {
|
|
|
589
580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
581
|
return de_GetOperationCommandError(output, context);
|
|
591
582
|
}
|
|
592
|
-
const contents = map({
|
|
583
|
+
const contents = (0, smithy_client_1.map)({
|
|
593
584
|
$metadata: deserializeMetadata(output),
|
|
594
585
|
});
|
|
595
586
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
587
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
588
|
+
Operation: (_) => de_Operation(_, context),
|
|
589
|
+
});
|
|
590
|
+
Object.assign(contents, doc);
|
|
599
591
|
return contents;
|
|
600
592
|
};
|
|
601
593
|
exports.de_GetOperationCommand = de_GetOperationCommand;
|
|
@@ -614,10 +606,9 @@ const de_GetOperationCommandError = async (output, context) => {
|
|
|
614
606
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
615
607
|
default:
|
|
616
608
|
const parsedBody = parsedOutput.body;
|
|
617
|
-
|
|
609
|
+
return throwDefaultError({
|
|
618
610
|
output,
|
|
619
611
|
parsedBody,
|
|
620
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
621
612
|
errorCode,
|
|
622
613
|
});
|
|
623
614
|
}
|
|
@@ -626,13 +617,14 @@ const de_GetResourcePermissionCommand = async (output, context) => {
|
|
|
626
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
618
|
return de_GetResourcePermissionCommandError(output, context);
|
|
628
619
|
}
|
|
629
|
-
const contents = map({
|
|
620
|
+
const contents = (0, smithy_client_1.map)({
|
|
630
621
|
$metadata: deserializeMetadata(output),
|
|
631
622
|
});
|
|
632
623
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
}
|
|
624
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
625
|
+
Policy: smithy_client_1.expectString,
|
|
626
|
+
});
|
|
627
|
+
Object.assign(contents, doc);
|
|
636
628
|
return contents;
|
|
637
629
|
};
|
|
638
630
|
exports.de_GetResourcePermissionCommand = de_GetResourcePermissionCommand;
|
|
@@ -654,10 +646,9 @@ const de_GetResourcePermissionCommandError = async (output, context) => {
|
|
|
654
646
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
647
|
default:
|
|
656
648
|
const parsedBody = parsedOutput.body;
|
|
657
|
-
|
|
649
|
+
return throwDefaultError({
|
|
658
650
|
output,
|
|
659
651
|
parsedBody,
|
|
660
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
661
652
|
errorCode,
|
|
662
653
|
});
|
|
663
654
|
}
|
|
@@ -666,16 +657,15 @@ const de_ListApplicationsCommand = async (output, context) => {
|
|
|
666
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
658
|
return de_ListApplicationsCommandError(output, context);
|
|
668
659
|
}
|
|
669
|
-
const contents = map({
|
|
660
|
+
const contents = (0, smithy_client_1.map)({
|
|
670
661
|
$metadata: deserializeMetadata(output),
|
|
671
662
|
});
|
|
672
663
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
664
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
665
|
+
Applications: smithy_client_1._json,
|
|
666
|
+
NextToken: smithy_client_1.expectString,
|
|
667
|
+
});
|
|
668
|
+
Object.assign(contents, doc);
|
|
679
669
|
return contents;
|
|
680
670
|
};
|
|
681
671
|
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
@@ -697,10 +687,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
697
687
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
698
688
|
default:
|
|
699
689
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
690
|
+
return throwDefaultError({
|
|
701
691
|
output,
|
|
702
692
|
parsedBody,
|
|
703
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
704
693
|
errorCode,
|
|
705
694
|
});
|
|
706
695
|
}
|
|
@@ -709,16 +698,15 @@ const de_ListComponentsCommand = async (output, context) => {
|
|
|
709
698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
699
|
return de_ListComponentsCommandError(output, context);
|
|
711
700
|
}
|
|
712
|
-
const contents = map({
|
|
701
|
+
const contents = (0, smithy_client_1.map)({
|
|
713
702
|
$metadata: deserializeMetadata(output),
|
|
714
703
|
});
|
|
715
704
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
705
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
706
|
+
Components: smithy_client_1._json,
|
|
707
|
+
NextToken: smithy_client_1.expectString,
|
|
708
|
+
});
|
|
709
|
+
Object.assign(contents, doc);
|
|
722
710
|
return contents;
|
|
723
711
|
};
|
|
724
712
|
exports.de_ListComponentsCommand = de_ListComponentsCommand;
|
|
@@ -740,10 +728,9 @@ const de_ListComponentsCommandError = async (output, context) => {
|
|
|
740
728
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
741
729
|
default:
|
|
742
730
|
const parsedBody = parsedOutput.body;
|
|
743
|
-
|
|
731
|
+
return throwDefaultError({
|
|
744
732
|
output,
|
|
745
733
|
parsedBody,
|
|
746
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
747
734
|
errorCode,
|
|
748
735
|
});
|
|
749
736
|
}
|
|
@@ -752,16 +739,15 @@ const de_ListDatabasesCommand = async (output, context) => {
|
|
|
752
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
753
740
|
return de_ListDatabasesCommandError(output, context);
|
|
754
741
|
}
|
|
755
|
-
const contents = map({
|
|
742
|
+
const contents = (0, smithy_client_1.map)({
|
|
756
743
|
$metadata: deserializeMetadata(output),
|
|
757
744
|
});
|
|
758
745
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
}
|
|
746
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
747
|
+
Databases: smithy_client_1._json,
|
|
748
|
+
NextToken: smithy_client_1.expectString,
|
|
749
|
+
});
|
|
750
|
+
Object.assign(contents, doc);
|
|
765
751
|
return contents;
|
|
766
752
|
};
|
|
767
753
|
exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
|
|
@@ -783,10 +769,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
|
|
|
783
769
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
784
770
|
default:
|
|
785
771
|
const parsedBody = parsedOutput.body;
|
|
786
|
-
|
|
772
|
+
return throwDefaultError({
|
|
787
773
|
output,
|
|
788
774
|
parsedBody,
|
|
789
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
790
775
|
errorCode,
|
|
791
776
|
});
|
|
792
777
|
}
|
|
@@ -795,16 +780,15 @@ const de_ListOperationsCommand = async (output, context) => {
|
|
|
795
780
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
796
781
|
return de_ListOperationsCommandError(output, context);
|
|
797
782
|
}
|
|
798
|
-
const contents = map({
|
|
783
|
+
const contents = (0, smithy_client_1.map)({
|
|
799
784
|
$metadata: deserializeMetadata(output),
|
|
800
785
|
});
|
|
801
786
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
787
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
788
|
+
NextToken: smithy_client_1.expectString,
|
|
789
|
+
Operations: (_) => de_OperationList(_, context),
|
|
790
|
+
});
|
|
791
|
+
Object.assign(contents, doc);
|
|
808
792
|
return contents;
|
|
809
793
|
};
|
|
810
794
|
exports.de_ListOperationsCommand = de_ListOperationsCommand;
|
|
@@ -823,10 +807,9 @@ const de_ListOperationsCommandError = async (output, context) => {
|
|
|
823
807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
824
808
|
default:
|
|
825
809
|
const parsedBody = parsedOutput.body;
|
|
826
|
-
|
|
810
|
+
return throwDefaultError({
|
|
827
811
|
output,
|
|
828
812
|
parsedBody,
|
|
829
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
830
813
|
errorCode,
|
|
831
814
|
});
|
|
832
815
|
}
|
|
@@ -835,13 +818,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
835
818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
836
819
|
return de_ListTagsForResourceCommandError(output, context);
|
|
837
820
|
}
|
|
838
|
-
const contents = map({
|
|
821
|
+
const contents = (0, smithy_client_1.map)({
|
|
839
822
|
$metadata: deserializeMetadata(output),
|
|
840
823
|
});
|
|
841
824
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
}
|
|
825
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
826
|
+
tags: smithy_client_1._json,
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
845
829
|
return contents;
|
|
846
830
|
};
|
|
847
831
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -863,10 +847,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
863
847
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
864
848
|
default:
|
|
865
849
|
const parsedBody = parsedOutput.body;
|
|
866
|
-
|
|
850
|
+
return throwDefaultError({
|
|
867
851
|
output,
|
|
868
852
|
parsedBody,
|
|
869
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
870
853
|
errorCode,
|
|
871
854
|
});
|
|
872
855
|
}
|
|
@@ -875,13 +858,14 @@ const de_PutResourcePermissionCommand = async (output, context) => {
|
|
|
875
858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
859
|
return de_PutResourcePermissionCommandError(output, context);
|
|
877
860
|
}
|
|
878
|
-
const contents = map({
|
|
861
|
+
const contents = (0, smithy_client_1.map)({
|
|
879
862
|
$metadata: deserializeMetadata(output),
|
|
880
863
|
});
|
|
881
864
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}
|
|
865
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
866
|
+
Policy: smithy_client_1.expectString,
|
|
867
|
+
});
|
|
868
|
+
Object.assign(contents, doc);
|
|
885
869
|
return contents;
|
|
886
870
|
};
|
|
887
871
|
exports.de_PutResourcePermissionCommand = de_PutResourcePermissionCommand;
|
|
@@ -903,10 +887,9 @@ const de_PutResourcePermissionCommandError = async (output, context) => {
|
|
|
903
887
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
904
888
|
default:
|
|
905
889
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
|
|
890
|
+
return throwDefaultError({
|
|
907
891
|
output,
|
|
908
892
|
parsedBody,
|
|
909
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
910
893
|
errorCode,
|
|
911
894
|
});
|
|
912
895
|
}
|
|
@@ -915,16 +898,15 @@ const de_RegisterApplicationCommand = async (output, context) => {
|
|
|
915
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
916
899
|
return de_RegisterApplicationCommandError(output, context);
|
|
917
900
|
}
|
|
918
|
-
const contents = map({
|
|
901
|
+
const contents = (0, smithy_client_1.map)({
|
|
919
902
|
$metadata: deserializeMetadata(output),
|
|
920
903
|
});
|
|
921
904
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
}
|
|
905
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
906
|
+
Application: (_) => de_Application(_, context),
|
|
907
|
+
OperationId: smithy_client_1.expectString,
|
|
908
|
+
});
|
|
909
|
+
Object.assign(contents, doc);
|
|
928
910
|
return contents;
|
|
929
911
|
};
|
|
930
912
|
exports.de_RegisterApplicationCommand = de_RegisterApplicationCommand;
|
|
@@ -946,10 +928,9 @@ const de_RegisterApplicationCommandError = async (output, context) => {
|
|
|
946
928
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
947
929
|
default:
|
|
948
930
|
const parsedBody = parsedOutput.body;
|
|
949
|
-
|
|
931
|
+
return throwDefaultError({
|
|
950
932
|
output,
|
|
951
933
|
parsedBody,
|
|
952
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
953
934
|
errorCode,
|
|
954
935
|
});
|
|
955
936
|
}
|
|
@@ -958,7 +939,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
958
939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
959
940
|
return de_TagResourceCommandError(output, context);
|
|
960
941
|
}
|
|
961
|
-
const contents = map({
|
|
942
|
+
const contents = (0, smithy_client_1.map)({
|
|
962
943
|
$metadata: deserializeMetadata(output),
|
|
963
944
|
});
|
|
964
945
|
await collectBody(output.body, context);
|
|
@@ -983,10 +964,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
983
964
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
965
|
default:
|
|
985
966
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
967
|
+
return throwDefaultError({
|
|
987
968
|
output,
|
|
988
969
|
parsedBody,
|
|
989
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
990
970
|
errorCode,
|
|
991
971
|
});
|
|
992
972
|
}
|
|
@@ -995,7 +975,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
995
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
976
|
return de_UntagResourceCommandError(output, context);
|
|
997
977
|
}
|
|
998
|
-
const contents = map({
|
|
978
|
+
const contents = (0, smithy_client_1.map)({
|
|
999
979
|
$metadata: deserializeMetadata(output),
|
|
1000
980
|
});
|
|
1001
981
|
await collectBody(output.body, context);
|
|
@@ -1020,10 +1000,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1020
1000
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1021
1001
|
default:
|
|
1022
1002
|
const parsedBody = parsedOutput.body;
|
|
1023
|
-
|
|
1003
|
+
return throwDefaultError({
|
|
1024
1004
|
output,
|
|
1025
1005
|
parsedBody,
|
|
1026
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
1027
1006
|
errorCode,
|
|
1028
1007
|
});
|
|
1029
1008
|
}
|
|
@@ -1032,16 +1011,15 @@ const de_UpdateApplicationSettingsCommand = async (output, context) => {
|
|
|
1032
1011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
1012
|
return de_UpdateApplicationSettingsCommandError(output, context);
|
|
1034
1013
|
}
|
|
1035
|
-
const contents = map({
|
|
1014
|
+
const contents = (0, smithy_client_1.map)({
|
|
1036
1015
|
$metadata: deserializeMetadata(output),
|
|
1037
1016
|
});
|
|
1038
1017
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
}
|
|
1018
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1019
|
+
Message: smithy_client_1.expectString,
|
|
1020
|
+
OperationIds: smithy_client_1._json,
|
|
1021
|
+
});
|
|
1022
|
+
Object.assign(contents, doc);
|
|
1045
1023
|
return contents;
|
|
1046
1024
|
};
|
|
1047
1025
|
exports.de_UpdateApplicationSettingsCommand = de_UpdateApplicationSettingsCommand;
|
|
@@ -1063,21 +1041,21 @@ const de_UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
|
1063
1041
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1064
1042
|
default:
|
|
1065
1043
|
const parsedBody = parsedOutput.body;
|
|
1066
|
-
|
|
1044
|
+
return throwDefaultError({
|
|
1067
1045
|
output,
|
|
1068
1046
|
parsedBody,
|
|
1069
|
-
exceptionCtor: SsmSapServiceException_1.SsmSapServiceException,
|
|
1070
1047
|
errorCode,
|
|
1071
1048
|
});
|
|
1072
1049
|
}
|
|
1073
1050
|
};
|
|
1074
|
-
const
|
|
1051
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SsmSapServiceException_1.SsmSapServiceException);
|
|
1075
1052
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1076
|
-
const contents = map({});
|
|
1053
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1077
1054
|
const data = parsedOutput.body;
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
}
|
|
1055
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1056
|
+
Message: smithy_client_1.expectString,
|
|
1057
|
+
});
|
|
1058
|
+
Object.assign(contents, doc);
|
|
1081
1059
|
const exception = new models_0_1.ConflictException({
|
|
1082
1060
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1083
1061
|
...contents,
|
|
@@ -1085,11 +1063,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1085
1063
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1086
1064
|
};
|
|
1087
1065
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1088
|
-
const contents = map({});
|
|
1066
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1089
1067
|
const data = parsedOutput.body;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
}
|
|
1068
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1069
|
+
Message: smithy_client_1.expectString,
|
|
1070
|
+
});
|
|
1071
|
+
Object.assign(contents, doc);
|
|
1093
1072
|
const exception = new models_0_1.InternalServerException({
|
|
1094
1073
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1095
1074
|
...contents,
|
|
@@ -1097,11 +1076,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1097
1076
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1098
1077
|
};
|
|
1099
1078
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1100
|
-
const contents = map({});
|
|
1079
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1101
1080
|
const data = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1081
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1082
|
+
Message: smithy_client_1.expectString,
|
|
1083
|
+
});
|
|
1084
|
+
Object.assign(contents, doc);
|
|
1105
1085
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1106
1086
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1107
1087
|
...contents,
|
|
@@ -1109,259 +1089,76 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1109
1089
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1110
1090
|
};
|
|
1111
1091
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1112
|
-
const contents = map({});
|
|
1092
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1113
1093
|
const data = parsedOutput.body;
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
}
|
|
1094
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1095
|
+
Message: smithy_client_1.expectString,
|
|
1096
|
+
});
|
|
1097
|
+
Object.assign(contents, doc);
|
|
1117
1098
|
const exception = new models_0_1.ValidationException({
|
|
1118
1099
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1119
1100
|
...contents,
|
|
1120
1101
|
});
|
|
1121
1102
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1122
1103
|
};
|
|
1123
|
-
const se_ApplicationCredential = (input, context) => {
|
|
1124
|
-
return {
|
|
1125
|
-
...(input.CredentialType != null && { CredentialType: input.CredentialType }),
|
|
1126
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1127
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
|
-
const se_ApplicationCredentialList = (input, context) => {
|
|
1131
|
-
return input
|
|
1132
|
-
.filter((e) => e != null)
|
|
1133
|
-
.map((entry) => {
|
|
1134
|
-
return se_ApplicationCredential(entry, context);
|
|
1135
|
-
});
|
|
1136
|
-
};
|
|
1137
|
-
const se_Filter = (input, context) => {
|
|
1138
|
-
return {
|
|
1139
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1140
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
1141
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
const se_FilterList = (input, context) => {
|
|
1145
|
-
return input
|
|
1146
|
-
.filter((e) => e != null)
|
|
1147
|
-
.map((entry) => {
|
|
1148
|
-
return se_Filter(entry, context);
|
|
1149
|
-
});
|
|
1150
|
-
};
|
|
1151
|
-
const se_InstanceList = (input, context) => {
|
|
1152
|
-
return input
|
|
1153
|
-
.filter((e) => e != null)
|
|
1154
|
-
.map((entry) => {
|
|
1155
|
-
return entry;
|
|
1156
|
-
});
|
|
1157
|
-
};
|
|
1158
|
-
const se_TagMap = (input, context) => {
|
|
1159
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1160
|
-
if (value === null) {
|
|
1161
|
-
return acc;
|
|
1162
|
-
}
|
|
1163
|
-
acc[key] = value;
|
|
1164
|
-
return acc;
|
|
1165
|
-
}, {});
|
|
1166
|
-
};
|
|
1167
1104
|
const de_Application = (output, context) => {
|
|
1168
|
-
return {
|
|
1169
|
-
AppRegistryArn:
|
|
1170
|
-
Arn:
|
|
1171
|
-
Components:
|
|
1172
|
-
Id:
|
|
1173
|
-
LastUpdated:
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1178
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1179
|
-
};
|
|
1180
|
-
};
|
|
1181
|
-
const de_ApplicationCredential = (output, context) => {
|
|
1182
|
-
return {
|
|
1183
|
-
CredentialType: (0, smithy_client_1.expectString)(output.CredentialType),
|
|
1184
|
-
DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
|
|
1185
|
-
SecretId: (0, smithy_client_1.expectString)(output.SecretId),
|
|
1186
|
-
};
|
|
1187
|
-
};
|
|
1188
|
-
const de_ApplicationCredentialList = (output, context) => {
|
|
1189
|
-
const retVal = (output || [])
|
|
1190
|
-
.filter((e) => e != null)
|
|
1191
|
-
.map((entry) => {
|
|
1192
|
-
if (entry === null) {
|
|
1193
|
-
return null;
|
|
1194
|
-
}
|
|
1195
|
-
return de_ApplicationCredential(entry, context);
|
|
1105
|
+
return (0, smithy_client_1.take)(output, {
|
|
1106
|
+
AppRegistryArn: smithy_client_1.expectString,
|
|
1107
|
+
Arn: smithy_client_1.expectString,
|
|
1108
|
+
Components: smithy_client_1._json,
|
|
1109
|
+
Id: smithy_client_1.expectString,
|
|
1110
|
+
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1111
|
+
Status: smithy_client_1.expectString,
|
|
1112
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1113
|
+
Type: smithy_client_1.expectString,
|
|
1196
1114
|
});
|
|
1197
|
-
return retVal;
|
|
1198
|
-
};
|
|
1199
|
-
const de_ApplicationSummary = (output, context) => {
|
|
1200
|
-
return {
|
|
1201
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1202
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1203
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1204
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
const de_ApplicationSummaryList = (output, context) => {
|
|
1208
|
-
const retVal = (output || [])
|
|
1209
|
-
.filter((e) => e != null)
|
|
1210
|
-
.map((entry) => {
|
|
1211
|
-
if (entry === null) {
|
|
1212
|
-
return null;
|
|
1213
|
-
}
|
|
1214
|
-
return de_ApplicationSummary(entry, context);
|
|
1215
|
-
});
|
|
1216
|
-
return retVal;
|
|
1217
1115
|
};
|
|
1218
1116
|
const de_Component = (output, context) => {
|
|
1219
|
-
return {
|
|
1220
|
-
ApplicationId:
|
|
1221
|
-
ComponentId:
|
|
1222
|
-
ComponentType:
|
|
1223
|
-
Databases:
|
|
1224
|
-
Hosts:
|
|
1225
|
-
LastUpdated:
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
PrimaryHost: (0, smithy_client_1.expectString)(output.PrimaryHost),
|
|
1229
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const de_ComponentIdList = (output, context) => {
|
|
1233
|
-
const retVal = (output || [])
|
|
1234
|
-
.filter((e) => e != null)
|
|
1235
|
-
.map((entry) => {
|
|
1236
|
-
if (entry === null) {
|
|
1237
|
-
return null;
|
|
1238
|
-
}
|
|
1239
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1117
|
+
return (0, smithy_client_1.take)(output, {
|
|
1118
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1119
|
+
ComponentId: smithy_client_1.expectString,
|
|
1120
|
+
ComponentType: smithy_client_1.expectString,
|
|
1121
|
+
Databases: smithy_client_1._json,
|
|
1122
|
+
Hosts: smithy_client_1._json,
|
|
1123
|
+
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1124
|
+
PrimaryHost: smithy_client_1.expectString,
|
|
1125
|
+
Status: smithy_client_1.expectString,
|
|
1240
1126
|
});
|
|
1241
|
-
return retVal;
|
|
1242
|
-
};
|
|
1243
|
-
const de_ComponentSummary = (output, context) => {
|
|
1244
|
-
return {
|
|
1245
|
-
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
1246
|
-
ComponentId: (0, smithy_client_1.expectString)(output.ComponentId),
|
|
1247
|
-
ComponentType: (0, smithy_client_1.expectString)(output.ComponentType),
|
|
1248
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1249
|
-
};
|
|
1250
|
-
};
|
|
1251
|
-
const de_ComponentSummaryList = (output, context) => {
|
|
1252
|
-
const retVal = (output || [])
|
|
1253
|
-
.filter((e) => e != null)
|
|
1254
|
-
.map((entry) => {
|
|
1255
|
-
if (entry === null) {
|
|
1256
|
-
return null;
|
|
1257
|
-
}
|
|
1258
|
-
return de_ComponentSummary(entry, context);
|
|
1259
|
-
});
|
|
1260
|
-
return retVal;
|
|
1261
1127
|
};
|
|
1262
1128
|
const de_Database = (output, context) => {
|
|
1263
|
-
return {
|
|
1264
|
-
ApplicationId:
|
|
1265
|
-
Arn:
|
|
1266
|
-
ComponentId:
|
|
1267
|
-
Credentials:
|
|
1268
|
-
DatabaseId:
|
|
1269
|
-
DatabaseName:
|
|
1270
|
-
DatabaseType:
|
|
1271
|
-
LastUpdated:
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
SQLPort: (0, smithy_client_1.expectInt32)(output.SQLPort),
|
|
1276
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1277
|
-
};
|
|
1278
|
-
};
|
|
1279
|
-
const de_DatabaseIdList = (output, context) => {
|
|
1280
|
-
const retVal = (output || [])
|
|
1281
|
-
.filter((e) => e != null)
|
|
1282
|
-
.map((entry) => {
|
|
1283
|
-
if (entry === null) {
|
|
1284
|
-
return null;
|
|
1285
|
-
}
|
|
1286
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1287
|
-
});
|
|
1288
|
-
return retVal;
|
|
1289
|
-
};
|
|
1290
|
-
const de_DatabaseSummary = (output, context) => {
|
|
1291
|
-
return {
|
|
1292
|
-
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
1293
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1294
|
-
ComponentId: (0, smithy_client_1.expectString)(output.ComponentId),
|
|
1295
|
-
DatabaseId: (0, smithy_client_1.expectString)(output.DatabaseId),
|
|
1296
|
-
DatabaseType: (0, smithy_client_1.expectString)(output.DatabaseType),
|
|
1297
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1298
|
-
};
|
|
1299
|
-
};
|
|
1300
|
-
const de_DatabaseSummaryList = (output, context) => {
|
|
1301
|
-
const retVal = (output || [])
|
|
1302
|
-
.filter((e) => e != null)
|
|
1303
|
-
.map((entry) => {
|
|
1304
|
-
if (entry === null) {
|
|
1305
|
-
return null;
|
|
1306
|
-
}
|
|
1307
|
-
return de_DatabaseSummary(entry, context);
|
|
1129
|
+
return (0, smithy_client_1.take)(output, {
|
|
1130
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1131
|
+
Arn: smithy_client_1.expectString,
|
|
1132
|
+
ComponentId: smithy_client_1.expectString,
|
|
1133
|
+
Credentials: smithy_client_1._json,
|
|
1134
|
+
DatabaseId: smithy_client_1.expectString,
|
|
1135
|
+
DatabaseName: smithy_client_1.expectString,
|
|
1136
|
+
DatabaseType: smithy_client_1.expectString,
|
|
1137
|
+
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1138
|
+
PrimaryHost: smithy_client_1.expectString,
|
|
1139
|
+
SQLPort: smithy_client_1.expectInt32,
|
|
1140
|
+
Status: smithy_client_1.expectString,
|
|
1308
1141
|
});
|
|
1309
|
-
return retVal;
|
|
1310
|
-
};
|
|
1311
|
-
const de_Host = (output, context) => {
|
|
1312
|
-
return {
|
|
1313
|
-
HostIp: (0, smithy_client_1.expectString)(output.HostIp),
|
|
1314
|
-
HostName: (0, smithy_client_1.expectString)(output.HostName),
|
|
1315
|
-
HostRole: (0, smithy_client_1.expectString)(output.HostRole),
|
|
1316
|
-
InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
|
|
1317
|
-
};
|
|
1318
|
-
};
|
|
1319
|
-
const de_HostList = (output, context) => {
|
|
1320
|
-
const retVal = (output || [])
|
|
1321
|
-
.filter((e) => e != null)
|
|
1322
|
-
.map((entry) => {
|
|
1323
|
-
if (entry === null) {
|
|
1324
|
-
return null;
|
|
1325
|
-
}
|
|
1326
|
-
return de_Host(entry, context);
|
|
1327
|
-
});
|
|
1328
|
-
return retVal;
|
|
1329
1142
|
};
|
|
1330
1143
|
const de_Operation = (output, context) => {
|
|
1331
|
-
return {
|
|
1332
|
-
EndTime:
|
|
1333
|
-
Id:
|
|
1334
|
-
LastUpdatedTime:
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1344
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1345
|
-
};
|
|
1346
|
-
};
|
|
1347
|
-
const de_OperationIdList = (output, context) => {
|
|
1348
|
-
const retVal = (output || [])
|
|
1349
|
-
.filter((e) => e != null)
|
|
1350
|
-
.map((entry) => {
|
|
1351
|
-
if (entry === null) {
|
|
1352
|
-
return null;
|
|
1353
|
-
}
|
|
1354
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1144
|
+
return (0, smithy_client_1.take)(output, {
|
|
1145
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1146
|
+
Id: smithy_client_1.expectString,
|
|
1147
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1148
|
+
Properties: (_) => de_OperationProperties(_, context),
|
|
1149
|
+
ResourceArn: smithy_client_1.expectString,
|
|
1150
|
+
ResourceId: smithy_client_1.expectString,
|
|
1151
|
+
ResourceType: smithy_client_1.expectString,
|
|
1152
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1153
|
+
Status: smithy_client_1.expectString,
|
|
1154
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1155
|
+
Type: smithy_client_1.expectString,
|
|
1355
1156
|
});
|
|
1356
|
-
return retVal;
|
|
1357
1157
|
};
|
|
1358
1158
|
const de_OperationList = (output, context) => {
|
|
1359
1159
|
const retVal = (output || [])
|
|
1360
1160
|
.filter((e) => e != null)
|
|
1361
1161
|
.map((entry) => {
|
|
1362
|
-
if (entry === null) {
|
|
1363
|
-
return null;
|
|
1364
|
-
}
|
|
1365
1162
|
return de_Operation(entry, context);
|
|
1366
1163
|
});
|
|
1367
1164
|
return retVal;
|
|
@@ -1376,15 +1173,6 @@ const de_OperationProperties = (output, context) => {
|
|
|
1376
1173
|
return acc;
|
|
1377
1174
|
}, {});
|
|
1378
1175
|
};
|
|
1379
|
-
const de_TagMap = (output, context) => {
|
|
1380
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1381
|
-
if (value === null) {
|
|
1382
|
-
return acc;
|
|
1383
|
-
}
|
|
1384
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1385
|
-
return acc;
|
|
1386
|
-
}, {});
|
|
1387
|
-
};
|
|
1388
1176
|
const deserializeMetadata = (output) => ({
|
|
1389
1177
|
httpStatusCode: output.statusCode,
|
|
1390
1178
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|