@aws-sdk/client-mq 3.928.0 → 3.930.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.
Files changed (45) hide show
  1. package/dist-cjs/index.js +2954 -1366
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/MqClient.js +2 -0
  4. package/dist-es/commands/CreateBrokerCommand.js +3 -9
  5. package/dist-es/commands/CreateConfigurationCommand.js +3 -9
  6. package/dist-es/commands/CreateTagsCommand.js +3 -9
  7. package/dist-es/commands/CreateUserCommand.js +3 -9
  8. package/dist-es/commands/DeleteBrokerCommand.js +3 -9
  9. package/dist-es/commands/DeleteConfigurationCommand.js +3 -9
  10. package/dist-es/commands/DeleteTagsCommand.js +3 -9
  11. package/dist-es/commands/DeleteUserCommand.js +3 -9
  12. package/dist-es/commands/DescribeBrokerCommand.js +3 -9
  13. package/dist-es/commands/DescribeBrokerEngineTypesCommand.js +3 -9
  14. package/dist-es/commands/DescribeBrokerInstanceOptionsCommand.js +3 -9
  15. package/dist-es/commands/DescribeConfigurationCommand.js +3 -9
  16. package/dist-es/commands/DescribeConfigurationRevisionCommand.js +3 -9
  17. package/dist-es/commands/DescribeUserCommand.js +3 -9
  18. package/dist-es/commands/ListBrokersCommand.js +3 -9
  19. package/dist-es/commands/ListConfigurationRevisionsCommand.js +3 -9
  20. package/dist-es/commands/ListConfigurationsCommand.js +3 -9
  21. package/dist-es/commands/ListTagsCommand.js +3 -9
  22. package/dist-es/commands/ListUsersCommand.js +3 -9
  23. package/dist-es/commands/PromoteCommand.js +3 -9
  24. package/dist-es/commands/RebootBrokerCommand.js +3 -9
  25. package/dist-es/commands/UpdateBrokerCommand.js +3 -9
  26. package/dist-es/commands/UpdateConfigurationCommand.js +3 -9
  27. package/dist-es/commands/UpdateUserCommand.js +3 -9
  28. package/dist-es/runtimeConfig.shared.js +2 -0
  29. package/dist-es/schemas/schemas_0.js +2901 -0
  30. package/dist-types/MqClient.d.ts +10 -1
  31. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  32. package/dist-types/runtimeConfig.d.ts +1 -0
  33. package/dist-types/runtimeConfig.native.d.ts +1 -0
  34. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  35. package/dist-types/schemas/schemas_0.d.ts +119 -0
  36. package/dist-types/ts3.4/MqClient.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  39. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  40. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  41. package/dist-types/ts3.4/schemas/schemas_0.d.ts +124 -0
  42. package/package.json +33 -34
  43. package/dist-es/protocols/Aws_restJson1.js +0 -1193
  44. package/dist-types/protocols/Aws_restJson1.d.ts +0 -218
  45. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -293
@@ -1,1193 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException, } from "../models/models_0";
6
- import { MqServiceException as __BaseException } from "../models/MqServiceException";
7
- export const se_CreateBrokerCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/v1/brokers");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- authenticationStrategy: [, , `AuthenticationStrategy`],
16
- autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
17
- brokerName: [, , `BrokerName`],
18
- configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
19
- creatorRequestId: [true, (_) => _ ?? generateIdempotencyToken(), `CreatorRequestId`],
20
- dataReplicationMode: [, , `DataReplicationMode`],
21
- dataReplicationPrimaryBrokerArn: [, , `DataReplicationPrimaryBrokerArn`],
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: [, (_) => _json(_), `SecurityGroups`],
32
- storageType: [, , `StorageType`],
33
- subnetIds: [, (_) => _json(_), `SubnetIds`],
34
- tags: [, (_) => _json(_), `Tags`],
35
- users: [, (_) => se___listOfUser(_, context), `Users`],
36
- }));
37
- b.m("POST").h(headers).b(body);
38
- return b.build();
39
- };
40
- export const se_CreateConfigurationCommand = async (input, context) => {
41
- const b = rb(input, context);
42
- const headers = {
43
- "content-type": "application/json",
44
- };
45
- b.bp("/v1/configurations");
46
- let body;
47
- body = JSON.stringify(take(input, {
48
- authenticationStrategy: [, , `AuthenticationStrategy`],
49
- engineType: [, , `EngineType`],
50
- engineVersion: [, , `EngineVersion`],
51
- name: [, , `Name`],
52
- tags: [, (_) => _json(_), `Tags`],
53
- }));
54
- b.m("POST").h(headers).b(body);
55
- return b.build();
56
- };
57
- export const se_CreateTagsCommand = async (input, context) => {
58
- const b = rb(input, context);
59
- const headers = {
60
- "content-type": "application/json",
61
- };
62
- b.bp("/v1/tags/{ResourceArn}");
63
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
64
- let body;
65
- body = JSON.stringify(take(input, {
66
- tags: [, (_) => _json(_), `Tags`],
67
- }));
68
- b.m("POST").h(headers).b(body);
69
- return b.build();
70
- };
71
- export const se_CreateUserCommand = async (input, context) => {
72
- const b = rb(input, context);
73
- const headers = {
74
- "content-type": "application/json",
75
- };
76
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
77
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
78
- b.p("Username", () => input.Username, "{Username}", false);
79
- let body;
80
- body = JSON.stringify(take(input, {
81
- consoleAccess: [, , `ConsoleAccess`],
82
- groups: [, (_) => _json(_), `Groups`],
83
- password: [, , `Password`],
84
- replicationUser: [, , `ReplicationUser`],
85
- }));
86
- b.m("POST").h(headers).b(body);
87
- return b.build();
88
- };
89
- export const se_DeleteBrokerCommand = async (input, context) => {
90
- const b = rb(input, context);
91
- const headers = {};
92
- b.bp("/v1/brokers/{BrokerId}");
93
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
94
- let body;
95
- b.m("DELETE").h(headers).b(body);
96
- return b.build();
97
- };
98
- export const se_DeleteConfigurationCommand = async (input, context) => {
99
- const b = rb(input, context);
100
- const headers = {};
101
- b.bp("/v1/configurations/{ConfigurationId}");
102
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
103
- let body;
104
- b.m("DELETE").h(headers).b(body);
105
- return b.build();
106
- };
107
- export const se_DeleteTagsCommand = async (input, context) => {
108
- const b = rb(input, context);
109
- const headers = {};
110
- b.bp("/v1/tags/{ResourceArn}");
111
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
112
- const query = map({
113
- [_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
114
- });
115
- let body;
116
- b.m("DELETE").h(headers).q(query).b(body);
117
- return b.build();
118
- };
119
- export const se_DeleteUserCommand = async (input, context) => {
120
- const b = rb(input, context);
121
- const headers = {};
122
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
123
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
124
- b.p("Username", () => input.Username, "{Username}", false);
125
- let body;
126
- b.m("DELETE").h(headers).b(body);
127
- return b.build();
128
- };
129
- export const se_DescribeBrokerCommand = async (input, context) => {
130
- const b = rb(input, context);
131
- const headers = {};
132
- b.bp("/v1/brokers/{BrokerId}");
133
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
134
- let body;
135
- b.m("GET").h(headers).b(body);
136
- return b.build();
137
- };
138
- export const se_DescribeBrokerEngineTypesCommand = async (input, context) => {
139
- const b = rb(input, context);
140
- const headers = {};
141
- b.bp("/v1/broker-engine-types");
142
- const query = map({
143
- [_eT]: [, input[_ET]],
144
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
145
- [_nT]: [, input[_NT]],
146
- });
147
- let body;
148
- b.m("GET").h(headers).q(query).b(body);
149
- return b.build();
150
- };
151
- export const se_DescribeBrokerInstanceOptionsCommand = async (input, context) => {
152
- const b = rb(input, context);
153
- const headers = {};
154
- b.bp("/v1/broker-instance-options");
155
- const query = map({
156
- [_eT]: [, input[_ET]],
157
- [_hIT]: [, input[_HIT]],
158
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
159
- [_nT]: [, input[_NT]],
160
- [_sT]: [, input[_ST]],
161
- });
162
- let body;
163
- b.m("GET").h(headers).q(query).b(body);
164
- return b.build();
165
- };
166
- export const se_DescribeConfigurationCommand = async (input, context) => {
167
- const b = rb(input, context);
168
- const headers = {};
169
- b.bp("/v1/configurations/{ConfigurationId}");
170
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
171
- let body;
172
- b.m("GET").h(headers).b(body);
173
- return b.build();
174
- };
175
- export const se_DescribeConfigurationRevisionCommand = async (input, context) => {
176
- const b = rb(input, context);
177
- const headers = {};
178
- b.bp("/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}");
179
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
180
- b.p("ConfigurationRevision", () => input.ConfigurationRevision, "{ConfigurationRevision}", false);
181
- let body;
182
- b.m("GET").h(headers).b(body);
183
- return b.build();
184
- };
185
- export const se_DescribeUserCommand = async (input, context) => {
186
- const b = rb(input, context);
187
- const headers = {};
188
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
189
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
190
- b.p("Username", () => input.Username, "{Username}", false);
191
- let body;
192
- b.m("GET").h(headers).b(body);
193
- return b.build();
194
- };
195
- export const se_ListBrokersCommand = async (input, context) => {
196
- const b = rb(input, context);
197
- const headers = {};
198
- b.bp("/v1/brokers");
199
- const query = map({
200
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
201
- [_nT]: [, input[_NT]],
202
- });
203
- let body;
204
- b.m("GET").h(headers).q(query).b(body);
205
- return b.build();
206
- };
207
- export const se_ListConfigurationRevisionsCommand = async (input, context) => {
208
- const b = rb(input, context);
209
- const headers = {};
210
- b.bp("/v1/configurations/{ConfigurationId}/revisions");
211
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
212
- const query = map({
213
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
214
- [_nT]: [, input[_NT]],
215
- });
216
- let body;
217
- b.m("GET").h(headers).q(query).b(body);
218
- return b.build();
219
- };
220
- export const se_ListConfigurationsCommand = async (input, context) => {
221
- const b = rb(input, context);
222
- const headers = {};
223
- b.bp("/v1/configurations");
224
- const query = map({
225
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
226
- [_nT]: [, input[_NT]],
227
- });
228
- let body;
229
- b.m("GET").h(headers).q(query).b(body);
230
- return b.build();
231
- };
232
- export const se_ListTagsCommand = async (input, context) => {
233
- const b = rb(input, context);
234
- const headers = {};
235
- b.bp("/v1/tags/{ResourceArn}");
236
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
237
- let body;
238
- b.m("GET").h(headers).b(body);
239
- return b.build();
240
- };
241
- export const se_ListUsersCommand = async (input, context) => {
242
- const b = rb(input, context);
243
- const headers = {};
244
- b.bp("/v1/brokers/{BrokerId}/users");
245
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
246
- const query = map({
247
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
248
- [_nT]: [, input[_NT]],
249
- });
250
- let body;
251
- b.m("GET").h(headers).q(query).b(body);
252
- return b.build();
253
- };
254
- export const se_PromoteCommand = async (input, context) => {
255
- const b = rb(input, context);
256
- const headers = {
257
- "content-type": "application/json",
258
- };
259
- b.bp("/v1/brokers/{BrokerId}/promote");
260
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
261
- let body;
262
- body = JSON.stringify(take(input, {
263
- mode: [, , `Mode`],
264
- }));
265
- b.m("POST").h(headers).b(body);
266
- return b.build();
267
- };
268
- export const se_RebootBrokerCommand = async (input, context) => {
269
- const b = rb(input, context);
270
- const headers = {};
271
- b.bp("/v1/brokers/{BrokerId}/reboot");
272
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
273
- let body;
274
- b.m("POST").h(headers).b(body);
275
- return b.build();
276
- };
277
- export const se_UpdateBrokerCommand = async (input, context) => {
278
- const b = rb(input, context);
279
- const headers = {
280
- "content-type": "application/json",
281
- };
282
- b.bp("/v1/brokers/{BrokerId}");
283
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
284
- let body;
285
- body = JSON.stringify(take(input, {
286
- authenticationStrategy: [, , `AuthenticationStrategy`],
287
- autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
288
- configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
289
- dataReplicationMode: [, , `DataReplicationMode`],
290
- engineVersion: [, , `EngineVersion`],
291
- hostInstanceType: [, , `HostInstanceType`],
292
- ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
293
- logs: [, (_) => se_Logs(_, context), `Logs`],
294
- maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
295
- securityGroups: [, (_) => _json(_), `SecurityGroups`],
296
- }));
297
- b.m("PUT").h(headers).b(body);
298
- return b.build();
299
- };
300
- export const se_UpdateConfigurationCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {
303
- "content-type": "application/json",
304
- };
305
- b.bp("/v1/configurations/{ConfigurationId}");
306
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
307
- let body;
308
- body = JSON.stringify(take(input, {
309
- data: [, , `Data`],
310
- description: [, , `Description`],
311
- }));
312
- b.m("PUT").h(headers).b(body);
313
- return b.build();
314
- };
315
- export const se_UpdateUserCommand = async (input, context) => {
316
- const b = rb(input, context);
317
- const headers = {
318
- "content-type": "application/json",
319
- };
320
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
321
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
322
- b.p("Username", () => input.Username, "{Username}", false);
323
- let body;
324
- body = JSON.stringify(take(input, {
325
- consoleAccess: [, , `ConsoleAccess`],
326
- groups: [, (_) => _json(_), `Groups`],
327
- password: [, , `Password`],
328
- replicationUser: [, , `ReplicationUser`],
329
- }));
330
- b.m("PUT").h(headers).b(body);
331
- return b.build();
332
- };
333
- export const de_CreateBrokerCommand = async (output, context) => {
334
- if (output.statusCode !== 200 && output.statusCode >= 300) {
335
- return de_CommandError(output, context);
336
- }
337
- const contents = map({
338
- $metadata: deserializeMetadata(output),
339
- });
340
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
341
- const doc = take(data, {
342
- BrokerArn: [, __expectString, `brokerArn`],
343
- BrokerId: [, __expectString, `brokerId`],
344
- });
345
- Object.assign(contents, doc);
346
- return contents;
347
- };
348
- export const de_CreateConfigurationCommand = async (output, context) => {
349
- if (output.statusCode !== 200 && output.statusCode >= 300) {
350
- return de_CommandError(output, context);
351
- }
352
- const contents = map({
353
- $metadata: deserializeMetadata(output),
354
- });
355
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
356
- const doc = take(data, {
357
- Arn: [, __expectString, `arn`],
358
- AuthenticationStrategy: [, __expectString, `authenticationStrategy`],
359
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
360
- Id: [, __expectString, `id`],
361
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
362
- Name: [, __expectString, `name`],
363
- });
364
- Object.assign(contents, doc);
365
- return contents;
366
- };
367
- export const de_CreateTagsCommand = async (output, context) => {
368
- if (output.statusCode !== 204 && output.statusCode >= 300) {
369
- return de_CommandError(output, context);
370
- }
371
- const contents = map({
372
- $metadata: deserializeMetadata(output),
373
- });
374
- await collectBody(output.body, context);
375
- return contents;
376
- };
377
- export const de_CreateUserCommand = async (output, context) => {
378
- if (output.statusCode !== 200 && output.statusCode >= 300) {
379
- return de_CommandError(output, context);
380
- }
381
- const contents = map({
382
- $metadata: deserializeMetadata(output),
383
- });
384
- await collectBody(output.body, context);
385
- return contents;
386
- };
387
- export const de_DeleteBrokerCommand = async (output, context) => {
388
- if (output.statusCode !== 200 && output.statusCode >= 300) {
389
- return de_CommandError(output, context);
390
- }
391
- const contents = map({
392
- $metadata: deserializeMetadata(output),
393
- });
394
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
395
- const doc = take(data, {
396
- BrokerId: [, __expectString, `brokerId`],
397
- });
398
- Object.assign(contents, doc);
399
- return contents;
400
- };
401
- export const de_DeleteConfigurationCommand = async (output, context) => {
402
- if (output.statusCode !== 200 && output.statusCode >= 300) {
403
- return de_CommandError(output, context);
404
- }
405
- const contents = map({
406
- $metadata: deserializeMetadata(output),
407
- });
408
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
409
- const doc = take(data, {
410
- ConfigurationId: [, __expectString, `configurationId`],
411
- });
412
- Object.assign(contents, doc);
413
- return contents;
414
- };
415
- export const de_DeleteTagsCommand = async (output, context) => {
416
- if (output.statusCode !== 204 && output.statusCode >= 300) {
417
- return de_CommandError(output, context);
418
- }
419
- const contents = map({
420
- $metadata: deserializeMetadata(output),
421
- });
422
- await collectBody(output.body, context);
423
- return contents;
424
- };
425
- export const de_DeleteUserCommand = async (output, context) => {
426
- if (output.statusCode !== 200 && output.statusCode >= 300) {
427
- return de_CommandError(output, context);
428
- }
429
- const contents = map({
430
- $metadata: deserializeMetadata(output),
431
- });
432
- await collectBody(output.body, context);
433
- return contents;
434
- };
435
- export const de_DescribeBrokerCommand = async (output, context) => {
436
- if (output.statusCode !== 200 && output.statusCode >= 300) {
437
- return de_CommandError(output, context);
438
- }
439
- const contents = map({
440
- $metadata: deserializeMetadata(output),
441
- });
442
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
443
- const doc = take(data, {
444
- ActionsRequired: [, (_) => de___listOfActionRequired(_, context), `actionsRequired`],
445
- AuthenticationStrategy: [, __expectString, `authenticationStrategy`],
446
- AutoMinorVersionUpgrade: [, __expectBoolean, `autoMinorVersionUpgrade`],
447
- BrokerArn: [, __expectString, `brokerArn`],
448
- BrokerId: [, __expectString, `brokerId`],
449
- BrokerInstances: [, (_) => de___listOfBrokerInstance(_, context), `brokerInstances`],
450
- BrokerName: [, __expectString, `brokerName`],
451
- BrokerState: [, __expectString, `brokerState`],
452
- Configurations: [, (_) => de_Configurations(_, context), `configurations`],
453
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
454
- DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_, context), `dataReplicationMetadata`],
455
- DataReplicationMode: [, __expectString, `dataReplicationMode`],
456
- DeploymentMode: [, __expectString, `deploymentMode`],
457
- EncryptionOptions: [, (_) => de_EncryptionOptions(_, context), `encryptionOptions`],
458
- EngineType: [, __expectString, `engineType`],
459
- EngineVersion: [, __expectString, `engineVersion`],
460
- HostInstanceType: [, __expectString, `hostInstanceType`],
461
- LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
462
- Logs: [, (_) => de_LogsSummary(_, context), `logs`],
463
- MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
464
- PendingAuthenticationStrategy: [, __expectString, `pendingAuthenticationStrategy`],
465
- PendingDataReplicationMetadata: [
466
- ,
467
- (_) => de_DataReplicationMetadataOutput(_, context),
468
- `pendingDataReplicationMetadata`,
469
- ],
470
- PendingDataReplicationMode: [, __expectString, `pendingDataReplicationMode`],
471
- PendingEngineVersion: [, __expectString, `pendingEngineVersion`],
472
- PendingHostInstanceType: [, __expectString, `pendingHostInstanceType`],
473
- PendingLdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `pendingLdapServerMetadata`],
474
- PendingSecurityGroups: [, _json, `pendingSecurityGroups`],
475
- PubliclyAccessible: [, __expectBoolean, `publiclyAccessible`],
476
- SecurityGroups: [, _json, `securityGroups`],
477
- StorageType: [, __expectString, `storageType`],
478
- SubnetIds: [, _json, `subnetIds`],
479
- Tags: [, _json, `tags`],
480
- Users: [, (_) => de___listOfUserSummary(_, context), `users`],
481
- });
482
- Object.assign(contents, doc);
483
- return contents;
484
- };
485
- export const de_DescribeBrokerEngineTypesCommand = async (output, context) => {
486
- if (output.statusCode !== 200 && output.statusCode >= 300) {
487
- return de_CommandError(output, context);
488
- }
489
- const contents = map({
490
- $metadata: deserializeMetadata(output),
491
- });
492
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
493
- const doc = take(data, {
494
- BrokerEngineTypes: [, (_) => de___listOfBrokerEngineType(_, context), `brokerEngineTypes`],
495
- MaxResults: [, __expectInt32, `maxResults`],
496
- NextToken: [, __expectString, `nextToken`],
497
- });
498
- Object.assign(contents, doc);
499
- return contents;
500
- };
501
- export const de_DescribeBrokerInstanceOptionsCommand = async (output, context) => {
502
- if (output.statusCode !== 200 && output.statusCode >= 300) {
503
- return de_CommandError(output, context);
504
- }
505
- const contents = map({
506
- $metadata: deserializeMetadata(output),
507
- });
508
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
509
- const doc = take(data, {
510
- BrokerInstanceOptions: [, (_) => de___listOfBrokerInstanceOption(_, context), `brokerInstanceOptions`],
511
- MaxResults: [, __expectInt32, `maxResults`],
512
- NextToken: [, __expectString, `nextToken`],
513
- });
514
- Object.assign(contents, doc);
515
- return contents;
516
- };
517
- export const de_DescribeConfigurationCommand = async (output, context) => {
518
- if (output.statusCode !== 200 && output.statusCode >= 300) {
519
- return de_CommandError(output, context);
520
- }
521
- const contents = map({
522
- $metadata: deserializeMetadata(output),
523
- });
524
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
525
- const doc = take(data, {
526
- Arn: [, __expectString, `arn`],
527
- AuthenticationStrategy: [, __expectString, `authenticationStrategy`],
528
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
529
- Description: [, __expectString, `description`],
530
- EngineType: [, __expectString, `engineType`],
531
- EngineVersion: [, __expectString, `engineVersion`],
532
- Id: [, __expectString, `id`],
533
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
534
- Name: [, __expectString, `name`],
535
- Tags: [, _json, `tags`],
536
- });
537
- Object.assign(contents, doc);
538
- return contents;
539
- };
540
- export const de_DescribeConfigurationRevisionCommand = async (output, context) => {
541
- if (output.statusCode !== 200 && output.statusCode >= 300) {
542
- return de_CommandError(output, context);
543
- }
544
- const contents = map({
545
- $metadata: deserializeMetadata(output),
546
- });
547
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
548
- const doc = take(data, {
549
- ConfigurationId: [, __expectString, `configurationId`],
550
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
551
- Data: [, __expectString, `data`],
552
- Description: [, __expectString, `description`],
553
- });
554
- Object.assign(contents, doc);
555
- return contents;
556
- };
557
- export const de_DescribeUserCommand = async (output, context) => {
558
- if (output.statusCode !== 200 && output.statusCode >= 300) {
559
- return de_CommandError(output, context);
560
- }
561
- const contents = map({
562
- $metadata: deserializeMetadata(output),
563
- });
564
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
565
- const doc = take(data, {
566
- BrokerId: [, __expectString, `brokerId`],
567
- ConsoleAccess: [, __expectBoolean, `consoleAccess`],
568
- Groups: [, _json, `groups`],
569
- Pending: [, (_) => de_UserPendingChanges(_, context), `pending`],
570
- ReplicationUser: [, __expectBoolean, `replicationUser`],
571
- Username: [, __expectString, `username`],
572
- });
573
- Object.assign(contents, doc);
574
- return contents;
575
- };
576
- export const de_ListBrokersCommand = async (output, context) => {
577
- if (output.statusCode !== 200 && output.statusCode >= 300) {
578
- return de_CommandError(output, context);
579
- }
580
- const contents = map({
581
- $metadata: deserializeMetadata(output),
582
- });
583
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
584
- const doc = take(data, {
585
- BrokerSummaries: [, (_) => de___listOfBrokerSummary(_, context), `brokerSummaries`],
586
- NextToken: [, __expectString, `nextToken`],
587
- });
588
- Object.assign(contents, doc);
589
- return contents;
590
- };
591
- export const de_ListConfigurationRevisionsCommand = async (output, context) => {
592
- if (output.statusCode !== 200 && output.statusCode >= 300) {
593
- return de_CommandError(output, context);
594
- }
595
- const contents = map({
596
- $metadata: deserializeMetadata(output),
597
- });
598
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
599
- const doc = take(data, {
600
- ConfigurationId: [, __expectString, `configurationId`],
601
- MaxResults: [, __expectInt32, `maxResults`],
602
- NextToken: [, __expectString, `nextToken`],
603
- Revisions: [, (_) => de___listOfConfigurationRevision(_, context), `revisions`],
604
- });
605
- Object.assign(contents, doc);
606
- return contents;
607
- };
608
- export const de_ListConfigurationsCommand = async (output, context) => {
609
- if (output.statusCode !== 200 && output.statusCode >= 300) {
610
- return de_CommandError(output, context);
611
- }
612
- const contents = map({
613
- $metadata: deserializeMetadata(output),
614
- });
615
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
616
- const doc = take(data, {
617
- Configurations: [, (_) => de___listOfConfiguration(_, context), `configurations`],
618
- MaxResults: [, __expectInt32, `maxResults`],
619
- NextToken: [, __expectString, `nextToken`],
620
- });
621
- Object.assign(contents, doc);
622
- return contents;
623
- };
624
- export const de_ListTagsCommand = async (output, context) => {
625
- if (output.statusCode !== 200 && output.statusCode >= 300) {
626
- return de_CommandError(output, context);
627
- }
628
- const contents = map({
629
- $metadata: deserializeMetadata(output),
630
- });
631
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
632
- const doc = take(data, {
633
- Tags: [, _json, `tags`],
634
- });
635
- Object.assign(contents, doc);
636
- return contents;
637
- };
638
- export const de_ListUsersCommand = async (output, context) => {
639
- if (output.statusCode !== 200 && output.statusCode >= 300) {
640
- return de_CommandError(output, context);
641
- }
642
- const contents = map({
643
- $metadata: deserializeMetadata(output),
644
- });
645
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
646
- const doc = take(data, {
647
- BrokerId: [, __expectString, `brokerId`],
648
- MaxResults: [, __expectInt32, `maxResults`],
649
- NextToken: [, __expectString, `nextToken`],
650
- Users: [, (_) => de___listOfUserSummary(_, context), `users`],
651
- });
652
- Object.assign(contents, doc);
653
- return contents;
654
- };
655
- export const de_PromoteCommand = async (output, context) => {
656
- if (output.statusCode !== 200 && output.statusCode >= 300) {
657
- return de_CommandError(output, context);
658
- }
659
- const contents = map({
660
- $metadata: deserializeMetadata(output),
661
- });
662
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
663
- const doc = take(data, {
664
- BrokerId: [, __expectString, `brokerId`],
665
- });
666
- Object.assign(contents, doc);
667
- return contents;
668
- };
669
- export const de_RebootBrokerCommand = async (output, context) => {
670
- if (output.statusCode !== 200 && output.statusCode >= 300) {
671
- return de_CommandError(output, context);
672
- }
673
- const contents = map({
674
- $metadata: deserializeMetadata(output),
675
- });
676
- await collectBody(output.body, context);
677
- return contents;
678
- };
679
- export const de_UpdateBrokerCommand = async (output, context) => {
680
- if (output.statusCode !== 200 && output.statusCode >= 300) {
681
- return de_CommandError(output, context);
682
- }
683
- const contents = map({
684
- $metadata: deserializeMetadata(output),
685
- });
686
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
687
- const doc = take(data, {
688
- AuthenticationStrategy: [, __expectString, `authenticationStrategy`],
689
- AutoMinorVersionUpgrade: [, __expectBoolean, `autoMinorVersionUpgrade`],
690
- BrokerId: [, __expectString, `brokerId`],
691
- Configuration: [, (_) => de_ConfigurationId(_, context), `configuration`],
692
- DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_, context), `dataReplicationMetadata`],
693
- DataReplicationMode: [, __expectString, `dataReplicationMode`],
694
- EngineVersion: [, __expectString, `engineVersion`],
695
- HostInstanceType: [, __expectString, `hostInstanceType`],
696
- LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
697
- Logs: [, (_) => de_Logs(_, context), `logs`],
698
- MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
699
- PendingDataReplicationMetadata: [
700
- ,
701
- (_) => de_DataReplicationMetadataOutput(_, context),
702
- `pendingDataReplicationMetadata`,
703
- ],
704
- PendingDataReplicationMode: [, __expectString, `pendingDataReplicationMode`],
705
- SecurityGroups: [, _json, `securityGroups`],
706
- });
707
- Object.assign(contents, doc);
708
- return contents;
709
- };
710
- export const de_UpdateConfigurationCommand = async (output, context) => {
711
- if (output.statusCode !== 200 && output.statusCode >= 300) {
712
- return de_CommandError(output, context);
713
- }
714
- const contents = map({
715
- $metadata: deserializeMetadata(output),
716
- });
717
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
718
- const doc = take(data, {
719
- Arn: [, __expectString, `arn`],
720
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
721
- Id: [, __expectString, `id`],
722
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
723
- Name: [, __expectString, `name`],
724
- Warnings: [, (_) => de___listOfSanitizationWarning(_, context), `warnings`],
725
- });
726
- Object.assign(contents, doc);
727
- return contents;
728
- };
729
- export const de_UpdateUserCommand = async (output, context) => {
730
- if (output.statusCode !== 200 && output.statusCode >= 300) {
731
- return de_CommandError(output, context);
732
- }
733
- const contents = map({
734
- $metadata: deserializeMetadata(output),
735
- });
736
- await collectBody(output.body, context);
737
- return contents;
738
- };
739
- const de_CommandError = async (output, context) => {
740
- const parsedOutput = {
741
- ...output,
742
- body: await parseErrorBody(output.body, context),
743
- };
744
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
745
- switch (errorCode) {
746
- case "BadRequestException":
747
- case "com.amazonaws.mq#BadRequestException":
748
- throw await de_BadRequestExceptionRes(parsedOutput, context);
749
- case "ConflictException":
750
- case "com.amazonaws.mq#ConflictException":
751
- throw await de_ConflictExceptionRes(parsedOutput, context);
752
- case "ForbiddenException":
753
- case "com.amazonaws.mq#ForbiddenException":
754
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
755
- case "InternalServerErrorException":
756
- case "com.amazonaws.mq#InternalServerErrorException":
757
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
758
- case "UnauthorizedException":
759
- case "com.amazonaws.mq#UnauthorizedException":
760
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
761
- case "NotFoundException":
762
- case "com.amazonaws.mq#NotFoundException":
763
- throw await de_NotFoundExceptionRes(parsedOutput, context);
764
- default:
765
- const parsedBody = parsedOutput.body;
766
- return throwDefaultError({
767
- output,
768
- parsedBody,
769
- errorCode,
770
- });
771
- }
772
- };
773
- const throwDefaultError = withBaseException(__BaseException);
774
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
775
- const contents = map({});
776
- const data = parsedOutput.body;
777
- const doc = take(data, {
778
- ErrorAttribute: [, __expectString, `errorAttribute`],
779
- Message: [, __expectString, `message`],
780
- });
781
- Object.assign(contents, doc);
782
- const exception = new BadRequestException({
783
- $metadata: deserializeMetadata(parsedOutput),
784
- ...contents,
785
- });
786
- return __decorateServiceException(exception, parsedOutput.body);
787
- };
788
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
789
- const contents = map({});
790
- const data = parsedOutput.body;
791
- const doc = take(data, {
792
- ErrorAttribute: [, __expectString, `errorAttribute`],
793
- Message: [, __expectString, `message`],
794
- });
795
- Object.assign(contents, doc);
796
- const exception = new ConflictException({
797
- $metadata: deserializeMetadata(parsedOutput),
798
- ...contents,
799
- });
800
- return __decorateServiceException(exception, parsedOutput.body);
801
- };
802
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
803
- const contents = map({});
804
- const data = parsedOutput.body;
805
- const doc = take(data, {
806
- ErrorAttribute: [, __expectString, `errorAttribute`],
807
- Message: [, __expectString, `message`],
808
- });
809
- Object.assign(contents, doc);
810
- const exception = new ForbiddenException({
811
- $metadata: deserializeMetadata(parsedOutput),
812
- ...contents,
813
- });
814
- return __decorateServiceException(exception, parsedOutput.body);
815
- };
816
- const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
817
- const contents = map({});
818
- const data = parsedOutput.body;
819
- const doc = take(data, {
820
- ErrorAttribute: [, __expectString, `errorAttribute`],
821
- Message: [, __expectString, `message`],
822
- });
823
- Object.assign(contents, doc);
824
- const exception = new InternalServerErrorException({
825
- $metadata: deserializeMetadata(parsedOutput),
826
- ...contents,
827
- });
828
- return __decorateServiceException(exception, parsedOutput.body);
829
- };
830
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
831
- const contents = map({});
832
- const data = parsedOutput.body;
833
- const doc = take(data, {
834
- ErrorAttribute: [, __expectString, `errorAttribute`],
835
- Message: [, __expectString, `message`],
836
- });
837
- Object.assign(contents, doc);
838
- const exception = new NotFoundException({
839
- $metadata: deserializeMetadata(parsedOutput),
840
- ...contents,
841
- });
842
- return __decorateServiceException(exception, parsedOutput.body);
843
- };
844
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
845
- const contents = map({});
846
- const data = parsedOutput.body;
847
- const doc = take(data, {
848
- ErrorAttribute: [, __expectString, `errorAttribute`],
849
- Message: [, __expectString, `message`],
850
- });
851
- Object.assign(contents, doc);
852
- const exception = new UnauthorizedException({
853
- $metadata: deserializeMetadata(parsedOutput),
854
- ...contents,
855
- });
856
- return __decorateServiceException(exception, parsedOutput.body);
857
- };
858
- const se___listOfUser = (input, context) => {
859
- return input
860
- .filter((e) => e != null)
861
- .map((entry) => {
862
- return se_User(entry, context);
863
- });
864
- };
865
- const se_ConfigurationId = (input, context) => {
866
- return take(input, {
867
- id: [, , `Id`],
868
- revision: [, , `Revision`],
869
- });
870
- };
871
- const se_EncryptionOptions = (input, context) => {
872
- return take(input, {
873
- kmsKeyId: [, , `KmsKeyId`],
874
- useAwsOwnedKey: [, , `UseAwsOwnedKey`],
875
- });
876
- };
877
- const se_LdapServerMetadataInput = (input, context) => {
878
- return take(input, {
879
- hosts: [, _json, `Hosts`],
880
- roleBase: [, , `RoleBase`],
881
- roleName: [, , `RoleName`],
882
- roleSearchMatching: [, , `RoleSearchMatching`],
883
- roleSearchSubtree: [, , `RoleSearchSubtree`],
884
- serviceAccountPassword: [, , `ServiceAccountPassword`],
885
- serviceAccountUsername: [, , `ServiceAccountUsername`],
886
- userBase: [, , `UserBase`],
887
- userRoleName: [, , `UserRoleName`],
888
- userSearchMatching: [, , `UserSearchMatching`],
889
- userSearchSubtree: [, , `UserSearchSubtree`],
890
- });
891
- };
892
- const se_Logs = (input, context) => {
893
- return take(input, {
894
- audit: [, , `Audit`],
895
- general: [, , `General`],
896
- });
897
- };
898
- const se_User = (input, context) => {
899
- return take(input, {
900
- consoleAccess: [, , `ConsoleAccess`],
901
- groups: [, _json, `Groups`],
902
- password: [, , `Password`],
903
- replicationUser: [, , `ReplicationUser`],
904
- username: [, , `Username`],
905
- });
906
- };
907
- const se_WeeklyStartTime = (input, context) => {
908
- return take(input, {
909
- dayOfWeek: [, , `DayOfWeek`],
910
- timeOfDay: [, , `TimeOfDay`],
911
- timeZone: [, , `TimeZone`],
912
- });
913
- };
914
- const de___listOfActionRequired = (output, context) => {
915
- const retVal = (output || [])
916
- .filter((e) => e != null)
917
- .map((entry) => {
918
- return de_ActionRequired(entry, context);
919
- });
920
- return retVal;
921
- };
922
- const de___listOfAvailabilityZone = (output, context) => {
923
- const retVal = (output || [])
924
- .filter((e) => e != null)
925
- .map((entry) => {
926
- return de_AvailabilityZone(entry, context);
927
- });
928
- return retVal;
929
- };
930
- const de___listOfBrokerEngineType = (output, context) => {
931
- const retVal = (output || [])
932
- .filter((e) => e != null)
933
- .map((entry) => {
934
- return de_BrokerEngineType(entry, context);
935
- });
936
- return retVal;
937
- };
938
- const de___listOfBrokerInstance = (output, context) => {
939
- const retVal = (output || [])
940
- .filter((e) => e != null)
941
- .map((entry) => {
942
- return de_BrokerInstance(entry, context);
943
- });
944
- return retVal;
945
- };
946
- const de___listOfBrokerInstanceOption = (output, context) => {
947
- const retVal = (output || [])
948
- .filter((e) => e != null)
949
- .map((entry) => {
950
- return de_BrokerInstanceOption(entry, context);
951
- });
952
- return retVal;
953
- };
954
- const de___listOfBrokerSummary = (output, context) => {
955
- const retVal = (output || [])
956
- .filter((e) => e != null)
957
- .map((entry) => {
958
- return de_BrokerSummary(entry, context);
959
- });
960
- return retVal;
961
- };
962
- const de___listOfConfiguration = (output, context) => {
963
- const retVal = (output || [])
964
- .filter((e) => e != null)
965
- .map((entry) => {
966
- return de_Configuration(entry, context);
967
- });
968
- return retVal;
969
- };
970
- const de___listOfConfigurationId = (output, context) => {
971
- const retVal = (output || [])
972
- .filter((e) => e != null)
973
- .map((entry) => {
974
- return de_ConfigurationId(entry, context);
975
- });
976
- return retVal;
977
- };
978
- const de___listOfConfigurationRevision = (output, context) => {
979
- const retVal = (output || [])
980
- .filter((e) => e != null)
981
- .map((entry) => {
982
- return de_ConfigurationRevision(entry, context);
983
- });
984
- return retVal;
985
- };
986
- const de___listOfEngineVersion = (output, context) => {
987
- const retVal = (output || [])
988
- .filter((e) => e != null)
989
- .map((entry) => {
990
- return de_EngineVersion(entry, context);
991
- });
992
- return retVal;
993
- };
994
- const de___listOfSanitizationWarning = (output, context) => {
995
- const retVal = (output || [])
996
- .filter((e) => e != null)
997
- .map((entry) => {
998
- return de_SanitizationWarning(entry, context);
999
- });
1000
- return retVal;
1001
- };
1002
- const de___listOfUserSummary = (output, context) => {
1003
- const retVal = (output || [])
1004
- .filter((e) => e != null)
1005
- .map((entry) => {
1006
- return de_UserSummary(entry, context);
1007
- });
1008
- return retVal;
1009
- };
1010
- const de_ActionRequired = (output, context) => {
1011
- return take(output, {
1012
- ActionRequiredCode: [, __expectString, `actionRequiredCode`],
1013
- ActionRequiredInfo: [, __expectString, `actionRequiredInfo`],
1014
- });
1015
- };
1016
- const de_AvailabilityZone = (output, context) => {
1017
- return take(output, {
1018
- Name: [, __expectString, `name`],
1019
- });
1020
- };
1021
- const de_BrokerEngineType = (output, context) => {
1022
- return take(output, {
1023
- EngineType: [, __expectString, `engineType`],
1024
- EngineVersions: [, (_) => de___listOfEngineVersion(_, context), `engineVersions`],
1025
- });
1026
- };
1027
- const de_BrokerInstance = (output, context) => {
1028
- return take(output, {
1029
- ConsoleURL: [, __expectString, `consoleURL`],
1030
- Endpoints: [, _json, `endpoints`],
1031
- IpAddress: [, __expectString, `ipAddress`],
1032
- });
1033
- };
1034
- const de_BrokerInstanceOption = (output, context) => {
1035
- return take(output, {
1036
- AvailabilityZones: [, (_) => de___listOfAvailabilityZone(_, context), `availabilityZones`],
1037
- EngineType: [, __expectString, `engineType`],
1038
- HostInstanceType: [, __expectString, `hostInstanceType`],
1039
- StorageType: [, __expectString, `storageType`],
1040
- SupportedDeploymentModes: [, _json, `supportedDeploymentModes`],
1041
- SupportedEngineVersions: [, _json, `supportedEngineVersions`],
1042
- });
1043
- };
1044
- const de_BrokerSummary = (output, context) => {
1045
- return take(output, {
1046
- BrokerArn: [, __expectString, `brokerArn`],
1047
- BrokerId: [, __expectString, `brokerId`],
1048
- BrokerName: [, __expectString, `brokerName`],
1049
- BrokerState: [, __expectString, `brokerState`],
1050
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
1051
- DeploymentMode: [, __expectString, `deploymentMode`],
1052
- EngineType: [, __expectString, `engineType`],
1053
- HostInstanceType: [, __expectString, `hostInstanceType`],
1054
- });
1055
- };
1056
- const de_Configuration = (output, context) => {
1057
- return take(output, {
1058
- Arn: [, __expectString, `arn`],
1059
- AuthenticationStrategy: [, __expectString, `authenticationStrategy`],
1060
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
1061
- Description: [, __expectString, `description`],
1062
- EngineType: [, __expectString, `engineType`],
1063
- EngineVersion: [, __expectString, `engineVersion`],
1064
- Id: [, __expectString, `id`],
1065
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
1066
- Name: [, __expectString, `name`],
1067
- Tags: [, _json, `tags`],
1068
- });
1069
- };
1070
- const de_ConfigurationId = (output, context) => {
1071
- return take(output, {
1072
- Id: [, __expectString, `id`],
1073
- Revision: [, __expectInt32, `revision`],
1074
- });
1075
- };
1076
- const de_ConfigurationRevision = (output, context) => {
1077
- return take(output, {
1078
- Created: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `created`],
1079
- Description: [, __expectString, `description`],
1080
- Revision: [, __expectInt32, `revision`],
1081
- });
1082
- };
1083
- const de_Configurations = (output, context) => {
1084
- return take(output, {
1085
- Current: [, (_) => de_ConfigurationId(_, context), `current`],
1086
- History: [, (_) => de___listOfConfigurationId(_, context), `history`],
1087
- Pending: [, (_) => de_ConfigurationId(_, context), `pending`],
1088
- });
1089
- };
1090
- const de_DataReplicationCounterpart = (output, context) => {
1091
- return take(output, {
1092
- BrokerId: [, __expectString, `brokerId`],
1093
- Region: [, __expectString, `region`],
1094
- });
1095
- };
1096
- const de_DataReplicationMetadataOutput = (output, context) => {
1097
- return take(output, {
1098
- DataReplicationCounterpart: [, (_) => de_DataReplicationCounterpart(_, context), `dataReplicationCounterpart`],
1099
- DataReplicationRole: [, __expectString, `dataReplicationRole`],
1100
- });
1101
- };
1102
- const de_EncryptionOptions = (output, context) => {
1103
- return take(output, {
1104
- KmsKeyId: [, __expectString, `kmsKeyId`],
1105
- UseAwsOwnedKey: [, __expectBoolean, `useAwsOwnedKey`],
1106
- });
1107
- };
1108
- const de_EngineVersion = (output, context) => {
1109
- return take(output, {
1110
- Name: [, __expectString, `name`],
1111
- });
1112
- };
1113
- const de_LdapServerMetadataOutput = (output, context) => {
1114
- return take(output, {
1115
- Hosts: [, _json, `hosts`],
1116
- RoleBase: [, __expectString, `roleBase`],
1117
- RoleName: [, __expectString, `roleName`],
1118
- RoleSearchMatching: [, __expectString, `roleSearchMatching`],
1119
- RoleSearchSubtree: [, __expectBoolean, `roleSearchSubtree`],
1120
- ServiceAccountUsername: [, __expectString, `serviceAccountUsername`],
1121
- UserBase: [, __expectString, `userBase`],
1122
- UserRoleName: [, __expectString, `userRoleName`],
1123
- UserSearchMatching: [, __expectString, `userSearchMatching`],
1124
- UserSearchSubtree: [, __expectBoolean, `userSearchSubtree`],
1125
- });
1126
- };
1127
- const de_Logs = (output, context) => {
1128
- return take(output, {
1129
- Audit: [, __expectBoolean, `audit`],
1130
- General: [, __expectBoolean, `general`],
1131
- });
1132
- };
1133
- const de_LogsSummary = (output, context) => {
1134
- return take(output, {
1135
- Audit: [, __expectBoolean, `audit`],
1136
- AuditLogGroup: [, __expectString, `auditLogGroup`],
1137
- General: [, __expectBoolean, `general`],
1138
- GeneralLogGroup: [, __expectString, `generalLogGroup`],
1139
- Pending: [, (_) => de_PendingLogs(_, context), `pending`],
1140
- });
1141
- };
1142
- const de_PendingLogs = (output, context) => {
1143
- return take(output, {
1144
- Audit: [, __expectBoolean, `audit`],
1145
- General: [, __expectBoolean, `general`],
1146
- });
1147
- };
1148
- const de_SanitizationWarning = (output, context) => {
1149
- return take(output, {
1150
- AttributeName: [, __expectString, `attributeName`],
1151
- ElementName: [, __expectString, `elementName`],
1152
- Reason: [, __expectString, `reason`],
1153
- });
1154
- };
1155
- const de_UserPendingChanges = (output, context) => {
1156
- return take(output, {
1157
- ConsoleAccess: [, __expectBoolean, `consoleAccess`],
1158
- Groups: [, _json, `groups`],
1159
- PendingChange: [, __expectString, `pendingChange`],
1160
- });
1161
- };
1162
- const de_UserSummary = (output, context) => {
1163
- return take(output, {
1164
- PendingChange: [, __expectString, `pendingChange`],
1165
- Username: [, __expectString, `username`],
1166
- });
1167
- };
1168
- const de_WeeklyStartTime = (output, context) => {
1169
- return take(output, {
1170
- DayOfWeek: [, __expectString, `dayOfWeek`],
1171
- TimeOfDay: [, __expectString, `timeOfDay`],
1172
- TimeZone: [, __expectString, `timeZone`],
1173
- });
1174
- };
1175
- const deserializeMetadata = (output) => ({
1176
- httpStatusCode: output.statusCode,
1177
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1178
- extendedRequestId: output.headers["x-amz-id-2"],
1179
- cfId: output.headers["x-amz-cf-id"],
1180
- });
1181
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1182
- const _ET = "EngineType";
1183
- const _HIT = "HostInstanceType";
1184
- const _MR = "MaxResults";
1185
- const _NT = "NextToken";
1186
- const _ST = "StorageType";
1187
- const _TK = "TagKeys";
1188
- const _eT = "engineType";
1189
- const _hIT = "hostInstanceType";
1190
- const _mR = "maxResults";
1191
- const _nT = "nextToken";
1192
- const _sT = "storageType";
1193
- const _tK = "tagKeys";