@aws-sdk/client-mq 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/Mq.js +97 -90
- package/dist-es/MqClient.js +28 -22
- package/dist-es/commands/CreateBrokerCommand.js +28 -21
- package/dist-es/commands/CreateConfigurationCommand.js +28 -21
- package/dist-es/commands/CreateTagsCommand.js +29 -22
- package/dist-es/commands/CreateUserCommand.js +28 -21
- package/dist-es/commands/DeleteBrokerCommand.js +28 -21
- package/dist-es/commands/DeleteTagsCommand.js +29 -22
- package/dist-es/commands/DeleteUserCommand.js +28 -21
- package/dist-es/commands/DescribeBrokerCommand.js +28 -21
- package/dist-es/commands/DescribeBrokerEngineTypesCommand.js +28 -21
- package/dist-es/commands/DescribeBrokerInstanceOptionsCommand.js +28 -21
- package/dist-es/commands/DescribeConfigurationCommand.js +28 -21
- package/dist-es/commands/DescribeConfigurationRevisionCommand.js +28 -21
- package/dist-es/commands/DescribeUserCommand.js +28 -21
- package/dist-es/commands/ListBrokersCommand.js +28 -21
- package/dist-es/commands/ListConfigurationRevisionsCommand.js +28 -21
- package/dist-es/commands/ListConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListTagsCommand.js +28 -21
- package/dist-es/commands/ListUsersCommand.js +28 -21
- package/dist-es/commands/RebootBrokerCommand.js +28 -21
- package/dist-es/commands/UpdateBrokerCommand.js +28 -21
- package/dist-es/commands/UpdateConfigurationCommand.js +28 -21
- package/dist-es/commands/UpdateUserCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MqServiceException.js +10 -5
- package/dist-es/models/models_0.js +143 -270
- package/dist-es/pagination/ListBrokersPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +2456 -1824
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1795 +1,2410 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
5
6
|
import { MqServiceException as __BaseException } from "../models/MqServiceException";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
...(input.StorageType != null && { storageType: input.StorageType }),
|
|
40
|
-
...(input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
|
|
41
|
-
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
42
|
-
...(input.Users != null && { users: serializeAws_restJson1__listOfUser(input.Users, context) }),
|
|
43
|
-
});
|
|
44
|
-
return new __HttpRequest({
|
|
45
|
-
protocol,
|
|
46
|
-
hostname,
|
|
47
|
-
port,
|
|
48
|
-
method: "POST",
|
|
49
|
-
headers,
|
|
50
|
-
path: resolvedPath,
|
|
51
|
-
body,
|
|
7
|
+
export var serializeAws_restJson1CreateBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
|
+
var _c;
|
|
10
|
+
return __generator(this, function (_d) {
|
|
11
|
+
switch (_d.label) {
|
|
12
|
+
case 0: return [4, context.endpoint()];
|
|
13
|
+
case 1:
|
|
14
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
15
|
+
headers = {
|
|
16
|
+
"content-type": "application/json",
|
|
17
|
+
};
|
|
18
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers";
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy })), (input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade })), (input.BrokerName != null && { brokerName: input.BrokerName })), (input.Configuration != null && {
|
|
20
|
+
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
21
|
+
})), { creatorRequestId: (_c = input.CreatorRequestId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.DeploymentMode != null && { deploymentMode: input.DeploymentMode })), (input.EncryptionOptions != null && {
|
|
22
|
+
encryptionOptions: serializeAws_restJson1EncryptionOptions(input.EncryptionOptions, context),
|
|
23
|
+
})), (input.EngineType != null && { engineType: input.EngineType })), (input.EngineVersion != null && { engineVersion: input.EngineVersion })), (input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType })), (input.LdapServerMetadata != null && {
|
|
24
|
+
ldapServerMetadata: serializeAws_restJson1LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
25
|
+
})), (input.Logs != null && { logs: serializeAws_restJson1Logs(input.Logs, context) })), (input.MaintenanceWindowStartTime != null && {
|
|
26
|
+
maintenanceWindowStartTime: serializeAws_restJson1WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
27
|
+
})), (input.PubliclyAccessible != null && { publiclyAccessible: input.PubliclyAccessible })), (input.SecurityGroups != null && {
|
|
28
|
+
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
29
|
+
})), (input.StorageType != null && { storageType: input.StorageType })), (input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Users != null && { users: serializeAws_restJson1__listOfUser(input.Users, context) })));
|
|
30
|
+
return [2, new __HttpRequest({
|
|
31
|
+
protocol: protocol,
|
|
32
|
+
hostname: hostname,
|
|
33
|
+
port: port,
|
|
34
|
+
method: "POST",
|
|
35
|
+
headers: headers,
|
|
36
|
+
path: resolvedPath,
|
|
37
|
+
body: body,
|
|
38
|
+
})];
|
|
39
|
+
}
|
|
52
40
|
});
|
|
53
|
-
};
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
41
|
+
}); };
|
|
42
|
+
export var serializeAws_restJson1CreateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
44
|
+
return __generator(this, function (_c) {
|
|
45
|
+
switch (_c.label) {
|
|
46
|
+
case 0: return [4, context.endpoint()];
|
|
47
|
+
case 1:
|
|
48
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
49
|
+
headers = {
|
|
50
|
+
"content-type": "application/json",
|
|
51
|
+
};
|
|
52
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
|
|
53
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy })), (input.EngineType != null && { engineType: input.EngineType })), (input.EngineVersion != null && { engineVersion: input.EngineVersion })), (input.Name != null && { name: input.Name })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
54
|
+
return [2, new __HttpRequest({
|
|
55
|
+
protocol: protocol,
|
|
56
|
+
hostname: hostname,
|
|
57
|
+
port: port,
|
|
58
|
+
method: "POST",
|
|
59
|
+
headers: headers,
|
|
60
|
+
path: resolvedPath,
|
|
61
|
+
body: body,
|
|
62
|
+
})];
|
|
63
|
+
}
|
|
76
64
|
});
|
|
77
|
-
};
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
65
|
+
}); };
|
|
66
|
+
export var serializeAws_restJson1CreateTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
67
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
68
|
+
return __generator(this, function (_c) {
|
|
69
|
+
switch (_c.label) {
|
|
70
|
+
case 0: return [4, context.endpoint()];
|
|
71
|
+
case 1:
|
|
72
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
73
|
+
headers = {
|
|
74
|
+
"content-type": "application/json",
|
|
75
|
+
};
|
|
76
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
77
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
78
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
79
|
+
return [2, new __HttpRequest({
|
|
80
|
+
protocol: protocol,
|
|
81
|
+
hostname: hostname,
|
|
82
|
+
port: port,
|
|
83
|
+
method: "POST",
|
|
84
|
+
headers: headers,
|
|
85
|
+
path: resolvedPath,
|
|
86
|
+
body: body,
|
|
87
|
+
})];
|
|
88
|
+
}
|
|
97
89
|
});
|
|
98
|
-
};
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
90
|
+
}); };
|
|
91
|
+
export var serializeAws_restJson1CreateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
93
|
+
return __generator(this, function (_c) {
|
|
94
|
+
switch (_c.label) {
|
|
95
|
+
case 0: return [4, context.endpoint()];
|
|
96
|
+
case 1:
|
|
97
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
98
|
+
headers = {
|
|
99
|
+
"content-type": "application/json",
|
|
100
|
+
};
|
|
101
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}/users/{Username}";
|
|
102
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
103
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Username", function () { return input.Username; }, "{Username}", false);
|
|
104
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess })), (input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password != null && { password: input.Password })));
|
|
105
|
+
return [2, new __HttpRequest({
|
|
106
|
+
protocol: protocol,
|
|
107
|
+
hostname: hostname,
|
|
108
|
+
port: port,
|
|
109
|
+
method: "POST",
|
|
110
|
+
headers: headers,
|
|
111
|
+
path: resolvedPath,
|
|
112
|
+
body: body,
|
|
113
|
+
})];
|
|
114
|
+
}
|
|
121
115
|
});
|
|
122
|
-
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
116
|
+
}); };
|
|
117
|
+
export var serializeAws_restJson1DeleteBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
119
|
+
return __generator(this, function (_c) {
|
|
120
|
+
switch (_c.label) {
|
|
121
|
+
case 0: return [4, context.endpoint()];
|
|
122
|
+
case 1:
|
|
123
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
|
+
headers = {};
|
|
125
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}";
|
|
126
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
127
|
+
return [2, new __HttpRequest({
|
|
128
|
+
protocol: protocol,
|
|
129
|
+
hostname: hostname,
|
|
130
|
+
port: port,
|
|
131
|
+
method: "DELETE",
|
|
132
|
+
headers: headers,
|
|
133
|
+
path: resolvedPath,
|
|
134
|
+
body: body,
|
|
135
|
+
})];
|
|
136
|
+
}
|
|
137
137
|
});
|
|
138
|
-
};
|
|
139
|
-
export
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
138
|
+
}); };
|
|
139
|
+
export var serializeAws_restJson1DeleteTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
141
|
+
return __generator(this, function (_c) {
|
|
142
|
+
switch (_c.label) {
|
|
143
|
+
case 0: return [4, context.endpoint()];
|
|
144
|
+
case 1:
|
|
145
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
146
|
+
headers = {};
|
|
147
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
148
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
149
|
+
query = map({
|
|
150
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
151
|
+
});
|
|
152
|
+
return [2, new __HttpRequest({
|
|
153
|
+
protocol: protocol,
|
|
154
|
+
hostname: hostname,
|
|
155
|
+
port: port,
|
|
156
|
+
method: "DELETE",
|
|
157
|
+
headers: headers,
|
|
158
|
+
path: resolvedPath,
|
|
159
|
+
query: query,
|
|
160
|
+
body: body,
|
|
161
|
+
})];
|
|
162
|
+
}
|
|
157
163
|
});
|
|
158
|
-
};
|
|
159
|
-
export
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
164
|
+
}); };
|
|
165
|
+
export var serializeAws_restJson1DeleteUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
166
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
167
|
+
return __generator(this, function (_c) {
|
|
168
|
+
switch (_c.label) {
|
|
169
|
+
case 0: return [4, context.endpoint()];
|
|
170
|
+
case 1:
|
|
171
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
172
|
+
headers = {};
|
|
173
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}/users/{Username}";
|
|
174
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
175
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Username", function () { return input.Username; }, "{Username}", false);
|
|
176
|
+
return [2, new __HttpRequest({
|
|
177
|
+
protocol: protocol,
|
|
178
|
+
hostname: hostname,
|
|
179
|
+
port: port,
|
|
180
|
+
method: "DELETE",
|
|
181
|
+
headers: headers,
|
|
182
|
+
path: resolvedPath,
|
|
183
|
+
body: body,
|
|
184
|
+
})];
|
|
185
|
+
}
|
|
174
186
|
});
|
|
175
|
-
};
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
}); };
|
|
188
|
+
export var serializeAws_restJson1DescribeBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
189
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
190
|
+
return __generator(this, function (_c) {
|
|
191
|
+
switch (_c.label) {
|
|
192
|
+
case 0: return [4, context.endpoint()];
|
|
193
|
+
case 1:
|
|
194
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
195
|
+
headers = {};
|
|
196
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}";
|
|
197
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
198
|
+
return [2, new __HttpRequest({
|
|
199
|
+
protocol: protocol,
|
|
200
|
+
hostname: hostname,
|
|
201
|
+
port: port,
|
|
202
|
+
method: "GET",
|
|
203
|
+
headers: headers,
|
|
204
|
+
path: resolvedPath,
|
|
205
|
+
body: body,
|
|
206
|
+
})];
|
|
207
|
+
}
|
|
190
208
|
});
|
|
191
|
-
};
|
|
192
|
-
export
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
}); };
|
|
210
|
+
export var serializeAws_restJson1DescribeBrokerEngineTypesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
212
|
+
return __generator(this, function (_c) {
|
|
213
|
+
switch (_c.label) {
|
|
214
|
+
case 0: return [4, context.endpoint()];
|
|
215
|
+
case 1:
|
|
216
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
217
|
+
headers = {};
|
|
218
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/broker-engine-types";
|
|
219
|
+
query = map({
|
|
220
|
+
engineType: [, input.EngineType],
|
|
221
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
222
|
+
nextToken: [, input.NextToken],
|
|
223
|
+
});
|
|
224
|
+
return [2, new __HttpRequest({
|
|
225
|
+
protocol: protocol,
|
|
226
|
+
hostname: hostname,
|
|
227
|
+
port: port,
|
|
228
|
+
method: "GET",
|
|
229
|
+
headers: headers,
|
|
230
|
+
path: resolvedPath,
|
|
231
|
+
query: query,
|
|
232
|
+
body: body,
|
|
233
|
+
})];
|
|
234
|
+
}
|
|
211
235
|
});
|
|
212
|
-
};
|
|
213
|
-
export
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
236
|
+
}); };
|
|
237
|
+
export var serializeAws_restJson1DescribeBrokerInstanceOptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
239
|
+
return __generator(this, function (_c) {
|
|
240
|
+
switch (_c.label) {
|
|
241
|
+
case 0: return [4, context.endpoint()];
|
|
242
|
+
case 1:
|
|
243
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
244
|
+
headers = {};
|
|
245
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/broker-instance-options";
|
|
246
|
+
query = map({
|
|
247
|
+
engineType: [, input.EngineType],
|
|
248
|
+
hostInstanceType: [, input.HostInstanceType],
|
|
249
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
250
|
+
nextToken: [, input.NextToken],
|
|
251
|
+
storageType: [, input.StorageType],
|
|
252
|
+
});
|
|
253
|
+
return [2, new __HttpRequest({
|
|
254
|
+
protocol: protocol,
|
|
255
|
+
hostname: hostname,
|
|
256
|
+
port: port,
|
|
257
|
+
method: "GET",
|
|
258
|
+
headers: headers,
|
|
259
|
+
path: resolvedPath,
|
|
260
|
+
query: query,
|
|
261
|
+
body: body,
|
|
262
|
+
})];
|
|
263
|
+
}
|
|
234
264
|
});
|
|
235
|
-
};
|
|
236
|
-
export
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
265
|
+
}); };
|
|
266
|
+
export var serializeAws_restJson1DescribeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
267
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
268
|
+
return __generator(this, function (_c) {
|
|
269
|
+
switch (_c.label) {
|
|
270
|
+
case 0: return [4, context.endpoint()];
|
|
271
|
+
case 1:
|
|
272
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
273
|
+
headers = {};
|
|
274
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{ConfigurationId}";
|
|
275
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationId", function () { return input.ConfigurationId; }, "{ConfigurationId}", false);
|
|
276
|
+
return [2, new __HttpRequest({
|
|
277
|
+
protocol: protocol,
|
|
278
|
+
hostname: hostname,
|
|
279
|
+
port: port,
|
|
280
|
+
method: "GET",
|
|
281
|
+
headers: headers,
|
|
282
|
+
path: resolvedPath,
|
|
283
|
+
body: body,
|
|
284
|
+
})];
|
|
285
|
+
}
|
|
250
286
|
});
|
|
251
|
-
};
|
|
252
|
-
export
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
287
|
+
}); };
|
|
288
|
+
export var serializeAws_restJson1DescribeConfigurationRevisionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
289
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
290
|
+
return __generator(this, function (_c) {
|
|
291
|
+
switch (_c.label) {
|
|
292
|
+
case 0: return [4, context.endpoint()];
|
|
293
|
+
case 1:
|
|
294
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
295
|
+
headers = {};
|
|
296
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
297
|
+
"/v1/configurations/{ConfigurationId}/revisions/{ConfigurationRevision}";
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationId", function () { return input.ConfigurationId; }, "{ConfigurationId}", false);
|
|
299
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationRevision", function () { return input.ConfigurationRevision; }, "{ConfigurationRevision}", false);
|
|
300
|
+
return [2, new __HttpRequest({
|
|
301
|
+
protocol: protocol,
|
|
302
|
+
hostname: hostname,
|
|
303
|
+
port: port,
|
|
304
|
+
method: "GET",
|
|
305
|
+
headers: headers,
|
|
306
|
+
path: resolvedPath,
|
|
307
|
+
body: body,
|
|
308
|
+
})];
|
|
309
|
+
}
|
|
268
310
|
});
|
|
269
|
-
};
|
|
270
|
-
export
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
311
|
+
}); };
|
|
312
|
+
export var serializeAws_restJson1DescribeUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
314
|
+
return __generator(this, function (_c) {
|
|
315
|
+
switch (_c.label) {
|
|
316
|
+
case 0: return [4, context.endpoint()];
|
|
317
|
+
case 1:
|
|
318
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
319
|
+
headers = {};
|
|
320
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}/users/{Username}";
|
|
321
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
322
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Username", function () { return input.Username; }, "{Username}", false);
|
|
323
|
+
return [2, new __HttpRequest({
|
|
324
|
+
protocol: protocol,
|
|
325
|
+
hostname: hostname,
|
|
326
|
+
port: port,
|
|
327
|
+
method: "GET",
|
|
328
|
+
headers: headers,
|
|
329
|
+
path: resolvedPath,
|
|
330
|
+
body: body,
|
|
331
|
+
})];
|
|
332
|
+
}
|
|
285
333
|
});
|
|
286
|
-
};
|
|
287
|
-
export
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
334
|
+
}); };
|
|
335
|
+
export var serializeAws_restJson1ListBrokersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
336
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
337
|
+
return __generator(this, function (_c) {
|
|
338
|
+
switch (_c.label) {
|
|
339
|
+
case 0: return [4, context.endpoint()];
|
|
340
|
+
case 1:
|
|
341
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
342
|
+
headers = {};
|
|
343
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers";
|
|
344
|
+
query = map({
|
|
345
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
346
|
+
nextToken: [, input.NextToken],
|
|
347
|
+
});
|
|
348
|
+
return [2, new __HttpRequest({
|
|
349
|
+
protocol: protocol,
|
|
350
|
+
hostname: hostname,
|
|
351
|
+
port: port,
|
|
352
|
+
method: "GET",
|
|
353
|
+
headers: headers,
|
|
354
|
+
path: resolvedPath,
|
|
355
|
+
query: query,
|
|
356
|
+
body: body,
|
|
357
|
+
})];
|
|
358
|
+
}
|
|
305
359
|
});
|
|
306
|
-
};
|
|
307
|
-
export
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
360
|
+
}); };
|
|
361
|
+
export var serializeAws_restJson1ListConfigurationRevisionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
362
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
363
|
+
return __generator(this, function (_c) {
|
|
364
|
+
switch (_c.label) {
|
|
365
|
+
case 0: return [4, context.endpoint()];
|
|
366
|
+
case 1:
|
|
367
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
368
|
+
headers = {};
|
|
369
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
370
|
+
"/v1/configurations/{ConfigurationId}/revisions";
|
|
371
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationId", function () { return input.ConfigurationId; }, "{ConfigurationId}", false);
|
|
372
|
+
query = map({
|
|
373
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
374
|
+
nextToken: [, input.NextToken],
|
|
375
|
+
});
|
|
376
|
+
return [2, new __HttpRequest({
|
|
377
|
+
protocol: protocol,
|
|
378
|
+
hostname: hostname,
|
|
379
|
+
port: port,
|
|
380
|
+
method: "GET",
|
|
381
|
+
headers: headers,
|
|
382
|
+
path: resolvedPath,
|
|
383
|
+
query: query,
|
|
384
|
+
body: body,
|
|
385
|
+
})];
|
|
386
|
+
}
|
|
327
387
|
});
|
|
328
|
-
};
|
|
329
|
-
export
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
388
|
+
}); };
|
|
389
|
+
export var serializeAws_restJson1ListConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
390
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
391
|
+
return __generator(this, function (_c) {
|
|
392
|
+
switch (_c.label) {
|
|
393
|
+
case 0: return [4, context.endpoint()];
|
|
394
|
+
case 1:
|
|
395
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
396
|
+
headers = {};
|
|
397
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
|
|
398
|
+
query = map({
|
|
399
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
400
|
+
nextToken: [, input.NextToken],
|
|
401
|
+
});
|
|
402
|
+
return [2, new __HttpRequest({
|
|
403
|
+
protocol: protocol,
|
|
404
|
+
hostname: hostname,
|
|
405
|
+
port: port,
|
|
406
|
+
method: "GET",
|
|
407
|
+
headers: headers,
|
|
408
|
+
path: resolvedPath,
|
|
409
|
+
query: query,
|
|
410
|
+
body: body,
|
|
411
|
+
})];
|
|
412
|
+
}
|
|
347
413
|
});
|
|
348
|
-
};
|
|
349
|
-
export
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
414
|
+
}); };
|
|
415
|
+
export var serializeAws_restJson1ListTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
416
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
417
|
+
return __generator(this, function (_c) {
|
|
418
|
+
switch (_c.label) {
|
|
419
|
+
case 0: return [4, context.endpoint()];
|
|
420
|
+
case 1:
|
|
421
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
422
|
+
headers = {};
|
|
423
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
424
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
425
|
+
return [2, new __HttpRequest({
|
|
426
|
+
protocol: protocol,
|
|
427
|
+
hostname: hostname,
|
|
428
|
+
port: port,
|
|
429
|
+
method: "GET",
|
|
430
|
+
headers: headers,
|
|
431
|
+
path: resolvedPath,
|
|
432
|
+
body: body,
|
|
433
|
+
})];
|
|
434
|
+
}
|
|
363
435
|
});
|
|
364
|
-
};
|
|
365
|
-
export
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
436
|
+
}); };
|
|
437
|
+
export var serializeAws_restJson1ListUsersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
438
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
439
|
+
return __generator(this, function (_c) {
|
|
440
|
+
switch (_c.label) {
|
|
441
|
+
case 0: return [4, context.endpoint()];
|
|
442
|
+
case 1:
|
|
443
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
444
|
+
headers = {};
|
|
445
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}/users";
|
|
446
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
447
|
+
query = map({
|
|
448
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
449
|
+
nextToken: [, input.NextToken],
|
|
450
|
+
});
|
|
451
|
+
return [2, new __HttpRequest({
|
|
452
|
+
protocol: protocol,
|
|
453
|
+
hostname: hostname,
|
|
454
|
+
port: port,
|
|
455
|
+
method: "GET",
|
|
456
|
+
headers: headers,
|
|
457
|
+
path: resolvedPath,
|
|
458
|
+
query: query,
|
|
459
|
+
body: body,
|
|
460
|
+
})];
|
|
461
|
+
}
|
|
384
462
|
});
|
|
385
|
-
};
|
|
386
|
-
export
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
463
|
+
}); };
|
|
464
|
+
export var serializeAws_restJson1RebootBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
465
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
466
|
+
return __generator(this, function (_c) {
|
|
467
|
+
switch (_c.label) {
|
|
468
|
+
case 0: return [4, context.endpoint()];
|
|
469
|
+
case 1:
|
|
470
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
471
|
+
headers = {};
|
|
472
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}/reboot";
|
|
473
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
474
|
+
return [2, new __HttpRequest({
|
|
475
|
+
protocol: protocol,
|
|
476
|
+
hostname: hostname,
|
|
477
|
+
port: port,
|
|
478
|
+
method: "POST",
|
|
479
|
+
headers: headers,
|
|
480
|
+
path: resolvedPath,
|
|
481
|
+
body: body,
|
|
482
|
+
})];
|
|
483
|
+
}
|
|
400
484
|
});
|
|
401
|
-
};
|
|
402
|
-
export
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
method: "PUT",
|
|
434
|
-
headers,
|
|
435
|
-
path: resolvedPath,
|
|
436
|
-
body,
|
|
485
|
+
}); };
|
|
486
|
+
export var serializeAws_restJson1UpdateBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
487
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
488
|
+
return __generator(this, function (_c) {
|
|
489
|
+
switch (_c.label) {
|
|
490
|
+
case 0: return [4, context.endpoint()];
|
|
491
|
+
case 1:
|
|
492
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
|
+
headers = {
|
|
494
|
+
"content-type": "application/json",
|
|
495
|
+
};
|
|
496
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}";
|
|
497
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
498
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuthenticationStrategy != null && { authenticationStrategy: input.AuthenticationStrategy })), (input.AutoMinorVersionUpgrade != null && { autoMinorVersionUpgrade: input.AutoMinorVersionUpgrade })), (input.Configuration != null && {
|
|
499
|
+
configuration: serializeAws_restJson1ConfigurationId(input.Configuration, context),
|
|
500
|
+
})), (input.EngineVersion != null && { engineVersion: input.EngineVersion })), (input.HostInstanceType != null && { hostInstanceType: input.HostInstanceType })), (input.LdapServerMetadata != null && {
|
|
501
|
+
ldapServerMetadata: serializeAws_restJson1LdapServerMetadataInput(input.LdapServerMetadata, context),
|
|
502
|
+
})), (input.Logs != null && { logs: serializeAws_restJson1Logs(input.Logs, context) })), (input.MaintenanceWindowStartTime != null && {
|
|
503
|
+
maintenanceWindowStartTime: serializeAws_restJson1WeeklyStartTime(input.MaintenanceWindowStartTime, context),
|
|
504
|
+
})), (input.SecurityGroups != null && {
|
|
505
|
+
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
506
|
+
})));
|
|
507
|
+
return [2, new __HttpRequest({
|
|
508
|
+
protocol: protocol,
|
|
509
|
+
hostname: hostname,
|
|
510
|
+
port: port,
|
|
511
|
+
method: "PUT",
|
|
512
|
+
headers: headers,
|
|
513
|
+
path: resolvedPath,
|
|
514
|
+
body: body,
|
|
515
|
+
})];
|
|
516
|
+
}
|
|
437
517
|
});
|
|
438
|
-
};
|
|
439
|
-
export
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
518
|
+
}); };
|
|
519
|
+
export var serializeAws_restJson1UpdateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
521
|
+
return __generator(this, function (_c) {
|
|
522
|
+
switch (_c.label) {
|
|
523
|
+
case 0: return [4, context.endpoint()];
|
|
524
|
+
case 1:
|
|
525
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
526
|
+
headers = {
|
|
527
|
+
"content-type": "application/json",
|
|
528
|
+
};
|
|
529
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{ConfigurationId}";
|
|
530
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConfigurationId", function () { return input.ConfigurationId; }, "{ConfigurationId}", false);
|
|
531
|
+
body = JSON.stringify(__assign(__assign({}, (input.Data != null && { data: input.Data })), (input.Description != null && { description: input.Description })));
|
|
532
|
+
return [2, new __HttpRequest({
|
|
533
|
+
protocol: protocol,
|
|
534
|
+
hostname: hostname,
|
|
535
|
+
port: port,
|
|
536
|
+
method: "PUT",
|
|
537
|
+
headers: headers,
|
|
538
|
+
path: resolvedPath,
|
|
539
|
+
body: body,
|
|
540
|
+
})];
|
|
541
|
+
}
|
|
459
542
|
});
|
|
460
|
-
};
|
|
461
|
-
export
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
543
|
+
}); };
|
|
544
|
+
export var serializeAws_restJson1UpdateUserCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
545
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
546
|
+
return __generator(this, function (_c) {
|
|
547
|
+
switch (_c.label) {
|
|
548
|
+
case 0: return [4, context.endpoint()];
|
|
549
|
+
case 1:
|
|
550
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
551
|
+
headers = {
|
|
552
|
+
"content-type": "application/json",
|
|
553
|
+
};
|
|
554
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/brokers/{BrokerId}/users/{Username}";
|
|
555
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BrokerId", function () { return input.BrokerId; }, "{BrokerId}", false);
|
|
556
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Username", function () { return input.Username; }, "{Username}", false);
|
|
557
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess })), (input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password != null && { password: input.Password })));
|
|
558
|
+
return [2, new __HttpRequest({
|
|
559
|
+
protocol: protocol,
|
|
560
|
+
hostname: hostname,
|
|
561
|
+
port: port,
|
|
562
|
+
method: "PUT",
|
|
563
|
+
headers: headers,
|
|
564
|
+
path: resolvedPath,
|
|
565
|
+
body: body,
|
|
566
|
+
})];
|
|
567
|
+
}
|
|
483
568
|
});
|
|
484
|
-
};
|
|
485
|
-
export
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
569
|
+
}); };
|
|
570
|
+
export var deserializeAws_restJson1CreateBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
571
|
+
var contents, data, _a, _b;
|
|
572
|
+
return __generator(this, function (_c) {
|
|
573
|
+
switch (_c.label) {
|
|
574
|
+
case 0:
|
|
575
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
|
+
return [2, deserializeAws_restJson1CreateBrokerCommandError(output, context)];
|
|
577
|
+
}
|
|
578
|
+
contents = map({
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
});
|
|
581
|
+
_a = __expectNonNull;
|
|
582
|
+
_b = __expectObject;
|
|
583
|
+
return [4, parseBody(output.body, context)];
|
|
584
|
+
case 1:
|
|
585
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
586
|
+
if (data.brokerArn != null) {
|
|
587
|
+
contents.BrokerArn = __expectString(data.brokerArn);
|
|
588
|
+
}
|
|
589
|
+
if (data.brokerId != null) {
|
|
590
|
+
contents.BrokerId = __expectString(data.brokerId);
|
|
591
|
+
}
|
|
592
|
+
return [2, contents];
|
|
593
|
+
}
|
|
491
594
|
});
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
throw
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
595
|
+
}); };
|
|
596
|
+
var deserializeAws_restJson1CreateBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
597
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
598
|
+
var _c;
|
|
599
|
+
return __generator(this, function (_d) {
|
|
600
|
+
switch (_d.label) {
|
|
601
|
+
case 0:
|
|
602
|
+
_a = [__assign({}, output)];
|
|
603
|
+
_c = {};
|
|
604
|
+
return [4, parseErrorBody(output.body, context)];
|
|
605
|
+
case 1:
|
|
606
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
607
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
+
_b = errorCode;
|
|
609
|
+
switch (_b) {
|
|
610
|
+
case "BadRequestException": return [3, 2];
|
|
611
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
612
|
+
case "ConflictException": return [3, 4];
|
|
613
|
+
case "com.amazonaws.mq#ConflictException": return [3, 4];
|
|
614
|
+
case "ForbiddenException": return [3, 6];
|
|
615
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 6];
|
|
616
|
+
case "InternalServerErrorException": return [3, 8];
|
|
617
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
618
|
+
case "UnauthorizedException": return [3, 10];
|
|
619
|
+
case "com.amazonaws.mq#UnauthorizedException": return [3, 10];
|
|
620
|
+
}
|
|
621
|
+
return [3, 12];
|
|
622
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
623
|
+
case 3: throw _d.sent();
|
|
624
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
625
|
+
case 5: throw _d.sent();
|
|
626
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
627
|
+
case 7: throw _d.sent();
|
|
628
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
629
|
+
case 9: throw _d.sent();
|
|
630
|
+
case 10: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
631
|
+
case 11: throw _d.sent();
|
|
632
|
+
case 12:
|
|
633
|
+
parsedBody = parsedOutput.body;
|
|
634
|
+
throwDefaultError({
|
|
635
|
+
output: output,
|
|
636
|
+
parsedBody: parsedBody,
|
|
637
|
+
exceptionCtor: __BaseException,
|
|
638
|
+
errorCode: errorCode,
|
|
639
|
+
});
|
|
640
|
+
_d.label = 13;
|
|
641
|
+
case 13: return [2];
|
|
642
|
+
}
|
|
539
643
|
});
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
case "InternalServerErrorException":
|
|
578
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
579
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
580
|
-
default:
|
|
581
|
-
const parsedBody = parsedOutput.body;
|
|
582
|
-
throwDefaultError({
|
|
583
|
-
output,
|
|
584
|
-
parsedBody,
|
|
585
|
-
exceptionCtor: __BaseException,
|
|
586
|
-
errorCode,
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
|
-
export const deserializeAws_restJson1CreateTagsCommand = async (output, context) => {
|
|
591
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
592
|
-
return deserializeAws_restJson1CreateTagsCommandError(output, context);
|
|
593
|
-
}
|
|
594
|
-
const contents = map({
|
|
595
|
-
$metadata: deserializeMetadata(output),
|
|
644
|
+
}); };
|
|
645
|
+
export var deserializeAws_restJson1CreateConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
646
|
+
var contents, data, _a, _b;
|
|
647
|
+
return __generator(this, function (_c) {
|
|
648
|
+
switch (_c.label) {
|
|
649
|
+
case 0:
|
|
650
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
651
|
+
return [2, deserializeAws_restJson1CreateConfigurationCommandError(output, context)];
|
|
652
|
+
}
|
|
653
|
+
contents = map({
|
|
654
|
+
$metadata: deserializeMetadata(output),
|
|
655
|
+
});
|
|
656
|
+
_a = __expectNonNull;
|
|
657
|
+
_b = __expectObject;
|
|
658
|
+
return [4, parseBody(output.body, context)];
|
|
659
|
+
case 1:
|
|
660
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
661
|
+
if (data.arn != null) {
|
|
662
|
+
contents.Arn = __expectString(data.arn);
|
|
663
|
+
}
|
|
664
|
+
if (data.authenticationStrategy != null) {
|
|
665
|
+
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
666
|
+
}
|
|
667
|
+
if (data.created != null) {
|
|
668
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
669
|
+
}
|
|
670
|
+
if (data.id != null) {
|
|
671
|
+
contents.Id = __expectString(data.id);
|
|
672
|
+
}
|
|
673
|
+
if (data.latestRevision != null) {
|
|
674
|
+
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
675
|
+
}
|
|
676
|
+
if (data.name != null) {
|
|
677
|
+
contents.Name = __expectString(data.name);
|
|
678
|
+
}
|
|
679
|
+
return [2, contents];
|
|
680
|
+
}
|
|
596
681
|
});
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
682
|
+
}); };
|
|
683
|
+
var deserializeAws_restJson1CreateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
684
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
685
|
+
var _c;
|
|
686
|
+
return __generator(this, function (_d) {
|
|
687
|
+
switch (_d.label) {
|
|
688
|
+
case 0:
|
|
689
|
+
_a = [__assign({}, output)];
|
|
690
|
+
_c = {};
|
|
691
|
+
return [4, parseErrorBody(output.body, context)];
|
|
692
|
+
case 1:
|
|
693
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
694
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
|
+
_b = errorCode;
|
|
696
|
+
switch (_b) {
|
|
697
|
+
case "BadRequestException": return [3, 2];
|
|
698
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
699
|
+
case "ConflictException": return [3, 4];
|
|
700
|
+
case "com.amazonaws.mq#ConflictException": return [3, 4];
|
|
701
|
+
case "ForbiddenException": return [3, 6];
|
|
702
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 6];
|
|
703
|
+
case "InternalServerErrorException": return [3, 8];
|
|
704
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
705
|
+
}
|
|
706
|
+
return [3, 10];
|
|
707
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
708
|
+
case 3: throw _d.sent();
|
|
709
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
710
|
+
case 5: throw _d.sent();
|
|
711
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
712
|
+
case 7: throw _d.sent();
|
|
713
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
714
|
+
case 9: throw _d.sent();
|
|
715
|
+
case 10:
|
|
716
|
+
parsedBody = parsedOutput.body;
|
|
717
|
+
throwDefaultError({
|
|
718
|
+
output: output,
|
|
719
|
+
parsedBody: parsedBody,
|
|
720
|
+
exceptionCtor: __BaseException,
|
|
721
|
+
errorCode: errorCode,
|
|
722
|
+
});
|
|
723
|
+
_d.label = 11;
|
|
724
|
+
case 11: return [2];
|
|
725
|
+
}
|
|
635
726
|
});
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
654
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
655
|
-
case "InternalServerErrorException":
|
|
656
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
657
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
658
|
-
case "NotFoundException":
|
|
659
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
660
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
661
|
-
default:
|
|
662
|
-
const parsedBody = parsedOutput.body;
|
|
663
|
-
throwDefaultError({
|
|
664
|
-
output,
|
|
665
|
-
parsedBody,
|
|
666
|
-
exceptionCtor: __BaseException,
|
|
667
|
-
errorCode,
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
export const deserializeAws_restJson1DeleteBrokerCommand = async (output, context) => {
|
|
672
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
|
-
return deserializeAws_restJson1DeleteBrokerCommandError(output, context);
|
|
674
|
-
}
|
|
675
|
-
const contents = map({
|
|
676
|
-
$metadata: deserializeMetadata(output),
|
|
727
|
+
}); };
|
|
728
|
+
export var deserializeAws_restJson1CreateTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
729
|
+
var contents;
|
|
730
|
+
return __generator(this, function (_a) {
|
|
731
|
+
switch (_a.label) {
|
|
732
|
+
case 0:
|
|
733
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
734
|
+
return [2, deserializeAws_restJson1CreateTagsCommandError(output, context)];
|
|
735
|
+
}
|
|
736
|
+
contents = map({
|
|
737
|
+
$metadata: deserializeMetadata(output),
|
|
738
|
+
});
|
|
739
|
+
return [4, collectBody(output.body, context)];
|
|
740
|
+
case 1:
|
|
741
|
+
_a.sent();
|
|
742
|
+
return [2, contents];
|
|
743
|
+
}
|
|
677
744
|
});
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
return
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
745
|
+
}); };
|
|
746
|
+
var deserializeAws_restJson1CreateTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
747
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
748
|
+
var _c;
|
|
749
|
+
return __generator(this, function (_d) {
|
|
750
|
+
switch (_d.label) {
|
|
751
|
+
case 0:
|
|
752
|
+
_a = [__assign({}, output)];
|
|
753
|
+
_c = {};
|
|
754
|
+
return [4, parseErrorBody(output.body, context)];
|
|
755
|
+
case 1:
|
|
756
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
757
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
+
_b = errorCode;
|
|
759
|
+
switch (_b) {
|
|
760
|
+
case "BadRequestException": return [3, 2];
|
|
761
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
762
|
+
case "ForbiddenException": return [3, 4];
|
|
763
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
764
|
+
case "InternalServerErrorException": return [3, 6];
|
|
765
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
766
|
+
case "NotFoundException": return [3, 8];
|
|
767
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
768
|
+
}
|
|
769
|
+
return [3, 10];
|
|
770
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
771
|
+
case 3: throw _d.sent();
|
|
772
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
773
|
+
case 5: throw _d.sent();
|
|
774
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
775
|
+
case 7: throw _d.sent();
|
|
776
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
777
|
+
case 9: throw _d.sent();
|
|
778
|
+
case 10:
|
|
779
|
+
parsedBody = parsedOutput.body;
|
|
780
|
+
throwDefaultError({
|
|
781
|
+
output: output,
|
|
782
|
+
parsedBody: parsedBody,
|
|
783
|
+
exceptionCtor: __BaseException,
|
|
784
|
+
errorCode: errorCode,
|
|
785
|
+
});
|
|
786
|
+
_d.label = 11;
|
|
787
|
+
case 11: return [2];
|
|
788
|
+
}
|
|
719
789
|
});
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
738
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
739
|
-
case "NotFoundException":
|
|
740
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
741
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
742
|
-
default:
|
|
743
|
-
const parsedBody = parsedOutput.body;
|
|
744
|
-
throwDefaultError({
|
|
745
|
-
output,
|
|
746
|
-
parsedBody,
|
|
747
|
-
exceptionCtor: __BaseException,
|
|
748
|
-
errorCode,
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
export const deserializeAws_restJson1DeleteUserCommand = async (output, context) => {
|
|
753
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return deserializeAws_restJson1DeleteUserCommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const contents = map({
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
790
|
+
}); };
|
|
791
|
+
export var deserializeAws_restJson1CreateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
792
|
+
var contents;
|
|
793
|
+
return __generator(this, function (_a) {
|
|
794
|
+
switch (_a.label) {
|
|
795
|
+
case 0:
|
|
796
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
+
return [2, deserializeAws_restJson1CreateUserCommandError(output, context)];
|
|
798
|
+
}
|
|
799
|
+
contents = map({
|
|
800
|
+
$metadata: deserializeMetadata(output),
|
|
801
|
+
});
|
|
802
|
+
return [4, collectBody(output.body, context)];
|
|
803
|
+
case 1:
|
|
804
|
+
_a.sent();
|
|
805
|
+
return [2, contents];
|
|
806
|
+
}
|
|
758
807
|
});
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
808
|
+
}); };
|
|
809
|
+
var deserializeAws_restJson1CreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
810
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
811
|
+
var _c;
|
|
812
|
+
return __generator(this, function (_d) {
|
|
813
|
+
switch (_d.label) {
|
|
814
|
+
case 0:
|
|
815
|
+
_a = [__assign({}, output)];
|
|
816
|
+
_c = {};
|
|
817
|
+
return [4, parseErrorBody(output.body, context)];
|
|
818
|
+
case 1:
|
|
819
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
820
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
+
_b = errorCode;
|
|
822
|
+
switch (_b) {
|
|
823
|
+
case "BadRequestException": return [3, 2];
|
|
824
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
825
|
+
case "ConflictException": return [3, 4];
|
|
826
|
+
case "com.amazonaws.mq#ConflictException": return [3, 4];
|
|
827
|
+
case "ForbiddenException": return [3, 6];
|
|
828
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 6];
|
|
829
|
+
case "InternalServerErrorException": return [3, 8];
|
|
830
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
831
|
+
case "NotFoundException": return [3, 10];
|
|
832
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
833
|
+
}
|
|
834
|
+
return [3, 12];
|
|
835
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
836
|
+
case 3: throw _d.sent();
|
|
837
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
838
|
+
case 5: throw _d.sent();
|
|
839
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
840
|
+
case 7: throw _d.sent();
|
|
841
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
842
|
+
case 9: throw _d.sent();
|
|
843
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
844
|
+
case 11: throw _d.sent();
|
|
845
|
+
case 12:
|
|
846
|
+
parsedBody = parsedOutput.body;
|
|
847
|
+
throwDefaultError({
|
|
848
|
+
output: output,
|
|
849
|
+
parsedBody: parsedBody,
|
|
850
|
+
exceptionCtor: __BaseException,
|
|
851
|
+
errorCode: errorCode,
|
|
852
|
+
});
|
|
853
|
+
_d.label = 13;
|
|
854
|
+
case 13: return [2];
|
|
855
|
+
}
|
|
797
856
|
});
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
if (data.brokerState != null) {
|
|
821
|
-
contents.BrokerState = __expectString(data.brokerState);
|
|
822
|
-
}
|
|
823
|
-
if (data.configurations != null) {
|
|
824
|
-
contents.Configurations = deserializeAws_restJson1Configurations(data.configurations, context);
|
|
825
|
-
}
|
|
826
|
-
if (data.created != null) {
|
|
827
|
-
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
828
|
-
}
|
|
829
|
-
if (data.deploymentMode != null) {
|
|
830
|
-
contents.DeploymentMode = __expectString(data.deploymentMode);
|
|
831
|
-
}
|
|
832
|
-
if (data.encryptionOptions != null) {
|
|
833
|
-
contents.EncryptionOptions = deserializeAws_restJson1EncryptionOptions(data.encryptionOptions, context);
|
|
834
|
-
}
|
|
835
|
-
if (data.engineType != null) {
|
|
836
|
-
contents.EngineType = __expectString(data.engineType);
|
|
837
|
-
}
|
|
838
|
-
if (data.engineVersion != null) {
|
|
839
|
-
contents.EngineVersion = __expectString(data.engineVersion);
|
|
840
|
-
}
|
|
841
|
-
if (data.hostInstanceType != null) {
|
|
842
|
-
contents.HostInstanceType = __expectString(data.hostInstanceType);
|
|
843
|
-
}
|
|
844
|
-
if (data.ldapServerMetadata != null) {
|
|
845
|
-
contents.LdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
846
|
-
}
|
|
847
|
-
if (data.logs != null) {
|
|
848
|
-
contents.Logs = deserializeAws_restJson1LogsSummary(data.logs, context);
|
|
849
|
-
}
|
|
850
|
-
if (data.maintenanceWindowStartTime != null) {
|
|
851
|
-
contents.MaintenanceWindowStartTime = deserializeAws_restJson1WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
852
|
-
}
|
|
853
|
-
if (data.pendingAuthenticationStrategy != null) {
|
|
854
|
-
contents.PendingAuthenticationStrategy = __expectString(data.pendingAuthenticationStrategy);
|
|
855
|
-
}
|
|
856
|
-
if (data.pendingEngineVersion != null) {
|
|
857
|
-
contents.PendingEngineVersion = __expectString(data.pendingEngineVersion);
|
|
858
|
-
}
|
|
859
|
-
if (data.pendingHostInstanceType != null) {
|
|
860
|
-
contents.PendingHostInstanceType = __expectString(data.pendingHostInstanceType);
|
|
861
|
-
}
|
|
862
|
-
if (data.pendingLdapServerMetadata != null) {
|
|
863
|
-
contents.PendingLdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.pendingLdapServerMetadata, context);
|
|
864
|
-
}
|
|
865
|
-
if (data.pendingSecurityGroups != null) {
|
|
866
|
-
contents.PendingSecurityGroups = deserializeAws_restJson1__listOf__string(data.pendingSecurityGroups, context);
|
|
867
|
-
}
|
|
868
|
-
if (data.publiclyAccessible != null) {
|
|
869
|
-
contents.PubliclyAccessible = __expectBoolean(data.publiclyAccessible);
|
|
870
|
-
}
|
|
871
|
-
if (data.securityGroups != null) {
|
|
872
|
-
contents.SecurityGroups = deserializeAws_restJson1__listOf__string(data.securityGroups, context);
|
|
873
|
-
}
|
|
874
|
-
if (data.storageType != null) {
|
|
875
|
-
contents.StorageType = __expectString(data.storageType);
|
|
876
|
-
}
|
|
877
|
-
if (data.subnetIds != null) {
|
|
878
|
-
contents.SubnetIds = deserializeAws_restJson1__listOf__string(data.subnetIds, context);
|
|
879
|
-
}
|
|
880
|
-
if (data.tags != null) {
|
|
881
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
882
|
-
}
|
|
883
|
-
if (data.users != null) {
|
|
884
|
-
contents.Users = deserializeAws_restJson1__listOfUserSummary(data.users, context);
|
|
885
|
-
}
|
|
886
|
-
return contents;
|
|
887
|
-
};
|
|
888
|
-
const deserializeAws_restJson1DescribeBrokerCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "BadRequestException":
|
|
896
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
897
|
-
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
898
|
-
case "ForbiddenException":
|
|
899
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
900
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
901
|
-
case "InternalServerErrorException":
|
|
902
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
903
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
904
|
-
case "NotFoundException":
|
|
905
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
906
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
907
|
-
default:
|
|
908
|
-
const parsedBody = parsedOutput.body;
|
|
909
|
-
throwDefaultError({
|
|
910
|
-
output,
|
|
911
|
-
parsedBody,
|
|
912
|
-
exceptionCtor: __BaseException,
|
|
913
|
-
errorCode,
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
export const deserializeAws_restJson1DescribeBrokerEngineTypesCommand = async (output, context) => {
|
|
918
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
919
|
-
return deserializeAws_restJson1DescribeBrokerEngineTypesCommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const contents = map({
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
+
}); };
|
|
858
|
+
export var deserializeAws_restJson1DeleteBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
859
|
+
var contents, data, _a, _b;
|
|
860
|
+
return __generator(this, function (_c) {
|
|
861
|
+
switch (_c.label) {
|
|
862
|
+
case 0:
|
|
863
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
|
+
return [2, deserializeAws_restJson1DeleteBrokerCommandError(output, context)];
|
|
865
|
+
}
|
|
866
|
+
contents = map({
|
|
867
|
+
$metadata: deserializeMetadata(output),
|
|
868
|
+
});
|
|
869
|
+
_a = __expectNonNull;
|
|
870
|
+
_b = __expectObject;
|
|
871
|
+
return [4, parseBody(output.body, context)];
|
|
872
|
+
case 1:
|
|
873
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
874
|
+
if (data.brokerId != null) {
|
|
875
|
+
contents.BrokerId = __expectString(data.brokerId);
|
|
876
|
+
}
|
|
877
|
+
return [2, contents];
|
|
878
|
+
}
|
|
923
879
|
});
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
880
|
+
}); };
|
|
881
|
+
var deserializeAws_restJson1DeleteBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
882
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
883
|
+
var _c;
|
|
884
|
+
return __generator(this, function (_d) {
|
|
885
|
+
switch (_d.label) {
|
|
886
|
+
case 0:
|
|
887
|
+
_a = [__assign({}, output)];
|
|
888
|
+
_c = {};
|
|
889
|
+
return [4, parseErrorBody(output.body, context)];
|
|
890
|
+
case 1:
|
|
891
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
892
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
+
_b = errorCode;
|
|
894
|
+
switch (_b) {
|
|
895
|
+
case "BadRequestException": return [3, 2];
|
|
896
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
897
|
+
case "ForbiddenException": return [3, 4];
|
|
898
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
899
|
+
case "InternalServerErrorException": return [3, 6];
|
|
900
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
901
|
+
case "NotFoundException": return [3, 8];
|
|
902
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
903
|
+
}
|
|
904
|
+
return [3, 10];
|
|
905
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
906
|
+
case 3: throw _d.sent();
|
|
907
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
908
|
+
case 5: throw _d.sent();
|
|
909
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
910
|
+
case 7: throw _d.sent();
|
|
911
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
912
|
+
case 9: throw _d.sent();
|
|
913
|
+
case 10:
|
|
914
|
+
parsedBody = parsedOutput.body;
|
|
915
|
+
throwDefaultError({
|
|
916
|
+
output: output,
|
|
917
|
+
parsedBody: parsedBody,
|
|
918
|
+
exceptionCtor: __BaseException,
|
|
919
|
+
errorCode: errorCode,
|
|
920
|
+
});
|
|
921
|
+
_d.label = 11;
|
|
922
|
+
case 11: return [2];
|
|
923
|
+
}
|
|
968
924
|
});
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
|
-
switch (errorCode) {
|
|
988
|
-
case "BadRequestException":
|
|
989
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
990
|
-
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
991
|
-
case "ForbiddenException":
|
|
992
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
993
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
994
|
-
case "InternalServerErrorException":
|
|
995
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
996
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
exceptionCtor: __BaseException,
|
|
1003
|
-
errorCode,
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
};
|
|
1007
|
-
export const deserializeAws_restJson1DescribeConfigurationCommand = async (output, context) => {
|
|
1008
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
-
return deserializeAws_restJson1DescribeConfigurationCommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
const contents = map({
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
+
}); };
|
|
926
|
+
export var deserializeAws_restJson1DeleteTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
927
|
+
var contents;
|
|
928
|
+
return __generator(this, function (_a) {
|
|
929
|
+
switch (_a.label) {
|
|
930
|
+
case 0:
|
|
931
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
932
|
+
return [2, deserializeAws_restJson1DeleteTagsCommandError(output, context)];
|
|
933
|
+
}
|
|
934
|
+
contents = map({
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
});
|
|
937
|
+
return [4, collectBody(output.body, context)];
|
|
938
|
+
case 1:
|
|
939
|
+
_a.sent();
|
|
940
|
+
return [2, contents];
|
|
941
|
+
}
|
|
1013
942
|
});
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1059
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1060
|
-
case "InternalServerErrorException":
|
|
1061
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1062
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1063
|
-
case "NotFoundException":
|
|
1064
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1065
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
exceptionCtor: __BaseException,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
|
-
export const deserializeAws_restJson1DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
1077
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
|
-
return deserializeAws_restJson1DescribeConfigurationRevisionCommandError(output, context);
|
|
1079
|
-
}
|
|
1080
|
-
const contents = map({
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
+
}); };
|
|
944
|
+
var deserializeAws_restJson1DeleteTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
945
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
946
|
+
var _c;
|
|
947
|
+
return __generator(this, function (_d) {
|
|
948
|
+
switch (_d.label) {
|
|
949
|
+
case 0:
|
|
950
|
+
_a = [__assign({}, output)];
|
|
951
|
+
_c = {};
|
|
952
|
+
return [4, parseErrorBody(output.body, context)];
|
|
953
|
+
case 1:
|
|
954
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
955
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
+
_b = errorCode;
|
|
957
|
+
switch (_b) {
|
|
958
|
+
case "BadRequestException": return [3, 2];
|
|
959
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
960
|
+
case "ForbiddenException": return [3, 4];
|
|
961
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
962
|
+
case "InternalServerErrorException": return [3, 6];
|
|
963
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
964
|
+
case "NotFoundException": return [3, 8];
|
|
965
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
966
|
+
}
|
|
967
|
+
return [3, 10];
|
|
968
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
969
|
+
case 3: throw _d.sent();
|
|
970
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
971
|
+
case 5: throw _d.sent();
|
|
972
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
973
|
+
case 7: throw _d.sent();
|
|
974
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
975
|
+
case 9: throw _d.sent();
|
|
976
|
+
case 10:
|
|
977
|
+
parsedBody = parsedOutput.body;
|
|
978
|
+
throwDefaultError({
|
|
979
|
+
output: output,
|
|
980
|
+
parsedBody: parsedBody,
|
|
981
|
+
exceptionCtor: __BaseException,
|
|
982
|
+
errorCode: errorCode,
|
|
983
|
+
});
|
|
984
|
+
_d.label = 11;
|
|
985
|
+
case 11: return [2];
|
|
986
|
+
}
|
|
1082
987
|
});
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
...output,
|
|
1101
|
-
body: await parseErrorBody(output.body, context),
|
|
1102
|
-
};
|
|
1103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
switch (errorCode) {
|
|
1105
|
-
case "BadRequestException":
|
|
1106
|
-
case "com.amazonaws.mq#BadRequestException":
|
|
1107
|
-
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1108
|
-
case "ForbiddenException":
|
|
1109
|
-
case "com.amazonaws.mq#ForbiddenException":
|
|
1110
|
-
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1111
|
-
case "InternalServerErrorException":
|
|
1112
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1113
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1114
|
-
case "NotFoundException":
|
|
1115
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1116
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
exceptionCtor: __BaseException,
|
|
1123
|
-
errorCode,
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
};
|
|
1127
|
-
export const deserializeAws_restJson1DescribeUserCommand = async (output, context) => {
|
|
1128
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1129
|
-
return deserializeAws_restJson1DescribeUserCommandError(output, context);
|
|
1130
|
-
}
|
|
1131
|
-
const contents = map({
|
|
1132
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
+
}); };
|
|
989
|
+
export var deserializeAws_restJson1DeleteUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
990
|
+
var contents;
|
|
991
|
+
return __generator(this, function (_a) {
|
|
992
|
+
switch (_a.label) {
|
|
993
|
+
case 0:
|
|
994
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
+
return [2, deserializeAws_restJson1DeleteUserCommandError(output, context)];
|
|
996
|
+
}
|
|
997
|
+
contents = map({
|
|
998
|
+
$metadata: deserializeMetadata(output),
|
|
999
|
+
});
|
|
1000
|
+
return [4, collectBody(output.body, context)];
|
|
1001
|
+
case 1:
|
|
1002
|
+
_a.sent();
|
|
1003
|
+
return [2, contents];
|
|
1004
|
+
}
|
|
1133
1005
|
});
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
throw
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
|
-
export const deserializeAws_restJson1ListBrokersCommand = async (output, context) => {
|
|
1182
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
|
-
return deserializeAws_restJson1ListBrokersCommandError(output, context);
|
|
1184
|
-
}
|
|
1185
|
-
const contents = map({
|
|
1186
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
+
}); };
|
|
1007
|
+
var deserializeAws_restJson1DeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1008
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1009
|
+
var _c;
|
|
1010
|
+
return __generator(this, function (_d) {
|
|
1011
|
+
switch (_d.label) {
|
|
1012
|
+
case 0:
|
|
1013
|
+
_a = [__assign({}, output)];
|
|
1014
|
+
_c = {};
|
|
1015
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1016
|
+
case 1:
|
|
1017
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1018
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
+
_b = errorCode;
|
|
1020
|
+
switch (_b) {
|
|
1021
|
+
case "BadRequestException": return [3, 2];
|
|
1022
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1023
|
+
case "ForbiddenException": return [3, 4];
|
|
1024
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1025
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1026
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1027
|
+
case "NotFoundException": return [3, 8];
|
|
1028
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1029
|
+
}
|
|
1030
|
+
return [3, 10];
|
|
1031
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1032
|
+
case 3: throw _d.sent();
|
|
1033
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1034
|
+
case 5: throw _d.sent();
|
|
1035
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1036
|
+
case 7: throw _d.sent();
|
|
1037
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1038
|
+
case 9: throw _d.sent();
|
|
1039
|
+
case 10:
|
|
1040
|
+
parsedBody = parsedOutput.body;
|
|
1041
|
+
throwDefaultError({
|
|
1042
|
+
output: output,
|
|
1043
|
+
parsedBody: parsedBody,
|
|
1044
|
+
exceptionCtor: __BaseException,
|
|
1045
|
+
errorCode: errorCode,
|
|
1046
|
+
});
|
|
1047
|
+
_d.label = 11;
|
|
1048
|
+
case 11: return [2];
|
|
1049
|
+
}
|
|
1187
1050
|
});
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1051
|
+
}); };
|
|
1052
|
+
export var deserializeAws_restJson1DescribeBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1053
|
+
var contents, data, _a, _b;
|
|
1054
|
+
return __generator(this, function (_c) {
|
|
1055
|
+
switch (_c.label) {
|
|
1056
|
+
case 0:
|
|
1057
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1058
|
+
return [2, deserializeAws_restJson1DescribeBrokerCommandError(output, context)];
|
|
1059
|
+
}
|
|
1060
|
+
contents = map({
|
|
1061
|
+
$metadata: deserializeMetadata(output),
|
|
1062
|
+
});
|
|
1063
|
+
_a = __expectNonNull;
|
|
1064
|
+
_b = __expectObject;
|
|
1065
|
+
return [4, parseBody(output.body, context)];
|
|
1066
|
+
case 1:
|
|
1067
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1068
|
+
if (data.actionsRequired != null) {
|
|
1069
|
+
contents.ActionsRequired = deserializeAws_restJson1__listOfActionRequired(data.actionsRequired, context);
|
|
1070
|
+
}
|
|
1071
|
+
if (data.authenticationStrategy != null) {
|
|
1072
|
+
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
1073
|
+
}
|
|
1074
|
+
if (data.autoMinorVersionUpgrade != null) {
|
|
1075
|
+
contents.AutoMinorVersionUpgrade = __expectBoolean(data.autoMinorVersionUpgrade);
|
|
1076
|
+
}
|
|
1077
|
+
if (data.brokerArn != null) {
|
|
1078
|
+
contents.BrokerArn = __expectString(data.brokerArn);
|
|
1079
|
+
}
|
|
1080
|
+
if (data.brokerId != null) {
|
|
1081
|
+
contents.BrokerId = __expectString(data.brokerId);
|
|
1082
|
+
}
|
|
1083
|
+
if (data.brokerInstances != null) {
|
|
1084
|
+
contents.BrokerInstances = deserializeAws_restJson1__listOfBrokerInstance(data.brokerInstances, context);
|
|
1085
|
+
}
|
|
1086
|
+
if (data.brokerName != null) {
|
|
1087
|
+
contents.BrokerName = __expectString(data.brokerName);
|
|
1088
|
+
}
|
|
1089
|
+
if (data.brokerState != null) {
|
|
1090
|
+
contents.BrokerState = __expectString(data.brokerState);
|
|
1091
|
+
}
|
|
1092
|
+
if (data.configurations != null) {
|
|
1093
|
+
contents.Configurations = deserializeAws_restJson1Configurations(data.configurations, context);
|
|
1094
|
+
}
|
|
1095
|
+
if (data.created != null) {
|
|
1096
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
1097
|
+
}
|
|
1098
|
+
if (data.deploymentMode != null) {
|
|
1099
|
+
contents.DeploymentMode = __expectString(data.deploymentMode);
|
|
1100
|
+
}
|
|
1101
|
+
if (data.encryptionOptions != null) {
|
|
1102
|
+
contents.EncryptionOptions = deserializeAws_restJson1EncryptionOptions(data.encryptionOptions, context);
|
|
1103
|
+
}
|
|
1104
|
+
if (data.engineType != null) {
|
|
1105
|
+
contents.EngineType = __expectString(data.engineType);
|
|
1106
|
+
}
|
|
1107
|
+
if (data.engineVersion != null) {
|
|
1108
|
+
contents.EngineVersion = __expectString(data.engineVersion);
|
|
1109
|
+
}
|
|
1110
|
+
if (data.hostInstanceType != null) {
|
|
1111
|
+
contents.HostInstanceType = __expectString(data.hostInstanceType);
|
|
1112
|
+
}
|
|
1113
|
+
if (data.ldapServerMetadata != null) {
|
|
1114
|
+
contents.LdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
1115
|
+
}
|
|
1116
|
+
if (data.logs != null) {
|
|
1117
|
+
contents.Logs = deserializeAws_restJson1LogsSummary(data.logs, context);
|
|
1118
|
+
}
|
|
1119
|
+
if (data.maintenanceWindowStartTime != null) {
|
|
1120
|
+
contents.MaintenanceWindowStartTime = deserializeAws_restJson1WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
1121
|
+
}
|
|
1122
|
+
if (data.pendingAuthenticationStrategy != null) {
|
|
1123
|
+
contents.PendingAuthenticationStrategy = __expectString(data.pendingAuthenticationStrategy);
|
|
1124
|
+
}
|
|
1125
|
+
if (data.pendingEngineVersion != null) {
|
|
1126
|
+
contents.PendingEngineVersion = __expectString(data.pendingEngineVersion);
|
|
1127
|
+
}
|
|
1128
|
+
if (data.pendingHostInstanceType != null) {
|
|
1129
|
+
contents.PendingHostInstanceType = __expectString(data.pendingHostInstanceType);
|
|
1130
|
+
}
|
|
1131
|
+
if (data.pendingLdapServerMetadata != null) {
|
|
1132
|
+
contents.PendingLdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.pendingLdapServerMetadata, context);
|
|
1133
|
+
}
|
|
1134
|
+
if (data.pendingSecurityGroups != null) {
|
|
1135
|
+
contents.PendingSecurityGroups = deserializeAws_restJson1__listOf__string(data.pendingSecurityGroups, context);
|
|
1136
|
+
}
|
|
1137
|
+
if (data.publiclyAccessible != null) {
|
|
1138
|
+
contents.PubliclyAccessible = __expectBoolean(data.publiclyAccessible);
|
|
1139
|
+
}
|
|
1140
|
+
if (data.securityGroups != null) {
|
|
1141
|
+
contents.SecurityGroups = deserializeAws_restJson1__listOf__string(data.securityGroups, context);
|
|
1142
|
+
}
|
|
1143
|
+
if (data.storageType != null) {
|
|
1144
|
+
contents.StorageType = __expectString(data.storageType);
|
|
1145
|
+
}
|
|
1146
|
+
if (data.subnetIds != null) {
|
|
1147
|
+
contents.SubnetIds = deserializeAws_restJson1__listOf__string(data.subnetIds, context);
|
|
1148
|
+
}
|
|
1149
|
+
if (data.tags != null) {
|
|
1150
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1151
|
+
}
|
|
1152
|
+
if (data.users != null) {
|
|
1153
|
+
contents.Users = deserializeAws_restJson1__listOfUserSummary(data.users, context);
|
|
1154
|
+
}
|
|
1155
|
+
return [2, contents];
|
|
1156
|
+
}
|
|
1229
1157
|
});
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
throw
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
}
|
|
1274
|
-
export const deserializeAws_restJson1ListConfigurationsCommand = async (output, context) => {
|
|
1275
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
|
-
return deserializeAws_restJson1ListConfigurationsCommandError(output, context);
|
|
1277
|
-
}
|
|
1278
|
-
const contents = map({
|
|
1279
|
-
$metadata: deserializeMetadata(output),
|
|
1158
|
+
}); };
|
|
1159
|
+
var deserializeAws_restJson1DescribeBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1160
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1161
|
+
var _c;
|
|
1162
|
+
return __generator(this, function (_d) {
|
|
1163
|
+
switch (_d.label) {
|
|
1164
|
+
case 0:
|
|
1165
|
+
_a = [__assign({}, output)];
|
|
1166
|
+
_c = {};
|
|
1167
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1168
|
+
case 1:
|
|
1169
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1170
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
|
+
_b = errorCode;
|
|
1172
|
+
switch (_b) {
|
|
1173
|
+
case "BadRequestException": return [3, 2];
|
|
1174
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1175
|
+
case "ForbiddenException": return [3, 4];
|
|
1176
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1177
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1178
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1179
|
+
case "NotFoundException": return [3, 8];
|
|
1180
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1181
|
+
}
|
|
1182
|
+
return [3, 10];
|
|
1183
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1184
|
+
case 3: throw _d.sent();
|
|
1185
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1186
|
+
case 5: throw _d.sent();
|
|
1187
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1188
|
+
case 7: throw _d.sent();
|
|
1189
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1190
|
+
case 9: throw _d.sent();
|
|
1191
|
+
case 10:
|
|
1192
|
+
parsedBody = parsedOutput.body;
|
|
1193
|
+
throwDefaultError({
|
|
1194
|
+
output: output,
|
|
1195
|
+
parsedBody: parsedBody,
|
|
1196
|
+
exceptionCtor: __BaseException,
|
|
1197
|
+
errorCode: errorCode,
|
|
1198
|
+
});
|
|
1199
|
+
_d.label = 11;
|
|
1200
|
+
case 11: return [2];
|
|
1201
|
+
}
|
|
1280
1202
|
});
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
};
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
default:
|
|
1310
|
-
const parsedBody = parsedOutput.body;
|
|
1311
|
-
throwDefaultError({
|
|
1312
|
-
output,
|
|
1313
|
-
parsedBody,
|
|
1314
|
-
exceptionCtor: __BaseException,
|
|
1315
|
-
errorCode,
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
};
|
|
1319
|
-
export const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
|
|
1320
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1321
|
-
return deserializeAws_restJson1ListTagsCommandError(output, context);
|
|
1322
|
-
}
|
|
1323
|
-
const contents = map({
|
|
1324
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
+
}); };
|
|
1204
|
+
export var deserializeAws_restJson1DescribeBrokerEngineTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1205
|
+
var contents, data, _a, _b;
|
|
1206
|
+
return __generator(this, function (_c) {
|
|
1207
|
+
switch (_c.label) {
|
|
1208
|
+
case 0:
|
|
1209
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1210
|
+
return [2, deserializeAws_restJson1DescribeBrokerEngineTypesCommandError(output, context)];
|
|
1211
|
+
}
|
|
1212
|
+
contents = map({
|
|
1213
|
+
$metadata: deserializeMetadata(output),
|
|
1214
|
+
});
|
|
1215
|
+
_a = __expectNonNull;
|
|
1216
|
+
_b = __expectObject;
|
|
1217
|
+
return [4, parseBody(output.body, context)];
|
|
1218
|
+
case 1:
|
|
1219
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1220
|
+
if (data.brokerEngineTypes != null) {
|
|
1221
|
+
contents.BrokerEngineTypes = deserializeAws_restJson1__listOfBrokerEngineType(data.brokerEngineTypes, context);
|
|
1222
|
+
}
|
|
1223
|
+
if (data.maxResults != null) {
|
|
1224
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1225
|
+
}
|
|
1226
|
+
if (data.nextToken != null) {
|
|
1227
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1228
|
+
}
|
|
1229
|
+
return [2, contents];
|
|
1230
|
+
}
|
|
1325
1231
|
});
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
return
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
throw
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
+
}); };
|
|
1233
|
+
var deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1234
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1235
|
+
var _c;
|
|
1236
|
+
return __generator(this, function (_d) {
|
|
1237
|
+
switch (_d.label) {
|
|
1238
|
+
case 0:
|
|
1239
|
+
_a = [__assign({}, output)];
|
|
1240
|
+
_c = {};
|
|
1241
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1242
|
+
case 1:
|
|
1243
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1244
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
+
_b = errorCode;
|
|
1246
|
+
switch (_b) {
|
|
1247
|
+
case "BadRequestException": return [3, 2];
|
|
1248
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1249
|
+
case "ForbiddenException": return [3, 4];
|
|
1250
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1251
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1252
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1253
|
+
}
|
|
1254
|
+
return [3, 8];
|
|
1255
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1256
|
+
case 3: throw _d.sent();
|
|
1257
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1258
|
+
case 5: throw _d.sent();
|
|
1259
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1260
|
+
case 7: throw _d.sent();
|
|
1261
|
+
case 8:
|
|
1262
|
+
parsedBody = parsedOutput.body;
|
|
1263
|
+
throwDefaultError({
|
|
1264
|
+
output: output,
|
|
1265
|
+
parsedBody: parsedBody,
|
|
1266
|
+
exceptionCtor: __BaseException,
|
|
1267
|
+
errorCode: errorCode,
|
|
1268
|
+
});
|
|
1269
|
+
_d.label = 9;
|
|
1270
|
+
case 9: return [2];
|
|
1271
|
+
}
|
|
1367
1272
|
});
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
case "InternalServerErrorException":
|
|
1397
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1398
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1399
|
-
case "NotFoundException":
|
|
1400
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1401
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1402
|
-
default:
|
|
1403
|
-
const parsedBody = parsedOutput.body;
|
|
1404
|
-
throwDefaultError({
|
|
1405
|
-
output,
|
|
1406
|
-
parsedBody,
|
|
1407
|
-
exceptionCtor: __BaseException,
|
|
1408
|
-
errorCode,
|
|
1409
|
-
});
|
|
1410
|
-
}
|
|
1411
|
-
};
|
|
1412
|
-
export const deserializeAws_restJson1RebootBrokerCommand = async (output, context) => {
|
|
1413
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1414
|
-
return deserializeAws_restJson1RebootBrokerCommandError(output, context);
|
|
1415
|
-
}
|
|
1416
|
-
const contents = map({
|
|
1417
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
+
}); };
|
|
1274
|
+
export var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1275
|
+
var contents, data, _a, _b;
|
|
1276
|
+
return __generator(this, function (_c) {
|
|
1277
|
+
switch (_c.label) {
|
|
1278
|
+
case 0:
|
|
1279
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1280
|
+
return [2, deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError(output, context)];
|
|
1281
|
+
}
|
|
1282
|
+
contents = map({
|
|
1283
|
+
$metadata: deserializeMetadata(output),
|
|
1284
|
+
});
|
|
1285
|
+
_a = __expectNonNull;
|
|
1286
|
+
_b = __expectObject;
|
|
1287
|
+
return [4, parseBody(output.body, context)];
|
|
1288
|
+
case 1:
|
|
1289
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1290
|
+
if (data.brokerInstanceOptions != null) {
|
|
1291
|
+
contents.BrokerInstanceOptions = deserializeAws_restJson1__listOfBrokerInstanceOption(data.brokerInstanceOptions, context);
|
|
1292
|
+
}
|
|
1293
|
+
if (data.maxResults != null) {
|
|
1294
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1295
|
+
}
|
|
1296
|
+
if (data.nextToken != null) {
|
|
1297
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1298
|
+
}
|
|
1299
|
+
return [2, contents];
|
|
1300
|
+
}
|
|
1418
1301
|
});
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1302
|
+
}); };
|
|
1303
|
+
var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1304
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1305
|
+
var _c;
|
|
1306
|
+
return __generator(this, function (_d) {
|
|
1307
|
+
switch (_d.label) {
|
|
1308
|
+
case 0:
|
|
1309
|
+
_a = [__assign({}, output)];
|
|
1310
|
+
_c = {};
|
|
1311
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1312
|
+
case 1:
|
|
1313
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1314
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
+
_b = errorCode;
|
|
1316
|
+
switch (_b) {
|
|
1317
|
+
case "BadRequestException": return [3, 2];
|
|
1318
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1319
|
+
case "ForbiddenException": return [3, 4];
|
|
1320
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1321
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1322
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1323
|
+
}
|
|
1324
|
+
return [3, 8];
|
|
1325
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1326
|
+
case 3: throw _d.sent();
|
|
1327
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1328
|
+
case 5: throw _d.sent();
|
|
1329
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1330
|
+
case 7: throw _d.sent();
|
|
1331
|
+
case 8:
|
|
1332
|
+
parsedBody = parsedOutput.body;
|
|
1333
|
+
throwDefaultError({
|
|
1334
|
+
output: output,
|
|
1335
|
+
parsedBody: parsedBody,
|
|
1336
|
+
exceptionCtor: __BaseException,
|
|
1337
|
+
errorCode: errorCode,
|
|
1338
|
+
});
|
|
1339
|
+
_d.label = 9;
|
|
1340
|
+
case 9: return [2];
|
|
1341
|
+
}
|
|
1457
1342
|
});
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
case "InternalServerErrorException":
|
|
1508
|
-
case "com.amazonaws.mq#InternalServerErrorException":
|
|
1509
|
-
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1510
|
-
case "NotFoundException":
|
|
1511
|
-
case "com.amazonaws.mq#NotFoundException":
|
|
1512
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1513
|
-
default:
|
|
1514
|
-
const parsedBody = parsedOutput.body;
|
|
1515
|
-
throwDefaultError({
|
|
1516
|
-
output,
|
|
1517
|
-
parsedBody,
|
|
1518
|
-
exceptionCtor: __BaseException,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
export const deserializeAws_restJson1UpdateConfigurationCommand = async (output, context) => {
|
|
1524
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
-
return deserializeAws_restJson1UpdateConfigurationCommandError(output, context);
|
|
1526
|
-
}
|
|
1527
|
-
const contents = map({
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
+
}); };
|
|
1344
|
+
export var deserializeAws_restJson1DescribeConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1345
|
+
var contents, data, _a, _b;
|
|
1346
|
+
return __generator(this, function (_c) {
|
|
1347
|
+
switch (_c.label) {
|
|
1348
|
+
case 0:
|
|
1349
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1350
|
+
return [2, deserializeAws_restJson1DescribeConfigurationCommandError(output, context)];
|
|
1351
|
+
}
|
|
1352
|
+
contents = map({
|
|
1353
|
+
$metadata: deserializeMetadata(output),
|
|
1354
|
+
});
|
|
1355
|
+
_a = __expectNonNull;
|
|
1356
|
+
_b = __expectObject;
|
|
1357
|
+
return [4, parseBody(output.body, context)];
|
|
1358
|
+
case 1:
|
|
1359
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1360
|
+
if (data.arn != null) {
|
|
1361
|
+
contents.Arn = __expectString(data.arn);
|
|
1362
|
+
}
|
|
1363
|
+
if (data.authenticationStrategy != null) {
|
|
1364
|
+
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
1365
|
+
}
|
|
1366
|
+
if (data.created != null) {
|
|
1367
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
1368
|
+
}
|
|
1369
|
+
if (data.description != null) {
|
|
1370
|
+
contents.Description = __expectString(data.description);
|
|
1371
|
+
}
|
|
1372
|
+
if (data.engineType != null) {
|
|
1373
|
+
contents.EngineType = __expectString(data.engineType);
|
|
1374
|
+
}
|
|
1375
|
+
if (data.engineVersion != null) {
|
|
1376
|
+
contents.EngineVersion = __expectString(data.engineVersion);
|
|
1377
|
+
}
|
|
1378
|
+
if (data.id != null) {
|
|
1379
|
+
contents.Id = __expectString(data.id);
|
|
1380
|
+
}
|
|
1381
|
+
if (data.latestRevision != null) {
|
|
1382
|
+
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1383
|
+
}
|
|
1384
|
+
if (data.name != null) {
|
|
1385
|
+
contents.Name = __expectString(data.name);
|
|
1386
|
+
}
|
|
1387
|
+
if (data.tags != null) {
|
|
1388
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1389
|
+
}
|
|
1390
|
+
return [2, contents];
|
|
1391
|
+
}
|
|
1529
1392
|
});
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
throw
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
const parsedBody = parsedOutput.body;
|
|
1575
|
-
throwDefaultError({
|
|
1576
|
-
output,
|
|
1577
|
-
parsedBody,
|
|
1578
|
-
exceptionCtor: __BaseException,
|
|
1579
|
-
errorCode,
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
export const deserializeAws_restJson1UpdateUserCommand = async (output, context) => {
|
|
1584
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1585
|
-
return deserializeAws_restJson1UpdateUserCommandError(output, context);
|
|
1586
|
-
}
|
|
1587
|
-
const contents = map({
|
|
1588
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
+
}); };
|
|
1394
|
+
var deserializeAws_restJson1DescribeConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1395
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1396
|
+
var _c;
|
|
1397
|
+
return __generator(this, function (_d) {
|
|
1398
|
+
switch (_d.label) {
|
|
1399
|
+
case 0:
|
|
1400
|
+
_a = [__assign({}, output)];
|
|
1401
|
+
_c = {};
|
|
1402
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1403
|
+
case 1:
|
|
1404
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1405
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
+
_b = errorCode;
|
|
1407
|
+
switch (_b) {
|
|
1408
|
+
case "BadRequestException": return [3, 2];
|
|
1409
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1410
|
+
case "ForbiddenException": return [3, 4];
|
|
1411
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1412
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1413
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1414
|
+
case "NotFoundException": return [3, 8];
|
|
1415
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1416
|
+
}
|
|
1417
|
+
return [3, 10];
|
|
1418
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1419
|
+
case 3: throw _d.sent();
|
|
1420
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1421
|
+
case 5: throw _d.sent();
|
|
1422
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1423
|
+
case 7: throw _d.sent();
|
|
1424
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1425
|
+
case 9: throw _d.sent();
|
|
1426
|
+
case 10:
|
|
1427
|
+
parsedBody = parsedOutput.body;
|
|
1428
|
+
throwDefaultError({
|
|
1429
|
+
output: output,
|
|
1430
|
+
parsedBody: parsedBody,
|
|
1431
|
+
exceptionCtor: __BaseException,
|
|
1432
|
+
errorCode: errorCode,
|
|
1433
|
+
});
|
|
1434
|
+
_d.label = 11;
|
|
1435
|
+
case 11: return [2];
|
|
1436
|
+
}
|
|
1589
1437
|
});
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
errorCode,
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
};
|
|
1625
|
-
const map = __map;
|
|
1626
|
-
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1627
|
-
const contents = map({});
|
|
1628
|
-
const data = parsedOutput.body;
|
|
1629
|
-
if (data.errorAttribute != null) {
|
|
1630
|
-
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
1631
|
-
}
|
|
1632
|
-
if (data.message != null) {
|
|
1633
|
-
contents.Message = __expectString(data.message);
|
|
1634
|
-
}
|
|
1635
|
-
const exception = new BadRequestException({
|
|
1636
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1637
|
-
...contents,
|
|
1438
|
+
}); };
|
|
1439
|
+
export var deserializeAws_restJson1DescribeConfigurationRevisionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1440
|
+
var contents, data, _a, _b;
|
|
1441
|
+
return __generator(this, function (_c) {
|
|
1442
|
+
switch (_c.label) {
|
|
1443
|
+
case 0:
|
|
1444
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
|
+
return [2, deserializeAws_restJson1DescribeConfigurationRevisionCommandError(output, context)];
|
|
1446
|
+
}
|
|
1447
|
+
contents = map({
|
|
1448
|
+
$metadata: deserializeMetadata(output),
|
|
1449
|
+
});
|
|
1450
|
+
_a = __expectNonNull;
|
|
1451
|
+
_b = __expectObject;
|
|
1452
|
+
return [4, parseBody(output.body, context)];
|
|
1453
|
+
case 1:
|
|
1454
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1455
|
+
if (data.configurationId != null) {
|
|
1456
|
+
contents.ConfigurationId = __expectString(data.configurationId);
|
|
1457
|
+
}
|
|
1458
|
+
if (data.created != null) {
|
|
1459
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
1460
|
+
}
|
|
1461
|
+
if (data.data != null) {
|
|
1462
|
+
contents.Data = __expectString(data.data);
|
|
1463
|
+
}
|
|
1464
|
+
if (data.description != null) {
|
|
1465
|
+
contents.Description = __expectString(data.description);
|
|
1466
|
+
}
|
|
1467
|
+
return [2, contents];
|
|
1468
|
+
}
|
|
1638
1469
|
});
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1470
|
+
}); };
|
|
1471
|
+
var deserializeAws_restJson1DescribeConfigurationRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1472
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1473
|
+
var _c;
|
|
1474
|
+
return __generator(this, function (_d) {
|
|
1475
|
+
switch (_d.label) {
|
|
1476
|
+
case 0:
|
|
1477
|
+
_a = [__assign({}, output)];
|
|
1478
|
+
_c = {};
|
|
1479
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1480
|
+
case 1:
|
|
1481
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1482
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
|
+
_b = errorCode;
|
|
1484
|
+
switch (_b) {
|
|
1485
|
+
case "BadRequestException": return [3, 2];
|
|
1486
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1487
|
+
case "ForbiddenException": return [3, 4];
|
|
1488
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1489
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1490
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1491
|
+
case "NotFoundException": return [3, 8];
|
|
1492
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1493
|
+
}
|
|
1494
|
+
return [3, 10];
|
|
1495
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1496
|
+
case 3: throw _d.sent();
|
|
1497
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1498
|
+
case 5: throw _d.sent();
|
|
1499
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1500
|
+
case 7: throw _d.sent();
|
|
1501
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1502
|
+
case 9: throw _d.sent();
|
|
1503
|
+
case 10:
|
|
1504
|
+
parsedBody = parsedOutput.body;
|
|
1505
|
+
throwDefaultError({
|
|
1506
|
+
output: output,
|
|
1507
|
+
parsedBody: parsedBody,
|
|
1508
|
+
exceptionCtor: __BaseException,
|
|
1509
|
+
errorCode: errorCode,
|
|
1510
|
+
});
|
|
1511
|
+
_d.label = 11;
|
|
1512
|
+
case 11: return [2];
|
|
1513
|
+
}
|
|
1653
1514
|
});
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1515
|
+
}); };
|
|
1516
|
+
export var deserializeAws_restJson1DescribeUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1517
|
+
var contents, data, _a, _b;
|
|
1518
|
+
return __generator(this, function (_c) {
|
|
1519
|
+
switch (_c.label) {
|
|
1520
|
+
case 0:
|
|
1521
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1522
|
+
return [2, deserializeAws_restJson1DescribeUserCommandError(output, context)];
|
|
1523
|
+
}
|
|
1524
|
+
contents = map({
|
|
1525
|
+
$metadata: deserializeMetadata(output),
|
|
1526
|
+
});
|
|
1527
|
+
_a = __expectNonNull;
|
|
1528
|
+
_b = __expectObject;
|
|
1529
|
+
return [4, parseBody(output.body, context)];
|
|
1530
|
+
case 1:
|
|
1531
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1532
|
+
if (data.brokerId != null) {
|
|
1533
|
+
contents.BrokerId = __expectString(data.brokerId);
|
|
1534
|
+
}
|
|
1535
|
+
if (data.consoleAccess != null) {
|
|
1536
|
+
contents.ConsoleAccess = __expectBoolean(data.consoleAccess);
|
|
1537
|
+
}
|
|
1538
|
+
if (data.groups != null) {
|
|
1539
|
+
contents.Groups = deserializeAws_restJson1__listOf__string(data.groups, context);
|
|
1540
|
+
}
|
|
1541
|
+
if (data.pending != null) {
|
|
1542
|
+
contents.Pending = deserializeAws_restJson1UserPendingChanges(data.pending, context);
|
|
1543
|
+
}
|
|
1544
|
+
if (data.username != null) {
|
|
1545
|
+
contents.Username = __expectString(data.username);
|
|
1546
|
+
}
|
|
1547
|
+
return [2, contents];
|
|
1548
|
+
}
|
|
1668
1549
|
});
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1550
|
+
}); };
|
|
1551
|
+
var deserializeAws_restJson1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1552
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1553
|
+
var _c;
|
|
1554
|
+
return __generator(this, function (_d) {
|
|
1555
|
+
switch (_d.label) {
|
|
1556
|
+
case 0:
|
|
1557
|
+
_a = [__assign({}, output)];
|
|
1558
|
+
_c = {};
|
|
1559
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1560
|
+
case 1:
|
|
1561
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1562
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
+
_b = errorCode;
|
|
1564
|
+
switch (_b) {
|
|
1565
|
+
case "BadRequestException": return [3, 2];
|
|
1566
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1567
|
+
case "ForbiddenException": return [3, 4];
|
|
1568
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1569
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1570
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1571
|
+
case "NotFoundException": return [3, 8];
|
|
1572
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1573
|
+
}
|
|
1574
|
+
return [3, 10];
|
|
1575
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1576
|
+
case 3: throw _d.sent();
|
|
1577
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1578
|
+
case 5: throw _d.sent();
|
|
1579
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1580
|
+
case 7: throw _d.sent();
|
|
1581
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1582
|
+
case 9: throw _d.sent();
|
|
1583
|
+
case 10:
|
|
1584
|
+
parsedBody = parsedOutput.body;
|
|
1585
|
+
throwDefaultError({
|
|
1586
|
+
output: output,
|
|
1587
|
+
parsedBody: parsedBody,
|
|
1588
|
+
exceptionCtor: __BaseException,
|
|
1589
|
+
errorCode: errorCode,
|
|
1590
|
+
});
|
|
1591
|
+
_d.label = 11;
|
|
1592
|
+
case 11: return [2];
|
|
1593
|
+
}
|
|
1683
1594
|
});
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1595
|
+
}); };
|
|
1596
|
+
export var deserializeAws_restJson1ListBrokersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1597
|
+
var contents, data, _a, _b;
|
|
1598
|
+
return __generator(this, function (_c) {
|
|
1599
|
+
switch (_c.label) {
|
|
1600
|
+
case 0:
|
|
1601
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1602
|
+
return [2, deserializeAws_restJson1ListBrokersCommandError(output, context)];
|
|
1603
|
+
}
|
|
1604
|
+
contents = map({
|
|
1605
|
+
$metadata: deserializeMetadata(output),
|
|
1606
|
+
});
|
|
1607
|
+
_a = __expectNonNull;
|
|
1608
|
+
_b = __expectObject;
|
|
1609
|
+
return [4, parseBody(output.body, context)];
|
|
1610
|
+
case 1:
|
|
1611
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1612
|
+
if (data.brokerSummaries != null) {
|
|
1613
|
+
contents.BrokerSummaries = deserializeAws_restJson1__listOfBrokerSummary(data.brokerSummaries, context);
|
|
1614
|
+
}
|
|
1615
|
+
if (data.nextToken != null) {
|
|
1616
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1617
|
+
}
|
|
1618
|
+
return [2, contents];
|
|
1619
|
+
}
|
|
1698
1620
|
});
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1621
|
+
}); };
|
|
1622
|
+
var deserializeAws_restJson1ListBrokersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1623
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1624
|
+
var _c;
|
|
1625
|
+
return __generator(this, function (_d) {
|
|
1626
|
+
switch (_d.label) {
|
|
1627
|
+
case 0:
|
|
1628
|
+
_a = [__assign({}, output)];
|
|
1629
|
+
_c = {};
|
|
1630
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1631
|
+
case 1:
|
|
1632
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1633
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
|
+
_b = errorCode;
|
|
1635
|
+
switch (_b) {
|
|
1636
|
+
case "BadRequestException": return [3, 2];
|
|
1637
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1638
|
+
case "ForbiddenException": return [3, 4];
|
|
1639
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1640
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1641
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1642
|
+
}
|
|
1643
|
+
return [3, 8];
|
|
1644
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1645
|
+
case 3: throw _d.sent();
|
|
1646
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1647
|
+
case 5: throw _d.sent();
|
|
1648
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1649
|
+
case 7: throw _d.sent();
|
|
1650
|
+
case 8:
|
|
1651
|
+
parsedBody = parsedOutput.body;
|
|
1652
|
+
throwDefaultError({
|
|
1653
|
+
output: output,
|
|
1654
|
+
parsedBody: parsedBody,
|
|
1655
|
+
exceptionCtor: __BaseException,
|
|
1656
|
+
errorCode: errorCode,
|
|
1657
|
+
});
|
|
1658
|
+
_d.label = 9;
|
|
1659
|
+
case 9: return [2];
|
|
1660
|
+
}
|
|
1713
1661
|
});
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1662
|
+
}); };
|
|
1663
|
+
export var deserializeAws_restJson1ListConfigurationRevisionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1664
|
+
var contents, data, _a, _b;
|
|
1665
|
+
return __generator(this, function (_c) {
|
|
1666
|
+
switch (_c.label) {
|
|
1667
|
+
case 0:
|
|
1668
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1669
|
+
return [2, deserializeAws_restJson1ListConfigurationRevisionsCommandError(output, context)];
|
|
1670
|
+
}
|
|
1671
|
+
contents = map({
|
|
1672
|
+
$metadata: deserializeMetadata(output),
|
|
1673
|
+
});
|
|
1674
|
+
_a = __expectNonNull;
|
|
1675
|
+
_b = __expectObject;
|
|
1676
|
+
return [4, parseBody(output.body, context)];
|
|
1677
|
+
case 1:
|
|
1678
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1679
|
+
if (data.configurationId != null) {
|
|
1680
|
+
contents.ConfigurationId = __expectString(data.configurationId);
|
|
1681
|
+
}
|
|
1682
|
+
if (data.maxResults != null) {
|
|
1683
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1684
|
+
}
|
|
1685
|
+
if (data.nextToken != null) {
|
|
1686
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1687
|
+
}
|
|
1688
|
+
if (data.revisions != null) {
|
|
1689
|
+
contents.Revisions = deserializeAws_restJson1__listOfConfigurationRevision(data.revisions, context);
|
|
1690
|
+
}
|
|
1691
|
+
return [2, contents];
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
}); };
|
|
1695
|
+
var deserializeAws_restJson1ListConfigurationRevisionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1696
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1697
|
+
var _c;
|
|
1698
|
+
return __generator(this, function (_d) {
|
|
1699
|
+
switch (_d.label) {
|
|
1700
|
+
case 0:
|
|
1701
|
+
_a = [__assign({}, output)];
|
|
1702
|
+
_c = {};
|
|
1703
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1704
|
+
case 1:
|
|
1705
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1706
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1707
|
+
_b = errorCode;
|
|
1708
|
+
switch (_b) {
|
|
1709
|
+
case "BadRequestException": return [3, 2];
|
|
1710
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1711
|
+
case "ForbiddenException": return [3, 4];
|
|
1712
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1713
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1714
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1715
|
+
case "NotFoundException": return [3, 8];
|
|
1716
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1717
|
+
}
|
|
1718
|
+
return [3, 10];
|
|
1719
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1720
|
+
case 3: throw _d.sent();
|
|
1721
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1722
|
+
case 5: throw _d.sent();
|
|
1723
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1724
|
+
case 7: throw _d.sent();
|
|
1725
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1726
|
+
case 9: throw _d.sent();
|
|
1727
|
+
case 10:
|
|
1728
|
+
parsedBody = parsedOutput.body;
|
|
1729
|
+
throwDefaultError({
|
|
1730
|
+
output: output,
|
|
1731
|
+
parsedBody: parsedBody,
|
|
1732
|
+
exceptionCtor: __BaseException,
|
|
1733
|
+
errorCode: errorCode,
|
|
1734
|
+
});
|
|
1735
|
+
_d.label = 11;
|
|
1736
|
+
case 11: return [2];
|
|
1737
|
+
}
|
|
1738
|
+
});
|
|
1739
|
+
}); };
|
|
1740
|
+
export var deserializeAws_restJson1ListConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1741
|
+
var contents, data, _a, _b;
|
|
1742
|
+
return __generator(this, function (_c) {
|
|
1743
|
+
switch (_c.label) {
|
|
1744
|
+
case 0:
|
|
1745
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
|
+
return [2, deserializeAws_restJson1ListConfigurationsCommandError(output, context)];
|
|
1747
|
+
}
|
|
1748
|
+
contents = map({
|
|
1749
|
+
$metadata: deserializeMetadata(output),
|
|
1750
|
+
});
|
|
1751
|
+
_a = __expectNonNull;
|
|
1752
|
+
_b = __expectObject;
|
|
1753
|
+
return [4, parseBody(output.body, context)];
|
|
1754
|
+
case 1:
|
|
1755
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1756
|
+
if (data.configurations != null) {
|
|
1757
|
+
contents.Configurations = deserializeAws_restJson1__listOfConfiguration(data.configurations, context);
|
|
1758
|
+
}
|
|
1759
|
+
if (data.maxResults != null) {
|
|
1760
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1761
|
+
}
|
|
1762
|
+
if (data.nextToken != null) {
|
|
1763
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1764
|
+
}
|
|
1765
|
+
return [2, contents];
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
}); };
|
|
1769
|
+
var deserializeAws_restJson1ListConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1770
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1771
|
+
var _c;
|
|
1772
|
+
return __generator(this, function (_d) {
|
|
1773
|
+
switch (_d.label) {
|
|
1774
|
+
case 0:
|
|
1775
|
+
_a = [__assign({}, output)];
|
|
1776
|
+
_c = {};
|
|
1777
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1778
|
+
case 1:
|
|
1779
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1780
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
+
_b = errorCode;
|
|
1782
|
+
switch (_b) {
|
|
1783
|
+
case "BadRequestException": return [3, 2];
|
|
1784
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1785
|
+
case "ForbiddenException": return [3, 4];
|
|
1786
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1787
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1788
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1789
|
+
}
|
|
1790
|
+
return [3, 8];
|
|
1791
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1792
|
+
case 3: throw _d.sent();
|
|
1793
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1794
|
+
case 5: throw _d.sent();
|
|
1795
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1796
|
+
case 7: throw _d.sent();
|
|
1797
|
+
case 8:
|
|
1798
|
+
parsedBody = parsedOutput.body;
|
|
1799
|
+
throwDefaultError({
|
|
1800
|
+
output: output,
|
|
1801
|
+
parsedBody: parsedBody,
|
|
1802
|
+
exceptionCtor: __BaseException,
|
|
1803
|
+
errorCode: errorCode,
|
|
1804
|
+
});
|
|
1805
|
+
_d.label = 9;
|
|
1806
|
+
case 9: return [2];
|
|
1807
|
+
}
|
|
1808
|
+
});
|
|
1809
|
+
}); };
|
|
1810
|
+
export var deserializeAws_restJson1ListTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1811
|
+
var contents, data, _a, _b;
|
|
1812
|
+
return __generator(this, function (_c) {
|
|
1813
|
+
switch (_c.label) {
|
|
1814
|
+
case 0:
|
|
1815
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1816
|
+
return [2, deserializeAws_restJson1ListTagsCommandError(output, context)];
|
|
1817
|
+
}
|
|
1818
|
+
contents = map({
|
|
1819
|
+
$metadata: deserializeMetadata(output),
|
|
1820
|
+
});
|
|
1821
|
+
_a = __expectNonNull;
|
|
1822
|
+
_b = __expectObject;
|
|
1823
|
+
return [4, parseBody(output.body, context)];
|
|
1824
|
+
case 1:
|
|
1825
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1826
|
+
if (data.tags != null) {
|
|
1827
|
+
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1828
|
+
}
|
|
1829
|
+
return [2, contents];
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
}); };
|
|
1833
|
+
var deserializeAws_restJson1ListTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1835
|
+
var _c;
|
|
1836
|
+
return __generator(this, function (_d) {
|
|
1837
|
+
switch (_d.label) {
|
|
1838
|
+
case 0:
|
|
1839
|
+
_a = [__assign({}, output)];
|
|
1840
|
+
_c = {};
|
|
1841
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1842
|
+
case 1:
|
|
1843
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1844
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
+
_b = errorCode;
|
|
1846
|
+
switch (_b) {
|
|
1847
|
+
case "BadRequestException": return [3, 2];
|
|
1848
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1849
|
+
case "ForbiddenException": return [3, 4];
|
|
1850
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1851
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1852
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1853
|
+
case "NotFoundException": return [3, 8];
|
|
1854
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1855
|
+
}
|
|
1856
|
+
return [3, 10];
|
|
1857
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1858
|
+
case 3: throw _d.sent();
|
|
1859
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1860
|
+
case 5: throw _d.sent();
|
|
1861
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1862
|
+
case 7: throw _d.sent();
|
|
1863
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 9: throw _d.sent();
|
|
1865
|
+
case 10:
|
|
1866
|
+
parsedBody = parsedOutput.body;
|
|
1867
|
+
throwDefaultError({
|
|
1868
|
+
output: output,
|
|
1869
|
+
parsedBody: parsedBody,
|
|
1870
|
+
exceptionCtor: __BaseException,
|
|
1871
|
+
errorCode: errorCode,
|
|
1872
|
+
});
|
|
1873
|
+
_d.label = 11;
|
|
1874
|
+
case 11: return [2];
|
|
1875
|
+
}
|
|
1876
|
+
});
|
|
1877
|
+
}); };
|
|
1878
|
+
export var deserializeAws_restJson1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1879
|
+
var contents, data, _a, _b;
|
|
1880
|
+
return __generator(this, function (_c) {
|
|
1881
|
+
switch (_c.label) {
|
|
1882
|
+
case 0:
|
|
1883
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1884
|
+
return [2, deserializeAws_restJson1ListUsersCommandError(output, context)];
|
|
1885
|
+
}
|
|
1886
|
+
contents = map({
|
|
1887
|
+
$metadata: deserializeMetadata(output),
|
|
1888
|
+
});
|
|
1889
|
+
_a = __expectNonNull;
|
|
1890
|
+
_b = __expectObject;
|
|
1891
|
+
return [4, parseBody(output.body, context)];
|
|
1892
|
+
case 1:
|
|
1893
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1894
|
+
if (data.brokerId != null) {
|
|
1895
|
+
contents.BrokerId = __expectString(data.brokerId);
|
|
1896
|
+
}
|
|
1897
|
+
if (data.maxResults != null) {
|
|
1898
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1899
|
+
}
|
|
1900
|
+
if (data.nextToken != null) {
|
|
1901
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1902
|
+
}
|
|
1903
|
+
if (data.users != null) {
|
|
1904
|
+
contents.Users = deserializeAws_restJson1__listOfUserSummary(data.users, context);
|
|
1905
|
+
}
|
|
1906
|
+
return [2, contents];
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
}); };
|
|
1910
|
+
var deserializeAws_restJson1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1911
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1912
|
+
var _c;
|
|
1913
|
+
return __generator(this, function (_d) {
|
|
1914
|
+
switch (_d.label) {
|
|
1915
|
+
case 0:
|
|
1916
|
+
_a = [__assign({}, output)];
|
|
1917
|
+
_c = {};
|
|
1918
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1919
|
+
case 1:
|
|
1920
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1921
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
|
+
_b = errorCode;
|
|
1923
|
+
switch (_b) {
|
|
1924
|
+
case "BadRequestException": return [3, 2];
|
|
1925
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1926
|
+
case "ForbiddenException": return [3, 4];
|
|
1927
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1928
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1929
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1930
|
+
case "NotFoundException": return [3, 8];
|
|
1931
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1932
|
+
}
|
|
1933
|
+
return [3, 10];
|
|
1934
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1935
|
+
case 3: throw _d.sent();
|
|
1936
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1937
|
+
case 5: throw _d.sent();
|
|
1938
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1939
|
+
case 7: throw _d.sent();
|
|
1940
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1941
|
+
case 9: throw _d.sent();
|
|
1942
|
+
case 10:
|
|
1943
|
+
parsedBody = parsedOutput.body;
|
|
1944
|
+
throwDefaultError({
|
|
1945
|
+
output: output,
|
|
1946
|
+
parsedBody: parsedBody,
|
|
1947
|
+
exceptionCtor: __BaseException,
|
|
1948
|
+
errorCode: errorCode,
|
|
1949
|
+
});
|
|
1950
|
+
_d.label = 11;
|
|
1951
|
+
case 11: return [2];
|
|
1952
|
+
}
|
|
1953
|
+
});
|
|
1954
|
+
}); };
|
|
1955
|
+
export var deserializeAws_restJson1RebootBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1956
|
+
var contents;
|
|
1957
|
+
return __generator(this, function (_a) {
|
|
1958
|
+
switch (_a.label) {
|
|
1959
|
+
case 0:
|
|
1960
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1961
|
+
return [2, deserializeAws_restJson1RebootBrokerCommandError(output, context)];
|
|
1962
|
+
}
|
|
1963
|
+
contents = map({
|
|
1964
|
+
$metadata: deserializeMetadata(output),
|
|
1965
|
+
});
|
|
1966
|
+
return [4, collectBody(output.body, context)];
|
|
1967
|
+
case 1:
|
|
1968
|
+
_a.sent();
|
|
1969
|
+
return [2, contents];
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
}); };
|
|
1973
|
+
var deserializeAws_restJson1RebootBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1974
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1975
|
+
var _c;
|
|
1976
|
+
return __generator(this, function (_d) {
|
|
1977
|
+
switch (_d.label) {
|
|
1978
|
+
case 0:
|
|
1979
|
+
_a = [__assign({}, output)];
|
|
1980
|
+
_c = {};
|
|
1981
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1982
|
+
case 1:
|
|
1983
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1984
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
|
+
_b = errorCode;
|
|
1986
|
+
switch (_b) {
|
|
1987
|
+
case "BadRequestException": return [3, 2];
|
|
1988
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
1989
|
+
case "ForbiddenException": return [3, 4];
|
|
1990
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 4];
|
|
1991
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1992
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 6];
|
|
1993
|
+
case "NotFoundException": return [3, 8];
|
|
1994
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 8];
|
|
1995
|
+
}
|
|
1996
|
+
return [3, 10];
|
|
1997
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1998
|
+
case 3: throw _d.sent();
|
|
1999
|
+
case 4: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2000
|
+
case 5: throw _d.sent();
|
|
2001
|
+
case 6: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2002
|
+
case 7: throw _d.sent();
|
|
2003
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2004
|
+
case 9: throw _d.sent();
|
|
2005
|
+
case 10:
|
|
2006
|
+
parsedBody = parsedOutput.body;
|
|
2007
|
+
throwDefaultError({
|
|
2008
|
+
output: output,
|
|
2009
|
+
parsedBody: parsedBody,
|
|
2010
|
+
exceptionCtor: __BaseException,
|
|
2011
|
+
errorCode: errorCode,
|
|
2012
|
+
});
|
|
2013
|
+
_d.label = 11;
|
|
2014
|
+
case 11: return [2];
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
}); };
|
|
2018
|
+
export var deserializeAws_restJson1UpdateBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2019
|
+
var contents, data, _a, _b;
|
|
2020
|
+
return __generator(this, function (_c) {
|
|
2021
|
+
switch (_c.label) {
|
|
2022
|
+
case 0:
|
|
2023
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2024
|
+
return [2, deserializeAws_restJson1UpdateBrokerCommandError(output, context)];
|
|
2025
|
+
}
|
|
2026
|
+
contents = map({
|
|
2027
|
+
$metadata: deserializeMetadata(output),
|
|
2028
|
+
});
|
|
2029
|
+
_a = __expectNonNull;
|
|
2030
|
+
_b = __expectObject;
|
|
2031
|
+
return [4, parseBody(output.body, context)];
|
|
2032
|
+
case 1:
|
|
2033
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2034
|
+
if (data.authenticationStrategy != null) {
|
|
2035
|
+
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
2036
|
+
}
|
|
2037
|
+
if (data.autoMinorVersionUpgrade != null) {
|
|
2038
|
+
contents.AutoMinorVersionUpgrade = __expectBoolean(data.autoMinorVersionUpgrade);
|
|
2039
|
+
}
|
|
2040
|
+
if (data.brokerId != null) {
|
|
2041
|
+
contents.BrokerId = __expectString(data.brokerId);
|
|
2042
|
+
}
|
|
2043
|
+
if (data.configuration != null) {
|
|
2044
|
+
contents.Configuration = deserializeAws_restJson1ConfigurationId(data.configuration, context);
|
|
2045
|
+
}
|
|
2046
|
+
if (data.engineVersion != null) {
|
|
2047
|
+
contents.EngineVersion = __expectString(data.engineVersion);
|
|
2048
|
+
}
|
|
2049
|
+
if (data.hostInstanceType != null) {
|
|
2050
|
+
contents.HostInstanceType = __expectString(data.hostInstanceType);
|
|
2051
|
+
}
|
|
2052
|
+
if (data.ldapServerMetadata != null) {
|
|
2053
|
+
contents.LdapServerMetadata = deserializeAws_restJson1LdapServerMetadataOutput(data.ldapServerMetadata, context);
|
|
2054
|
+
}
|
|
2055
|
+
if (data.logs != null) {
|
|
2056
|
+
contents.Logs = deserializeAws_restJson1Logs(data.logs, context);
|
|
2057
|
+
}
|
|
2058
|
+
if (data.maintenanceWindowStartTime != null) {
|
|
2059
|
+
contents.MaintenanceWindowStartTime = deserializeAws_restJson1WeeklyStartTime(data.maintenanceWindowStartTime, context);
|
|
2060
|
+
}
|
|
2061
|
+
if (data.securityGroups != null) {
|
|
2062
|
+
contents.SecurityGroups = deserializeAws_restJson1__listOf__string(data.securityGroups, context);
|
|
2063
|
+
}
|
|
2064
|
+
return [2, contents];
|
|
2065
|
+
}
|
|
2066
|
+
});
|
|
2067
|
+
}); };
|
|
2068
|
+
var deserializeAws_restJson1UpdateBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2069
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2070
|
+
var _c;
|
|
2071
|
+
return __generator(this, function (_d) {
|
|
2072
|
+
switch (_d.label) {
|
|
2073
|
+
case 0:
|
|
2074
|
+
_a = [__assign({}, output)];
|
|
2075
|
+
_c = {};
|
|
2076
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2077
|
+
case 1:
|
|
2078
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2079
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
+
_b = errorCode;
|
|
2081
|
+
switch (_b) {
|
|
2082
|
+
case "BadRequestException": return [3, 2];
|
|
2083
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
2084
|
+
case "ConflictException": return [3, 4];
|
|
2085
|
+
case "com.amazonaws.mq#ConflictException": return [3, 4];
|
|
2086
|
+
case "ForbiddenException": return [3, 6];
|
|
2087
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 6];
|
|
2088
|
+
case "InternalServerErrorException": return [3, 8];
|
|
2089
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
2090
|
+
case "NotFoundException": return [3, 10];
|
|
2091
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
2092
|
+
}
|
|
2093
|
+
return [3, 12];
|
|
2094
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2095
|
+
case 3: throw _d.sent();
|
|
2096
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2097
|
+
case 5: throw _d.sent();
|
|
2098
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2099
|
+
case 7: throw _d.sent();
|
|
2100
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2101
|
+
case 9: throw _d.sent();
|
|
2102
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2103
|
+
case 11: throw _d.sent();
|
|
2104
|
+
case 12:
|
|
2105
|
+
parsedBody = parsedOutput.body;
|
|
2106
|
+
throwDefaultError({
|
|
2107
|
+
output: output,
|
|
2108
|
+
parsedBody: parsedBody,
|
|
2109
|
+
exceptionCtor: __BaseException,
|
|
2110
|
+
errorCode: errorCode,
|
|
2111
|
+
});
|
|
2112
|
+
_d.label = 13;
|
|
2113
|
+
case 13: return [2];
|
|
2114
|
+
}
|
|
2115
|
+
});
|
|
2116
|
+
}); };
|
|
2117
|
+
export var deserializeAws_restJson1UpdateConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2118
|
+
var contents, data, _a, _b;
|
|
2119
|
+
return __generator(this, function (_c) {
|
|
2120
|
+
switch (_c.label) {
|
|
2121
|
+
case 0:
|
|
2122
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2123
|
+
return [2, deserializeAws_restJson1UpdateConfigurationCommandError(output, context)];
|
|
2124
|
+
}
|
|
2125
|
+
contents = map({
|
|
2126
|
+
$metadata: deserializeMetadata(output),
|
|
2127
|
+
});
|
|
2128
|
+
_a = __expectNonNull;
|
|
2129
|
+
_b = __expectObject;
|
|
2130
|
+
return [4, parseBody(output.body, context)];
|
|
2131
|
+
case 1:
|
|
2132
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2133
|
+
if (data.arn != null) {
|
|
2134
|
+
contents.Arn = __expectString(data.arn);
|
|
2135
|
+
}
|
|
2136
|
+
if (data.created != null) {
|
|
2137
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
2138
|
+
}
|
|
2139
|
+
if (data.id != null) {
|
|
2140
|
+
contents.Id = __expectString(data.id);
|
|
2141
|
+
}
|
|
2142
|
+
if (data.latestRevision != null) {
|
|
2143
|
+
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
2144
|
+
}
|
|
2145
|
+
if (data.name != null) {
|
|
2146
|
+
contents.Name = __expectString(data.name);
|
|
2147
|
+
}
|
|
2148
|
+
if (data.warnings != null) {
|
|
2149
|
+
contents.Warnings = deserializeAws_restJson1__listOfSanitizationWarning(data.warnings, context);
|
|
2150
|
+
}
|
|
2151
|
+
return [2, contents];
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2154
|
+
}); };
|
|
2155
|
+
var deserializeAws_restJson1UpdateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2156
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2157
|
+
var _c;
|
|
2158
|
+
return __generator(this, function (_d) {
|
|
2159
|
+
switch (_d.label) {
|
|
2160
|
+
case 0:
|
|
2161
|
+
_a = [__assign({}, output)];
|
|
2162
|
+
_c = {};
|
|
2163
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2164
|
+
case 1:
|
|
2165
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2166
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2167
|
+
_b = errorCode;
|
|
2168
|
+
switch (_b) {
|
|
2169
|
+
case "BadRequestException": return [3, 2];
|
|
2170
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
2171
|
+
case "ConflictException": return [3, 4];
|
|
2172
|
+
case "com.amazonaws.mq#ConflictException": return [3, 4];
|
|
2173
|
+
case "ForbiddenException": return [3, 6];
|
|
2174
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 6];
|
|
2175
|
+
case "InternalServerErrorException": return [3, 8];
|
|
2176
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
2177
|
+
case "NotFoundException": return [3, 10];
|
|
2178
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
2179
|
+
}
|
|
2180
|
+
return [3, 12];
|
|
2181
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2182
|
+
case 3: throw _d.sent();
|
|
2183
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2184
|
+
case 5: throw _d.sent();
|
|
2185
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2186
|
+
case 7: throw _d.sent();
|
|
2187
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2188
|
+
case 9: throw _d.sent();
|
|
2189
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2190
|
+
case 11: throw _d.sent();
|
|
2191
|
+
case 12:
|
|
2192
|
+
parsedBody = parsedOutput.body;
|
|
2193
|
+
throwDefaultError({
|
|
2194
|
+
output: output,
|
|
2195
|
+
parsedBody: parsedBody,
|
|
2196
|
+
exceptionCtor: __BaseException,
|
|
2197
|
+
errorCode: errorCode,
|
|
2198
|
+
});
|
|
2199
|
+
_d.label = 13;
|
|
2200
|
+
case 13: return [2];
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
2203
|
+
}); };
|
|
2204
|
+
export var deserializeAws_restJson1UpdateUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2205
|
+
var contents;
|
|
2206
|
+
return __generator(this, function (_a) {
|
|
2207
|
+
switch (_a.label) {
|
|
2208
|
+
case 0:
|
|
2209
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2210
|
+
return [2, deserializeAws_restJson1UpdateUserCommandError(output, context)];
|
|
2211
|
+
}
|
|
2212
|
+
contents = map({
|
|
2213
|
+
$metadata: deserializeMetadata(output),
|
|
2214
|
+
});
|
|
2215
|
+
return [4, collectBody(output.body, context)];
|
|
2216
|
+
case 1:
|
|
2217
|
+
_a.sent();
|
|
2218
|
+
return [2, contents];
|
|
2219
|
+
}
|
|
2220
|
+
});
|
|
2221
|
+
}); };
|
|
2222
|
+
var deserializeAws_restJson1UpdateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2223
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2224
|
+
var _c;
|
|
2225
|
+
return __generator(this, function (_d) {
|
|
2226
|
+
switch (_d.label) {
|
|
2227
|
+
case 0:
|
|
2228
|
+
_a = [__assign({}, output)];
|
|
2229
|
+
_c = {};
|
|
2230
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2231
|
+
case 1:
|
|
2232
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2233
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
|
+
_b = errorCode;
|
|
2235
|
+
switch (_b) {
|
|
2236
|
+
case "BadRequestException": return [3, 2];
|
|
2237
|
+
case "com.amazonaws.mq#BadRequestException": return [3, 2];
|
|
2238
|
+
case "ConflictException": return [3, 4];
|
|
2239
|
+
case "com.amazonaws.mq#ConflictException": return [3, 4];
|
|
2240
|
+
case "ForbiddenException": return [3, 6];
|
|
2241
|
+
case "com.amazonaws.mq#ForbiddenException": return [3, 6];
|
|
2242
|
+
case "InternalServerErrorException": return [3, 8];
|
|
2243
|
+
case "com.amazonaws.mq#InternalServerErrorException": return [3, 8];
|
|
2244
|
+
case "NotFoundException": return [3, 10];
|
|
2245
|
+
case "com.amazonaws.mq#NotFoundException": return [3, 10];
|
|
2246
|
+
}
|
|
2247
|
+
return [3, 12];
|
|
2248
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2249
|
+
case 3: throw _d.sent();
|
|
2250
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2251
|
+
case 5: throw _d.sent();
|
|
2252
|
+
case 6: return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2253
|
+
case 7: throw _d.sent();
|
|
2254
|
+
case 8: return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2255
|
+
case 9: throw _d.sent();
|
|
2256
|
+
case 10: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2257
|
+
case 11: throw _d.sent();
|
|
2258
|
+
case 12:
|
|
2259
|
+
parsedBody = parsedOutput.body;
|
|
2260
|
+
throwDefaultError({
|
|
2261
|
+
output: output,
|
|
2262
|
+
parsedBody: parsedBody,
|
|
2263
|
+
exceptionCtor: __BaseException,
|
|
2264
|
+
errorCode: errorCode,
|
|
2265
|
+
});
|
|
2266
|
+
_d.label = 13;
|
|
2267
|
+
case 13: return [2];
|
|
2268
|
+
}
|
|
2269
|
+
});
|
|
2270
|
+
}); };
|
|
2271
|
+
var map = __map;
|
|
2272
|
+
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2273
|
+
var contents, data, exception;
|
|
2274
|
+
return __generator(this, function (_a) {
|
|
2275
|
+
contents = map({});
|
|
2276
|
+
data = parsedOutput.body;
|
|
2277
|
+
if (data.errorAttribute != null) {
|
|
2278
|
+
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
2279
|
+
}
|
|
2280
|
+
if (data.message != null) {
|
|
2281
|
+
contents.Message = __expectString(data.message);
|
|
2282
|
+
}
|
|
2283
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2284
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2285
|
+
});
|
|
2286
|
+
}); };
|
|
2287
|
+
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2288
|
+
var contents, data, exception;
|
|
2289
|
+
return __generator(this, function (_a) {
|
|
2290
|
+
contents = map({});
|
|
2291
|
+
data = parsedOutput.body;
|
|
2292
|
+
if (data.errorAttribute != null) {
|
|
2293
|
+
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
2294
|
+
}
|
|
2295
|
+
if (data.message != null) {
|
|
2296
|
+
contents.Message = __expectString(data.message);
|
|
2297
|
+
}
|
|
2298
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2299
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2300
|
+
});
|
|
2301
|
+
}); };
|
|
2302
|
+
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2303
|
+
var contents, data, exception;
|
|
2304
|
+
return __generator(this, function (_a) {
|
|
2305
|
+
contents = map({});
|
|
2306
|
+
data = parsedOutput.body;
|
|
2307
|
+
if (data.errorAttribute != null) {
|
|
2308
|
+
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
2309
|
+
}
|
|
2310
|
+
if (data.message != null) {
|
|
2311
|
+
contents.Message = __expectString(data.message);
|
|
2312
|
+
}
|
|
2313
|
+
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2314
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2315
|
+
});
|
|
2316
|
+
}); };
|
|
2317
|
+
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2318
|
+
var contents, data, exception;
|
|
2319
|
+
return __generator(this, function (_a) {
|
|
2320
|
+
contents = map({});
|
|
2321
|
+
data = parsedOutput.body;
|
|
2322
|
+
if (data.errorAttribute != null) {
|
|
2323
|
+
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
2324
|
+
}
|
|
2325
|
+
if (data.message != null) {
|
|
2326
|
+
contents.Message = __expectString(data.message);
|
|
2327
|
+
}
|
|
2328
|
+
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2329
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2330
|
+
});
|
|
2331
|
+
}); };
|
|
2332
|
+
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2333
|
+
var contents, data, exception;
|
|
2334
|
+
return __generator(this, function (_a) {
|
|
2335
|
+
contents = map({});
|
|
2336
|
+
data = parsedOutput.body;
|
|
2337
|
+
if (data.errorAttribute != null) {
|
|
2338
|
+
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
2339
|
+
}
|
|
2340
|
+
if (data.message != null) {
|
|
2341
|
+
contents.Message = __expectString(data.message);
|
|
2342
|
+
}
|
|
2343
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2344
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2345
|
+
});
|
|
2346
|
+
}); };
|
|
2347
|
+
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2348
|
+
var contents, data, exception;
|
|
2349
|
+
return __generator(this, function (_a) {
|
|
2350
|
+
contents = map({});
|
|
2351
|
+
data = parsedOutput.body;
|
|
2352
|
+
if (data.errorAttribute != null) {
|
|
2353
|
+
contents.ErrorAttribute = __expectString(data.errorAttribute);
|
|
2354
|
+
}
|
|
2355
|
+
if (data.message != null) {
|
|
2356
|
+
contents.Message = __expectString(data.message);
|
|
2357
|
+
}
|
|
2358
|
+
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2359
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2360
|
+
});
|
|
2361
|
+
}); };
|
|
2362
|
+
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
1717
2363
|
return input
|
|
1718
|
-
.filter((e)
|
|
1719
|
-
.map((entry)
|
|
2364
|
+
.filter(function (e) { return e != null; })
|
|
2365
|
+
.map(function (entry) {
|
|
1720
2366
|
return entry;
|
|
1721
2367
|
});
|
|
1722
2368
|
};
|
|
1723
|
-
|
|
2369
|
+
var serializeAws_restJson1__listOfUser = function (input, context) {
|
|
1724
2370
|
return input
|
|
1725
|
-
.filter((e)
|
|
1726
|
-
.map((entry)
|
|
2371
|
+
.filter(function (e) { return e != null; })
|
|
2372
|
+
.map(function (entry) {
|
|
1727
2373
|
return serializeAws_restJson1User(entry, context);
|
|
1728
2374
|
});
|
|
1729
2375
|
};
|
|
1730
|
-
|
|
1731
|
-
return Object.entries(input).reduce((acc,
|
|
2376
|
+
var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
2377
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2378
|
+
var _b;
|
|
2379
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1732
2380
|
if (value === null) {
|
|
1733
2381
|
return acc;
|
|
1734
2382
|
}
|
|
1735
|
-
return {
|
|
1736
|
-
...acc,
|
|
1737
|
-
[key]: value,
|
|
1738
|
-
};
|
|
2383
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1739
2384
|
}, {});
|
|
1740
2385
|
};
|
|
1741
|
-
|
|
1742
|
-
return {
|
|
1743
|
-
...(input.Id != null && { id: input.Id }),
|
|
1744
|
-
...(input.Revision != null && { revision: input.Revision }),
|
|
1745
|
-
};
|
|
2386
|
+
var serializeAws_restJson1ConfigurationId = function (input, context) {
|
|
2387
|
+
return __assign(__assign({}, (input.Id != null && { id: input.Id })), (input.Revision != null && { revision: input.Revision }));
|
|
1746
2388
|
};
|
|
1747
|
-
|
|
1748
|
-
return {
|
|
1749
|
-
...(input.KmsKeyId != null && { kmsKeyId: input.KmsKeyId }),
|
|
1750
|
-
...(input.UseAwsOwnedKey != null && { useAwsOwnedKey: input.UseAwsOwnedKey }),
|
|
1751
|
-
};
|
|
2389
|
+
var serializeAws_restJson1EncryptionOptions = function (input, context) {
|
|
2390
|
+
return __assign(__assign({}, (input.KmsKeyId != null && { kmsKeyId: input.KmsKeyId })), (input.UseAwsOwnedKey != null && { useAwsOwnedKey: input.UseAwsOwnedKey }));
|
|
1752
2391
|
};
|
|
1753
|
-
|
|
1754
|
-
return {
|
|
1755
|
-
...(input.Hosts != null && { hosts: serializeAws_restJson1__listOf__string(input.Hosts, context) }),
|
|
1756
|
-
...(input.RoleBase != null && { roleBase: input.RoleBase }),
|
|
1757
|
-
...(input.RoleName != null && { roleName: input.RoleName }),
|
|
1758
|
-
...(input.RoleSearchMatching != null && { roleSearchMatching: input.RoleSearchMatching }),
|
|
1759
|
-
...(input.RoleSearchSubtree != null && { roleSearchSubtree: input.RoleSearchSubtree }),
|
|
1760
|
-
...(input.ServiceAccountPassword != null && { serviceAccountPassword: input.ServiceAccountPassword }),
|
|
1761
|
-
...(input.ServiceAccountUsername != null && { serviceAccountUsername: input.ServiceAccountUsername }),
|
|
1762
|
-
...(input.UserBase != null && { userBase: input.UserBase }),
|
|
1763
|
-
...(input.UserRoleName != null && { userRoleName: input.UserRoleName }),
|
|
1764
|
-
...(input.UserSearchMatching != null && { userSearchMatching: input.UserSearchMatching }),
|
|
1765
|
-
...(input.UserSearchSubtree != null && { userSearchSubtree: input.UserSearchSubtree }),
|
|
1766
|
-
};
|
|
2392
|
+
var serializeAws_restJson1LdapServerMetadataInput = function (input, context) {
|
|
2393
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Hosts != null && { hosts: serializeAws_restJson1__listOf__string(input.Hosts, context) })), (input.RoleBase != null && { roleBase: input.RoleBase })), (input.RoleName != null && { roleName: input.RoleName })), (input.RoleSearchMatching != null && { roleSearchMatching: input.RoleSearchMatching })), (input.RoleSearchSubtree != null && { roleSearchSubtree: input.RoleSearchSubtree })), (input.ServiceAccountPassword != null && { serviceAccountPassword: input.ServiceAccountPassword })), (input.ServiceAccountUsername != null && { serviceAccountUsername: input.ServiceAccountUsername })), (input.UserBase != null && { userBase: input.UserBase })), (input.UserRoleName != null && { userRoleName: input.UserRoleName })), (input.UserSearchMatching != null && { userSearchMatching: input.UserSearchMatching })), (input.UserSearchSubtree != null && { userSearchSubtree: input.UserSearchSubtree }));
|
|
1767
2394
|
};
|
|
1768
|
-
|
|
1769
|
-
return {
|
|
1770
|
-
...(input.Audit != null && { audit: input.Audit }),
|
|
1771
|
-
...(input.General != null && { general: input.General }),
|
|
1772
|
-
};
|
|
2395
|
+
var serializeAws_restJson1Logs = function (input, context) {
|
|
2396
|
+
return __assign(__assign({}, (input.Audit != null && { audit: input.Audit })), (input.General != null && { general: input.General }));
|
|
1773
2397
|
};
|
|
1774
|
-
|
|
1775
|
-
return {
|
|
1776
|
-
...(input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess }),
|
|
1777
|
-
...(input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) }),
|
|
1778
|
-
...(input.Password != null && { password: input.Password }),
|
|
1779
|
-
...(input.Username != null && { username: input.Username }),
|
|
1780
|
-
};
|
|
2398
|
+
var serializeAws_restJson1User = function (input, context) {
|
|
2399
|
+
return __assign(__assign(__assign(__assign({}, (input.ConsoleAccess != null && { consoleAccess: input.ConsoleAccess })), (input.Groups != null && { groups: serializeAws_restJson1__listOf__string(input.Groups, context) })), (input.Password != null && { password: input.Password })), (input.Username != null && { username: input.Username }));
|
|
1781
2400
|
};
|
|
1782
|
-
|
|
1783
|
-
return {
|
|
1784
|
-
...(input.DayOfWeek != null && { dayOfWeek: input.DayOfWeek }),
|
|
1785
|
-
...(input.TimeOfDay != null && { timeOfDay: input.TimeOfDay }),
|
|
1786
|
-
...(input.TimeZone != null && { timeZone: input.TimeZone }),
|
|
1787
|
-
};
|
|
2401
|
+
var serializeAws_restJson1WeeklyStartTime = function (input, context) {
|
|
2402
|
+
return __assign(__assign(__assign({}, (input.DayOfWeek != null && { dayOfWeek: input.DayOfWeek })), (input.TimeOfDay != null && { timeOfDay: input.TimeOfDay })), (input.TimeZone != null && { timeZone: input.TimeZone }));
|
|
1788
2403
|
};
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
.filter((e)
|
|
1792
|
-
.map((entry)
|
|
2404
|
+
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
2405
|
+
var retVal = (output || [])
|
|
2406
|
+
.filter(function (e) { return e != null; })
|
|
2407
|
+
.map(function (entry) {
|
|
1793
2408
|
if (entry === null) {
|
|
1794
2409
|
return null;
|
|
1795
2410
|
}
|
|
@@ -1797,10 +2412,10 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1797
2412
|
});
|
|
1798
2413
|
return retVal;
|
|
1799
2414
|
};
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
.filter((e)
|
|
1803
|
-
.map((entry)
|
|
2415
|
+
var deserializeAws_restJson1__listOfActionRequired = function (output, context) {
|
|
2416
|
+
var retVal = (output || [])
|
|
2417
|
+
.filter(function (e) { return e != null; })
|
|
2418
|
+
.map(function (entry) {
|
|
1804
2419
|
if (entry === null) {
|
|
1805
2420
|
return null;
|
|
1806
2421
|
}
|
|
@@ -1808,10 +2423,10 @@ const deserializeAws_restJson1__listOfActionRequired = (output, context) => {
|
|
|
1808
2423
|
});
|
|
1809
2424
|
return retVal;
|
|
1810
2425
|
};
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
.filter((e)
|
|
1814
|
-
.map((entry)
|
|
2426
|
+
var deserializeAws_restJson1__listOfAvailabilityZone = function (output, context) {
|
|
2427
|
+
var retVal = (output || [])
|
|
2428
|
+
.filter(function (e) { return e != null; })
|
|
2429
|
+
.map(function (entry) {
|
|
1815
2430
|
if (entry === null) {
|
|
1816
2431
|
return null;
|
|
1817
2432
|
}
|
|
@@ -1819,10 +2434,10 @@ const deserializeAws_restJson1__listOfAvailabilityZone = (output, context) => {
|
|
|
1819
2434
|
});
|
|
1820
2435
|
return retVal;
|
|
1821
2436
|
};
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
.filter((e)
|
|
1825
|
-
.map((entry)
|
|
2437
|
+
var deserializeAws_restJson1__listOfBrokerEngineType = function (output, context) {
|
|
2438
|
+
var retVal = (output || [])
|
|
2439
|
+
.filter(function (e) { return e != null; })
|
|
2440
|
+
.map(function (entry) {
|
|
1826
2441
|
if (entry === null) {
|
|
1827
2442
|
return null;
|
|
1828
2443
|
}
|
|
@@ -1830,10 +2445,10 @@ const deserializeAws_restJson1__listOfBrokerEngineType = (output, context) => {
|
|
|
1830
2445
|
});
|
|
1831
2446
|
return retVal;
|
|
1832
2447
|
};
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
.filter((e)
|
|
1836
|
-
.map((entry)
|
|
2448
|
+
var deserializeAws_restJson1__listOfBrokerInstance = function (output, context) {
|
|
2449
|
+
var retVal = (output || [])
|
|
2450
|
+
.filter(function (e) { return e != null; })
|
|
2451
|
+
.map(function (entry) {
|
|
1837
2452
|
if (entry === null) {
|
|
1838
2453
|
return null;
|
|
1839
2454
|
}
|
|
@@ -1841,10 +2456,10 @@ const deserializeAws_restJson1__listOfBrokerInstance = (output, context) => {
|
|
|
1841
2456
|
});
|
|
1842
2457
|
return retVal;
|
|
1843
2458
|
};
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
.filter((e)
|
|
1847
|
-
.map((entry)
|
|
2459
|
+
var deserializeAws_restJson1__listOfBrokerInstanceOption = function (output, context) {
|
|
2460
|
+
var retVal = (output || [])
|
|
2461
|
+
.filter(function (e) { return e != null; })
|
|
2462
|
+
.map(function (entry) {
|
|
1848
2463
|
if (entry === null) {
|
|
1849
2464
|
return null;
|
|
1850
2465
|
}
|
|
@@ -1852,10 +2467,10 @@ const deserializeAws_restJson1__listOfBrokerInstanceOption = (output, context) =
|
|
|
1852
2467
|
});
|
|
1853
2468
|
return retVal;
|
|
1854
2469
|
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
.filter((e)
|
|
1858
|
-
.map((entry)
|
|
2470
|
+
var deserializeAws_restJson1__listOfBrokerSummary = function (output, context) {
|
|
2471
|
+
var retVal = (output || [])
|
|
2472
|
+
.filter(function (e) { return e != null; })
|
|
2473
|
+
.map(function (entry) {
|
|
1859
2474
|
if (entry === null) {
|
|
1860
2475
|
return null;
|
|
1861
2476
|
}
|
|
@@ -1863,10 +2478,10 @@ const deserializeAws_restJson1__listOfBrokerSummary = (output, context) => {
|
|
|
1863
2478
|
});
|
|
1864
2479
|
return retVal;
|
|
1865
2480
|
};
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
.filter((e)
|
|
1869
|
-
.map((entry)
|
|
2481
|
+
var deserializeAws_restJson1__listOfConfiguration = function (output, context) {
|
|
2482
|
+
var retVal = (output || [])
|
|
2483
|
+
.filter(function (e) { return e != null; })
|
|
2484
|
+
.map(function (entry) {
|
|
1870
2485
|
if (entry === null) {
|
|
1871
2486
|
return null;
|
|
1872
2487
|
}
|
|
@@ -1874,10 +2489,10 @@ const deserializeAws_restJson1__listOfConfiguration = (output, context) => {
|
|
|
1874
2489
|
});
|
|
1875
2490
|
return retVal;
|
|
1876
2491
|
};
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
.filter((e)
|
|
1880
|
-
.map((entry)
|
|
2492
|
+
var deserializeAws_restJson1__listOfConfigurationId = function (output, context) {
|
|
2493
|
+
var retVal = (output || [])
|
|
2494
|
+
.filter(function (e) { return e != null; })
|
|
2495
|
+
.map(function (entry) {
|
|
1881
2496
|
if (entry === null) {
|
|
1882
2497
|
return null;
|
|
1883
2498
|
}
|
|
@@ -1885,10 +2500,10 @@ const deserializeAws_restJson1__listOfConfigurationId = (output, context) => {
|
|
|
1885
2500
|
});
|
|
1886
2501
|
return retVal;
|
|
1887
2502
|
};
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
.filter((e)
|
|
1891
|
-
.map((entry)
|
|
2503
|
+
var deserializeAws_restJson1__listOfConfigurationRevision = function (output, context) {
|
|
2504
|
+
var retVal = (output || [])
|
|
2505
|
+
.filter(function (e) { return e != null; })
|
|
2506
|
+
.map(function (entry) {
|
|
1892
2507
|
if (entry === null) {
|
|
1893
2508
|
return null;
|
|
1894
2509
|
}
|
|
@@ -1896,10 +2511,10 @@ const deserializeAws_restJson1__listOfConfigurationRevision = (output, context)
|
|
|
1896
2511
|
});
|
|
1897
2512
|
return retVal;
|
|
1898
2513
|
};
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
.filter((e)
|
|
1902
|
-
.map((entry)
|
|
2514
|
+
var deserializeAws_restJson1__listOfDeploymentMode = function (output, context) {
|
|
2515
|
+
var retVal = (output || [])
|
|
2516
|
+
.filter(function (e) { return e != null; })
|
|
2517
|
+
.map(function (entry) {
|
|
1903
2518
|
if (entry === null) {
|
|
1904
2519
|
return null;
|
|
1905
2520
|
}
|
|
@@ -1907,10 +2522,10 @@ const deserializeAws_restJson1__listOfDeploymentMode = (output, context) => {
|
|
|
1907
2522
|
});
|
|
1908
2523
|
return retVal;
|
|
1909
2524
|
};
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
.filter((e)
|
|
1913
|
-
.map((entry)
|
|
2525
|
+
var deserializeAws_restJson1__listOfEngineVersion = function (output, context) {
|
|
2526
|
+
var retVal = (output || [])
|
|
2527
|
+
.filter(function (e) { return e != null; })
|
|
2528
|
+
.map(function (entry) {
|
|
1914
2529
|
if (entry === null) {
|
|
1915
2530
|
return null;
|
|
1916
2531
|
}
|
|
@@ -1918,10 +2533,10 @@ const deserializeAws_restJson1__listOfEngineVersion = (output, context) => {
|
|
|
1918
2533
|
});
|
|
1919
2534
|
return retVal;
|
|
1920
2535
|
};
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
.filter((e)
|
|
1924
|
-
.map((entry)
|
|
2536
|
+
var deserializeAws_restJson1__listOfSanitizationWarning = function (output, context) {
|
|
2537
|
+
var retVal = (output || [])
|
|
2538
|
+
.filter(function (e) { return e != null; })
|
|
2539
|
+
.map(function (entry) {
|
|
1925
2540
|
if (entry === null) {
|
|
1926
2541
|
return null;
|
|
1927
2542
|
}
|
|
@@ -1929,10 +2544,10 @@ const deserializeAws_restJson1__listOfSanitizationWarning = (output, context) =>
|
|
|
1929
2544
|
});
|
|
1930
2545
|
return retVal;
|
|
1931
2546
|
};
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
.filter((e)
|
|
1935
|
-
.map((entry)
|
|
2547
|
+
var deserializeAws_restJson1__listOfUserSummary = function (output, context) {
|
|
2548
|
+
var retVal = (output || [])
|
|
2549
|
+
.filter(function (e) { return e != null; })
|
|
2550
|
+
.map(function (entry) {
|
|
1936
2551
|
if (entry === null) {
|
|
1937
2552
|
return null;
|
|
1938
2553
|
}
|
|
@@ -1940,29 +2555,28 @@ const deserializeAws_restJson1__listOfUserSummary = (output, context) => {
|
|
|
1940
2555
|
});
|
|
1941
2556
|
return retVal;
|
|
1942
2557
|
};
|
|
1943
|
-
|
|
1944
|
-
return Object.entries(output).reduce((acc,
|
|
2558
|
+
var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
2559
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2560
|
+
var _b;
|
|
2561
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1945
2562
|
if (value === null) {
|
|
1946
2563
|
return acc;
|
|
1947
2564
|
}
|
|
1948
|
-
return {
|
|
1949
|
-
...acc,
|
|
1950
|
-
[key]: __expectString(value),
|
|
1951
|
-
};
|
|
2565
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1952
2566
|
}, {});
|
|
1953
2567
|
};
|
|
1954
|
-
|
|
2568
|
+
var deserializeAws_restJson1ActionRequired = function (output, context) {
|
|
1955
2569
|
return {
|
|
1956
2570
|
ActionRequiredCode: __expectString(output.actionRequiredCode),
|
|
1957
2571
|
ActionRequiredInfo: __expectString(output.actionRequiredInfo),
|
|
1958
2572
|
};
|
|
1959
2573
|
};
|
|
1960
|
-
|
|
2574
|
+
var deserializeAws_restJson1AvailabilityZone = function (output, context) {
|
|
1961
2575
|
return {
|
|
1962
2576
|
Name: __expectString(output.name),
|
|
1963
2577
|
};
|
|
1964
2578
|
};
|
|
1965
|
-
|
|
2579
|
+
var deserializeAws_restJson1BrokerEngineType = function (output, context) {
|
|
1966
2580
|
return {
|
|
1967
2581
|
EngineType: __expectString(output.engineType),
|
|
1968
2582
|
EngineVersions: output.engineVersions != null
|
|
@@ -1970,14 +2584,14 @@ const deserializeAws_restJson1BrokerEngineType = (output, context) => {
|
|
|
1970
2584
|
: undefined,
|
|
1971
2585
|
};
|
|
1972
2586
|
};
|
|
1973
|
-
|
|
2587
|
+
var deserializeAws_restJson1BrokerInstance = function (output, context) {
|
|
1974
2588
|
return {
|
|
1975
2589
|
ConsoleURL: __expectString(output.consoleURL),
|
|
1976
2590
|
Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
|
|
1977
2591
|
IpAddress: __expectString(output.ipAddress),
|
|
1978
2592
|
};
|
|
1979
2593
|
};
|
|
1980
|
-
|
|
2594
|
+
var deserializeAws_restJson1BrokerInstanceOption = function (output, context) {
|
|
1981
2595
|
return {
|
|
1982
2596
|
AvailabilityZones: output.availabilityZones != null
|
|
1983
2597
|
? deserializeAws_restJson1__listOfAvailabilityZone(output.availabilityZones, context)
|
|
@@ -1993,7 +2607,7 @@ const deserializeAws_restJson1BrokerInstanceOption = (output, context) => {
|
|
|
1993
2607
|
: undefined,
|
|
1994
2608
|
};
|
|
1995
2609
|
};
|
|
1996
|
-
|
|
2610
|
+
var deserializeAws_restJson1BrokerSummary = function (output, context) {
|
|
1997
2611
|
return {
|
|
1998
2612
|
BrokerArn: __expectString(output.brokerArn),
|
|
1999
2613
|
BrokerId: __expectString(output.brokerId),
|
|
@@ -2005,7 +2619,7 @@ const deserializeAws_restJson1BrokerSummary = (output, context) => {
|
|
|
2005
2619
|
HostInstanceType: __expectString(output.hostInstanceType),
|
|
2006
2620
|
};
|
|
2007
2621
|
};
|
|
2008
|
-
|
|
2622
|
+
var deserializeAws_restJson1Configuration = function (output, context) {
|
|
2009
2623
|
return {
|
|
2010
2624
|
Arn: __expectString(output.arn),
|
|
2011
2625
|
AuthenticationStrategy: __expectString(output.authenticationStrategy),
|
|
@@ -2021,38 +2635,38 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2021
2635
|
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
2022
2636
|
};
|
|
2023
2637
|
};
|
|
2024
|
-
|
|
2638
|
+
var deserializeAws_restJson1ConfigurationId = function (output, context) {
|
|
2025
2639
|
return {
|
|
2026
2640
|
Id: __expectString(output.id),
|
|
2027
2641
|
Revision: __expectInt32(output.revision),
|
|
2028
2642
|
};
|
|
2029
2643
|
};
|
|
2030
|
-
|
|
2644
|
+
var deserializeAws_restJson1ConfigurationRevision = function (output, context) {
|
|
2031
2645
|
return {
|
|
2032
2646
|
Created: output.created != null ? __expectNonNull(__parseRfc3339DateTime(output.created)) : undefined,
|
|
2033
2647
|
Description: __expectString(output.description),
|
|
2034
2648
|
Revision: __expectInt32(output.revision),
|
|
2035
2649
|
};
|
|
2036
2650
|
};
|
|
2037
|
-
|
|
2651
|
+
var deserializeAws_restJson1Configurations = function (output, context) {
|
|
2038
2652
|
return {
|
|
2039
2653
|
Current: output.current != null ? deserializeAws_restJson1ConfigurationId(output.current, context) : undefined,
|
|
2040
2654
|
History: output.history != null ? deserializeAws_restJson1__listOfConfigurationId(output.history, context) : undefined,
|
|
2041
2655
|
Pending: output.pending != null ? deserializeAws_restJson1ConfigurationId(output.pending, context) : undefined,
|
|
2042
2656
|
};
|
|
2043
2657
|
};
|
|
2044
|
-
|
|
2658
|
+
var deserializeAws_restJson1EncryptionOptions = function (output, context) {
|
|
2045
2659
|
return {
|
|
2046
2660
|
KmsKeyId: __expectString(output.kmsKeyId),
|
|
2047
2661
|
UseAwsOwnedKey: __expectBoolean(output.useAwsOwnedKey),
|
|
2048
2662
|
};
|
|
2049
2663
|
};
|
|
2050
|
-
|
|
2664
|
+
var deserializeAws_restJson1EngineVersion = function (output, context) {
|
|
2051
2665
|
return {
|
|
2052
2666
|
Name: __expectString(output.name),
|
|
2053
2667
|
};
|
|
2054
2668
|
};
|
|
2055
|
-
|
|
2669
|
+
var deserializeAws_restJson1LdapServerMetadataOutput = function (output, context) {
|
|
2056
2670
|
return {
|
|
2057
2671
|
Hosts: output.hosts != null ? deserializeAws_restJson1__listOf__string(output.hosts, context) : undefined,
|
|
2058
2672
|
RoleBase: __expectString(output.roleBase),
|
|
@@ -2066,13 +2680,13 @@ const deserializeAws_restJson1LdapServerMetadataOutput = (output, context) => {
|
|
|
2066
2680
|
UserSearchSubtree: __expectBoolean(output.userSearchSubtree),
|
|
2067
2681
|
};
|
|
2068
2682
|
};
|
|
2069
|
-
|
|
2683
|
+
var deserializeAws_restJson1Logs = function (output, context) {
|
|
2070
2684
|
return {
|
|
2071
2685
|
Audit: __expectBoolean(output.audit),
|
|
2072
2686
|
General: __expectBoolean(output.general),
|
|
2073
2687
|
};
|
|
2074
2688
|
};
|
|
2075
|
-
|
|
2689
|
+
var deserializeAws_restJson1LogsSummary = function (output, context) {
|
|
2076
2690
|
return {
|
|
2077
2691
|
Audit: __expectBoolean(output.audit),
|
|
2078
2692
|
AuditLogGroup: __expectString(output.auditLogGroup),
|
|
@@ -2081,72 +2695,90 @@ const deserializeAws_restJson1LogsSummary = (output, context) => {
|
|
|
2081
2695
|
Pending: output.pending != null ? deserializeAws_restJson1PendingLogs(output.pending, context) : undefined,
|
|
2082
2696
|
};
|
|
2083
2697
|
};
|
|
2084
|
-
|
|
2698
|
+
var deserializeAws_restJson1PendingLogs = function (output, context) {
|
|
2085
2699
|
return {
|
|
2086
2700
|
Audit: __expectBoolean(output.audit),
|
|
2087
2701
|
General: __expectBoolean(output.general),
|
|
2088
2702
|
};
|
|
2089
2703
|
};
|
|
2090
|
-
|
|
2704
|
+
var deserializeAws_restJson1SanitizationWarning = function (output, context) {
|
|
2091
2705
|
return {
|
|
2092
2706
|
AttributeName: __expectString(output.attributeName),
|
|
2093
2707
|
ElementName: __expectString(output.elementName),
|
|
2094
2708
|
Reason: __expectString(output.reason),
|
|
2095
2709
|
};
|
|
2096
2710
|
};
|
|
2097
|
-
|
|
2711
|
+
var deserializeAws_restJson1UserPendingChanges = function (output, context) {
|
|
2098
2712
|
return {
|
|
2099
2713
|
ConsoleAccess: __expectBoolean(output.consoleAccess),
|
|
2100
2714
|
Groups: output.groups != null ? deserializeAws_restJson1__listOf__string(output.groups, context) : undefined,
|
|
2101
2715
|
PendingChange: __expectString(output.pendingChange),
|
|
2102
2716
|
};
|
|
2103
2717
|
};
|
|
2104
|
-
|
|
2718
|
+
var deserializeAws_restJson1UserSummary = function (output, context) {
|
|
2105
2719
|
return {
|
|
2106
2720
|
PendingChange: __expectString(output.pendingChange),
|
|
2107
2721
|
Username: __expectString(output.username),
|
|
2108
2722
|
};
|
|
2109
2723
|
};
|
|
2110
|
-
|
|
2724
|
+
var deserializeAws_restJson1WeeklyStartTime = function (output, context) {
|
|
2111
2725
|
return {
|
|
2112
2726
|
DayOfWeek: __expectString(output.dayOfWeek),
|
|
2113
2727
|
TimeOfDay: __expectString(output.timeOfDay),
|
|
2114
2728
|
TimeZone: __expectString(output.timeZone),
|
|
2115
2729
|
};
|
|
2116
2730
|
};
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2731
|
+
var deserializeMetadata = function (output) {
|
|
2732
|
+
var _a, _b;
|
|
2733
|
+
return ({
|
|
2734
|
+
httpStatusCode: output.statusCode,
|
|
2735
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2736
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2737
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2738
|
+
});
|
|
2739
|
+
};
|
|
2740
|
+
var collectBody = function (streamBody, context) {
|
|
2741
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2124
2742
|
if (streamBody instanceof Uint8Array) {
|
|
2125
2743
|
return Promise.resolve(streamBody);
|
|
2126
2744
|
}
|
|
2127
2745
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2128
2746
|
};
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
}
|
|
2139
|
-
return {};
|
|
2140
|
-
});
|
|
2141
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2142
|
-
const value = await parseBody(errorBody, context);
|
|
2143
|
-
value.message = value.message ?? value.Message;
|
|
2144
|
-
return value;
|
|
2747
|
+
var collectBodyString = function (streamBody, context) {
|
|
2748
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2749
|
+
};
|
|
2750
|
+
var isSerializableHeaderValue = function (value) {
|
|
2751
|
+
return value !== undefined &&
|
|
2752
|
+
value !== null &&
|
|
2753
|
+
value !== "" &&
|
|
2754
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2755
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2145
2756
|
};
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2757
|
+
var parseBody = function (streamBody, context) {
|
|
2758
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2759
|
+
if (encoded.length) {
|
|
2760
|
+
return JSON.parse(encoded);
|
|
2761
|
+
}
|
|
2762
|
+
return {};
|
|
2763
|
+
});
|
|
2764
|
+
};
|
|
2765
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2766
|
+
var value;
|
|
2767
|
+
var _a;
|
|
2768
|
+
return __generator(this, function (_b) {
|
|
2769
|
+
switch (_b.label) {
|
|
2770
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2771
|
+
case 1:
|
|
2772
|
+
value = _b.sent();
|
|
2773
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2774
|
+
return [2, value];
|
|
2775
|
+
}
|
|
2776
|
+
});
|
|
2777
|
+
}); };
|
|
2778
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2779
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2780
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2781
|
+
var cleanValue = rawValue;
|
|
2150
2782
|
if (typeof cleanValue === "number") {
|
|
2151
2783
|
cleanValue = cleanValue.toString();
|
|
2152
2784
|
}
|
|
@@ -2161,7 +2793,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2161
2793
|
}
|
|
2162
2794
|
return cleanValue;
|
|
2163
2795
|
};
|
|
2164
|
-
|
|
2796
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2165
2797
|
if (headerKey !== undefined) {
|
|
2166
2798
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2167
2799
|
}
|