@aws-sdk/client-mq 3.306.0 → 3.310.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/commands/CreateBrokerCommand.js +2 -2
- package/dist-cjs/commands/CreateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreateTagsCommand.js +2 -2
- package/dist-cjs/commands/CreateUserCommand.js +2 -2
- package/dist-cjs/commands/DeleteBrokerCommand.js +2 -2
- package/dist-cjs/commands/DeleteTagsCommand.js +2 -2
- package/dist-cjs/commands/DeleteUserCommand.js +2 -2
- package/dist-cjs/commands/DescribeBrokerCommand.js +2 -2
- package/dist-cjs/commands/DescribeBrokerEngineTypesCommand.js +2 -2
- package/dist-cjs/commands/DescribeBrokerInstanceOptionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +2 -2
- package/dist-cjs/commands/DescribeUserCommand.js +2 -2
- package/dist-cjs/commands/ListBrokersCommand.js +2 -2
- package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +2 -2
- package/dist-cjs/commands/ListConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsCommand.js +2 -2
- package/dist-cjs/commands/ListUsersCommand.js +2 -2
- package/dist-cjs/commands/RebootBrokerCommand.js +2 -2
- package/dist-cjs/commands/UpdateBrokerCommand.js +2 -2
- package/dist-cjs/commands/UpdateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateUserCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +350 -366
- package/dist-es/commands/CreateBrokerCommand.js +3 -3
- package/dist-es/commands/CreateConfigurationCommand.js +3 -3
- package/dist-es/commands/CreateTagsCommand.js +3 -3
- package/dist-es/commands/CreateUserCommand.js +3 -3
- package/dist-es/commands/DeleteBrokerCommand.js +3 -3
- package/dist-es/commands/DeleteTagsCommand.js +3 -3
- package/dist-es/commands/DeleteUserCommand.js +3 -3
- package/dist-es/commands/DescribeBrokerCommand.js +3 -3
- package/dist-es/commands/DescribeBrokerEngineTypesCommand.js +3 -3
- package/dist-es/commands/DescribeBrokerInstanceOptionsCommand.js +3 -3
- package/dist-es/commands/DescribeConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeConfigurationRevisionCommand.js +3 -3
- package/dist-es/commands/DescribeUserCommand.js +3 -3
- package/dist-es/commands/ListBrokersCommand.js +3 -3
- package/dist-es/commands/ListConfigurationRevisionsCommand.js +3 -3
- package/dist-es/commands/ListConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListTagsCommand.js +3 -3
- package/dist-es/commands/ListUsersCommand.js +3 -3
- package/dist-es/commands/RebootBrokerCommand.js +3 -3
- package/dist-es/commands/UpdateBrokerCommand.js +3 -3
- package/dist-es/commands/UpdateConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateUserCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +305 -321
- package/dist-types/protocols/Aws_restJson1.d.ts +176 -44
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -44
- package/package.json +35 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateUserCommand = exports.de_UpdateConfigurationCommand = exports.de_UpdateBrokerCommand = exports.de_RebootBrokerCommand = exports.de_ListUsersCommand = exports.de_ListTagsCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationRevisionsCommand = exports.de_ListBrokersCommand = exports.de_DescribeUserCommand = exports.de_DescribeConfigurationRevisionCommand = exports.de_DescribeConfigurationCommand = exports.de_DescribeBrokerInstanceOptionsCommand = exports.de_DescribeBrokerEngineTypesCommand = exports.de_DescribeBrokerCommand = exports.de_DeleteUserCommand = exports.de_DeleteTagsCommand = exports.de_DeleteBrokerCommand = exports.de_CreateUserCommand = exports.de_CreateTagsCommand = exports.de_CreateConfigurationCommand = exports.de_CreateBrokerCommand = exports.se_UpdateUserCommand = exports.se_UpdateConfigurationCommand = exports.se_UpdateBrokerCommand = exports.se_RebootBrokerCommand = exports.se_ListUsersCommand = exports.se_ListTagsCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationRevisionsCommand = exports.se_ListBrokersCommand = exports.se_DescribeUserCommand = exports.se_DescribeConfigurationRevisionCommand = exports.se_DescribeConfigurationCommand = exports.se_DescribeBrokerInstanceOptionsCommand = exports.se_DescribeBrokerEngineTypesCommand = exports.se_DescribeBrokerCommand = exports.se_DeleteUserCommand = exports.se_DeleteTagsCommand = exports.se_DeleteBrokerCommand = exports.se_CreateUserCommand = exports.se_CreateTagsCommand = exports.se_CreateConfigurationCommand = exports.se_CreateBrokerCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const MqServiceException_1 = require("../models/MqServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateBrokerCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -17,32 +17,28 @@ const serializeAws_restJson1CreateBrokerCommand = async (input, context) => {
|
|
|
17
17
|
...(input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy }),
|
|
18
18
|
...(input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
|
|
19
19
|
...(input.BrokerName != null && { brokerName: input.BrokerName }),
|
|
20
|
-
...(input.Configuration != null && {
|
|
21
|
-
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
22
|
-
}),
|
|
20
|
+
...(input.Configuration != null && { configuration: se_ConfigurationId(input.Configuration, context) }),
|
|
23
21
|
creatorRequestId: input.CreatorRequestId ?? (0, uuid_1.v4)(),
|
|
24
22
|
...(input.DeploymentMode != null && { deploymentMode: input.DeploymentMode }),
|
|
25
23
|
...(input.EncryptionOptions != null && {
|
|
26
|
-
encryptionOptions:
|
|
24
|
+
encryptionOptions: se_EncryptionOptions(input.EncryptionOptions, context),
|
|
27
25
|
}),
|
|
28
26
|
...(input.EngineType != null && { engineType: input.EngineType }),
|
|
29
27
|
...(input.EngineVersion != null && { engineVersion: input.EngineVersion }),
|
|
30
28
|
...(input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType }),
|
|
31
29
|
...(input.LdapServerMetadata != null && {
|
|
32
|
-
ldapServerMetadata:
|
|
30
|
+
ldapServerMetadata: se_LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
33
31
|
}),
|
|
34
|
-
...(input.Logs != null && { logs:
|
|
32
|
+
...(input.Logs != null && { logs: se_Logs(input.Logs, context) }),
|
|
35
33
|
...(input.MaintenanceWindowStartTime != null && {
|
|
36
|
-
maintenanceWindowStartTime:
|
|
34
|
+
maintenanceWindowStartTime: se_WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
37
35
|
}),
|
|
38
36
|
...(input.PubliclyAccessible != null && { publiclyAccessible: input.PubliclyAccessible }),
|
|
39
|
-
...(input.SecurityGroups != null && {
|
|
40
|
-
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
41
|
-
}),
|
|
37
|
+
...(input.SecurityGroups != null && { securityGroups: se___listOf__string(input.SecurityGroups, context) }),
|
|
42
38
|
...(input.StorageType != null && { storageType: input.StorageType }),
|
|
43
|
-
...(input.SubnetIds != null && { subnetIds:
|
|
44
|
-
...(input.Tags != null && { tags:
|
|
45
|
-
...(input.Users != null && { users:
|
|
39
|
+
...(input.SubnetIds != null && { subnetIds: se___listOf__string(input.SubnetIds, context) }),
|
|
40
|
+
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
41
|
+
...(input.Users != null && { users: se___listOfUser(input.Users, context) }),
|
|
46
42
|
});
|
|
47
43
|
return new protocol_http_1.HttpRequest({
|
|
48
44
|
protocol,
|
|
@@ -54,8 +50,8 @@ const serializeAws_restJson1CreateBrokerCommand = async (input, context) => {
|
|
|
54
50
|
body,
|
|
55
51
|
});
|
|
56
52
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
53
|
+
exports.se_CreateBrokerCommand = se_CreateBrokerCommand;
|
|
54
|
+
const se_CreateConfigurationCommand = async (input, context) => {
|
|
59
55
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
60
56
|
const headers = {
|
|
61
57
|
"content-type": "application/json",
|
|
@@ -67,7 +63,7 @@ const serializeAws_restJson1CreateConfigurationCommand = async (input, context)
|
|
|
67
63
|
...(input.EngineType != null && { engineType: input.EngineType }),
|
|
68
64
|
...(input.EngineVersion != null && { engineVersion: input.EngineVersion }),
|
|
69
65
|
...(input.Name != null && { name: input.Name }),
|
|
70
|
-
...(input.Tags != null && { tags:
|
|
66
|
+
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
71
67
|
});
|
|
72
68
|
return new protocol_http_1.HttpRequest({
|
|
73
69
|
protocol,
|
|
@@ -79,8 +75,8 @@ const serializeAws_restJson1CreateConfigurationCommand = async (input, context)
|
|
|
79
75
|
body,
|
|
80
76
|
});
|
|
81
77
|
};
|
|
82
|
-
exports.
|
|
83
|
-
const
|
|
78
|
+
exports.se_CreateConfigurationCommand = se_CreateConfigurationCommand;
|
|
79
|
+
const se_CreateTagsCommand = async (input, context) => {
|
|
84
80
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
85
81
|
const headers = {
|
|
86
82
|
"content-type": "application/json",
|
|
@@ -89,7 +85,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
89
85
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
90
86
|
let body;
|
|
91
87
|
body = JSON.stringify({
|
|
92
|
-
...(input.Tags != null && { tags:
|
|
88
|
+
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
93
89
|
});
|
|
94
90
|
return new protocol_http_1.HttpRequest({
|
|
95
91
|
protocol,
|
|
@@ -101,8 +97,8 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
|
|
|
101
97
|
body,
|
|
102
98
|
});
|
|
103
99
|
};
|
|
104
|
-
exports.
|
|
105
|
-
const
|
|
100
|
+
exports.se_CreateTagsCommand = se_CreateTagsCommand;
|
|
101
|
+
const se_CreateUserCommand = async (input, context) => {
|
|
106
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
103
|
const headers = {
|
|
108
104
|
"content-type": "application/json",
|
|
@@ -113,7 +109,7 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
113
109
|
let body;
|
|
114
110
|
body = JSON.stringify({
|
|
115
111
|
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
116
|
-
...(input.Groups != null && { groups:
|
|
112
|
+
...(input.Groups != null && { groups: se___listOf__string(input.Groups, context) }),
|
|
117
113
|
...(input.Password != null && { password: input.Password }),
|
|
118
114
|
});
|
|
119
115
|
return new protocol_http_1.HttpRequest({
|
|
@@ -126,8 +122,8 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
|
|
|
126
122
|
body,
|
|
127
123
|
});
|
|
128
124
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
125
|
+
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
126
|
+
const se_DeleteBrokerCommand = async (input, context) => {
|
|
131
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
128
|
const headers = {};
|
|
133
129
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}";
|
|
@@ -143,8 +139,8 @@ const serializeAws_restJson1DeleteBrokerCommand = async (input, context) => {
|
|
|
143
139
|
body,
|
|
144
140
|
});
|
|
145
141
|
};
|
|
146
|
-
exports.
|
|
147
|
-
const
|
|
142
|
+
exports.se_DeleteBrokerCommand = se_DeleteBrokerCommand;
|
|
143
|
+
const se_DeleteTagsCommand = async (input, context) => {
|
|
148
144
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
145
|
const headers = {};
|
|
150
146
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
@@ -167,8 +163,8 @@ const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
|
|
|
167
163
|
body,
|
|
168
164
|
});
|
|
169
165
|
};
|
|
170
|
-
exports.
|
|
171
|
-
const
|
|
166
|
+
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
167
|
+
const se_DeleteUserCommand = async (input, context) => {
|
|
172
168
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
173
169
|
const headers = {};
|
|
174
170
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users/{Username}";
|
|
@@ -185,8 +181,8 @@ const serializeAws_restJson1DeleteUserCommand = async (input, context) => {
|
|
|
185
181
|
body,
|
|
186
182
|
});
|
|
187
183
|
};
|
|
188
|
-
exports.
|
|
189
|
-
const
|
|
184
|
+
exports.se_DeleteUserCommand = se_DeleteUserCommand;
|
|
185
|
+
const se_DescribeBrokerCommand = async (input, context) => {
|
|
190
186
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
187
|
const headers = {};
|
|
192
188
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}";
|
|
@@ -202,8 +198,8 @@ const serializeAws_restJson1DescribeBrokerCommand = async (input, context) => {
|
|
|
202
198
|
body,
|
|
203
199
|
});
|
|
204
200
|
};
|
|
205
|
-
exports.
|
|
206
|
-
const
|
|
201
|
+
exports.se_DescribeBrokerCommand = se_DescribeBrokerCommand;
|
|
202
|
+
const se_DescribeBrokerEngineTypesCommand = async (input, context) => {
|
|
207
203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
208
204
|
const headers = {};
|
|
209
205
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/broker-engine-types";
|
|
@@ -224,8 +220,8 @@ const serializeAws_restJson1DescribeBrokerEngineTypesCommand = async (input, con
|
|
|
224
220
|
body,
|
|
225
221
|
});
|
|
226
222
|
};
|
|
227
|
-
exports.
|
|
228
|
-
const
|
|
223
|
+
exports.se_DescribeBrokerEngineTypesCommand = se_DescribeBrokerEngineTypesCommand;
|
|
224
|
+
const se_DescribeBrokerInstanceOptionsCommand = async (input, context) => {
|
|
229
225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
226
|
const headers = {};
|
|
231
227
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/broker-instance-options";
|
|
@@ -248,8 +244,8 @@ const serializeAws_restJson1DescribeBrokerInstanceOptionsCommand = async (input,
|
|
|
248
244
|
body,
|
|
249
245
|
});
|
|
250
246
|
};
|
|
251
|
-
exports.
|
|
252
|
-
const
|
|
247
|
+
exports.se_DescribeBrokerInstanceOptionsCommand = se_DescribeBrokerInstanceOptionsCommand;
|
|
248
|
+
const se_DescribeConfigurationCommand = async (input, context) => {
|
|
253
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
254
250
|
const headers = {};
|
|
255
251
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{ConfigurationId}";
|
|
@@ -265,8 +261,8 @@ const serializeAws_restJson1DescribeConfigurationCommand = async (input, context
|
|
|
265
261
|
body,
|
|
266
262
|
});
|
|
267
263
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
264
|
+
exports.se_DescribeConfigurationCommand = se_DescribeConfigurationCommand;
|
|
265
|
+
const se_DescribeConfigurationRevisionCommand = async (input, context) => {
|
|
270
266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
271
267
|
const headers = {};
|
|
272
268
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -284,8 +280,8 @@ const serializeAws_restJson1DescribeConfigurationRevisionCommand = async (input,
|
|
|
284
280
|
body,
|
|
285
281
|
});
|
|
286
282
|
};
|
|
287
|
-
exports.
|
|
288
|
-
const
|
|
283
|
+
exports.se_DescribeConfigurationRevisionCommand = se_DescribeConfigurationRevisionCommand;
|
|
284
|
+
const se_DescribeUserCommand = async (input, context) => {
|
|
289
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
286
|
const headers = {};
|
|
291
287
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users/{Username}";
|
|
@@ -302,8 +298,8 @@ const serializeAws_restJson1DescribeUserCommand = async (input, context) => {
|
|
|
302
298
|
body,
|
|
303
299
|
});
|
|
304
300
|
};
|
|
305
|
-
exports.
|
|
306
|
-
const
|
|
301
|
+
exports.se_DescribeUserCommand = se_DescribeUserCommand;
|
|
302
|
+
const se_ListBrokersCommand = async (input, context) => {
|
|
307
303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
308
304
|
const headers = {};
|
|
309
305
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers";
|
|
@@ -323,8 +319,8 @@ const serializeAws_restJson1ListBrokersCommand = async (input, context) => {
|
|
|
323
319
|
body,
|
|
324
320
|
});
|
|
325
321
|
};
|
|
326
|
-
exports.
|
|
327
|
-
const
|
|
322
|
+
exports.se_ListBrokersCommand = se_ListBrokersCommand;
|
|
323
|
+
const se_ListConfigurationRevisionsCommand = async (input, context) => {
|
|
328
324
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
325
|
const headers = {};
|
|
330
326
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -346,8 +342,8 @@ const serializeAws_restJson1ListConfigurationRevisionsCommand = async (input, co
|
|
|
346
342
|
body,
|
|
347
343
|
});
|
|
348
344
|
};
|
|
349
|
-
exports.
|
|
350
|
-
const
|
|
345
|
+
exports.se_ListConfigurationRevisionsCommand = se_ListConfigurationRevisionsCommand;
|
|
346
|
+
const se_ListConfigurationsCommand = async (input, context) => {
|
|
351
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
352
348
|
const headers = {};
|
|
353
349
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations";
|
|
@@ -367,8 +363,8 @@ const serializeAws_restJson1ListConfigurationsCommand = async (input, context) =
|
|
|
367
363
|
body,
|
|
368
364
|
});
|
|
369
365
|
};
|
|
370
|
-
exports.
|
|
371
|
-
const
|
|
366
|
+
exports.se_ListConfigurationsCommand = se_ListConfigurationsCommand;
|
|
367
|
+
const se_ListTagsCommand = async (input, context) => {
|
|
372
368
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
369
|
const headers = {};
|
|
374
370
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
@@ -384,8 +380,8 @@ const serializeAws_restJson1ListTagsCommand = async (input, context) => {
|
|
|
384
380
|
body,
|
|
385
381
|
});
|
|
386
382
|
};
|
|
387
|
-
exports.
|
|
388
|
-
const
|
|
383
|
+
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
384
|
+
const se_ListUsersCommand = async (input, context) => {
|
|
389
385
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
386
|
const headers = {};
|
|
391
387
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/users";
|
|
@@ -406,8 +402,8 @@ const serializeAws_restJson1ListUsersCommand = async (input, context) => {
|
|
|
406
402
|
body,
|
|
407
403
|
});
|
|
408
404
|
};
|
|
409
|
-
exports.
|
|
410
|
-
const
|
|
405
|
+
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
406
|
+
const se_RebootBrokerCommand = async (input, context) => {
|
|
411
407
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
412
408
|
const headers = {};
|
|
413
409
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/brokers/{BrokerId}/reboot";
|
|
@@ -423,8 +419,8 @@ const serializeAws_restJson1RebootBrokerCommand = async (input, context) => {
|
|
|
423
419
|
body,
|
|
424
420
|
});
|
|
425
421
|
};
|
|
426
|
-
exports.
|
|
427
|
-
const
|
|
422
|
+
exports.se_RebootBrokerCommand = se_RebootBrokerCommand;
|
|
423
|
+
const se_UpdateBrokerCommand = async (input, context) => {
|
|
428
424
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
429
425
|
const headers = {
|
|
430
426
|
"content-type": "application/json",
|
|
@@ -435,21 +431,17 @@ const serializeAws_restJson1UpdateBrokerCommand = async (input, context) => {
|
|
|
435
431
|
body = JSON.stringify({
|
|
436
432
|
...(input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy }),
|
|
437
433
|
...(input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade }),
|
|
438
|
-
...(input.Configuration != null && {
|
|
439
|
-
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
440
|
-
}),
|
|
434
|
+
...(input.Configuration != null && { configuration: se_ConfigurationId(input.Configuration, context) }),
|
|
441
435
|
...(input.EngineVersion != null && { engineVersion: input.EngineVersion }),
|
|
442
436
|
...(input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType }),
|
|
443
437
|
...(input.LdapServerMetadata != null && {
|
|
444
|
-
ldapServerMetadata:
|
|
438
|
+
ldapServerMetadata: se_LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
445
439
|
}),
|
|
446
|
-
...(input.Logs != null && { logs:
|
|
440
|
+
...(input.Logs != null && { logs: se_Logs(input.Logs, context) }),
|
|
447
441
|
...(input.MaintenanceWindowStartTime != null && {
|
|
448
|
-
maintenanceWindowStartTime:
|
|
449
|
-
}),
|
|
450
|
-
...(input.SecurityGroups != null && {
|
|
451
|
-
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
442
|
+
maintenanceWindowStartTime: se_WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
452
443
|
}),
|
|
444
|
+
...(input.SecurityGroups != null && { securityGroups: se___listOf__string(input.SecurityGroups, context) }),
|
|
453
445
|
});
|
|
454
446
|
return new protocol_http_1.HttpRequest({
|
|
455
447
|
protocol,
|
|
@@ -461,8 +453,8 @@ const serializeAws_restJson1UpdateBrokerCommand = async (input, context) => {
|
|
|
461
453
|
body,
|
|
462
454
|
});
|
|
463
455
|
};
|
|
464
|
-
exports.
|
|
465
|
-
const
|
|
456
|
+
exports.se_UpdateBrokerCommand = se_UpdateBrokerCommand;
|
|
457
|
+
const se_UpdateConfigurationCommand = async (input, context) => {
|
|
466
458
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
467
459
|
const headers = {
|
|
468
460
|
"content-type": "application/json",
|
|
@@ -484,8 +476,8 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
|
|
|
484
476
|
body,
|
|
485
477
|
});
|
|
486
478
|
};
|
|
487
|
-
exports.
|
|
488
|
-
const
|
|
479
|
+
exports.se_UpdateConfigurationCommand = se_UpdateConfigurationCommand;
|
|
480
|
+
const se_UpdateUserCommand = async (input, context) => {
|
|
489
481
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
490
482
|
const headers = {
|
|
491
483
|
"content-type": "application/json",
|
|
@@ -496,7 +488,7 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
496
488
|
let body;
|
|
497
489
|
body = JSON.stringify({
|
|
498
490
|
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
499
|
-
...(input.Groups != null && { groups:
|
|
491
|
+
...(input.Groups != null && { groups: se___listOf__string(input.Groups, context) }),
|
|
500
492
|
...(input.Password != null && { password: input.Password }),
|
|
501
493
|
});
|
|
502
494
|
return new protocol_http_1.HttpRequest({
|
|
@@ -509,10 +501,10 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
|
|
|
509
501
|
body,
|
|
510
502
|
});
|
|
511
503
|
};
|
|
512
|
-
exports.
|
|
513
|
-
const
|
|
504
|
+
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
505
|
+
const de_CreateBrokerCommand = async (output, context) => {
|
|
514
506
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
515
|
-
return
|
|
507
|
+
return de_CreateBrokerCommandError(output, context);
|
|
516
508
|
}
|
|
517
509
|
const contents = map({
|
|
518
510
|
$metadata: deserializeMetadata(output),
|
|
@@ -526,8 +518,8 @@ const deserializeAws_restJson1CreateBrokerCommand = async (output, context) => {
|
|
|
526
518
|
}
|
|
527
519
|
return contents;
|
|
528
520
|
};
|
|
529
|
-
exports.
|
|
530
|
-
const
|
|
521
|
+
exports.de_CreateBrokerCommand = de_CreateBrokerCommand;
|
|
522
|
+
const de_CreateBrokerCommandError = async (output, context) => {
|
|
531
523
|
const parsedOutput = {
|
|
532
524
|
...output,
|
|
533
525
|
body: await parseErrorBody(output.body, context),
|
|
@@ -536,19 +528,19 @@ const deserializeAws_restJson1CreateBrokerCommandError = async (output, context)
|
|
|
536
528
|
switch (errorCode) {
|
|
537
529
|
case "BadRequestException":
|
|
538
530
|
case "com.amazonaws.mq#BadRequestException":
|
|
539
|
-
throw await
|
|
531
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
540
532
|
case "ConflictException":
|
|
541
533
|
case "com.amazonaws.mq#ConflictException":
|
|
542
|
-
throw await
|
|
534
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
543
535
|
case "ForbiddenException":
|
|
544
536
|
case "com.amazonaws.mq#ForbiddenException":
|
|
545
|
-
throw await
|
|
537
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
546
538
|
case "InternalServerErrorException":
|
|
547
539
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
548
|
-
throw await
|
|
540
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
549
541
|
case "UnauthorizedException":
|
|
550
542
|
case "com.amazonaws.mq#UnauthorizedException":
|
|
551
|
-
throw await
|
|
543
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
552
544
|
default:
|
|
553
545
|
const parsedBody = parsedOutput.body;
|
|
554
546
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -559,9 +551,9 @@ const deserializeAws_restJson1CreateBrokerCommandError = async (output, context)
|
|
|
559
551
|
});
|
|
560
552
|
}
|
|
561
553
|
};
|
|
562
|
-
const
|
|
554
|
+
const de_CreateConfigurationCommand = async (output, context) => {
|
|
563
555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return
|
|
556
|
+
return de_CreateConfigurationCommandError(output, context);
|
|
565
557
|
}
|
|
566
558
|
const contents = map({
|
|
567
559
|
$metadata: deserializeMetadata(output),
|
|
@@ -580,15 +572,15 @@ const deserializeAws_restJson1CreateConfigurationCommand = async (output, contex
|
|
|
580
572
|
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
581
573
|
}
|
|
582
574
|
if (data.latestRevision != null) {
|
|
583
|
-
contents.LatestRevision =
|
|
575
|
+
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
584
576
|
}
|
|
585
577
|
if (data.name != null) {
|
|
586
578
|
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
587
579
|
}
|
|
588
580
|
return contents;
|
|
589
581
|
};
|
|
590
|
-
exports.
|
|
591
|
-
const
|
|
582
|
+
exports.de_CreateConfigurationCommand = de_CreateConfigurationCommand;
|
|
583
|
+
const de_CreateConfigurationCommandError = async (output, context) => {
|
|
592
584
|
const parsedOutput = {
|
|
593
585
|
...output,
|
|
594
586
|
body: await parseErrorBody(output.body, context),
|
|
@@ -597,16 +589,16 @@ const deserializeAws_restJson1CreateConfigurationCommandError = async (output, c
|
|
|
597
589
|
switch (errorCode) {
|
|
598
590
|
case "BadRequestException":
|
|
599
591
|
case "com.amazonaws.mq#BadRequestException":
|
|
600
|
-
throw await
|
|
592
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
601
593
|
case "ConflictException":
|
|
602
594
|
case "com.amazonaws.mq#ConflictException":
|
|
603
|
-
throw await
|
|
595
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
604
596
|
case "ForbiddenException":
|
|
605
597
|
case "com.amazonaws.mq#ForbiddenException":
|
|
606
|
-
throw await
|
|
598
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
607
599
|
case "InternalServerErrorException":
|
|
608
600
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
609
|
-
throw await
|
|
601
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
610
602
|
default:
|
|
611
603
|
const parsedBody = parsedOutput.body;
|
|
612
604
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -617,9 +609,9 @@ const deserializeAws_restJson1CreateConfigurationCommandError = async (output, c
|
|
|
617
609
|
});
|
|
618
610
|
}
|
|
619
611
|
};
|
|
620
|
-
const
|
|
612
|
+
const de_CreateTagsCommand = async (output, context) => {
|
|
621
613
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
622
|
-
return
|
|
614
|
+
return de_CreateTagsCommandError(output, context);
|
|
623
615
|
}
|
|
624
616
|
const contents = map({
|
|
625
617
|
$metadata: deserializeMetadata(output),
|
|
@@ -627,8 +619,8 @@ const deserializeAws_restJson1CreateTagsCommand = async (output, context) => {
|
|
|
627
619
|
await collectBody(output.body, context);
|
|
628
620
|
return contents;
|
|
629
621
|
};
|
|
630
|
-
exports.
|
|
631
|
-
const
|
|
622
|
+
exports.de_CreateTagsCommand = de_CreateTagsCommand;
|
|
623
|
+
const de_CreateTagsCommandError = async (output, context) => {
|
|
632
624
|
const parsedOutput = {
|
|
633
625
|
...output,
|
|
634
626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -637,16 +629,16 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
637
629
|
switch (errorCode) {
|
|
638
630
|
case "BadRequestException":
|
|
639
631
|
case "com.amazonaws.mq#BadRequestException":
|
|
640
|
-
throw await
|
|
632
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
641
633
|
case "ForbiddenException":
|
|
642
634
|
case "com.amazonaws.mq#ForbiddenException":
|
|
643
|
-
throw await
|
|
635
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
644
636
|
case "InternalServerErrorException":
|
|
645
637
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
646
|
-
throw await
|
|
638
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
647
639
|
case "NotFoundException":
|
|
648
640
|
case "com.amazonaws.mq#NotFoundException":
|
|
649
|
-
throw await
|
|
641
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
650
642
|
default:
|
|
651
643
|
const parsedBody = parsedOutput.body;
|
|
652
644
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -657,9 +649,9 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
657
649
|
});
|
|
658
650
|
}
|
|
659
651
|
};
|
|
660
|
-
const
|
|
652
|
+
const de_CreateUserCommand = async (output, context) => {
|
|
661
653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return
|
|
654
|
+
return de_CreateUserCommandError(output, context);
|
|
663
655
|
}
|
|
664
656
|
const contents = map({
|
|
665
657
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,8 +659,8 @@ const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
|
|
|
667
659
|
await collectBody(output.body, context);
|
|
668
660
|
return contents;
|
|
669
661
|
};
|
|
670
|
-
exports.
|
|
671
|
-
const
|
|
662
|
+
exports.de_CreateUserCommand = de_CreateUserCommand;
|
|
663
|
+
const de_CreateUserCommandError = async (output, context) => {
|
|
672
664
|
const parsedOutput = {
|
|
673
665
|
...output,
|
|
674
666
|
body: await parseErrorBody(output.body, context),
|
|
@@ -677,19 +669,19 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
677
669
|
switch (errorCode) {
|
|
678
670
|
case "BadRequestException":
|
|
679
671
|
case "com.amazonaws.mq#BadRequestException":
|
|
680
|
-
throw await
|
|
672
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
681
673
|
case "ConflictException":
|
|
682
674
|
case "com.amazonaws.mq#ConflictException":
|
|
683
|
-
throw await
|
|
675
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
684
676
|
case "ForbiddenException":
|
|
685
677
|
case "com.amazonaws.mq#ForbiddenException":
|
|
686
|
-
throw await
|
|
678
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
687
679
|
case "InternalServerErrorException":
|
|
688
680
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
689
|
-
throw await
|
|
681
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
690
682
|
case "NotFoundException":
|
|
691
683
|
case "com.amazonaws.mq#NotFoundException":
|
|
692
|
-
throw await
|
|
684
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
693
685
|
default:
|
|
694
686
|
const parsedBody = parsedOutput.body;
|
|
695
687
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -700,9 +692,9 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
700
692
|
});
|
|
701
693
|
}
|
|
702
694
|
};
|
|
703
|
-
const
|
|
695
|
+
const de_DeleteBrokerCommand = async (output, context) => {
|
|
704
696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
705
|
-
return
|
|
697
|
+
return de_DeleteBrokerCommandError(output, context);
|
|
706
698
|
}
|
|
707
699
|
const contents = map({
|
|
708
700
|
$metadata: deserializeMetadata(output),
|
|
@@ -713,8 +705,8 @@ const deserializeAws_restJson1DeleteBrokerCommand = async (output, context) => {
|
|
|
713
705
|
}
|
|
714
706
|
return contents;
|
|
715
707
|
};
|
|
716
|
-
exports.
|
|
717
|
-
const
|
|
708
|
+
exports.de_DeleteBrokerCommand = de_DeleteBrokerCommand;
|
|
709
|
+
const de_DeleteBrokerCommandError = async (output, context) => {
|
|
718
710
|
const parsedOutput = {
|
|
719
711
|
...output,
|
|
720
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -723,16 +715,16 @@ const deserializeAws_restJson1DeleteBrokerCommandError = async (output, context)
|
|
|
723
715
|
switch (errorCode) {
|
|
724
716
|
case "BadRequestException":
|
|
725
717
|
case "com.amazonaws.mq#BadRequestException":
|
|
726
|
-
throw await
|
|
718
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
727
719
|
case "ForbiddenException":
|
|
728
720
|
case "com.amazonaws.mq#ForbiddenException":
|
|
729
|
-
throw await
|
|
721
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
730
722
|
case "InternalServerErrorException":
|
|
731
723
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
732
|
-
throw await
|
|
724
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
733
725
|
case "NotFoundException":
|
|
734
726
|
case "com.amazonaws.mq#NotFoundException":
|
|
735
|
-
throw await
|
|
727
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
736
728
|
default:
|
|
737
729
|
const parsedBody = parsedOutput.body;
|
|
738
730
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -743,9 +735,9 @@ const deserializeAws_restJson1DeleteBrokerCommandError = async (output, context)
|
|
|
743
735
|
});
|
|
744
736
|
}
|
|
745
737
|
};
|
|
746
|
-
const
|
|
738
|
+
const de_DeleteTagsCommand = async (output, context) => {
|
|
747
739
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
748
|
-
return
|
|
740
|
+
return de_DeleteTagsCommandError(output, context);
|
|
749
741
|
}
|
|
750
742
|
const contents = map({
|
|
751
743
|
$metadata: deserializeMetadata(output),
|
|
@@ -753,8 +745,8 @@ const deserializeAws_restJson1DeleteTagsCommand = async (output, context) => {
|
|
|
753
745
|
await collectBody(output.body, context);
|
|
754
746
|
return contents;
|
|
755
747
|
};
|
|
756
|
-
exports.
|
|
757
|
-
const
|
|
748
|
+
exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
|
|
749
|
+
const de_DeleteTagsCommandError = async (output, context) => {
|
|
758
750
|
const parsedOutput = {
|
|
759
751
|
...output,
|
|
760
752
|
body: await parseErrorBody(output.body, context),
|
|
@@ -763,16 +755,16 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
763
755
|
switch (errorCode) {
|
|
764
756
|
case "BadRequestException":
|
|
765
757
|
case "com.amazonaws.mq#BadRequestException":
|
|
766
|
-
throw await
|
|
758
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
767
759
|
case "ForbiddenException":
|
|
768
760
|
case "com.amazonaws.mq#ForbiddenException":
|
|
769
|
-
throw await
|
|
761
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
770
762
|
case "InternalServerErrorException":
|
|
771
763
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
772
|
-
throw await
|
|
764
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
773
765
|
case "NotFoundException":
|
|
774
766
|
case "com.amazonaws.mq#NotFoundException":
|
|
775
|
-
throw await
|
|
767
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
776
768
|
default:
|
|
777
769
|
const parsedBody = parsedOutput.body;
|
|
778
770
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -783,9 +775,9 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
783
775
|
});
|
|
784
776
|
}
|
|
785
777
|
};
|
|
786
|
-
const
|
|
778
|
+
const de_DeleteUserCommand = async (output, context) => {
|
|
787
779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
-
return
|
|
780
|
+
return de_DeleteUserCommandError(output, context);
|
|
789
781
|
}
|
|
790
782
|
const contents = map({
|
|
791
783
|
$metadata: deserializeMetadata(output),
|
|
@@ -793,8 +785,8 @@ const deserializeAws_restJson1DeleteUserCommand = async (output, context) => {
|
|
|
793
785
|
await collectBody(output.body, context);
|
|
794
786
|
return contents;
|
|
795
787
|
};
|
|
796
|
-
exports.
|
|
797
|
-
const
|
|
788
|
+
exports.de_DeleteUserCommand = de_DeleteUserCommand;
|
|
789
|
+
const de_DeleteUserCommandError = async (output, context) => {
|
|
798
790
|
const parsedOutput = {
|
|
799
791
|
...output,
|
|
800
792
|
body: await parseErrorBody(output.body, context),
|
|
@@ -803,16 +795,16 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
|
|
|
803
795
|
switch (errorCode) {
|
|
804
796
|
case "BadRequestException":
|
|
805
797
|
case "com.amazonaws.mq#BadRequestException":
|
|
806
|
-
throw await
|
|
798
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
807
799
|
case "ForbiddenException":
|
|
808
800
|
case "com.amazonaws.mq#ForbiddenException":
|
|
809
|
-
throw await
|
|
801
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
810
802
|
case "InternalServerErrorException":
|
|
811
803
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
812
|
-
throw await
|
|
804
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
813
805
|
case "NotFoundException":
|
|
814
806
|
case "com.amazonaws.mq#NotFoundException":
|
|
815
|
-
throw await
|
|
807
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
816
808
|
default:
|
|
817
809
|
const parsedBody = parsedOutput.body;
|
|
818
810
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -823,16 +815,16 @@ const deserializeAws_restJson1DeleteUserCommandError = async (output, context) =
|
|
|
823
815
|
});
|
|
824
816
|
}
|
|
825
817
|
};
|
|
826
|
-
const
|
|
818
|
+
const de_DescribeBrokerCommand = async (output, context) => {
|
|
827
819
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return
|
|
820
|
+
return de_DescribeBrokerCommandError(output, context);
|
|
829
821
|
}
|
|
830
822
|
const contents = map({
|
|
831
823
|
$metadata: deserializeMetadata(output),
|
|
832
824
|
});
|
|
833
825
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
834
826
|
if (data.actionsRequired != null) {
|
|
835
|
-
contents.ActionsRequired =
|
|
827
|
+
contents.ActionsRequired = de___listOfActionRequired(data.actionsRequired, context);
|
|
836
828
|
}
|
|
837
829
|
if (data.authenticationStrategy != null) {
|
|
838
830
|
contents.AuthenticationStrategy = (0, smithy_client_1.expectString)(data.authenticationStrategy);
|
|
@@ -847,7 +839,7 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
847
839
|
contents.BrokerId = (0, smithy_client_1.expectString)(data.brokerId);
|
|
848
840
|
}
|
|
849
841
|
if (data.brokerInstances != null) {
|
|
850
|
-
contents.BrokerInstances =
|
|
842
|
+
contents.BrokerInstances = de___listOfBrokerInstance(data.brokerInstances, context);
|
|
851
843
|
}
|
|
852
844
|
if (data.brokerName != null) {
|
|
853
845
|
contents.BrokerName = (0, smithy_client_1.expectString)(data.brokerName);
|
|
@@ -856,7 +848,7 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
856
848
|
contents.BrokerState = (0, smithy_client_1.expectString)(data.brokerState);
|
|
857
849
|
}
|
|
858
850
|
if (data.configurations != null) {
|
|
859
|
-
contents.Configurations =
|
|
851
|
+
contents.Configurations = de_Configurations(data.configurations, context);
|
|
860
852
|
}
|
|
861
853
|
if (data.created != null) {
|
|
862
854
|
contents.Created = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.created));
|
|
@@ -865,7 +857,7 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
865
857
|
contents.DeploymentMode = (0, smithy_client_1.expectString)(data.deploymentMode);
|
|
866
858
|
}
|
|
867
859
|
if (data.encryptionOptions != null) {
|
|
868
|
-
contents.EncryptionOptions =
|
|
860
|
+
contents.EncryptionOptions = de_EncryptionOptions(data.encryptionOptions, context);
|
|
869
861
|
}
|
|
870
862
|
if (data.engineType != null) {
|
|
871
863
|
contents.EngineType = (0, smithy_client_1.expectString)(data.engineType);
|
|
@@ -877,13 +869,13 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
877
869
|
contents.HostInstanceType = (0, smithy_client_1.expectString)(data.hostInstanceType);
|
|
878
870
|
}
|
|
879
871
|
if (data.ldapServerMetadata != null) {
|
|
880
|
-
contents.LdapServerMetadata =
|
|
872
|
+
contents.LdapServerMetadata = de_LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
881
873
|
}
|
|
882
874
|
if (data.logs != null) {
|
|
883
|
-
contents.Logs =
|
|
875
|
+
contents.Logs = de_LogsSummary(data.logs, context);
|
|
884
876
|
}
|
|
885
877
|
if (data.maintenanceWindowStartTime != null) {
|
|
886
|
-
contents.MaintenanceWindowStartTime =
|
|
878
|
+
contents.MaintenanceWindowStartTime = de_WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
887
879
|
}
|
|
888
880
|
if (data.pendingAuthenticationStrategy != null) {
|
|
889
881
|
contents.PendingAuthenticationStrategy = (0, smithy_client_1.expectString)(data.pendingAuthenticationStrategy);
|
|
@@ -895,33 +887,33 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
|
|
|
895
887
|
contents.PendingHostInstanceType = (0, smithy_client_1.expectString)(data.pendingHostInstanceType);
|
|
896
888
|
}
|
|
897
889
|
if (data.pendingLdapServerMetadata != null) {
|
|
898
|
-
contents.PendingLdapServerMetadata =
|
|
890
|
+
contents.PendingLdapServerMetadata = de_LdapServerMetadataOutput(data.pendingLdapServerMetadata, context);
|
|
899
891
|
}
|
|
900
892
|
if (data.pendingSecurityGroups != null) {
|
|
901
|
-
contents.PendingSecurityGroups =
|
|
893
|
+
contents.PendingSecurityGroups = de___listOf__string(data.pendingSecurityGroups, context);
|
|
902
894
|
}
|
|
903
895
|
if (data.publiclyAccessible != null) {
|
|
904
896
|
contents.PubliclyAccessible = (0, smithy_client_1.expectBoolean)(data.publiclyAccessible);
|
|
905
897
|
}
|
|
906
898
|
if (data.securityGroups != null) {
|
|
907
|
-
contents.SecurityGroups =
|
|
899
|
+
contents.SecurityGroups = de___listOf__string(data.securityGroups, context);
|
|
908
900
|
}
|
|
909
901
|
if (data.storageType != null) {
|
|
910
902
|
contents.StorageType = (0, smithy_client_1.expectString)(data.storageType);
|
|
911
903
|
}
|
|
912
904
|
if (data.subnetIds != null) {
|
|
913
|
-
contents.SubnetIds =
|
|
905
|
+
contents.SubnetIds = de___listOf__string(data.subnetIds, context);
|
|
914
906
|
}
|
|
915
907
|
if (data.tags != null) {
|
|
916
|
-
contents.Tags =
|
|
908
|
+
contents.Tags = de___mapOf__string(data.tags, context);
|
|
917
909
|
}
|
|
918
910
|
if (data.users != null) {
|
|
919
|
-
contents.Users =
|
|
911
|
+
contents.Users = de___listOfUserSummary(data.users, context);
|
|
920
912
|
}
|
|
921
913
|
return contents;
|
|
922
914
|
};
|
|
923
|
-
exports.
|
|
924
|
-
const
|
|
915
|
+
exports.de_DescribeBrokerCommand = de_DescribeBrokerCommand;
|
|
916
|
+
const de_DescribeBrokerCommandError = async (output, context) => {
|
|
925
917
|
const parsedOutput = {
|
|
926
918
|
...output,
|
|
927
919
|
body: await parseErrorBody(output.body, context),
|
|
@@ -930,16 +922,16 @@ const deserializeAws_restJson1DescribeBrokerCommandError = async (output, contex
|
|
|
930
922
|
switch (errorCode) {
|
|
931
923
|
case "BadRequestException":
|
|
932
924
|
case "com.amazonaws.mq#BadRequestException":
|
|
933
|
-
throw await
|
|
925
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
934
926
|
case "ForbiddenException":
|
|
935
927
|
case "com.amazonaws.mq#ForbiddenException":
|
|
936
|
-
throw await
|
|
928
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
937
929
|
case "InternalServerErrorException":
|
|
938
930
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
939
|
-
throw await
|
|
931
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
940
932
|
case "NotFoundException":
|
|
941
933
|
case "com.amazonaws.mq#NotFoundException":
|
|
942
|
-
throw await
|
|
934
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
943
935
|
default:
|
|
944
936
|
const parsedBody = parsedOutput.body;
|
|
945
937
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -950,16 +942,16 @@ const deserializeAws_restJson1DescribeBrokerCommandError = async (output, contex
|
|
|
950
942
|
});
|
|
951
943
|
}
|
|
952
944
|
};
|
|
953
|
-
const
|
|
945
|
+
const de_DescribeBrokerEngineTypesCommand = async (output, context) => {
|
|
954
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
955
|
-
return
|
|
947
|
+
return de_DescribeBrokerEngineTypesCommandError(output, context);
|
|
956
948
|
}
|
|
957
949
|
const contents = map({
|
|
958
950
|
$metadata: deserializeMetadata(output),
|
|
959
951
|
});
|
|
960
952
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
961
953
|
if (data.brokerEngineTypes != null) {
|
|
962
|
-
contents.BrokerEngineTypes =
|
|
954
|
+
contents.BrokerEngineTypes = de___listOfBrokerEngineType(data.brokerEngineTypes, context);
|
|
963
955
|
}
|
|
964
956
|
if (data.maxResults != null) {
|
|
965
957
|
contents.MaxResults = (0, smithy_client_1.expectInt32)(data.maxResults);
|
|
@@ -969,8 +961,8 @@ const deserializeAws_restJson1DescribeBrokerEngineTypesCommand = async (output,
|
|
|
969
961
|
}
|
|
970
962
|
return contents;
|
|
971
963
|
};
|
|
972
|
-
exports.
|
|
973
|
-
const
|
|
964
|
+
exports.de_DescribeBrokerEngineTypesCommand = de_DescribeBrokerEngineTypesCommand;
|
|
965
|
+
const de_DescribeBrokerEngineTypesCommandError = async (output, context) => {
|
|
974
966
|
const parsedOutput = {
|
|
975
967
|
...output,
|
|
976
968
|
body: await parseErrorBody(output.body, context),
|
|
@@ -979,13 +971,13 @@ const deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = async (out
|
|
|
979
971
|
switch (errorCode) {
|
|
980
972
|
case "BadRequestException":
|
|
981
973
|
case "com.amazonaws.mq#BadRequestException":
|
|
982
|
-
throw await
|
|
974
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
983
975
|
case "ForbiddenException":
|
|
984
976
|
case "com.amazonaws.mq#ForbiddenException":
|
|
985
|
-
throw await
|
|
977
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
986
978
|
case "InternalServerErrorException":
|
|
987
979
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
988
|
-
throw await
|
|
980
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
989
981
|
default:
|
|
990
982
|
const parsedBody = parsedOutput.body;
|
|
991
983
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -996,16 +988,16 @@ const deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = async (out
|
|
|
996
988
|
});
|
|
997
989
|
}
|
|
998
990
|
};
|
|
999
|
-
const
|
|
991
|
+
const de_DescribeBrokerInstanceOptionsCommand = async (output, context) => {
|
|
1000
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
993
|
+
return de_DescribeBrokerInstanceOptionsCommandError(output, context);
|
|
1002
994
|
}
|
|
1003
995
|
const contents = map({
|
|
1004
996
|
$metadata: deserializeMetadata(output),
|
|
1005
997
|
});
|
|
1006
998
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1007
999
|
if (data.brokerInstanceOptions != null) {
|
|
1008
|
-
contents.BrokerInstanceOptions =
|
|
1000
|
+
contents.BrokerInstanceOptions = de___listOfBrokerInstanceOption(data.brokerInstanceOptions, context);
|
|
1009
1001
|
}
|
|
1010
1002
|
if (data.maxResults != null) {
|
|
1011
1003
|
contents.MaxResults = (0, smithy_client_1.expectInt32)(data.maxResults);
|
|
@@ -1015,8 +1007,8 @@ const deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = async (outp
|
|
|
1015
1007
|
}
|
|
1016
1008
|
return contents;
|
|
1017
1009
|
};
|
|
1018
|
-
exports.
|
|
1019
|
-
const
|
|
1010
|
+
exports.de_DescribeBrokerInstanceOptionsCommand = de_DescribeBrokerInstanceOptionsCommand;
|
|
1011
|
+
const de_DescribeBrokerInstanceOptionsCommandError = async (output, context) => {
|
|
1020
1012
|
const parsedOutput = {
|
|
1021
1013
|
...output,
|
|
1022
1014
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1025,13 +1017,13 @@ const deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = async
|
|
|
1025
1017
|
switch (errorCode) {
|
|
1026
1018
|
case "BadRequestException":
|
|
1027
1019
|
case "com.amazonaws.mq#BadRequestException":
|
|
1028
|
-
throw await
|
|
1020
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1029
1021
|
case "ForbiddenException":
|
|
1030
1022
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1031
|
-
throw await
|
|
1023
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1032
1024
|
case "InternalServerErrorException":
|
|
1033
1025
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1034
|
-
throw await
|
|
1026
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1035
1027
|
default:
|
|
1036
1028
|
const parsedBody = parsedOutput.body;
|
|
1037
1029
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1042,9 +1034,9 @@ const deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = async
|
|
|
1042
1034
|
});
|
|
1043
1035
|
}
|
|
1044
1036
|
};
|
|
1045
|
-
const
|
|
1037
|
+
const de_DescribeConfigurationCommand = async (output, context) => {
|
|
1046
1038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1047
|
-
return
|
|
1039
|
+
return de_DescribeConfigurationCommandError(output, context);
|
|
1048
1040
|
}
|
|
1049
1041
|
const contents = map({
|
|
1050
1042
|
$metadata: deserializeMetadata(output),
|
|
@@ -1072,18 +1064,18 @@ const deserializeAws_restJson1DescribeConfigurationCommand = async (output, cont
|
|
|
1072
1064
|
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1073
1065
|
}
|
|
1074
1066
|
if (data.latestRevision != null) {
|
|
1075
|
-
contents.LatestRevision =
|
|
1067
|
+
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
1076
1068
|
}
|
|
1077
1069
|
if (data.name != null) {
|
|
1078
1070
|
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
1079
1071
|
}
|
|
1080
1072
|
if (data.tags != null) {
|
|
1081
|
-
contents.Tags =
|
|
1073
|
+
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1082
1074
|
}
|
|
1083
1075
|
return contents;
|
|
1084
1076
|
};
|
|
1085
|
-
exports.
|
|
1086
|
-
const
|
|
1077
|
+
exports.de_DescribeConfigurationCommand = de_DescribeConfigurationCommand;
|
|
1078
|
+
const de_DescribeConfigurationCommandError = async (output, context) => {
|
|
1087
1079
|
const parsedOutput = {
|
|
1088
1080
|
...output,
|
|
1089
1081
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1092,16 +1084,16 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
|
|
|
1092
1084
|
switch (errorCode) {
|
|
1093
1085
|
case "BadRequestException":
|
|
1094
1086
|
case "com.amazonaws.mq#BadRequestException":
|
|
1095
|
-
throw await
|
|
1087
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1096
1088
|
case "ForbiddenException":
|
|
1097
1089
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1098
|
-
throw await
|
|
1090
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1099
1091
|
case "InternalServerErrorException":
|
|
1100
1092
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1101
|
-
throw await
|
|
1093
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1102
1094
|
case "NotFoundException":
|
|
1103
1095
|
case "com.amazonaws.mq#NotFoundException":
|
|
1104
|
-
throw await
|
|
1096
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1105
1097
|
default:
|
|
1106
1098
|
const parsedBody = parsedOutput.body;
|
|
1107
1099
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1112,9 +1104,9 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
|
|
|
1112
1104
|
});
|
|
1113
1105
|
}
|
|
1114
1106
|
};
|
|
1115
|
-
const
|
|
1107
|
+
const de_DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
1116
1108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
1109
|
+
return de_DescribeConfigurationRevisionCommandError(output, context);
|
|
1118
1110
|
}
|
|
1119
1111
|
const contents = map({
|
|
1120
1112
|
$metadata: deserializeMetadata(output),
|
|
@@ -1134,8 +1126,8 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommand = async (outp
|
|
|
1134
1126
|
}
|
|
1135
1127
|
return contents;
|
|
1136
1128
|
};
|
|
1137
|
-
exports.
|
|
1138
|
-
const
|
|
1129
|
+
exports.de_DescribeConfigurationRevisionCommand = de_DescribeConfigurationRevisionCommand;
|
|
1130
|
+
const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
1139
1131
|
const parsedOutput = {
|
|
1140
1132
|
...output,
|
|
1141
1133
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1144,16 +1136,16 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async
|
|
|
1144
1136
|
switch (errorCode) {
|
|
1145
1137
|
case "BadRequestException":
|
|
1146
1138
|
case "com.amazonaws.mq#BadRequestException":
|
|
1147
|
-
throw await
|
|
1139
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1148
1140
|
case "ForbiddenException":
|
|
1149
1141
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1150
|
-
throw await
|
|
1142
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1151
1143
|
case "InternalServerErrorException":
|
|
1152
1144
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1153
|
-
throw await
|
|
1145
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1154
1146
|
case "NotFoundException":
|
|
1155
1147
|
case "com.amazonaws.mq#NotFoundException":
|
|
1156
|
-
throw await
|
|
1148
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1157
1149
|
default:
|
|
1158
1150
|
const parsedBody = parsedOutput.body;
|
|
1159
1151
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1164,9 +1156,9 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async
|
|
|
1164
1156
|
});
|
|
1165
1157
|
}
|
|
1166
1158
|
};
|
|
1167
|
-
const
|
|
1159
|
+
const de_DescribeUserCommand = async (output, context) => {
|
|
1168
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1169
|
-
return
|
|
1161
|
+
return de_DescribeUserCommandError(output, context);
|
|
1170
1162
|
}
|
|
1171
1163
|
const contents = map({
|
|
1172
1164
|
$metadata: deserializeMetadata(output),
|
|
@@ -1179,18 +1171,18 @@ const deserializeAws_restJson1DescribeUserCommand = async (output, context) => {
|
|
|
1179
1171
|
contents.ConsoleAccess = (0, smithy_client_1.expectBoolean)(data.consoleAccess);
|
|
1180
1172
|
}
|
|
1181
1173
|
if (data.groups != null) {
|
|
1182
|
-
contents.Groups =
|
|
1174
|
+
contents.Groups = de___listOf__string(data.groups, context);
|
|
1183
1175
|
}
|
|
1184
1176
|
if (data.pending != null) {
|
|
1185
|
-
contents.Pending =
|
|
1177
|
+
contents.Pending = de_UserPendingChanges(data.pending, context);
|
|
1186
1178
|
}
|
|
1187
1179
|
if (data.username != null) {
|
|
1188
1180
|
contents.Username = (0, smithy_client_1.expectString)(data.username);
|
|
1189
1181
|
}
|
|
1190
1182
|
return contents;
|
|
1191
1183
|
};
|
|
1192
|
-
exports.
|
|
1193
|
-
const
|
|
1184
|
+
exports.de_DescribeUserCommand = de_DescribeUserCommand;
|
|
1185
|
+
const de_DescribeUserCommandError = async (output, context) => {
|
|
1194
1186
|
const parsedOutput = {
|
|
1195
1187
|
...output,
|
|
1196
1188
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1199,16 +1191,16 @@ const deserializeAws_restJson1DescribeUserCommandError = async (output, context)
|
|
|
1199
1191
|
switch (errorCode) {
|
|
1200
1192
|
case "BadRequestException":
|
|
1201
1193
|
case "com.amazonaws.mq#BadRequestException":
|
|
1202
|
-
throw await
|
|
1194
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1203
1195
|
case "ForbiddenException":
|
|
1204
1196
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1205
|
-
throw await
|
|
1197
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1206
1198
|
case "InternalServerErrorException":
|
|
1207
1199
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1208
|
-
throw await
|
|
1200
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1209
1201
|
case "NotFoundException":
|
|
1210
1202
|
case "com.amazonaws.mq#NotFoundException":
|
|
1211
|
-
throw await
|
|
1203
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1212
1204
|
default:
|
|
1213
1205
|
const parsedBody = parsedOutput.body;
|
|
1214
1206
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1219,24 +1211,24 @@ const deserializeAws_restJson1DescribeUserCommandError = async (output, context)
|
|
|
1219
1211
|
});
|
|
1220
1212
|
}
|
|
1221
1213
|
};
|
|
1222
|
-
const
|
|
1214
|
+
const de_ListBrokersCommand = async (output, context) => {
|
|
1223
1215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1224
|
-
return
|
|
1216
|
+
return de_ListBrokersCommandError(output, context);
|
|
1225
1217
|
}
|
|
1226
1218
|
const contents = map({
|
|
1227
1219
|
$metadata: deserializeMetadata(output),
|
|
1228
1220
|
});
|
|
1229
1221
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1230
1222
|
if (data.brokerSummaries != null) {
|
|
1231
|
-
contents.BrokerSummaries =
|
|
1223
|
+
contents.BrokerSummaries = de___listOfBrokerSummary(data.brokerSummaries, context);
|
|
1232
1224
|
}
|
|
1233
1225
|
if (data.nextToken != null) {
|
|
1234
1226
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1235
1227
|
}
|
|
1236
1228
|
return contents;
|
|
1237
1229
|
};
|
|
1238
|
-
exports.
|
|
1239
|
-
const
|
|
1230
|
+
exports.de_ListBrokersCommand = de_ListBrokersCommand;
|
|
1231
|
+
const de_ListBrokersCommandError = async (output, context) => {
|
|
1240
1232
|
const parsedOutput = {
|
|
1241
1233
|
...output,
|
|
1242
1234
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1245,13 +1237,13 @@ const deserializeAws_restJson1ListBrokersCommandError = async (output, context)
|
|
|
1245
1237
|
switch (errorCode) {
|
|
1246
1238
|
case "BadRequestException":
|
|
1247
1239
|
case "com.amazonaws.mq#BadRequestException":
|
|
1248
|
-
throw await
|
|
1240
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1249
1241
|
case "ForbiddenException":
|
|
1250
1242
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1251
|
-
throw await
|
|
1243
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1252
1244
|
case "InternalServerErrorException":
|
|
1253
1245
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1254
|
-
throw await
|
|
1246
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1255
1247
|
default:
|
|
1256
1248
|
const parsedBody = parsedOutput.body;
|
|
1257
1249
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1262,9 +1254,9 @@ const deserializeAws_restJson1ListBrokersCommandError = async (output, context)
|
|
|
1262
1254
|
});
|
|
1263
1255
|
}
|
|
1264
1256
|
};
|
|
1265
|
-
const
|
|
1257
|
+
const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
1266
1258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1259
|
+
return de_ListConfigurationRevisionsCommandError(output, context);
|
|
1268
1260
|
}
|
|
1269
1261
|
const contents = map({
|
|
1270
1262
|
$metadata: deserializeMetadata(output),
|
|
@@ -1280,12 +1272,12 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommand = async (output,
|
|
|
1280
1272
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1281
1273
|
}
|
|
1282
1274
|
if (data.revisions != null) {
|
|
1283
|
-
contents.Revisions =
|
|
1275
|
+
contents.Revisions = de___listOfConfigurationRevision(data.revisions, context);
|
|
1284
1276
|
}
|
|
1285
1277
|
return contents;
|
|
1286
1278
|
};
|
|
1287
|
-
exports.
|
|
1288
|
-
const
|
|
1279
|
+
exports.de_ListConfigurationRevisionsCommand = de_ListConfigurationRevisionsCommand;
|
|
1280
|
+
const de_ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
1289
1281
|
const parsedOutput = {
|
|
1290
1282
|
...output,
|
|
1291
1283
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1294,16 +1286,16 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (ou
|
|
|
1294
1286
|
switch (errorCode) {
|
|
1295
1287
|
case "BadRequestException":
|
|
1296
1288
|
case "com.amazonaws.mq#BadRequestException":
|
|
1297
|
-
throw await
|
|
1289
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1298
1290
|
case "ForbiddenException":
|
|
1299
1291
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1300
|
-
throw await
|
|
1292
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1301
1293
|
case "InternalServerErrorException":
|
|
1302
1294
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1303
|
-
throw await
|
|
1295
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1304
1296
|
case "NotFoundException":
|
|
1305
1297
|
case "com.amazonaws.mq#NotFoundException":
|
|
1306
|
-
throw await
|
|
1298
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1307
1299
|
default:
|
|
1308
1300
|
const parsedBody = parsedOutput.body;
|
|
1309
1301
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1314,16 +1306,16 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (ou
|
|
|
1314
1306
|
});
|
|
1315
1307
|
}
|
|
1316
1308
|
};
|
|
1317
|
-
const
|
|
1309
|
+
const de_ListConfigurationsCommand = async (output, context) => {
|
|
1318
1310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return
|
|
1311
|
+
return de_ListConfigurationsCommandError(output, context);
|
|
1320
1312
|
}
|
|
1321
1313
|
const contents = map({
|
|
1322
1314
|
$metadata: deserializeMetadata(output),
|
|
1323
1315
|
});
|
|
1324
1316
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1325
1317
|
if (data.configurations != null) {
|
|
1326
|
-
contents.Configurations =
|
|
1318
|
+
contents.Configurations = de___listOfConfiguration(data.configurations, context);
|
|
1327
1319
|
}
|
|
1328
1320
|
if (data.maxResults != null) {
|
|
1329
1321
|
contents.MaxResults = (0, smithy_client_1.expectInt32)(data.maxResults);
|
|
@@ -1333,8 +1325,8 @@ const deserializeAws_restJson1ListConfigurationsCommand = async (output, context
|
|
|
1333
1325
|
}
|
|
1334
1326
|
return contents;
|
|
1335
1327
|
};
|
|
1336
|
-
exports.
|
|
1337
|
-
const
|
|
1328
|
+
exports.de_ListConfigurationsCommand = de_ListConfigurationsCommand;
|
|
1329
|
+
const de_ListConfigurationsCommandError = async (output, context) => {
|
|
1338
1330
|
const parsedOutput = {
|
|
1339
1331
|
...output,
|
|
1340
1332
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1343,13 +1335,13 @@ const deserializeAws_restJson1ListConfigurationsCommandError = async (output, co
|
|
|
1343
1335
|
switch (errorCode) {
|
|
1344
1336
|
case "BadRequestException":
|
|
1345
1337
|
case "com.amazonaws.mq#BadRequestException":
|
|
1346
|
-
throw await
|
|
1338
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1347
1339
|
case "ForbiddenException":
|
|
1348
1340
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1349
|
-
throw await
|
|
1341
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1350
1342
|
case "InternalServerErrorException":
|
|
1351
1343
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1352
|
-
throw await
|
|
1344
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1353
1345
|
default:
|
|
1354
1346
|
const parsedBody = parsedOutput.body;
|
|
1355
1347
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1360,21 +1352,21 @@ const deserializeAws_restJson1ListConfigurationsCommandError = async (output, co
|
|
|
1360
1352
|
});
|
|
1361
1353
|
}
|
|
1362
1354
|
};
|
|
1363
|
-
const
|
|
1355
|
+
const de_ListTagsCommand = async (output, context) => {
|
|
1364
1356
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
1357
|
+
return de_ListTagsCommandError(output, context);
|
|
1366
1358
|
}
|
|
1367
1359
|
const contents = map({
|
|
1368
1360
|
$metadata: deserializeMetadata(output),
|
|
1369
1361
|
});
|
|
1370
1362
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1371
1363
|
if (data.tags != null) {
|
|
1372
|
-
contents.Tags =
|
|
1364
|
+
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1373
1365
|
}
|
|
1374
1366
|
return contents;
|
|
1375
1367
|
};
|
|
1376
|
-
exports.
|
|
1377
|
-
const
|
|
1368
|
+
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
1369
|
+
const de_ListTagsCommandError = async (output, context) => {
|
|
1378
1370
|
const parsedOutput = {
|
|
1379
1371
|
...output,
|
|
1380
1372
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1383,16 +1375,16 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
1383
1375
|
switch (errorCode) {
|
|
1384
1376
|
case "BadRequestException":
|
|
1385
1377
|
case "com.amazonaws.mq#BadRequestException":
|
|
1386
|
-
throw await
|
|
1378
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1387
1379
|
case "ForbiddenException":
|
|
1388
1380
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1389
|
-
throw await
|
|
1381
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1390
1382
|
case "InternalServerErrorException":
|
|
1391
1383
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1392
|
-
throw await
|
|
1384
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1393
1385
|
case "NotFoundException":
|
|
1394
1386
|
case "com.amazonaws.mq#NotFoundException":
|
|
1395
|
-
throw await
|
|
1387
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1396
1388
|
default:
|
|
1397
1389
|
const parsedBody = parsedOutput.body;
|
|
1398
1390
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1403,9 +1395,9 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
1403
1395
|
});
|
|
1404
1396
|
}
|
|
1405
1397
|
};
|
|
1406
|
-
const
|
|
1398
|
+
const de_ListUsersCommand = async (output, context) => {
|
|
1407
1399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return
|
|
1400
|
+
return de_ListUsersCommandError(output, context);
|
|
1409
1401
|
}
|
|
1410
1402
|
const contents = map({
|
|
1411
1403
|
$metadata: deserializeMetadata(output),
|
|
@@ -1421,12 +1413,12 @@ const deserializeAws_restJson1ListUsersCommand = async (output, context) => {
|
|
|
1421
1413
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1422
1414
|
}
|
|
1423
1415
|
if (data.users != null) {
|
|
1424
|
-
contents.Users =
|
|
1416
|
+
contents.Users = de___listOfUserSummary(data.users, context);
|
|
1425
1417
|
}
|
|
1426
1418
|
return contents;
|
|
1427
1419
|
};
|
|
1428
|
-
exports.
|
|
1429
|
-
const
|
|
1420
|
+
exports.de_ListUsersCommand = de_ListUsersCommand;
|
|
1421
|
+
const de_ListUsersCommandError = async (output, context) => {
|
|
1430
1422
|
const parsedOutput = {
|
|
1431
1423
|
...output,
|
|
1432
1424
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1435,16 +1427,16 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
1435
1427
|
switch (errorCode) {
|
|
1436
1428
|
case "BadRequestException":
|
|
1437
1429
|
case "com.amazonaws.mq#BadRequestException":
|
|
1438
|
-
throw await
|
|
1430
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1439
1431
|
case "ForbiddenException":
|
|
1440
1432
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1441
|
-
throw await
|
|
1433
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1442
1434
|
case "InternalServerErrorException":
|
|
1443
1435
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1444
|
-
throw await
|
|
1436
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1445
1437
|
case "NotFoundException":
|
|
1446
1438
|
case "com.amazonaws.mq#NotFoundException":
|
|
1447
|
-
throw await
|
|
1439
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1448
1440
|
default:
|
|
1449
1441
|
const parsedBody = parsedOutput.body;
|
|
1450
1442
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1455,9 +1447,9 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
1455
1447
|
});
|
|
1456
1448
|
}
|
|
1457
1449
|
};
|
|
1458
|
-
const
|
|
1450
|
+
const de_RebootBrokerCommand = async (output, context) => {
|
|
1459
1451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1460
|
-
return
|
|
1452
|
+
return de_RebootBrokerCommandError(output, context);
|
|
1461
1453
|
}
|
|
1462
1454
|
const contents = map({
|
|
1463
1455
|
$metadata: deserializeMetadata(output),
|
|
@@ -1465,8 +1457,8 @@ const deserializeAws_restJson1RebootBrokerCommand = async (output, context) => {
|
|
|
1465
1457
|
await collectBody(output.body, context);
|
|
1466
1458
|
return contents;
|
|
1467
1459
|
};
|
|
1468
|
-
exports.
|
|
1469
|
-
const
|
|
1460
|
+
exports.de_RebootBrokerCommand = de_RebootBrokerCommand;
|
|
1461
|
+
const de_RebootBrokerCommandError = async (output, context) => {
|
|
1470
1462
|
const parsedOutput = {
|
|
1471
1463
|
...output,
|
|
1472
1464
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1475,16 +1467,16 @@ const deserializeAws_restJson1RebootBrokerCommandError = async (output, context)
|
|
|
1475
1467
|
switch (errorCode) {
|
|
1476
1468
|
case "BadRequestException":
|
|
1477
1469
|
case "com.amazonaws.mq#BadRequestException":
|
|
1478
|
-
throw await
|
|
1470
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1479
1471
|
case "ForbiddenException":
|
|
1480
1472
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1481
|
-
throw await
|
|
1473
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1482
1474
|
case "InternalServerErrorException":
|
|
1483
1475
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1484
|
-
throw await
|
|
1476
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1485
1477
|
case "NotFoundException":
|
|
1486
1478
|
case "com.amazonaws.mq#NotFoundException":
|
|
1487
|
-
throw await
|
|
1479
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1488
1480
|
default:
|
|
1489
1481
|
const parsedBody = parsedOutput.body;
|
|
1490
1482
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1495,9 +1487,9 @@ const deserializeAws_restJson1RebootBrokerCommandError = async (output, context)
|
|
|
1495
1487
|
});
|
|
1496
1488
|
}
|
|
1497
1489
|
};
|
|
1498
|
-
const
|
|
1490
|
+
const de_UpdateBrokerCommand = async (output, context) => {
|
|
1499
1491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1500
|
-
return
|
|
1492
|
+
return de_UpdateBrokerCommandError(output, context);
|
|
1501
1493
|
}
|
|
1502
1494
|
const contents = map({
|
|
1503
1495
|
$metadata: deserializeMetadata(output),
|
|
@@ -1513,7 +1505,7 @@ const deserializeAws_restJson1UpdateBrokerCommand = async (output, context) => {
|
|
|
1513
1505
|
contents.BrokerId = (0, smithy_client_1.expectString)(data.brokerId);
|
|
1514
1506
|
}
|
|
1515
1507
|
if (data.configuration != null) {
|
|
1516
|
-
contents.Configuration =
|
|
1508
|
+
contents.Configuration = de_ConfigurationId(data.configuration, context);
|
|
1517
1509
|
}
|
|
1518
1510
|
if (data.engineVersion != null) {
|
|
1519
1511
|
contents.EngineVersion = (0, smithy_client_1.expectString)(data.engineVersion);
|
|
@@ -1522,21 +1514,21 @@ const deserializeAws_restJson1UpdateBrokerCommand = async (output, context) => {
|
|
|
1522
1514
|
contents.HostInstanceType = (0, smithy_client_1.expectString)(data.hostInstanceType);
|
|
1523
1515
|
}
|
|
1524
1516
|
if (data.ldapServerMetadata != null) {
|
|
1525
|
-
contents.LdapServerMetadata =
|
|
1517
|
+
contents.LdapServerMetadata = de_LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
1526
1518
|
}
|
|
1527
1519
|
if (data.logs != null) {
|
|
1528
|
-
contents.Logs =
|
|
1520
|
+
contents.Logs = de_Logs(data.logs, context);
|
|
1529
1521
|
}
|
|
1530
1522
|
if (data.maintenanceWindowStartTime != null) {
|
|
1531
|
-
contents.MaintenanceWindowStartTime =
|
|
1523
|
+
contents.MaintenanceWindowStartTime = de_WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
1532
1524
|
}
|
|
1533
1525
|
if (data.securityGroups != null) {
|
|
1534
|
-
contents.SecurityGroups =
|
|
1526
|
+
contents.SecurityGroups = de___listOf__string(data.securityGroups, context);
|
|
1535
1527
|
}
|
|
1536
1528
|
return contents;
|
|
1537
1529
|
};
|
|
1538
|
-
exports.
|
|
1539
|
-
const
|
|
1530
|
+
exports.de_UpdateBrokerCommand = de_UpdateBrokerCommand;
|
|
1531
|
+
const de_UpdateBrokerCommandError = async (output, context) => {
|
|
1540
1532
|
const parsedOutput = {
|
|
1541
1533
|
...output,
|
|
1542
1534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1545,19 +1537,19 @@ const deserializeAws_restJson1UpdateBrokerCommandError = async (output, context)
|
|
|
1545
1537
|
switch (errorCode) {
|
|
1546
1538
|
case "BadRequestException":
|
|
1547
1539
|
case "com.amazonaws.mq#BadRequestException":
|
|
1548
|
-
throw await
|
|
1540
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1549
1541
|
case "ConflictException":
|
|
1550
1542
|
case "com.amazonaws.mq#ConflictException":
|
|
1551
|
-
throw await
|
|
1543
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1552
1544
|
case "ForbiddenException":
|
|
1553
1545
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1554
|
-
throw await
|
|
1546
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1555
1547
|
case "InternalServerErrorException":
|
|
1556
1548
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1557
|
-
throw await
|
|
1549
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1558
1550
|
case "NotFoundException":
|
|
1559
1551
|
case "com.amazonaws.mq#NotFoundException":
|
|
1560
|
-
throw await
|
|
1552
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1561
1553
|
default:
|
|
1562
1554
|
const parsedBody = parsedOutput.body;
|
|
1563
1555
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1568,9 +1560,9 @@ const deserializeAws_restJson1UpdateBrokerCommandError = async (output, context)
|
|
|
1568
1560
|
});
|
|
1569
1561
|
}
|
|
1570
1562
|
};
|
|
1571
|
-
const
|
|
1563
|
+
const de_UpdateConfigurationCommand = async (output, context) => {
|
|
1572
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
1565
|
+
return de_UpdateConfigurationCommandError(output, context);
|
|
1574
1566
|
}
|
|
1575
1567
|
const contents = map({
|
|
1576
1568
|
$metadata: deserializeMetadata(output),
|
|
@@ -1586,18 +1578,18 @@ const deserializeAws_restJson1UpdateConfigurationCommand = async (output, contex
|
|
|
1586
1578
|
contents.Id = (0, smithy_client_1.expectString)(data.id);
|
|
1587
1579
|
}
|
|
1588
1580
|
if (data.latestRevision != null) {
|
|
1589
|
-
contents.LatestRevision =
|
|
1581
|
+
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
1590
1582
|
}
|
|
1591
1583
|
if (data.name != null) {
|
|
1592
1584
|
contents.Name = (0, smithy_client_1.expectString)(data.name);
|
|
1593
1585
|
}
|
|
1594
1586
|
if (data.warnings != null) {
|
|
1595
|
-
contents.Warnings =
|
|
1587
|
+
contents.Warnings = de___listOfSanitizationWarning(data.warnings, context);
|
|
1596
1588
|
}
|
|
1597
1589
|
return contents;
|
|
1598
1590
|
};
|
|
1599
|
-
exports.
|
|
1600
|
-
const
|
|
1591
|
+
exports.de_UpdateConfigurationCommand = de_UpdateConfigurationCommand;
|
|
1592
|
+
const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
1601
1593
|
const parsedOutput = {
|
|
1602
1594
|
...output,
|
|
1603
1595
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1606,19 +1598,19 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
1606
1598
|
switch (errorCode) {
|
|
1607
1599
|
case "BadRequestException":
|
|
1608
1600
|
case "com.amazonaws.mq#BadRequestException":
|
|
1609
|
-
throw await
|
|
1601
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1610
1602
|
case "ConflictException":
|
|
1611
1603
|
case "com.amazonaws.mq#ConflictException":
|
|
1612
|
-
throw await
|
|
1604
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1613
1605
|
case "ForbiddenException":
|
|
1614
1606
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1615
|
-
throw await
|
|
1607
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1616
1608
|
case "InternalServerErrorException":
|
|
1617
1609
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1618
|
-
throw await
|
|
1610
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1619
1611
|
case "NotFoundException":
|
|
1620
1612
|
case "com.amazonaws.mq#NotFoundException":
|
|
1621
|
-
throw await
|
|
1613
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1622
1614
|
default:
|
|
1623
1615
|
const parsedBody = parsedOutput.body;
|
|
1624
1616
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1629,9 +1621,9 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
1629
1621
|
});
|
|
1630
1622
|
}
|
|
1631
1623
|
};
|
|
1632
|
-
const
|
|
1624
|
+
const de_UpdateUserCommand = async (output, context) => {
|
|
1633
1625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1634
|
-
return
|
|
1626
|
+
return de_UpdateUserCommandError(output, context);
|
|
1635
1627
|
}
|
|
1636
1628
|
const contents = map({
|
|
1637
1629
|
$metadata: deserializeMetadata(output),
|
|
@@ -1639,8 +1631,8 @@ const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
|
|
|
1639
1631
|
await collectBody(output.body, context);
|
|
1640
1632
|
return contents;
|
|
1641
1633
|
};
|
|
1642
|
-
exports.
|
|
1643
|
-
const
|
|
1634
|
+
exports.de_UpdateUserCommand = de_UpdateUserCommand;
|
|
1635
|
+
const de_UpdateUserCommandError = async (output, context) => {
|
|
1644
1636
|
const parsedOutput = {
|
|
1645
1637
|
...output,
|
|
1646
1638
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1649,19 +1641,19 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
1649
1641
|
switch (errorCode) {
|
|
1650
1642
|
case "BadRequestException":
|
|
1651
1643
|
case "com.amazonaws.mq#BadRequestException":
|
|
1652
|
-
throw await
|
|
1644
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1653
1645
|
case "ConflictException":
|
|
1654
1646
|
case "com.amazonaws.mq#ConflictException":
|
|
1655
|
-
throw await
|
|
1647
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1656
1648
|
case "ForbiddenException":
|
|
1657
1649
|
case "com.amazonaws.mq#ForbiddenException":
|
|
1658
|
-
throw await
|
|
1650
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1659
1651
|
case "InternalServerErrorException":
|
|
1660
1652
|
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1661
|
-
throw await
|
|
1653
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1662
1654
|
case "NotFoundException":
|
|
1663
1655
|
case "com.amazonaws.mq#NotFoundException":
|
|
1664
|
-
throw await
|
|
1656
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1665
1657
|
default:
|
|
1666
1658
|
const parsedBody = parsedOutput.body;
|
|
1667
1659
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1673,7 +1665,7 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
1673
1665
|
}
|
|
1674
1666
|
};
|
|
1675
1667
|
const map = smithy_client_1.map;
|
|
1676
|
-
const
|
|
1668
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1677
1669
|
const contents = map({});
|
|
1678
1670
|
const data = parsedOutput.body;
|
|
1679
1671
|
if (data.errorAttribute != null) {
|
|
@@ -1688,7 +1680,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1688
1680
|
});
|
|
1689
1681
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1690
1682
|
};
|
|
1691
|
-
const
|
|
1683
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1692
1684
|
const contents = map({});
|
|
1693
1685
|
const data = parsedOutput.body;
|
|
1694
1686
|
if (data.errorAttribute != null) {
|
|
@@ -1703,7 +1695,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1703
1695
|
});
|
|
1704
1696
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1705
1697
|
};
|
|
1706
|
-
const
|
|
1698
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1707
1699
|
const contents = map({});
|
|
1708
1700
|
const data = parsedOutput.body;
|
|
1709
1701
|
if (data.errorAttribute != null) {
|
|
@@ -1718,7 +1710,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1718
1710
|
});
|
|
1719
1711
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1720
1712
|
};
|
|
1721
|
-
const
|
|
1713
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1722
1714
|
const contents = map({});
|
|
1723
1715
|
const data = parsedOutput.body;
|
|
1724
1716
|
if (data.errorAttribute != null) {
|
|
@@ -1733,7 +1725,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
1733
1725
|
});
|
|
1734
1726
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1735
1727
|
};
|
|
1736
|
-
const
|
|
1728
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1737
1729
|
const contents = map({});
|
|
1738
1730
|
const data = parsedOutput.body;
|
|
1739
1731
|
if (data.errorAttribute != null) {
|
|
@@ -1748,7 +1740,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1748
1740
|
});
|
|
1749
1741
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1750
1742
|
};
|
|
1751
|
-
const
|
|
1743
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1752
1744
|
const contents = map({});
|
|
1753
1745
|
const data = parsedOutput.body;
|
|
1754
1746
|
if (data.errorAttribute != null) {
|
|
@@ -1763,21 +1755,21 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1763
1755
|
});
|
|
1764
1756
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1765
1757
|
};
|
|
1766
|
-
const
|
|
1758
|
+
const se___listOf__string = (input, context) => {
|
|
1767
1759
|
return input
|
|
1768
1760
|
.filter((e) => e != null)
|
|
1769
1761
|
.map((entry) => {
|
|
1770
1762
|
return entry;
|
|
1771
1763
|
});
|
|
1772
1764
|
};
|
|
1773
|
-
const
|
|
1765
|
+
const se___listOfUser = (input, context) => {
|
|
1774
1766
|
return input
|
|
1775
1767
|
.filter((e) => e != null)
|
|
1776
1768
|
.map((entry) => {
|
|
1777
|
-
return
|
|
1769
|
+
return se_User(entry, context);
|
|
1778
1770
|
});
|
|
1779
1771
|
};
|
|
1780
|
-
const
|
|
1772
|
+
const se___mapOf__string = (input, context) => {
|
|
1781
1773
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1782
1774
|
if (value === null) {
|
|
1783
1775
|
return acc;
|
|
@@ -1786,21 +1778,21 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
1786
1778
|
return acc;
|
|
1787
1779
|
}, {});
|
|
1788
1780
|
};
|
|
1789
|
-
const
|
|
1781
|
+
const se_ConfigurationId = (input, context) => {
|
|
1790
1782
|
return {
|
|
1791
1783
|
...(input.Id != null && { id: input.Id }),
|
|
1792
1784
|
...(input.Revision != null && { revision: input.Revision }),
|
|
1793
1785
|
};
|
|
1794
1786
|
};
|
|
1795
|
-
const
|
|
1787
|
+
const se_EncryptionOptions = (input, context) => {
|
|
1796
1788
|
return {
|
|
1797
1789
|
...(input.KmsKeyId != null && { kmsKeyId: input.KmsKeyId }),
|
|
1798
1790
|
...(input.UseAwsOwnedKey != null && { useAwsOwnedKey: input.UseAwsOwnedKey }),
|
|
1799
1791
|
};
|
|
1800
1792
|
};
|
|
1801
|
-
const
|
|
1793
|
+
const se_LdapServerMetadataInput = (input, context) => {
|
|
1802
1794
|
return {
|
|
1803
|
-
...(input.Hosts != null && { hosts:
|
|
1795
|
+
...(input.Hosts != null && { hosts: se___listOf__string(input.Hosts, context) }),
|
|
1804
1796
|
...(input.RoleBase != null && { roleBase: input.RoleBase }),
|
|
1805
1797
|
...(input.RoleName != null && { roleName: input.RoleName }),
|
|
1806
1798
|
...(input.RoleSearchMatching != null && { roleSearchMatching: input.RoleSearchMatching }),
|
|
@@ -1813,28 +1805,28 @@ const serializeAws_restJson1LdapServerMetadataInput = (input, context) => {
|
|
|
1813
1805
|
...(input.UserSearchSubtree != null && { userSearchSubtree: input.UserSearchSubtree }),
|
|
1814
1806
|
};
|
|
1815
1807
|
};
|
|
1816
|
-
const
|
|
1808
|
+
const se_Logs = (input, context) => {
|
|
1817
1809
|
return {
|
|
1818
1810
|
...(input.Audit != null && { audit: input.Audit }),
|
|
1819
1811
|
...(input.General != null && { general: input.General }),
|
|
1820
1812
|
};
|
|
1821
1813
|
};
|
|
1822
|
-
const
|
|
1814
|
+
const se_User = (input, context) => {
|
|
1823
1815
|
return {
|
|
1824
1816
|
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
1825
|
-
...(input.Groups != null && { groups:
|
|
1817
|
+
...(input.Groups != null && { groups: se___listOf__string(input.Groups, context) }),
|
|
1826
1818
|
...(input.Password != null && { password: input.Password }),
|
|
1827
1819
|
...(input.Username != null && { username: input.Username }),
|
|
1828
1820
|
};
|
|
1829
1821
|
};
|
|
1830
|
-
const
|
|
1822
|
+
const se_WeeklyStartTime = (input, context) => {
|
|
1831
1823
|
return {
|
|
1832
1824
|
...(input.DayOfWeek != null && { dayOfWeek: input.DayOfWeek }),
|
|
1833
1825
|
...(input.TimeOfDay != null && { timeOfDay: input.TimeOfDay }),
|
|
1834
1826
|
...(input.TimeZone != null && { timeZone: input.TimeZone }),
|
|
1835
1827
|
};
|
|
1836
1828
|
};
|
|
1837
|
-
const
|
|
1829
|
+
const de___listOf__string = (output, context) => {
|
|
1838
1830
|
const retVal = (output || [])
|
|
1839
1831
|
.filter((e) => e != null)
|
|
1840
1832
|
.map((entry) => {
|
|
@@ -1845,106 +1837,106 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1845
1837
|
});
|
|
1846
1838
|
return retVal;
|
|
1847
1839
|
};
|
|
1848
|
-
const
|
|
1840
|
+
const de___listOfActionRequired = (output, context) => {
|
|
1849
1841
|
const retVal = (output || [])
|
|
1850
1842
|
.filter((e) => e != null)
|
|
1851
1843
|
.map((entry) => {
|
|
1852
1844
|
if (entry === null) {
|
|
1853
1845
|
return null;
|
|
1854
1846
|
}
|
|
1855
|
-
return
|
|
1847
|
+
return de_ActionRequired(entry, context);
|
|
1856
1848
|
});
|
|
1857
1849
|
return retVal;
|
|
1858
1850
|
};
|
|
1859
|
-
const
|
|
1851
|
+
const de___listOfAvailabilityZone = (output, context) => {
|
|
1860
1852
|
const retVal = (output || [])
|
|
1861
1853
|
.filter((e) => e != null)
|
|
1862
1854
|
.map((entry) => {
|
|
1863
1855
|
if (entry === null) {
|
|
1864
1856
|
return null;
|
|
1865
1857
|
}
|
|
1866
|
-
return
|
|
1858
|
+
return de_AvailabilityZone(entry, context);
|
|
1867
1859
|
});
|
|
1868
1860
|
return retVal;
|
|
1869
1861
|
};
|
|
1870
|
-
const
|
|
1862
|
+
const de___listOfBrokerEngineType = (output, context) => {
|
|
1871
1863
|
const retVal = (output || [])
|
|
1872
1864
|
.filter((e) => e != null)
|
|
1873
1865
|
.map((entry) => {
|
|
1874
1866
|
if (entry === null) {
|
|
1875
1867
|
return null;
|
|
1876
1868
|
}
|
|
1877
|
-
return
|
|
1869
|
+
return de_BrokerEngineType(entry, context);
|
|
1878
1870
|
});
|
|
1879
1871
|
return retVal;
|
|
1880
1872
|
};
|
|
1881
|
-
const
|
|
1873
|
+
const de___listOfBrokerInstance = (output, context) => {
|
|
1882
1874
|
const retVal = (output || [])
|
|
1883
1875
|
.filter((e) => e != null)
|
|
1884
1876
|
.map((entry) => {
|
|
1885
1877
|
if (entry === null) {
|
|
1886
1878
|
return null;
|
|
1887
1879
|
}
|
|
1888
|
-
return
|
|
1880
|
+
return de_BrokerInstance(entry, context);
|
|
1889
1881
|
});
|
|
1890
1882
|
return retVal;
|
|
1891
1883
|
};
|
|
1892
|
-
const
|
|
1884
|
+
const de___listOfBrokerInstanceOption = (output, context) => {
|
|
1893
1885
|
const retVal = (output || [])
|
|
1894
1886
|
.filter((e) => e != null)
|
|
1895
1887
|
.map((entry) => {
|
|
1896
1888
|
if (entry === null) {
|
|
1897
1889
|
return null;
|
|
1898
1890
|
}
|
|
1899
|
-
return
|
|
1891
|
+
return de_BrokerInstanceOption(entry, context);
|
|
1900
1892
|
});
|
|
1901
1893
|
return retVal;
|
|
1902
1894
|
};
|
|
1903
|
-
const
|
|
1895
|
+
const de___listOfBrokerSummary = (output, context) => {
|
|
1904
1896
|
const retVal = (output || [])
|
|
1905
1897
|
.filter((e) => e != null)
|
|
1906
1898
|
.map((entry) => {
|
|
1907
1899
|
if (entry === null) {
|
|
1908
1900
|
return null;
|
|
1909
1901
|
}
|
|
1910
|
-
return
|
|
1902
|
+
return de_BrokerSummary(entry, context);
|
|
1911
1903
|
});
|
|
1912
1904
|
return retVal;
|
|
1913
1905
|
};
|
|
1914
|
-
const
|
|
1906
|
+
const de___listOfConfiguration = (output, context) => {
|
|
1915
1907
|
const retVal = (output || [])
|
|
1916
1908
|
.filter((e) => e != null)
|
|
1917
1909
|
.map((entry) => {
|
|
1918
1910
|
if (entry === null) {
|
|
1919
1911
|
return null;
|
|
1920
1912
|
}
|
|
1921
|
-
return
|
|
1913
|
+
return de_Configuration(entry, context);
|
|
1922
1914
|
});
|
|
1923
1915
|
return retVal;
|
|
1924
1916
|
};
|
|
1925
|
-
const
|
|
1917
|
+
const de___listOfConfigurationId = (output, context) => {
|
|
1926
1918
|
const retVal = (output || [])
|
|
1927
1919
|
.filter((e) => e != null)
|
|
1928
1920
|
.map((entry) => {
|
|
1929
1921
|
if (entry === null) {
|
|
1930
1922
|
return null;
|
|
1931
1923
|
}
|
|
1932
|
-
return
|
|
1924
|
+
return de_ConfigurationId(entry, context);
|
|
1933
1925
|
});
|
|
1934
1926
|
return retVal;
|
|
1935
1927
|
};
|
|
1936
|
-
const
|
|
1928
|
+
const de___listOfConfigurationRevision = (output, context) => {
|
|
1937
1929
|
const retVal = (output || [])
|
|
1938
1930
|
.filter((e) => e != null)
|
|
1939
1931
|
.map((entry) => {
|
|
1940
1932
|
if (entry === null) {
|
|
1941
1933
|
return null;
|
|
1942
1934
|
}
|
|
1943
|
-
return
|
|
1935
|
+
return de_ConfigurationRevision(entry, context);
|
|
1944
1936
|
});
|
|
1945
1937
|
return retVal;
|
|
1946
1938
|
};
|
|
1947
|
-
const
|
|
1939
|
+
const de___listOfDeploymentMode = (output, context) => {
|
|
1948
1940
|
const retVal = (output || [])
|
|
1949
1941
|
.filter((e) => e != null)
|
|
1950
1942
|
.map((entry) => {
|
|
@@ -1955,40 +1947,40 @@ const deserializeAws_restJson1__listOfDeploymentMode = (output, context) => {
|
|
|
1955
1947
|
});
|
|
1956
1948
|
return retVal;
|
|
1957
1949
|
};
|
|
1958
|
-
const
|
|
1950
|
+
const de___listOfEngineVersion = (output, context) => {
|
|
1959
1951
|
const retVal = (output || [])
|
|
1960
1952
|
.filter((e) => e != null)
|
|
1961
1953
|
.map((entry) => {
|
|
1962
1954
|
if (entry === null) {
|
|
1963
1955
|
return null;
|
|
1964
1956
|
}
|
|
1965
|
-
return
|
|
1957
|
+
return de_EngineVersion(entry, context);
|
|
1966
1958
|
});
|
|
1967
1959
|
return retVal;
|
|
1968
1960
|
};
|
|
1969
|
-
const
|
|
1961
|
+
const de___listOfSanitizationWarning = (output, context) => {
|
|
1970
1962
|
const retVal = (output || [])
|
|
1971
1963
|
.filter((e) => e != null)
|
|
1972
1964
|
.map((entry) => {
|
|
1973
1965
|
if (entry === null) {
|
|
1974
1966
|
return null;
|
|
1975
1967
|
}
|
|
1976
|
-
return
|
|
1968
|
+
return de_SanitizationWarning(entry, context);
|
|
1977
1969
|
});
|
|
1978
1970
|
return retVal;
|
|
1979
1971
|
};
|
|
1980
|
-
const
|
|
1972
|
+
const de___listOfUserSummary = (output, context) => {
|
|
1981
1973
|
const retVal = (output || [])
|
|
1982
1974
|
.filter((e) => e != null)
|
|
1983
1975
|
.map((entry) => {
|
|
1984
1976
|
if (entry === null) {
|
|
1985
1977
|
return null;
|
|
1986
1978
|
}
|
|
1987
|
-
return
|
|
1979
|
+
return de_UserSummary(entry, context);
|
|
1988
1980
|
});
|
|
1989
1981
|
return retVal;
|
|
1990
1982
|
};
|
|
1991
|
-
const
|
|
1983
|
+
const de___mapOf__string = (output, context) => {
|
|
1992
1984
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1993
1985
|
if (value === null) {
|
|
1994
1986
|
return acc;
|
|
@@ -1997,49 +1989,43 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
1997
1989
|
return acc;
|
|
1998
1990
|
}, {});
|
|
1999
1991
|
};
|
|
2000
|
-
const
|
|
1992
|
+
const de_ActionRequired = (output, context) => {
|
|
2001
1993
|
return {
|
|
2002
1994
|
ActionRequiredCode: (0, smithy_client_1.expectString)(output.actionRequiredCode),
|
|
2003
1995
|
ActionRequiredInfo: (0, smithy_client_1.expectString)(output.actionRequiredInfo),
|
|
2004
1996
|
};
|
|
2005
1997
|
};
|
|
2006
|
-
const
|
|
1998
|
+
const de_AvailabilityZone = (output, context) => {
|
|
2007
1999
|
return {
|
|
2008
2000
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
2009
2001
|
};
|
|
2010
2002
|
};
|
|
2011
|
-
const
|
|
2003
|
+
const de_BrokerEngineType = (output, context) => {
|
|
2012
2004
|
return {
|
|
2013
2005
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2014
|
-
EngineVersions: output.engineVersions != null
|
|
2015
|
-
? deserializeAws_restJson1__listOfEngineVersion(output.engineVersions, context)
|
|
2016
|
-
: undefined,
|
|
2006
|
+
EngineVersions: output.engineVersions != null ? de___listOfEngineVersion(output.engineVersions, context) : undefined,
|
|
2017
2007
|
};
|
|
2018
2008
|
};
|
|
2019
|
-
const
|
|
2009
|
+
const de_BrokerInstance = (output, context) => {
|
|
2020
2010
|
return {
|
|
2021
2011
|
ConsoleURL: (0, smithy_client_1.expectString)(output.consoleURL),
|
|
2022
|
-
Endpoints: output.endpoints != null ?
|
|
2012
|
+
Endpoints: output.endpoints != null ? de___listOf__string(output.endpoints, context) : undefined,
|
|
2023
2013
|
IpAddress: (0, smithy_client_1.expectString)(output.ipAddress),
|
|
2024
2014
|
};
|
|
2025
2015
|
};
|
|
2026
|
-
const
|
|
2016
|
+
const de_BrokerInstanceOption = (output, context) => {
|
|
2027
2017
|
return {
|
|
2028
|
-
AvailabilityZones: output.availabilityZones != null
|
|
2029
|
-
? deserializeAws_restJson1__listOfAvailabilityZone(output.availabilityZones, context)
|
|
2030
|
-
: undefined,
|
|
2018
|
+
AvailabilityZones: output.availabilityZones != null ? de___listOfAvailabilityZone(output.availabilityZones, context) : undefined,
|
|
2031
2019
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2032
2020
|
HostInstanceType: (0, smithy_client_1.expectString)(output.hostInstanceType),
|
|
2033
2021
|
StorageType: (0, smithy_client_1.expectString)(output.storageType),
|
|
2034
2022
|
SupportedDeploymentModes: output.supportedDeploymentModes != null
|
|
2035
|
-
?
|
|
2036
|
-
: undefined,
|
|
2037
|
-
SupportedEngineVersions: output.supportedEngineVersions != null
|
|
2038
|
-
? deserializeAws_restJson1__listOf__string(output.supportedEngineVersions, context)
|
|
2023
|
+
? de___listOfDeploymentMode(output.supportedDeploymentModes, context)
|
|
2039
2024
|
: undefined,
|
|
2025
|
+
SupportedEngineVersions: output.supportedEngineVersions != null ? de___listOf__string(output.supportedEngineVersions, context) : undefined,
|
|
2040
2026
|
};
|
|
2041
2027
|
};
|
|
2042
|
-
const
|
|
2028
|
+
const de_BrokerSummary = (output, context) => {
|
|
2043
2029
|
return {
|
|
2044
2030
|
BrokerArn: (0, smithy_client_1.expectString)(output.brokerArn),
|
|
2045
2031
|
BrokerId: (0, smithy_client_1.expectString)(output.brokerId),
|
|
@@ -2051,7 +2037,7 @@ const deserializeAws_restJson1BrokerSummary = (output, context) => {
|
|
|
2051
2037
|
HostInstanceType: (0, smithy_client_1.expectString)(output.hostInstanceType),
|
|
2052
2038
|
};
|
|
2053
2039
|
};
|
|
2054
|
-
const
|
|
2040
|
+
const de_Configuration = (output, context) => {
|
|
2055
2041
|
return {
|
|
2056
2042
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2057
2043
|
AuthenticationStrategy: (0, smithy_client_1.expectString)(output.authenticationStrategy),
|
|
@@ -2060,47 +2046,45 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2060
2046
|
EngineType: (0, smithy_client_1.expectString)(output.engineType),
|
|
2061
2047
|
EngineVersion: (0, smithy_client_1.expectString)(output.engineVersion),
|
|
2062
2048
|
Id: (0, smithy_client_1.expectString)(output.id),
|
|
2063
|
-
LatestRevision: output.latestRevision != null
|
|
2064
|
-
? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
|
|
2065
|
-
: undefined,
|
|
2049
|
+
LatestRevision: output.latestRevision != null ? de_ConfigurationRevision(output.latestRevision, context) : undefined,
|
|
2066
2050
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
2067
|
-
Tags: output.tags != null ?
|
|
2051
|
+
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
2068
2052
|
};
|
|
2069
2053
|
};
|
|
2070
|
-
const
|
|
2054
|
+
const de_ConfigurationId = (output, context) => {
|
|
2071
2055
|
return {
|
|
2072
2056
|
Id: (0, smithy_client_1.expectString)(output.id),
|
|
2073
2057
|
Revision: (0, smithy_client_1.expectInt32)(output.revision),
|
|
2074
2058
|
};
|
|
2075
2059
|
};
|
|
2076
|
-
const
|
|
2060
|
+
const de_ConfigurationRevision = (output, context) => {
|
|
2077
2061
|
return {
|
|
2078
2062
|
Created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.created)) : undefined,
|
|
2079
2063
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
2080
2064
|
Revision: (0, smithy_client_1.expectInt32)(output.revision),
|
|
2081
2065
|
};
|
|
2082
2066
|
};
|
|
2083
|
-
const
|
|
2067
|
+
const de_Configurations = (output, context) => {
|
|
2084
2068
|
return {
|
|
2085
|
-
Current: output.current != null ?
|
|
2086
|
-
History: output.history != null ?
|
|
2087
|
-
Pending: output.pending != null ?
|
|
2069
|
+
Current: output.current != null ? de_ConfigurationId(output.current, context) : undefined,
|
|
2070
|
+
History: output.history != null ? de___listOfConfigurationId(output.history, context) : undefined,
|
|
2071
|
+
Pending: output.pending != null ? de_ConfigurationId(output.pending, context) : undefined,
|
|
2088
2072
|
};
|
|
2089
2073
|
};
|
|
2090
|
-
const
|
|
2074
|
+
const de_EncryptionOptions = (output, context) => {
|
|
2091
2075
|
return {
|
|
2092
2076
|
KmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2093
2077
|
UseAwsOwnedKey: (0, smithy_client_1.expectBoolean)(output.useAwsOwnedKey),
|
|
2094
2078
|
};
|
|
2095
2079
|
};
|
|
2096
|
-
const
|
|
2080
|
+
const de_EngineVersion = (output, context) => {
|
|
2097
2081
|
return {
|
|
2098
2082
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
2099
2083
|
};
|
|
2100
2084
|
};
|
|
2101
|
-
const
|
|
2085
|
+
const de_LdapServerMetadataOutput = (output, context) => {
|
|
2102
2086
|
return {
|
|
2103
|
-
Hosts: output.hosts != null ?
|
|
2087
|
+
Hosts: output.hosts != null ? de___listOf__string(output.hosts, context) : undefined,
|
|
2104
2088
|
RoleBase: (0, smithy_client_1.expectString)(output.roleBase),
|
|
2105
2089
|
RoleName: (0, smithy_client_1.expectString)(output.roleName),
|
|
2106
2090
|
RoleSearchMatching: (0, smithy_client_1.expectString)(output.roleSearchMatching),
|
|
@@ -2112,48 +2096,48 @@ const deserializeAws_restJson1LdapServerMetadataOutput = (output, context) => {
|
|
|
2112
2096
|
UserSearchSubtree: (0, smithy_client_1.expectBoolean)(output.userSearchSubtree),
|
|
2113
2097
|
};
|
|
2114
2098
|
};
|
|
2115
|
-
const
|
|
2099
|
+
const de_Logs = (output, context) => {
|
|
2116
2100
|
return {
|
|
2117
2101
|
Audit: (0, smithy_client_1.expectBoolean)(output.audit),
|
|
2118
2102
|
General: (0, smithy_client_1.expectBoolean)(output.general),
|
|
2119
2103
|
};
|
|
2120
2104
|
};
|
|
2121
|
-
const
|
|
2105
|
+
const de_LogsSummary = (output, context) => {
|
|
2122
2106
|
return {
|
|
2123
2107
|
Audit: (0, smithy_client_1.expectBoolean)(output.audit),
|
|
2124
2108
|
AuditLogGroup: (0, smithy_client_1.expectString)(output.auditLogGroup),
|
|
2125
2109
|
General: (0, smithy_client_1.expectBoolean)(output.general),
|
|
2126
2110
|
GeneralLogGroup: (0, smithy_client_1.expectString)(output.generalLogGroup),
|
|
2127
|
-
Pending: output.pending != null ?
|
|
2111
|
+
Pending: output.pending != null ? de_PendingLogs(output.pending, context) : undefined,
|
|
2128
2112
|
};
|
|
2129
2113
|
};
|
|
2130
|
-
const
|
|
2114
|
+
const de_PendingLogs = (output, context) => {
|
|
2131
2115
|
return {
|
|
2132
2116
|
Audit: (0, smithy_client_1.expectBoolean)(output.audit),
|
|
2133
2117
|
General: (0, smithy_client_1.expectBoolean)(output.general),
|
|
2134
2118
|
};
|
|
2135
2119
|
};
|
|
2136
|
-
const
|
|
2120
|
+
const de_SanitizationWarning = (output, context) => {
|
|
2137
2121
|
return {
|
|
2138
2122
|
AttributeName: (0, smithy_client_1.expectString)(output.attributeName),
|
|
2139
2123
|
ElementName: (0, smithy_client_1.expectString)(output.elementName),
|
|
2140
2124
|
Reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2141
2125
|
};
|
|
2142
2126
|
};
|
|
2143
|
-
const
|
|
2127
|
+
const de_UserPendingChanges = (output, context) => {
|
|
2144
2128
|
return {
|
|
2145
2129
|
ConsoleAccess: (0, smithy_client_1.expectBoolean)(output.consoleAccess),
|
|
2146
|
-
Groups: output.groups != null ?
|
|
2130
|
+
Groups: output.groups != null ? de___listOf__string(output.groups, context) : undefined,
|
|
2147
2131
|
PendingChange: (0, smithy_client_1.expectString)(output.pendingChange),
|
|
2148
2132
|
};
|
|
2149
2133
|
};
|
|
2150
|
-
const
|
|
2134
|
+
const de_UserSummary = (output, context) => {
|
|
2151
2135
|
return {
|
|
2152
2136
|
PendingChange: (0, smithy_client_1.expectString)(output.pendingChange),
|
|
2153
2137
|
Username: (0, smithy_client_1.expectString)(output.username),
|
|
2154
2138
|
};
|
|
2155
2139
|
};
|
|
2156
|
-
const
|
|
2140
|
+
const de_WeeklyStartTime = (output, context) => {
|
|
2157
2141
|
return {
|
|
2158
2142
|
DayOfWeek: (0, smithy_client_1.expectString)(output.dayOfWeek),
|
|
2159
2143
|
TimeOfDay: (0, smithy_client_1.expectString)(output.timeOfDay),
|