@aws-sdk/client-mq 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Mq.js +1 -57
- package/dist-cjs/MqClient.js +1 -43
- package/dist-cjs/commands/CreateBrokerCommand.js +1 -28
- package/dist-cjs/commands/CreateConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateTagsCommand.js +1 -28
- package/dist-cjs/commands/CreateUserCommand.js +1 -28
- package/dist-cjs/commands/DeleteBrokerCommand.js +1 -28
- package/dist-cjs/commands/DeleteTagsCommand.js +1 -28
- package/dist-cjs/commands/DeleteUserCommand.js +1 -28
- package/dist-cjs/commands/DescribeBrokerCommand.js +1 -28
- package/dist-cjs/commands/DescribeBrokerEngineTypesCommand.js +1 -28
- package/dist-cjs/commands/DescribeBrokerInstanceOptionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +1 -28
- package/dist-cjs/commands/DescribeUserCommand.js +1 -28
- package/dist-cjs/commands/ListBrokersCommand.js +1 -28
- package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +1 -28
- package/dist-cjs/commands/ListConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsCommand.js +1 -28
- package/dist-cjs/commands/ListUsersCommand.js +1 -28
- package/dist-cjs/commands/PromoteCommand.js +1 -28
- package/dist-cjs/commands/RebootBrokerCommand.js +1 -28
- package/dist-cjs/commands/UpdateBrokerCommand.js +1 -28
- package/dist-cjs/commands/UpdateConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateUserCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2635 -11
- package/dist-cjs/models/MqServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -147
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListBrokersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1879
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2636 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
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 src_exports = {};
|
|
23
|
+
__export(src_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
|
+
DeleteTagsCommand: () => DeleteTagsCommand,
|
|
38
|
+
DeleteUserCommand: () => DeleteUserCommand,
|
|
39
|
+
DeploymentMode: () => DeploymentMode,
|
|
40
|
+
DescribeBrokerCommand: () => DescribeBrokerCommand,
|
|
41
|
+
DescribeBrokerEngineTypesCommand: () => DescribeBrokerEngineTypesCommand,
|
|
42
|
+
DescribeBrokerInstanceOptionsCommand: () => DescribeBrokerInstanceOptionsCommand,
|
|
43
|
+
DescribeConfigurationCommand: () => DescribeConfigurationCommand,
|
|
44
|
+
DescribeConfigurationRevisionCommand: () => DescribeConfigurationRevisionCommand,
|
|
45
|
+
DescribeUserCommand: () => DescribeUserCommand,
|
|
46
|
+
EngineType: () => EngineType,
|
|
47
|
+
ForbiddenException: () => ForbiddenException,
|
|
48
|
+
InternalServerErrorException: () => InternalServerErrorException,
|
|
49
|
+
ListBrokersCommand: () => ListBrokersCommand,
|
|
50
|
+
ListConfigurationRevisionsCommand: () => ListConfigurationRevisionsCommand,
|
|
51
|
+
ListConfigurationsCommand: () => ListConfigurationsCommand,
|
|
52
|
+
ListTagsCommand: () => ListTagsCommand,
|
|
53
|
+
ListUsersCommand: () => ListUsersCommand,
|
|
54
|
+
Mq: () => Mq,
|
|
55
|
+
MqClient: () => MqClient,
|
|
56
|
+
MqServiceException: () => MqServiceException,
|
|
57
|
+
NotFoundException: () => NotFoundException,
|
|
58
|
+
PromoteCommand: () => PromoteCommand,
|
|
59
|
+
PromoteMode: () => PromoteMode,
|
|
60
|
+
RebootBrokerCommand: () => RebootBrokerCommand,
|
|
61
|
+
SanitizationWarningReason: () => SanitizationWarningReason,
|
|
62
|
+
UnauthorizedException: () => UnauthorizedException,
|
|
63
|
+
UpdateBrokerCommand: () => UpdateBrokerCommand,
|
|
64
|
+
UpdateConfigurationCommand: () => UpdateConfigurationCommand,
|
|
65
|
+
UpdateUserCommand: () => UpdateUserCommand,
|
|
66
|
+
__Client: () => import_smithy_client.Client,
|
|
67
|
+
paginateListBrokers: () => paginateListBrokers
|
|
68
|
+
});
|
|
69
|
+
module.exports = __toCommonJS(src_exports);
|
|
70
|
+
|
|
71
|
+
// src/MqClient.ts
|
|
72
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
73
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
74
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
75
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
76
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
77
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
78
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
79
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
80
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// src/endpoint/EndpointParameters.ts
|
|
84
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
85
|
+
return {
|
|
86
|
+
...options,
|
|
87
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
88
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
89
|
+
defaultSigningName: "mq"
|
|
90
|
+
};
|
|
91
|
+
}, "resolveClientEndpointParameters");
|
|
92
|
+
var commonParams = {
|
|
93
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
94
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
95
|
+
Region: { type: "builtInParams", name: "region" },
|
|
96
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/MqClient.ts
|
|
100
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
101
|
+
|
|
102
|
+
// src/runtimeExtensions.ts
|
|
103
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
104
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
105
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
106
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
107
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
108
|
+
const extensionConfiguration = {
|
|
109
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
111
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
112
|
+
};
|
|
113
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
114
|
+
return {
|
|
115
|
+
...runtimeConfig,
|
|
116
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
117
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
118
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
119
|
+
};
|
|
120
|
+
}, "resolveRuntimeExtensions");
|
|
121
|
+
|
|
122
|
+
// src/MqClient.ts
|
|
123
|
+
var _MqClient = class _MqClient extends import_smithy_client.Client {
|
|
124
|
+
constructor(...[configuration]) {
|
|
125
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
126
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
127
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
128
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
129
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
130
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
131
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
132
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
133
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
134
|
+
super(_config_8);
|
|
135
|
+
this.config = _config_8;
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
146
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
147
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
148
|
+
*/
|
|
149
|
+
destroy() {
|
|
150
|
+
super.destroy();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
__name(_MqClient, "MqClient");
|
|
154
|
+
var MqClient = _MqClient;
|
|
155
|
+
|
|
156
|
+
// src/Mq.ts
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// src/commands/CreateBrokerCommand.ts
|
|
160
|
+
|
|
161
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
162
|
+
|
|
163
|
+
var import_types = require("@smithy/types");
|
|
164
|
+
|
|
165
|
+
// src/protocols/Aws_restJson1.ts
|
|
166
|
+
var import_core = require("@smithy/core");
|
|
167
|
+
|
|
168
|
+
var import_uuid = require("uuid");
|
|
169
|
+
|
|
170
|
+
// src/models/MqServiceException.ts
|
|
171
|
+
|
|
172
|
+
var _MqServiceException = class _MqServiceException extends import_smithy_client.ServiceException {
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
constructor(options) {
|
|
177
|
+
super(options);
|
|
178
|
+
Object.setPrototypeOf(this, _MqServiceException.prototype);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
__name(_MqServiceException, "MqServiceException");
|
|
182
|
+
var MqServiceException = _MqServiceException;
|
|
183
|
+
|
|
184
|
+
// src/models/models_0.ts
|
|
185
|
+
var EngineType = {
|
|
186
|
+
ACTIVEMQ: "ACTIVEMQ",
|
|
187
|
+
RABBITMQ: "RABBITMQ"
|
|
188
|
+
};
|
|
189
|
+
var BrokerStorageType = {
|
|
190
|
+
EBS: "EBS",
|
|
191
|
+
EFS: "EFS"
|
|
192
|
+
};
|
|
193
|
+
var DeploymentMode = {
|
|
194
|
+
ACTIVE_STANDBY_MULTI_AZ: "ACTIVE_STANDBY_MULTI_AZ",
|
|
195
|
+
CLUSTER_MULTI_AZ: "CLUSTER_MULTI_AZ",
|
|
196
|
+
SINGLE_INSTANCE: "SINGLE_INSTANCE"
|
|
197
|
+
};
|
|
198
|
+
var BrokerState = {
|
|
199
|
+
CREATION_FAILED: "CREATION_FAILED",
|
|
200
|
+
CREATION_IN_PROGRESS: "CREATION_IN_PROGRESS",
|
|
201
|
+
CRITICAL_ACTION_REQUIRED: "CRITICAL_ACTION_REQUIRED",
|
|
202
|
+
DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS",
|
|
203
|
+
REBOOT_IN_PROGRESS: "REBOOT_IN_PROGRESS",
|
|
204
|
+
REPLICA: "REPLICA",
|
|
205
|
+
RUNNING: "RUNNING"
|
|
206
|
+
};
|
|
207
|
+
var AuthenticationStrategy = {
|
|
208
|
+
LDAP: "LDAP",
|
|
209
|
+
SIMPLE: "SIMPLE"
|
|
210
|
+
};
|
|
211
|
+
var SanitizationWarningReason = {
|
|
212
|
+
DISALLOWED_ATTRIBUTE_REMOVED: "DISALLOWED_ATTRIBUTE_REMOVED",
|
|
213
|
+
DISALLOWED_ELEMENT_REMOVED: "DISALLOWED_ELEMENT_REMOVED",
|
|
214
|
+
INVALID_ATTRIBUTE_VALUE_REMOVED: "INVALID_ATTRIBUTE_VALUE_REMOVED"
|
|
215
|
+
};
|
|
216
|
+
var ChangeType = {
|
|
217
|
+
CREATE: "CREATE",
|
|
218
|
+
DELETE: "DELETE",
|
|
219
|
+
UPDATE: "UPDATE"
|
|
220
|
+
};
|
|
221
|
+
var _BadRequestException = class _BadRequestException extends MqServiceException {
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "BadRequestException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts
|
|
230
|
+
});
|
|
231
|
+
this.name = "BadRequestException";
|
|
232
|
+
this.$fault = "client";
|
|
233
|
+
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
234
|
+
this.ErrorAttribute = opts.ErrorAttribute;
|
|
235
|
+
this.Message = opts.Message;
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
__name(_BadRequestException, "BadRequestException");
|
|
239
|
+
var BadRequestException = _BadRequestException;
|
|
240
|
+
var _ConflictException = class _ConflictException extends MqServiceException {
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
constructor(opts) {
|
|
245
|
+
super({
|
|
246
|
+
name: "ConflictException",
|
|
247
|
+
$fault: "client",
|
|
248
|
+
...opts
|
|
249
|
+
});
|
|
250
|
+
this.name = "ConflictException";
|
|
251
|
+
this.$fault = "client";
|
|
252
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
253
|
+
this.ErrorAttribute = opts.ErrorAttribute;
|
|
254
|
+
this.Message = opts.Message;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
__name(_ConflictException, "ConflictException");
|
|
258
|
+
var ConflictException = _ConflictException;
|
|
259
|
+
var DataReplicationMode = {
|
|
260
|
+
CRDR: "CRDR",
|
|
261
|
+
NONE: "NONE"
|
|
262
|
+
};
|
|
263
|
+
var DayOfWeek = {
|
|
264
|
+
FRIDAY: "FRIDAY",
|
|
265
|
+
MONDAY: "MONDAY",
|
|
266
|
+
SATURDAY: "SATURDAY",
|
|
267
|
+
SUNDAY: "SUNDAY",
|
|
268
|
+
THURSDAY: "THURSDAY",
|
|
269
|
+
TUESDAY: "TUESDAY",
|
|
270
|
+
WEDNESDAY: "WEDNESDAY"
|
|
271
|
+
};
|
|
272
|
+
var _ForbiddenException = class _ForbiddenException extends MqServiceException {
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
*/
|
|
276
|
+
constructor(opts) {
|
|
277
|
+
super({
|
|
278
|
+
name: "ForbiddenException",
|
|
279
|
+
$fault: "client",
|
|
280
|
+
...opts
|
|
281
|
+
});
|
|
282
|
+
this.name = "ForbiddenException";
|
|
283
|
+
this.$fault = "client";
|
|
284
|
+
Object.setPrototypeOf(this, _ForbiddenException.prototype);
|
|
285
|
+
this.ErrorAttribute = opts.ErrorAttribute;
|
|
286
|
+
this.Message = opts.Message;
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
__name(_ForbiddenException, "ForbiddenException");
|
|
290
|
+
var ForbiddenException = _ForbiddenException;
|
|
291
|
+
var _InternalServerErrorException = class _InternalServerErrorException extends MqServiceException {
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
*/
|
|
295
|
+
constructor(opts) {
|
|
296
|
+
super({
|
|
297
|
+
name: "InternalServerErrorException",
|
|
298
|
+
$fault: "server",
|
|
299
|
+
...opts
|
|
300
|
+
});
|
|
301
|
+
this.name = "InternalServerErrorException";
|
|
302
|
+
this.$fault = "server";
|
|
303
|
+
Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
|
|
304
|
+
this.ErrorAttribute = opts.ErrorAttribute;
|
|
305
|
+
this.Message = opts.Message;
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
__name(_InternalServerErrorException, "InternalServerErrorException");
|
|
309
|
+
var InternalServerErrorException = _InternalServerErrorException;
|
|
310
|
+
var _UnauthorizedException = class _UnauthorizedException extends MqServiceException {
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
constructor(opts) {
|
|
315
|
+
super({
|
|
316
|
+
name: "UnauthorizedException",
|
|
317
|
+
$fault: "client",
|
|
318
|
+
...opts
|
|
319
|
+
});
|
|
320
|
+
this.name = "UnauthorizedException";
|
|
321
|
+
this.$fault = "client";
|
|
322
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
323
|
+
this.ErrorAttribute = opts.ErrorAttribute;
|
|
324
|
+
this.Message = opts.Message;
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
328
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
329
|
+
var _NotFoundException = class _NotFoundException extends MqServiceException {
|
|
330
|
+
/**
|
|
331
|
+
* @internal
|
|
332
|
+
*/
|
|
333
|
+
constructor(opts) {
|
|
334
|
+
super({
|
|
335
|
+
name: "NotFoundException",
|
|
336
|
+
$fault: "client",
|
|
337
|
+
...opts
|
|
338
|
+
});
|
|
339
|
+
this.name = "NotFoundException";
|
|
340
|
+
this.$fault = "client";
|
|
341
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
342
|
+
this.ErrorAttribute = opts.ErrorAttribute;
|
|
343
|
+
this.Message = opts.Message;
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
__name(_NotFoundException, "NotFoundException");
|
|
347
|
+
var NotFoundException = _NotFoundException;
|
|
348
|
+
var PromoteMode = {
|
|
349
|
+
FAILOVER: "FAILOVER",
|
|
350
|
+
SWITCHOVER: "SWITCHOVER"
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
// src/protocols/Aws_restJson1.ts
|
|
354
|
+
var se_CreateBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
355
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
356
|
+
const headers = {
|
|
357
|
+
"content-type": "application/json"
|
|
358
|
+
};
|
|
359
|
+
b.bp("/v1/brokers");
|
|
360
|
+
let body;
|
|
361
|
+
body = JSON.stringify(
|
|
362
|
+
(0, import_smithy_client.take)(input, {
|
|
363
|
+
authenticationStrategy: [, , `AuthenticationStrategy`],
|
|
364
|
+
autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
|
|
365
|
+
brokerName: [, , `BrokerName`],
|
|
366
|
+
configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
|
|
367
|
+
creatorRequestId: [true, (_) => _ ?? (0, import_uuid.v4)(), `CreatorRequestId`],
|
|
368
|
+
dataReplicationMode: [, , `DataReplicationMode`],
|
|
369
|
+
dataReplicationPrimaryBrokerArn: [, , `DataReplicationPrimaryBrokerArn`],
|
|
370
|
+
deploymentMode: [, , `DeploymentMode`],
|
|
371
|
+
encryptionOptions: [, (_) => se_EncryptionOptions(_, context), `EncryptionOptions`],
|
|
372
|
+
engineType: [, , `EngineType`],
|
|
373
|
+
engineVersion: [, , `EngineVersion`],
|
|
374
|
+
hostInstanceType: [, , `HostInstanceType`],
|
|
375
|
+
ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
|
|
376
|
+
logs: [, (_) => se_Logs(_, context), `Logs`],
|
|
377
|
+
maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
|
|
378
|
+
publiclyAccessible: [, , `PubliclyAccessible`],
|
|
379
|
+
securityGroups: [, (_) => (0, import_smithy_client._json)(_), `SecurityGroups`],
|
|
380
|
+
storageType: [, , `StorageType`],
|
|
381
|
+
subnetIds: [, (_) => (0, import_smithy_client._json)(_), `SubnetIds`],
|
|
382
|
+
tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`],
|
|
383
|
+
users: [, (_) => se___listOfUser(_, context), `Users`]
|
|
384
|
+
})
|
|
385
|
+
);
|
|
386
|
+
b.m("POST").h(headers).b(body);
|
|
387
|
+
return b.build();
|
|
388
|
+
}, "se_CreateBrokerCommand");
|
|
389
|
+
var se_CreateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
390
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
391
|
+
const headers = {
|
|
392
|
+
"content-type": "application/json"
|
|
393
|
+
};
|
|
394
|
+
b.bp("/v1/configurations");
|
|
395
|
+
let body;
|
|
396
|
+
body = JSON.stringify(
|
|
397
|
+
(0, import_smithy_client.take)(input, {
|
|
398
|
+
authenticationStrategy: [, , `AuthenticationStrategy`],
|
|
399
|
+
engineType: [, , `EngineType`],
|
|
400
|
+
engineVersion: [, , `EngineVersion`],
|
|
401
|
+
name: [, , `Name`],
|
|
402
|
+
tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
|
|
403
|
+
})
|
|
404
|
+
);
|
|
405
|
+
b.m("POST").h(headers).b(body);
|
|
406
|
+
return b.build();
|
|
407
|
+
}, "se_CreateConfigurationCommand");
|
|
408
|
+
var se_CreateTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
409
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
410
|
+
const headers = {
|
|
411
|
+
"content-type": "application/json"
|
|
412
|
+
};
|
|
413
|
+
b.bp("/v1/tags/{ResourceArn}");
|
|
414
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify(
|
|
417
|
+
(0, import_smithy_client.take)(input, {
|
|
418
|
+
tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
|
|
419
|
+
})
|
|
420
|
+
);
|
|
421
|
+
b.m("POST").h(headers).b(body);
|
|
422
|
+
return b.build();
|
|
423
|
+
}, "se_CreateTagsCommand");
|
|
424
|
+
var se_CreateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
425
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
426
|
+
const headers = {
|
|
427
|
+
"content-type": "application/json"
|
|
428
|
+
};
|
|
429
|
+
b.bp("/v1/brokers/{BrokerId}/users/{Username}");
|
|
430
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
431
|
+
b.p("Username", () => input.Username, "{Username}", false);
|
|
432
|
+
let body;
|
|
433
|
+
body = JSON.stringify(
|
|
434
|
+
(0, import_smithy_client.take)(input, {
|
|
435
|
+
consoleAccess: [, , `ConsoleAccess`],
|
|
436
|
+
groups: [, (_) => (0, import_smithy_client._json)(_), `Groups`],
|
|
437
|
+
password: [, , `Password`],
|
|
438
|
+
replicationUser: [, , `ReplicationUser`]
|
|
439
|
+
})
|
|
440
|
+
);
|
|
441
|
+
b.m("POST").h(headers).b(body);
|
|
442
|
+
return b.build();
|
|
443
|
+
}, "se_CreateUserCommand");
|
|
444
|
+
var se_DeleteBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
445
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
446
|
+
const headers = {};
|
|
447
|
+
b.bp("/v1/brokers/{BrokerId}");
|
|
448
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
449
|
+
let body;
|
|
450
|
+
b.m("DELETE").h(headers).b(body);
|
|
451
|
+
return b.build();
|
|
452
|
+
}, "se_DeleteBrokerCommand");
|
|
453
|
+
var se_DeleteTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
454
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
455
|
+
const headers = {};
|
|
456
|
+
b.bp("/v1/tags/{ResourceArn}");
|
|
457
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
458
|
+
const query = (0, import_smithy_client.map)({
|
|
459
|
+
[_tK]: [
|
|
460
|
+
(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
461
|
+
() => (input[_TK] || []).map((_entry) => _entry)
|
|
462
|
+
]
|
|
463
|
+
});
|
|
464
|
+
let body;
|
|
465
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
466
|
+
return b.build();
|
|
467
|
+
}, "se_DeleteTagsCommand");
|
|
468
|
+
var se_DeleteUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
470
|
+
const headers = {};
|
|
471
|
+
b.bp("/v1/brokers/{BrokerId}/users/{Username}");
|
|
472
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
473
|
+
b.p("Username", () => input.Username, "{Username}", false);
|
|
474
|
+
let body;
|
|
475
|
+
b.m("DELETE").h(headers).b(body);
|
|
476
|
+
return b.build();
|
|
477
|
+
}, "se_DeleteUserCommand");
|
|
478
|
+
var se_DescribeBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
479
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
480
|
+
const headers = {};
|
|
481
|
+
b.bp("/v1/brokers/{BrokerId}");
|
|
482
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
483
|
+
let body;
|
|
484
|
+
b.m("GET").h(headers).b(body);
|
|
485
|
+
return b.build();
|
|
486
|
+
}, "se_DescribeBrokerCommand");
|
|
487
|
+
var se_DescribeBrokerEngineTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
488
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
489
|
+
const headers = {};
|
|
490
|
+
b.bp("/v1/broker-engine-types");
|
|
491
|
+
const query = (0, import_smithy_client.map)({
|
|
492
|
+
[_eT]: [, input[_ET]],
|
|
493
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
494
|
+
[_nT]: [, input[_NT]]
|
|
495
|
+
});
|
|
496
|
+
let body;
|
|
497
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
498
|
+
return b.build();
|
|
499
|
+
}, "se_DescribeBrokerEngineTypesCommand");
|
|
500
|
+
var se_DescribeBrokerInstanceOptionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
501
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
502
|
+
const headers = {};
|
|
503
|
+
b.bp("/v1/broker-instance-options");
|
|
504
|
+
const query = (0, import_smithy_client.map)({
|
|
505
|
+
[_eT]: [, input[_ET]],
|
|
506
|
+
[_hIT]: [, input[_HIT]],
|
|
507
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
508
|
+
[_nT]: [, input[_NT]],
|
|
509
|
+
[_sT]: [, input[_ST]]
|
|
510
|
+
});
|
|
511
|
+
let body;
|
|
512
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
513
|
+
return b.build();
|
|
514
|
+
}, "se_DescribeBrokerInstanceOptionsCommand");
|
|
515
|
+
var se_DescribeConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
516
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
517
|
+
const headers = {};
|
|
518
|
+
b.bp("/v1/configurations/{ConfigurationId}");
|
|
519
|
+
b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
520
|
+
let body;
|
|
521
|
+
b.m("GET").h(headers).b(body);
|
|
522
|
+
return b.build();
|
|
523
|
+
}, "se_DescribeConfigurationCommand");
|
|
524
|
+
var se_DescribeConfigurationRevisionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
525
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
526
|
+
const headers = {};
|
|
527
|
+
b.bp("/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}");
|
|
528
|
+
b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
529
|
+
b.p("ConfigurationRevision", () => input.ConfigurationRevision, "{ConfigurationRevision}", false);
|
|
530
|
+
let body;
|
|
531
|
+
b.m("GET").h(headers).b(body);
|
|
532
|
+
return b.build();
|
|
533
|
+
}, "se_DescribeConfigurationRevisionCommand");
|
|
534
|
+
var se_DescribeUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
536
|
+
const headers = {};
|
|
537
|
+
b.bp("/v1/brokers/{BrokerId}/users/{Username}");
|
|
538
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
539
|
+
b.p("Username", () => input.Username, "{Username}", false);
|
|
540
|
+
let body;
|
|
541
|
+
b.m("GET").h(headers).b(body);
|
|
542
|
+
return b.build();
|
|
543
|
+
}, "se_DescribeUserCommand");
|
|
544
|
+
var se_ListBrokersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
545
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
546
|
+
const headers = {};
|
|
547
|
+
b.bp("/v1/brokers");
|
|
548
|
+
const query = (0, import_smithy_client.map)({
|
|
549
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
550
|
+
[_nT]: [, input[_NT]]
|
|
551
|
+
});
|
|
552
|
+
let body;
|
|
553
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
554
|
+
return b.build();
|
|
555
|
+
}, "se_ListBrokersCommand");
|
|
556
|
+
var se_ListConfigurationRevisionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
557
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
558
|
+
const headers = {};
|
|
559
|
+
b.bp("/v1/configurations/{ConfigurationId}/revisions");
|
|
560
|
+
b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
561
|
+
const query = (0, import_smithy_client.map)({
|
|
562
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
563
|
+
[_nT]: [, input[_NT]]
|
|
564
|
+
});
|
|
565
|
+
let body;
|
|
566
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
567
|
+
return b.build();
|
|
568
|
+
}, "se_ListConfigurationRevisionsCommand");
|
|
569
|
+
var se_ListConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
570
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
571
|
+
const headers = {};
|
|
572
|
+
b.bp("/v1/configurations");
|
|
573
|
+
const query = (0, import_smithy_client.map)({
|
|
574
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
575
|
+
[_nT]: [, input[_NT]]
|
|
576
|
+
});
|
|
577
|
+
let body;
|
|
578
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
579
|
+
return b.build();
|
|
580
|
+
}, "se_ListConfigurationsCommand");
|
|
581
|
+
var se_ListTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
582
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
583
|
+
const headers = {};
|
|
584
|
+
b.bp("/v1/tags/{ResourceArn}");
|
|
585
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
586
|
+
let body;
|
|
587
|
+
b.m("GET").h(headers).b(body);
|
|
588
|
+
return b.build();
|
|
589
|
+
}, "se_ListTagsCommand");
|
|
590
|
+
var se_ListUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
591
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
592
|
+
const headers = {};
|
|
593
|
+
b.bp("/v1/brokers/{BrokerId}/users");
|
|
594
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
595
|
+
const query = (0, import_smithy_client.map)({
|
|
596
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
597
|
+
[_nT]: [, input[_NT]]
|
|
598
|
+
});
|
|
599
|
+
let body;
|
|
600
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
601
|
+
return b.build();
|
|
602
|
+
}, "se_ListUsersCommand");
|
|
603
|
+
var se_PromoteCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
604
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
605
|
+
const headers = {
|
|
606
|
+
"content-type": "application/json"
|
|
607
|
+
};
|
|
608
|
+
b.bp("/v1/brokers/{BrokerId}/promote");
|
|
609
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
610
|
+
let body;
|
|
611
|
+
body = JSON.stringify(
|
|
612
|
+
(0, import_smithy_client.take)(input, {
|
|
613
|
+
mode: [, , `Mode`]
|
|
614
|
+
})
|
|
615
|
+
);
|
|
616
|
+
b.m("POST").h(headers).b(body);
|
|
617
|
+
return b.build();
|
|
618
|
+
}, "se_PromoteCommand");
|
|
619
|
+
var se_RebootBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
620
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
621
|
+
const headers = {};
|
|
622
|
+
b.bp("/v1/brokers/{BrokerId}/reboot");
|
|
623
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
624
|
+
let body;
|
|
625
|
+
b.m("POST").h(headers).b(body);
|
|
626
|
+
return b.build();
|
|
627
|
+
}, "se_RebootBrokerCommand");
|
|
628
|
+
var se_UpdateBrokerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
630
|
+
const headers = {
|
|
631
|
+
"content-type": "application/json"
|
|
632
|
+
};
|
|
633
|
+
b.bp("/v1/brokers/{BrokerId}");
|
|
634
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
635
|
+
let body;
|
|
636
|
+
body = JSON.stringify(
|
|
637
|
+
(0, import_smithy_client.take)(input, {
|
|
638
|
+
authenticationStrategy: [, , `AuthenticationStrategy`],
|
|
639
|
+
autoMinorVersionUpgrade: [, , `AutoMinorVersionUpgrade`],
|
|
640
|
+
configuration: [, (_) => se_ConfigurationId(_, context), `Configuration`],
|
|
641
|
+
dataReplicationMode: [, , `DataReplicationMode`],
|
|
642
|
+
engineVersion: [, , `EngineVersion`],
|
|
643
|
+
hostInstanceType: [, , `HostInstanceType`],
|
|
644
|
+
ldapServerMetadata: [, (_) => se_LdapServerMetadataInput(_, context), `LdapServerMetadata`],
|
|
645
|
+
logs: [, (_) => se_Logs(_, context), `Logs`],
|
|
646
|
+
maintenanceWindowStartTime: [, (_) => se_WeeklyStartTime(_, context), `MaintenanceWindowStartTime`],
|
|
647
|
+
securityGroups: [, (_) => (0, import_smithy_client._json)(_), `SecurityGroups`]
|
|
648
|
+
})
|
|
649
|
+
);
|
|
650
|
+
b.m("PUT").h(headers).b(body);
|
|
651
|
+
return b.build();
|
|
652
|
+
}, "se_UpdateBrokerCommand");
|
|
653
|
+
var se_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
655
|
+
const headers = {
|
|
656
|
+
"content-type": "application/json"
|
|
657
|
+
};
|
|
658
|
+
b.bp("/v1/configurations/{ConfigurationId}");
|
|
659
|
+
b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
660
|
+
let body;
|
|
661
|
+
body = JSON.stringify(
|
|
662
|
+
(0, import_smithy_client.take)(input, {
|
|
663
|
+
data: [, , `Data`],
|
|
664
|
+
description: [, , `Description`]
|
|
665
|
+
})
|
|
666
|
+
);
|
|
667
|
+
b.m("PUT").h(headers).b(body);
|
|
668
|
+
return b.build();
|
|
669
|
+
}, "se_UpdateConfigurationCommand");
|
|
670
|
+
var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
671
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
672
|
+
const headers = {
|
|
673
|
+
"content-type": "application/json"
|
|
674
|
+
};
|
|
675
|
+
b.bp("/v1/brokers/{BrokerId}/users/{Username}");
|
|
676
|
+
b.p("BrokerId", () => input.BrokerId, "{BrokerId}", false);
|
|
677
|
+
b.p("Username", () => input.Username, "{Username}", false);
|
|
678
|
+
let body;
|
|
679
|
+
body = JSON.stringify(
|
|
680
|
+
(0, import_smithy_client.take)(input, {
|
|
681
|
+
consoleAccess: [, , `ConsoleAccess`],
|
|
682
|
+
groups: [, (_) => (0, import_smithy_client._json)(_), `Groups`],
|
|
683
|
+
password: [, , `Password`],
|
|
684
|
+
replicationUser: [, , `ReplicationUser`]
|
|
685
|
+
})
|
|
686
|
+
);
|
|
687
|
+
b.m("PUT").h(headers).b(body);
|
|
688
|
+
return b.build();
|
|
689
|
+
}, "se_UpdateUserCommand");
|
|
690
|
+
var de_CreateBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
+
return de_CreateBrokerCommandError(output, context);
|
|
693
|
+
}
|
|
694
|
+
const contents = (0, import_smithy_client.map)({
|
|
695
|
+
$metadata: deserializeMetadata(output)
|
|
696
|
+
});
|
|
697
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
698
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
699
|
+
BrokerArn: [, import_smithy_client.expectString, `brokerArn`],
|
|
700
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`]
|
|
701
|
+
});
|
|
702
|
+
Object.assign(contents, doc);
|
|
703
|
+
return contents;
|
|
704
|
+
}, "de_CreateBrokerCommand");
|
|
705
|
+
var de_CreateBrokerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
706
|
+
const parsedOutput = {
|
|
707
|
+
...output,
|
|
708
|
+
body: await parseErrorBody(output.body, context)
|
|
709
|
+
};
|
|
710
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
+
switch (errorCode) {
|
|
712
|
+
case "BadRequestException":
|
|
713
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
714
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
715
|
+
case "ConflictException":
|
|
716
|
+
case "com.amazonaws.mq#ConflictException":
|
|
717
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
718
|
+
case "ForbiddenException":
|
|
719
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
720
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
721
|
+
case "InternalServerErrorException":
|
|
722
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
723
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
724
|
+
case "UnauthorizedException":
|
|
725
|
+
case "com.amazonaws.mq#UnauthorizedException":
|
|
726
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
727
|
+
default:
|
|
728
|
+
const parsedBody = parsedOutput.body;
|
|
729
|
+
return throwDefaultError({
|
|
730
|
+
output,
|
|
731
|
+
parsedBody,
|
|
732
|
+
errorCode
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
}, "de_CreateBrokerCommandError");
|
|
736
|
+
var de_CreateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
737
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
+
return de_CreateConfigurationCommandError(output, context);
|
|
739
|
+
}
|
|
740
|
+
const contents = (0, import_smithy_client.map)({
|
|
741
|
+
$metadata: deserializeMetadata(output)
|
|
742
|
+
});
|
|
743
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
744
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
745
|
+
Arn: [, import_smithy_client.expectString, `arn`],
|
|
746
|
+
AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
|
|
747
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
748
|
+
Id: [, import_smithy_client.expectString, `id`],
|
|
749
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
750
|
+
Name: [, import_smithy_client.expectString, `name`]
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
753
|
+
return contents;
|
|
754
|
+
}, "de_CreateConfigurationCommand");
|
|
755
|
+
var de_CreateConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
+
const parsedOutput = {
|
|
757
|
+
...output,
|
|
758
|
+
body: await parseErrorBody(output.body, context)
|
|
759
|
+
};
|
|
760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
+
switch (errorCode) {
|
|
762
|
+
case "BadRequestException":
|
|
763
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
764
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
765
|
+
case "ConflictException":
|
|
766
|
+
case "com.amazonaws.mq#ConflictException":
|
|
767
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
768
|
+
case "ForbiddenException":
|
|
769
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
770
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
771
|
+
case "InternalServerErrorException":
|
|
772
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
773
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
774
|
+
default:
|
|
775
|
+
const parsedBody = parsedOutput.body;
|
|
776
|
+
return throwDefaultError({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
errorCode
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
}, "de_CreateConfigurationCommandError");
|
|
783
|
+
var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
784
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
785
|
+
return de_CreateTagsCommandError(output, context);
|
|
786
|
+
}
|
|
787
|
+
const contents = (0, import_smithy_client.map)({
|
|
788
|
+
$metadata: deserializeMetadata(output)
|
|
789
|
+
});
|
|
790
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
791
|
+
return contents;
|
|
792
|
+
}, "de_CreateTagsCommand");
|
|
793
|
+
var de_CreateTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
|
+
const parsedOutput = {
|
|
795
|
+
...output,
|
|
796
|
+
body: await parseErrorBody(output.body, context)
|
|
797
|
+
};
|
|
798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
+
switch (errorCode) {
|
|
800
|
+
case "BadRequestException":
|
|
801
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
802
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
803
|
+
case "ForbiddenException":
|
|
804
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
805
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
806
|
+
case "InternalServerErrorException":
|
|
807
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
808
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
809
|
+
case "NotFoundException":
|
|
810
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
811
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
812
|
+
default:
|
|
813
|
+
const parsedBody = parsedOutput.body;
|
|
814
|
+
return throwDefaultError({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
errorCode
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
}, "de_CreateTagsCommandError");
|
|
821
|
+
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
822
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
823
|
+
return de_CreateUserCommandError(output, context);
|
|
824
|
+
}
|
|
825
|
+
const contents = (0, import_smithy_client.map)({
|
|
826
|
+
$metadata: deserializeMetadata(output)
|
|
827
|
+
});
|
|
828
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
829
|
+
return contents;
|
|
830
|
+
}, "de_CreateUserCommand");
|
|
831
|
+
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
832
|
+
const parsedOutput = {
|
|
833
|
+
...output,
|
|
834
|
+
body: await parseErrorBody(output.body, context)
|
|
835
|
+
};
|
|
836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
+
switch (errorCode) {
|
|
838
|
+
case "BadRequestException":
|
|
839
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
840
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
841
|
+
case "ConflictException":
|
|
842
|
+
case "com.amazonaws.mq#ConflictException":
|
|
843
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
844
|
+
case "ForbiddenException":
|
|
845
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
846
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
847
|
+
case "InternalServerErrorException":
|
|
848
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
849
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
850
|
+
case "NotFoundException":
|
|
851
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
852
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
853
|
+
default:
|
|
854
|
+
const parsedBody = parsedOutput.body;
|
|
855
|
+
return throwDefaultError({
|
|
856
|
+
output,
|
|
857
|
+
parsedBody,
|
|
858
|
+
errorCode
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
}, "de_CreateUserCommandError");
|
|
862
|
+
var de_DeleteBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
863
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
+
return de_DeleteBrokerCommandError(output, context);
|
|
865
|
+
}
|
|
866
|
+
const contents = (0, import_smithy_client.map)({
|
|
867
|
+
$metadata: deserializeMetadata(output)
|
|
868
|
+
});
|
|
869
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
870
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
871
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`]
|
|
872
|
+
});
|
|
873
|
+
Object.assign(contents, doc);
|
|
874
|
+
return contents;
|
|
875
|
+
}, "de_DeleteBrokerCommand");
|
|
876
|
+
var de_DeleteBrokerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
877
|
+
const parsedOutput = {
|
|
878
|
+
...output,
|
|
879
|
+
body: await parseErrorBody(output.body, context)
|
|
880
|
+
};
|
|
881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
882
|
+
switch (errorCode) {
|
|
883
|
+
case "BadRequestException":
|
|
884
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
885
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
886
|
+
case "ForbiddenException":
|
|
887
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
888
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
889
|
+
case "InternalServerErrorException":
|
|
890
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
891
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
892
|
+
case "NotFoundException":
|
|
893
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
894
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
895
|
+
default:
|
|
896
|
+
const parsedBody = parsedOutput.body;
|
|
897
|
+
return throwDefaultError({
|
|
898
|
+
output,
|
|
899
|
+
parsedBody,
|
|
900
|
+
errorCode
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
}, "de_DeleteBrokerCommandError");
|
|
904
|
+
var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
906
|
+
return de_DeleteTagsCommandError(output, context);
|
|
907
|
+
}
|
|
908
|
+
const contents = (0, import_smithy_client.map)({
|
|
909
|
+
$metadata: deserializeMetadata(output)
|
|
910
|
+
});
|
|
911
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
912
|
+
return contents;
|
|
913
|
+
}, "de_DeleteTagsCommand");
|
|
914
|
+
var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
915
|
+
const parsedOutput = {
|
|
916
|
+
...output,
|
|
917
|
+
body: await parseErrorBody(output.body, context)
|
|
918
|
+
};
|
|
919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
+
switch (errorCode) {
|
|
921
|
+
case "BadRequestException":
|
|
922
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
923
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
924
|
+
case "ForbiddenException":
|
|
925
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
926
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
927
|
+
case "InternalServerErrorException":
|
|
928
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
929
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
930
|
+
case "NotFoundException":
|
|
931
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
932
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
933
|
+
default:
|
|
934
|
+
const parsedBody = parsedOutput.body;
|
|
935
|
+
return throwDefaultError({
|
|
936
|
+
output,
|
|
937
|
+
parsedBody,
|
|
938
|
+
errorCode
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
}, "de_DeleteTagsCommandError");
|
|
942
|
+
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
+
return de_DeleteUserCommandError(output, context);
|
|
945
|
+
}
|
|
946
|
+
const contents = (0, import_smithy_client.map)({
|
|
947
|
+
$metadata: deserializeMetadata(output)
|
|
948
|
+
});
|
|
949
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
950
|
+
return contents;
|
|
951
|
+
}, "de_DeleteUserCommand");
|
|
952
|
+
var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
|
+
const parsedOutput = {
|
|
954
|
+
...output,
|
|
955
|
+
body: await parseErrorBody(output.body, context)
|
|
956
|
+
};
|
|
957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
switch (errorCode) {
|
|
959
|
+
case "BadRequestException":
|
|
960
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
961
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
962
|
+
case "ForbiddenException":
|
|
963
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
964
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
965
|
+
case "InternalServerErrorException":
|
|
966
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
967
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
968
|
+
case "NotFoundException":
|
|
969
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
970
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
971
|
+
default:
|
|
972
|
+
const parsedBody = parsedOutput.body;
|
|
973
|
+
return throwDefaultError({
|
|
974
|
+
output,
|
|
975
|
+
parsedBody,
|
|
976
|
+
errorCode
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
}, "de_DeleteUserCommandError");
|
|
980
|
+
var de_DescribeBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
+
return de_DescribeBrokerCommandError(output, context);
|
|
983
|
+
}
|
|
984
|
+
const contents = (0, import_smithy_client.map)({
|
|
985
|
+
$metadata: deserializeMetadata(output)
|
|
986
|
+
});
|
|
987
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
988
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
989
|
+
ActionsRequired: [, (_) => de___listOfActionRequired(_, context), `actionsRequired`],
|
|
990
|
+
AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
|
|
991
|
+
AutoMinorVersionUpgrade: [, import_smithy_client.expectBoolean, `autoMinorVersionUpgrade`],
|
|
992
|
+
BrokerArn: [, import_smithy_client.expectString, `brokerArn`],
|
|
993
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`],
|
|
994
|
+
BrokerInstances: [, (_) => de___listOfBrokerInstance(_, context), `brokerInstances`],
|
|
995
|
+
BrokerName: [, import_smithy_client.expectString, `brokerName`],
|
|
996
|
+
BrokerState: [, import_smithy_client.expectString, `brokerState`],
|
|
997
|
+
Configurations: [, (_) => de_Configurations(_, context), `configurations`],
|
|
998
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
999
|
+
DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_, context), `dataReplicationMetadata`],
|
|
1000
|
+
DataReplicationMode: [, import_smithy_client.expectString, `dataReplicationMode`],
|
|
1001
|
+
DeploymentMode: [, import_smithy_client.expectString, `deploymentMode`],
|
|
1002
|
+
EncryptionOptions: [, (_) => de_EncryptionOptions(_, context), `encryptionOptions`],
|
|
1003
|
+
EngineType: [, import_smithy_client.expectString, `engineType`],
|
|
1004
|
+
EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
|
|
1005
|
+
HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`],
|
|
1006
|
+
LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
|
|
1007
|
+
Logs: [, (_) => de_LogsSummary(_, context), `logs`],
|
|
1008
|
+
MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
|
|
1009
|
+
PendingAuthenticationStrategy: [, import_smithy_client.expectString, `pendingAuthenticationStrategy`],
|
|
1010
|
+
PendingDataReplicationMetadata: [
|
|
1011
|
+
,
|
|
1012
|
+
(_) => de_DataReplicationMetadataOutput(_, context),
|
|
1013
|
+
`pendingDataReplicationMetadata`
|
|
1014
|
+
],
|
|
1015
|
+
PendingDataReplicationMode: [, import_smithy_client.expectString, `pendingDataReplicationMode`],
|
|
1016
|
+
PendingEngineVersion: [, import_smithy_client.expectString, `pendingEngineVersion`],
|
|
1017
|
+
PendingHostInstanceType: [, import_smithy_client.expectString, `pendingHostInstanceType`],
|
|
1018
|
+
PendingLdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `pendingLdapServerMetadata`],
|
|
1019
|
+
PendingSecurityGroups: [, import_smithy_client._json, `pendingSecurityGroups`],
|
|
1020
|
+
PubliclyAccessible: [, import_smithy_client.expectBoolean, `publiclyAccessible`],
|
|
1021
|
+
SecurityGroups: [, import_smithy_client._json, `securityGroups`],
|
|
1022
|
+
StorageType: [, import_smithy_client.expectString, `storageType`],
|
|
1023
|
+
SubnetIds: [, import_smithy_client._json, `subnetIds`],
|
|
1024
|
+
Tags: [, import_smithy_client._json, `tags`],
|
|
1025
|
+
Users: [, (_) => de___listOfUserSummary(_, context), `users`]
|
|
1026
|
+
});
|
|
1027
|
+
Object.assign(contents, doc);
|
|
1028
|
+
return contents;
|
|
1029
|
+
}, "de_DescribeBrokerCommand");
|
|
1030
|
+
var de_DescribeBrokerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
|
+
const parsedOutput = {
|
|
1032
|
+
...output,
|
|
1033
|
+
body: await parseErrorBody(output.body, context)
|
|
1034
|
+
};
|
|
1035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
+
switch (errorCode) {
|
|
1037
|
+
case "BadRequestException":
|
|
1038
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1039
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1040
|
+
case "ForbiddenException":
|
|
1041
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1042
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1043
|
+
case "InternalServerErrorException":
|
|
1044
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1045
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1046
|
+
case "NotFoundException":
|
|
1047
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1048
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1049
|
+
default:
|
|
1050
|
+
const parsedBody = parsedOutput.body;
|
|
1051
|
+
return throwDefaultError({
|
|
1052
|
+
output,
|
|
1053
|
+
parsedBody,
|
|
1054
|
+
errorCode
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
}, "de_DescribeBrokerCommandError");
|
|
1058
|
+
var de_DescribeBrokerEngineTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1059
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1060
|
+
return de_DescribeBrokerEngineTypesCommandError(output, context);
|
|
1061
|
+
}
|
|
1062
|
+
const contents = (0, import_smithy_client.map)({
|
|
1063
|
+
$metadata: deserializeMetadata(output)
|
|
1064
|
+
});
|
|
1065
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1066
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1067
|
+
BrokerEngineTypes: [, (_) => de___listOfBrokerEngineType(_, context), `brokerEngineTypes`],
|
|
1068
|
+
MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
|
|
1069
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
1070
|
+
});
|
|
1071
|
+
Object.assign(contents, doc);
|
|
1072
|
+
return contents;
|
|
1073
|
+
}, "de_DescribeBrokerEngineTypesCommand");
|
|
1074
|
+
var de_DescribeBrokerEngineTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1075
|
+
const parsedOutput = {
|
|
1076
|
+
...output,
|
|
1077
|
+
body: await parseErrorBody(output.body, context)
|
|
1078
|
+
};
|
|
1079
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
|
+
switch (errorCode) {
|
|
1081
|
+
case "BadRequestException":
|
|
1082
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1083
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1084
|
+
case "ForbiddenException":
|
|
1085
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1086
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1087
|
+
case "InternalServerErrorException":
|
|
1088
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1089
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1090
|
+
default:
|
|
1091
|
+
const parsedBody = parsedOutput.body;
|
|
1092
|
+
return throwDefaultError({
|
|
1093
|
+
output,
|
|
1094
|
+
parsedBody,
|
|
1095
|
+
errorCode
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
}, "de_DescribeBrokerEngineTypesCommandError");
|
|
1099
|
+
var de_DescribeBrokerInstanceOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1100
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1101
|
+
return de_DescribeBrokerInstanceOptionsCommandError(output, context);
|
|
1102
|
+
}
|
|
1103
|
+
const contents = (0, import_smithy_client.map)({
|
|
1104
|
+
$metadata: deserializeMetadata(output)
|
|
1105
|
+
});
|
|
1106
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1107
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1108
|
+
BrokerInstanceOptions: [, (_) => de___listOfBrokerInstanceOption(_, context), `brokerInstanceOptions`],
|
|
1109
|
+
MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
|
|
1110
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
1111
|
+
});
|
|
1112
|
+
Object.assign(contents, doc);
|
|
1113
|
+
return contents;
|
|
1114
|
+
}, "de_DescribeBrokerInstanceOptionsCommand");
|
|
1115
|
+
var de_DescribeBrokerInstanceOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1116
|
+
const parsedOutput = {
|
|
1117
|
+
...output,
|
|
1118
|
+
body: await parseErrorBody(output.body, context)
|
|
1119
|
+
};
|
|
1120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
+
switch (errorCode) {
|
|
1122
|
+
case "BadRequestException":
|
|
1123
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1124
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1125
|
+
case "ForbiddenException":
|
|
1126
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1127
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1128
|
+
case "InternalServerErrorException":
|
|
1129
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1130
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1131
|
+
default:
|
|
1132
|
+
const parsedBody = parsedOutput.body;
|
|
1133
|
+
return throwDefaultError({
|
|
1134
|
+
output,
|
|
1135
|
+
parsedBody,
|
|
1136
|
+
errorCode
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
}, "de_DescribeBrokerInstanceOptionsCommandError");
|
|
1140
|
+
var de_DescribeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1141
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
+
return de_DescribeConfigurationCommandError(output, context);
|
|
1143
|
+
}
|
|
1144
|
+
const contents = (0, import_smithy_client.map)({
|
|
1145
|
+
$metadata: deserializeMetadata(output)
|
|
1146
|
+
});
|
|
1147
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1148
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1149
|
+
Arn: [, import_smithy_client.expectString, `arn`],
|
|
1150
|
+
AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
|
|
1151
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1152
|
+
Description: [, import_smithy_client.expectString, `description`],
|
|
1153
|
+
EngineType: [, import_smithy_client.expectString, `engineType`],
|
|
1154
|
+
EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
|
|
1155
|
+
Id: [, import_smithy_client.expectString, `id`],
|
|
1156
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
1157
|
+
Name: [, import_smithy_client.expectString, `name`],
|
|
1158
|
+
Tags: [, import_smithy_client._json, `tags`]
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
return contents;
|
|
1162
|
+
}, "de_DescribeConfigurationCommand");
|
|
1163
|
+
var de_DescribeConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1164
|
+
const parsedOutput = {
|
|
1165
|
+
...output,
|
|
1166
|
+
body: await parseErrorBody(output.body, context)
|
|
1167
|
+
};
|
|
1168
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
|
+
switch (errorCode) {
|
|
1170
|
+
case "BadRequestException":
|
|
1171
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1172
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1173
|
+
case "ForbiddenException":
|
|
1174
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1175
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1176
|
+
case "InternalServerErrorException":
|
|
1177
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1178
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1179
|
+
case "NotFoundException":
|
|
1180
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1181
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1182
|
+
default:
|
|
1183
|
+
const parsedBody = parsedOutput.body;
|
|
1184
|
+
return throwDefaultError({
|
|
1185
|
+
output,
|
|
1186
|
+
parsedBody,
|
|
1187
|
+
errorCode
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
}, "de_DescribeConfigurationCommandError");
|
|
1191
|
+
var de_DescribeConfigurationRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
+
return de_DescribeConfigurationRevisionCommandError(output, context);
|
|
1194
|
+
}
|
|
1195
|
+
const contents = (0, import_smithy_client.map)({
|
|
1196
|
+
$metadata: deserializeMetadata(output)
|
|
1197
|
+
});
|
|
1198
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1199
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1200
|
+
ConfigurationId: [, import_smithy_client.expectString, `configurationId`],
|
|
1201
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1202
|
+
Data: [, import_smithy_client.expectString, `data`],
|
|
1203
|
+
Description: [, import_smithy_client.expectString, `description`]
|
|
1204
|
+
});
|
|
1205
|
+
Object.assign(contents, doc);
|
|
1206
|
+
return contents;
|
|
1207
|
+
}, "de_DescribeConfigurationRevisionCommand");
|
|
1208
|
+
var de_DescribeConfigurationRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1209
|
+
const parsedOutput = {
|
|
1210
|
+
...output,
|
|
1211
|
+
body: await parseErrorBody(output.body, context)
|
|
1212
|
+
};
|
|
1213
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
+
switch (errorCode) {
|
|
1215
|
+
case "BadRequestException":
|
|
1216
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1217
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1218
|
+
case "ForbiddenException":
|
|
1219
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1220
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1221
|
+
case "InternalServerErrorException":
|
|
1222
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1223
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1224
|
+
case "NotFoundException":
|
|
1225
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1226
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1227
|
+
default:
|
|
1228
|
+
const parsedBody = parsedOutput.body;
|
|
1229
|
+
return throwDefaultError({
|
|
1230
|
+
output,
|
|
1231
|
+
parsedBody,
|
|
1232
|
+
errorCode
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
}, "de_DescribeConfigurationRevisionCommandError");
|
|
1236
|
+
var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1237
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
+
return de_DescribeUserCommandError(output, context);
|
|
1239
|
+
}
|
|
1240
|
+
const contents = (0, import_smithy_client.map)({
|
|
1241
|
+
$metadata: deserializeMetadata(output)
|
|
1242
|
+
});
|
|
1243
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1244
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1245
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`],
|
|
1246
|
+
ConsoleAccess: [, import_smithy_client.expectBoolean, `consoleAccess`],
|
|
1247
|
+
Groups: [, import_smithy_client._json, `groups`],
|
|
1248
|
+
Pending: [, (_) => de_UserPendingChanges(_, context), `pending`],
|
|
1249
|
+
ReplicationUser: [, import_smithy_client.expectBoolean, `replicationUser`],
|
|
1250
|
+
Username: [, import_smithy_client.expectString, `username`]
|
|
1251
|
+
});
|
|
1252
|
+
Object.assign(contents, doc);
|
|
1253
|
+
return contents;
|
|
1254
|
+
}, "de_DescribeUserCommand");
|
|
1255
|
+
var de_DescribeUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1256
|
+
const parsedOutput = {
|
|
1257
|
+
...output,
|
|
1258
|
+
body: await parseErrorBody(output.body, context)
|
|
1259
|
+
};
|
|
1260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
+
switch (errorCode) {
|
|
1262
|
+
case "BadRequestException":
|
|
1263
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1264
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1265
|
+
case "ForbiddenException":
|
|
1266
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1267
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1268
|
+
case "InternalServerErrorException":
|
|
1269
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1270
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1271
|
+
case "NotFoundException":
|
|
1272
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1273
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1274
|
+
default:
|
|
1275
|
+
const parsedBody = parsedOutput.body;
|
|
1276
|
+
return throwDefaultError({
|
|
1277
|
+
output,
|
|
1278
|
+
parsedBody,
|
|
1279
|
+
errorCode
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
}, "de_DescribeUserCommandError");
|
|
1283
|
+
var de_ListBrokersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1284
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1285
|
+
return de_ListBrokersCommandError(output, context);
|
|
1286
|
+
}
|
|
1287
|
+
const contents = (0, import_smithy_client.map)({
|
|
1288
|
+
$metadata: deserializeMetadata(output)
|
|
1289
|
+
});
|
|
1290
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1291
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1292
|
+
BrokerSummaries: [, (_) => de___listOfBrokerSummary(_, context), `brokerSummaries`],
|
|
1293
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
1294
|
+
});
|
|
1295
|
+
Object.assign(contents, doc);
|
|
1296
|
+
return contents;
|
|
1297
|
+
}, "de_ListBrokersCommand");
|
|
1298
|
+
var de_ListBrokersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1299
|
+
const parsedOutput = {
|
|
1300
|
+
...output,
|
|
1301
|
+
body: await parseErrorBody(output.body, context)
|
|
1302
|
+
};
|
|
1303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
+
switch (errorCode) {
|
|
1305
|
+
case "BadRequestException":
|
|
1306
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1307
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1308
|
+
case "ForbiddenException":
|
|
1309
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1310
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1311
|
+
case "InternalServerErrorException":
|
|
1312
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1313
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1314
|
+
default:
|
|
1315
|
+
const parsedBody = parsedOutput.body;
|
|
1316
|
+
return throwDefaultError({
|
|
1317
|
+
output,
|
|
1318
|
+
parsedBody,
|
|
1319
|
+
errorCode
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
}, "de_ListBrokersCommandError");
|
|
1323
|
+
var de_ListConfigurationRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1324
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1325
|
+
return de_ListConfigurationRevisionsCommandError(output, context);
|
|
1326
|
+
}
|
|
1327
|
+
const contents = (0, import_smithy_client.map)({
|
|
1328
|
+
$metadata: deserializeMetadata(output)
|
|
1329
|
+
});
|
|
1330
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1331
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1332
|
+
ConfigurationId: [, import_smithy_client.expectString, `configurationId`],
|
|
1333
|
+
MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
|
|
1334
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`],
|
|
1335
|
+
Revisions: [, (_) => de___listOfConfigurationRevision(_, context), `revisions`]
|
|
1336
|
+
});
|
|
1337
|
+
Object.assign(contents, doc);
|
|
1338
|
+
return contents;
|
|
1339
|
+
}, "de_ListConfigurationRevisionsCommand");
|
|
1340
|
+
var de_ListConfigurationRevisionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1341
|
+
const parsedOutput = {
|
|
1342
|
+
...output,
|
|
1343
|
+
body: await parseErrorBody(output.body, context)
|
|
1344
|
+
};
|
|
1345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
|
+
switch (errorCode) {
|
|
1347
|
+
case "BadRequestException":
|
|
1348
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1349
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1350
|
+
case "ForbiddenException":
|
|
1351
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1352
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1353
|
+
case "InternalServerErrorException":
|
|
1354
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1355
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1356
|
+
case "NotFoundException":
|
|
1357
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1358
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1359
|
+
default:
|
|
1360
|
+
const parsedBody = parsedOutput.body;
|
|
1361
|
+
return throwDefaultError({
|
|
1362
|
+
output,
|
|
1363
|
+
parsedBody,
|
|
1364
|
+
errorCode
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
}, "de_ListConfigurationRevisionsCommandError");
|
|
1368
|
+
var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1369
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
+
return de_ListConfigurationsCommandError(output, context);
|
|
1371
|
+
}
|
|
1372
|
+
const contents = (0, import_smithy_client.map)({
|
|
1373
|
+
$metadata: deserializeMetadata(output)
|
|
1374
|
+
});
|
|
1375
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1376
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1377
|
+
Configurations: [, (_) => de___listOfConfiguration(_, context), `configurations`],
|
|
1378
|
+
MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
|
|
1379
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`]
|
|
1380
|
+
});
|
|
1381
|
+
Object.assign(contents, doc);
|
|
1382
|
+
return contents;
|
|
1383
|
+
}, "de_ListConfigurationsCommand");
|
|
1384
|
+
var de_ListConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1385
|
+
const parsedOutput = {
|
|
1386
|
+
...output,
|
|
1387
|
+
body: await parseErrorBody(output.body, context)
|
|
1388
|
+
};
|
|
1389
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
|
+
switch (errorCode) {
|
|
1391
|
+
case "BadRequestException":
|
|
1392
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1393
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1394
|
+
case "ForbiddenException":
|
|
1395
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1396
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1397
|
+
case "InternalServerErrorException":
|
|
1398
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1399
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1400
|
+
default:
|
|
1401
|
+
const parsedBody = parsedOutput.body;
|
|
1402
|
+
return throwDefaultError({
|
|
1403
|
+
output,
|
|
1404
|
+
parsedBody,
|
|
1405
|
+
errorCode
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
}, "de_ListConfigurationsCommandError");
|
|
1409
|
+
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1410
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
|
+
return de_ListTagsCommandError(output, context);
|
|
1412
|
+
}
|
|
1413
|
+
const contents = (0, import_smithy_client.map)({
|
|
1414
|
+
$metadata: deserializeMetadata(output)
|
|
1415
|
+
});
|
|
1416
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1417
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1418
|
+
Tags: [, import_smithy_client._json, `tags`]
|
|
1419
|
+
});
|
|
1420
|
+
Object.assign(contents, doc);
|
|
1421
|
+
return contents;
|
|
1422
|
+
}, "de_ListTagsCommand");
|
|
1423
|
+
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1424
|
+
const parsedOutput = {
|
|
1425
|
+
...output,
|
|
1426
|
+
body: await parseErrorBody(output.body, context)
|
|
1427
|
+
};
|
|
1428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
+
switch (errorCode) {
|
|
1430
|
+
case "BadRequestException":
|
|
1431
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1432
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1433
|
+
case "ForbiddenException":
|
|
1434
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1435
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1436
|
+
case "InternalServerErrorException":
|
|
1437
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1438
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1439
|
+
case "NotFoundException":
|
|
1440
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1441
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1442
|
+
default:
|
|
1443
|
+
const parsedBody = parsedOutput.body;
|
|
1444
|
+
return throwDefaultError({
|
|
1445
|
+
output,
|
|
1446
|
+
parsedBody,
|
|
1447
|
+
errorCode
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
}, "de_ListTagsCommandError");
|
|
1451
|
+
var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1452
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1453
|
+
return de_ListUsersCommandError(output, context);
|
|
1454
|
+
}
|
|
1455
|
+
const contents = (0, import_smithy_client.map)({
|
|
1456
|
+
$metadata: deserializeMetadata(output)
|
|
1457
|
+
});
|
|
1458
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1459
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1460
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`],
|
|
1461
|
+
MaxResults: [, import_smithy_client.expectInt32, `maxResults`],
|
|
1462
|
+
NextToken: [, import_smithy_client.expectString, `nextToken`],
|
|
1463
|
+
Users: [, (_) => de___listOfUserSummary(_, context), `users`]
|
|
1464
|
+
});
|
|
1465
|
+
Object.assign(contents, doc);
|
|
1466
|
+
return contents;
|
|
1467
|
+
}, "de_ListUsersCommand");
|
|
1468
|
+
var de_ListUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1469
|
+
const parsedOutput = {
|
|
1470
|
+
...output,
|
|
1471
|
+
body: await parseErrorBody(output.body, context)
|
|
1472
|
+
};
|
|
1473
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
+
switch (errorCode) {
|
|
1475
|
+
case "BadRequestException":
|
|
1476
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1477
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "ForbiddenException":
|
|
1479
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1480
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1481
|
+
case "InternalServerErrorException":
|
|
1482
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1483
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1484
|
+
case "NotFoundException":
|
|
1485
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1486
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1487
|
+
default:
|
|
1488
|
+
const parsedBody = parsedOutput.body;
|
|
1489
|
+
return throwDefaultError({
|
|
1490
|
+
output,
|
|
1491
|
+
parsedBody,
|
|
1492
|
+
errorCode
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
}, "de_ListUsersCommandError");
|
|
1496
|
+
var de_PromoteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1497
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
+
return de_PromoteCommandError(output, context);
|
|
1499
|
+
}
|
|
1500
|
+
const contents = (0, import_smithy_client.map)({
|
|
1501
|
+
$metadata: deserializeMetadata(output)
|
|
1502
|
+
});
|
|
1503
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1505
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`]
|
|
1506
|
+
});
|
|
1507
|
+
Object.assign(contents, doc);
|
|
1508
|
+
return contents;
|
|
1509
|
+
}, "de_PromoteCommand");
|
|
1510
|
+
var de_PromoteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1511
|
+
const parsedOutput = {
|
|
1512
|
+
...output,
|
|
1513
|
+
body: await parseErrorBody(output.body, context)
|
|
1514
|
+
};
|
|
1515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
+
switch (errorCode) {
|
|
1517
|
+
case "BadRequestException":
|
|
1518
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1519
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1520
|
+
case "ForbiddenException":
|
|
1521
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1522
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1523
|
+
case "InternalServerErrorException":
|
|
1524
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1525
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1526
|
+
case "NotFoundException":
|
|
1527
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1528
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1529
|
+
default:
|
|
1530
|
+
const parsedBody = parsedOutput.body;
|
|
1531
|
+
return throwDefaultError({
|
|
1532
|
+
output,
|
|
1533
|
+
parsedBody,
|
|
1534
|
+
errorCode
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
}, "de_PromoteCommandError");
|
|
1538
|
+
var de_RebootBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1539
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1540
|
+
return de_RebootBrokerCommandError(output, context);
|
|
1541
|
+
}
|
|
1542
|
+
const contents = (0, import_smithy_client.map)({
|
|
1543
|
+
$metadata: deserializeMetadata(output)
|
|
1544
|
+
});
|
|
1545
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1546
|
+
return contents;
|
|
1547
|
+
}, "de_RebootBrokerCommand");
|
|
1548
|
+
var de_RebootBrokerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
|
+
const parsedOutput = {
|
|
1550
|
+
...output,
|
|
1551
|
+
body: await parseErrorBody(output.body, context)
|
|
1552
|
+
};
|
|
1553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
+
switch (errorCode) {
|
|
1555
|
+
case "BadRequestException":
|
|
1556
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1557
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1558
|
+
case "ForbiddenException":
|
|
1559
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1560
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1561
|
+
case "InternalServerErrorException":
|
|
1562
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1563
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1564
|
+
case "NotFoundException":
|
|
1565
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1566
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1567
|
+
default:
|
|
1568
|
+
const parsedBody = parsedOutput.body;
|
|
1569
|
+
return throwDefaultError({
|
|
1570
|
+
output,
|
|
1571
|
+
parsedBody,
|
|
1572
|
+
errorCode
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
}, "de_RebootBrokerCommandError");
|
|
1576
|
+
var de_UpdateBrokerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1577
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1578
|
+
return de_UpdateBrokerCommandError(output, context);
|
|
1579
|
+
}
|
|
1580
|
+
const contents = (0, import_smithy_client.map)({
|
|
1581
|
+
$metadata: deserializeMetadata(output)
|
|
1582
|
+
});
|
|
1583
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1584
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1585
|
+
AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
|
|
1586
|
+
AutoMinorVersionUpgrade: [, import_smithy_client.expectBoolean, `autoMinorVersionUpgrade`],
|
|
1587
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`],
|
|
1588
|
+
Configuration: [, (_) => de_ConfigurationId(_, context), `configuration`],
|
|
1589
|
+
DataReplicationMetadata: [, (_) => de_DataReplicationMetadataOutput(_, context), `dataReplicationMetadata`],
|
|
1590
|
+
DataReplicationMode: [, import_smithy_client.expectString, `dataReplicationMode`],
|
|
1591
|
+
EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
|
|
1592
|
+
HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`],
|
|
1593
|
+
LdapServerMetadata: [, (_) => de_LdapServerMetadataOutput(_, context), `ldapServerMetadata`],
|
|
1594
|
+
Logs: [, (_) => de_Logs(_, context), `logs`],
|
|
1595
|
+
MaintenanceWindowStartTime: [, (_) => de_WeeklyStartTime(_, context), `maintenanceWindowStartTime`],
|
|
1596
|
+
PendingDataReplicationMetadata: [
|
|
1597
|
+
,
|
|
1598
|
+
(_) => de_DataReplicationMetadataOutput(_, context),
|
|
1599
|
+
`pendingDataReplicationMetadata`
|
|
1600
|
+
],
|
|
1601
|
+
PendingDataReplicationMode: [, import_smithy_client.expectString, `pendingDataReplicationMode`],
|
|
1602
|
+
SecurityGroups: [, import_smithy_client._json, `securityGroups`]
|
|
1603
|
+
});
|
|
1604
|
+
Object.assign(contents, doc);
|
|
1605
|
+
return contents;
|
|
1606
|
+
}, "de_UpdateBrokerCommand");
|
|
1607
|
+
var de_UpdateBrokerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
|
+
const parsedOutput = {
|
|
1609
|
+
...output,
|
|
1610
|
+
body: await parseErrorBody(output.body, context)
|
|
1611
|
+
};
|
|
1612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
+
switch (errorCode) {
|
|
1614
|
+
case "BadRequestException":
|
|
1615
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1616
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1617
|
+
case "ConflictException":
|
|
1618
|
+
case "com.amazonaws.mq#ConflictException":
|
|
1619
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1620
|
+
case "ForbiddenException":
|
|
1621
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1622
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1623
|
+
case "InternalServerErrorException":
|
|
1624
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1625
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1626
|
+
case "NotFoundException":
|
|
1627
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1628
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1629
|
+
default:
|
|
1630
|
+
const parsedBody = parsedOutput.body;
|
|
1631
|
+
return throwDefaultError({
|
|
1632
|
+
output,
|
|
1633
|
+
parsedBody,
|
|
1634
|
+
errorCode
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
}, "de_UpdateBrokerCommandError");
|
|
1638
|
+
var de_UpdateConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1639
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
|
+
return de_UpdateConfigurationCommandError(output, context);
|
|
1641
|
+
}
|
|
1642
|
+
const contents = (0, import_smithy_client.map)({
|
|
1643
|
+
$metadata: deserializeMetadata(output)
|
|
1644
|
+
});
|
|
1645
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1646
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1647
|
+
Arn: [, import_smithy_client.expectString, `arn`],
|
|
1648
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1649
|
+
Id: [, import_smithy_client.expectString, `id`],
|
|
1650
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
1651
|
+
Name: [, import_smithy_client.expectString, `name`],
|
|
1652
|
+
Warnings: [, (_) => de___listOfSanitizationWarning(_, context), `warnings`]
|
|
1653
|
+
});
|
|
1654
|
+
Object.assign(contents, doc);
|
|
1655
|
+
return contents;
|
|
1656
|
+
}, "de_UpdateConfigurationCommand");
|
|
1657
|
+
var de_UpdateConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
|
+
const parsedOutput = {
|
|
1659
|
+
...output,
|
|
1660
|
+
body: await parseErrorBody(output.body, context)
|
|
1661
|
+
};
|
|
1662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
+
switch (errorCode) {
|
|
1664
|
+
case "BadRequestException":
|
|
1665
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1666
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1667
|
+
case "ConflictException":
|
|
1668
|
+
case "com.amazonaws.mq#ConflictException":
|
|
1669
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1670
|
+
case "ForbiddenException":
|
|
1671
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1672
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1673
|
+
case "InternalServerErrorException":
|
|
1674
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1675
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1676
|
+
case "NotFoundException":
|
|
1677
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1678
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1679
|
+
default:
|
|
1680
|
+
const parsedBody = parsedOutput.body;
|
|
1681
|
+
return throwDefaultError({
|
|
1682
|
+
output,
|
|
1683
|
+
parsedBody,
|
|
1684
|
+
errorCode
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
}, "de_UpdateConfigurationCommandError");
|
|
1688
|
+
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1689
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1690
|
+
return de_UpdateUserCommandError(output, context);
|
|
1691
|
+
}
|
|
1692
|
+
const contents = (0, import_smithy_client.map)({
|
|
1693
|
+
$metadata: deserializeMetadata(output)
|
|
1694
|
+
});
|
|
1695
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1696
|
+
return contents;
|
|
1697
|
+
}, "de_UpdateUserCommand");
|
|
1698
|
+
var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1699
|
+
const parsedOutput = {
|
|
1700
|
+
...output,
|
|
1701
|
+
body: await parseErrorBody(output.body, context)
|
|
1702
|
+
};
|
|
1703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
+
switch (errorCode) {
|
|
1705
|
+
case "BadRequestException":
|
|
1706
|
+
case "com.amazonaws.mq#BadRequestException":
|
|
1707
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1708
|
+
case "ConflictException":
|
|
1709
|
+
case "com.amazonaws.mq#ConflictException":
|
|
1710
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1711
|
+
case "ForbiddenException":
|
|
1712
|
+
case "com.amazonaws.mq#ForbiddenException":
|
|
1713
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1714
|
+
case "InternalServerErrorException":
|
|
1715
|
+
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1716
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1717
|
+
case "NotFoundException":
|
|
1718
|
+
case "com.amazonaws.mq#NotFoundException":
|
|
1719
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1720
|
+
default:
|
|
1721
|
+
const parsedBody = parsedOutput.body;
|
|
1722
|
+
return throwDefaultError({
|
|
1723
|
+
output,
|
|
1724
|
+
parsedBody,
|
|
1725
|
+
errorCode
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
}, "de_UpdateUserCommandError");
|
|
1729
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(MqServiceException);
|
|
1730
|
+
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1731
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1732
|
+
const data = parsedOutput.body;
|
|
1733
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1734
|
+
ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
|
|
1735
|
+
Message: [, import_smithy_client.expectString, `message`]
|
|
1736
|
+
});
|
|
1737
|
+
Object.assign(contents, doc);
|
|
1738
|
+
const exception = new BadRequestException({
|
|
1739
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1740
|
+
...contents
|
|
1741
|
+
});
|
|
1742
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1743
|
+
}, "de_BadRequestExceptionRes");
|
|
1744
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1745
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1746
|
+
const data = parsedOutput.body;
|
|
1747
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1748
|
+
ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
|
|
1749
|
+
Message: [, import_smithy_client.expectString, `message`]
|
|
1750
|
+
});
|
|
1751
|
+
Object.assign(contents, doc);
|
|
1752
|
+
const exception = new ConflictException({
|
|
1753
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1754
|
+
...contents
|
|
1755
|
+
});
|
|
1756
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1757
|
+
}, "de_ConflictExceptionRes");
|
|
1758
|
+
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1759
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1760
|
+
const data = parsedOutput.body;
|
|
1761
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1762
|
+
ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
|
|
1763
|
+
Message: [, import_smithy_client.expectString, `message`]
|
|
1764
|
+
});
|
|
1765
|
+
Object.assign(contents, doc);
|
|
1766
|
+
const exception = new ForbiddenException({
|
|
1767
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1768
|
+
...contents
|
|
1769
|
+
});
|
|
1770
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1771
|
+
}, "de_ForbiddenExceptionRes");
|
|
1772
|
+
var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1773
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1774
|
+
const data = parsedOutput.body;
|
|
1775
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1776
|
+
ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
|
|
1777
|
+
Message: [, import_smithy_client.expectString, `message`]
|
|
1778
|
+
});
|
|
1779
|
+
Object.assign(contents, doc);
|
|
1780
|
+
const exception = new InternalServerErrorException({
|
|
1781
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1782
|
+
...contents
|
|
1783
|
+
});
|
|
1784
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1785
|
+
}, "de_InternalServerErrorExceptionRes");
|
|
1786
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1787
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1788
|
+
const data = parsedOutput.body;
|
|
1789
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1790
|
+
ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
|
|
1791
|
+
Message: [, import_smithy_client.expectString, `message`]
|
|
1792
|
+
});
|
|
1793
|
+
Object.assign(contents, doc);
|
|
1794
|
+
const exception = new NotFoundException({
|
|
1795
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1796
|
+
...contents
|
|
1797
|
+
});
|
|
1798
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1799
|
+
}, "de_NotFoundExceptionRes");
|
|
1800
|
+
var de_UnauthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1801
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1802
|
+
const data = parsedOutput.body;
|
|
1803
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1804
|
+
ErrorAttribute: [, import_smithy_client.expectString, `errorAttribute`],
|
|
1805
|
+
Message: [, import_smithy_client.expectString, `message`]
|
|
1806
|
+
});
|
|
1807
|
+
Object.assign(contents, doc);
|
|
1808
|
+
const exception = new UnauthorizedException({
|
|
1809
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1810
|
+
...contents
|
|
1811
|
+
});
|
|
1812
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1813
|
+
}, "de_UnauthorizedExceptionRes");
|
|
1814
|
+
var se___listOfUser = /* @__PURE__ */ __name((input, context) => {
|
|
1815
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
1816
|
+
return se_User(entry, context);
|
|
1817
|
+
});
|
|
1818
|
+
}, "se___listOfUser");
|
|
1819
|
+
var se_ConfigurationId = /* @__PURE__ */ __name((input, context) => {
|
|
1820
|
+
return (0, import_smithy_client.take)(input, {
|
|
1821
|
+
id: [, , `Id`],
|
|
1822
|
+
revision: [, , `Revision`]
|
|
1823
|
+
});
|
|
1824
|
+
}, "se_ConfigurationId");
|
|
1825
|
+
var se_EncryptionOptions = /* @__PURE__ */ __name((input, context) => {
|
|
1826
|
+
return (0, import_smithy_client.take)(input, {
|
|
1827
|
+
kmsKeyId: [, , `KmsKeyId`],
|
|
1828
|
+
useAwsOwnedKey: [, , `UseAwsOwnedKey`]
|
|
1829
|
+
});
|
|
1830
|
+
}, "se_EncryptionOptions");
|
|
1831
|
+
var se_LdapServerMetadataInput = /* @__PURE__ */ __name((input, context) => {
|
|
1832
|
+
return (0, import_smithy_client.take)(input, {
|
|
1833
|
+
hosts: [, import_smithy_client._json, `Hosts`],
|
|
1834
|
+
roleBase: [, , `RoleBase`],
|
|
1835
|
+
roleName: [, , `RoleName`],
|
|
1836
|
+
roleSearchMatching: [, , `RoleSearchMatching`],
|
|
1837
|
+
roleSearchSubtree: [, , `RoleSearchSubtree`],
|
|
1838
|
+
serviceAccountPassword: [, , `ServiceAccountPassword`],
|
|
1839
|
+
serviceAccountUsername: [, , `ServiceAccountUsername`],
|
|
1840
|
+
userBase: [, , `UserBase`],
|
|
1841
|
+
userRoleName: [, , `UserRoleName`],
|
|
1842
|
+
userSearchMatching: [, , `UserSearchMatching`],
|
|
1843
|
+
userSearchSubtree: [, , `UserSearchSubtree`]
|
|
1844
|
+
});
|
|
1845
|
+
}, "se_LdapServerMetadataInput");
|
|
1846
|
+
var se_Logs = /* @__PURE__ */ __name((input, context) => {
|
|
1847
|
+
return (0, import_smithy_client.take)(input, {
|
|
1848
|
+
audit: [, , `Audit`],
|
|
1849
|
+
general: [, , `General`]
|
|
1850
|
+
});
|
|
1851
|
+
}, "se_Logs");
|
|
1852
|
+
var se_User = /* @__PURE__ */ __name((input, context) => {
|
|
1853
|
+
return (0, import_smithy_client.take)(input, {
|
|
1854
|
+
consoleAccess: [, , `ConsoleAccess`],
|
|
1855
|
+
groups: [, import_smithy_client._json, `Groups`],
|
|
1856
|
+
password: [, , `Password`],
|
|
1857
|
+
replicationUser: [, , `ReplicationUser`],
|
|
1858
|
+
username: [, , `Username`]
|
|
1859
|
+
});
|
|
1860
|
+
}, "se_User");
|
|
1861
|
+
var se_WeeklyStartTime = /* @__PURE__ */ __name((input, context) => {
|
|
1862
|
+
return (0, import_smithy_client.take)(input, {
|
|
1863
|
+
dayOfWeek: [, , `DayOfWeek`],
|
|
1864
|
+
timeOfDay: [, , `TimeOfDay`],
|
|
1865
|
+
timeZone: [, , `TimeZone`]
|
|
1866
|
+
});
|
|
1867
|
+
}, "se_WeeklyStartTime");
|
|
1868
|
+
var de___listOfActionRequired = /* @__PURE__ */ __name((output, context) => {
|
|
1869
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1870
|
+
return de_ActionRequired(entry, context);
|
|
1871
|
+
});
|
|
1872
|
+
return retVal;
|
|
1873
|
+
}, "de___listOfActionRequired");
|
|
1874
|
+
var de___listOfAvailabilityZone = /* @__PURE__ */ __name((output, context) => {
|
|
1875
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1876
|
+
return de_AvailabilityZone(entry, context);
|
|
1877
|
+
});
|
|
1878
|
+
return retVal;
|
|
1879
|
+
}, "de___listOfAvailabilityZone");
|
|
1880
|
+
var de___listOfBrokerEngineType = /* @__PURE__ */ __name((output, context) => {
|
|
1881
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1882
|
+
return de_BrokerEngineType(entry, context);
|
|
1883
|
+
});
|
|
1884
|
+
return retVal;
|
|
1885
|
+
}, "de___listOfBrokerEngineType");
|
|
1886
|
+
var de___listOfBrokerInstance = /* @__PURE__ */ __name((output, context) => {
|
|
1887
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1888
|
+
return de_BrokerInstance(entry, context);
|
|
1889
|
+
});
|
|
1890
|
+
return retVal;
|
|
1891
|
+
}, "de___listOfBrokerInstance");
|
|
1892
|
+
var de___listOfBrokerInstanceOption = /* @__PURE__ */ __name((output, context) => {
|
|
1893
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1894
|
+
return de_BrokerInstanceOption(entry, context);
|
|
1895
|
+
});
|
|
1896
|
+
return retVal;
|
|
1897
|
+
}, "de___listOfBrokerInstanceOption");
|
|
1898
|
+
var de___listOfBrokerSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1899
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1900
|
+
return de_BrokerSummary(entry, context);
|
|
1901
|
+
});
|
|
1902
|
+
return retVal;
|
|
1903
|
+
}, "de___listOfBrokerSummary");
|
|
1904
|
+
var de___listOfConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1905
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1906
|
+
return de_Configuration(entry, context);
|
|
1907
|
+
});
|
|
1908
|
+
return retVal;
|
|
1909
|
+
}, "de___listOfConfiguration");
|
|
1910
|
+
var de___listOfConfigurationId = /* @__PURE__ */ __name((output, context) => {
|
|
1911
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1912
|
+
return de_ConfigurationId(entry, context);
|
|
1913
|
+
});
|
|
1914
|
+
return retVal;
|
|
1915
|
+
}, "de___listOfConfigurationId");
|
|
1916
|
+
var de___listOfConfigurationRevision = /* @__PURE__ */ __name((output, context) => {
|
|
1917
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1918
|
+
return de_ConfigurationRevision(entry, context);
|
|
1919
|
+
});
|
|
1920
|
+
return retVal;
|
|
1921
|
+
}, "de___listOfConfigurationRevision");
|
|
1922
|
+
var de___listOfEngineVersion = /* @__PURE__ */ __name((output, context) => {
|
|
1923
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1924
|
+
return de_EngineVersion(entry, context);
|
|
1925
|
+
});
|
|
1926
|
+
return retVal;
|
|
1927
|
+
}, "de___listOfEngineVersion");
|
|
1928
|
+
var de___listOfSanitizationWarning = /* @__PURE__ */ __name((output, context) => {
|
|
1929
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1930
|
+
return de_SanitizationWarning(entry, context);
|
|
1931
|
+
});
|
|
1932
|
+
return retVal;
|
|
1933
|
+
}, "de___listOfSanitizationWarning");
|
|
1934
|
+
var de___listOfUserSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1935
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1936
|
+
return de_UserSummary(entry, context);
|
|
1937
|
+
});
|
|
1938
|
+
return retVal;
|
|
1939
|
+
}, "de___listOfUserSummary");
|
|
1940
|
+
var de_ActionRequired = /* @__PURE__ */ __name((output, context) => {
|
|
1941
|
+
return (0, import_smithy_client.take)(output, {
|
|
1942
|
+
ActionRequiredCode: [, import_smithy_client.expectString, `actionRequiredCode`],
|
|
1943
|
+
ActionRequiredInfo: [, import_smithy_client.expectString, `actionRequiredInfo`]
|
|
1944
|
+
});
|
|
1945
|
+
}, "de_ActionRequired");
|
|
1946
|
+
var de_AvailabilityZone = /* @__PURE__ */ __name((output, context) => {
|
|
1947
|
+
return (0, import_smithy_client.take)(output, {
|
|
1948
|
+
Name: [, import_smithy_client.expectString, `name`]
|
|
1949
|
+
});
|
|
1950
|
+
}, "de_AvailabilityZone");
|
|
1951
|
+
var de_BrokerEngineType = /* @__PURE__ */ __name((output, context) => {
|
|
1952
|
+
return (0, import_smithy_client.take)(output, {
|
|
1953
|
+
EngineType: [, import_smithy_client.expectString, `engineType`],
|
|
1954
|
+
EngineVersions: [, (_) => de___listOfEngineVersion(_, context), `engineVersions`]
|
|
1955
|
+
});
|
|
1956
|
+
}, "de_BrokerEngineType");
|
|
1957
|
+
var de_BrokerInstance = /* @__PURE__ */ __name((output, context) => {
|
|
1958
|
+
return (0, import_smithy_client.take)(output, {
|
|
1959
|
+
ConsoleURL: [, import_smithy_client.expectString, `consoleURL`],
|
|
1960
|
+
Endpoints: [, import_smithy_client._json, `endpoints`],
|
|
1961
|
+
IpAddress: [, import_smithy_client.expectString, `ipAddress`]
|
|
1962
|
+
});
|
|
1963
|
+
}, "de_BrokerInstance");
|
|
1964
|
+
var de_BrokerInstanceOption = /* @__PURE__ */ __name((output, context) => {
|
|
1965
|
+
return (0, import_smithy_client.take)(output, {
|
|
1966
|
+
AvailabilityZones: [, (_) => de___listOfAvailabilityZone(_, context), `availabilityZones`],
|
|
1967
|
+
EngineType: [, import_smithy_client.expectString, `engineType`],
|
|
1968
|
+
HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`],
|
|
1969
|
+
StorageType: [, import_smithy_client.expectString, `storageType`],
|
|
1970
|
+
SupportedDeploymentModes: [, import_smithy_client._json, `supportedDeploymentModes`],
|
|
1971
|
+
SupportedEngineVersions: [, import_smithy_client._json, `supportedEngineVersions`]
|
|
1972
|
+
});
|
|
1973
|
+
}, "de_BrokerInstanceOption");
|
|
1974
|
+
var de_BrokerSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1975
|
+
return (0, import_smithy_client.take)(output, {
|
|
1976
|
+
BrokerArn: [, import_smithy_client.expectString, `brokerArn`],
|
|
1977
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`],
|
|
1978
|
+
BrokerName: [, import_smithy_client.expectString, `brokerName`],
|
|
1979
|
+
BrokerState: [, import_smithy_client.expectString, `brokerState`],
|
|
1980
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1981
|
+
DeploymentMode: [, import_smithy_client.expectString, `deploymentMode`],
|
|
1982
|
+
EngineType: [, import_smithy_client.expectString, `engineType`],
|
|
1983
|
+
HostInstanceType: [, import_smithy_client.expectString, `hostInstanceType`]
|
|
1984
|
+
});
|
|
1985
|
+
}, "de_BrokerSummary");
|
|
1986
|
+
var de_Configuration = /* @__PURE__ */ __name((output, context) => {
|
|
1987
|
+
return (0, import_smithy_client.take)(output, {
|
|
1988
|
+
Arn: [, import_smithy_client.expectString, `arn`],
|
|
1989
|
+
AuthenticationStrategy: [, import_smithy_client.expectString, `authenticationStrategy`],
|
|
1990
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
1991
|
+
Description: [, import_smithy_client.expectString, `description`],
|
|
1992
|
+
EngineType: [, import_smithy_client.expectString, `engineType`],
|
|
1993
|
+
EngineVersion: [, import_smithy_client.expectString, `engineVersion`],
|
|
1994
|
+
Id: [, import_smithy_client.expectString, `id`],
|
|
1995
|
+
LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
|
|
1996
|
+
Name: [, import_smithy_client.expectString, `name`],
|
|
1997
|
+
Tags: [, import_smithy_client._json, `tags`]
|
|
1998
|
+
});
|
|
1999
|
+
}, "de_Configuration");
|
|
2000
|
+
var de_ConfigurationId = /* @__PURE__ */ __name((output, context) => {
|
|
2001
|
+
return (0, import_smithy_client.take)(output, {
|
|
2002
|
+
Id: [, import_smithy_client.expectString, `id`],
|
|
2003
|
+
Revision: [, import_smithy_client.expectInt32, `revision`]
|
|
2004
|
+
});
|
|
2005
|
+
}, "de_ConfigurationId");
|
|
2006
|
+
var de_ConfigurationRevision = /* @__PURE__ */ __name((output, context) => {
|
|
2007
|
+
return (0, import_smithy_client.take)(output, {
|
|
2008
|
+
Created: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `created`],
|
|
2009
|
+
Description: [, import_smithy_client.expectString, `description`],
|
|
2010
|
+
Revision: [, import_smithy_client.expectInt32, `revision`]
|
|
2011
|
+
});
|
|
2012
|
+
}, "de_ConfigurationRevision");
|
|
2013
|
+
var de_Configurations = /* @__PURE__ */ __name((output, context) => {
|
|
2014
|
+
return (0, import_smithy_client.take)(output, {
|
|
2015
|
+
Current: [, (_) => de_ConfigurationId(_, context), `current`],
|
|
2016
|
+
History: [, (_) => de___listOfConfigurationId(_, context), `history`],
|
|
2017
|
+
Pending: [, (_) => de_ConfigurationId(_, context), `pending`]
|
|
2018
|
+
});
|
|
2019
|
+
}, "de_Configurations");
|
|
2020
|
+
var de_DataReplicationCounterpart = /* @__PURE__ */ __name((output, context) => {
|
|
2021
|
+
return (0, import_smithy_client.take)(output, {
|
|
2022
|
+
BrokerId: [, import_smithy_client.expectString, `brokerId`],
|
|
2023
|
+
Region: [, import_smithy_client.expectString, `region`]
|
|
2024
|
+
});
|
|
2025
|
+
}, "de_DataReplicationCounterpart");
|
|
2026
|
+
var de_DataReplicationMetadataOutput = /* @__PURE__ */ __name((output, context) => {
|
|
2027
|
+
return (0, import_smithy_client.take)(output, {
|
|
2028
|
+
DataReplicationCounterpart: [, (_) => de_DataReplicationCounterpart(_, context), `dataReplicationCounterpart`],
|
|
2029
|
+
DataReplicationRole: [, import_smithy_client.expectString, `dataReplicationRole`]
|
|
2030
|
+
});
|
|
2031
|
+
}, "de_DataReplicationMetadataOutput");
|
|
2032
|
+
var de_EncryptionOptions = /* @__PURE__ */ __name((output, context) => {
|
|
2033
|
+
return (0, import_smithy_client.take)(output, {
|
|
2034
|
+
KmsKeyId: [, import_smithy_client.expectString, `kmsKeyId`],
|
|
2035
|
+
UseAwsOwnedKey: [, import_smithy_client.expectBoolean, `useAwsOwnedKey`]
|
|
2036
|
+
});
|
|
2037
|
+
}, "de_EncryptionOptions");
|
|
2038
|
+
var de_EngineVersion = /* @__PURE__ */ __name((output, context) => {
|
|
2039
|
+
return (0, import_smithy_client.take)(output, {
|
|
2040
|
+
Name: [, import_smithy_client.expectString, `name`]
|
|
2041
|
+
});
|
|
2042
|
+
}, "de_EngineVersion");
|
|
2043
|
+
var de_LdapServerMetadataOutput = /* @__PURE__ */ __name((output, context) => {
|
|
2044
|
+
return (0, import_smithy_client.take)(output, {
|
|
2045
|
+
Hosts: [, import_smithy_client._json, `hosts`],
|
|
2046
|
+
RoleBase: [, import_smithy_client.expectString, `roleBase`],
|
|
2047
|
+
RoleName: [, import_smithy_client.expectString, `roleName`],
|
|
2048
|
+
RoleSearchMatching: [, import_smithy_client.expectString, `roleSearchMatching`],
|
|
2049
|
+
RoleSearchSubtree: [, import_smithy_client.expectBoolean, `roleSearchSubtree`],
|
|
2050
|
+
ServiceAccountUsername: [, import_smithy_client.expectString, `serviceAccountUsername`],
|
|
2051
|
+
UserBase: [, import_smithy_client.expectString, `userBase`],
|
|
2052
|
+
UserRoleName: [, import_smithy_client.expectString, `userRoleName`],
|
|
2053
|
+
UserSearchMatching: [, import_smithy_client.expectString, `userSearchMatching`],
|
|
2054
|
+
UserSearchSubtree: [, import_smithy_client.expectBoolean, `userSearchSubtree`]
|
|
2055
|
+
});
|
|
2056
|
+
}, "de_LdapServerMetadataOutput");
|
|
2057
|
+
var de_Logs = /* @__PURE__ */ __name((output, context) => {
|
|
2058
|
+
return (0, import_smithy_client.take)(output, {
|
|
2059
|
+
Audit: [, import_smithy_client.expectBoolean, `audit`],
|
|
2060
|
+
General: [, import_smithy_client.expectBoolean, `general`]
|
|
2061
|
+
});
|
|
2062
|
+
}, "de_Logs");
|
|
2063
|
+
var de_LogsSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2064
|
+
return (0, import_smithy_client.take)(output, {
|
|
2065
|
+
Audit: [, import_smithy_client.expectBoolean, `audit`],
|
|
2066
|
+
AuditLogGroup: [, import_smithy_client.expectString, `auditLogGroup`],
|
|
2067
|
+
General: [, import_smithy_client.expectBoolean, `general`],
|
|
2068
|
+
GeneralLogGroup: [, import_smithy_client.expectString, `generalLogGroup`],
|
|
2069
|
+
Pending: [, (_) => de_PendingLogs(_, context), `pending`]
|
|
2070
|
+
});
|
|
2071
|
+
}, "de_LogsSummary");
|
|
2072
|
+
var de_PendingLogs = /* @__PURE__ */ __name((output, context) => {
|
|
2073
|
+
return (0, import_smithy_client.take)(output, {
|
|
2074
|
+
Audit: [, import_smithy_client.expectBoolean, `audit`],
|
|
2075
|
+
General: [, import_smithy_client.expectBoolean, `general`]
|
|
2076
|
+
});
|
|
2077
|
+
}, "de_PendingLogs");
|
|
2078
|
+
var de_SanitizationWarning = /* @__PURE__ */ __name((output, context) => {
|
|
2079
|
+
return (0, import_smithy_client.take)(output, {
|
|
2080
|
+
AttributeName: [, import_smithy_client.expectString, `attributeName`],
|
|
2081
|
+
ElementName: [, import_smithy_client.expectString, `elementName`],
|
|
2082
|
+
Reason: [, import_smithy_client.expectString, `reason`]
|
|
2083
|
+
});
|
|
2084
|
+
}, "de_SanitizationWarning");
|
|
2085
|
+
var de_UserPendingChanges = /* @__PURE__ */ __name((output, context) => {
|
|
2086
|
+
return (0, import_smithy_client.take)(output, {
|
|
2087
|
+
ConsoleAccess: [, import_smithy_client.expectBoolean, `consoleAccess`],
|
|
2088
|
+
Groups: [, import_smithy_client._json, `groups`],
|
|
2089
|
+
PendingChange: [, import_smithy_client.expectString, `pendingChange`]
|
|
2090
|
+
});
|
|
2091
|
+
}, "de_UserPendingChanges");
|
|
2092
|
+
var de_UserSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2093
|
+
return (0, import_smithy_client.take)(output, {
|
|
2094
|
+
PendingChange: [, import_smithy_client.expectString, `pendingChange`],
|
|
2095
|
+
Username: [, import_smithy_client.expectString, `username`]
|
|
2096
|
+
});
|
|
2097
|
+
}, "de_UserSummary");
|
|
2098
|
+
var de_WeeklyStartTime = /* @__PURE__ */ __name((output, context) => {
|
|
2099
|
+
return (0, import_smithy_client.take)(output, {
|
|
2100
|
+
DayOfWeek: [, import_smithy_client.expectString, `dayOfWeek`],
|
|
2101
|
+
TimeOfDay: [, import_smithy_client.expectString, `timeOfDay`],
|
|
2102
|
+
TimeZone: [, import_smithy_client.expectString, `timeZone`]
|
|
2103
|
+
});
|
|
2104
|
+
}, "de_WeeklyStartTime");
|
|
2105
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2106
|
+
httpStatusCode: output.statusCode,
|
|
2107
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2108
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2109
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2110
|
+
}), "deserializeMetadata");
|
|
2111
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2112
|
+
var _ET = "EngineType";
|
|
2113
|
+
var _HIT = "HostInstanceType";
|
|
2114
|
+
var _MR = "MaxResults";
|
|
2115
|
+
var _NT = "NextToken";
|
|
2116
|
+
var _ST = "StorageType";
|
|
2117
|
+
var _TK = "TagKeys";
|
|
2118
|
+
var _eT = "engineType";
|
|
2119
|
+
var _hIT = "hostInstanceType";
|
|
2120
|
+
var _mR = "maxResults";
|
|
2121
|
+
var _nT = "nextToken";
|
|
2122
|
+
var _sT = "storageType";
|
|
2123
|
+
var _tK = "tagKeys";
|
|
2124
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2125
|
+
if (encoded.length) {
|
|
2126
|
+
return JSON.parse(encoded);
|
|
2127
|
+
}
|
|
2128
|
+
return {};
|
|
2129
|
+
}), "parseBody");
|
|
2130
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2131
|
+
const value = await parseBody(errorBody, context);
|
|
2132
|
+
value.message = value.message ?? value.Message;
|
|
2133
|
+
return value;
|
|
2134
|
+
}, "parseErrorBody");
|
|
2135
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2136
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2137
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2138
|
+
let cleanValue = rawValue;
|
|
2139
|
+
if (typeof cleanValue === "number") {
|
|
2140
|
+
cleanValue = cleanValue.toString();
|
|
2141
|
+
}
|
|
2142
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2143
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2144
|
+
}
|
|
2145
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2146
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2147
|
+
}
|
|
2148
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2149
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2150
|
+
}
|
|
2151
|
+
return cleanValue;
|
|
2152
|
+
}, "sanitizeErrorCode");
|
|
2153
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2154
|
+
if (headerKey !== void 0) {
|
|
2155
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2156
|
+
}
|
|
2157
|
+
if (data.code !== void 0) {
|
|
2158
|
+
return sanitizeErrorCode(data.code);
|
|
2159
|
+
}
|
|
2160
|
+
if (data["__type"] !== void 0) {
|
|
2161
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2162
|
+
}
|
|
2163
|
+
}, "loadRestJsonErrorCode");
|
|
2164
|
+
|
|
2165
|
+
// src/commands/CreateBrokerCommand.ts
|
|
2166
|
+
var _CreateBrokerCommand = class _CreateBrokerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2167
|
+
...commonParams
|
|
2168
|
+
}).m(function(Command, cs, config, o) {
|
|
2169
|
+
return [
|
|
2170
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2171
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2172
|
+
];
|
|
2173
|
+
}).s("mq", "CreateBroker", {}).n("MqClient", "CreateBrokerCommand").f(void 0, void 0).ser(se_CreateBrokerCommand).de(de_CreateBrokerCommand).build() {
|
|
2174
|
+
};
|
|
2175
|
+
__name(_CreateBrokerCommand, "CreateBrokerCommand");
|
|
2176
|
+
var CreateBrokerCommand = _CreateBrokerCommand;
|
|
2177
|
+
|
|
2178
|
+
// src/commands/CreateConfigurationCommand.ts
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
var _CreateConfigurationCommand = class _CreateConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2184
|
+
...commonParams
|
|
2185
|
+
}).m(function(Command, cs, config, o) {
|
|
2186
|
+
return [
|
|
2187
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2188
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2189
|
+
];
|
|
2190
|
+
}).s("mq", "CreateConfiguration", {}).n("MqClient", "CreateConfigurationCommand").f(void 0, void 0).ser(se_CreateConfigurationCommand).de(de_CreateConfigurationCommand).build() {
|
|
2191
|
+
};
|
|
2192
|
+
__name(_CreateConfigurationCommand, "CreateConfigurationCommand");
|
|
2193
|
+
var CreateConfigurationCommand = _CreateConfigurationCommand;
|
|
2194
|
+
|
|
2195
|
+
// src/commands/CreateTagsCommand.ts
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
var _CreateTagsCommand = class _CreateTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2201
|
+
...commonParams
|
|
2202
|
+
}).m(function(Command, cs, config, o) {
|
|
2203
|
+
return [
|
|
2204
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2205
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2206
|
+
];
|
|
2207
|
+
}).s("mq", "CreateTags", {}).n("MqClient", "CreateTagsCommand").f(void 0, void 0).ser(se_CreateTagsCommand).de(de_CreateTagsCommand).build() {
|
|
2208
|
+
};
|
|
2209
|
+
__name(_CreateTagsCommand, "CreateTagsCommand");
|
|
2210
|
+
var CreateTagsCommand = _CreateTagsCommand;
|
|
2211
|
+
|
|
2212
|
+
// src/commands/CreateUserCommand.ts
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
|
|
2217
|
+
var _CreateUserCommand = class _CreateUserCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2218
|
+
...commonParams
|
|
2219
|
+
}).m(function(Command, cs, config, o) {
|
|
2220
|
+
return [
|
|
2221
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2222
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2223
|
+
];
|
|
2224
|
+
}).s("mq", "CreateUser", {}).n("MqClient", "CreateUserCommand").f(void 0, void 0).ser(se_CreateUserCommand).de(de_CreateUserCommand).build() {
|
|
2225
|
+
};
|
|
2226
|
+
__name(_CreateUserCommand, "CreateUserCommand");
|
|
2227
|
+
var CreateUserCommand = _CreateUserCommand;
|
|
2228
|
+
|
|
2229
|
+
// src/commands/DeleteBrokerCommand.ts
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
var _DeleteBrokerCommand = class _DeleteBrokerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2235
|
+
...commonParams
|
|
2236
|
+
}).m(function(Command, cs, config, o) {
|
|
2237
|
+
return [
|
|
2238
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2239
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2240
|
+
];
|
|
2241
|
+
}).s("mq", "DeleteBroker", {}).n("MqClient", "DeleteBrokerCommand").f(void 0, void 0).ser(se_DeleteBrokerCommand).de(de_DeleteBrokerCommand).build() {
|
|
2242
|
+
};
|
|
2243
|
+
__name(_DeleteBrokerCommand, "DeleteBrokerCommand");
|
|
2244
|
+
var DeleteBrokerCommand = _DeleteBrokerCommand;
|
|
2245
|
+
|
|
2246
|
+
// src/commands/DeleteTagsCommand.ts
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
|
|
2251
|
+
var _DeleteTagsCommand = class _DeleteTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2252
|
+
...commonParams
|
|
2253
|
+
}).m(function(Command, cs, config, o) {
|
|
2254
|
+
return [
|
|
2255
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2256
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2257
|
+
];
|
|
2258
|
+
}).s("mq", "DeleteTags", {}).n("MqClient", "DeleteTagsCommand").f(void 0, void 0).ser(se_DeleteTagsCommand).de(de_DeleteTagsCommand).build() {
|
|
2259
|
+
};
|
|
2260
|
+
__name(_DeleteTagsCommand, "DeleteTagsCommand");
|
|
2261
|
+
var DeleteTagsCommand = _DeleteTagsCommand;
|
|
2262
|
+
|
|
2263
|
+
// src/commands/DeleteUserCommand.ts
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
var _DeleteUserCommand = class _DeleteUserCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2269
|
+
...commonParams
|
|
2270
|
+
}).m(function(Command, cs, config, o) {
|
|
2271
|
+
return [
|
|
2272
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2273
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2274
|
+
];
|
|
2275
|
+
}).s("mq", "DeleteUser", {}).n("MqClient", "DeleteUserCommand").f(void 0, void 0).ser(se_DeleteUserCommand).de(de_DeleteUserCommand).build() {
|
|
2276
|
+
};
|
|
2277
|
+
__name(_DeleteUserCommand, "DeleteUserCommand");
|
|
2278
|
+
var DeleteUserCommand = _DeleteUserCommand;
|
|
2279
|
+
|
|
2280
|
+
// src/commands/DescribeBrokerCommand.ts
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
var _DescribeBrokerCommand = class _DescribeBrokerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2286
|
+
...commonParams
|
|
2287
|
+
}).m(function(Command, cs, config, o) {
|
|
2288
|
+
return [
|
|
2289
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2290
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2291
|
+
];
|
|
2292
|
+
}).s("mq", "DescribeBroker", {}).n("MqClient", "DescribeBrokerCommand").f(void 0, void 0).ser(se_DescribeBrokerCommand).de(de_DescribeBrokerCommand).build() {
|
|
2293
|
+
};
|
|
2294
|
+
__name(_DescribeBrokerCommand, "DescribeBrokerCommand");
|
|
2295
|
+
var DescribeBrokerCommand = _DescribeBrokerCommand;
|
|
2296
|
+
|
|
2297
|
+
// src/commands/DescribeBrokerEngineTypesCommand.ts
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
|
|
2302
|
+
var _DescribeBrokerEngineTypesCommand = class _DescribeBrokerEngineTypesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2303
|
+
...commonParams
|
|
2304
|
+
}).m(function(Command, cs, config, o) {
|
|
2305
|
+
return [
|
|
2306
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2307
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2308
|
+
];
|
|
2309
|
+
}).s("mq", "DescribeBrokerEngineTypes", {}).n("MqClient", "DescribeBrokerEngineTypesCommand").f(void 0, void 0).ser(se_DescribeBrokerEngineTypesCommand).de(de_DescribeBrokerEngineTypesCommand).build() {
|
|
2310
|
+
};
|
|
2311
|
+
__name(_DescribeBrokerEngineTypesCommand, "DescribeBrokerEngineTypesCommand");
|
|
2312
|
+
var DescribeBrokerEngineTypesCommand = _DescribeBrokerEngineTypesCommand;
|
|
2313
|
+
|
|
2314
|
+
// src/commands/DescribeBrokerInstanceOptionsCommand.ts
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
var _DescribeBrokerInstanceOptionsCommand = class _DescribeBrokerInstanceOptionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2320
|
+
...commonParams
|
|
2321
|
+
}).m(function(Command, cs, config, o) {
|
|
2322
|
+
return [
|
|
2323
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2324
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2325
|
+
];
|
|
2326
|
+
}).s("mq", "DescribeBrokerInstanceOptions", {}).n("MqClient", "DescribeBrokerInstanceOptionsCommand").f(void 0, void 0).ser(se_DescribeBrokerInstanceOptionsCommand).de(de_DescribeBrokerInstanceOptionsCommand).build() {
|
|
2327
|
+
};
|
|
2328
|
+
__name(_DescribeBrokerInstanceOptionsCommand, "DescribeBrokerInstanceOptionsCommand");
|
|
2329
|
+
var DescribeBrokerInstanceOptionsCommand = _DescribeBrokerInstanceOptionsCommand;
|
|
2330
|
+
|
|
2331
|
+
// src/commands/DescribeConfigurationCommand.ts
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
|
|
2336
|
+
var _DescribeConfigurationCommand = class _DescribeConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2337
|
+
...commonParams
|
|
2338
|
+
}).m(function(Command, cs, config, o) {
|
|
2339
|
+
return [
|
|
2340
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2341
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2342
|
+
];
|
|
2343
|
+
}).s("mq", "DescribeConfiguration", {}).n("MqClient", "DescribeConfigurationCommand").f(void 0, void 0).ser(se_DescribeConfigurationCommand).de(de_DescribeConfigurationCommand).build() {
|
|
2344
|
+
};
|
|
2345
|
+
__name(_DescribeConfigurationCommand, "DescribeConfigurationCommand");
|
|
2346
|
+
var DescribeConfigurationCommand = _DescribeConfigurationCommand;
|
|
2347
|
+
|
|
2348
|
+
// src/commands/DescribeConfigurationRevisionCommand.ts
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
var _DescribeConfigurationRevisionCommand = class _DescribeConfigurationRevisionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2354
|
+
...commonParams
|
|
2355
|
+
}).m(function(Command, cs, config, o) {
|
|
2356
|
+
return [
|
|
2357
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2358
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2359
|
+
];
|
|
2360
|
+
}).s("mq", "DescribeConfigurationRevision", {}).n("MqClient", "DescribeConfigurationRevisionCommand").f(void 0, void 0).ser(se_DescribeConfigurationRevisionCommand).de(de_DescribeConfigurationRevisionCommand).build() {
|
|
2361
|
+
};
|
|
2362
|
+
__name(_DescribeConfigurationRevisionCommand, "DescribeConfigurationRevisionCommand");
|
|
2363
|
+
var DescribeConfigurationRevisionCommand = _DescribeConfigurationRevisionCommand;
|
|
2364
|
+
|
|
2365
|
+
// src/commands/DescribeUserCommand.ts
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
var _DescribeUserCommand = class _DescribeUserCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2371
|
+
...commonParams
|
|
2372
|
+
}).m(function(Command, cs, config, o) {
|
|
2373
|
+
return [
|
|
2374
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2375
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2376
|
+
];
|
|
2377
|
+
}).s("mq", "DescribeUser", {}).n("MqClient", "DescribeUserCommand").f(void 0, void 0).ser(se_DescribeUserCommand).de(de_DescribeUserCommand).build() {
|
|
2378
|
+
};
|
|
2379
|
+
__name(_DescribeUserCommand, "DescribeUserCommand");
|
|
2380
|
+
var DescribeUserCommand = _DescribeUserCommand;
|
|
2381
|
+
|
|
2382
|
+
// src/commands/ListBrokersCommand.ts
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
var _ListBrokersCommand = class _ListBrokersCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2388
|
+
...commonParams
|
|
2389
|
+
}).m(function(Command, cs, config, o) {
|
|
2390
|
+
return [
|
|
2391
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2392
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2393
|
+
];
|
|
2394
|
+
}).s("mq", "ListBrokers", {}).n("MqClient", "ListBrokersCommand").f(void 0, void 0).ser(se_ListBrokersCommand).de(de_ListBrokersCommand).build() {
|
|
2395
|
+
};
|
|
2396
|
+
__name(_ListBrokersCommand, "ListBrokersCommand");
|
|
2397
|
+
var ListBrokersCommand = _ListBrokersCommand;
|
|
2398
|
+
|
|
2399
|
+
// src/commands/ListConfigurationRevisionsCommand.ts
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
var _ListConfigurationRevisionsCommand = class _ListConfigurationRevisionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2405
|
+
...commonParams
|
|
2406
|
+
}).m(function(Command, cs, config, o) {
|
|
2407
|
+
return [
|
|
2408
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2409
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2410
|
+
];
|
|
2411
|
+
}).s("mq", "ListConfigurationRevisions", {}).n("MqClient", "ListConfigurationRevisionsCommand").f(void 0, void 0).ser(se_ListConfigurationRevisionsCommand).de(de_ListConfigurationRevisionsCommand).build() {
|
|
2412
|
+
};
|
|
2413
|
+
__name(_ListConfigurationRevisionsCommand, "ListConfigurationRevisionsCommand");
|
|
2414
|
+
var ListConfigurationRevisionsCommand = _ListConfigurationRevisionsCommand;
|
|
2415
|
+
|
|
2416
|
+
// src/commands/ListConfigurationsCommand.ts
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
var _ListConfigurationsCommand = class _ListConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2422
|
+
...commonParams
|
|
2423
|
+
}).m(function(Command, cs, config, o) {
|
|
2424
|
+
return [
|
|
2425
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2426
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2427
|
+
];
|
|
2428
|
+
}).s("mq", "ListConfigurations", {}).n("MqClient", "ListConfigurationsCommand").f(void 0, void 0).ser(se_ListConfigurationsCommand).de(de_ListConfigurationsCommand).build() {
|
|
2429
|
+
};
|
|
2430
|
+
__name(_ListConfigurationsCommand, "ListConfigurationsCommand");
|
|
2431
|
+
var ListConfigurationsCommand = _ListConfigurationsCommand;
|
|
2432
|
+
|
|
2433
|
+
// src/commands/ListTagsCommand.ts
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
var _ListTagsCommand = class _ListTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2439
|
+
...commonParams
|
|
2440
|
+
}).m(function(Command, cs, config, o) {
|
|
2441
|
+
return [
|
|
2442
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2443
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2444
|
+
];
|
|
2445
|
+
}).s("mq", "ListTags", {}).n("MqClient", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
|
|
2446
|
+
};
|
|
2447
|
+
__name(_ListTagsCommand, "ListTagsCommand");
|
|
2448
|
+
var ListTagsCommand = _ListTagsCommand;
|
|
2449
|
+
|
|
2450
|
+
// src/commands/ListUsersCommand.ts
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
|
|
2455
|
+
var _ListUsersCommand = class _ListUsersCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2456
|
+
...commonParams
|
|
2457
|
+
}).m(function(Command, cs, config, o) {
|
|
2458
|
+
return [
|
|
2459
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2460
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2461
|
+
];
|
|
2462
|
+
}).s("mq", "ListUsers", {}).n("MqClient", "ListUsersCommand").f(void 0, void 0).ser(se_ListUsersCommand).de(de_ListUsersCommand).build() {
|
|
2463
|
+
};
|
|
2464
|
+
__name(_ListUsersCommand, "ListUsersCommand");
|
|
2465
|
+
var ListUsersCommand = _ListUsersCommand;
|
|
2466
|
+
|
|
2467
|
+
// src/commands/PromoteCommand.ts
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
var _PromoteCommand = class _PromoteCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2473
|
+
...commonParams
|
|
2474
|
+
}).m(function(Command, cs, config, o) {
|
|
2475
|
+
return [
|
|
2476
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2477
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2478
|
+
];
|
|
2479
|
+
}).s("mq", "Promote", {}).n("MqClient", "PromoteCommand").f(void 0, void 0).ser(se_PromoteCommand).de(de_PromoteCommand).build() {
|
|
2480
|
+
};
|
|
2481
|
+
__name(_PromoteCommand, "PromoteCommand");
|
|
2482
|
+
var PromoteCommand = _PromoteCommand;
|
|
2483
|
+
|
|
2484
|
+
// src/commands/RebootBrokerCommand.ts
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
var _RebootBrokerCommand = class _RebootBrokerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2490
|
+
...commonParams
|
|
2491
|
+
}).m(function(Command, cs, config, o) {
|
|
2492
|
+
return [
|
|
2493
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2494
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2495
|
+
];
|
|
2496
|
+
}).s("mq", "RebootBroker", {}).n("MqClient", "RebootBrokerCommand").f(void 0, void 0).ser(se_RebootBrokerCommand).de(de_RebootBrokerCommand).build() {
|
|
2497
|
+
};
|
|
2498
|
+
__name(_RebootBrokerCommand, "RebootBrokerCommand");
|
|
2499
|
+
var RebootBrokerCommand = _RebootBrokerCommand;
|
|
2500
|
+
|
|
2501
|
+
// src/commands/UpdateBrokerCommand.ts
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
var _UpdateBrokerCommand = class _UpdateBrokerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2507
|
+
...commonParams
|
|
2508
|
+
}).m(function(Command, cs, config, o) {
|
|
2509
|
+
return [
|
|
2510
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2511
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2512
|
+
];
|
|
2513
|
+
}).s("mq", "UpdateBroker", {}).n("MqClient", "UpdateBrokerCommand").f(void 0, void 0).ser(se_UpdateBrokerCommand).de(de_UpdateBrokerCommand).build() {
|
|
2514
|
+
};
|
|
2515
|
+
__name(_UpdateBrokerCommand, "UpdateBrokerCommand");
|
|
2516
|
+
var UpdateBrokerCommand = _UpdateBrokerCommand;
|
|
2517
|
+
|
|
2518
|
+
// src/commands/UpdateConfigurationCommand.ts
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
var _UpdateConfigurationCommand = class _UpdateConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2524
|
+
...commonParams
|
|
2525
|
+
}).m(function(Command, cs, config, o) {
|
|
2526
|
+
return [
|
|
2527
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2528
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2529
|
+
];
|
|
2530
|
+
}).s("mq", "UpdateConfiguration", {}).n("MqClient", "UpdateConfigurationCommand").f(void 0, void 0).ser(se_UpdateConfigurationCommand).de(de_UpdateConfigurationCommand).build() {
|
|
2531
|
+
};
|
|
2532
|
+
__name(_UpdateConfigurationCommand, "UpdateConfigurationCommand");
|
|
2533
|
+
var UpdateConfigurationCommand = _UpdateConfigurationCommand;
|
|
2534
|
+
|
|
2535
|
+
// src/commands/UpdateUserCommand.ts
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
var _UpdateUserCommand = class _UpdateUserCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2541
|
+
...commonParams
|
|
2542
|
+
}).m(function(Command, cs, config, o) {
|
|
2543
|
+
return [
|
|
2544
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2545
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2546
|
+
];
|
|
2547
|
+
}).s("mq", "UpdateUser", {}).n("MqClient", "UpdateUserCommand").f(void 0, void 0).ser(se_UpdateUserCommand).de(de_UpdateUserCommand).build() {
|
|
2548
|
+
};
|
|
2549
|
+
__name(_UpdateUserCommand, "UpdateUserCommand");
|
|
2550
|
+
var UpdateUserCommand = _UpdateUserCommand;
|
|
2551
|
+
|
|
2552
|
+
// src/Mq.ts
|
|
2553
|
+
var commands = {
|
|
2554
|
+
CreateBrokerCommand,
|
|
2555
|
+
CreateConfigurationCommand,
|
|
2556
|
+
CreateTagsCommand,
|
|
2557
|
+
CreateUserCommand,
|
|
2558
|
+
DeleteBrokerCommand,
|
|
2559
|
+
DeleteTagsCommand,
|
|
2560
|
+
DeleteUserCommand,
|
|
2561
|
+
DescribeBrokerCommand,
|
|
2562
|
+
DescribeBrokerEngineTypesCommand,
|
|
2563
|
+
DescribeBrokerInstanceOptionsCommand,
|
|
2564
|
+
DescribeConfigurationCommand,
|
|
2565
|
+
DescribeConfigurationRevisionCommand,
|
|
2566
|
+
DescribeUserCommand,
|
|
2567
|
+
ListBrokersCommand,
|
|
2568
|
+
ListConfigurationRevisionsCommand,
|
|
2569
|
+
ListConfigurationsCommand,
|
|
2570
|
+
ListTagsCommand,
|
|
2571
|
+
ListUsersCommand,
|
|
2572
|
+
PromoteCommand,
|
|
2573
|
+
RebootBrokerCommand,
|
|
2574
|
+
UpdateBrokerCommand,
|
|
2575
|
+
UpdateConfigurationCommand,
|
|
2576
|
+
UpdateUserCommand
|
|
2577
|
+
};
|
|
2578
|
+
var _Mq = class _Mq extends MqClient {
|
|
2579
|
+
};
|
|
2580
|
+
__name(_Mq, "Mq");
|
|
2581
|
+
var Mq = _Mq;
|
|
2582
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Mq);
|
|
2583
|
+
|
|
2584
|
+
// src/pagination/ListBrokersPaginator.ts
|
|
2585
|
+
|
|
2586
|
+
var paginateListBrokers = (0, import_core.createPaginator)(MqClient, ListBrokersCommand, "NextToken", "NextToken", "MaxResults");
|
|
2587
|
+
|
|
2588
|
+
// src/index.ts
|
|
2589
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2590
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2591
|
+
0 && (module.exports = {
|
|
2592
|
+
AuthenticationStrategy,
|
|
2593
|
+
BadRequestException,
|
|
2594
|
+
BrokerState,
|
|
2595
|
+
BrokerStorageType,
|
|
2596
|
+
ChangeType,
|
|
2597
|
+
ConflictException,
|
|
2598
|
+
CreateBrokerCommand,
|
|
2599
|
+
CreateConfigurationCommand,
|
|
2600
|
+
CreateTagsCommand,
|
|
2601
|
+
CreateUserCommand,
|
|
2602
|
+
DataReplicationMode,
|
|
2603
|
+
DayOfWeek,
|
|
2604
|
+
DeleteBrokerCommand,
|
|
2605
|
+
DeleteTagsCommand,
|
|
2606
|
+
DeleteUserCommand,
|
|
2607
|
+
DeploymentMode,
|
|
2608
|
+
DescribeBrokerCommand,
|
|
2609
|
+
DescribeBrokerEngineTypesCommand,
|
|
2610
|
+
DescribeBrokerInstanceOptionsCommand,
|
|
2611
|
+
DescribeConfigurationCommand,
|
|
2612
|
+
DescribeConfigurationRevisionCommand,
|
|
2613
|
+
DescribeUserCommand,
|
|
2614
|
+
EngineType,
|
|
2615
|
+
ForbiddenException,
|
|
2616
|
+
InternalServerErrorException,
|
|
2617
|
+
ListBrokersCommand,
|
|
2618
|
+
ListConfigurationRevisionsCommand,
|
|
2619
|
+
ListConfigurationsCommand,
|
|
2620
|
+
ListTagsCommand,
|
|
2621
|
+
ListUsersCommand,
|
|
2622
|
+
Mq,
|
|
2623
|
+
MqClient,
|
|
2624
|
+
MqServiceException,
|
|
2625
|
+
NotFoundException,
|
|
2626
|
+
PromoteCommand,
|
|
2627
|
+
PromoteMode,
|
|
2628
|
+
RebootBrokerCommand,
|
|
2629
|
+
SanitizationWarningReason,
|
|
2630
|
+
UnauthorizedException,
|
|
2631
|
+
UpdateBrokerCommand,
|
|
2632
|
+
UpdateConfigurationCommand,
|
|
2633
|
+
UpdateUserCommand,
|
|
2634
|
+
__Client,
|
|
2635
|
+
paginateListBrokers
|
|
2636
|
+
});
|