@aws-sdk/client-mq 3.901.0 → 3.907.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 (2) hide show
  1. package/dist-cjs/index.js +1912 -2062
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,2100 +1,1950 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AuthenticationStrategy: () => AuthenticationStrategy,
25
- BadRequestException: () => BadRequestException,
26
- BrokerState: () => BrokerState,
27
- BrokerStorageType: () => BrokerStorageType,
28
- ChangeType: () => ChangeType,
29
- ConflictException: () => ConflictException,
30
- CreateBrokerCommand: () => CreateBrokerCommand,
31
- CreateConfigurationCommand: () => CreateConfigurationCommand,
32
- CreateTagsCommand: () => CreateTagsCommand,
33
- CreateUserCommand: () => CreateUserCommand,
34
- DataReplicationMode: () => DataReplicationMode,
35
- DayOfWeek: () => DayOfWeek,
36
- DeleteBrokerCommand: () => DeleteBrokerCommand,
37
- DeleteConfigurationCommand: () => DeleteConfigurationCommand,
38
- DeleteTagsCommand: () => DeleteTagsCommand,
39
- DeleteUserCommand: () => DeleteUserCommand,
40
- DeploymentMode: () => DeploymentMode,
41
- DescribeBrokerCommand: () => DescribeBrokerCommand,
42
- DescribeBrokerEngineTypesCommand: () => DescribeBrokerEngineTypesCommand,
43
- DescribeBrokerInstanceOptionsCommand: () => DescribeBrokerInstanceOptionsCommand,
44
- DescribeConfigurationCommand: () => DescribeConfigurationCommand,
45
- DescribeConfigurationRevisionCommand: () => DescribeConfigurationRevisionCommand,
46
- DescribeUserCommand: () => DescribeUserCommand,
47
- EngineType: () => EngineType,
48
- ForbiddenException: () => ForbiddenException,
49
- InternalServerErrorException: () => InternalServerErrorException,
50
- ListBrokersCommand: () => ListBrokersCommand,
51
- ListConfigurationRevisionsCommand: () => ListConfigurationRevisionsCommand,
52
- ListConfigurationsCommand: () => ListConfigurationsCommand,
53
- ListTagsCommand: () => ListTagsCommand,
54
- ListUsersCommand: () => ListUsersCommand,
55
- Mq: () => Mq,
56
- MqClient: () => MqClient,
57
- MqServiceException: () => MqServiceException,
58
- NotFoundException: () => NotFoundException,
59
- PromoteCommand: () => PromoteCommand,
60
- PromoteMode: () => PromoteMode,
61
- RebootBrokerCommand: () => RebootBrokerCommand,
62
- SanitizationWarningReason: () => SanitizationWarningReason,
63
- UnauthorizedException: () => UnauthorizedException,
64
- UpdateBrokerCommand: () => UpdateBrokerCommand,
65
- UpdateConfigurationCommand: () => UpdateConfigurationCommand,
66
- UpdateUserCommand: () => UpdateUserCommand,
67
- __Client: () => import_smithy_client.Client,
68
- paginateListBrokers: () => paginateListBrokers
69
- });
70
- module.exports = __toCommonJS(index_exports);
71
-
72
- // src/MqClient.ts
73
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
74
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
75
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
76
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
77
- var import_config_resolver = require("@smithy/config-resolver");
78
- var import_core = require("@smithy/core");
79
- var import_middleware_content_length = require("@smithy/middleware-content-length");
80
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
81
- var import_middleware_retry = require("@smithy/middleware-retry");
82
-
83
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
84
-
85
- // src/endpoint/EndpointParameters.ts
86
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
87
- return Object.assign(options, {
88
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
89
- useFipsEndpoint: options.useFipsEndpoint ?? false,
90
- defaultSigningName: "mq"
91
- });
92
- }, "resolveClientEndpointParameters");
93
- var commonParams = {
94
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
95
- Endpoint: { type: "builtInParams", name: "endpoint" },
96
- Region: { type: "builtInParams", name: "region" },
97
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "mq",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
98
33
  };
99
34
 
100
- // src/MqClient.ts
101
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
102
73
 
103
- // src/runtimeExtensions.ts
104
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
105
- var import_protocol_http = require("@smithy/protocol-http");
106
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
107
79
 
108
- // src/auth/httpAuthExtensionConfiguration.ts
109
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
110
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
111
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
112
- let _credentials = runtimeConfig.credentials;
113
- return {
114
- setHttpAuthScheme(httpAuthScheme) {
115
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
116
- if (index === -1) {
117
- _httpAuthSchemes.push(httpAuthScheme);
118
- } else {
119
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
120
- }
121
- },
122
- httpAuthSchemes() {
123
- return _httpAuthSchemes;
124
- },
125
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
126
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
127
- },
128
- httpAuthSchemeProvider() {
129
- return _httpAuthSchemeProvider;
130
- },
131
- setCredentials(credentials) {
132
- _credentials = credentials;
133
- },
134
- credentials() {
135
- return _credentials;
80
+ class MqClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMqHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
108
+ }
109
+ destroy() {
110
+ super.destroy();
136
111
  }
137
- };
138
- }, "getHttpAuthExtensionConfiguration");
139
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
140
- return {
141
- httpAuthSchemes: config.httpAuthSchemes(),
142
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
143
- credentials: config.credentials()
144
- };
145
- }, "resolveHttpAuthRuntimeConfig");
112
+ }
146
113
 
147
- // src/runtimeExtensions.ts
148
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
149
- const extensionConfiguration = Object.assign(
150
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
151
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
152
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
153
- getHttpAuthExtensionConfiguration(runtimeConfig)
154
- );
155
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
156
- return Object.assign(
157
- runtimeConfig,
158
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
159
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
160
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
161
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
162
- );
163
- }, "resolveRuntimeExtensions");
114
+ class MqServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, MqServiceException.prototype);
118
+ }
119
+ }
164
120
 
165
- // src/MqClient.ts
166
- var MqClient = class extends import_smithy_client.Client {
167
- static {
168
- __name(this, "MqClient");
169
- }
170
- /**
171
- * The resolved configuration of MqClient class. This is resolved and normalized from the {@link MqClientConfig | constructor configuration interface}.
172
- */
173
- config;
174
- constructor(...[configuration]) {
175
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
176
- super(_config_0);
177
- this.initConfig = _config_0;
178
- const _config_1 = resolveClientEndpointParameters(_config_0);
179
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
180
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
181
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
182
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
183
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
184
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
185
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
186
- this.config = _config_8;
187
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
188
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
189
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
190
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
191
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
192
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
193
- this.middlewareStack.use(
194
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
195
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMqHttpAuthSchemeParametersProvider,
196
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
197
- "aws.auth#sigv4": config.credentials
198
- }), "identityProviderConfigProvider")
199
- })
200
- );
201
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
202
- }
203
- /**
204
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
205
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
206
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
207
- */
208
- destroy() {
209
- super.destroy();
210
- }
121
+ const EngineType = {
122
+ ACTIVEMQ: "ACTIVEMQ",
123
+ RABBITMQ: "RABBITMQ",
211
124
  };
212
-
213
- // src/Mq.ts
214
-
215
-
216
- // src/commands/CreateBrokerCommand.ts
217
-
218
- var import_middleware_serde = require("@smithy/middleware-serde");
219
-
220
-
221
- // src/protocols/Aws_restJson1.ts
222
- var import_core2 = require("@aws-sdk/core");
223
-
224
-
225
- var import_uuid = require("@smithy/uuid");
226
-
227
- // src/models/MqServiceException.ts
228
-
229
- var MqServiceException = class _MqServiceException extends import_smithy_client.ServiceException {
230
- static {
231
- __name(this, "MqServiceException");
232
- }
233
- /**
234
- * @internal
235
- */
236
- constructor(options) {
237
- super(options);
238
- Object.setPrototypeOf(this, _MqServiceException.prototype);
239
- }
125
+ const BrokerStorageType = {
126
+ EBS: "EBS",
127
+ EFS: "EFS",
240
128
  };
241
-
242
- // src/models/models_0.ts
243
- var EngineType = {
244
- ACTIVEMQ: "ACTIVEMQ",
245
- RABBITMQ: "RABBITMQ"
246
- };
247
- var BrokerStorageType = {
248
- EBS: "EBS",
249
- EFS: "EFS"
250
- };
251
- var DeploymentMode = {
252
- ACTIVE_STANDBY_MULTI_AZ: "ACTIVE_STANDBY_MULTI_AZ",
253
- CLUSTER_MULTI_AZ: "CLUSTER_MULTI_AZ",
254
- SINGLE_INSTANCE: "SINGLE_INSTANCE"
255
- };
256
- var BrokerState = {
257
- CREATION_FAILED: "CREATION_FAILED",
258
- CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS",
259
- CRITICAL_ACTION_REQUIRED: "CRITICAL_ACTION_REQUIRED",
260
- DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS",
261
- REBOOT_IN_PROGRESS: "REBOOT_IN_PROGRESS",
262
- REPLICA: "REPLICA",
263
- RUNNING: "RUNNING"
264
- };
265
- var AuthenticationStrategy = {
266
- CONFIG_MANAGED: "CONFIG_MANAGED",
267
- LDAP: "LDAP",
268
- SIMPLE: "SIMPLE"
269
- };
270
- var SanitizationWarningReason = {
271
- DISALLOWED_ATTRIBUTE_REMOVED: "DISALLOWED_ATTRIBUTE_REMOVED",
272
- DISALLOWED_ELEMENT_REMOVED: "DISALLOWED_ELEMENT_REMOVED",
273
- INVALID_ATTRIBUTE_VALUE_REMOVED: "INVALID_ATTRIBUTE_VALUE_REMOVED"
274
- };
275
- var ChangeType = {
276
- CREATE: "CREATE",
277
- DELETE: "DELETE",
278
- UPDATE: "UPDATE"
279
- };
280
- var BadRequestException = class _BadRequestException extends MqServiceException {
281
- static {
282
- __name(this, "BadRequestException");
283
- }
284
- name = "BadRequestException";
285
- $fault = "client";
286
- /**
287
- * <p>The attribute which caused the error.</p>
288
- * @public
289
- */
290
- ErrorAttribute;
291
- /**
292
- * <p>The explanation of the error.</p>
293
- * @public
294
- */
295
- Message;
296
- /**
297
- * @internal
298
- */
299
- constructor(opts) {
300
- super({
301
- name: "BadRequestException",
302
- $fault: "client",
303
- ...opts
304
- });
305
- Object.setPrototypeOf(this, _BadRequestException.prototype);
306
- this.ErrorAttribute = opts.ErrorAttribute;
307
- this.Message = opts.Message;
308
- }
309
- };
310
- var ConflictException = class _ConflictException extends MqServiceException {
311
- static {
312
- __name(this, "ConflictException");
313
- }
314
- name = "ConflictException";
315
- $fault = "client";
316
- /**
317
- * <p>The attribute which caused the error.</p>
318
- * @public
319
- */
320
- ErrorAttribute;
321
- /**
322
- * <p>The explanation of the error.</p>
323
- * @public
324
- */
325
- Message;
326
- /**
327
- * @internal
328
- */
329
- constructor(opts) {
330
- super({
331
- name: "ConflictException",
332
- $fault: "client",
333
- ...opts
334
- });
335
- Object.setPrototypeOf(this, _ConflictException.prototype);
336
- this.ErrorAttribute = opts.ErrorAttribute;
337
- this.Message = opts.Message;
338
- }
339
- };
340
- var DataReplicationMode = {
341
- CRDR: "CRDR",
342
- NONE: "NONE"
343
- };
344
- var DayOfWeek = {
345
- FRIDAY: "FRIDAY",
346
- MONDAY: "MONDAY",
347
- SATURDAY: "SATURDAY",
348
- SUNDAY: "SUNDAY",
349
- THURSDAY: "THURSDAY",
350
- TUESDAY: "TUESDAY",
351
- WEDNESDAY: "WEDNESDAY"
352
- };
353
- var ForbiddenException = class _ForbiddenException extends MqServiceException {
354
- static {
355
- __name(this, "ForbiddenException");
356
- }
357
- name = "ForbiddenException";
358
- $fault = "client";
359
- /**
360
- * <p>The attribute which caused the error.</p>
361
- * @public
362
- */
363
- ErrorAttribute;
364
- /**
365
- * <p>The explanation of the error.</p>
366
- * @public
367
- */
368
- Message;
369
- /**
370
- * @internal
371
- */
372
- constructor(opts) {
373
- super({
374
- name: "ForbiddenException",
375
- $fault: "client",
376
- ...opts
377
- });
378
- Object.setPrototypeOf(this, _ForbiddenException.prototype);
379
- this.ErrorAttribute = opts.ErrorAttribute;
380
- this.Message = opts.Message;
381
- }
382
- };
383
- var InternalServerErrorException = class _InternalServerErrorException extends MqServiceException {
384
- static {
385
- __name(this, "InternalServerErrorException");
386
- }
387
- name = "InternalServerErrorException";
388
- $fault = "server";
389
- /**
390
- * <p>The attribute which caused the error.</p>
391
- * @public
392
- */
393
- ErrorAttribute;
394
- /**
395
- * <p>The explanation of the error.</p>
396
- * @public
397
- */
398
- Message;
399
- /**
400
- * @internal
401
- */
402
- constructor(opts) {
403
- super({
404
- name: "InternalServerErrorException",
405
- $fault: "server",
406
- ...opts
407
- });
408
- Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
409
- this.ErrorAttribute = opts.ErrorAttribute;
410
- this.Message = opts.Message;
411
- }
412
- };
413
- var UnauthorizedException = class _UnauthorizedException extends MqServiceException {
414
- static {
415
- __name(this, "UnauthorizedException");
416
- }
417
- name = "UnauthorizedException";
418
- $fault = "client";
419
- /**
420
- * <p>The attribute which caused the error.</p>
421
- * @public
422
- */
423
- ErrorAttribute;
424
- /**
425
- * <p>The explanation of the error.</p>
426
- * @public
427
- */
428
- Message;
429
- /**
430
- * @internal
431
- */
432
- constructor(opts) {
433
- super({
434
- name: "UnauthorizedException",
435
- $fault: "client",
436
- ...opts
437
- });
438
- Object.setPrototypeOf(this, _UnauthorizedException.prototype);
439
- this.ErrorAttribute = opts.ErrorAttribute;
440
- this.Message = opts.Message;
441
- }
442
- };
443
- var NotFoundException = class _NotFoundException extends MqServiceException {
444
- static {
445
- __name(this, "NotFoundException");
446
- }
447
- name = "NotFoundException";
448
- $fault = "client";
449
- /**
450
- * <p>The attribute which caused the error.</p>
451
- * @public
452
- */
453
- ErrorAttribute;
454
- /**
455
- * <p>The explanation of the error.</p>
456
- * @public
457
- */
458
- Message;
459
- /**
460
- * @internal
461
- */
462
- constructor(opts) {
463
- super({
464
- name: "NotFoundException",
465
- $fault: "client",
466
- ...opts
467
- });
468
- Object.setPrototypeOf(this, _NotFoundException.prototype);
469
- this.ErrorAttribute = opts.ErrorAttribute;
470
- this.Message = opts.Message;
471
- }
472
- };
473
- var PromoteMode = {
474
- FAILOVER: "FAILOVER",
475
- SWITCHOVER: "SWITCHOVER"
129
+ const DeploymentMode = {
130
+ ACTIVE_STANDBY_MULTI_AZ: "ACTIVE_STANDBY_MULTI_AZ",
131
+ CLUSTER_MULTI_AZ: "CLUSTER_MULTI_AZ",
132
+ SINGLE_INSTANCE: "SINGLE_INSTANCE",
476
133
  };
477
-
478
- // src/protocols/Aws_restJson1.ts
479
- var se_CreateBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
480
- const b = (0, import_core.requestBuilder)(input, context);
481
- const headers = {
482
- "content-type": "application/json"
483
- };
484
- b.bp("/v1/brokers");
485
- let body;
486
- body = JSON.stringify(
487
- (0, import_smithy_client.take)(input, {
488
- authenticationStrategy: [, , `AuthenticationStrategy`],
489
- autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
490
- brokerName: [, , `BrokerName`],
491
- configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
492
- creatorRequestId: [true, (_) => _ ?? (0, import_uuid.v4)(), `CreatorRequestId`],
493
- dataReplicationMode: [, , `DataReplicationMode`],
494
- dataReplicationPrimaryBrokerArn: [, , `DataReplicationPrimaryBrokerArn`],
495
- deploymentMode: [, , `DeploymentMode`],
496
- encryptionOptions: [, (_) => se_EncryptionOptions(_, context), `EncryptionOptions`],
497
- engineType: [, , `EngineType`],
498
- engineVersion: [, , `EngineVersion`],
499
- hostInstanceType: [, , `HostInstanceType`],
500
- ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
501
- logs: [, (_) => se_Logs(_, context), `Logs`],
502
- maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
503
- publiclyAccessible: [, , `PubliclyAccessible`],
504
- securityGroups: [, (_) => (0, import_smithy_client._json)(_), `SecurityGroups`],
505
- storageType: [, , `StorageType`],
506
- subnetIds: [, (_) => (0, import_smithy_client._json)(_), `SubnetIds`],
507
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`],
508
- users: [, (_) => se___listOfUser(_, context), `Users`]
509
- })
510
- );
511
- b.m("POST").h(headers).b(body);
512
- return b.build();
513
- }, "se_CreateBrokerCommand");
514
- var se_CreateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
515
- const b = (0, import_core.requestBuilder)(input, context);
516
- const headers = {
517
- "content-type": "application/json"
518
- };
519
- b.bp("/v1/configurations");
520
- let body;
521
- body = JSON.stringify(
522
- (0, import_smithy_client.take)(input, {
523
- authenticationStrategy: [, , `AuthenticationStrategy`],
524
- engineType: [, , `EngineType`],
525
- engineVersion: [, , `EngineVersion`],
526
- name: [, , `Name`],
527
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
528
- })
529
- );
530
- b.m("POST").h(headers).b(body);
531
- return b.build();
532
- }, "se_CreateConfigurationCommand");
533
- var se_CreateTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
534
- const b = (0, import_core.requestBuilder)(input, context);
535
- const headers = {
536
- "content-type": "application/json"
537
- };
538
- b.bp("/v1/tags/{ResourceArn}");
539
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
540
- let body;
541
- body = JSON.stringify(
542
- (0, import_smithy_client.take)(input, {
543
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
544
- })
545
- );
546
- b.m("POST").h(headers).b(body);
547
- return b.build();
548
- }, "se_CreateTagsCommand");
549
- var se_CreateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
550
- const b = (0, import_core.requestBuilder)(input, context);
551
- const headers = {
552
- "content-type": "application/json"
553
- };
554
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
555
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
556
- b.p("Username", () => input.Username, "{Username}", false);
557
- let body;
558
- body = JSON.stringify(
559
- (0, import_smithy_client.take)(input, {
560
- consoleAccess: [, , `ConsoleAccess`],
561
- groups: [, (_) => (0, import_smithy_client._json)(_), `Groups`],
562
- password: [, , `Password`],
563
- replicationUser: [, , `ReplicationUser`]
564
- })
565
- );
566
- b.m("POST").h(headers).b(body);
567
- return b.build();
568
- }, "se_CreateUserCommand");
569
- var se_DeleteBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
570
- const b = (0, import_core.requestBuilder)(input, context);
571
- const headers = {};
572
- b.bp("/v1/brokers/{BrokerId}");
573
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
574
- let body;
575
- b.m("DELETE").h(headers).b(body);
576
- return b.build();
577
- }, "se_DeleteBrokerCommand");
578
- var se_DeleteConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
579
- const b = (0, import_core.requestBuilder)(input, context);
580
- const headers = {};
581
- b.bp("/v1/configurations/{ConfigurationId}");
582
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
583
- let body;
584
- b.m("DELETE").h(headers).b(body);
585
- return b.build();
586
- }, "se_DeleteConfigurationCommand");
587
- var se_DeleteTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
588
- const b = (0, import_core.requestBuilder)(input, context);
589
- const headers = {};
590
- b.bp("/v1/tags/{ResourceArn}");
591
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
592
- const query = (0, import_smithy_client.map)({
593
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
594
- });
595
- let body;
596
- b.m("DELETE").h(headers).q(query).b(body);
597
- return b.build();
598
- }, "se_DeleteTagsCommand");
599
- var se_DeleteUserCommand = /* @__PURE__ */ __name(async (input, context) => {
600
- const b = (0, import_core.requestBuilder)(input, context);
601
- const headers = {};
602
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
603
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
604
- b.p("Username", () => input.Username, "{Username}", false);
605
- let body;
606
- b.m("DELETE").h(headers).b(body);
607
- return b.build();
608
- }, "se_DeleteUserCommand");
609
- var se_DescribeBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
610
- const b = (0, import_core.requestBuilder)(input, context);
611
- const headers = {};
612
- b.bp("/v1/brokers/{BrokerId}");
613
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
614
- let body;
615
- b.m("GET").h(headers).b(body);
616
- return b.build();
617
- }, "se_DescribeBrokerCommand");
618
- var se_DescribeBrokerEngineTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
619
- const b = (0, import_core.requestBuilder)(input, context);
620
- const headers = {};
621
- b.bp("/v1/broker-engine-types");
622
- const query = (0, import_smithy_client.map)({
623
- [_eT]: [, input[_ET]],
624
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
625
- [_nT]: [, input[_NT]]
626
- });
627
- let body;
628
- b.m("GET").h(headers).q(query).b(body);
629
- return b.build();
630
- }, "se_DescribeBrokerEngineTypesCommand");
631
- var se_DescribeBrokerInstanceOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
632
- const b = (0, import_core.requestBuilder)(input, context);
633
- const headers = {};
634
- b.bp("/v1/broker-instance-options");
635
- const query = (0, import_smithy_client.map)({
636
- [_eT]: [, input[_ET]],
637
- [_hIT]: [, input[_HIT]],
638
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
639
- [_nT]: [, input[_NT]],
640
- [_sT]: [, input[_ST]]
641
- });
642
- let body;
643
- b.m("GET").h(headers).q(query).b(body);
644
- return b.build();
645
- }, "se_DescribeBrokerInstanceOptionsCommand");
646
- var se_DescribeConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
647
- const b = (0, import_core.requestBuilder)(input, context);
648
- const headers = {};
649
- b.bp("/v1/configurations/{ConfigurationId}");
650
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
651
- let body;
652
- b.m("GET").h(headers).b(body);
653
- return b.build();
654
- }, "se_DescribeConfigurationCommand");
655
- var se_DescribeConfigurationRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
656
- const b = (0, import_core.requestBuilder)(input, context);
657
- const headers = {};
658
- b.bp("/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}");
659
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
660
- b.p("ConfigurationRevision", () => input.ConfigurationRevision, "{ConfigurationRevision}", false);
661
- let body;
662
- b.m("GET").h(headers).b(body);
663
- return b.build();
664
- }, "se_DescribeConfigurationRevisionCommand");
665
- var se_DescribeUserCommand = /* @__PURE__ */ __name(async (input, context) => {
666
- const b = (0, import_core.requestBuilder)(input, context);
667
- const headers = {};
668
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
669
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
670
- b.p("Username", () => input.Username, "{Username}", false);
671
- let body;
672
- b.m("GET").h(headers).b(body);
673
- return b.build();
674
- }, "se_DescribeUserCommand");
675
- var se_ListBrokersCommand = /* @__PURE__ */ __name(async (input, context) => {
676
- const b = (0, import_core.requestBuilder)(input, context);
677
- const headers = {};
678
- b.bp("/v1/brokers");
679
- const query = (0, import_smithy_client.map)({
680
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
681
- [_nT]: [, input[_NT]]
682
- });
683
- let body;
684
- b.m("GET").h(headers).q(query).b(body);
685
- return b.build();
686
- }, "se_ListBrokersCommand");
687
- var se_ListConfigurationRevisionsCommand = /* @__PURE__ */ __name(async (input, context) => {
688
- const b = (0, import_core.requestBuilder)(input, context);
689
- const headers = {};
690
- b.bp("/v1/configurations/{ConfigurationId}/revisions");
691
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
692
- const query = (0, import_smithy_client.map)({
693
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
694
- [_nT]: [, input[_NT]]
695
- });
696
- let body;
697
- b.m("GET").h(headers).q(query).b(body);
698
- return b.build();
699
- }, "se_ListConfigurationRevisionsCommand");
700
- var se_ListConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
701
- const b = (0, import_core.requestBuilder)(input, context);
702
- const headers = {};
703
- b.bp("/v1/configurations");
704
- const query = (0, import_smithy_client.map)({
705
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
706
- [_nT]: [, input[_NT]]
707
- });
708
- let body;
709
- b.m("GET").h(headers).q(query).b(body);
710
- return b.build();
711
- }, "se_ListConfigurationsCommand");
712
- var se_ListTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
713
- const b = (0, import_core.requestBuilder)(input, context);
714
- const headers = {};
715
- b.bp("/v1/tags/{ResourceArn}");
716
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
717
- let body;
718
- b.m("GET").h(headers).b(body);
719
- return b.build();
720
- }, "se_ListTagsCommand");
721
- var se_ListUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
722
- const b = (0, import_core.requestBuilder)(input, context);
723
- const headers = {};
724
- b.bp("/v1/brokers/{BrokerId}/users");
725
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
726
- const query = (0, import_smithy_client.map)({
727
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
728
- [_nT]: [, input[_NT]]
729
- });
730
- let body;
731
- b.m("GET").h(headers).q(query).b(body);
732
- return b.build();
733
- }, "se_ListUsersCommand");
734
- var se_PromoteCommand = /* @__PURE__ */ __name(async (input, context) => {
735
- const b = (0, import_core.requestBuilder)(input, context);
736
- const headers = {
737
- "content-type": "application/json"
738
- };
739
- b.bp("/v1/brokers/{BrokerId}/promote");
740
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
741
- let body;
742
- body = JSON.stringify(
743
- (0, import_smithy_client.take)(input, {
744
- mode: [, , `Mode`]
745
- })
746
- );
747
- b.m("POST").h(headers).b(body);
748
- return b.build();
749
- }, "se_PromoteCommand");
750
- var se_RebootBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
751
- const b = (0, import_core.requestBuilder)(input, context);
752
- const headers = {};
753
- b.bp("/v1/brokers/{BrokerId}/reboot");
754
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
755
- let body;
756
- b.m("POST").h(headers).b(body);
757
- return b.build();
758
- }, "se_RebootBrokerCommand");
759
- var se_UpdateBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
760
- const b = (0, import_core.requestBuilder)(input, context);
761
- const headers = {
762
- "content-type": "application/json"
763
- };
764
- b.bp("/v1/brokers/{BrokerId}");
765
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
766
- let body;
767
- body = JSON.stringify(
768
- (0, import_smithy_client.take)(input, {
769
- authenticationStrategy: [, , `AuthenticationStrategy`],
770
- autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
771
- configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
772
- dataReplicationMode: [, , `DataReplicationMode`],
773
- engineVersion: [, , `EngineVersion`],
774
- hostInstanceType: [, , `HostInstanceType`],
775
- ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
776
- logs: [, (_) => se_Logs(_, context), `Logs`],
777
- maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
778
- securityGroups: [, (_) => (0, import_smithy_client._json)(_), `SecurityGroups`]
779
- })
780
- );
781
- b.m("PUT").h(headers).b(body);
782
- return b.build();
783
- }, "se_UpdateBrokerCommand");
784
- var se_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
785
- const b = (0, import_core.requestBuilder)(input, context);
786
- const headers = {
787
- "content-type": "application/json"
788
- };
789
- b.bp("/v1/configurations/{ConfigurationId}");
790
- b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
791
- let body;
792
- body = JSON.stringify(
793
- (0, import_smithy_client.take)(input, {
794
- data: [, , `Data`],
795
- description: [, , `Description`]
796
- })
797
- );
798
- b.m("PUT").h(headers).b(body);
799
- return b.build();
800
- }, "se_UpdateConfigurationCommand");
801
- var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
802
- const b = (0, import_core.requestBuilder)(input, context);
803
- const headers = {
804
- "content-type": "application/json"
805
- };
806
- b.bp("/v1/brokers/{BrokerId}/users/{Username}");
807
- b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
808
- b.p("Username", () => input.Username, "{Username}", false);
809
- let body;
810
- body = JSON.stringify(
811
- (0, import_smithy_client.take)(input, {
812
- consoleAccess: [, , `ConsoleAccess`],
813
- groups: [, (_) => (0, import_smithy_client._json)(_), `Groups`],
814
- password: [, , `Password`],
815
- replicationUser: [, , `ReplicationUser`]
816
- })
817
- );
818
- b.m("PUT").h(headers).b(body);
819
- return b.build();
820
- }, "se_UpdateUserCommand");
821
- var de_CreateBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
822
- if (output.statusCode !== 200 && output.statusCode >= 300) {
823
- return de_CommandError(output, context);
824
- }
825
- const contents = (0, import_smithy_client.map)({
826
- $metadata: deserializeMetadata(output)
827
- });
828
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
829
- const doc = (0, import_smithy_client.take)(data, {
830
- BrokerArn: [, import_smithy_client.expectString, `brokerArn`],
831
- BrokerId: [, import_smithy_client.expectString, `brokerId`]
832
- });
833
- Object.assign(contents, doc);
834
- return contents;
835
- }, "de_CreateBrokerCommand");
836
- var de_CreateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
837
- if (output.statusCode !== 200 && output.statusCode >= 300) {
838
- return de_CommandError(output, context);
839
- }
840
- const contents = (0, import_smithy_client.map)({
841
- $metadata: deserializeMetadata(output)
842
- });
843
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
844
- const doc = (0, import_smithy_client.take)(data, {
845
- Arn: [, import_smithy_client.expectString, `arn`],
846
- AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
847
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
848
- Id: [, import_smithy_client.expectString, `id`],
849
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
850
- Name: [, import_smithy_client.expectString, `name`]
851
- });
852
- Object.assign(contents, doc);
853
- return contents;
854
- }, "de_CreateConfigurationCommand");
855
- var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
856
- if (output.statusCode !== 204 && output.statusCode >= 300) {
857
- return de_CommandError(output, context);
858
- }
859
- const contents = (0, import_smithy_client.map)({
860
- $metadata: deserializeMetadata(output)
861
- });
862
- await (0, import_smithy_client.collectBody)(output.body, context);
863
- return contents;
864
- }, "de_CreateTagsCommand");
865
- var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
866
- if (output.statusCode !== 200 && output.statusCode >= 300) {
867
- return de_CommandError(output, context);
868
- }
869
- const contents = (0, import_smithy_client.map)({
870
- $metadata: deserializeMetadata(output)
871
- });
872
- await (0, import_smithy_client.collectBody)(output.body, context);
873
- return contents;
874
- }, "de_CreateUserCommand");
875
- var de_DeleteBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
876
- if (output.statusCode !== 200 && output.statusCode >= 300) {
877
- return de_CommandError(output, context);
878
- }
879
- const contents = (0, import_smithy_client.map)({
880
- $metadata: deserializeMetadata(output)
881
- });
882
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
883
- const doc = (0, import_smithy_client.take)(data, {
884
- BrokerId: [, import_smithy_client.expectString, `brokerId`]
885
- });
886
- Object.assign(contents, doc);
887
- return contents;
888
- }, "de_DeleteBrokerCommand");
889
- var de_DeleteConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
890
- if (output.statusCode !== 200 && output.statusCode >= 300) {
891
- return de_CommandError(output, context);
892
- }
893
- const contents = (0, import_smithy_client.map)({
894
- $metadata: deserializeMetadata(output)
895
- });
896
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
897
- const doc = (0, import_smithy_client.take)(data, {
898
- ConfigurationId: [, import_smithy_client.expectString, `configurationId`]
899
- });
900
- Object.assign(contents, doc);
901
- return contents;
902
- }, "de_DeleteConfigurationCommand");
903
- var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
904
- if (output.statusCode !== 204 && output.statusCode >= 300) {
905
- return de_CommandError(output, context);
906
- }
907
- const contents = (0, import_smithy_client.map)({
908
- $metadata: deserializeMetadata(output)
909
- });
910
- await (0, import_smithy_client.collectBody)(output.body, context);
911
- return contents;
912
- }, "de_DeleteTagsCommand");
913
- var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
914
- if (output.statusCode !== 200 && output.statusCode >= 300) {
915
- return de_CommandError(output, context);
916
- }
917
- const contents = (0, import_smithy_client.map)({
918
- $metadata: deserializeMetadata(output)
919
- });
920
- await (0, import_smithy_client.collectBody)(output.body, context);
921
- return contents;
922
- }, "de_DeleteUserCommand");
923
- var de_DescribeBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
924
- if (output.statusCode !== 200 && output.statusCode >= 300) {
925
- return de_CommandError(output, context);
926
- }
927
- const contents = (0, import_smithy_client.map)({
928
- $metadata: deserializeMetadata(output)
929
- });
930
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
931
- const doc = (0, import_smithy_client.take)(data, {
932
- ActionsRequired: [, (_) => de___listOfActionRequired(_, context), `actionsRequired`],
933
- AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
934
- AutoMinorVersionUpgrade: [, import_smithy_client.expectBoolean, `autoMinorVersionUpgrade`],
935
- BrokerArn: [, import_smithy_client.expectString, `brokerArn`],
936
- BrokerId: [, import_smithy_client.expectString, `brokerId`],
937
- BrokerInstances: [, (_) => de___listOfBrokerInstance(_, context), `brokerInstances`],
938
- BrokerName: [, import_smithy_client.expectString, `brokerName`],
939
- BrokerState: [, import_smithy_client.expectString, `brokerState`],
940
- Configurations: [, (_) => de_Configurations(_, context), `configurations`],
941
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
942
- DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_, context), `dataReplicationMetadata`],
943
- DataReplicationMode: [, import_smithy_client.expectString, `dataReplicationMode`],
944
- DeploymentMode: [, import_smithy_client.expectString, `deploymentMode`],
945
- EncryptionOptions: [, (_) => de_EncryptionOptions(_, context), `encryptionOptions`],
946
- EngineType: [, import_smithy_client.expectString, `engineType`],
947
- EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
948
- HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`],
949
- LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
950
- Logs: [, (_) => de_LogsSummary(_, context), `logs`],
951
- MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
952
- PendingAuthenticationStrategy: [, import_smithy_client.expectString, `pendingAuthenticationStrategy`],
953
- PendingDataReplicationMetadata: [
954
- ,
955
- (_) => de_DataReplicationMetadataOutput(_, context),
956
- `pendingDataReplicationMetadata`
957
- ],
958
- PendingDataReplicationMode: [, import_smithy_client.expectString, `pendingDataReplicationMode`],
959
- PendingEngineVersion: [, import_smithy_client.expectString, `pendingEngineVersion`],
960
- PendingHostInstanceType: [, import_smithy_client.expectString, `pendingHostInstanceType`],
961
- PendingLdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `pendingLdapServerMetadata`],
962
- PendingSecurityGroups: [, import_smithy_client._json, `pendingSecurityGroups`],
963
- PubliclyAccessible: [, import_smithy_client.expectBoolean, `publiclyAccessible`],
964
- SecurityGroups: [, import_smithy_client._json, `securityGroups`],
965
- StorageType: [, import_smithy_client.expectString, `storageType`],
966
- SubnetIds: [, import_smithy_client._json, `subnetIds`],
967
- Tags: [, import_smithy_client._json, `tags`],
968
- Users: [, (_) => de___listOfUserSummary(_, context), `users`]
969
- });
970
- Object.assign(contents, doc);
971
- return contents;
972
- }, "de_DescribeBrokerCommand");
973
- var de_DescribeBrokerEngineTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
974
- if (output.statusCode !== 200 && output.statusCode >= 300) {
975
- return de_CommandError(output, context);
976
- }
977
- const contents = (0, import_smithy_client.map)({
978
- $metadata: deserializeMetadata(output)
979
- });
980
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
981
- const doc = (0, import_smithy_client.take)(data, {
982
- BrokerEngineTypes: [, (_) => de___listOfBrokerEngineType(_, context), `brokerEngineTypes`],
983
- MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
984
- NextToken: [, import_smithy_client.expectString, `nextToken`]
985
- });
986
- Object.assign(contents, doc);
987
- return contents;
988
- }, "de_DescribeBrokerEngineTypesCommand");
989
- var de_DescribeBrokerInstanceOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
990
- if (output.statusCode !== 200 && output.statusCode >= 300) {
991
- return de_CommandError(output, context);
992
- }
993
- const contents = (0, import_smithy_client.map)({
994
- $metadata: deserializeMetadata(output)
995
- });
996
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
997
- const doc = (0, import_smithy_client.take)(data, {
998
- BrokerInstanceOptions: [, (_) => de___listOfBrokerInstanceOption(_, context), `brokerInstanceOptions`],
999
- MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
1000
- NextToken: [, import_smithy_client.expectString, `nextToken`]
1001
- });
1002
- Object.assign(contents, doc);
1003
- return contents;
1004
- }, "de_DescribeBrokerInstanceOptionsCommand");
1005
- var de_DescribeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1006
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1007
- return de_CommandError(output, context);
1008
- }
1009
- const contents = (0, import_smithy_client.map)({
1010
- $metadata: deserializeMetadata(output)
1011
- });
1012
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1013
- const doc = (0, import_smithy_client.take)(data, {
1014
- Arn: [, import_smithy_client.expectString, `arn`],
1015
- AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
1016
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
1017
- Description: [, import_smithy_client.expectString, `description`],
1018
- EngineType: [, import_smithy_client.expectString, `engineType`],
1019
- EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
1020
- Id: [, import_smithy_client.expectString, `id`],
1021
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
1022
- Name: [, import_smithy_client.expectString, `name`],
1023
- Tags: [, import_smithy_client._json, `tags`]
1024
- });
1025
- Object.assign(contents, doc);
1026
- return contents;
1027
- }, "de_DescribeConfigurationCommand");
1028
- var de_DescribeConfigurationRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
1029
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1030
- return de_CommandError(output, context);
1031
- }
1032
- const contents = (0, import_smithy_client.map)({
1033
- $metadata: deserializeMetadata(output)
1034
- });
1035
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1036
- const doc = (0, import_smithy_client.take)(data, {
1037
- ConfigurationId: [, import_smithy_client.expectString, `configurationId`],
1038
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
1039
- Data: [, import_smithy_client.expectString, `data`],
1040
- Description: [, import_smithy_client.expectString, `description`]
1041
- });
1042
- Object.assign(contents, doc);
1043
- return contents;
1044
- }, "de_DescribeConfigurationRevisionCommand");
1045
- var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
1046
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1047
- return de_CommandError(output, context);
1048
- }
1049
- const contents = (0, import_smithy_client.map)({
1050
- $metadata: deserializeMetadata(output)
1051
- });
1052
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1053
- const doc = (0, import_smithy_client.take)(data, {
1054
- BrokerId: [, import_smithy_client.expectString, `brokerId`],
1055
- ConsoleAccess: [, import_smithy_client.expectBoolean, `consoleAccess`],
1056
- Groups: [, import_smithy_client._json, `groups`],
1057
- Pending: [, (_) => de_UserPendingChanges(_, context), `pending`],
1058
- ReplicationUser: [, import_smithy_client.expectBoolean, `replicationUser`],
1059
- Username: [, import_smithy_client.expectString, `username`]
1060
- });
1061
- Object.assign(contents, doc);
1062
- return contents;
1063
- }, "de_DescribeUserCommand");
1064
- var de_ListBrokersCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
- return de_CommandError(output, context);
1067
- }
1068
- const contents = (0, import_smithy_client.map)({
1069
- $metadata: deserializeMetadata(output)
1070
- });
1071
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1072
- const doc = (0, import_smithy_client.take)(data, {
1073
- BrokerSummaries: [, (_) => de___listOfBrokerSummary(_, context), `brokerSummaries`],
1074
- NextToken: [, import_smithy_client.expectString, `nextToken`]
1075
- });
1076
- Object.assign(contents, doc);
1077
- return contents;
1078
- }, "de_ListBrokersCommand");
1079
- var de_ListConfigurationRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1080
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1081
- return de_CommandError(output, context);
1082
- }
1083
- const contents = (0, import_smithy_client.map)({
1084
- $metadata: deserializeMetadata(output)
1085
- });
1086
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1087
- const doc = (0, import_smithy_client.take)(data, {
1088
- ConfigurationId: [, import_smithy_client.expectString, `configurationId`],
1089
- MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
1090
- NextToken: [, import_smithy_client.expectString, `nextToken`],
1091
- Revisions: [, (_) => de___listOfConfigurationRevision(_, context), `revisions`]
1092
- });
1093
- Object.assign(contents, doc);
1094
- return contents;
1095
- }, "de_ListConfigurationRevisionsCommand");
1096
- var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1097
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1098
- return de_CommandError(output, context);
1099
- }
1100
- const contents = (0, import_smithy_client.map)({
1101
- $metadata: deserializeMetadata(output)
1102
- });
1103
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1104
- const doc = (0, import_smithy_client.take)(data, {
1105
- Configurations: [, (_) => de___listOfConfiguration(_, context), `configurations`],
1106
- MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
1107
- NextToken: [, import_smithy_client.expectString, `nextToken`]
1108
- });
1109
- Object.assign(contents, doc);
1110
- return contents;
1111
- }, "de_ListConfigurationsCommand");
1112
- var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1113
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1114
- return de_CommandError(output, context);
1115
- }
1116
- const contents = (0, import_smithy_client.map)({
1117
- $metadata: deserializeMetadata(output)
1118
- });
1119
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1120
- const doc = (0, import_smithy_client.take)(data, {
1121
- Tags: [, import_smithy_client._json, `tags`]
1122
- });
1123
- Object.assign(contents, doc);
1124
- return contents;
1125
- }, "de_ListTagsCommand");
1126
- var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
1127
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1128
- return de_CommandError(output, context);
1129
- }
1130
- const contents = (0, import_smithy_client.map)({
1131
- $metadata: deserializeMetadata(output)
1132
- });
1133
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1134
- const doc = (0, import_smithy_client.take)(data, {
1135
- BrokerId: [, import_smithy_client.expectString, `brokerId`],
1136
- MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
1137
- NextToken: [, import_smithy_client.expectString, `nextToken`],
1138
- Users: [, (_) => de___listOfUserSummary(_, context), `users`]
1139
- });
1140
- Object.assign(contents, doc);
1141
- return contents;
1142
- }, "de_ListUsersCommand");
1143
- var de_PromoteCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const contents = (0, import_smithy_client.map)({
1148
- $metadata: deserializeMetadata(output)
1149
- });
1150
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1151
- const doc = (0, import_smithy_client.take)(data, {
1152
- BrokerId: [, import_smithy_client.expectString, `brokerId`]
1153
- });
1154
- Object.assign(contents, doc);
1155
- return contents;
1156
- }, "de_PromoteCommand");
1157
- var de_RebootBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
1158
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1159
- return de_CommandError(output, context);
1160
- }
1161
- const contents = (0, import_smithy_client.map)({
1162
- $metadata: deserializeMetadata(output)
1163
- });
1164
- await (0, import_smithy_client.collectBody)(output.body, context);
1165
- return contents;
1166
- }, "de_RebootBrokerCommand");
1167
- var de_UpdateBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
1168
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1169
- return de_CommandError(output, context);
1170
- }
1171
- const contents = (0, import_smithy_client.map)({
1172
- $metadata: deserializeMetadata(output)
1173
- });
1174
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1175
- const doc = (0, import_smithy_client.take)(data, {
1176
- AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
1177
- AutoMinorVersionUpgrade: [, import_smithy_client.expectBoolean, `autoMinorVersionUpgrade`],
1178
- BrokerId: [, import_smithy_client.expectString, `brokerId`],
1179
- Configuration: [, (_) => de_ConfigurationId(_, context), `configuration`],
1180
- DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_, context), `dataReplicationMetadata`],
1181
- DataReplicationMode: [, import_smithy_client.expectString, `dataReplicationMode`],
1182
- EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
1183
- HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`],
1184
- LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
1185
- Logs: [, (_) => de_Logs(_, context), `logs`],
1186
- MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
1187
- PendingDataReplicationMetadata: [
1188
- ,
1189
- (_) => de_DataReplicationMetadataOutput(_, context),
1190
- `pendingDataReplicationMetadata`
1191
- ],
1192
- PendingDataReplicationMode: [, import_smithy_client.expectString, `pendingDataReplicationMode`],
1193
- SecurityGroups: [, import_smithy_client._json, `securityGroups`]
1194
- });
1195
- Object.assign(contents, doc);
1196
- return contents;
1197
- }, "de_UpdateBrokerCommand");
1198
- var de_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1199
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1200
- return de_CommandError(output, context);
1201
- }
1202
- const contents = (0, import_smithy_client.map)({
1203
- $metadata: deserializeMetadata(output)
1204
- });
1205
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1206
- const doc = (0, import_smithy_client.take)(data, {
1207
- Arn: [, import_smithy_client.expectString, `arn`],
1208
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
1209
- Id: [, import_smithy_client.expectString, `id`],
1210
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
1211
- Name: [, import_smithy_client.expectString, `name`],
1212
- Warnings: [, (_) => de___listOfSanitizationWarning(_, context), `warnings`]
1213
- });
1214
- Object.assign(contents, doc);
1215
- return contents;
1216
- }, "de_UpdateConfigurationCommand");
1217
- var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
1218
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1219
- return de_CommandError(output, context);
1220
- }
1221
- const contents = (0, import_smithy_client.map)({
1222
- $metadata: deserializeMetadata(output)
1223
- });
1224
- await (0, import_smithy_client.collectBody)(output.body, context);
1225
- return contents;
1226
- }, "de_UpdateUserCommand");
1227
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1228
- const parsedOutput = {
1229
- ...output,
1230
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1231
- };
1232
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1233
- switch (errorCode) {
1234
- case "BadRequestException":
1235
- case "com.amazonaws.mq#BadRequestException":
1236
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1237
- case "ConflictException":
1238
- case "com.amazonaws.mq#ConflictException":
1239
- throw await de_ConflictExceptionRes(parsedOutput, context);
1240
- case "ForbiddenException":
1241
- case "com.amazonaws.mq#ForbiddenException":
1242
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1243
- case "InternalServerErrorException":
1244
- case "com.amazonaws.mq#InternalServerErrorException":
1245
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1246
- case "UnauthorizedException":
1247
- case "com.amazonaws.mq#UnauthorizedException":
1248
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1249
- case "NotFoundException":
1250
- case "com.amazonaws.mq#NotFoundException":
1251
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1252
- default:
1253
- const parsedBody = parsedOutput.body;
1254
- return throwDefaultError({
1255
- output,
1256
- parsedBody,
1257
- errorCode
1258
- });
1259
- }
1260
- }, "de_CommandError");
1261
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MqServiceException);
1262
- var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1263
- const contents = (0, import_smithy_client.map)({});
1264
- const data = parsedOutput.body;
1265
- const doc = (0, import_smithy_client.take)(data, {
1266
- ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
1267
- Message: [, import_smithy_client.expectString, `message`]
1268
- });
1269
- Object.assign(contents, doc);
1270
- const exception = new BadRequestException({
1271
- $metadata: deserializeMetadata(parsedOutput),
1272
- ...contents
1273
- });
1274
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1275
- }, "de_BadRequestExceptionRes");
1276
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1277
- const contents = (0, import_smithy_client.map)({});
1278
- const data = parsedOutput.body;
1279
- const doc = (0, import_smithy_client.take)(data, {
1280
- ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
1281
- Message: [, import_smithy_client.expectString, `message`]
1282
- });
1283
- Object.assign(contents, doc);
1284
- const exception = new ConflictException({
1285
- $metadata: deserializeMetadata(parsedOutput),
1286
- ...contents
1287
- });
1288
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1289
- }, "de_ConflictExceptionRes");
1290
- var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1291
- const contents = (0, import_smithy_client.map)({});
1292
- const data = parsedOutput.body;
1293
- const doc = (0, import_smithy_client.take)(data, {
1294
- ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
1295
- Message: [, import_smithy_client.expectString, `message`]
1296
- });
1297
- Object.assign(contents, doc);
1298
- const exception = new ForbiddenException({
1299
- $metadata: deserializeMetadata(parsedOutput),
1300
- ...contents
1301
- });
1302
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1303
- }, "de_ForbiddenExceptionRes");
1304
- var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1305
- const contents = (0, import_smithy_client.map)({});
1306
- const data = parsedOutput.body;
1307
- const doc = (0, import_smithy_client.take)(data, {
1308
- ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
1309
- Message: [, import_smithy_client.expectString, `message`]
1310
- });
1311
- Object.assign(contents, doc);
1312
- const exception = new InternalServerErrorException({
1313
- $metadata: deserializeMetadata(parsedOutput),
1314
- ...contents
1315
- });
1316
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1317
- }, "de_InternalServerErrorExceptionRes");
1318
- var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1319
- const contents = (0, import_smithy_client.map)({});
1320
- const data = parsedOutput.body;
1321
- const doc = (0, import_smithy_client.take)(data, {
1322
- ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
1323
- Message: [, import_smithy_client.expectString, `message`]
1324
- });
1325
- Object.assign(contents, doc);
1326
- const exception = new NotFoundException({
1327
- $metadata: deserializeMetadata(parsedOutput),
1328
- ...contents
1329
- });
1330
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1331
- }, "de_NotFoundExceptionRes");
1332
- var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1333
- const contents = (0, import_smithy_client.map)({});
1334
- const data = parsedOutput.body;
1335
- const doc = (0, import_smithy_client.take)(data, {
1336
- ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
1337
- Message: [, import_smithy_client.expectString, `message`]
1338
- });
1339
- Object.assign(contents, doc);
1340
- const exception = new UnauthorizedException({
1341
- $metadata: deserializeMetadata(parsedOutput),
1342
- ...contents
1343
- });
1344
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1345
- }, "de_UnauthorizedExceptionRes");
1346
- var se___listOfUser = /* @__PURE__ */ __name((input, context) => {
1347
- return input.filter((e) => e != null).map((entry) => {
1348
- return se_User(entry, context);
1349
- });
1350
- }, "se___listOfUser");
1351
- var se_ConfigurationId = /* @__PURE__ */ __name((input, context) => {
1352
- return (0, import_smithy_client.take)(input, {
1353
- id: [, , `Id`],
1354
- revision: [, , `Revision`]
1355
- });
1356
- }, "se_ConfigurationId");
1357
- var se_EncryptionOptions = /* @__PURE__ */ __name((input, context) => {
1358
- return (0, import_smithy_client.take)(input, {
1359
- kmsKeyId: [, , `KmsKeyId`],
1360
- useAwsOwnedKey: [, , `UseAwsOwnedKey`]
1361
- });
1362
- }, "se_EncryptionOptions");
1363
- var se_LdapServerMetadataInput = /* @__PURE__ */ __name((input, context) => {
1364
- return (0, import_smithy_client.take)(input, {
1365
- hosts: [, import_smithy_client._json, `Hosts`],
1366
- roleBase: [, , `RoleBase`],
1367
- roleName: [, , `RoleName`],
1368
- roleSearchMatching: [, , `RoleSearchMatching`],
1369
- roleSearchSubtree: [, , `RoleSearchSubtree`],
1370
- serviceAccountPassword: [, , `ServiceAccountPassword`],
1371
- serviceAccountUsername: [, , `ServiceAccountUsername`],
1372
- userBase: [, , `UserBase`],
1373
- userRoleName: [, , `UserRoleName`],
1374
- userSearchMatching: [, , `UserSearchMatching`],
1375
- userSearchSubtree: [, , `UserSearchSubtree`]
1376
- });
1377
- }, "se_LdapServerMetadataInput");
1378
- var se_Logs = /* @__PURE__ */ __name((input, context) => {
1379
- return (0, import_smithy_client.take)(input, {
1380
- audit: [, , `Audit`],
1381
- general: [, , `General`]
1382
- });
1383
- }, "se_Logs");
1384
- var se_User = /* @__PURE__ */ __name((input, context) => {
1385
- return (0, import_smithy_client.take)(input, {
1386
- consoleAccess: [, , `ConsoleAccess`],
1387
- groups: [, import_smithy_client._json, `Groups`],
1388
- password: [, , `Password`],
1389
- replicationUser: [, , `ReplicationUser`],
1390
- username: [, , `Username`]
1391
- });
1392
- }, "se_User");
1393
- var se_WeeklyStartTime = /* @__PURE__ */ __name((input, context) => {
1394
- return (0, import_smithy_client.take)(input, {
1395
- dayOfWeek: [, , `DayOfWeek`],
1396
- timeOfDay: [, , `TimeOfDay`],
1397
- timeZone: [, , `TimeZone`]
1398
- });
1399
- }, "se_WeeklyStartTime");
1400
- var de___listOfActionRequired = /* @__PURE__ */ __name((output, context) => {
1401
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1402
- return de_ActionRequired(entry, context);
1403
- });
1404
- return retVal;
1405
- }, "de___listOfActionRequired");
1406
- var de___listOfAvailabilityZone = /* @__PURE__ */ __name((output, context) => {
1407
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1408
- return de_AvailabilityZone(entry, context);
1409
- });
1410
- return retVal;
1411
- }, "de___listOfAvailabilityZone");
1412
- var de___listOfBrokerEngineType = /* @__PURE__ */ __name((output, context) => {
1413
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1414
- return de_BrokerEngineType(entry, context);
1415
- });
1416
- return retVal;
1417
- }, "de___listOfBrokerEngineType");
1418
- var de___listOfBrokerInstance = /* @__PURE__ */ __name((output, context) => {
1419
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1420
- return de_BrokerInstance(entry, context);
1421
- });
1422
- return retVal;
1423
- }, "de___listOfBrokerInstance");
1424
- var de___listOfBrokerInstanceOption = /* @__PURE__ */ __name((output, context) => {
1425
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1426
- return de_BrokerInstanceOption(entry, context);
1427
- });
1428
- return retVal;
1429
- }, "de___listOfBrokerInstanceOption");
1430
- var de___listOfBrokerSummary = /* @__PURE__ */ __name((output, context) => {
1431
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1432
- return de_BrokerSummary(entry, context);
1433
- });
1434
- return retVal;
1435
- }, "de___listOfBrokerSummary");
1436
- var de___listOfConfiguration = /* @__PURE__ */ __name((output, context) => {
1437
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1438
- return de_Configuration(entry, context);
1439
- });
1440
- return retVal;
1441
- }, "de___listOfConfiguration");
1442
- var de___listOfConfigurationId = /* @__PURE__ */ __name((output, context) => {
1443
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1444
- return de_ConfigurationId(entry, context);
1445
- });
1446
- return retVal;
1447
- }, "de___listOfConfigurationId");
1448
- var de___listOfConfigurationRevision = /* @__PURE__ */ __name((output, context) => {
1449
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1450
- return de_ConfigurationRevision(entry, context);
1451
- });
1452
- return retVal;
1453
- }, "de___listOfConfigurationRevision");
1454
- var de___listOfEngineVersion = /* @__PURE__ */ __name((output, context) => {
1455
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1456
- return de_EngineVersion(entry, context);
1457
- });
1458
- return retVal;
1459
- }, "de___listOfEngineVersion");
1460
- var de___listOfSanitizationWarning = /* @__PURE__ */ __name((output, context) => {
1461
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1462
- return de_SanitizationWarning(entry, context);
1463
- });
1464
- return retVal;
1465
- }, "de___listOfSanitizationWarning");
1466
- var de___listOfUserSummary = /* @__PURE__ */ __name((output, context) => {
1467
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1468
- return de_UserSummary(entry, context);
1469
- });
1470
- return retVal;
1471
- }, "de___listOfUserSummary");
1472
- var de_ActionRequired = /* @__PURE__ */ __name((output, context) => {
1473
- return (0, import_smithy_client.take)(output, {
1474
- ActionRequiredCode: [, import_smithy_client.expectString, `actionRequiredCode`],
1475
- ActionRequiredInfo: [, import_smithy_client.expectString, `actionRequiredInfo`]
1476
- });
1477
- }, "de_ActionRequired");
1478
- var de_AvailabilityZone = /* @__PURE__ */ __name((output, context) => {
1479
- return (0, import_smithy_client.take)(output, {
1480
- Name: [, import_smithy_client.expectString, `name`]
1481
- });
1482
- }, "de_AvailabilityZone");
1483
- var de_BrokerEngineType = /* @__PURE__ */ __name((output, context) => {
1484
- return (0, import_smithy_client.take)(output, {
1485
- EngineType: [, import_smithy_client.expectString, `engineType`],
1486
- EngineVersions: [, (_) => de___listOfEngineVersion(_, context), `engineVersions`]
1487
- });
1488
- }, "de_BrokerEngineType");
1489
- var de_BrokerInstance = /* @__PURE__ */ __name((output, context) => {
1490
- return (0, import_smithy_client.take)(output, {
1491
- ConsoleURL: [, import_smithy_client.expectString, `consoleURL`],
1492
- Endpoints: [, import_smithy_client._json, `endpoints`],
1493
- IpAddress: [, import_smithy_client.expectString, `ipAddress`]
1494
- });
1495
- }, "de_BrokerInstance");
1496
- var de_BrokerInstanceOption = /* @__PURE__ */ __name((output, context) => {
1497
- return (0, import_smithy_client.take)(output, {
1498
- AvailabilityZones: [, (_) => de___listOfAvailabilityZone(_, context), `availabilityZones`],
1499
- EngineType: [, import_smithy_client.expectString, `engineType`],
1500
- HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`],
1501
- StorageType: [, import_smithy_client.expectString, `storageType`],
1502
- SupportedDeploymentModes: [, import_smithy_client._json, `supportedDeploymentModes`],
1503
- SupportedEngineVersions: [, import_smithy_client._json, `supportedEngineVersions`]
1504
- });
1505
- }, "de_BrokerInstanceOption");
1506
- var de_BrokerSummary = /* @__PURE__ */ __name((output, context) => {
1507
- return (0, import_smithy_client.take)(output, {
1508
- BrokerArn: [, import_smithy_client.expectString, `brokerArn`],
1509
- BrokerId: [, import_smithy_client.expectString, `brokerId`],
1510
- BrokerName: [, import_smithy_client.expectString, `brokerName`],
1511
- BrokerState: [, import_smithy_client.expectString, `brokerState`],
1512
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
1513
- DeploymentMode: [, import_smithy_client.expectString, `deploymentMode`],
1514
- EngineType: [, import_smithy_client.expectString, `engineType`],
1515
- HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`]
1516
- });
1517
- }, "de_BrokerSummary");
1518
- var de_Configuration = /* @__PURE__ */ __name((output, context) => {
1519
- return (0, import_smithy_client.take)(output, {
1520
- Arn: [, import_smithy_client.expectString, `arn`],
1521
- AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
1522
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
1523
- Description: [, import_smithy_client.expectString, `description`],
1524
- EngineType: [, import_smithy_client.expectString, `engineType`],
1525
- EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
1526
- Id: [, import_smithy_client.expectString, `id`],
1527
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
1528
- Name: [, import_smithy_client.expectString, `name`],
1529
- Tags: [, import_smithy_client._json, `tags`]
1530
- });
1531
- }, "de_Configuration");
1532
- var de_ConfigurationId = /* @__PURE__ */ __name((output, context) => {
1533
- return (0, import_smithy_client.take)(output, {
1534
- Id: [, import_smithy_client.expectString, `id`],
1535
- Revision: [, import_smithy_client.expectInt32, `revision`]
1536
- });
1537
- }, "de_ConfigurationId");
1538
- var de_ConfigurationRevision = /* @__PURE__ */ __name((output, context) => {
1539
- return (0, import_smithy_client.take)(output, {
1540
- Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
1541
- Description: [, import_smithy_client.expectString, `description`],
1542
- Revision: [, import_smithy_client.expectInt32, `revision`]
1543
- });
1544
- }, "de_ConfigurationRevision");
1545
- var de_Configurations = /* @__PURE__ */ __name((output, context) => {
1546
- return (0, import_smithy_client.take)(output, {
1547
- Current: [, (_) => de_ConfigurationId(_, context), `current`],
1548
- History: [, (_) => de___listOfConfigurationId(_, context), `history`],
1549
- Pending: [, (_) => de_ConfigurationId(_, context), `pending`]
1550
- });
1551
- }, "de_Configurations");
1552
- var de_DataReplicationCounterpart = /* @__PURE__ */ __name((output, context) => {
1553
- return (0, import_smithy_client.take)(output, {
1554
- BrokerId: [, import_smithy_client.expectString, `brokerId`],
1555
- Region: [, import_smithy_client.expectString, `region`]
1556
- });
1557
- }, "de_DataReplicationCounterpart");
1558
- var de_DataReplicationMetadataOutput = /* @__PURE__ */ __name((output, context) => {
1559
- return (0, import_smithy_client.take)(output, {
1560
- DataReplicationCounterpart: [, (_) => de_DataReplicationCounterpart(_, context), `dataReplicationCounterpart`],
1561
- DataReplicationRole: [, import_smithy_client.expectString, `dataReplicationRole`]
1562
- });
1563
- }, "de_DataReplicationMetadataOutput");
1564
- var de_EncryptionOptions = /* @__PURE__ */ __name((output, context) => {
1565
- return (0, import_smithy_client.take)(output, {
1566
- KmsKeyId: [, import_smithy_client.expectString, `kmsKeyId`],
1567
- UseAwsOwnedKey: [, import_smithy_client.expectBoolean, `useAwsOwnedKey`]
1568
- });
1569
- }, "de_EncryptionOptions");
1570
- var de_EngineVersion = /* @__PURE__ */ __name((output, context) => {
1571
- return (0, import_smithy_client.take)(output, {
1572
- Name: [, import_smithy_client.expectString, `name`]
1573
- });
1574
- }, "de_EngineVersion");
1575
- var de_LdapServerMetadataOutput = /* @__PURE__ */ __name((output, context) => {
1576
- return (0, import_smithy_client.take)(output, {
1577
- Hosts: [, import_smithy_client._json, `hosts`],
1578
- RoleBase: [, import_smithy_client.expectString, `roleBase`],
1579
- RoleName: [, import_smithy_client.expectString, `roleName`],
1580
- RoleSearchMatching: [, import_smithy_client.expectString, `roleSearchMatching`],
1581
- RoleSearchSubtree: [, import_smithy_client.expectBoolean, `roleSearchSubtree`],
1582
- ServiceAccountUsername: [, import_smithy_client.expectString, `serviceAccountUsername`],
1583
- UserBase: [, import_smithy_client.expectString, `userBase`],
1584
- UserRoleName: [, import_smithy_client.expectString, `userRoleName`],
1585
- UserSearchMatching: [, import_smithy_client.expectString, `userSearchMatching`],
1586
- UserSearchSubtree: [, import_smithy_client.expectBoolean, `userSearchSubtree`]
1587
- });
1588
- }, "de_LdapServerMetadataOutput");
1589
- var de_Logs = /* @__PURE__ */ __name((output, context) => {
1590
- return (0, import_smithy_client.take)(output, {
1591
- Audit: [, import_smithy_client.expectBoolean, `audit`],
1592
- General: [, import_smithy_client.expectBoolean, `general`]
1593
- });
1594
- }, "de_Logs");
1595
- var de_LogsSummary = /* @__PURE__ */ __name((output, context) => {
1596
- return (0, import_smithy_client.take)(output, {
1597
- Audit: [, import_smithy_client.expectBoolean, `audit`],
1598
- AuditLogGroup: [, import_smithy_client.expectString, `auditLogGroup`],
1599
- General: [, import_smithy_client.expectBoolean, `general`],
1600
- GeneralLogGroup: [, import_smithy_client.expectString, `generalLogGroup`],
1601
- Pending: [, (_) => de_PendingLogs(_, context), `pending`]
1602
- });
1603
- }, "de_LogsSummary");
1604
- var de_PendingLogs = /* @__PURE__ */ __name((output, context) => {
1605
- return (0, import_smithy_client.take)(output, {
1606
- Audit: [, import_smithy_client.expectBoolean, `audit`],
1607
- General: [, import_smithy_client.expectBoolean, `general`]
1608
- });
1609
- }, "de_PendingLogs");
1610
- var de_SanitizationWarning = /* @__PURE__ */ __name((output, context) => {
1611
- return (0, import_smithy_client.take)(output, {
1612
- AttributeName: [, import_smithy_client.expectString, `attributeName`],
1613
- ElementName: [, import_smithy_client.expectString, `elementName`],
1614
- Reason: [, import_smithy_client.expectString, `reason`]
1615
- });
1616
- }, "de_SanitizationWarning");
1617
- var de_UserPendingChanges = /* @__PURE__ */ __name((output, context) => {
1618
- return (0, import_smithy_client.take)(output, {
1619
- ConsoleAccess: [, import_smithy_client.expectBoolean, `consoleAccess`],
1620
- Groups: [, import_smithy_client._json, `groups`],
1621
- PendingChange: [, import_smithy_client.expectString, `pendingChange`]
1622
- });
1623
- }, "de_UserPendingChanges");
1624
- var de_UserSummary = /* @__PURE__ */ __name((output, context) => {
1625
- return (0, import_smithy_client.take)(output, {
1626
- PendingChange: [, import_smithy_client.expectString, `pendingChange`],
1627
- Username: [, import_smithy_client.expectString, `username`]
1628
- });
1629
- }, "de_UserSummary");
1630
- var de_WeeklyStartTime = /* @__PURE__ */ __name((output, context) => {
1631
- return (0, import_smithy_client.take)(output, {
1632
- DayOfWeek: [, import_smithy_client.expectString, `dayOfWeek`],
1633
- TimeOfDay: [, import_smithy_client.expectString, `timeOfDay`],
1634
- TimeZone: [, import_smithy_client.expectString, `timeZone`]
1635
- });
1636
- }, "de_WeeklyStartTime");
1637
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1638
- httpStatusCode: output.statusCode,
1639
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1640
- extendedRequestId: output.headers["x-amz-id-2"],
1641
- cfId: output.headers["x-amz-cf-id"]
1642
- }), "deserializeMetadata");
1643
- var _ET = "EngineType";
1644
- var _HIT = "HostInstanceType";
1645
- var _MR = "MaxResults";
1646
- var _NT = "NextToken";
1647
- var _ST = "StorageType";
1648
- var _TK = "TagKeys";
1649
- var _eT = "engineType";
1650
- var _hIT = "hostInstanceType";
1651
- var _mR = "maxResults";
1652
- var _nT = "nextToken";
1653
- var _sT = "storageType";
1654
- var _tK = "tagKeys";
1655
-
1656
- // src/commands/CreateBrokerCommand.ts
1657
- var CreateBrokerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1658
- return [
1659
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1660
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1661
- ];
1662
- }).s("mq", "CreateBroker", {}).n("MqClient", "CreateBrokerCommand").f(void 0, void 0).ser(se_CreateBrokerCommand).de(de_CreateBrokerCommand).build() {
1663
- static {
1664
- __name(this, "CreateBrokerCommand");
1665
- }
134
+ const BrokerState = {
135
+ CREATION_FAILED: "CREATION_FAILED",
136
+ CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS",
137
+ CRITICAL_ACTION_REQUIRED: "CRITICAL_ACTION_REQUIRED",
138
+ DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS",
139
+ REBOOT_IN_PROGRESS: "REBOOT_IN_PROGRESS",
140
+ REPLICA: "REPLICA",
141
+ RUNNING: "RUNNING",
1666
142
  };
1667
-
1668
- // src/commands/CreateConfigurationCommand.ts
1669
-
1670
-
1671
-
1672
- var CreateConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1673
- return [
1674
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1675
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1676
- ];
1677
- }).s("mq", "CreateConfiguration", {}).n("MqClient", "CreateConfigurationCommand").f(void 0, void 0).ser(se_CreateConfigurationCommand).de(de_CreateConfigurationCommand).build() {
1678
- static {
1679
- __name(this, "CreateConfigurationCommand");
1680
- }
143
+ const AuthenticationStrategy = {
144
+ CONFIG_MANAGED: "CONFIG_MANAGED",
145
+ LDAP: "LDAP",
146
+ SIMPLE: "SIMPLE",
1681
147
  };
1682
-
1683
- // src/commands/CreateTagsCommand.ts
1684
-
1685
-
1686
-
1687
- var CreateTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1688
- return [
1689
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1690
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1691
- ];
1692
- }).s("mq", "CreateTags", {}).n("MqClient", "CreateTagsCommand").f(void 0, void 0).ser(se_CreateTagsCommand).de(de_CreateTagsCommand).build() {
1693
- static {
1694
- __name(this, "CreateTagsCommand");
1695
- }
148
+ const SanitizationWarningReason = {
149
+ DISALLOWED_ATTRIBUTE_REMOVED: "DISALLOWED_ATTRIBUTE_REMOVED",
150
+ DISALLOWED_ELEMENT_REMOVED: "DISALLOWED_ELEMENT_REMOVED",
151
+ INVALID_ATTRIBUTE_VALUE_REMOVED: "INVALID_ATTRIBUTE_VALUE_REMOVED",
1696
152
  };
1697
-
1698
- // src/commands/CreateUserCommand.ts
1699
-
1700
-
1701
-
1702
- var CreateUserCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1703
- return [
1704
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1705
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1706
- ];
1707
- }).s("mq", "CreateUser", {}).n("MqClient", "CreateUserCommand").f(void 0, void 0).ser(se_CreateUserCommand).de(de_CreateUserCommand).build() {
1708
- static {
1709
- __name(this, "CreateUserCommand");
1710
- }
153
+ const ChangeType = {
154
+ CREATE: "CREATE",
155
+ DELETE: "DELETE",
156
+ UPDATE: "UPDATE",
1711
157
  };
1712
-
1713
- // src/commands/DeleteBrokerCommand.ts
1714
-
1715
-
1716
-
1717
- var DeleteBrokerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1718
- return [
1719
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1720
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1721
- ];
1722
- }).s("mq", "DeleteBroker", {}).n("MqClient", "DeleteBrokerCommand").f(void 0, void 0).ser(se_DeleteBrokerCommand).de(de_DeleteBrokerCommand).build() {
1723
- static {
1724
- __name(this, "DeleteBrokerCommand");
1725
- }
158
+ class BadRequestException extends MqServiceException {
159
+ name = "BadRequestException";
160
+ $fault = "client";
161
+ ErrorAttribute;
162
+ Message;
163
+ constructor(opts) {
164
+ super({
165
+ name: "BadRequestException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, BadRequestException.prototype);
170
+ this.ErrorAttribute = opts.ErrorAttribute;
171
+ this.Message = opts.Message;
172
+ }
173
+ }
174
+ class ConflictException extends MqServiceException {
175
+ name = "ConflictException";
176
+ $fault = "client";
177
+ ErrorAttribute;
178
+ Message;
179
+ constructor(opts) {
180
+ super({
181
+ name: "ConflictException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, ConflictException.prototype);
186
+ this.ErrorAttribute = opts.ErrorAttribute;
187
+ this.Message = opts.Message;
188
+ }
189
+ }
190
+ const DataReplicationMode = {
191
+ CRDR: "CRDR",
192
+ NONE: "NONE",
1726
193
  };
1727
-
1728
- // src/commands/DeleteConfigurationCommand.ts
1729
-
1730
-
1731
-
1732
- var DeleteConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1733
- return [
1734
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1735
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1736
- ];
1737
- }).s("mq", "DeleteConfiguration", {}).n("MqClient", "DeleteConfigurationCommand").f(void 0, void 0).ser(se_DeleteConfigurationCommand).de(de_DeleteConfigurationCommand).build() {
1738
- static {
1739
- __name(this, "DeleteConfigurationCommand");
1740
- }
194
+ const DayOfWeek = {
195
+ FRIDAY: "FRIDAY",
196
+ MONDAY: "MONDAY",
197
+ SATURDAY: "SATURDAY",
198
+ SUNDAY: "SUNDAY",
199
+ THURSDAY: "THURSDAY",
200
+ TUESDAY: "TUESDAY",
201
+ WEDNESDAY: "WEDNESDAY",
1741
202
  };
1742
-
1743
- // src/commands/DeleteTagsCommand.ts
1744
-
1745
-
1746
-
1747
- var DeleteTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1748
- return [
1749
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1750
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1751
- ];
1752
- }).s("mq", "DeleteTags", {}).n("MqClient", "DeleteTagsCommand").f(void 0, void 0).ser(se_DeleteTagsCommand).de(de_DeleteTagsCommand).build() {
1753
- static {
1754
- __name(this, "DeleteTagsCommand");
1755
- }
203
+ class ForbiddenException extends MqServiceException {
204
+ name = "ForbiddenException";
205
+ $fault = "client";
206
+ ErrorAttribute;
207
+ Message;
208
+ constructor(opts) {
209
+ super({
210
+ name: "ForbiddenException",
211
+ $fault: "client",
212
+ ...opts,
213
+ });
214
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
215
+ this.ErrorAttribute = opts.ErrorAttribute;
216
+ this.Message = opts.Message;
217
+ }
218
+ }
219
+ class InternalServerErrorException extends MqServiceException {
220
+ name = "InternalServerErrorException";
221
+ $fault = "server";
222
+ ErrorAttribute;
223
+ Message;
224
+ constructor(opts) {
225
+ super({
226
+ name: "InternalServerErrorException",
227
+ $fault: "server",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
231
+ this.ErrorAttribute = opts.ErrorAttribute;
232
+ this.Message = opts.Message;
233
+ }
234
+ }
235
+ class UnauthorizedException extends MqServiceException {
236
+ name = "UnauthorizedException";
237
+ $fault = "client";
238
+ ErrorAttribute;
239
+ Message;
240
+ constructor(opts) {
241
+ super({
242
+ name: "UnauthorizedException",
243
+ $fault: "client",
244
+ ...opts,
245
+ });
246
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
247
+ this.ErrorAttribute = opts.ErrorAttribute;
248
+ this.Message = opts.Message;
249
+ }
250
+ }
251
+ class NotFoundException extends MqServiceException {
252
+ name = "NotFoundException";
253
+ $fault = "client";
254
+ ErrorAttribute;
255
+ Message;
256
+ constructor(opts) {
257
+ super({
258
+ name: "NotFoundException",
259
+ $fault: "client",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, NotFoundException.prototype);
263
+ this.ErrorAttribute = opts.ErrorAttribute;
264
+ this.Message = opts.Message;
265
+ }
266
+ }
267
+ const PromoteMode = {
268
+ FAILOVER: "FAILOVER",
269
+ SWITCHOVER: "SWITCHOVER",
1756
270
  };
1757
271
 
1758
- // src/commands/DeleteUserCommand.ts
1759
-
1760
-
1761
-
1762
- var DeleteUserCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1763
- return [
1764
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1765
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1766
- ];
1767
- }).s("mq", "DeleteUser", {}).n("MqClient", "DeleteUserCommand").f(void 0, void 0).ser(se_DeleteUserCommand).de(de_DeleteUserCommand).build() {
1768
- static {
1769
- __name(this, "DeleteUserCommand");
1770
- }
272
+ const se_CreateBrokerCommand = async (input, context) => {
273
+ const b = core.requestBuilder(input, context);
274
+ const headers = {
275
+ "content-type": "application/json",
276
+ };
277
+ b.bp("/v1/brokers");
278
+ let body;
279
+ body = JSON.stringify(smithyClient.take(input, {
280
+ authenticationStrategy: [, , `AuthenticationStrategy`],
281
+ autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
282
+ brokerName: [, , `BrokerName`],
283
+ configuration: [, (_) => se_ConfigurationId(_), `Configuration`],
284
+ creatorRequestId: [true, (_) => _ ?? uuid.v4(), `CreatorRequestId`],
285
+ dataReplicationMode: [, , `DataReplicationMode`],
286
+ dataReplicationPrimaryBrokerArn: [, , `DataReplicationPrimaryBrokerArn`],
287
+ deploymentMode: [, , `DeploymentMode`],
288
+ encryptionOptions: [, (_) => se_EncryptionOptions(_), `EncryptionOptions`],
289
+ engineType: [, , `EngineType`],
290
+ engineVersion: [, , `EngineVersion`],
291
+ hostInstanceType: [, , `HostInstanceType`],
292
+ ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_), `LdapServerMetadata`],
293
+ logs: [, (_) => se_Logs(_), `Logs`],
294
+ maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_), `MaintenanceWindowStartTime`],
295
+ publiclyAccessible: [, , `PubliclyAccessible`],
296
+ securityGroups: [, (_) => smithyClient._json(_), `SecurityGroups`],
297
+ storageType: [, , `StorageType`],
298
+ subnetIds: [, (_) => smithyClient._json(_), `SubnetIds`],
299
+ tags: [, (_) => smithyClient._json(_), `Tags`],
300
+ users: [, (_) => se___listOfUser(_), `Users`],
301
+ }));
302
+ b.m("POST").h(headers).b(body);
303
+ return b.build();
1771
304
  };
1772
-
1773
- // src/commands/DescribeBrokerCommand.ts
1774
-
1775
-
1776
-
1777
- var DescribeBrokerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1778
- return [
1779
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1780
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1781
- ];
1782
- }).s("mq", "DescribeBroker", {}).n("MqClient", "DescribeBrokerCommand").f(void 0, void 0).ser(se_DescribeBrokerCommand).de(de_DescribeBrokerCommand).build() {
1783
- static {
1784
- __name(this, "DescribeBrokerCommand");
1785
- }
305
+ const se_CreateConfigurationCommand = async (input, context) => {
306
+ const b = core.requestBuilder(input, context);
307
+ const headers = {
308
+ "content-type": "application/json",
309
+ };
310
+ b.bp("/v1/configurations");
311
+ let body;
312
+ body = JSON.stringify(smithyClient.take(input, {
313
+ authenticationStrategy: [, , `AuthenticationStrategy`],
314
+ engineType: [, , `EngineType`],
315
+ engineVersion: [, , `EngineVersion`],
316
+ name: [, , `Name`],
317
+ tags: [, (_) => smithyClient._json(_), `Tags`],
318
+ }));
319
+ b.m("POST").h(headers).b(body);
320
+ return b.build();
1786
321
  };
1787
-
1788
- // src/commands/DescribeBrokerEngineTypesCommand.ts
1789
-
1790
-
1791
-
1792
- var DescribeBrokerEngineTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1793
- return [
1794
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1795
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1796
- ];
1797
- }).s("mq", "DescribeBrokerEngineTypes", {}).n("MqClient", "DescribeBrokerEngineTypesCommand").f(void 0, void 0).ser(se_DescribeBrokerEngineTypesCommand).de(de_DescribeBrokerEngineTypesCommand).build() {
1798
- static {
1799
- __name(this, "DescribeBrokerEngineTypesCommand");
1800
- }
322
+ const se_CreateTagsCommand = async (input, context) => {
323
+ const b = core.requestBuilder(input, context);
324
+ const headers = {
325
+ "content-type": "application/json",
326
+ };
327
+ b.bp("/v1/tags/{ResourceArn}");
328
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
329
+ let body;
330
+ body = JSON.stringify(smithyClient.take(input, {
331
+ tags: [, (_) => smithyClient._json(_), `Tags`],
332
+ }));
333
+ b.m("POST").h(headers).b(body);
334
+ return b.build();
1801
335
  };
1802
-
1803
- // src/commands/DescribeBrokerInstanceOptionsCommand.ts
1804
-
1805
-
1806
-
1807
- var DescribeBrokerInstanceOptionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1808
- return [
1809
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1810
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1811
- ];
1812
- }).s("mq", "DescribeBrokerInstanceOptions", {}).n("MqClient", "DescribeBrokerInstanceOptionsCommand").f(void 0, void 0).ser(se_DescribeBrokerInstanceOptionsCommand).de(de_DescribeBrokerInstanceOptionsCommand).build() {
1813
- static {
1814
- __name(this, "DescribeBrokerInstanceOptionsCommand");
1815
- }
336
+ const se_CreateUserCommand = async (input, context) => {
337
+ const b = core.requestBuilder(input, context);
338
+ const headers = {
339
+ "content-type": "application/json",
340
+ };
341
+ b.bp("/v1/brokers/{BrokerId}/users/{Username}");
342
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
343
+ b.p("Username", () => input.Username, "{Username}", false);
344
+ let body;
345
+ body = JSON.stringify(smithyClient.take(input, {
346
+ consoleAccess: [, , `ConsoleAccess`],
347
+ groups: [, (_) => smithyClient._json(_), `Groups`],
348
+ password: [, , `Password`],
349
+ replicationUser: [, , `ReplicationUser`],
350
+ }));
351
+ b.m("POST").h(headers).b(body);
352
+ return b.build();
1816
353
  };
1817
-
1818
- // src/commands/DescribeConfigurationCommand.ts
1819
-
1820
-
1821
-
1822
- var DescribeConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1823
- return [
1824
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1825
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1826
- ];
1827
- }).s("mq", "DescribeConfiguration", {}).n("MqClient", "DescribeConfigurationCommand").f(void 0, void 0).ser(se_DescribeConfigurationCommand).de(de_DescribeConfigurationCommand).build() {
1828
- static {
1829
- __name(this, "DescribeConfigurationCommand");
1830
- }
354
+ const se_DeleteBrokerCommand = async (input, context) => {
355
+ const b = core.requestBuilder(input, context);
356
+ const headers = {};
357
+ b.bp("/v1/brokers/{BrokerId}");
358
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
359
+ let body;
360
+ b.m("DELETE").h(headers).b(body);
361
+ return b.build();
1831
362
  };
1832
-
1833
- // src/commands/DescribeConfigurationRevisionCommand.ts
1834
-
1835
-
1836
-
1837
- var DescribeConfigurationRevisionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1838
- return [
1839
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1840
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1841
- ];
1842
- }).s("mq", "DescribeConfigurationRevision", {}).n("MqClient", "DescribeConfigurationRevisionCommand").f(void 0, void 0).ser(se_DescribeConfigurationRevisionCommand).de(de_DescribeConfigurationRevisionCommand).build() {
1843
- static {
1844
- __name(this, "DescribeConfigurationRevisionCommand");
1845
- }
363
+ const se_DeleteConfigurationCommand = async (input, context) => {
364
+ const b = core.requestBuilder(input, context);
365
+ const headers = {};
366
+ b.bp("/v1/configurations/{ConfigurationId}");
367
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
368
+ let body;
369
+ b.m("DELETE").h(headers).b(body);
370
+ return b.build();
1846
371
  };
1847
-
1848
- // src/commands/DescribeUserCommand.ts
1849
-
1850
-
1851
-
1852
- var DescribeUserCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1853
- return [
1854
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1855
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1856
- ];
1857
- }).s("mq", "DescribeUser", {}).n("MqClient", "DescribeUserCommand").f(void 0, void 0).ser(se_DescribeUserCommand).de(de_DescribeUserCommand).build() {
1858
- static {
1859
- __name(this, "DescribeUserCommand");
1860
- }
372
+ const se_DeleteTagsCommand = async (input, context) => {
373
+ const b = core.requestBuilder(input, context);
374
+ const headers = {};
375
+ b.bp("/v1/tags/{ResourceArn}");
376
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
377
+ const query = smithyClient.map({
378
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
379
+ });
380
+ let body;
381
+ b.m("DELETE").h(headers).q(query).b(body);
382
+ return b.build();
1861
383
  };
1862
-
1863
- // src/commands/ListBrokersCommand.ts
1864
-
1865
-
1866
-
1867
- var ListBrokersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1868
- return [
1869
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1870
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1871
- ];
1872
- }).s("mq", "ListBrokers", {}).n("MqClient", "ListBrokersCommand").f(void 0, void 0).ser(se_ListBrokersCommand).de(de_ListBrokersCommand).build() {
1873
- static {
1874
- __name(this, "ListBrokersCommand");
1875
- }
384
+ const se_DeleteUserCommand = async (input, context) => {
385
+ const b = core.requestBuilder(input, context);
386
+ const headers = {};
387
+ b.bp("/v1/brokers/{BrokerId}/users/{Username}");
388
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
389
+ b.p("Username", () => input.Username, "{Username}", false);
390
+ let body;
391
+ b.m("DELETE").h(headers).b(body);
392
+ return b.build();
1876
393
  };
1877
-
1878
- // src/commands/ListConfigurationRevisionsCommand.ts
1879
-
1880
-
1881
-
1882
- var ListConfigurationRevisionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1883
- return [
1884
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1885
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1886
- ];
1887
- }).s("mq", "ListConfigurationRevisions", {}).n("MqClient", "ListConfigurationRevisionsCommand").f(void 0, void 0).ser(se_ListConfigurationRevisionsCommand).de(de_ListConfigurationRevisionsCommand).build() {
1888
- static {
1889
- __name(this, "ListConfigurationRevisionsCommand");
1890
- }
394
+ const se_DescribeBrokerCommand = async (input, context) => {
395
+ const b = core.requestBuilder(input, context);
396
+ const headers = {};
397
+ b.bp("/v1/brokers/{BrokerId}");
398
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
399
+ let body;
400
+ b.m("GET").h(headers).b(body);
401
+ return b.build();
1891
402
  };
1892
-
1893
- // src/commands/ListConfigurationsCommand.ts
1894
-
1895
-
1896
-
1897
- var ListConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1898
- return [
1899
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1900
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1901
- ];
1902
- }).s("mq", "ListConfigurations", {}).n("MqClient", "ListConfigurationsCommand").f(void 0, void 0).ser(se_ListConfigurationsCommand).de(de_ListConfigurationsCommand).build() {
1903
- static {
1904
- __name(this, "ListConfigurationsCommand");
1905
- }
403
+ const se_DescribeBrokerEngineTypesCommand = async (input, context) => {
404
+ const b = core.requestBuilder(input, context);
405
+ const headers = {};
406
+ b.bp("/v1/broker-engine-types");
407
+ const query = smithyClient.map({
408
+ [_eT]: [, input[_ET]],
409
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
410
+ [_nT]: [, input[_NT]],
411
+ });
412
+ let body;
413
+ b.m("GET").h(headers).q(query).b(body);
414
+ return b.build();
1906
415
  };
1907
-
1908
- // src/commands/ListTagsCommand.ts
1909
-
1910
-
1911
-
1912
- var ListTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1913
- return [
1914
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1915
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1916
- ];
1917
- }).s("mq", "ListTags", {}).n("MqClient", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
1918
- static {
1919
- __name(this, "ListTagsCommand");
1920
- }
416
+ const se_DescribeBrokerInstanceOptionsCommand = async (input, context) => {
417
+ const b = core.requestBuilder(input, context);
418
+ const headers = {};
419
+ b.bp("/v1/broker-instance-options");
420
+ const query = smithyClient.map({
421
+ [_eT]: [, input[_ET]],
422
+ [_hIT]: [, input[_HIT]],
423
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
424
+ [_nT]: [, input[_NT]],
425
+ [_sT]: [, input[_ST]],
426
+ });
427
+ let body;
428
+ b.m("GET").h(headers).q(query).b(body);
429
+ return b.build();
1921
430
  };
1922
-
1923
- // src/commands/ListUsersCommand.ts
1924
-
1925
-
1926
-
1927
- var ListUsersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1928
- return [
1929
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1930
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1931
- ];
1932
- }).s("mq", "ListUsers", {}).n("MqClient", "ListUsersCommand").f(void 0, void 0).ser(se_ListUsersCommand).de(de_ListUsersCommand).build() {
1933
- static {
1934
- __name(this, "ListUsersCommand");
1935
- }
431
+ const se_DescribeConfigurationCommand = async (input, context) => {
432
+ const b = core.requestBuilder(input, context);
433
+ const headers = {};
434
+ b.bp("/v1/configurations/{ConfigurationId}");
435
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
436
+ let body;
437
+ b.m("GET").h(headers).b(body);
438
+ return b.build();
1936
439
  };
1937
-
1938
- // src/commands/PromoteCommand.ts
1939
-
1940
-
1941
-
1942
- var PromoteCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1943
- return [
1944
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1945
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1946
- ];
1947
- }).s("mq", "Promote", {}).n("MqClient", "PromoteCommand").f(void 0, void 0).ser(se_PromoteCommand).de(de_PromoteCommand).build() {
1948
- static {
1949
- __name(this, "PromoteCommand");
1950
- }
440
+ const se_DescribeConfigurationRevisionCommand = async (input, context) => {
441
+ const b = core.requestBuilder(input, context);
442
+ const headers = {};
443
+ b.bp("/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}");
444
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
445
+ b.p("ConfigurationRevision", () => input.ConfigurationRevision, "{ConfigurationRevision}", false);
446
+ let body;
447
+ b.m("GET").h(headers).b(body);
448
+ return b.build();
1951
449
  };
1952
-
1953
- // src/commands/RebootBrokerCommand.ts
1954
-
1955
-
1956
-
1957
- var RebootBrokerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1958
- return [
1959
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1960
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1961
- ];
1962
- }).s("mq", "RebootBroker", {}).n("MqClient", "RebootBrokerCommand").f(void 0, void 0).ser(se_RebootBrokerCommand).de(de_RebootBrokerCommand).build() {
1963
- static {
1964
- __name(this, "RebootBrokerCommand");
1965
- }
450
+ const se_DescribeUserCommand = async (input, context) => {
451
+ const b = core.requestBuilder(input, context);
452
+ const headers = {};
453
+ b.bp("/v1/brokers/{BrokerId}/users/{Username}");
454
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
455
+ b.p("Username", () => input.Username, "{Username}", false);
456
+ let body;
457
+ b.m("GET").h(headers).b(body);
458
+ return b.build();
1966
459
  };
1967
-
1968
- // src/commands/UpdateBrokerCommand.ts
1969
-
1970
-
1971
-
1972
- var UpdateBrokerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1973
- return [
1974
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1975
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1976
- ];
1977
- }).s("mq", "UpdateBroker", {}).n("MqClient", "UpdateBrokerCommand").f(void 0, void 0).ser(se_UpdateBrokerCommand).de(de_UpdateBrokerCommand).build() {
1978
- static {
1979
- __name(this, "UpdateBrokerCommand");
1980
- }
460
+ const se_ListBrokersCommand = async (input, context) => {
461
+ const b = core.requestBuilder(input, context);
462
+ const headers = {};
463
+ b.bp("/v1/brokers");
464
+ const query = smithyClient.map({
465
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
466
+ [_nT]: [, input[_NT]],
467
+ });
468
+ let body;
469
+ b.m("GET").h(headers).q(query).b(body);
470
+ return b.build();
1981
471
  };
1982
-
1983
- // src/commands/UpdateConfigurationCommand.ts
1984
-
1985
-
1986
-
1987
- var UpdateConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1988
- return [
1989
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1990
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1991
- ];
1992
- }).s("mq", "UpdateConfiguration", {}).n("MqClient", "UpdateConfigurationCommand").f(void 0, void 0).ser(se_UpdateConfigurationCommand).de(de_UpdateConfigurationCommand).build() {
1993
- static {
1994
- __name(this, "UpdateConfigurationCommand");
1995
- }
472
+ const se_ListConfigurationRevisionsCommand = async (input, context) => {
473
+ const b = core.requestBuilder(input, context);
474
+ const headers = {};
475
+ b.bp("/v1/configurations/{ConfigurationId}/revisions");
476
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
477
+ const query = smithyClient.map({
478
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
479
+ [_nT]: [, input[_NT]],
480
+ });
481
+ let body;
482
+ b.m("GET").h(headers).q(query).b(body);
483
+ return b.build();
1996
484
  };
1997
-
1998
- // src/commands/UpdateUserCommand.ts
1999
-
2000
-
2001
-
2002
- var UpdateUserCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2003
- return [
2004
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2005
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2006
- ];
2007
- }).s("mq", "UpdateUser", {}).n("MqClient", "UpdateUserCommand").f(void 0, void 0).ser(se_UpdateUserCommand).de(de_UpdateUserCommand).build() {
2008
- static {
2009
- __name(this, "UpdateUserCommand");
2010
- }
485
+ const se_ListConfigurationsCommand = async (input, context) => {
486
+ const b = core.requestBuilder(input, context);
487
+ const headers = {};
488
+ b.bp("/v1/configurations");
489
+ const query = smithyClient.map({
490
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
491
+ [_nT]: [, input[_NT]],
492
+ });
493
+ let body;
494
+ b.m("GET").h(headers).q(query).b(body);
495
+ return b.build();
2011
496
  };
497
+ const se_ListTagsCommand = async (input, context) => {
498
+ const b = core.requestBuilder(input, context);
499
+ const headers = {};
500
+ b.bp("/v1/tags/{ResourceArn}");
501
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
502
+ let body;
503
+ b.m("GET").h(headers).b(body);
504
+ return b.build();
505
+ };
506
+ const se_ListUsersCommand = async (input, context) => {
507
+ const b = core.requestBuilder(input, context);
508
+ const headers = {};
509
+ b.bp("/v1/brokers/{BrokerId}/users");
510
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
511
+ const query = smithyClient.map({
512
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
513
+ [_nT]: [, input[_NT]],
514
+ });
515
+ let body;
516
+ b.m("GET").h(headers).q(query).b(body);
517
+ return b.build();
518
+ };
519
+ const se_PromoteCommand = async (input, context) => {
520
+ const b = core.requestBuilder(input, context);
521
+ const headers = {
522
+ "content-type": "application/json",
523
+ };
524
+ b.bp("/v1/brokers/{BrokerId}/promote");
525
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
526
+ let body;
527
+ body = JSON.stringify(smithyClient.take(input, {
528
+ mode: [, , `Mode`],
529
+ }));
530
+ b.m("POST").h(headers).b(body);
531
+ return b.build();
532
+ };
533
+ const se_RebootBrokerCommand = async (input, context) => {
534
+ const b = core.requestBuilder(input, context);
535
+ const headers = {};
536
+ b.bp("/v1/brokers/{BrokerId}/reboot");
537
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
538
+ let body;
539
+ b.m("POST").h(headers).b(body);
540
+ return b.build();
541
+ };
542
+ const se_UpdateBrokerCommand = async (input, context) => {
543
+ const b = core.requestBuilder(input, context);
544
+ const headers = {
545
+ "content-type": "application/json",
546
+ };
547
+ b.bp("/v1/brokers/{BrokerId}");
548
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
549
+ let body;
550
+ body = JSON.stringify(smithyClient.take(input, {
551
+ authenticationStrategy: [, , `AuthenticationStrategy`],
552
+ autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
553
+ configuration: [, (_) => se_ConfigurationId(_), `Configuration`],
554
+ dataReplicationMode: [, , `DataReplicationMode`],
555
+ engineVersion: [, , `EngineVersion`],
556
+ hostInstanceType: [, , `HostInstanceType`],
557
+ ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_), `LdapServerMetadata`],
558
+ logs: [, (_) => se_Logs(_), `Logs`],
559
+ maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_), `MaintenanceWindowStartTime`],
560
+ securityGroups: [, (_) => smithyClient._json(_), `SecurityGroups`],
561
+ }));
562
+ b.m("PUT").h(headers).b(body);
563
+ return b.build();
564
+ };
565
+ const se_UpdateConfigurationCommand = async (input, context) => {
566
+ const b = core.requestBuilder(input, context);
567
+ const headers = {
568
+ "content-type": "application/json",
569
+ };
570
+ b.bp("/v1/configurations/{ConfigurationId}");
571
+ b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
572
+ let body;
573
+ body = JSON.stringify(smithyClient.take(input, {
574
+ data: [, , `Data`],
575
+ description: [, , `Description`],
576
+ }));
577
+ b.m("PUT").h(headers).b(body);
578
+ return b.build();
579
+ };
580
+ const se_UpdateUserCommand = async (input, context) => {
581
+ const b = core.requestBuilder(input, context);
582
+ const headers = {
583
+ "content-type": "application/json",
584
+ };
585
+ b.bp("/v1/brokers/{BrokerId}/users/{Username}");
586
+ b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
587
+ b.p("Username", () => input.Username, "{Username}", false);
588
+ let body;
589
+ body = JSON.stringify(smithyClient.take(input, {
590
+ consoleAccess: [, , `ConsoleAccess`],
591
+ groups: [, (_) => smithyClient._json(_), `Groups`],
592
+ password: [, , `Password`],
593
+ replicationUser: [, , `ReplicationUser`],
594
+ }));
595
+ b.m("PUT").h(headers).b(body);
596
+ return b.build();
597
+ };
598
+ const de_CreateBrokerCommand = async (output, context) => {
599
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
600
+ return de_CommandError(output, context);
601
+ }
602
+ const contents = smithyClient.map({
603
+ $metadata: deserializeMetadata(output),
604
+ });
605
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
606
+ const doc = smithyClient.take(data, {
607
+ BrokerArn: [, smithyClient.expectString, `brokerArn`],
608
+ BrokerId: [, smithyClient.expectString, `brokerId`],
609
+ });
610
+ Object.assign(contents, doc);
611
+ return contents;
612
+ };
613
+ const de_CreateConfigurationCommand = async (output, context) => {
614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
615
+ return de_CommandError(output, context);
616
+ }
617
+ const contents = smithyClient.map({
618
+ $metadata: deserializeMetadata(output),
619
+ });
620
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
621
+ const doc = smithyClient.take(data, {
622
+ Arn: [, smithyClient.expectString, `arn`],
623
+ AuthenticationStrategy: [, smithyClient.expectString, `authenticationStrategy`],
624
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
625
+ Id: [, smithyClient.expectString, `id`],
626
+ LatestRevision: [, (_) => de_ConfigurationRevision(_), `latestRevision`],
627
+ Name: [, smithyClient.expectString, `name`],
628
+ });
629
+ Object.assign(contents, doc);
630
+ return contents;
631
+ };
632
+ const de_CreateTagsCommand = async (output, context) => {
633
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
634
+ return de_CommandError(output, context);
635
+ }
636
+ const contents = smithyClient.map({
637
+ $metadata: deserializeMetadata(output),
638
+ });
639
+ await smithyClient.collectBody(output.body, context);
640
+ return contents;
641
+ };
642
+ const de_CreateUserCommand = async (output, context) => {
643
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
644
+ return de_CommandError(output, context);
645
+ }
646
+ const contents = smithyClient.map({
647
+ $metadata: deserializeMetadata(output),
648
+ });
649
+ await smithyClient.collectBody(output.body, context);
650
+ return contents;
651
+ };
652
+ const de_DeleteBrokerCommand = async (output, context) => {
653
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
654
+ return de_CommandError(output, context);
655
+ }
656
+ const contents = smithyClient.map({
657
+ $metadata: deserializeMetadata(output),
658
+ });
659
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
660
+ const doc = smithyClient.take(data, {
661
+ BrokerId: [, smithyClient.expectString, `brokerId`],
662
+ });
663
+ Object.assign(contents, doc);
664
+ return contents;
665
+ };
666
+ const de_DeleteConfigurationCommand = async (output, context) => {
667
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
668
+ return de_CommandError(output, context);
669
+ }
670
+ const contents = smithyClient.map({
671
+ $metadata: deserializeMetadata(output),
672
+ });
673
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
674
+ const doc = smithyClient.take(data, {
675
+ ConfigurationId: [, smithyClient.expectString, `configurationId`],
676
+ });
677
+ Object.assign(contents, doc);
678
+ return contents;
679
+ };
680
+ const de_DeleteTagsCommand = async (output, context) => {
681
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
682
+ return de_CommandError(output, context);
683
+ }
684
+ const contents = smithyClient.map({
685
+ $metadata: deserializeMetadata(output),
686
+ });
687
+ await smithyClient.collectBody(output.body, context);
688
+ return contents;
689
+ };
690
+ const de_DeleteUserCommand = async (output, context) => {
691
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
692
+ return de_CommandError(output, context);
693
+ }
694
+ const contents = smithyClient.map({
695
+ $metadata: deserializeMetadata(output),
696
+ });
697
+ await smithyClient.collectBody(output.body, context);
698
+ return contents;
699
+ };
700
+ const de_DescribeBrokerCommand = async (output, context) => {
701
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
702
+ return de_CommandError(output, context);
703
+ }
704
+ const contents = smithyClient.map({
705
+ $metadata: deserializeMetadata(output),
706
+ });
707
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
708
+ const doc = smithyClient.take(data, {
709
+ ActionsRequired: [, (_) => de___listOfActionRequired(_), `actionsRequired`],
710
+ AuthenticationStrategy: [, smithyClient.expectString, `authenticationStrategy`],
711
+ AutoMinorVersionUpgrade: [, smithyClient.expectBoolean, `autoMinorVersionUpgrade`],
712
+ BrokerArn: [, smithyClient.expectString, `brokerArn`],
713
+ BrokerId: [, smithyClient.expectString, `brokerId`],
714
+ BrokerInstances: [, (_) => de___listOfBrokerInstance(_), `brokerInstances`],
715
+ BrokerName: [, smithyClient.expectString, `brokerName`],
716
+ BrokerState: [, smithyClient.expectString, `brokerState`],
717
+ Configurations: [, (_) => de_Configurations(_), `configurations`],
718
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
719
+ DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_), `dataReplicationMetadata`],
720
+ DataReplicationMode: [, smithyClient.expectString, `dataReplicationMode`],
721
+ DeploymentMode: [, smithyClient.expectString, `deploymentMode`],
722
+ EncryptionOptions: [, (_) => de_EncryptionOptions(_), `encryptionOptions`],
723
+ EngineType: [, smithyClient.expectString, `engineType`],
724
+ EngineVersion: [, smithyClient.expectString, `engineVersion`],
725
+ HostInstanceType: [, smithyClient.expectString, `hostInstanceType`],
726
+ LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_), `ldapServerMetadata`],
727
+ Logs: [, (_) => de_LogsSummary(_), `logs`],
728
+ MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_), `maintenanceWindowStartTime`],
729
+ PendingAuthenticationStrategy: [, smithyClient.expectString, `pendingAuthenticationStrategy`],
730
+ PendingDataReplicationMetadata: [
731
+ ,
732
+ (_) => de_DataReplicationMetadataOutput(_),
733
+ `pendingDataReplicationMetadata`,
734
+ ],
735
+ PendingDataReplicationMode: [, smithyClient.expectString, `pendingDataReplicationMode`],
736
+ PendingEngineVersion: [, smithyClient.expectString, `pendingEngineVersion`],
737
+ PendingHostInstanceType: [, smithyClient.expectString, `pendingHostInstanceType`],
738
+ PendingLdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_), `pendingLdapServerMetadata`],
739
+ PendingSecurityGroups: [, smithyClient._json, `pendingSecurityGroups`],
740
+ PubliclyAccessible: [, smithyClient.expectBoolean, `publiclyAccessible`],
741
+ SecurityGroups: [, smithyClient._json, `securityGroups`],
742
+ StorageType: [, smithyClient.expectString, `storageType`],
743
+ SubnetIds: [, smithyClient._json, `subnetIds`],
744
+ Tags: [, smithyClient._json, `tags`],
745
+ Users: [, (_) => de___listOfUserSummary(_), `users`],
746
+ });
747
+ Object.assign(contents, doc);
748
+ return contents;
749
+ };
750
+ const de_DescribeBrokerEngineTypesCommand = async (output, context) => {
751
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
752
+ return de_CommandError(output, context);
753
+ }
754
+ const contents = smithyClient.map({
755
+ $metadata: deserializeMetadata(output),
756
+ });
757
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
758
+ const doc = smithyClient.take(data, {
759
+ BrokerEngineTypes: [, (_) => de___listOfBrokerEngineType(_), `brokerEngineTypes`],
760
+ MaxResults: [, smithyClient.expectInt32, `maxResults`],
761
+ NextToken: [, smithyClient.expectString, `nextToken`],
762
+ });
763
+ Object.assign(contents, doc);
764
+ return contents;
765
+ };
766
+ const de_DescribeBrokerInstanceOptionsCommand = async (output, context) => {
767
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
768
+ return de_CommandError(output, context);
769
+ }
770
+ const contents = smithyClient.map({
771
+ $metadata: deserializeMetadata(output),
772
+ });
773
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
774
+ const doc = smithyClient.take(data, {
775
+ BrokerInstanceOptions: [, (_) => de___listOfBrokerInstanceOption(_), `brokerInstanceOptions`],
776
+ MaxResults: [, smithyClient.expectInt32, `maxResults`],
777
+ NextToken: [, smithyClient.expectString, `nextToken`],
778
+ });
779
+ Object.assign(contents, doc);
780
+ return contents;
781
+ };
782
+ const de_DescribeConfigurationCommand = async (output, context) => {
783
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
784
+ return de_CommandError(output, context);
785
+ }
786
+ const contents = smithyClient.map({
787
+ $metadata: deserializeMetadata(output),
788
+ });
789
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
790
+ const doc = smithyClient.take(data, {
791
+ Arn: [, smithyClient.expectString, `arn`],
792
+ AuthenticationStrategy: [, smithyClient.expectString, `authenticationStrategy`],
793
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
794
+ Description: [, smithyClient.expectString, `description`],
795
+ EngineType: [, smithyClient.expectString, `engineType`],
796
+ EngineVersion: [, smithyClient.expectString, `engineVersion`],
797
+ Id: [, smithyClient.expectString, `id`],
798
+ LatestRevision: [, (_) => de_ConfigurationRevision(_), `latestRevision`],
799
+ Name: [, smithyClient.expectString, `name`],
800
+ Tags: [, smithyClient._json, `tags`],
801
+ });
802
+ Object.assign(contents, doc);
803
+ return contents;
804
+ };
805
+ const de_DescribeConfigurationRevisionCommand = async (output, context) => {
806
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
807
+ return de_CommandError(output, context);
808
+ }
809
+ const contents = smithyClient.map({
810
+ $metadata: deserializeMetadata(output),
811
+ });
812
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
813
+ const doc = smithyClient.take(data, {
814
+ ConfigurationId: [, smithyClient.expectString, `configurationId`],
815
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
816
+ Data: [, smithyClient.expectString, `data`],
817
+ Description: [, smithyClient.expectString, `description`],
818
+ });
819
+ Object.assign(contents, doc);
820
+ return contents;
821
+ };
822
+ const de_DescribeUserCommand = async (output, context) => {
823
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
824
+ return de_CommandError(output, context);
825
+ }
826
+ const contents = smithyClient.map({
827
+ $metadata: deserializeMetadata(output),
828
+ });
829
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
830
+ const doc = smithyClient.take(data, {
831
+ BrokerId: [, smithyClient.expectString, `brokerId`],
832
+ ConsoleAccess: [, smithyClient.expectBoolean, `consoleAccess`],
833
+ Groups: [, smithyClient._json, `groups`],
834
+ Pending: [, (_) => de_UserPendingChanges(_), `pending`],
835
+ ReplicationUser: [, smithyClient.expectBoolean, `replicationUser`],
836
+ Username: [, smithyClient.expectString, `username`],
837
+ });
838
+ Object.assign(contents, doc);
839
+ return contents;
840
+ };
841
+ const de_ListBrokersCommand = async (output, context) => {
842
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
843
+ return de_CommandError(output, context);
844
+ }
845
+ const contents = smithyClient.map({
846
+ $metadata: deserializeMetadata(output),
847
+ });
848
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
849
+ const doc = smithyClient.take(data, {
850
+ BrokerSummaries: [, (_) => de___listOfBrokerSummary(_), `brokerSummaries`],
851
+ NextToken: [, smithyClient.expectString, `nextToken`],
852
+ });
853
+ Object.assign(contents, doc);
854
+ return contents;
855
+ };
856
+ const de_ListConfigurationRevisionsCommand = async (output, context) => {
857
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
858
+ return de_CommandError(output, context);
859
+ }
860
+ const contents = smithyClient.map({
861
+ $metadata: deserializeMetadata(output),
862
+ });
863
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
864
+ const doc = smithyClient.take(data, {
865
+ ConfigurationId: [, smithyClient.expectString, `configurationId`],
866
+ MaxResults: [, smithyClient.expectInt32, `maxResults`],
867
+ NextToken: [, smithyClient.expectString, `nextToken`],
868
+ Revisions: [, (_) => de___listOfConfigurationRevision(_), `revisions`],
869
+ });
870
+ Object.assign(contents, doc);
871
+ return contents;
872
+ };
873
+ const de_ListConfigurationsCommand = async (output, context) => {
874
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
875
+ return de_CommandError(output, context);
876
+ }
877
+ const contents = smithyClient.map({
878
+ $metadata: deserializeMetadata(output),
879
+ });
880
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
881
+ const doc = smithyClient.take(data, {
882
+ Configurations: [, (_) => de___listOfConfiguration(_), `configurations`],
883
+ MaxResults: [, smithyClient.expectInt32, `maxResults`],
884
+ NextToken: [, smithyClient.expectString, `nextToken`],
885
+ });
886
+ Object.assign(contents, doc);
887
+ return contents;
888
+ };
889
+ const de_ListTagsCommand = async (output, context) => {
890
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
891
+ return de_CommandError(output, context);
892
+ }
893
+ const contents = smithyClient.map({
894
+ $metadata: deserializeMetadata(output),
895
+ });
896
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
897
+ const doc = smithyClient.take(data, {
898
+ Tags: [, smithyClient._json, `tags`],
899
+ });
900
+ Object.assign(contents, doc);
901
+ return contents;
902
+ };
903
+ const de_ListUsersCommand = async (output, context) => {
904
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
905
+ return de_CommandError(output, context);
906
+ }
907
+ const contents = smithyClient.map({
908
+ $metadata: deserializeMetadata(output),
909
+ });
910
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
911
+ const doc = smithyClient.take(data, {
912
+ BrokerId: [, smithyClient.expectString, `brokerId`],
913
+ MaxResults: [, smithyClient.expectInt32, `maxResults`],
914
+ NextToken: [, smithyClient.expectString, `nextToken`],
915
+ Users: [, (_) => de___listOfUserSummary(_), `users`],
916
+ });
917
+ Object.assign(contents, doc);
918
+ return contents;
919
+ };
920
+ const de_PromoteCommand = async (output, context) => {
921
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
922
+ return de_CommandError(output, context);
923
+ }
924
+ const contents = smithyClient.map({
925
+ $metadata: deserializeMetadata(output),
926
+ });
927
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
928
+ const doc = smithyClient.take(data, {
929
+ BrokerId: [, smithyClient.expectString, `brokerId`],
930
+ });
931
+ Object.assign(contents, doc);
932
+ return contents;
933
+ };
934
+ const de_RebootBrokerCommand = async (output, context) => {
935
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
936
+ return de_CommandError(output, context);
937
+ }
938
+ const contents = smithyClient.map({
939
+ $metadata: deserializeMetadata(output),
940
+ });
941
+ await smithyClient.collectBody(output.body, context);
942
+ return contents;
943
+ };
944
+ const de_UpdateBrokerCommand = async (output, context) => {
945
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
946
+ return de_CommandError(output, context);
947
+ }
948
+ const contents = smithyClient.map({
949
+ $metadata: deserializeMetadata(output),
950
+ });
951
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
952
+ const doc = smithyClient.take(data, {
953
+ AuthenticationStrategy: [, smithyClient.expectString, `authenticationStrategy`],
954
+ AutoMinorVersionUpgrade: [, smithyClient.expectBoolean, `autoMinorVersionUpgrade`],
955
+ BrokerId: [, smithyClient.expectString, `brokerId`],
956
+ Configuration: [, (_) => de_ConfigurationId(_), `configuration`],
957
+ DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_), `dataReplicationMetadata`],
958
+ DataReplicationMode: [, smithyClient.expectString, `dataReplicationMode`],
959
+ EngineVersion: [, smithyClient.expectString, `engineVersion`],
960
+ HostInstanceType: [, smithyClient.expectString, `hostInstanceType`],
961
+ LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_), `ldapServerMetadata`],
962
+ Logs: [, (_) => de_Logs(_), `logs`],
963
+ MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_), `maintenanceWindowStartTime`],
964
+ PendingDataReplicationMetadata: [
965
+ ,
966
+ (_) => de_DataReplicationMetadataOutput(_),
967
+ `pendingDataReplicationMetadata`,
968
+ ],
969
+ PendingDataReplicationMode: [, smithyClient.expectString, `pendingDataReplicationMode`],
970
+ SecurityGroups: [, smithyClient._json, `securityGroups`],
971
+ });
972
+ Object.assign(contents, doc);
973
+ return contents;
974
+ };
975
+ const de_UpdateConfigurationCommand = async (output, context) => {
976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
977
+ return de_CommandError(output, context);
978
+ }
979
+ const contents = smithyClient.map({
980
+ $metadata: deserializeMetadata(output),
981
+ });
982
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
983
+ const doc = smithyClient.take(data, {
984
+ Arn: [, smithyClient.expectString, `arn`],
985
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
986
+ Id: [, smithyClient.expectString, `id`],
987
+ LatestRevision: [, (_) => de_ConfigurationRevision(_), `latestRevision`],
988
+ Name: [, smithyClient.expectString, `name`],
989
+ Warnings: [, (_) => de___listOfSanitizationWarning(_), `warnings`],
990
+ });
991
+ Object.assign(contents, doc);
992
+ return contents;
993
+ };
994
+ const de_UpdateUserCommand = async (output, context) => {
995
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
996
+ return de_CommandError(output, context);
997
+ }
998
+ const contents = smithyClient.map({
999
+ $metadata: deserializeMetadata(output),
1000
+ });
1001
+ await smithyClient.collectBody(output.body, context);
1002
+ return contents;
1003
+ };
1004
+ const de_CommandError = async (output, context) => {
1005
+ const parsedOutput = {
1006
+ ...output,
1007
+ body: await core$1.parseJsonErrorBody(output.body, context),
1008
+ };
1009
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1010
+ switch (errorCode) {
1011
+ case "BadRequestException":
1012
+ case "com.amazonaws.mq#BadRequestException":
1013
+ throw await de_BadRequestExceptionRes(parsedOutput);
1014
+ case "ConflictException":
1015
+ case "com.amazonaws.mq#ConflictException":
1016
+ throw await de_ConflictExceptionRes(parsedOutput);
1017
+ case "ForbiddenException":
1018
+ case "com.amazonaws.mq#ForbiddenException":
1019
+ throw await de_ForbiddenExceptionRes(parsedOutput);
1020
+ case "InternalServerErrorException":
1021
+ case "com.amazonaws.mq#InternalServerErrorException":
1022
+ throw await de_InternalServerErrorExceptionRes(parsedOutput);
1023
+ case "UnauthorizedException":
1024
+ case "com.amazonaws.mq#UnauthorizedException":
1025
+ throw await de_UnauthorizedExceptionRes(parsedOutput);
1026
+ case "NotFoundException":
1027
+ case "com.amazonaws.mq#NotFoundException":
1028
+ throw await de_NotFoundExceptionRes(parsedOutput);
1029
+ default:
1030
+ const parsedBody = parsedOutput.body;
1031
+ return throwDefaultError({
1032
+ output,
1033
+ parsedBody,
1034
+ errorCode,
1035
+ });
1036
+ }
1037
+ };
1038
+ const throwDefaultError = smithyClient.withBaseException(MqServiceException);
1039
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1040
+ const contents = smithyClient.map({});
1041
+ const data = parsedOutput.body;
1042
+ const doc = smithyClient.take(data, {
1043
+ ErrorAttribute: [, smithyClient.expectString, `errorAttribute`],
1044
+ Message: [, smithyClient.expectString, `message`],
1045
+ });
1046
+ Object.assign(contents, doc);
1047
+ const exception = new BadRequestException({
1048
+ $metadata: deserializeMetadata(parsedOutput),
1049
+ ...contents,
1050
+ });
1051
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1052
+ };
1053
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1054
+ const contents = smithyClient.map({});
1055
+ const data = parsedOutput.body;
1056
+ const doc = smithyClient.take(data, {
1057
+ ErrorAttribute: [, smithyClient.expectString, `errorAttribute`],
1058
+ Message: [, smithyClient.expectString, `message`],
1059
+ });
1060
+ Object.assign(contents, doc);
1061
+ const exception = new ConflictException({
1062
+ $metadata: deserializeMetadata(parsedOutput),
1063
+ ...contents,
1064
+ });
1065
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1066
+ };
1067
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1068
+ const contents = smithyClient.map({});
1069
+ const data = parsedOutput.body;
1070
+ const doc = smithyClient.take(data, {
1071
+ ErrorAttribute: [, smithyClient.expectString, `errorAttribute`],
1072
+ Message: [, smithyClient.expectString, `message`],
1073
+ });
1074
+ Object.assign(contents, doc);
1075
+ const exception = new ForbiddenException({
1076
+ $metadata: deserializeMetadata(parsedOutput),
1077
+ ...contents,
1078
+ });
1079
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1080
+ };
1081
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
1082
+ const contents = smithyClient.map({});
1083
+ const data = parsedOutput.body;
1084
+ const doc = smithyClient.take(data, {
1085
+ ErrorAttribute: [, smithyClient.expectString, `errorAttribute`],
1086
+ Message: [, smithyClient.expectString, `message`],
1087
+ });
1088
+ Object.assign(contents, doc);
1089
+ const exception = new InternalServerErrorException({
1090
+ $metadata: deserializeMetadata(parsedOutput),
1091
+ ...contents,
1092
+ });
1093
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1094
+ };
1095
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1096
+ const contents = smithyClient.map({});
1097
+ const data = parsedOutput.body;
1098
+ const doc = smithyClient.take(data, {
1099
+ ErrorAttribute: [, smithyClient.expectString, `errorAttribute`],
1100
+ Message: [, smithyClient.expectString, `message`],
1101
+ });
1102
+ Object.assign(contents, doc);
1103
+ const exception = new NotFoundException({
1104
+ $metadata: deserializeMetadata(parsedOutput),
1105
+ ...contents,
1106
+ });
1107
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1108
+ };
1109
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
1110
+ const contents = smithyClient.map({});
1111
+ const data = parsedOutput.body;
1112
+ const doc = smithyClient.take(data, {
1113
+ ErrorAttribute: [, smithyClient.expectString, `errorAttribute`],
1114
+ Message: [, smithyClient.expectString, `message`],
1115
+ });
1116
+ Object.assign(contents, doc);
1117
+ const exception = new UnauthorizedException({
1118
+ $metadata: deserializeMetadata(parsedOutput),
1119
+ ...contents,
1120
+ });
1121
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1122
+ };
1123
+ const se___listOfUser = (input, context) => {
1124
+ return input
1125
+ .filter((e) => e != null)
1126
+ .map((entry) => {
1127
+ return se_User(entry);
1128
+ });
1129
+ };
1130
+ const se_ConfigurationId = (input, context) => {
1131
+ return smithyClient.take(input, {
1132
+ id: [, , `Id`],
1133
+ revision: [, , `Revision`],
1134
+ });
1135
+ };
1136
+ const se_EncryptionOptions = (input, context) => {
1137
+ return smithyClient.take(input, {
1138
+ kmsKeyId: [, , `KmsKeyId`],
1139
+ useAwsOwnedKey: [, , `UseAwsOwnedKey`],
1140
+ });
1141
+ };
1142
+ const se_LdapServerMetadataInput = (input, context) => {
1143
+ return smithyClient.take(input, {
1144
+ hosts: [, smithyClient._json, `Hosts`],
1145
+ roleBase: [, , `RoleBase`],
1146
+ roleName: [, , `RoleName`],
1147
+ roleSearchMatching: [, , `RoleSearchMatching`],
1148
+ roleSearchSubtree: [, , `RoleSearchSubtree`],
1149
+ serviceAccountPassword: [, , `ServiceAccountPassword`],
1150
+ serviceAccountUsername: [, , `ServiceAccountUsername`],
1151
+ userBase: [, , `UserBase`],
1152
+ userRoleName: [, , `UserRoleName`],
1153
+ userSearchMatching: [, , `UserSearchMatching`],
1154
+ userSearchSubtree: [, , `UserSearchSubtree`],
1155
+ });
1156
+ };
1157
+ const se_Logs = (input, context) => {
1158
+ return smithyClient.take(input, {
1159
+ audit: [, , `Audit`],
1160
+ general: [, , `General`],
1161
+ });
1162
+ };
1163
+ const se_User = (input, context) => {
1164
+ return smithyClient.take(input, {
1165
+ consoleAccess: [, , `ConsoleAccess`],
1166
+ groups: [, smithyClient._json, `Groups`],
1167
+ password: [, , `Password`],
1168
+ replicationUser: [, , `ReplicationUser`],
1169
+ username: [, , `Username`],
1170
+ });
1171
+ };
1172
+ const se_WeeklyStartTime = (input, context) => {
1173
+ return smithyClient.take(input, {
1174
+ dayOfWeek: [, , `DayOfWeek`],
1175
+ timeOfDay: [, , `TimeOfDay`],
1176
+ timeZone: [, , `TimeZone`],
1177
+ });
1178
+ };
1179
+ const de___listOfActionRequired = (output, context) => {
1180
+ const retVal = (output || [])
1181
+ .filter((e) => e != null)
1182
+ .map((entry) => {
1183
+ return de_ActionRequired(entry);
1184
+ });
1185
+ return retVal;
1186
+ };
1187
+ const de___listOfAvailabilityZone = (output, context) => {
1188
+ const retVal = (output || [])
1189
+ .filter((e) => e != null)
1190
+ .map((entry) => {
1191
+ return de_AvailabilityZone(entry);
1192
+ });
1193
+ return retVal;
1194
+ };
1195
+ const de___listOfBrokerEngineType = (output, context) => {
1196
+ const retVal = (output || [])
1197
+ .filter((e) => e != null)
1198
+ .map((entry) => {
1199
+ return de_BrokerEngineType(entry);
1200
+ });
1201
+ return retVal;
1202
+ };
1203
+ const de___listOfBrokerInstance = (output, context) => {
1204
+ const retVal = (output || [])
1205
+ .filter((e) => e != null)
1206
+ .map((entry) => {
1207
+ return de_BrokerInstance(entry);
1208
+ });
1209
+ return retVal;
1210
+ };
1211
+ const de___listOfBrokerInstanceOption = (output, context) => {
1212
+ const retVal = (output || [])
1213
+ .filter((e) => e != null)
1214
+ .map((entry) => {
1215
+ return de_BrokerInstanceOption(entry);
1216
+ });
1217
+ return retVal;
1218
+ };
1219
+ const de___listOfBrokerSummary = (output, context) => {
1220
+ const retVal = (output || [])
1221
+ .filter((e) => e != null)
1222
+ .map((entry) => {
1223
+ return de_BrokerSummary(entry);
1224
+ });
1225
+ return retVal;
1226
+ };
1227
+ const de___listOfConfiguration = (output, context) => {
1228
+ const retVal = (output || [])
1229
+ .filter((e) => e != null)
1230
+ .map((entry) => {
1231
+ return de_Configuration(entry);
1232
+ });
1233
+ return retVal;
1234
+ };
1235
+ const de___listOfConfigurationId = (output, context) => {
1236
+ const retVal = (output || [])
1237
+ .filter((e) => e != null)
1238
+ .map((entry) => {
1239
+ return de_ConfigurationId(entry);
1240
+ });
1241
+ return retVal;
1242
+ };
1243
+ const de___listOfConfigurationRevision = (output, context) => {
1244
+ const retVal = (output || [])
1245
+ .filter((e) => e != null)
1246
+ .map((entry) => {
1247
+ return de_ConfigurationRevision(entry);
1248
+ });
1249
+ return retVal;
1250
+ };
1251
+ const de___listOfEngineVersion = (output, context) => {
1252
+ const retVal = (output || [])
1253
+ .filter((e) => e != null)
1254
+ .map((entry) => {
1255
+ return de_EngineVersion(entry);
1256
+ });
1257
+ return retVal;
1258
+ };
1259
+ const de___listOfSanitizationWarning = (output, context) => {
1260
+ const retVal = (output || [])
1261
+ .filter((e) => e != null)
1262
+ .map((entry) => {
1263
+ return de_SanitizationWarning(entry);
1264
+ });
1265
+ return retVal;
1266
+ };
1267
+ const de___listOfUserSummary = (output, context) => {
1268
+ const retVal = (output || [])
1269
+ .filter((e) => e != null)
1270
+ .map((entry) => {
1271
+ return de_UserSummary(entry);
1272
+ });
1273
+ return retVal;
1274
+ };
1275
+ const de_ActionRequired = (output, context) => {
1276
+ return smithyClient.take(output, {
1277
+ ActionRequiredCode: [, smithyClient.expectString, `actionRequiredCode`],
1278
+ ActionRequiredInfo: [, smithyClient.expectString, `actionRequiredInfo`],
1279
+ });
1280
+ };
1281
+ const de_AvailabilityZone = (output, context) => {
1282
+ return smithyClient.take(output, {
1283
+ Name: [, smithyClient.expectString, `name`],
1284
+ });
1285
+ };
1286
+ const de_BrokerEngineType = (output, context) => {
1287
+ return smithyClient.take(output, {
1288
+ EngineType: [, smithyClient.expectString, `engineType`],
1289
+ EngineVersions: [, (_) => de___listOfEngineVersion(_), `engineVersions`],
1290
+ });
1291
+ };
1292
+ const de_BrokerInstance = (output, context) => {
1293
+ return smithyClient.take(output, {
1294
+ ConsoleURL: [, smithyClient.expectString, `consoleURL`],
1295
+ Endpoints: [, smithyClient._json, `endpoints`],
1296
+ IpAddress: [, smithyClient.expectString, `ipAddress`],
1297
+ });
1298
+ };
1299
+ const de_BrokerInstanceOption = (output, context) => {
1300
+ return smithyClient.take(output, {
1301
+ AvailabilityZones: [, (_) => de___listOfAvailabilityZone(_), `availabilityZones`],
1302
+ EngineType: [, smithyClient.expectString, `engineType`],
1303
+ HostInstanceType: [, smithyClient.expectString, `hostInstanceType`],
1304
+ StorageType: [, smithyClient.expectString, `storageType`],
1305
+ SupportedDeploymentModes: [, smithyClient._json, `supportedDeploymentModes`],
1306
+ SupportedEngineVersions: [, smithyClient._json, `supportedEngineVersions`],
1307
+ });
1308
+ };
1309
+ const de_BrokerSummary = (output, context) => {
1310
+ return smithyClient.take(output, {
1311
+ BrokerArn: [, smithyClient.expectString, `brokerArn`],
1312
+ BrokerId: [, smithyClient.expectString, `brokerId`],
1313
+ BrokerName: [, smithyClient.expectString, `brokerName`],
1314
+ BrokerState: [, smithyClient.expectString, `brokerState`],
1315
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
1316
+ DeploymentMode: [, smithyClient.expectString, `deploymentMode`],
1317
+ EngineType: [, smithyClient.expectString, `engineType`],
1318
+ HostInstanceType: [, smithyClient.expectString, `hostInstanceType`],
1319
+ });
1320
+ };
1321
+ const de_Configuration = (output, context) => {
1322
+ return smithyClient.take(output, {
1323
+ Arn: [, smithyClient.expectString, `arn`],
1324
+ AuthenticationStrategy: [, smithyClient.expectString, `authenticationStrategy`],
1325
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
1326
+ Description: [, smithyClient.expectString, `description`],
1327
+ EngineType: [, smithyClient.expectString, `engineType`],
1328
+ EngineVersion: [, smithyClient.expectString, `engineVersion`],
1329
+ Id: [, smithyClient.expectString, `id`],
1330
+ LatestRevision: [, (_) => de_ConfigurationRevision(_), `latestRevision`],
1331
+ Name: [, smithyClient.expectString, `name`],
1332
+ Tags: [, smithyClient._json, `tags`],
1333
+ });
1334
+ };
1335
+ const de_ConfigurationId = (output, context) => {
1336
+ return smithyClient.take(output, {
1337
+ Id: [, smithyClient.expectString, `id`],
1338
+ Revision: [, smithyClient.expectInt32, `revision`],
1339
+ });
1340
+ };
1341
+ const de_ConfigurationRevision = (output, context) => {
1342
+ return smithyClient.take(output, {
1343
+ Created: [, (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)), `created`],
1344
+ Description: [, smithyClient.expectString, `description`],
1345
+ Revision: [, smithyClient.expectInt32, `revision`],
1346
+ });
1347
+ };
1348
+ const de_Configurations = (output, context) => {
1349
+ return smithyClient.take(output, {
1350
+ Current: [, (_) => de_ConfigurationId(_), `current`],
1351
+ History: [, (_) => de___listOfConfigurationId(_), `history`],
1352
+ Pending: [, (_) => de_ConfigurationId(_), `pending`],
1353
+ });
1354
+ };
1355
+ const de_DataReplicationCounterpart = (output, context) => {
1356
+ return smithyClient.take(output, {
1357
+ BrokerId: [, smithyClient.expectString, `brokerId`],
1358
+ Region: [, smithyClient.expectString, `region`],
1359
+ });
1360
+ };
1361
+ const de_DataReplicationMetadataOutput = (output, context) => {
1362
+ return smithyClient.take(output, {
1363
+ DataReplicationCounterpart: [, (_) => de_DataReplicationCounterpart(_), `dataReplicationCounterpart`],
1364
+ DataReplicationRole: [, smithyClient.expectString, `dataReplicationRole`],
1365
+ });
1366
+ };
1367
+ const de_EncryptionOptions = (output, context) => {
1368
+ return smithyClient.take(output, {
1369
+ KmsKeyId: [, smithyClient.expectString, `kmsKeyId`],
1370
+ UseAwsOwnedKey: [, smithyClient.expectBoolean, `useAwsOwnedKey`],
1371
+ });
1372
+ };
1373
+ const de_EngineVersion = (output, context) => {
1374
+ return smithyClient.take(output, {
1375
+ Name: [, smithyClient.expectString, `name`],
1376
+ });
1377
+ };
1378
+ const de_LdapServerMetadataOutput = (output, context) => {
1379
+ return smithyClient.take(output, {
1380
+ Hosts: [, smithyClient._json, `hosts`],
1381
+ RoleBase: [, smithyClient.expectString, `roleBase`],
1382
+ RoleName: [, smithyClient.expectString, `roleName`],
1383
+ RoleSearchMatching: [, smithyClient.expectString, `roleSearchMatching`],
1384
+ RoleSearchSubtree: [, smithyClient.expectBoolean, `roleSearchSubtree`],
1385
+ ServiceAccountUsername: [, smithyClient.expectString, `serviceAccountUsername`],
1386
+ UserBase: [, smithyClient.expectString, `userBase`],
1387
+ UserRoleName: [, smithyClient.expectString, `userRoleName`],
1388
+ UserSearchMatching: [, smithyClient.expectString, `userSearchMatching`],
1389
+ UserSearchSubtree: [, smithyClient.expectBoolean, `userSearchSubtree`],
1390
+ });
1391
+ };
1392
+ const de_Logs = (output, context) => {
1393
+ return smithyClient.take(output, {
1394
+ Audit: [, smithyClient.expectBoolean, `audit`],
1395
+ General: [, smithyClient.expectBoolean, `general`],
1396
+ });
1397
+ };
1398
+ const de_LogsSummary = (output, context) => {
1399
+ return smithyClient.take(output, {
1400
+ Audit: [, smithyClient.expectBoolean, `audit`],
1401
+ AuditLogGroup: [, smithyClient.expectString, `auditLogGroup`],
1402
+ General: [, smithyClient.expectBoolean, `general`],
1403
+ GeneralLogGroup: [, smithyClient.expectString, `generalLogGroup`],
1404
+ Pending: [, (_) => de_PendingLogs(_), `pending`],
1405
+ });
1406
+ };
1407
+ const de_PendingLogs = (output, context) => {
1408
+ return smithyClient.take(output, {
1409
+ Audit: [, smithyClient.expectBoolean, `audit`],
1410
+ General: [, smithyClient.expectBoolean, `general`],
1411
+ });
1412
+ };
1413
+ const de_SanitizationWarning = (output, context) => {
1414
+ return smithyClient.take(output, {
1415
+ AttributeName: [, smithyClient.expectString, `attributeName`],
1416
+ ElementName: [, smithyClient.expectString, `elementName`],
1417
+ Reason: [, smithyClient.expectString, `reason`],
1418
+ });
1419
+ };
1420
+ const de_UserPendingChanges = (output, context) => {
1421
+ return smithyClient.take(output, {
1422
+ ConsoleAccess: [, smithyClient.expectBoolean, `consoleAccess`],
1423
+ Groups: [, smithyClient._json, `groups`],
1424
+ PendingChange: [, smithyClient.expectString, `pendingChange`],
1425
+ });
1426
+ };
1427
+ const de_UserSummary = (output, context) => {
1428
+ return smithyClient.take(output, {
1429
+ PendingChange: [, smithyClient.expectString, `pendingChange`],
1430
+ Username: [, smithyClient.expectString, `username`],
1431
+ });
1432
+ };
1433
+ const de_WeeklyStartTime = (output, context) => {
1434
+ return smithyClient.take(output, {
1435
+ DayOfWeek: [, smithyClient.expectString, `dayOfWeek`],
1436
+ TimeOfDay: [, smithyClient.expectString, `timeOfDay`],
1437
+ TimeZone: [, smithyClient.expectString, `timeZone`],
1438
+ });
1439
+ };
1440
+ const deserializeMetadata = (output) => ({
1441
+ httpStatusCode: output.statusCode,
1442
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1443
+ extendedRequestId: output.headers["x-amz-id-2"],
1444
+ cfId: output.headers["x-amz-cf-id"],
1445
+ });
1446
+ const _ET = "EngineType";
1447
+ const _HIT = "HostInstanceType";
1448
+ const _MR = "MaxResults";
1449
+ const _NT = "NextToken";
1450
+ const _ST = "StorageType";
1451
+ const _TK = "TagKeys";
1452
+ const _eT = "engineType";
1453
+ const _hIT = "hostInstanceType";
1454
+ const _mR = "maxResults";
1455
+ const _nT = "nextToken";
1456
+ const _sT = "storageType";
1457
+ const _tK = "tagKeys";
1458
+
1459
+ class CreateBrokerCommand extends smithyClient.Command
1460
+ .classBuilder()
1461
+ .ep(commonParams)
1462
+ .m(function (Command, cs, config, o) {
1463
+ return [
1464
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1465
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1466
+ ];
1467
+ })
1468
+ .s("mq", "CreateBroker", {})
1469
+ .n("MqClient", "CreateBrokerCommand")
1470
+ .f(void 0, void 0)
1471
+ .ser(se_CreateBrokerCommand)
1472
+ .de(de_CreateBrokerCommand)
1473
+ .build() {
1474
+ }
1475
+
1476
+ class CreateConfigurationCommand extends smithyClient.Command
1477
+ .classBuilder()
1478
+ .ep(commonParams)
1479
+ .m(function (Command, cs, config, o) {
1480
+ return [
1481
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1482
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1483
+ ];
1484
+ })
1485
+ .s("mq", "CreateConfiguration", {})
1486
+ .n("MqClient", "CreateConfigurationCommand")
1487
+ .f(void 0, void 0)
1488
+ .ser(se_CreateConfigurationCommand)
1489
+ .de(de_CreateConfigurationCommand)
1490
+ .build() {
1491
+ }
1492
+
1493
+ class CreateTagsCommand extends smithyClient.Command
1494
+ .classBuilder()
1495
+ .ep(commonParams)
1496
+ .m(function (Command, cs, config, o) {
1497
+ return [
1498
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1499
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1500
+ ];
1501
+ })
1502
+ .s("mq", "CreateTags", {})
1503
+ .n("MqClient", "CreateTagsCommand")
1504
+ .f(void 0, void 0)
1505
+ .ser(se_CreateTagsCommand)
1506
+ .de(de_CreateTagsCommand)
1507
+ .build() {
1508
+ }
1509
+
1510
+ class CreateUserCommand extends smithyClient.Command
1511
+ .classBuilder()
1512
+ .ep(commonParams)
1513
+ .m(function (Command, cs, config, o) {
1514
+ return [
1515
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1516
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1517
+ ];
1518
+ })
1519
+ .s("mq", "CreateUser", {})
1520
+ .n("MqClient", "CreateUserCommand")
1521
+ .f(void 0, void 0)
1522
+ .ser(se_CreateUserCommand)
1523
+ .de(de_CreateUserCommand)
1524
+ .build() {
1525
+ }
1526
+
1527
+ class DeleteBrokerCommand extends smithyClient.Command
1528
+ .classBuilder()
1529
+ .ep(commonParams)
1530
+ .m(function (Command, cs, config, o) {
1531
+ return [
1532
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1533
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1534
+ ];
1535
+ })
1536
+ .s("mq", "DeleteBroker", {})
1537
+ .n("MqClient", "DeleteBrokerCommand")
1538
+ .f(void 0, void 0)
1539
+ .ser(se_DeleteBrokerCommand)
1540
+ .de(de_DeleteBrokerCommand)
1541
+ .build() {
1542
+ }
1543
+
1544
+ class DeleteConfigurationCommand extends smithyClient.Command
1545
+ .classBuilder()
1546
+ .ep(commonParams)
1547
+ .m(function (Command, cs, config, o) {
1548
+ return [
1549
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1550
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1551
+ ];
1552
+ })
1553
+ .s("mq", "DeleteConfiguration", {})
1554
+ .n("MqClient", "DeleteConfigurationCommand")
1555
+ .f(void 0, void 0)
1556
+ .ser(se_DeleteConfigurationCommand)
1557
+ .de(de_DeleteConfigurationCommand)
1558
+ .build() {
1559
+ }
1560
+
1561
+ class DeleteTagsCommand extends smithyClient.Command
1562
+ .classBuilder()
1563
+ .ep(commonParams)
1564
+ .m(function (Command, cs, config, o) {
1565
+ return [
1566
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1567
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1568
+ ];
1569
+ })
1570
+ .s("mq", "DeleteTags", {})
1571
+ .n("MqClient", "DeleteTagsCommand")
1572
+ .f(void 0, void 0)
1573
+ .ser(se_DeleteTagsCommand)
1574
+ .de(de_DeleteTagsCommand)
1575
+ .build() {
1576
+ }
1577
+
1578
+ class DeleteUserCommand extends smithyClient.Command
1579
+ .classBuilder()
1580
+ .ep(commonParams)
1581
+ .m(function (Command, cs, config, o) {
1582
+ return [
1583
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1584
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1585
+ ];
1586
+ })
1587
+ .s("mq", "DeleteUser", {})
1588
+ .n("MqClient", "DeleteUserCommand")
1589
+ .f(void 0, void 0)
1590
+ .ser(se_DeleteUserCommand)
1591
+ .de(de_DeleteUserCommand)
1592
+ .build() {
1593
+ }
1594
+
1595
+ class DescribeBrokerCommand extends smithyClient.Command
1596
+ .classBuilder()
1597
+ .ep(commonParams)
1598
+ .m(function (Command, cs, config, o) {
1599
+ return [
1600
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1601
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1602
+ ];
1603
+ })
1604
+ .s("mq", "DescribeBroker", {})
1605
+ .n("MqClient", "DescribeBrokerCommand")
1606
+ .f(void 0, void 0)
1607
+ .ser(se_DescribeBrokerCommand)
1608
+ .de(de_DescribeBrokerCommand)
1609
+ .build() {
1610
+ }
1611
+
1612
+ class DescribeBrokerEngineTypesCommand extends smithyClient.Command
1613
+ .classBuilder()
1614
+ .ep(commonParams)
1615
+ .m(function (Command, cs, config, o) {
1616
+ return [
1617
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1618
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1619
+ ];
1620
+ })
1621
+ .s("mq", "DescribeBrokerEngineTypes", {})
1622
+ .n("MqClient", "DescribeBrokerEngineTypesCommand")
1623
+ .f(void 0, void 0)
1624
+ .ser(se_DescribeBrokerEngineTypesCommand)
1625
+ .de(de_DescribeBrokerEngineTypesCommand)
1626
+ .build() {
1627
+ }
1628
+
1629
+ class DescribeBrokerInstanceOptionsCommand extends smithyClient.Command
1630
+ .classBuilder()
1631
+ .ep(commonParams)
1632
+ .m(function (Command, cs, config, o) {
1633
+ return [
1634
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1635
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1636
+ ];
1637
+ })
1638
+ .s("mq", "DescribeBrokerInstanceOptions", {})
1639
+ .n("MqClient", "DescribeBrokerInstanceOptionsCommand")
1640
+ .f(void 0, void 0)
1641
+ .ser(se_DescribeBrokerInstanceOptionsCommand)
1642
+ .de(de_DescribeBrokerInstanceOptionsCommand)
1643
+ .build() {
1644
+ }
1645
+
1646
+ class DescribeConfigurationCommand extends smithyClient.Command
1647
+ .classBuilder()
1648
+ .ep(commonParams)
1649
+ .m(function (Command, cs, config, o) {
1650
+ return [
1651
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1652
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1653
+ ];
1654
+ })
1655
+ .s("mq", "DescribeConfiguration", {})
1656
+ .n("MqClient", "DescribeConfigurationCommand")
1657
+ .f(void 0, void 0)
1658
+ .ser(se_DescribeConfigurationCommand)
1659
+ .de(de_DescribeConfigurationCommand)
1660
+ .build() {
1661
+ }
1662
+
1663
+ class DescribeConfigurationRevisionCommand extends smithyClient.Command
1664
+ .classBuilder()
1665
+ .ep(commonParams)
1666
+ .m(function (Command, cs, config, o) {
1667
+ return [
1668
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1669
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1670
+ ];
1671
+ })
1672
+ .s("mq", "DescribeConfigurationRevision", {})
1673
+ .n("MqClient", "DescribeConfigurationRevisionCommand")
1674
+ .f(void 0, void 0)
1675
+ .ser(se_DescribeConfigurationRevisionCommand)
1676
+ .de(de_DescribeConfigurationRevisionCommand)
1677
+ .build() {
1678
+ }
1679
+
1680
+ class DescribeUserCommand extends smithyClient.Command
1681
+ .classBuilder()
1682
+ .ep(commonParams)
1683
+ .m(function (Command, cs, config, o) {
1684
+ return [
1685
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1686
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1687
+ ];
1688
+ })
1689
+ .s("mq", "DescribeUser", {})
1690
+ .n("MqClient", "DescribeUserCommand")
1691
+ .f(void 0, void 0)
1692
+ .ser(se_DescribeUserCommand)
1693
+ .de(de_DescribeUserCommand)
1694
+ .build() {
1695
+ }
1696
+
1697
+ class ListBrokersCommand extends smithyClient.Command
1698
+ .classBuilder()
1699
+ .ep(commonParams)
1700
+ .m(function (Command, cs, config, o) {
1701
+ return [
1702
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1703
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1704
+ ];
1705
+ })
1706
+ .s("mq", "ListBrokers", {})
1707
+ .n("MqClient", "ListBrokersCommand")
1708
+ .f(void 0, void 0)
1709
+ .ser(se_ListBrokersCommand)
1710
+ .de(de_ListBrokersCommand)
1711
+ .build() {
1712
+ }
1713
+
1714
+ class ListConfigurationRevisionsCommand extends smithyClient.Command
1715
+ .classBuilder()
1716
+ .ep(commonParams)
1717
+ .m(function (Command, cs, config, o) {
1718
+ return [
1719
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1720
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1721
+ ];
1722
+ })
1723
+ .s("mq", "ListConfigurationRevisions", {})
1724
+ .n("MqClient", "ListConfigurationRevisionsCommand")
1725
+ .f(void 0, void 0)
1726
+ .ser(se_ListConfigurationRevisionsCommand)
1727
+ .de(de_ListConfigurationRevisionsCommand)
1728
+ .build() {
1729
+ }
1730
+
1731
+ class ListConfigurationsCommand extends smithyClient.Command
1732
+ .classBuilder()
1733
+ .ep(commonParams)
1734
+ .m(function (Command, cs, config, o) {
1735
+ return [
1736
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1737
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1738
+ ];
1739
+ })
1740
+ .s("mq", "ListConfigurations", {})
1741
+ .n("MqClient", "ListConfigurationsCommand")
1742
+ .f(void 0, void 0)
1743
+ .ser(se_ListConfigurationsCommand)
1744
+ .de(de_ListConfigurationsCommand)
1745
+ .build() {
1746
+ }
1747
+
1748
+ class ListTagsCommand extends smithyClient.Command
1749
+ .classBuilder()
1750
+ .ep(commonParams)
1751
+ .m(function (Command, cs, config, o) {
1752
+ return [
1753
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1754
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1755
+ ];
1756
+ })
1757
+ .s("mq", "ListTags", {})
1758
+ .n("MqClient", "ListTagsCommand")
1759
+ .f(void 0, void 0)
1760
+ .ser(se_ListTagsCommand)
1761
+ .de(de_ListTagsCommand)
1762
+ .build() {
1763
+ }
1764
+
1765
+ class ListUsersCommand extends smithyClient.Command
1766
+ .classBuilder()
1767
+ .ep(commonParams)
1768
+ .m(function (Command, cs, config, o) {
1769
+ return [
1770
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1771
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1772
+ ];
1773
+ })
1774
+ .s("mq", "ListUsers", {})
1775
+ .n("MqClient", "ListUsersCommand")
1776
+ .f(void 0, void 0)
1777
+ .ser(se_ListUsersCommand)
1778
+ .de(de_ListUsersCommand)
1779
+ .build() {
1780
+ }
1781
+
1782
+ class PromoteCommand extends smithyClient.Command
1783
+ .classBuilder()
1784
+ .ep(commonParams)
1785
+ .m(function (Command, cs, config, o) {
1786
+ return [
1787
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1788
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1789
+ ];
1790
+ })
1791
+ .s("mq", "Promote", {})
1792
+ .n("MqClient", "PromoteCommand")
1793
+ .f(void 0, void 0)
1794
+ .ser(se_PromoteCommand)
1795
+ .de(de_PromoteCommand)
1796
+ .build() {
1797
+ }
1798
+
1799
+ class RebootBrokerCommand extends smithyClient.Command
1800
+ .classBuilder()
1801
+ .ep(commonParams)
1802
+ .m(function (Command, cs, config, o) {
1803
+ return [
1804
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1805
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1806
+ ];
1807
+ })
1808
+ .s("mq", "RebootBroker", {})
1809
+ .n("MqClient", "RebootBrokerCommand")
1810
+ .f(void 0, void 0)
1811
+ .ser(se_RebootBrokerCommand)
1812
+ .de(de_RebootBrokerCommand)
1813
+ .build() {
1814
+ }
1815
+
1816
+ class UpdateBrokerCommand extends smithyClient.Command
1817
+ .classBuilder()
1818
+ .ep(commonParams)
1819
+ .m(function (Command, cs, config, o) {
1820
+ return [
1821
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1822
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1823
+ ];
1824
+ })
1825
+ .s("mq", "UpdateBroker", {})
1826
+ .n("MqClient", "UpdateBrokerCommand")
1827
+ .f(void 0, void 0)
1828
+ .ser(se_UpdateBrokerCommand)
1829
+ .de(de_UpdateBrokerCommand)
1830
+ .build() {
1831
+ }
1832
+
1833
+ class UpdateConfigurationCommand extends smithyClient.Command
1834
+ .classBuilder()
1835
+ .ep(commonParams)
1836
+ .m(function (Command, cs, config, o) {
1837
+ return [
1838
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1839
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1840
+ ];
1841
+ })
1842
+ .s("mq", "UpdateConfiguration", {})
1843
+ .n("MqClient", "UpdateConfigurationCommand")
1844
+ .f(void 0, void 0)
1845
+ .ser(se_UpdateConfigurationCommand)
1846
+ .de(de_UpdateConfigurationCommand)
1847
+ .build() {
1848
+ }
1849
+
1850
+ class UpdateUserCommand extends smithyClient.Command
1851
+ .classBuilder()
1852
+ .ep(commonParams)
1853
+ .m(function (Command, cs, config, o) {
1854
+ return [
1855
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1856
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1857
+ ];
1858
+ })
1859
+ .s("mq", "UpdateUser", {})
1860
+ .n("MqClient", "UpdateUserCommand")
1861
+ .f(void 0, void 0)
1862
+ .ser(se_UpdateUserCommand)
1863
+ .de(de_UpdateUserCommand)
1864
+ .build() {
1865
+ }
1866
+
1867
+ const commands = {
1868
+ CreateBrokerCommand,
1869
+ CreateConfigurationCommand,
1870
+ CreateTagsCommand,
1871
+ CreateUserCommand,
1872
+ DeleteBrokerCommand,
1873
+ DeleteConfigurationCommand,
1874
+ DeleteTagsCommand,
1875
+ DeleteUserCommand,
1876
+ DescribeBrokerCommand,
1877
+ DescribeBrokerEngineTypesCommand,
1878
+ DescribeBrokerInstanceOptionsCommand,
1879
+ DescribeConfigurationCommand,
1880
+ DescribeConfigurationRevisionCommand,
1881
+ DescribeUserCommand,
1882
+ ListBrokersCommand,
1883
+ ListConfigurationRevisionsCommand,
1884
+ ListConfigurationsCommand,
1885
+ ListTagsCommand,
1886
+ ListUsersCommand,
1887
+ PromoteCommand,
1888
+ RebootBrokerCommand,
1889
+ UpdateBrokerCommand,
1890
+ UpdateConfigurationCommand,
1891
+ UpdateUserCommand,
1892
+ };
1893
+ class Mq extends MqClient {
1894
+ }
1895
+ smithyClient.createAggregatedClient(commands, Mq);
2012
1896
 
2013
- // src/Mq.ts
2014
- var commands = {
2015
- CreateBrokerCommand,
2016
- CreateConfigurationCommand,
2017
- CreateTagsCommand,
2018
- CreateUserCommand,
2019
- DeleteBrokerCommand,
2020
- DeleteConfigurationCommand,
2021
- DeleteTagsCommand,
2022
- DeleteUserCommand,
2023
- DescribeBrokerCommand,
2024
- DescribeBrokerEngineTypesCommand,
2025
- DescribeBrokerInstanceOptionsCommand,
2026
- DescribeConfigurationCommand,
2027
- DescribeConfigurationRevisionCommand,
2028
- DescribeUserCommand,
2029
- ListBrokersCommand,
2030
- ListConfigurationRevisionsCommand,
2031
- ListConfigurationsCommand,
2032
- ListTagsCommand,
2033
- ListUsersCommand,
2034
- PromoteCommand,
2035
- RebootBrokerCommand,
2036
- UpdateBrokerCommand,
2037
- UpdateConfigurationCommand,
2038
- UpdateUserCommand
2039
- };
2040
- var Mq = class extends MqClient {
2041
- static {
2042
- __name(this, "Mq");
2043
- }
2044
- };
2045
- (0, import_smithy_client.createAggregatedClient)(commands, Mq);
2046
-
2047
- // src/pagination/ListBrokersPaginator.ts
2048
-
2049
- var paginateListBrokers = (0, import_core.createPaginator)(MqClient, ListBrokersCommand, "NextToken", "NextToken", "MaxResults");
2050
- // Annotate the CommonJS export names for ESM import in node:
1897
+ const paginateListBrokers = core.createPaginator(MqClient, ListBrokersCommand, "NextToken", "NextToken", "MaxResults");
2051
1898
 
2052
- 0 && (module.exports = {
2053
- MqServiceException,
2054
- __Client,
2055
- MqClient,
2056
- Mq,
2057
- $Command,
2058
- CreateBrokerCommand,
2059
- CreateConfigurationCommand,
2060
- CreateTagsCommand,
2061
- CreateUserCommand,
2062
- DeleteBrokerCommand,
2063
- DeleteConfigurationCommand,
2064
- DeleteTagsCommand,
2065
- DeleteUserCommand,
2066
- DescribeBrokerCommand,
2067
- DescribeBrokerEngineTypesCommand,
2068
- DescribeBrokerInstanceOptionsCommand,
2069
- DescribeConfigurationCommand,
2070
- DescribeConfigurationRevisionCommand,
2071
- DescribeUserCommand,
2072
- ListBrokersCommand,
2073
- ListConfigurationRevisionsCommand,
2074
- ListConfigurationsCommand,
2075
- ListTagsCommand,
2076
- ListUsersCommand,
2077
- PromoteCommand,
2078
- RebootBrokerCommand,
2079
- UpdateBrokerCommand,
2080
- UpdateConfigurationCommand,
2081
- UpdateUserCommand,
2082
- paginateListBrokers,
2083
- EngineType,
2084
- BrokerStorageType,
2085
- DeploymentMode,
2086
- BrokerState,
2087
- AuthenticationStrategy,
2088
- SanitizationWarningReason,
2089
- ChangeType,
2090
- BadRequestException,
2091
- ConflictException,
2092
- DataReplicationMode,
2093
- DayOfWeek,
2094
- ForbiddenException,
2095
- InternalServerErrorException,
2096
- UnauthorizedException,
2097
- NotFoundException,
2098
- PromoteMode
1899
+ Object.defineProperty(exports, "$Command", {
1900
+ enumerable: true,
1901
+ get: function () { return smithyClient.Command; }
2099
1902
  });
2100
-
1903
+ Object.defineProperty(exports, "__Client", {
1904
+ enumerable: true,
1905
+ get: function () { return smithyClient.Client; }
1906
+ });
1907
+ exports.AuthenticationStrategy = AuthenticationStrategy;
1908
+ exports.BadRequestException = BadRequestException;
1909
+ exports.BrokerState = BrokerState;
1910
+ exports.BrokerStorageType = BrokerStorageType;
1911
+ exports.ChangeType = ChangeType;
1912
+ exports.ConflictException = ConflictException;
1913
+ exports.CreateBrokerCommand = CreateBrokerCommand;
1914
+ exports.CreateConfigurationCommand = CreateConfigurationCommand;
1915
+ exports.CreateTagsCommand = CreateTagsCommand;
1916
+ exports.CreateUserCommand = CreateUserCommand;
1917
+ exports.DataReplicationMode = DataReplicationMode;
1918
+ exports.DayOfWeek = DayOfWeek;
1919
+ exports.DeleteBrokerCommand = DeleteBrokerCommand;
1920
+ exports.DeleteConfigurationCommand = DeleteConfigurationCommand;
1921
+ exports.DeleteTagsCommand = DeleteTagsCommand;
1922
+ exports.DeleteUserCommand = DeleteUserCommand;
1923
+ exports.DeploymentMode = DeploymentMode;
1924
+ exports.DescribeBrokerCommand = DescribeBrokerCommand;
1925
+ exports.DescribeBrokerEngineTypesCommand = DescribeBrokerEngineTypesCommand;
1926
+ exports.DescribeBrokerInstanceOptionsCommand = DescribeBrokerInstanceOptionsCommand;
1927
+ exports.DescribeConfigurationCommand = DescribeConfigurationCommand;
1928
+ exports.DescribeConfigurationRevisionCommand = DescribeConfigurationRevisionCommand;
1929
+ exports.DescribeUserCommand = DescribeUserCommand;
1930
+ exports.EngineType = EngineType;
1931
+ exports.ForbiddenException = ForbiddenException;
1932
+ exports.InternalServerErrorException = InternalServerErrorException;
1933
+ exports.ListBrokersCommand = ListBrokersCommand;
1934
+ exports.ListConfigurationRevisionsCommand = ListConfigurationRevisionsCommand;
1935
+ exports.ListConfigurationsCommand = ListConfigurationsCommand;
1936
+ exports.ListTagsCommand = ListTagsCommand;
1937
+ exports.ListUsersCommand = ListUsersCommand;
1938
+ exports.Mq = Mq;
1939
+ exports.MqClient = MqClient;
1940
+ exports.MqServiceException = MqServiceException;
1941
+ exports.NotFoundException = NotFoundException;
1942
+ exports.PromoteCommand = PromoteCommand;
1943
+ exports.PromoteMode = PromoteMode;
1944
+ exports.RebootBrokerCommand = RebootBrokerCommand;
1945
+ exports.SanitizationWarningReason = SanitizationWarningReason;
1946
+ exports.UnauthorizedException = UnauthorizedException;
1947
+ exports.UpdateBrokerCommand = UpdateBrokerCommand;
1948
+ exports.UpdateConfigurationCommand = UpdateConfigurationCommand;
1949
+ exports.UpdateUserCommand = UpdateUserCommand;
1950
+ exports.paginateListBrokers = paginateListBrokers;