@aws-sdk/client-ssm-sap 3.310.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SsmSapServiceException as __BaseException } from "../models/SsmSapServiceException";
|
|
5
5
|
export const se_DeleteResourcePermissionCommand = async (input, context) => {
|
|
@@ -9,11 +9,11 @@ export const se_DeleteResourcePermissionCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-resource-permission";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
ActionType: [],
|
|
14
|
+
ResourceArn: [],
|
|
15
|
+
SourceResourceArn: [],
|
|
16
|
+
}));
|
|
17
17
|
return new __HttpRequest({
|
|
18
18
|
protocol,
|
|
19
19
|
hostname,
|
|
@@ -31,9 +31,9 @@ export const se_DeregisterApplicationCommand = async (input, context) => {
|
|
|
31
31
|
};
|
|
32
32
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deregister-application";
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify({
|
|
35
|
-
|
|
36
|
-
});
|
|
34
|
+
body = JSON.stringify(take(input, {
|
|
35
|
+
ApplicationId: [],
|
|
36
|
+
}));
|
|
37
37
|
return new __HttpRequest({
|
|
38
38
|
protocol,
|
|
39
39
|
hostname,
|
|
@@ -51,11 +51,11 @@ export const se_GetApplicationCommand = async (input, context) => {
|
|
|
51
51
|
};
|
|
52
52
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-application";
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
54
|
+
body = JSON.stringify(take(input, {
|
|
55
|
+
AppRegistryArn: [],
|
|
56
|
+
ApplicationArn: [],
|
|
57
|
+
ApplicationId: [],
|
|
58
|
+
}));
|
|
59
59
|
return new __HttpRequest({
|
|
60
60
|
protocol,
|
|
61
61
|
hostname,
|
|
@@ -73,10 +73,10 @@ export const se_GetComponentCommand = async (input, context) => {
|
|
|
73
73
|
};
|
|
74
74
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-component";
|
|
75
75
|
let body;
|
|
76
|
-
body = JSON.stringify({
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
76
|
+
body = JSON.stringify(take(input, {
|
|
77
|
+
ApplicationId: [],
|
|
78
|
+
ComponentId: [],
|
|
79
|
+
}));
|
|
80
80
|
return new __HttpRequest({
|
|
81
81
|
protocol,
|
|
82
82
|
hostname,
|
|
@@ -94,12 +94,12 @@ export const se_GetDatabaseCommand = async (input, context) => {
|
|
|
94
94
|
};
|
|
95
95
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-database";
|
|
96
96
|
let body;
|
|
97
|
-
body = JSON.stringify({
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
});
|
|
97
|
+
body = JSON.stringify(take(input, {
|
|
98
|
+
ApplicationId: [],
|
|
99
|
+
ComponentId: [],
|
|
100
|
+
DatabaseArn: [],
|
|
101
|
+
DatabaseId: [],
|
|
102
|
+
}));
|
|
103
103
|
return new __HttpRequest({
|
|
104
104
|
protocol,
|
|
105
105
|
hostname,
|
|
@@ -117,9 +117,9 @@ export const se_GetOperationCommand = async (input, context) => {
|
|
|
117
117
|
};
|
|
118
118
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-operation";
|
|
119
119
|
let body;
|
|
120
|
-
body = JSON.stringify({
|
|
121
|
-
|
|
122
|
-
});
|
|
120
|
+
body = JSON.stringify(take(input, {
|
|
121
|
+
OperationId: [],
|
|
122
|
+
}));
|
|
123
123
|
return new __HttpRequest({
|
|
124
124
|
protocol,
|
|
125
125
|
hostname,
|
|
@@ -137,10 +137,10 @@ export const se_GetResourcePermissionCommand = async (input, context) => {
|
|
|
137
137
|
};
|
|
138
138
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-resource-permission";
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify({
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
});
|
|
140
|
+
body = JSON.stringify(take(input, {
|
|
141
|
+
ActionType: [],
|
|
142
|
+
ResourceArn: [],
|
|
143
|
+
}));
|
|
144
144
|
return new __HttpRequest({
|
|
145
145
|
protocol,
|
|
146
146
|
hostname,
|
|
@@ -158,10 +158,10 @@ export const se_ListApplicationsCommand = async (input, context) => {
|
|
|
158
158
|
};
|
|
159
159
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-applications";
|
|
160
160
|
let body;
|
|
161
|
-
body = JSON.stringify({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
});
|
|
161
|
+
body = JSON.stringify(take(input, {
|
|
162
|
+
MaxResults: [],
|
|
163
|
+
NextToken: [],
|
|
164
|
+
}));
|
|
165
165
|
return new __HttpRequest({
|
|
166
166
|
protocol,
|
|
167
167
|
hostname,
|
|
@@ -179,11 +179,11 @@ export const se_ListComponentsCommand = async (input, context) => {
|
|
|
179
179
|
};
|
|
180
180
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-components";
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify({
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
});
|
|
182
|
+
body = JSON.stringify(take(input, {
|
|
183
|
+
ApplicationId: [],
|
|
184
|
+
MaxResults: [],
|
|
185
|
+
NextToken: [],
|
|
186
|
+
}));
|
|
187
187
|
return new __HttpRequest({
|
|
188
188
|
protocol,
|
|
189
189
|
hostname,
|
|
@@ -201,12 +201,12 @@ export const se_ListDatabasesCommand = async (input, context) => {
|
|
|
201
201
|
};
|
|
202
202
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-databases";
|
|
203
203
|
let body;
|
|
204
|
-
body = JSON.stringify({
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
204
|
+
body = JSON.stringify(take(input, {
|
|
205
|
+
ApplicationId: [],
|
|
206
|
+
ComponentId: [],
|
|
207
|
+
MaxResults: [],
|
|
208
|
+
NextToken: [],
|
|
209
|
+
}));
|
|
210
210
|
return new __HttpRequest({
|
|
211
211
|
protocol,
|
|
212
212
|
hostname,
|
|
@@ -224,12 +224,12 @@ export const se_ListOperationsCommand = async (input, context) => {
|
|
|
224
224
|
};
|
|
225
225
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-operations";
|
|
226
226
|
let body;
|
|
227
|
-
body = JSON.stringify({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
});
|
|
227
|
+
body = JSON.stringify(take(input, {
|
|
228
|
+
ApplicationId: [],
|
|
229
|
+
Filters: (_) => _json(_),
|
|
230
|
+
MaxResults: [],
|
|
231
|
+
NextToken: [],
|
|
232
|
+
}));
|
|
233
233
|
return new __HttpRequest({
|
|
234
234
|
protocol,
|
|
235
235
|
hostname,
|
|
@@ -263,11 +263,11 @@ export const se_PutResourcePermissionCommand = async (input, context) => {
|
|
|
263
263
|
};
|
|
264
264
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-resource-permission";
|
|
265
265
|
let body;
|
|
266
|
-
body = JSON.stringify({
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
});
|
|
266
|
+
body = JSON.stringify(take(input, {
|
|
267
|
+
ActionType: [],
|
|
268
|
+
ResourceArn: [],
|
|
269
|
+
SourceResourceArn: [],
|
|
270
|
+
}));
|
|
271
271
|
return new __HttpRequest({
|
|
272
272
|
protocol,
|
|
273
273
|
hostname,
|
|
@@ -285,15 +285,15 @@ export const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
285
285
|
};
|
|
286
286
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-application";
|
|
287
287
|
let body;
|
|
288
|
-
body = JSON.stringify({
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
});
|
|
288
|
+
body = JSON.stringify(take(input, {
|
|
289
|
+
ApplicationId: [],
|
|
290
|
+
ApplicationType: [],
|
|
291
|
+
Credentials: (_) => _json(_),
|
|
292
|
+
Instances: (_) => _json(_),
|
|
293
|
+
SapInstanceNumber: [],
|
|
294
|
+
Sid: [],
|
|
295
|
+
Tags: (_) => _json(_),
|
|
296
|
+
}));
|
|
297
297
|
return new __HttpRequest({
|
|
298
298
|
protocol,
|
|
299
299
|
hostname,
|
|
@@ -312,9 +312,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
312
312
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
313
313
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
314
314
|
let body;
|
|
315
|
-
body = JSON.stringify({
|
|
316
|
-
|
|
317
|
-
});
|
|
315
|
+
body = JSON.stringify(take(input, {
|
|
316
|
+
tags: (_) => _json(_),
|
|
317
|
+
}));
|
|
318
318
|
return new __HttpRequest({
|
|
319
319
|
protocol,
|
|
320
320
|
hostname,
|
|
@@ -355,15 +355,11 @@ export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
355
355
|
};
|
|
356
356
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-application-settings";
|
|
357
357
|
let body;
|
|
358
|
-
body = JSON.stringify({
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
...(input.CredentialsToRemove != null && {
|
|
364
|
-
CredentialsToRemove: se_ApplicationCredentialList(input.CredentialsToRemove, context),
|
|
365
|
-
}),
|
|
366
|
-
});
|
|
358
|
+
body = JSON.stringify(take(input, {
|
|
359
|
+
ApplicationId: [],
|
|
360
|
+
CredentialsToAddOrUpdate: (_) => _json(_),
|
|
361
|
+
CredentialsToRemove: (_) => _json(_),
|
|
362
|
+
}));
|
|
367
363
|
return new __HttpRequest({
|
|
368
364
|
protocol,
|
|
369
365
|
hostname,
|
|
@@ -382,9 +378,10 @@ export const de_DeleteResourcePermissionCommand = async (output, context) => {
|
|
|
382
378
|
$metadata: deserializeMetadata(output),
|
|
383
379
|
});
|
|
384
380
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
381
|
+
const doc = take(data, {
|
|
382
|
+
Policy: __expectString,
|
|
383
|
+
});
|
|
384
|
+
Object.assign(contents, doc);
|
|
388
385
|
return contents;
|
|
389
386
|
};
|
|
390
387
|
const de_DeleteResourcePermissionCommandError = async (output, context) => {
|
|
@@ -405,10 +402,9 @@ const de_DeleteResourcePermissionCommandError = async (output, context) => {
|
|
|
405
402
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
406
403
|
default:
|
|
407
404
|
const parsedBody = parsedOutput.body;
|
|
408
|
-
throwDefaultError({
|
|
405
|
+
return throwDefaultError({
|
|
409
406
|
output,
|
|
410
407
|
parsedBody,
|
|
411
|
-
exceptionCtor: __BaseException,
|
|
412
408
|
errorCode,
|
|
413
409
|
});
|
|
414
410
|
}
|
|
@@ -438,10 +434,9 @@ const de_DeregisterApplicationCommandError = async (output, context) => {
|
|
|
438
434
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
439
435
|
default:
|
|
440
436
|
const parsedBody = parsedOutput.body;
|
|
441
|
-
throwDefaultError({
|
|
437
|
+
return throwDefaultError({
|
|
442
438
|
output,
|
|
443
439
|
parsedBody,
|
|
444
|
-
exceptionCtor: __BaseException,
|
|
445
440
|
errorCode,
|
|
446
441
|
});
|
|
447
442
|
}
|
|
@@ -454,12 +449,11 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
454
449
|
$metadata: deserializeMetadata(output),
|
|
455
450
|
});
|
|
456
451
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
452
|
+
const doc = take(data, {
|
|
453
|
+
Application: (_) => de_Application(_, context),
|
|
454
|
+
Tags: _json,
|
|
455
|
+
});
|
|
456
|
+
Object.assign(contents, doc);
|
|
463
457
|
return contents;
|
|
464
458
|
};
|
|
465
459
|
const de_GetApplicationCommandError = async (output, context) => {
|
|
@@ -477,10 +471,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
477
471
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
478
472
|
default:
|
|
479
473
|
const parsedBody = parsedOutput.body;
|
|
480
|
-
throwDefaultError({
|
|
474
|
+
return throwDefaultError({
|
|
481
475
|
output,
|
|
482
476
|
parsedBody,
|
|
483
|
-
exceptionCtor: __BaseException,
|
|
484
477
|
errorCode,
|
|
485
478
|
});
|
|
486
479
|
}
|
|
@@ -493,9 +486,10 @@ export const de_GetComponentCommand = async (output, context) => {
|
|
|
493
486
|
$metadata: deserializeMetadata(output),
|
|
494
487
|
});
|
|
495
488
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
489
|
+
const doc = take(data, {
|
|
490
|
+
Component: (_) => de_Component(_, context),
|
|
491
|
+
});
|
|
492
|
+
Object.assign(contents, doc);
|
|
499
493
|
return contents;
|
|
500
494
|
};
|
|
501
495
|
const de_GetComponentCommandError = async (output, context) => {
|
|
@@ -513,10 +507,9 @@ const de_GetComponentCommandError = async (output, context) => {
|
|
|
513
507
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
514
508
|
default:
|
|
515
509
|
const parsedBody = parsedOutput.body;
|
|
516
|
-
throwDefaultError({
|
|
510
|
+
return throwDefaultError({
|
|
517
511
|
output,
|
|
518
512
|
parsedBody,
|
|
519
|
-
exceptionCtor: __BaseException,
|
|
520
513
|
errorCode,
|
|
521
514
|
});
|
|
522
515
|
}
|
|
@@ -529,12 +522,11 @@ export const de_GetDatabaseCommand = async (output, context) => {
|
|
|
529
522
|
$metadata: deserializeMetadata(output),
|
|
530
523
|
});
|
|
531
524
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
525
|
+
const doc = take(data, {
|
|
526
|
+
Database: (_) => de_Database(_, context),
|
|
527
|
+
Tags: _json,
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
538
530
|
return contents;
|
|
539
531
|
};
|
|
540
532
|
const de_GetDatabaseCommandError = async (output, context) => {
|
|
@@ -552,10 +544,9 @@ const de_GetDatabaseCommandError = async (output, context) => {
|
|
|
552
544
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
553
545
|
default:
|
|
554
546
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
throwDefaultError({
|
|
547
|
+
return throwDefaultError({
|
|
556
548
|
output,
|
|
557
549
|
parsedBody,
|
|
558
|
-
exceptionCtor: __BaseException,
|
|
559
550
|
errorCode,
|
|
560
551
|
});
|
|
561
552
|
}
|
|
@@ -568,9 +559,10 @@ export const de_GetOperationCommand = async (output, context) => {
|
|
|
568
559
|
$metadata: deserializeMetadata(output),
|
|
569
560
|
});
|
|
570
561
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
562
|
+
const doc = take(data, {
|
|
563
|
+
Operation: (_) => de_Operation(_, context),
|
|
564
|
+
});
|
|
565
|
+
Object.assign(contents, doc);
|
|
574
566
|
return contents;
|
|
575
567
|
};
|
|
576
568
|
const de_GetOperationCommandError = async (output, context) => {
|
|
@@ -588,10 +580,9 @@ const de_GetOperationCommandError = async (output, context) => {
|
|
|
588
580
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
589
581
|
default:
|
|
590
582
|
const parsedBody = parsedOutput.body;
|
|
591
|
-
throwDefaultError({
|
|
583
|
+
return throwDefaultError({
|
|
592
584
|
output,
|
|
593
585
|
parsedBody,
|
|
594
|
-
exceptionCtor: __BaseException,
|
|
595
586
|
errorCode,
|
|
596
587
|
});
|
|
597
588
|
}
|
|
@@ -604,9 +595,10 @@ export const de_GetResourcePermissionCommand = async (output, context) => {
|
|
|
604
595
|
$metadata: deserializeMetadata(output),
|
|
605
596
|
});
|
|
606
597
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
598
|
+
const doc = take(data, {
|
|
599
|
+
Policy: __expectString,
|
|
600
|
+
});
|
|
601
|
+
Object.assign(contents, doc);
|
|
610
602
|
return contents;
|
|
611
603
|
};
|
|
612
604
|
const de_GetResourcePermissionCommandError = async (output, context) => {
|
|
@@ -627,10 +619,9 @@ const de_GetResourcePermissionCommandError = async (output, context) => {
|
|
|
627
619
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
628
620
|
default:
|
|
629
621
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
throwDefaultError({
|
|
622
|
+
return throwDefaultError({
|
|
631
623
|
output,
|
|
632
624
|
parsedBody,
|
|
633
|
-
exceptionCtor: __BaseException,
|
|
634
625
|
errorCode,
|
|
635
626
|
});
|
|
636
627
|
}
|
|
@@ -643,12 +634,11 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
643
634
|
$metadata: deserializeMetadata(output),
|
|
644
635
|
});
|
|
645
636
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
637
|
+
const doc = take(data, {
|
|
638
|
+
Applications: _json,
|
|
639
|
+
NextToken: __expectString,
|
|
640
|
+
});
|
|
641
|
+
Object.assign(contents, doc);
|
|
652
642
|
return contents;
|
|
653
643
|
};
|
|
654
644
|
const de_ListApplicationsCommandError = async (output, context) => {
|
|
@@ -669,10 +659,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
669
659
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
670
660
|
default:
|
|
671
661
|
const parsedBody = parsedOutput.body;
|
|
672
|
-
throwDefaultError({
|
|
662
|
+
return throwDefaultError({
|
|
673
663
|
output,
|
|
674
664
|
parsedBody,
|
|
675
|
-
exceptionCtor: __BaseException,
|
|
676
665
|
errorCode,
|
|
677
666
|
});
|
|
678
667
|
}
|
|
@@ -685,12 +674,11 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
685
674
|
$metadata: deserializeMetadata(output),
|
|
686
675
|
});
|
|
687
676
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
677
|
+
const doc = take(data, {
|
|
678
|
+
Components: _json,
|
|
679
|
+
NextToken: __expectString,
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
694
682
|
return contents;
|
|
695
683
|
};
|
|
696
684
|
const de_ListComponentsCommandError = async (output, context) => {
|
|
@@ -711,10 +699,9 @@ const de_ListComponentsCommandError = async (output, context) => {
|
|
|
711
699
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
712
700
|
default:
|
|
713
701
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
throwDefaultError({
|
|
702
|
+
return throwDefaultError({
|
|
715
703
|
output,
|
|
716
704
|
parsedBody,
|
|
717
|
-
exceptionCtor: __BaseException,
|
|
718
705
|
errorCode,
|
|
719
706
|
});
|
|
720
707
|
}
|
|
@@ -727,12 +714,11 @@ export const de_ListDatabasesCommand = async (output, context) => {
|
|
|
727
714
|
$metadata: deserializeMetadata(output),
|
|
728
715
|
});
|
|
729
716
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
}
|
|
717
|
+
const doc = take(data, {
|
|
718
|
+
Databases: _json,
|
|
719
|
+
NextToken: __expectString,
|
|
720
|
+
});
|
|
721
|
+
Object.assign(contents, doc);
|
|
736
722
|
return contents;
|
|
737
723
|
};
|
|
738
724
|
const de_ListDatabasesCommandError = async (output, context) => {
|
|
@@ -753,10 +739,9 @@ const de_ListDatabasesCommandError = async (output, context) => {
|
|
|
753
739
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
754
740
|
default:
|
|
755
741
|
const parsedBody = parsedOutput.body;
|
|
756
|
-
throwDefaultError({
|
|
742
|
+
return throwDefaultError({
|
|
757
743
|
output,
|
|
758
744
|
parsedBody,
|
|
759
|
-
exceptionCtor: __BaseException,
|
|
760
745
|
errorCode,
|
|
761
746
|
});
|
|
762
747
|
}
|
|
@@ -769,12 +754,11 @@ export const de_ListOperationsCommand = async (output, context) => {
|
|
|
769
754
|
$metadata: deserializeMetadata(output),
|
|
770
755
|
});
|
|
771
756
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}
|
|
757
|
+
const doc = take(data, {
|
|
758
|
+
NextToken: __expectString,
|
|
759
|
+
Operations: (_) => de_OperationList(_, context),
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
778
762
|
return contents;
|
|
779
763
|
};
|
|
780
764
|
const de_ListOperationsCommandError = async (output, context) => {
|
|
@@ -792,10 +776,9 @@ const de_ListOperationsCommandError = async (output, context) => {
|
|
|
792
776
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
793
777
|
default:
|
|
794
778
|
const parsedBody = parsedOutput.body;
|
|
795
|
-
throwDefaultError({
|
|
779
|
+
return throwDefaultError({
|
|
796
780
|
output,
|
|
797
781
|
parsedBody,
|
|
798
|
-
exceptionCtor: __BaseException,
|
|
799
782
|
errorCode,
|
|
800
783
|
});
|
|
801
784
|
}
|
|
@@ -808,9 +791,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
808
791
|
$metadata: deserializeMetadata(output),
|
|
809
792
|
});
|
|
810
793
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}
|
|
794
|
+
const doc = take(data, {
|
|
795
|
+
tags: _json,
|
|
796
|
+
});
|
|
797
|
+
Object.assign(contents, doc);
|
|
814
798
|
return contents;
|
|
815
799
|
};
|
|
816
800
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -831,10 +815,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
831
815
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
816
|
default:
|
|
833
817
|
const parsedBody = parsedOutput.body;
|
|
834
|
-
throwDefaultError({
|
|
818
|
+
return throwDefaultError({
|
|
835
819
|
output,
|
|
836
820
|
parsedBody,
|
|
837
|
-
exceptionCtor: __BaseException,
|
|
838
821
|
errorCode,
|
|
839
822
|
});
|
|
840
823
|
}
|
|
@@ -847,9 +830,10 @@ export const de_PutResourcePermissionCommand = async (output, context) => {
|
|
|
847
830
|
$metadata: deserializeMetadata(output),
|
|
848
831
|
});
|
|
849
832
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
833
|
+
const doc = take(data, {
|
|
834
|
+
Policy: __expectString,
|
|
835
|
+
});
|
|
836
|
+
Object.assign(contents, doc);
|
|
853
837
|
return contents;
|
|
854
838
|
};
|
|
855
839
|
const de_PutResourcePermissionCommandError = async (output, context) => {
|
|
@@ -870,10 +854,9 @@ const de_PutResourcePermissionCommandError = async (output, context) => {
|
|
|
870
854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
871
855
|
default:
|
|
872
856
|
const parsedBody = parsedOutput.body;
|
|
873
|
-
throwDefaultError({
|
|
857
|
+
return throwDefaultError({
|
|
874
858
|
output,
|
|
875
859
|
parsedBody,
|
|
876
|
-
exceptionCtor: __BaseException,
|
|
877
860
|
errorCode,
|
|
878
861
|
});
|
|
879
862
|
}
|
|
@@ -886,12 +869,11 @@ export const de_RegisterApplicationCommand = async (output, context) => {
|
|
|
886
869
|
$metadata: deserializeMetadata(output),
|
|
887
870
|
});
|
|
888
871
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
}
|
|
872
|
+
const doc = take(data, {
|
|
873
|
+
Application: (_) => de_Application(_, context),
|
|
874
|
+
OperationId: __expectString,
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
895
877
|
return contents;
|
|
896
878
|
};
|
|
897
879
|
const de_RegisterApplicationCommandError = async (output, context) => {
|
|
@@ -912,10 +894,9 @@ const de_RegisterApplicationCommandError = async (output, context) => {
|
|
|
912
894
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
913
895
|
default:
|
|
914
896
|
const parsedBody = parsedOutput.body;
|
|
915
|
-
throwDefaultError({
|
|
897
|
+
return throwDefaultError({
|
|
916
898
|
output,
|
|
917
899
|
parsedBody,
|
|
918
|
-
exceptionCtor: __BaseException,
|
|
919
900
|
errorCode,
|
|
920
901
|
});
|
|
921
902
|
}
|
|
@@ -948,10 +929,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
948
929
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
949
930
|
default:
|
|
950
931
|
const parsedBody = parsedOutput.body;
|
|
951
|
-
throwDefaultError({
|
|
932
|
+
return throwDefaultError({
|
|
952
933
|
output,
|
|
953
934
|
parsedBody,
|
|
954
|
-
exceptionCtor: __BaseException,
|
|
955
935
|
errorCode,
|
|
956
936
|
});
|
|
957
937
|
}
|
|
@@ -984,10 +964,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
984
964
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
965
|
default:
|
|
986
966
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
throwDefaultError({
|
|
967
|
+
return throwDefaultError({
|
|
988
968
|
output,
|
|
989
969
|
parsedBody,
|
|
990
|
-
exceptionCtor: __BaseException,
|
|
991
970
|
errorCode,
|
|
992
971
|
});
|
|
993
972
|
}
|
|
@@ -1000,12 +979,11 @@ export const de_UpdateApplicationSettingsCommand = async (output, context) => {
|
|
|
1000
979
|
$metadata: deserializeMetadata(output),
|
|
1001
980
|
});
|
|
1002
981
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}
|
|
982
|
+
const doc = take(data, {
|
|
983
|
+
Message: __expectString,
|
|
984
|
+
OperationIds: _json,
|
|
985
|
+
});
|
|
986
|
+
Object.assign(contents, doc);
|
|
1009
987
|
return contents;
|
|
1010
988
|
};
|
|
1011
989
|
const de_UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
@@ -1026,21 +1004,21 @@ const de_UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
|
1026
1004
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1027
1005
|
default:
|
|
1028
1006
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
throwDefaultError({
|
|
1007
|
+
return throwDefaultError({
|
|
1030
1008
|
output,
|
|
1031
1009
|
parsedBody,
|
|
1032
|
-
exceptionCtor: __BaseException,
|
|
1033
1010
|
errorCode,
|
|
1034
1011
|
});
|
|
1035
1012
|
}
|
|
1036
1013
|
};
|
|
1037
|
-
const
|
|
1014
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1038
1015
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1039
1016
|
const contents = map({});
|
|
1040
1017
|
const data = parsedOutput.body;
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
}
|
|
1018
|
+
const doc = take(data, {
|
|
1019
|
+
Message: __expectString,
|
|
1020
|
+
});
|
|
1021
|
+
Object.assign(contents, doc);
|
|
1044
1022
|
const exception = new ConflictException({
|
|
1045
1023
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1046
1024
|
...contents,
|
|
@@ -1050,9 +1028,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1050
1028
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1051
1029
|
const contents = map({});
|
|
1052
1030
|
const data = parsedOutput.body;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
1031
|
+
const doc = take(data, {
|
|
1032
|
+
Message: __expectString,
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1056
1035
|
const exception = new InternalServerException({
|
|
1057
1036
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1058
1037
|
...contents,
|
|
@@ -1062,9 +1041,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1062
1041
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1063
1042
|
const contents = map({});
|
|
1064
1043
|
const data = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
}
|
|
1044
|
+
const doc = take(data, {
|
|
1045
|
+
Message: __expectString,
|
|
1046
|
+
});
|
|
1047
|
+
Object.assign(contents, doc);
|
|
1068
1048
|
const exception = new ResourceNotFoundException({
|
|
1069
1049
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1070
1050
|
...contents,
|
|
@@ -1074,257 +1054,74 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1074
1054
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1075
1055
|
const contents = map({});
|
|
1076
1056
|
const data = parsedOutput.body;
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1057
|
+
const doc = take(data, {
|
|
1058
|
+
Message: __expectString,
|
|
1059
|
+
});
|
|
1060
|
+
Object.assign(contents, doc);
|
|
1080
1061
|
const exception = new ValidationException({
|
|
1081
1062
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1082
1063
|
...contents,
|
|
1083
1064
|
});
|
|
1084
1065
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1085
1066
|
};
|
|
1086
|
-
const se_ApplicationCredential = (input, context) => {
|
|
1087
|
-
return {
|
|
1088
|
-
...(input.CredentialType != null && { CredentialType: input.CredentialType }),
|
|
1089
|
-
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1090
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1091
|
-
};
|
|
1092
|
-
};
|
|
1093
|
-
const se_ApplicationCredentialList = (input, context) => {
|
|
1094
|
-
return input
|
|
1095
|
-
.filter((e) => e != null)
|
|
1096
|
-
.map((entry) => {
|
|
1097
|
-
return se_ApplicationCredential(entry, context);
|
|
1098
|
-
});
|
|
1099
|
-
};
|
|
1100
|
-
const se_Filter = (input, context) => {
|
|
1101
|
-
return {
|
|
1102
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1103
|
-
...(input.Operator != null && { Operator: input.Operator }),
|
|
1104
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1105
|
-
};
|
|
1106
|
-
};
|
|
1107
|
-
const se_FilterList = (input, context) => {
|
|
1108
|
-
return input
|
|
1109
|
-
.filter((e) => e != null)
|
|
1110
|
-
.map((entry) => {
|
|
1111
|
-
return se_Filter(entry, context);
|
|
1112
|
-
});
|
|
1113
|
-
};
|
|
1114
|
-
const se_InstanceList = (input, context) => {
|
|
1115
|
-
return input
|
|
1116
|
-
.filter((e) => e != null)
|
|
1117
|
-
.map((entry) => {
|
|
1118
|
-
return entry;
|
|
1119
|
-
});
|
|
1120
|
-
};
|
|
1121
|
-
const se_TagMap = (input, context) => {
|
|
1122
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1123
|
-
if (value === null) {
|
|
1124
|
-
return acc;
|
|
1125
|
-
}
|
|
1126
|
-
acc[key] = value;
|
|
1127
|
-
return acc;
|
|
1128
|
-
}, {});
|
|
1129
|
-
};
|
|
1130
1067
|
const de_Application = (output, context) => {
|
|
1131
|
-
return {
|
|
1132
|
-
AppRegistryArn: __expectString
|
|
1133
|
-
Arn: __expectString
|
|
1134
|
-
Components:
|
|
1135
|
-
Id: __expectString
|
|
1136
|
-
LastUpdated:
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
StatusMessage: __expectString(output.StatusMessage),
|
|
1141
|
-
Type: __expectString(output.Type),
|
|
1142
|
-
};
|
|
1143
|
-
};
|
|
1144
|
-
const de_ApplicationCredential = (output, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
CredentialType: __expectString(output.CredentialType),
|
|
1147
|
-
DatabaseName: __expectString(output.DatabaseName),
|
|
1148
|
-
SecretId: __expectString(output.SecretId),
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
const de_ApplicationCredentialList = (output, context) => {
|
|
1152
|
-
const retVal = (output || [])
|
|
1153
|
-
.filter((e) => e != null)
|
|
1154
|
-
.map((entry) => {
|
|
1155
|
-
if (entry === null) {
|
|
1156
|
-
return null;
|
|
1157
|
-
}
|
|
1158
|
-
return de_ApplicationCredential(entry, context);
|
|
1068
|
+
return take(output, {
|
|
1069
|
+
AppRegistryArn: __expectString,
|
|
1070
|
+
Arn: __expectString,
|
|
1071
|
+
Components: _json,
|
|
1072
|
+
Id: __expectString,
|
|
1073
|
+
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1074
|
+
Status: __expectString,
|
|
1075
|
+
StatusMessage: __expectString,
|
|
1076
|
+
Type: __expectString,
|
|
1159
1077
|
});
|
|
1160
|
-
return retVal;
|
|
1161
|
-
};
|
|
1162
|
-
const de_ApplicationSummary = (output, context) => {
|
|
1163
|
-
return {
|
|
1164
|
-
Arn: __expectString(output.Arn),
|
|
1165
|
-
Id: __expectString(output.Id),
|
|
1166
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1167
|
-
Type: __expectString(output.Type),
|
|
1168
|
-
};
|
|
1169
|
-
};
|
|
1170
|
-
const de_ApplicationSummaryList = (output, context) => {
|
|
1171
|
-
const retVal = (output || [])
|
|
1172
|
-
.filter((e) => e != null)
|
|
1173
|
-
.map((entry) => {
|
|
1174
|
-
if (entry === null) {
|
|
1175
|
-
return null;
|
|
1176
|
-
}
|
|
1177
|
-
return de_ApplicationSummary(entry, context);
|
|
1178
|
-
});
|
|
1179
|
-
return retVal;
|
|
1180
1078
|
};
|
|
1181
1079
|
const de_Component = (output, context) => {
|
|
1182
|
-
return {
|
|
1183
|
-
ApplicationId: __expectString
|
|
1184
|
-
ComponentId: __expectString
|
|
1185
|
-
ComponentType: __expectString
|
|
1186
|
-
Databases:
|
|
1187
|
-
Hosts:
|
|
1188
|
-
LastUpdated:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
PrimaryHost: __expectString(output.PrimaryHost),
|
|
1192
|
-
Status: __expectString(output.Status),
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
const de_ComponentIdList = (output, context) => {
|
|
1196
|
-
const retVal = (output || [])
|
|
1197
|
-
.filter((e) => e != null)
|
|
1198
|
-
.map((entry) => {
|
|
1199
|
-
if (entry === null) {
|
|
1200
|
-
return null;
|
|
1201
|
-
}
|
|
1202
|
-
return __expectString(entry);
|
|
1080
|
+
return take(output, {
|
|
1081
|
+
ApplicationId: __expectString,
|
|
1082
|
+
ComponentId: __expectString,
|
|
1083
|
+
ComponentType: __expectString,
|
|
1084
|
+
Databases: _json,
|
|
1085
|
+
Hosts: _json,
|
|
1086
|
+
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1087
|
+
PrimaryHost: __expectString,
|
|
1088
|
+
Status: __expectString,
|
|
1203
1089
|
});
|
|
1204
|
-
return retVal;
|
|
1205
|
-
};
|
|
1206
|
-
const de_ComponentSummary = (output, context) => {
|
|
1207
|
-
return {
|
|
1208
|
-
ApplicationId: __expectString(output.ApplicationId),
|
|
1209
|
-
ComponentId: __expectString(output.ComponentId),
|
|
1210
|
-
ComponentType: __expectString(output.ComponentType),
|
|
1211
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1212
|
-
};
|
|
1213
|
-
};
|
|
1214
|
-
const de_ComponentSummaryList = (output, context) => {
|
|
1215
|
-
const retVal = (output || [])
|
|
1216
|
-
.filter((e) => e != null)
|
|
1217
|
-
.map((entry) => {
|
|
1218
|
-
if (entry === null) {
|
|
1219
|
-
return null;
|
|
1220
|
-
}
|
|
1221
|
-
return de_ComponentSummary(entry, context);
|
|
1222
|
-
});
|
|
1223
|
-
return retVal;
|
|
1224
1090
|
};
|
|
1225
1091
|
const de_Database = (output, context) => {
|
|
1226
|
-
return {
|
|
1227
|
-
ApplicationId: __expectString
|
|
1228
|
-
Arn: __expectString
|
|
1229
|
-
ComponentId: __expectString
|
|
1230
|
-
Credentials:
|
|
1231
|
-
DatabaseId: __expectString
|
|
1232
|
-
DatabaseName: __expectString
|
|
1233
|
-
DatabaseType: __expectString
|
|
1234
|
-
LastUpdated:
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
SQLPort: __expectInt32(output.SQLPort),
|
|
1239
|
-
Status: __expectString(output.Status),
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
const de_DatabaseIdList = (output, context) => {
|
|
1243
|
-
const retVal = (output || [])
|
|
1244
|
-
.filter((e) => e != null)
|
|
1245
|
-
.map((entry) => {
|
|
1246
|
-
if (entry === null) {
|
|
1247
|
-
return null;
|
|
1248
|
-
}
|
|
1249
|
-
return __expectString(entry);
|
|
1250
|
-
});
|
|
1251
|
-
return retVal;
|
|
1252
|
-
};
|
|
1253
|
-
const de_DatabaseSummary = (output, context) => {
|
|
1254
|
-
return {
|
|
1255
|
-
ApplicationId: __expectString(output.ApplicationId),
|
|
1256
|
-
Arn: __expectString(output.Arn),
|
|
1257
|
-
ComponentId: __expectString(output.ComponentId),
|
|
1258
|
-
DatabaseId: __expectString(output.DatabaseId),
|
|
1259
|
-
DatabaseType: __expectString(output.DatabaseType),
|
|
1260
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1261
|
-
};
|
|
1262
|
-
};
|
|
1263
|
-
const de_DatabaseSummaryList = (output, context) => {
|
|
1264
|
-
const retVal = (output || [])
|
|
1265
|
-
.filter((e) => e != null)
|
|
1266
|
-
.map((entry) => {
|
|
1267
|
-
if (entry === null) {
|
|
1268
|
-
return null;
|
|
1269
|
-
}
|
|
1270
|
-
return de_DatabaseSummary(entry, context);
|
|
1092
|
+
return take(output, {
|
|
1093
|
+
ApplicationId: __expectString,
|
|
1094
|
+
Arn: __expectString,
|
|
1095
|
+
ComponentId: __expectString,
|
|
1096
|
+
Credentials: _json,
|
|
1097
|
+
DatabaseId: __expectString,
|
|
1098
|
+
DatabaseName: __expectString,
|
|
1099
|
+
DatabaseType: __expectString,
|
|
1100
|
+
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1101
|
+
PrimaryHost: __expectString,
|
|
1102
|
+
SQLPort: __expectInt32,
|
|
1103
|
+
Status: __expectString,
|
|
1271
1104
|
});
|
|
1272
|
-
return retVal;
|
|
1273
|
-
};
|
|
1274
|
-
const de_Host = (output, context) => {
|
|
1275
|
-
return {
|
|
1276
|
-
HostIp: __expectString(output.HostIp),
|
|
1277
|
-
HostName: __expectString(output.HostName),
|
|
1278
|
-
HostRole: __expectString(output.HostRole),
|
|
1279
|
-
InstanceId: __expectString(output.InstanceId),
|
|
1280
|
-
};
|
|
1281
|
-
};
|
|
1282
|
-
const de_HostList = (output, context) => {
|
|
1283
|
-
const retVal = (output || [])
|
|
1284
|
-
.filter((e) => e != null)
|
|
1285
|
-
.map((entry) => {
|
|
1286
|
-
if (entry === null) {
|
|
1287
|
-
return null;
|
|
1288
|
-
}
|
|
1289
|
-
return de_Host(entry, context);
|
|
1290
|
-
});
|
|
1291
|
-
return retVal;
|
|
1292
1105
|
};
|
|
1293
1106
|
const de_Operation = (output, context) => {
|
|
1294
|
-
return {
|
|
1295
|
-
EndTime:
|
|
1296
|
-
Id: __expectString
|
|
1297
|
-
LastUpdatedTime:
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
StatusMessage: __expectString(output.StatusMessage),
|
|
1307
|
-
Type: __expectString(output.Type),
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
const de_OperationIdList = (output, context) => {
|
|
1311
|
-
const retVal = (output || [])
|
|
1312
|
-
.filter((e) => e != null)
|
|
1313
|
-
.map((entry) => {
|
|
1314
|
-
if (entry === null) {
|
|
1315
|
-
return null;
|
|
1316
|
-
}
|
|
1317
|
-
return __expectString(entry);
|
|
1107
|
+
return take(output, {
|
|
1108
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1109
|
+
Id: __expectString,
|
|
1110
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1111
|
+
Properties: (_) => de_OperationProperties(_, context),
|
|
1112
|
+
ResourceArn: __expectString,
|
|
1113
|
+
ResourceId: __expectString,
|
|
1114
|
+
ResourceType: __expectString,
|
|
1115
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1116
|
+
Status: __expectString,
|
|
1117
|
+
StatusMessage: __expectString,
|
|
1118
|
+
Type: __expectString,
|
|
1318
1119
|
});
|
|
1319
|
-
return retVal;
|
|
1320
1120
|
};
|
|
1321
1121
|
const de_OperationList = (output, context) => {
|
|
1322
1122
|
const retVal = (output || [])
|
|
1323
1123
|
.filter((e) => e != null)
|
|
1324
1124
|
.map((entry) => {
|
|
1325
|
-
if (entry === null) {
|
|
1326
|
-
return null;
|
|
1327
|
-
}
|
|
1328
1125
|
return de_Operation(entry, context);
|
|
1329
1126
|
});
|
|
1330
1127
|
return retVal;
|
|
@@ -1339,15 +1136,6 @@ const de_OperationProperties = (output, context) => {
|
|
|
1339
1136
|
return acc;
|
|
1340
1137
|
}, {});
|
|
1341
1138
|
};
|
|
1342
|
-
const de_TagMap = (output, context) => {
|
|
1343
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1344
|
-
if (value === null) {
|
|
1345
|
-
return acc;
|
|
1346
|
-
}
|
|
1347
|
-
acc[key] = __expectString(value);
|
|
1348
|
-
return acc;
|
|
1349
|
-
}, {});
|
|
1350
|
-
};
|
|
1351
1139
|
const deserializeMetadata = (output) => ({
|
|
1352
1140
|
httpStatusCode: output.statusCode,
|
|
1353
1141
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|