@aws-sdk/client-mq 3.312.0 → 3.316.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/Mq.js +26 -308
- package/dist-cjs/protocols/Aws_restJson1.js +433 -694
- package/dist-es/Mq.js +26 -308
- package/dist-es/protocols/Aws_restJson1.js +399 -660
- package/dist-types/Mq.d.ts +29 -49
- package/dist-types/ts3.4/Mq.d.ts +2 -1
- package/package.json +6 -6
|
@@ -13,33 +13,27 @@ const se_CreateBrokerCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
creatorRequestId:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
...(input.SecurityGroups != null && { securityGroups: se___listOf__string(input.SecurityGroups, context) }),
|
|
38
|
-
...(input.StorageType != null && { storageType: input.StorageType }),
|
|
39
|
-
...(input.SubnetIds != null && { subnetIds: se___listOf__string(input.SubnetIds, context) }),
|
|
40
|
-
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
41
|
-
...(input.Users != null && { users: se___listOfUser(input.Users, context) }),
|
|
42
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
authenticationStrategy: [, , `AuthenticationStrategy`],
|
|
18
|
+
autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
|
|
19
|
+
brokerName: [, , `BrokerName`],
|
|
20
|
+
configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
|
|
21
|
+
creatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)(), `CreatorRequestId`],
|
|
22
|
+
deploymentMode: [, , `DeploymentMode`],
|
|
23
|
+
encryptionOptions: [, (_) => se_EncryptionOptions(_, context), `EncryptionOptions`],
|
|
24
|
+
engineType: [, , `EngineType`],
|
|
25
|
+
engineVersion: [, , `EngineVersion`],
|
|
26
|
+
hostInstanceType: [, , `HostInstanceType`],
|
|
27
|
+
ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
|
|
28
|
+
logs: [, (_) => se_Logs(_, context), `Logs`],
|
|
29
|
+
maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
|
|
30
|
+
publiclyAccessible: [, , `PubliclyAccessible`],
|
|
31
|
+
securityGroups: [, (_) => (0, smithy_client_1._json)(_), `SecurityGroups`],
|
|
32
|
+
storageType: [, , `StorageType`],
|
|
33
|
+
subnetIds: [, (_) => (0, smithy_client_1._json)(_), `SubnetIds`],
|
|
34
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
35
|
+
users: [, (_) => se___listOfUser(_, context), `Users`],
|
|
36
|
+
}));
|
|
43
37
|
return new protocol_http_1.HttpRequest({
|
|
44
38
|
protocol,
|
|
45
39
|
hostname,
|
|
@@ -58,13 +52,13 @@ const se_CreateConfigurationCommand = async (input, context) => {
|
|
|
58
52
|
};
|
|
59
53
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations";
|
|
60
54
|
let body;
|
|
61
|
-
body = JSON.stringify({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
});
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
56
|
+
authenticationStrategy: [, , `AuthenticationStrategy`],
|
|
57
|
+
engineType: [, , `EngineType`],
|
|
58
|
+
engineVersion: [, , `EngineVersion`],
|
|
59
|
+
name: [, , `Name`],
|
|
60
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
61
|
+
}));
|
|
68
62
|
return new protocol_http_1.HttpRequest({
|
|
69
63
|
protocol,
|
|
70
64
|
hostname,
|
|
@@ -84,9 +78,9 @@ const se_CreateTagsCommand = async (input, context) => {
|
|
|
84
78
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
85
79
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
86
80
|
let body;
|
|
87
|
-
body = JSON.stringify({
|
|
88
|
-
|
|
89
|
-
});
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
82
|
+
tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
|
|
83
|
+
}));
|
|
90
84
|
return new protocol_http_1.HttpRequest({
|
|
91
85
|
protocol,
|
|
92
86
|
hostname,
|
|
@@ -107,11 +101,11 @@ const se_CreateUserCommand = async (input, context) => {
|
|
|
107
101
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
108
102
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Username", () => input.Username, "{Username}", false);
|
|
109
103
|
let body;
|
|
110
|
-
body = JSON.stringify({
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
});
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
|
+
consoleAccess: [, , `ConsoleAccess`],
|
|
106
|
+
groups: [, (_) => (0, smithy_client_1._json)(_), `Groups`],
|
|
107
|
+
password: [, , `Password`],
|
|
108
|
+
}));
|
|
115
109
|
return new protocol_http_1.HttpRequest({
|
|
116
110
|
protocol,
|
|
117
111
|
hostname,
|
|
@@ -145,7 +139,7 @@ const se_DeleteTagsCommand = async (input, context) => {
|
|
|
145
139
|
const headers = {};
|
|
146
140
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
147
141
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
148
|
-
const query = map({
|
|
142
|
+
const query = (0, smithy_client_1.map)({
|
|
149
143
|
tagKeys: [
|
|
150
144
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
151
145
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -203,7 +197,7 @@ const se_DescribeBrokerEngineTypesCommand = async (input, context) => {
|
|
|
203
197
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
198
|
const headers = {};
|
|
205
199
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/broker-engine-types";
|
|
206
|
-
const query = map({
|
|
200
|
+
const query = (0, smithy_client_1.map)({
|
|
207
201
|
engineType: [, input.EngineType],
|
|
208
202
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
209
203
|
nextToken: [, input.NextToken],
|
|
@@ -225,7 +219,7 @@ const se_DescribeBrokerInstanceOptionsCommand = async (input, context) => {
|
|
|
225
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
220
|
const headers = {};
|
|
227
221
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/broker-instance-options";
|
|
228
|
-
const query = map({
|
|
222
|
+
const query = (0, smithy_client_1.map)({
|
|
229
223
|
engineType: [, input.EngineType],
|
|
230
224
|
hostInstanceType: [, input.HostInstanceType],
|
|
231
225
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
@@ -303,7 +297,7 @@ const se_ListBrokersCommand = async (input, context) => {
|
|
|
303
297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
304
298
|
const headers = {};
|
|
305
299
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers";
|
|
306
|
-
const query = map({
|
|
300
|
+
const query = (0, smithy_client_1.map)({
|
|
307
301
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
308
302
|
nextToken: [, input.NextToken],
|
|
309
303
|
});
|
|
@@ -326,7 +320,7 @@ const se_ListConfigurationRevisionsCommand = async (input, context) => {
|
|
|
326
320
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
327
321
|
"/v1/configurations/{ConfigurationId}/revisions";
|
|
328
322
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
329
|
-
const query = map({
|
|
323
|
+
const query = (0, smithy_client_1.map)({
|
|
330
324
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
331
325
|
nextToken: [, input.NextToken],
|
|
332
326
|
});
|
|
@@ -347,7 +341,7 @@ const se_ListConfigurationsCommand = async (input, context) => {
|
|
|
347
341
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
348
342
|
const headers = {};
|
|
349
343
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations";
|
|
350
|
-
const query = map({
|
|
344
|
+
const query = (0, smithy_client_1.map)({
|
|
351
345
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
352
346
|
nextToken: [, input.NextToken],
|
|
353
347
|
});
|
|
@@ -386,7 +380,7 @@ const se_ListUsersCommand = async (input, context) => {
|
|
|
386
380
|
const headers = {};
|
|
387
381
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users";
|
|
388
382
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
389
|
-
const query = map({
|
|
383
|
+
const query = (0, smithy_client_1.map)({
|
|
390
384
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
391
385
|
nextToken: [, input.NextToken],
|
|
392
386
|
});
|
|
@@ -428,21 +422,17 @@ const se_UpdateBrokerCommand = async (input, context) => {
|
|
|
428
422
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}";
|
|
429
423
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
430
424
|
let body;
|
|
431
|
-
body = JSON.stringify({
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
maintenanceWindowStartTime: se_WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
443
|
-
}),
|
|
444
|
-
...(input.SecurityGroups != null && { securityGroups: se___listOf__string(input.SecurityGroups, context) }),
|
|
445
|
-
});
|
|
425
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
426
|
+
authenticationStrategy: [, , `AuthenticationStrategy`],
|
|
427
|
+
autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
|
|
428
|
+
configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
|
|
429
|
+
engineVersion: [, , `EngineVersion`],
|
|
430
|
+
hostInstanceType: [, , `HostInstanceType`],
|
|
431
|
+
ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
|
|
432
|
+
logs: [, (_) => se_Logs(_, context), `Logs`],
|
|
433
|
+
maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
|
|
434
|
+
securityGroups: [, (_) => (0, smithy_client_1._json)(_), `SecurityGroups`],
|
|
435
|
+
}));
|
|
446
436
|
return new protocol_http_1.HttpRequest({
|
|
447
437
|
protocol,
|
|
448
438
|
hostname,
|
|
@@ -462,10 +452,10 @@ const se_UpdateConfigurationCommand = async (input, context) => {
|
|
|
462
452
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{ConfigurationId}";
|
|
463
453
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
464
454
|
let body;
|
|
465
|
-
body = JSON.stringify({
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
});
|
|
455
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
456
|
+
data: [, , `Data`],
|
|
457
|
+
description: [, , `Description`],
|
|
458
|
+
}));
|
|
469
459
|
return new protocol_http_1.HttpRequest({
|
|
470
460
|
protocol,
|
|
471
461
|
hostname,
|
|
@@ -486,11 +476,11 @@ const se_UpdateUserCommand = async (input, context) => {
|
|
|
486
476
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
487
477
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Username", () => input.Username, "{Username}", false);
|
|
488
478
|
let body;
|
|
489
|
-
body = JSON.stringify({
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
});
|
|
479
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
480
|
+
consoleAccess: [, , `ConsoleAccess`],
|
|
481
|
+
groups: [, (_) => (0, smithy_client_1._json)(_), `Groups`],
|
|
482
|
+
password: [, , `Password`],
|
|
483
|
+
}));
|
|
494
484
|
return new protocol_http_1.HttpRequest({
|
|
495
485
|
protocol,
|
|
496
486
|
hostname,
|
|
@@ -506,16 +496,15 @@ const de_CreateBrokerCommand = async (output, context) => {
|
|
|
506
496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
497
|
return de_CreateBrokerCommandError(output, context);
|
|
508
498
|
}
|
|
509
|
-
const contents = map({
|
|
499
|
+
const contents = (0, smithy_client_1.map)({
|
|
510
500
|
$metadata: deserializeMetadata(output),
|
|
511
501
|
});
|
|
512
502
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
}
|
|
503
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
504
|
+
BrokerArn: [, smithy_client_1.expectString, `brokerArn`],
|
|
505
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
506
|
+
});
|
|
507
|
+
Object.assign(contents, doc);
|
|
519
508
|
return contents;
|
|
520
509
|
};
|
|
521
510
|
exports.de_CreateBrokerCommand = de_CreateBrokerCommand;
|
|
@@ -543,10 +532,9 @@ const de_CreateBrokerCommandError = async (output, context) => {
|
|
|
543
532
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
544
533
|
default:
|
|
545
534
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
|
|
535
|
+
return throwDefaultError({
|
|
547
536
|
output,
|
|
548
537
|
parsedBody,
|
|
549
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
550
538
|
errorCode,
|
|
551
539
|
});
|
|
552
540
|
}
|
|
@@ -555,28 +543,19 @@ const de_CreateConfigurationCommand = async (output, context) => {
|
|
|
555
543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
556
544
|
return de_CreateConfigurationCommandError(output, context);
|
|
557
545
|
}
|
|
558
|
-
const contents = map({
|
|
546
|
+
const contents = (0, smithy_client_1.map)({
|
|
559
547
|
$metadata: deserializeMetadata(output),
|
|
560
548
|
});
|
|
561
549
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
if (data.id != null) {
|
|
572
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
573
|
-
}
|
|
574
|
-
if (data.latestRevision != null) {
|
|
575
|
-
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
576
|
-
}
|
|
577
|
-
if (data.name != null) {
|
|
578
|
-
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
579
|
-
}
|
|
550
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
551
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
552
|
+
AuthenticationStrategy: [, smithy_client_1.expectString, `authenticationStrategy`],
|
|
553
|
+
Created: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
554
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
555
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
556
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
557
|
+
});
|
|
558
|
+
Object.assign(contents, doc);
|
|
580
559
|
return contents;
|
|
581
560
|
};
|
|
582
561
|
exports.de_CreateConfigurationCommand = de_CreateConfigurationCommand;
|
|
@@ -601,10 +580,9 @@ const de_CreateConfigurationCommandError = async (output, context) => {
|
|
|
601
580
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
602
581
|
default:
|
|
603
582
|
const parsedBody = parsedOutput.body;
|
|
604
|
-
|
|
583
|
+
return throwDefaultError({
|
|
605
584
|
output,
|
|
606
585
|
parsedBody,
|
|
607
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
608
586
|
errorCode,
|
|
609
587
|
});
|
|
610
588
|
}
|
|
@@ -613,7 +591,7 @@ const de_CreateTagsCommand = async (output, context) => {
|
|
|
613
591
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
614
592
|
return de_CreateTagsCommandError(output, context);
|
|
615
593
|
}
|
|
616
|
-
const contents = map({
|
|
594
|
+
const contents = (0, smithy_client_1.map)({
|
|
617
595
|
$metadata: deserializeMetadata(output),
|
|
618
596
|
});
|
|
619
597
|
await collectBody(output.body, context);
|
|
@@ -641,10 +619,9 @@ const de_CreateTagsCommandError = async (output, context) => {
|
|
|
641
619
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
642
620
|
default:
|
|
643
621
|
const parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
622
|
+
return throwDefaultError({
|
|
645
623
|
output,
|
|
646
624
|
parsedBody,
|
|
647
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
648
625
|
errorCode,
|
|
649
626
|
});
|
|
650
627
|
}
|
|
@@ -653,7 +630,7 @@ const de_CreateUserCommand = async (output, context) => {
|
|
|
653
630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
631
|
return de_CreateUserCommandError(output, context);
|
|
655
632
|
}
|
|
656
|
-
const contents = map({
|
|
633
|
+
const contents = (0, smithy_client_1.map)({
|
|
657
634
|
$metadata: deserializeMetadata(output),
|
|
658
635
|
});
|
|
659
636
|
await collectBody(output.body, context);
|
|
@@ -684,10 +661,9 @@ const de_CreateUserCommandError = async (output, context) => {
|
|
|
684
661
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
685
662
|
default:
|
|
686
663
|
const parsedBody = parsedOutput.body;
|
|
687
|
-
|
|
664
|
+
return throwDefaultError({
|
|
688
665
|
output,
|
|
689
666
|
parsedBody,
|
|
690
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
691
667
|
errorCode,
|
|
692
668
|
});
|
|
693
669
|
}
|
|
@@ -696,13 +672,14 @@ const de_DeleteBrokerCommand = async (output, context) => {
|
|
|
696
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
697
673
|
return de_DeleteBrokerCommandError(output, context);
|
|
698
674
|
}
|
|
699
|
-
const contents = map({
|
|
675
|
+
const contents = (0, smithy_client_1.map)({
|
|
700
676
|
$metadata: deserializeMetadata(output),
|
|
701
677
|
});
|
|
702
678
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
679
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
680
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
681
|
+
});
|
|
682
|
+
Object.assign(contents, doc);
|
|
706
683
|
return contents;
|
|
707
684
|
};
|
|
708
685
|
exports.de_DeleteBrokerCommand = de_DeleteBrokerCommand;
|
|
@@ -727,10 +704,9 @@ const de_DeleteBrokerCommandError = async (output, context) => {
|
|
|
727
704
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
728
705
|
default:
|
|
729
706
|
const parsedBody = parsedOutput.body;
|
|
730
|
-
|
|
707
|
+
return throwDefaultError({
|
|
731
708
|
output,
|
|
732
709
|
parsedBody,
|
|
733
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
734
710
|
errorCode,
|
|
735
711
|
});
|
|
736
712
|
}
|
|
@@ -739,7 +715,7 @@ const de_DeleteTagsCommand = async (output, context) => {
|
|
|
739
715
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
740
716
|
return de_DeleteTagsCommandError(output, context);
|
|
741
717
|
}
|
|
742
|
-
const contents = map({
|
|
718
|
+
const contents = (0, smithy_client_1.map)({
|
|
743
719
|
$metadata: deserializeMetadata(output),
|
|
744
720
|
});
|
|
745
721
|
await collectBody(output.body, context);
|
|
@@ -767,10 +743,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
|
|
|
767
743
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
768
744
|
default:
|
|
769
745
|
const parsedBody = parsedOutput.body;
|
|
770
|
-
|
|
746
|
+
return throwDefaultError({
|
|
771
747
|
output,
|
|
772
748
|
parsedBody,
|
|
773
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
774
749
|
errorCode,
|
|
775
750
|
});
|
|
776
751
|
}
|
|
@@ -779,7 +754,7 @@ const de_DeleteUserCommand = async (output, context) => {
|
|
|
779
754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
755
|
return de_DeleteUserCommandError(output, context);
|
|
781
756
|
}
|
|
782
|
-
const contents = map({
|
|
757
|
+
const contents = (0, smithy_client_1.map)({
|
|
783
758
|
$metadata: deserializeMetadata(output),
|
|
784
759
|
});
|
|
785
760
|
await collectBody(output.body, context);
|
|
@@ -807,10 +782,9 @@ const de_DeleteUserCommandError = async (output, context) => {
|
|
|
807
782
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
808
783
|
default:
|
|
809
784
|
const parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
785
|
+
return throwDefaultError({
|
|
811
786
|
output,
|
|
812
787
|
parsedBody,
|
|
813
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
814
788
|
errorCode,
|
|
815
789
|
});
|
|
816
790
|
}
|
|
@@ -819,97 +793,42 @@ const de_DescribeBrokerCommand = async (output, context) => {
|
|
|
819
793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
820
794
|
return de_DescribeBrokerCommandError(output, context);
|
|
821
795
|
}
|
|
822
|
-
const contents = map({
|
|
796
|
+
const contents = (0, smithy_client_1.map)({
|
|
823
797
|
$metadata: deserializeMetadata(output),
|
|
824
798
|
});
|
|
825
799
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
}
|
|
859
|
-
if (data.encryptionOptions != null) {
|
|
860
|
-
contents.EncryptionOptions = de_EncryptionOptions(data.encryptionOptions, context);
|
|
861
|
-
}
|
|
862
|
-
if (data.engineType != null) {
|
|
863
|
-
contents.EngineType = (0, smithy_client_1.expectString)(data.engineType);
|
|
864
|
-
}
|
|
865
|
-
if (data.engineVersion != null) {
|
|
866
|
-
contents.EngineVersion = (0, smithy_client_1.expectString)(data.engineVersion);
|
|
867
|
-
}
|
|
868
|
-
if (data.hostInstanceType != null) {
|
|
869
|
-
contents.HostInstanceType = (0, smithy_client_1.expectString)(data.hostInstanceType);
|
|
870
|
-
}
|
|
871
|
-
if (data.ldapServerMetadata != null) {
|
|
872
|
-
contents.LdapServerMetadata = de_LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
873
|
-
}
|
|
874
|
-
if (data.logs != null) {
|
|
875
|
-
contents.Logs = de_LogsSummary(data.logs, context);
|
|
876
|
-
}
|
|
877
|
-
if (data.maintenanceWindowStartTime != null) {
|
|
878
|
-
contents.MaintenanceWindowStartTime = de_WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
879
|
-
}
|
|
880
|
-
if (data.pendingAuthenticationStrategy != null) {
|
|
881
|
-
contents.PendingAuthenticationStrategy = (0, smithy_client_1.expectString)(data.pendingAuthenticationStrategy);
|
|
882
|
-
}
|
|
883
|
-
if (data.pendingEngineVersion != null) {
|
|
884
|
-
contents.PendingEngineVersion = (0, smithy_client_1.expectString)(data.pendingEngineVersion);
|
|
885
|
-
}
|
|
886
|
-
if (data.pendingHostInstanceType != null) {
|
|
887
|
-
contents.PendingHostInstanceType = (0, smithy_client_1.expectString)(data.pendingHostInstanceType);
|
|
888
|
-
}
|
|
889
|
-
if (data.pendingLdapServerMetadata != null) {
|
|
890
|
-
contents.PendingLdapServerMetadata = de_LdapServerMetadataOutput(data.pendingLdapServerMetadata, context);
|
|
891
|
-
}
|
|
892
|
-
if (data.pendingSecurityGroups != null) {
|
|
893
|
-
contents.PendingSecurityGroups = de___listOf__string(data.pendingSecurityGroups, context);
|
|
894
|
-
}
|
|
895
|
-
if (data.publiclyAccessible != null) {
|
|
896
|
-
contents.PubliclyAccessible = (0, smithy_client_1.expectBoolean)(data.publiclyAccessible);
|
|
897
|
-
}
|
|
898
|
-
if (data.securityGroups != null) {
|
|
899
|
-
contents.SecurityGroups = de___listOf__string(data.securityGroups, context);
|
|
900
|
-
}
|
|
901
|
-
if (data.storageType != null) {
|
|
902
|
-
contents.StorageType = (0, smithy_client_1.expectString)(data.storageType);
|
|
903
|
-
}
|
|
904
|
-
if (data.subnetIds != null) {
|
|
905
|
-
contents.SubnetIds = de___listOf__string(data.subnetIds, context);
|
|
906
|
-
}
|
|
907
|
-
if (data.tags != null) {
|
|
908
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
909
|
-
}
|
|
910
|
-
if (data.users != null) {
|
|
911
|
-
contents.Users = de___listOfUserSummary(data.users, context);
|
|
912
|
-
}
|
|
800
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
801
|
+
ActionsRequired: [, (_) => de___listOfActionRequired(_, context), `actionsRequired`],
|
|
802
|
+
AuthenticationStrategy: [, smithy_client_1.expectString, `authenticationStrategy`],
|
|
803
|
+
AutoMinorVersionUpgrade: [, smithy_client_1.expectBoolean, `autoMinorVersionUpgrade`],
|
|
804
|
+
BrokerArn: [, smithy_client_1.expectString, `brokerArn`],
|
|
805
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
806
|
+
BrokerInstances: [, (_) => de___listOfBrokerInstance(_, context), `brokerInstances`],
|
|
807
|
+
BrokerName: [, smithy_client_1.expectString, `brokerName`],
|
|
808
|
+
BrokerState: [, smithy_client_1.expectString, `brokerState`],
|
|
809
|
+
Configurations: [, (_) => de_Configurations(_, context), `configurations`],
|
|
810
|
+
Created: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
811
|
+
DeploymentMode: [, smithy_client_1.expectString, `deploymentMode`],
|
|
812
|
+
EncryptionOptions: [, (_) => de_EncryptionOptions(_, context), `encryptionOptions`],
|
|
813
|
+
EngineType: [, smithy_client_1.expectString, `engineType`],
|
|
814
|
+
EngineVersion: [, smithy_client_1.expectString, `engineVersion`],
|
|
815
|
+
HostInstanceType: [, smithy_client_1.expectString, `hostInstanceType`],
|
|
816
|
+
LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
|
|
817
|
+
Logs: [, (_) => de_LogsSummary(_, context), `logs`],
|
|
818
|
+
MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
|
|
819
|
+
PendingAuthenticationStrategy: [, smithy_client_1.expectString, `pendingAuthenticationStrategy`],
|
|
820
|
+
PendingEngineVersion: [, smithy_client_1.expectString, `pendingEngineVersion`],
|
|
821
|
+
PendingHostInstanceType: [, smithy_client_1.expectString, `pendingHostInstanceType`],
|
|
822
|
+
PendingLdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `pendingLdapServerMetadata`],
|
|
823
|
+
PendingSecurityGroups: [, smithy_client_1._json, `pendingSecurityGroups`],
|
|
824
|
+
PubliclyAccessible: [, smithy_client_1.expectBoolean, `publiclyAccessible`],
|
|
825
|
+
SecurityGroups: [, smithy_client_1._json, `securityGroups`],
|
|
826
|
+
StorageType: [, smithy_client_1.expectString, `storageType`],
|
|
827
|
+
SubnetIds: [, smithy_client_1._json, `subnetIds`],
|
|
828
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
829
|
+
Users: [, (_) => de___listOfUserSummary(_, context), `users`],
|
|
830
|
+
});
|
|
831
|
+
Object.assign(contents, doc);
|
|
913
832
|
return contents;
|
|
914
833
|
};
|
|
915
834
|
exports.de_DescribeBrokerCommand = de_DescribeBrokerCommand;
|
|
@@ -934,10 +853,9 @@ const de_DescribeBrokerCommandError = async (output, context) => {
|
|
|
934
853
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
935
854
|
default:
|
|
936
855
|
const parsedBody = parsedOutput.body;
|
|
937
|
-
|
|
856
|
+
return throwDefaultError({
|
|
938
857
|
output,
|
|
939
858
|
parsedBody,
|
|
940
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
941
859
|
errorCode,
|
|
942
860
|
});
|
|
943
861
|
}
|
|
@@ -946,19 +864,16 @@ const de_DescribeBrokerEngineTypesCommand = async (output, context) => {
|
|
|
946
864
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
865
|
return de_DescribeBrokerEngineTypesCommandError(output, context);
|
|
948
866
|
}
|
|
949
|
-
const contents = map({
|
|
867
|
+
const contents = (0, smithy_client_1.map)({
|
|
950
868
|
$metadata: deserializeMetadata(output),
|
|
951
869
|
});
|
|
952
870
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
if (data.nextToken != null) {
|
|
960
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
961
|
-
}
|
|
871
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
872
|
+
BrokerEngineTypes: [, (_) => de___listOfBrokerEngineType(_, context), `brokerEngineTypes`],
|
|
873
|
+
MaxResults: [, smithy_client_1.expectInt32, `maxResults`],
|
|
874
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
962
877
|
return contents;
|
|
963
878
|
};
|
|
964
879
|
exports.de_DescribeBrokerEngineTypesCommand = de_DescribeBrokerEngineTypesCommand;
|
|
@@ -980,10 +895,9 @@ const de_DescribeBrokerEngineTypesCommandError = async (output, context) => {
|
|
|
980
895
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
981
896
|
default:
|
|
982
897
|
const parsedBody = parsedOutput.body;
|
|
983
|
-
|
|
898
|
+
return throwDefaultError({
|
|
984
899
|
output,
|
|
985
900
|
parsedBody,
|
|
986
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
987
901
|
errorCode,
|
|
988
902
|
});
|
|
989
903
|
}
|
|
@@ -992,19 +906,16 @@ const de_DescribeBrokerInstanceOptionsCommand = async (output, context) => {
|
|
|
992
906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
907
|
return de_DescribeBrokerInstanceOptionsCommandError(output, context);
|
|
994
908
|
}
|
|
995
|
-
const contents = map({
|
|
909
|
+
const contents = (0, smithy_client_1.map)({
|
|
996
910
|
$metadata: deserializeMetadata(output),
|
|
997
911
|
});
|
|
998
912
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
if (data.nextToken != null) {
|
|
1006
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1007
|
-
}
|
|
913
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
914
|
+
BrokerInstanceOptions: [, (_) => de___listOfBrokerInstanceOption(_, context), `brokerInstanceOptions`],
|
|
915
|
+
MaxResults: [, smithy_client_1.expectInt32, `maxResults`],
|
|
916
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
917
|
+
});
|
|
918
|
+
Object.assign(contents, doc);
|
|
1008
919
|
return contents;
|
|
1009
920
|
};
|
|
1010
921
|
exports.de_DescribeBrokerInstanceOptionsCommand = de_DescribeBrokerInstanceOptionsCommand;
|
|
@@ -1026,10 +937,9 @@ const de_DescribeBrokerInstanceOptionsCommandError = async (output, context) =>
|
|
|
1026
937
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1027
938
|
default:
|
|
1028
939
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
|
|
940
|
+
return throwDefaultError({
|
|
1030
941
|
output,
|
|
1031
942
|
parsedBody,
|
|
1032
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1033
943
|
errorCode,
|
|
1034
944
|
});
|
|
1035
945
|
}
|
|
@@ -1038,40 +948,23 @@ const de_DescribeConfigurationCommand = async (output, context) => {
|
|
|
1038
948
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
949
|
return de_DescribeConfigurationCommandError(output, context);
|
|
1040
950
|
}
|
|
1041
|
-
const contents = map({
|
|
951
|
+
const contents = (0, smithy_client_1.map)({
|
|
1042
952
|
$metadata: deserializeMetadata(output),
|
|
1043
953
|
});
|
|
1044
954
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
contents.EngineType = (0, smithy_client_1.expectString)(data.engineType);
|
|
1059
|
-
}
|
|
1060
|
-
if (data.engineVersion != null) {
|
|
1061
|
-
contents.EngineVersion = (0, smithy_client_1.expectString)(data.engineVersion);
|
|
1062
|
-
}
|
|
1063
|
-
if (data.id != null) {
|
|
1064
|
-
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1065
|
-
}
|
|
1066
|
-
if (data.latestRevision != null) {
|
|
1067
|
-
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
1068
|
-
}
|
|
1069
|
-
if (data.name != null) {
|
|
1070
|
-
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
1071
|
-
}
|
|
1072
|
-
if (data.tags != null) {
|
|
1073
|
-
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1074
|
-
}
|
|
955
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
956
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
957
|
+
AuthenticationStrategy: [, smithy_client_1.expectString, `authenticationStrategy`],
|
|
958
|
+
Created: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
959
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
960
|
+
EngineType: [, smithy_client_1.expectString, `engineType`],
|
|
961
|
+
EngineVersion: [, smithy_client_1.expectString, `engineVersion`],
|
|
962
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
963
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
964
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
965
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
966
|
+
});
|
|
967
|
+
Object.assign(contents, doc);
|
|
1075
968
|
return contents;
|
|
1076
969
|
};
|
|
1077
970
|
exports.de_DescribeConfigurationCommand = de_DescribeConfigurationCommand;
|
|
@@ -1096,10 +989,9 @@ const de_DescribeConfigurationCommandError = async (output, context) => {
|
|
|
1096
989
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1097
990
|
default:
|
|
1098
991
|
const parsedBody = parsedOutput.body;
|
|
1099
|
-
|
|
992
|
+
return throwDefaultError({
|
|
1100
993
|
output,
|
|
1101
994
|
parsedBody,
|
|
1102
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1103
995
|
errorCode,
|
|
1104
996
|
});
|
|
1105
997
|
}
|
|
@@ -1108,22 +1000,17 @@ const de_DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
|
1108
1000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1109
1001
|
return de_DescribeConfigurationRevisionCommandError(output, context);
|
|
1110
1002
|
}
|
|
1111
|
-
const contents = map({
|
|
1003
|
+
const contents = (0, smithy_client_1.map)({
|
|
1112
1004
|
$metadata: deserializeMetadata(output),
|
|
1113
1005
|
});
|
|
1114
1006
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
contents.Data = (0, smithy_client_1.expectString)(data.data);
|
|
1123
|
-
}
|
|
1124
|
-
if (data.description != null) {
|
|
1125
|
-
contents.Description = (0, smithy_client_1.expectString)(data.description);
|
|
1126
|
-
}
|
|
1007
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1008
|
+
ConfigurationId: [, smithy_client_1.expectString, `configurationId`],
|
|
1009
|
+
Created: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1010
|
+
Data: [, smithy_client_1.expectString, `data`],
|
|
1011
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
1012
|
+
});
|
|
1013
|
+
Object.assign(contents, doc);
|
|
1127
1014
|
return contents;
|
|
1128
1015
|
};
|
|
1129
1016
|
exports.de_DescribeConfigurationRevisionCommand = de_DescribeConfigurationRevisionCommand;
|
|
@@ -1148,10 +1035,9 @@ const de_DescribeConfigurationRevisionCommandError = async (output, context) =>
|
|
|
1148
1035
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1149
1036
|
default:
|
|
1150
1037
|
const parsedBody = parsedOutput.body;
|
|
1151
|
-
|
|
1038
|
+
return throwDefaultError({
|
|
1152
1039
|
output,
|
|
1153
1040
|
parsedBody,
|
|
1154
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1155
1041
|
errorCode,
|
|
1156
1042
|
});
|
|
1157
1043
|
}
|
|
@@ -1160,25 +1046,18 @@ const de_DescribeUserCommand = async (output, context) => {
|
|
|
1160
1046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1161
1047
|
return de_DescribeUserCommandError(output, context);
|
|
1162
1048
|
}
|
|
1163
|
-
const contents = map({
|
|
1049
|
+
const contents = (0, smithy_client_1.map)({
|
|
1164
1050
|
$metadata: deserializeMetadata(output),
|
|
1165
1051
|
});
|
|
1166
1052
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1176
|
-
if (data.pending != null) {
|
|
1177
|
-
contents.Pending = de_UserPendingChanges(data.pending, context);
|
|
1178
|
-
}
|
|
1179
|
-
if (data.username != null) {
|
|
1180
|
-
contents.Username = (0, smithy_client_1.expectString)(data.username);
|
|
1181
|
-
}
|
|
1053
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1054
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
1055
|
+
ConsoleAccess: [, smithy_client_1.expectBoolean, `consoleAccess`],
|
|
1056
|
+
Groups: [, smithy_client_1._json, `groups`],
|
|
1057
|
+
Pending: [, (_) => de_UserPendingChanges(_, context), `pending`],
|
|
1058
|
+
Username: [, smithy_client_1.expectString, `username`],
|
|
1059
|
+
});
|
|
1060
|
+
Object.assign(contents, doc);
|
|
1182
1061
|
return contents;
|
|
1183
1062
|
};
|
|
1184
1063
|
exports.de_DescribeUserCommand = de_DescribeUserCommand;
|
|
@@ -1203,10 +1082,9 @@ const de_DescribeUserCommandError = async (output, context) => {
|
|
|
1203
1082
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1204
1083
|
default:
|
|
1205
1084
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
|
|
1085
|
+
return throwDefaultError({
|
|
1207
1086
|
output,
|
|
1208
1087
|
parsedBody,
|
|
1209
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1210
1088
|
errorCode,
|
|
1211
1089
|
});
|
|
1212
1090
|
}
|
|
@@ -1215,16 +1093,15 @@ const de_ListBrokersCommand = async (output, context) => {
|
|
|
1215
1093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
1094
|
return de_ListBrokersCommandError(output, context);
|
|
1217
1095
|
}
|
|
1218
|
-
const contents = map({
|
|
1096
|
+
const contents = (0, smithy_client_1.map)({
|
|
1219
1097
|
$metadata: deserializeMetadata(output),
|
|
1220
1098
|
});
|
|
1221
1099
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
}
|
|
1100
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1101
|
+
BrokerSummaries: [, (_) => de___listOfBrokerSummary(_, context), `brokerSummaries`],
|
|
1102
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1103
|
+
});
|
|
1104
|
+
Object.assign(contents, doc);
|
|
1228
1105
|
return contents;
|
|
1229
1106
|
};
|
|
1230
1107
|
exports.de_ListBrokersCommand = de_ListBrokersCommand;
|
|
@@ -1246,10 +1123,9 @@ const de_ListBrokersCommandError = async (output, context) => {
|
|
|
1246
1123
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1247
1124
|
default:
|
|
1248
1125
|
const parsedBody = parsedOutput.body;
|
|
1249
|
-
|
|
1126
|
+
return throwDefaultError({
|
|
1250
1127
|
output,
|
|
1251
1128
|
parsedBody,
|
|
1252
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1253
1129
|
errorCode,
|
|
1254
1130
|
});
|
|
1255
1131
|
}
|
|
@@ -1258,22 +1134,17 @@ const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
|
1258
1134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
1135
|
return de_ListConfigurationRevisionsCommandError(output, context);
|
|
1260
1136
|
}
|
|
1261
|
-
const contents = map({
|
|
1137
|
+
const contents = (0, smithy_client_1.map)({
|
|
1262
1138
|
$metadata: deserializeMetadata(output),
|
|
1263
1139
|
});
|
|
1264
1140
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1273
|
-
}
|
|
1274
|
-
if (data.revisions != null) {
|
|
1275
|
-
contents.Revisions = de___listOfConfigurationRevision(data.revisions, context);
|
|
1276
|
-
}
|
|
1141
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1142
|
+
ConfigurationId: [, smithy_client_1.expectString, `configurationId`],
|
|
1143
|
+
MaxResults: [, smithy_client_1.expectInt32, `maxResults`],
|
|
1144
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1145
|
+
Revisions: [, (_) => de___listOfConfigurationRevision(_, context), `revisions`],
|
|
1146
|
+
});
|
|
1147
|
+
Object.assign(contents, doc);
|
|
1277
1148
|
return contents;
|
|
1278
1149
|
};
|
|
1279
1150
|
exports.de_ListConfigurationRevisionsCommand = de_ListConfigurationRevisionsCommand;
|
|
@@ -1298,10 +1169,9 @@ const de_ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
|
1298
1169
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1299
1170
|
default:
|
|
1300
1171
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1172
|
+
return throwDefaultError({
|
|
1302
1173
|
output,
|
|
1303
1174
|
parsedBody,
|
|
1304
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1305
1175
|
errorCode,
|
|
1306
1176
|
});
|
|
1307
1177
|
}
|
|
@@ -1310,19 +1180,16 @@ const de_ListConfigurationsCommand = async (output, context) => {
|
|
|
1310
1180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1311
1181
|
return de_ListConfigurationsCommandError(output, context);
|
|
1312
1182
|
}
|
|
1313
|
-
const contents = map({
|
|
1183
|
+
const contents = (0, smithy_client_1.map)({
|
|
1314
1184
|
$metadata: deserializeMetadata(output),
|
|
1315
1185
|
});
|
|
1316
1186
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
if (data.nextToken != null) {
|
|
1324
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1325
|
-
}
|
|
1187
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1188
|
+
Configurations: [, (_) => de___listOfConfiguration(_, context), `configurations`],
|
|
1189
|
+
MaxResults: [, smithy_client_1.expectInt32, `maxResults`],
|
|
1190
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1191
|
+
});
|
|
1192
|
+
Object.assign(contents, doc);
|
|
1326
1193
|
return contents;
|
|
1327
1194
|
};
|
|
1328
1195
|
exports.de_ListConfigurationsCommand = de_ListConfigurationsCommand;
|
|
@@ -1344,10 +1211,9 @@ const de_ListConfigurationsCommandError = async (output, context) => {
|
|
|
1344
1211
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1345
1212
|
default:
|
|
1346
1213
|
const parsedBody = parsedOutput.body;
|
|
1347
|
-
|
|
1214
|
+
return throwDefaultError({
|
|
1348
1215
|
output,
|
|
1349
1216
|
parsedBody,
|
|
1350
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1351
1217
|
errorCode,
|
|
1352
1218
|
});
|
|
1353
1219
|
}
|
|
@@ -1356,13 +1222,14 @@ const de_ListTagsCommand = async (output, context) => {
|
|
|
1356
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1357
1223
|
return de_ListTagsCommandError(output, context);
|
|
1358
1224
|
}
|
|
1359
|
-
const contents = map({
|
|
1225
|
+
const contents = (0, smithy_client_1.map)({
|
|
1360
1226
|
$metadata: deserializeMetadata(output),
|
|
1361
1227
|
});
|
|
1362
1228
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1229
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1230
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1231
|
+
});
|
|
1232
|
+
Object.assign(contents, doc);
|
|
1366
1233
|
return contents;
|
|
1367
1234
|
};
|
|
1368
1235
|
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
@@ -1387,10 +1254,9 @@ const de_ListTagsCommandError = async (output, context) => {
|
|
|
1387
1254
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1388
1255
|
default:
|
|
1389
1256
|
const parsedBody = parsedOutput.body;
|
|
1390
|
-
|
|
1257
|
+
return throwDefaultError({
|
|
1391
1258
|
output,
|
|
1392
1259
|
parsedBody,
|
|
1393
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1394
1260
|
errorCode,
|
|
1395
1261
|
});
|
|
1396
1262
|
}
|
|
@@ -1399,22 +1265,17 @@ const de_ListUsersCommand = async (output, context) => {
|
|
|
1399
1265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
1266
|
return de_ListUsersCommandError(output, context);
|
|
1401
1267
|
}
|
|
1402
|
-
const contents = map({
|
|
1268
|
+
const contents = (0, smithy_client_1.map)({
|
|
1403
1269
|
$metadata: deserializeMetadata(output),
|
|
1404
1270
|
});
|
|
1405
1271
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1414
|
-
}
|
|
1415
|
-
if (data.users != null) {
|
|
1416
|
-
contents.Users = de___listOfUserSummary(data.users, context);
|
|
1417
|
-
}
|
|
1272
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1273
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
1274
|
+
MaxResults: [, smithy_client_1.expectInt32, `maxResults`],
|
|
1275
|
+
NextToken: [, smithy_client_1.expectString, `nextToken`],
|
|
1276
|
+
Users: [, (_) => de___listOfUserSummary(_, context), `users`],
|
|
1277
|
+
});
|
|
1278
|
+
Object.assign(contents, doc);
|
|
1418
1279
|
return contents;
|
|
1419
1280
|
};
|
|
1420
1281
|
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
@@ -1439,10 +1300,9 @@ const de_ListUsersCommandError = async (output, context) => {
|
|
|
1439
1300
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1440
1301
|
default:
|
|
1441
1302
|
const parsedBody = parsedOutput.body;
|
|
1442
|
-
|
|
1303
|
+
return throwDefaultError({
|
|
1443
1304
|
output,
|
|
1444
1305
|
parsedBody,
|
|
1445
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1446
1306
|
errorCode,
|
|
1447
1307
|
});
|
|
1448
1308
|
}
|
|
@@ -1451,7 +1311,7 @@ const de_RebootBrokerCommand = async (output, context) => {
|
|
|
1451
1311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1452
1312
|
return de_RebootBrokerCommandError(output, context);
|
|
1453
1313
|
}
|
|
1454
|
-
const contents = map({
|
|
1314
|
+
const contents = (0, smithy_client_1.map)({
|
|
1455
1315
|
$metadata: deserializeMetadata(output),
|
|
1456
1316
|
});
|
|
1457
1317
|
await collectBody(output.body, context);
|
|
@@ -1479,10 +1339,9 @@ const de_RebootBrokerCommandError = async (output, context) => {
|
|
|
1479
1339
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1480
1340
|
default:
|
|
1481
1341
|
const parsedBody = parsedOutput.body;
|
|
1482
|
-
|
|
1342
|
+
return throwDefaultError({
|
|
1483
1343
|
output,
|
|
1484
1344
|
parsedBody,
|
|
1485
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1486
1345
|
errorCode,
|
|
1487
1346
|
});
|
|
1488
1347
|
}
|
|
@@ -1491,40 +1350,23 @@ const de_UpdateBrokerCommand = async (output, context) => {
|
|
|
1491
1350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1492
1351
|
return de_UpdateBrokerCommandError(output, context);
|
|
1493
1352
|
}
|
|
1494
|
-
const contents = map({
|
|
1353
|
+
const contents = (0, smithy_client_1.map)({
|
|
1495
1354
|
$metadata: deserializeMetadata(output),
|
|
1496
1355
|
});
|
|
1497
1356
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
contents.EngineVersion = (0, smithy_client_1.expectString)(data.engineVersion);
|
|
1512
|
-
}
|
|
1513
|
-
if (data.hostInstanceType != null) {
|
|
1514
|
-
contents.HostInstanceType = (0, smithy_client_1.expectString)(data.hostInstanceType);
|
|
1515
|
-
}
|
|
1516
|
-
if (data.ldapServerMetadata != null) {
|
|
1517
|
-
contents.LdapServerMetadata = de_LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
1518
|
-
}
|
|
1519
|
-
if (data.logs != null) {
|
|
1520
|
-
contents.Logs = de_Logs(data.logs, context);
|
|
1521
|
-
}
|
|
1522
|
-
if (data.maintenanceWindowStartTime != null) {
|
|
1523
|
-
contents.MaintenanceWindowStartTime = de_WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
1524
|
-
}
|
|
1525
|
-
if (data.securityGroups != null) {
|
|
1526
|
-
contents.SecurityGroups = de___listOf__string(data.securityGroups, context);
|
|
1527
|
-
}
|
|
1357
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1358
|
+
AuthenticationStrategy: [, smithy_client_1.expectString, `authenticationStrategy`],
|
|
1359
|
+
AutoMinorVersionUpgrade: [, smithy_client_1.expectBoolean, `autoMinorVersionUpgrade`],
|
|
1360
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
1361
|
+
Configuration: [, (_) => de_ConfigurationId(_, context), `configuration`],
|
|
1362
|
+
EngineVersion: [, smithy_client_1.expectString, `engineVersion`],
|
|
1363
|
+
HostInstanceType: [, smithy_client_1.expectString, `hostInstanceType`],
|
|
1364
|
+
LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
|
|
1365
|
+
Logs: [, (_) => de_Logs(_, context), `logs`],
|
|
1366
|
+
MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
|
|
1367
|
+
SecurityGroups: [, smithy_client_1._json, `securityGroups`],
|
|
1368
|
+
});
|
|
1369
|
+
Object.assign(contents, doc);
|
|
1528
1370
|
return contents;
|
|
1529
1371
|
};
|
|
1530
1372
|
exports.de_UpdateBrokerCommand = de_UpdateBrokerCommand;
|
|
@@ -1552,10 +1394,9 @@ const de_UpdateBrokerCommandError = async (output, context) => {
|
|
|
1552
1394
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1553
1395
|
default:
|
|
1554
1396
|
const parsedBody = parsedOutput.body;
|
|
1555
|
-
|
|
1397
|
+
return throwDefaultError({
|
|
1556
1398
|
output,
|
|
1557
1399
|
parsedBody,
|
|
1558
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1559
1400
|
errorCode,
|
|
1560
1401
|
});
|
|
1561
1402
|
}
|
|
@@ -1564,28 +1405,19 @@ const de_UpdateConfigurationCommand = async (output, context) => {
|
|
|
1564
1405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1565
1406
|
return de_UpdateConfigurationCommandError(output, context);
|
|
1566
1407
|
}
|
|
1567
|
-
const contents = map({
|
|
1408
|
+
const contents = (0, smithy_client_1.map)({
|
|
1568
1409
|
$metadata: deserializeMetadata(output),
|
|
1569
1410
|
});
|
|
1570
1411
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
if (data.latestRevision != null) {
|
|
1581
|
-
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
1582
|
-
}
|
|
1583
|
-
if (data.name != null) {
|
|
1584
|
-
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
1585
|
-
}
|
|
1586
|
-
if (data.warnings != null) {
|
|
1587
|
-
contents.Warnings = de___listOfSanitizationWarning(data.warnings, context);
|
|
1588
|
-
}
|
|
1412
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1413
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
1414
|
+
Created: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1415
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1416
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
1417
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
1418
|
+
Warnings: [, (_) => de___listOfSanitizationWarning(_, context), `warnings`],
|
|
1419
|
+
});
|
|
1420
|
+
Object.assign(contents, doc);
|
|
1589
1421
|
return contents;
|
|
1590
1422
|
};
|
|
1591
1423
|
exports.de_UpdateConfigurationCommand = de_UpdateConfigurationCommand;
|
|
@@ -1613,10 +1445,9 @@ const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
|
1613
1445
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1614
1446
|
default:
|
|
1615
1447
|
const parsedBody = parsedOutput.body;
|
|
1616
|
-
|
|
1448
|
+
return throwDefaultError({
|
|
1617
1449
|
output,
|
|
1618
1450
|
parsedBody,
|
|
1619
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1620
1451
|
errorCode,
|
|
1621
1452
|
});
|
|
1622
1453
|
}
|
|
@@ -1625,7 +1456,7 @@ const de_UpdateUserCommand = async (output, context) => {
|
|
|
1625
1456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
1457
|
return de_UpdateUserCommandError(output, context);
|
|
1627
1458
|
}
|
|
1628
|
-
const contents = map({
|
|
1459
|
+
const contents = (0, smithy_client_1.map)({
|
|
1629
1460
|
$metadata: deserializeMetadata(output),
|
|
1630
1461
|
});
|
|
1631
1462
|
await collectBody(output.body, context);
|
|
@@ -1656,24 +1487,22 @@ const de_UpdateUserCommandError = async (output, context) => {
|
|
|
1656
1487
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1657
1488
|
default:
|
|
1658
1489
|
const parsedBody = parsedOutput.body;
|
|
1659
|
-
|
|
1490
|
+
return throwDefaultError({
|
|
1660
1491
|
output,
|
|
1661
1492
|
parsedBody,
|
|
1662
|
-
exceptionCtor: MqServiceException_1.MqServiceException,
|
|
1663
1493
|
errorCode,
|
|
1664
1494
|
});
|
|
1665
1495
|
}
|
|
1666
1496
|
};
|
|
1667
|
-
const
|
|
1497
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MqServiceException_1.MqServiceException);
|
|
1668
1498
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1669
|
-
const contents = map({});
|
|
1499
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1670
1500
|
const data = parsedOutput.body;
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
}
|
|
1501
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1502
|
+
ErrorAttribute: [, smithy_client_1.expectString, `errorAttribute`],
|
|
1503
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1504
|
+
});
|
|
1505
|
+
Object.assign(contents, doc);
|
|
1677
1506
|
const exception = new models_0_1.BadRequestException({
|
|
1678
1507
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1679
1508
|
...contents,
|
|
@@ -1681,14 +1510,13 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1681
1510
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1682
1511
|
};
|
|
1683
1512
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1684
|
-
const contents = map({});
|
|
1513
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1685
1514
|
const data = parsedOutput.body;
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
}
|
|
1515
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1516
|
+
ErrorAttribute: [, smithy_client_1.expectString, `errorAttribute`],
|
|
1517
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1518
|
+
});
|
|
1519
|
+
Object.assign(contents, doc);
|
|
1692
1520
|
const exception = new models_0_1.ConflictException({
|
|
1693
1521
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1694
1522
|
...contents,
|
|
@@ -1696,14 +1524,13 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1696
1524
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1697
1525
|
};
|
|
1698
1526
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1699
|
-
const contents = map({});
|
|
1527
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1700
1528
|
const data = parsedOutput.body;
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1530
|
+
ErrorAttribute: [, smithy_client_1.expectString, `errorAttribute`],
|
|
1531
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1532
|
+
});
|
|
1533
|
+
Object.assign(contents, doc);
|
|
1707
1534
|
const exception = new models_0_1.ForbiddenException({
|
|
1708
1535
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1709
1536
|
...contents,
|
|
@@ -1711,14 +1538,13 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1711
1538
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1712
1539
|
};
|
|
1713
1540
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1714
|
-
const contents = map({});
|
|
1541
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1715
1542
|
const data = parsedOutput.body;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1543
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1544
|
+
ErrorAttribute: [, smithy_client_1.expectString, `errorAttribute`],
|
|
1545
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1546
|
+
});
|
|
1547
|
+
Object.assign(contents, doc);
|
|
1722
1548
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1723
1549
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1724
1550
|
...contents,
|
|
@@ -1726,14 +1552,13 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1726
1552
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1727
1553
|
};
|
|
1728
1554
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1729
|
-
const contents = map({});
|
|
1555
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1730
1556
|
const data = parsedOutput.body;
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
}
|
|
1557
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1558
|
+
ErrorAttribute: [, smithy_client_1.expectString, `errorAttribute`],
|
|
1559
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1560
|
+
});
|
|
1561
|
+
Object.assign(contents, doc);
|
|
1737
1562
|
const exception = new models_0_1.NotFoundException({
|
|
1738
1563
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1739
1564
|
...contents,
|
|
@@ -1741,27 +1566,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1741
1566
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1742
1567
|
};
|
|
1743
1568
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1744
|
-
const contents = map({});
|
|
1569
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1745
1570
|
const data = parsedOutput.body;
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
}
|
|
1571
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1572
|
+
ErrorAttribute: [, smithy_client_1.expectString, `errorAttribute`],
|
|
1573
|
+
Message: [, smithy_client_1.expectString, `message`],
|
|
1574
|
+
});
|
|
1575
|
+
Object.assign(contents, doc);
|
|
1752
1576
|
const exception = new models_0_1.UnauthorizedException({
|
|
1753
1577
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1754
1578
|
...contents,
|
|
1755
1579
|
});
|
|
1756
1580
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1757
1581
|
};
|
|
1758
|
-
const se___listOf__string = (input, context) => {
|
|
1759
|
-
return input
|
|
1760
|
-
.filter((e) => e != null)
|
|
1761
|
-
.map((entry) => {
|
|
1762
|
-
return entry;
|
|
1763
|
-
});
|
|
1764
|
-
};
|
|
1765
1582
|
const se___listOfUser = (input, context) => {
|
|
1766
1583
|
return input
|
|
1767
1584
|
.filter((e) => e != null)
|
|
@@ -1769,81 +1586,58 @@ const se___listOfUser = (input, context) => {
|
|
|
1769
1586
|
return se_User(entry, context);
|
|
1770
1587
|
});
|
|
1771
1588
|
};
|
|
1772
|
-
const se___mapOf__string = (input, context) => {
|
|
1773
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1774
|
-
if (value === null) {
|
|
1775
|
-
return acc;
|
|
1776
|
-
}
|
|
1777
|
-
acc[key] = value;
|
|
1778
|
-
return acc;
|
|
1779
|
-
}, {});
|
|
1780
|
-
};
|
|
1781
1589
|
const se_ConfigurationId = (input, context) => {
|
|
1782
|
-
return {
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
};
|
|
1590
|
+
return (0, smithy_client_1.take)(input, {
|
|
1591
|
+
id: [, , `Id`],
|
|
1592
|
+
revision: [, , `Revision`],
|
|
1593
|
+
});
|
|
1786
1594
|
};
|
|
1787
1595
|
const se_EncryptionOptions = (input, context) => {
|
|
1788
|
-
return {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
};
|
|
1596
|
+
return (0, smithy_client_1.take)(input, {
|
|
1597
|
+
kmsKeyId: [, , `KmsKeyId`],
|
|
1598
|
+
useAwsOwnedKey: [, , `UseAwsOwnedKey`],
|
|
1599
|
+
});
|
|
1792
1600
|
};
|
|
1793
1601
|
const se_LdapServerMetadataInput = (input, context) => {
|
|
1794
|
-
return {
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
};
|
|
1602
|
+
return (0, smithy_client_1.take)(input, {
|
|
1603
|
+
hosts: [, smithy_client_1._json, `Hosts`],
|
|
1604
|
+
roleBase: [, , `RoleBase`],
|
|
1605
|
+
roleName: [, , `RoleName`],
|
|
1606
|
+
roleSearchMatching: [, , `RoleSearchMatching`],
|
|
1607
|
+
roleSearchSubtree: [, , `RoleSearchSubtree`],
|
|
1608
|
+
serviceAccountPassword: [, , `ServiceAccountPassword`],
|
|
1609
|
+
serviceAccountUsername: [, , `ServiceAccountUsername`],
|
|
1610
|
+
userBase: [, , `UserBase`],
|
|
1611
|
+
userRoleName: [, , `UserRoleName`],
|
|
1612
|
+
userSearchMatching: [, , `UserSearchMatching`],
|
|
1613
|
+
userSearchSubtree: [, , `UserSearchSubtree`],
|
|
1614
|
+
});
|
|
1807
1615
|
};
|
|
1808
1616
|
const se_Logs = (input, context) => {
|
|
1809
|
-
return {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
};
|
|
1617
|
+
return (0, smithy_client_1.take)(input, {
|
|
1618
|
+
audit: [, , `Audit`],
|
|
1619
|
+
general: [, , `General`],
|
|
1620
|
+
});
|
|
1813
1621
|
};
|
|
1814
1622
|
const se_User = (input, context) => {
|
|
1815
|
-
return {
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
};
|
|
1623
|
+
return (0, smithy_client_1.take)(input, {
|
|
1624
|
+
consoleAccess: [, , `ConsoleAccess`],
|
|
1625
|
+
groups: [, smithy_client_1._json, `Groups`],
|
|
1626
|
+
password: [, , `Password`],
|
|
1627
|
+
username: [, , `Username`],
|
|
1628
|
+
});
|
|
1821
1629
|
};
|
|
1822
1630
|
const se_WeeklyStartTime = (input, context) => {
|
|
1823
|
-
return {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
const de___listOf__string = (output, context) => {
|
|
1830
|
-
const retVal = (output || [])
|
|
1831
|
-
.filter((e) => e != null)
|
|
1832
|
-
.map((entry) => {
|
|
1833
|
-
if (entry === null) {
|
|
1834
|
-
return null;
|
|
1835
|
-
}
|
|
1836
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1631
|
+
return (0, smithy_client_1.take)(input, {
|
|
1632
|
+
dayOfWeek: [, , `DayOfWeek`],
|
|
1633
|
+
timeOfDay: [, , `TimeOfDay`],
|
|
1634
|
+
timeZone: [, , `TimeZone`],
|
|
1837
1635
|
});
|
|
1838
|
-
return retVal;
|
|
1839
1636
|
};
|
|
1840
1637
|
const de___listOfActionRequired = (output, context) => {
|
|
1841
1638
|
const retVal = (output || [])
|
|
1842
1639
|
.filter((e) => e != null)
|
|
1843
1640
|
.map((entry) => {
|
|
1844
|
-
if (entry === null) {
|
|
1845
|
-
return null;
|
|
1846
|
-
}
|
|
1847
1641
|
return de_ActionRequired(entry, context);
|
|
1848
1642
|
});
|
|
1849
1643
|
return retVal;
|
|
@@ -1852,9 +1646,6 @@ const de___listOfAvailabilityZone = (output, context) => {
|
|
|
1852
1646
|
const retVal = (output || [])
|
|
1853
1647
|
.filter((e) => e != null)
|
|
1854
1648
|
.map((entry) => {
|
|
1855
|
-
if (entry === null) {
|
|
1856
|
-
return null;
|
|
1857
|
-
}
|
|
1858
1649
|
return de_AvailabilityZone(entry, context);
|
|
1859
1650
|
});
|
|
1860
1651
|
return retVal;
|
|
@@ -1863,9 +1654,6 @@ const de___listOfBrokerEngineType = (output, context) => {
|
|
|
1863
1654
|
const retVal = (output || [])
|
|
1864
1655
|
.filter((e) => e != null)
|
|
1865
1656
|
.map((entry) => {
|
|
1866
|
-
if (entry === null) {
|
|
1867
|
-
return null;
|
|
1868
|
-
}
|
|
1869
1657
|
return de_BrokerEngineType(entry, context);
|
|
1870
1658
|
});
|
|
1871
1659
|
return retVal;
|
|
@@ -1874,9 +1662,6 @@ const de___listOfBrokerInstance = (output, context) => {
|
|
|
1874
1662
|
const retVal = (output || [])
|
|
1875
1663
|
.filter((e) => e != null)
|
|
1876
1664
|
.map((entry) => {
|
|
1877
|
-
if (entry === null) {
|
|
1878
|
-
return null;
|
|
1879
|
-
}
|
|
1880
1665
|
return de_BrokerInstance(entry, context);
|
|
1881
1666
|
});
|
|
1882
1667
|
return retVal;
|
|
@@ -1885,9 +1670,6 @@ const de___listOfBrokerInstanceOption = (output, context) => {
|
|
|
1885
1670
|
const retVal = (output || [])
|
|
1886
1671
|
.filter((e) => e != null)
|
|
1887
1672
|
.map((entry) => {
|
|
1888
|
-
if (entry === null) {
|
|
1889
|
-
return null;
|
|
1890
|
-
}
|
|
1891
1673
|
return de_BrokerInstanceOption(entry, context);
|
|
1892
1674
|
});
|
|
1893
1675
|
return retVal;
|
|
@@ -1896,9 +1678,6 @@ const de___listOfBrokerSummary = (output, context) => {
|
|
|
1896
1678
|
const retVal = (output || [])
|
|
1897
1679
|
.filter((e) => e != null)
|
|
1898
1680
|
.map((entry) => {
|
|
1899
|
-
if (entry === null) {
|
|
1900
|
-
return null;
|
|
1901
|
-
}
|
|
1902
1681
|
return de_BrokerSummary(entry, context);
|
|
1903
1682
|
});
|
|
1904
1683
|
return retVal;
|
|
@@ -1907,9 +1686,6 @@ const de___listOfConfiguration = (output, context) => {
|
|
|
1907
1686
|
const retVal = (output || [])
|
|
1908
1687
|
.filter((e) => e != null)
|
|
1909
1688
|
.map((entry) => {
|
|
1910
|
-
if (entry === null) {
|
|
1911
|
-
return null;
|
|
1912
|
-
}
|
|
1913
1689
|
return de_Configuration(entry, context);
|
|
1914
1690
|
});
|
|
1915
1691
|
return retVal;
|
|
@@ -1918,9 +1694,6 @@ const de___listOfConfigurationId = (output, context) => {
|
|
|
1918
1694
|
const retVal = (output || [])
|
|
1919
1695
|
.filter((e) => e != null)
|
|
1920
1696
|
.map((entry) => {
|
|
1921
|
-
if (entry === null) {
|
|
1922
|
-
return null;
|
|
1923
|
-
}
|
|
1924
1697
|
return de_ConfigurationId(entry, context);
|
|
1925
1698
|
});
|
|
1926
1699
|
return retVal;
|
|
@@ -1929,31 +1702,14 @@ const de___listOfConfigurationRevision = (output, context) => {
|
|
|
1929
1702
|
const retVal = (output || [])
|
|
1930
1703
|
.filter((e) => e != null)
|
|
1931
1704
|
.map((entry) => {
|
|
1932
|
-
if (entry === null) {
|
|
1933
|
-
return null;
|
|
1934
|
-
}
|
|
1935
1705
|
return de_ConfigurationRevision(entry, context);
|
|
1936
1706
|
});
|
|
1937
1707
|
return retVal;
|
|
1938
1708
|
};
|
|
1939
|
-
const de___listOfDeploymentMode = (output, context) => {
|
|
1940
|
-
const retVal = (output || [])
|
|
1941
|
-
.filter((e) => e != null)
|
|
1942
|
-
.map((entry) => {
|
|
1943
|
-
if (entry === null) {
|
|
1944
|
-
return null;
|
|
1945
|
-
}
|
|
1946
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1947
|
-
});
|
|
1948
|
-
return retVal;
|
|
1949
|
-
};
|
|
1950
1709
|
const de___listOfEngineVersion = (output, context) => {
|
|
1951
1710
|
const retVal = (output || [])
|
|
1952
1711
|
.filter((e) => e != null)
|
|
1953
1712
|
.map((entry) => {
|
|
1954
|
-
if (entry === null) {
|
|
1955
|
-
return null;
|
|
1956
|
-
}
|
|
1957
1713
|
return de_EngineVersion(entry, context);
|
|
1958
1714
|
});
|
|
1959
1715
|
return retVal;
|
|
@@ -1962,9 +1718,6 @@ const de___listOfSanitizationWarning = (output, context) => {
|
|
|
1962
1718
|
const retVal = (output || [])
|
|
1963
1719
|
.filter((e) => e != null)
|
|
1964
1720
|
.map((entry) => {
|
|
1965
|
-
if (entry === null) {
|
|
1966
|
-
return null;
|
|
1967
|
-
}
|
|
1968
1721
|
return de_SanitizationWarning(entry, context);
|
|
1969
1722
|
});
|
|
1970
1723
|
return retVal;
|
|
@@ -1973,176 +1726,162 @@ const de___listOfUserSummary = (output, context) => {
|
|
|
1973
1726
|
const retVal = (output || [])
|
|
1974
1727
|
.filter((e) => e != null)
|
|
1975
1728
|
.map((entry) => {
|
|
1976
|
-
if (entry === null) {
|
|
1977
|
-
return null;
|
|
1978
|
-
}
|
|
1979
1729
|
return de_UserSummary(entry, context);
|
|
1980
1730
|
});
|
|
1981
1731
|
return retVal;
|
|
1982
1732
|
};
|
|
1983
|
-
const de___mapOf__string = (output, context) => {
|
|
1984
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1985
|
-
if (value === null) {
|
|
1986
|
-
return acc;
|
|
1987
|
-
}
|
|
1988
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1989
|
-
return acc;
|
|
1990
|
-
}, {});
|
|
1991
|
-
};
|
|
1992
1733
|
const de_ActionRequired = (output, context) => {
|
|
1993
|
-
return {
|
|
1994
|
-
ActionRequiredCode:
|
|
1995
|
-
ActionRequiredInfo:
|
|
1996
|
-
};
|
|
1734
|
+
return (0, smithy_client_1.take)(output, {
|
|
1735
|
+
ActionRequiredCode: [, smithy_client_1.expectString, `actionRequiredCode`],
|
|
1736
|
+
ActionRequiredInfo: [, smithy_client_1.expectString, `actionRequiredInfo`],
|
|
1737
|
+
});
|
|
1997
1738
|
};
|
|
1998
1739
|
const de_AvailabilityZone = (output, context) => {
|
|
1999
|
-
return {
|
|
2000
|
-
Name:
|
|
2001
|
-
};
|
|
1740
|
+
return (0, smithy_client_1.take)(output, {
|
|
1741
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
1742
|
+
});
|
|
2002
1743
|
};
|
|
2003
1744
|
const de_BrokerEngineType = (output, context) => {
|
|
2004
|
-
return {
|
|
2005
|
-
EngineType:
|
|
2006
|
-
EngineVersions:
|
|
2007
|
-
};
|
|
1745
|
+
return (0, smithy_client_1.take)(output, {
|
|
1746
|
+
EngineType: [, smithy_client_1.expectString, `engineType`],
|
|
1747
|
+
EngineVersions: (_) => [, de___listOfEngineVersion(_, context), `engineVersions`],
|
|
1748
|
+
});
|
|
2008
1749
|
};
|
|
2009
1750
|
const de_BrokerInstance = (output, context) => {
|
|
2010
|
-
return {
|
|
2011
|
-
ConsoleURL:
|
|
2012
|
-
Endpoints:
|
|
2013
|
-
IpAddress:
|
|
2014
|
-
};
|
|
1751
|
+
return (0, smithy_client_1.take)(output, {
|
|
1752
|
+
ConsoleURL: [, smithy_client_1.expectString, `consoleURL`],
|
|
1753
|
+
Endpoints: [, smithy_client_1._json, `endpoints`],
|
|
1754
|
+
IpAddress: [, smithy_client_1.expectString, `ipAddress`],
|
|
1755
|
+
});
|
|
2015
1756
|
};
|
|
2016
1757
|
const de_BrokerInstanceOption = (output, context) => {
|
|
2017
|
-
return {
|
|
2018
|
-
AvailabilityZones:
|
|
2019
|
-
EngineType:
|
|
2020
|
-
HostInstanceType:
|
|
2021
|
-
StorageType:
|
|
2022
|
-
SupportedDeploymentModes:
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
SupportedEngineVersions: output.supportedEngineVersions != null ? de___listOf__string(output.supportedEngineVersions, context) : undefined,
|
|
2026
|
-
};
|
|
1758
|
+
return (0, smithy_client_1.take)(output, {
|
|
1759
|
+
AvailabilityZones: (_) => [, de___listOfAvailabilityZone(_, context), `availabilityZones`],
|
|
1760
|
+
EngineType: [, smithy_client_1.expectString, `engineType`],
|
|
1761
|
+
HostInstanceType: [, smithy_client_1.expectString, `hostInstanceType`],
|
|
1762
|
+
StorageType: [, smithy_client_1.expectString, `storageType`],
|
|
1763
|
+
SupportedDeploymentModes: [, smithy_client_1._json, `supportedDeploymentModes`],
|
|
1764
|
+
SupportedEngineVersions: [, smithy_client_1._json, `supportedEngineVersions`],
|
|
1765
|
+
});
|
|
2027
1766
|
};
|
|
2028
1767
|
const de_BrokerSummary = (output, context) => {
|
|
2029
|
-
return {
|
|
2030
|
-
BrokerArn:
|
|
2031
|
-
BrokerId:
|
|
2032
|
-
BrokerName:
|
|
2033
|
-
BrokerState:
|
|
2034
|
-
Created:
|
|
2035
|
-
DeploymentMode:
|
|
2036
|
-
EngineType:
|
|
2037
|
-
HostInstanceType:
|
|
2038
|
-
};
|
|
1768
|
+
return (0, smithy_client_1.take)(output, {
|
|
1769
|
+
BrokerArn: [, smithy_client_1.expectString, `brokerArn`],
|
|
1770
|
+
BrokerId: [, smithy_client_1.expectString, `brokerId`],
|
|
1771
|
+
BrokerName: [, smithy_client_1.expectString, `brokerName`],
|
|
1772
|
+
BrokerState: [, smithy_client_1.expectString, `brokerState`],
|
|
1773
|
+
Created: (_) => [, (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1774
|
+
DeploymentMode: [, smithy_client_1.expectString, `deploymentMode`],
|
|
1775
|
+
EngineType: [, smithy_client_1.expectString, `engineType`],
|
|
1776
|
+
HostInstanceType: [, smithy_client_1.expectString, `hostInstanceType`],
|
|
1777
|
+
});
|
|
2039
1778
|
};
|
|
2040
1779
|
const de_Configuration = (output, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
Arn:
|
|
2043
|
-
AuthenticationStrategy:
|
|
2044
|
-
Created:
|
|
2045
|
-
Description:
|
|
2046
|
-
EngineType:
|
|
2047
|
-
EngineVersion:
|
|
2048
|
-
Id:
|
|
2049
|
-
LatestRevision:
|
|
2050
|
-
Name:
|
|
2051
|
-
Tags:
|
|
2052
|
-
};
|
|
1780
|
+
return (0, smithy_client_1.take)(output, {
|
|
1781
|
+
Arn: [, smithy_client_1.expectString, `arn`],
|
|
1782
|
+
AuthenticationStrategy: [, smithy_client_1.expectString, `authenticationStrategy`],
|
|
1783
|
+
Created: (_) => [, (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1784
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
1785
|
+
EngineType: [, smithy_client_1.expectString, `engineType`],
|
|
1786
|
+
EngineVersion: [, smithy_client_1.expectString, `engineVersion`],
|
|
1787
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1788
|
+
LatestRevision: (_) => [, de_ConfigurationRevision(_, context), `latestRevision`],
|
|
1789
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
1790
|
+
Tags: [, smithy_client_1._json, `tags`],
|
|
1791
|
+
});
|
|
2053
1792
|
};
|
|
2054
1793
|
const de_ConfigurationId = (output, context) => {
|
|
2055
|
-
return {
|
|
2056
|
-
Id:
|
|
2057
|
-
Revision:
|
|
2058
|
-
};
|
|
1794
|
+
return (0, smithy_client_1.take)(output, {
|
|
1795
|
+
Id: [, smithy_client_1.expectString, `id`],
|
|
1796
|
+
Revision: [, smithy_client_1.expectInt32, `revision`],
|
|
1797
|
+
});
|
|
2059
1798
|
};
|
|
2060
1799
|
const de_ConfigurationRevision = (output, context) => {
|
|
2061
|
-
return {
|
|
2062
|
-
Created:
|
|
2063
|
-
Description:
|
|
2064
|
-
Revision:
|
|
2065
|
-
};
|
|
1800
|
+
return (0, smithy_client_1.take)(output, {
|
|
1801
|
+
Created: (_) => [, (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1802
|
+
Description: [, smithy_client_1.expectString, `description`],
|
|
1803
|
+
Revision: [, smithy_client_1.expectInt32, `revision`],
|
|
1804
|
+
});
|
|
2066
1805
|
};
|
|
2067
1806
|
const de_Configurations = (output, context) => {
|
|
2068
|
-
return {
|
|
2069
|
-
Current:
|
|
2070
|
-
History:
|
|
2071
|
-
Pending:
|
|
2072
|
-
};
|
|
1807
|
+
return (0, smithy_client_1.take)(output, {
|
|
1808
|
+
Current: (_) => [, de_ConfigurationId(_, context), `current`],
|
|
1809
|
+
History: (_) => [, de___listOfConfigurationId(_, context), `history`],
|
|
1810
|
+
Pending: (_) => [, de_ConfigurationId(_, context), `pending`],
|
|
1811
|
+
});
|
|
2073
1812
|
};
|
|
2074
1813
|
const de_EncryptionOptions = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
KmsKeyId:
|
|
2077
|
-
UseAwsOwnedKey:
|
|
2078
|
-
};
|
|
1814
|
+
return (0, smithy_client_1.take)(output, {
|
|
1815
|
+
KmsKeyId: [, smithy_client_1.expectString, `kmsKeyId`],
|
|
1816
|
+
UseAwsOwnedKey: [, smithy_client_1.expectBoolean, `useAwsOwnedKey`],
|
|
1817
|
+
});
|
|
2079
1818
|
};
|
|
2080
1819
|
const de_EngineVersion = (output, context) => {
|
|
2081
|
-
return {
|
|
2082
|
-
Name:
|
|
2083
|
-
};
|
|
1820
|
+
return (0, smithy_client_1.take)(output, {
|
|
1821
|
+
Name: [, smithy_client_1.expectString, `name`],
|
|
1822
|
+
});
|
|
2084
1823
|
};
|
|
2085
1824
|
const de_LdapServerMetadataOutput = (output, context) => {
|
|
2086
|
-
return {
|
|
2087
|
-
Hosts:
|
|
2088
|
-
RoleBase:
|
|
2089
|
-
RoleName:
|
|
2090
|
-
RoleSearchMatching:
|
|
2091
|
-
RoleSearchSubtree:
|
|
2092
|
-
ServiceAccountUsername:
|
|
2093
|
-
UserBase:
|
|
2094
|
-
UserRoleName:
|
|
2095
|
-
UserSearchMatching:
|
|
2096
|
-
UserSearchSubtree:
|
|
2097
|
-
};
|
|
1825
|
+
return (0, smithy_client_1.take)(output, {
|
|
1826
|
+
Hosts: [, smithy_client_1._json, `hosts`],
|
|
1827
|
+
RoleBase: [, smithy_client_1.expectString, `roleBase`],
|
|
1828
|
+
RoleName: [, smithy_client_1.expectString, `roleName`],
|
|
1829
|
+
RoleSearchMatching: [, smithy_client_1.expectString, `roleSearchMatching`],
|
|
1830
|
+
RoleSearchSubtree: [, smithy_client_1.expectBoolean, `roleSearchSubtree`],
|
|
1831
|
+
ServiceAccountUsername: [, smithy_client_1.expectString, `serviceAccountUsername`],
|
|
1832
|
+
UserBase: [, smithy_client_1.expectString, `userBase`],
|
|
1833
|
+
UserRoleName: [, smithy_client_1.expectString, `userRoleName`],
|
|
1834
|
+
UserSearchMatching: [, smithy_client_1.expectString, `userSearchMatching`],
|
|
1835
|
+
UserSearchSubtree: [, smithy_client_1.expectBoolean, `userSearchSubtree`],
|
|
1836
|
+
});
|
|
2098
1837
|
};
|
|
2099
1838
|
const de_Logs = (output, context) => {
|
|
2100
|
-
return {
|
|
2101
|
-
Audit:
|
|
2102
|
-
General:
|
|
2103
|
-
};
|
|
1839
|
+
return (0, smithy_client_1.take)(output, {
|
|
1840
|
+
Audit: [, smithy_client_1.expectBoolean, `audit`],
|
|
1841
|
+
General: [, smithy_client_1.expectBoolean, `general`],
|
|
1842
|
+
});
|
|
2104
1843
|
};
|
|
2105
1844
|
const de_LogsSummary = (output, context) => {
|
|
2106
|
-
return {
|
|
2107
|
-
Audit:
|
|
2108
|
-
AuditLogGroup:
|
|
2109
|
-
General:
|
|
2110
|
-
GeneralLogGroup:
|
|
2111
|
-
Pending:
|
|
2112
|
-
};
|
|
1845
|
+
return (0, smithy_client_1.take)(output, {
|
|
1846
|
+
Audit: [, smithy_client_1.expectBoolean, `audit`],
|
|
1847
|
+
AuditLogGroup: [, smithy_client_1.expectString, `auditLogGroup`],
|
|
1848
|
+
General: [, smithy_client_1.expectBoolean, `general`],
|
|
1849
|
+
GeneralLogGroup: [, smithy_client_1.expectString, `generalLogGroup`],
|
|
1850
|
+
Pending: (_) => [, de_PendingLogs(_, context), `pending`],
|
|
1851
|
+
});
|
|
2113
1852
|
};
|
|
2114
1853
|
const de_PendingLogs = (output, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
Audit:
|
|
2117
|
-
General:
|
|
2118
|
-
};
|
|
1854
|
+
return (0, smithy_client_1.take)(output, {
|
|
1855
|
+
Audit: [, smithy_client_1.expectBoolean, `audit`],
|
|
1856
|
+
General: [, smithy_client_1.expectBoolean, `general`],
|
|
1857
|
+
});
|
|
2119
1858
|
};
|
|
2120
1859
|
const de_SanitizationWarning = (output, context) => {
|
|
2121
|
-
return {
|
|
2122
|
-
AttributeName:
|
|
2123
|
-
ElementName:
|
|
2124
|
-
Reason:
|
|
2125
|
-
};
|
|
1860
|
+
return (0, smithy_client_1.take)(output, {
|
|
1861
|
+
AttributeName: [, smithy_client_1.expectString, `attributeName`],
|
|
1862
|
+
ElementName: [, smithy_client_1.expectString, `elementName`],
|
|
1863
|
+
Reason: [, smithy_client_1.expectString, `reason`],
|
|
1864
|
+
});
|
|
2126
1865
|
};
|
|
2127
1866
|
const de_UserPendingChanges = (output, context) => {
|
|
2128
|
-
return {
|
|
2129
|
-
ConsoleAccess:
|
|
2130
|
-
Groups:
|
|
2131
|
-
PendingChange:
|
|
2132
|
-
};
|
|
1867
|
+
return (0, smithy_client_1.take)(output, {
|
|
1868
|
+
ConsoleAccess: [, smithy_client_1.expectBoolean, `consoleAccess`],
|
|
1869
|
+
Groups: [, smithy_client_1._json, `groups`],
|
|
1870
|
+
PendingChange: [, smithy_client_1.expectString, `pendingChange`],
|
|
1871
|
+
});
|
|
2133
1872
|
};
|
|
2134
1873
|
const de_UserSummary = (output, context) => {
|
|
2135
|
-
return {
|
|
2136
|
-
PendingChange:
|
|
2137
|
-
Username:
|
|
2138
|
-
};
|
|
1874
|
+
return (0, smithy_client_1.take)(output, {
|
|
1875
|
+
PendingChange: [, smithy_client_1.expectString, `pendingChange`],
|
|
1876
|
+
Username: [, smithy_client_1.expectString, `username`],
|
|
1877
|
+
});
|
|
2139
1878
|
};
|
|
2140
1879
|
const de_WeeklyStartTime = (output, context) => {
|
|
2141
|
-
return {
|
|
2142
|
-
DayOfWeek:
|
|
2143
|
-
TimeOfDay:
|
|
2144
|
-
TimeZone:
|
|
2145
|
-
};
|
|
1880
|
+
return (0, smithy_client_1.take)(output, {
|
|
1881
|
+
DayOfWeek: [, smithy_client_1.expectString, `dayOfWeek`],
|
|
1882
|
+
TimeOfDay: [, smithy_client_1.expectString, `timeOfDay`],
|
|
1883
|
+
TimeZone: [, smithy_client_1.expectString, `timeZone`],
|
|
1884
|
+
});
|
|
2146
1885
|
};
|
|
2147
1886
|
const deserializeMetadata = (output) => ({
|
|
2148
1887
|
httpStatusCode: output.statusCode,
|