@aws-sdk/client-codeguruprofiler 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +328 -654
- package/dist-es/protocols/Aws_restJson1.js +418 -627
- package/package.json +11 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { CodeGuruProfilerServiceException as __BaseException } from "../models/CodeGuruProfilerServiceException";
|
|
5
5
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AddNotificationChannelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -15,16 +15,7 @@ export var serializeAws_restJson1AddNotificationChannelsCommand = function (inpu
|
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
17
|
"/profilingGroups/{profilingGroupName}/notificationConfiguration";
|
|
18
|
-
|
|
19
|
-
labelValue = input.profilingGroupName;
|
|
20
|
-
if (labelValue.length <= 0) {
|
|
21
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
22
|
-
}
|
|
23
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
27
|
-
}
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
28
19
|
body = JSON.stringify(__assign({}, (input.channels != null && { channels: serializeAws_restJson1Channels(input.channels, context) })));
|
|
29
20
|
return [2, new __HttpRequest({
|
|
30
21
|
protocol: protocol,
|
|
@@ -39,7 +30,7 @@ export var serializeAws_restJson1AddNotificationChannelsCommand = function (inpu
|
|
|
39
30
|
});
|
|
40
31
|
}); };
|
|
41
32
|
export var serializeAws_restJson1BatchGetFrameMetricDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
43
34
|
return __generator(this, function (_c) {
|
|
44
35
|
switch (_c.label) {
|
|
45
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -50,17 +41,16 @@ export var serializeAws_restJson1BatchGetFrameMetricDataCommand = function (inpu
|
|
|
50
41
|
};
|
|
51
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
52
43
|
"/profilingGroups/{profilingGroupName}/frames/-/metrics";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
query = __assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.period !== undefined && { period: input.period })), (input.targetResolution !== undefined && { targetResolution: input.targetResolution }));
|
|
44
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
45
|
+
query = map({
|
|
46
|
+
startTime: [
|
|
47
|
+
function () { return input.startTime !== void 0; },
|
|
48
|
+
function () { return (input.startTime.toISOString().split(".")[0] + "Z").toString(); },
|
|
49
|
+
],
|
|
50
|
+
endTime: [function () { return input.endTime !== void 0; }, function () { return (input.endTime.toISOString().split(".")[0] + "Z").toString(); }],
|
|
51
|
+
period: [, input.period],
|
|
52
|
+
targetResolution: [, input.targetResolution],
|
|
53
|
+
});
|
|
64
54
|
body = JSON.stringify(__assign({}, (input.frameMetrics != null && {
|
|
65
55
|
frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context),
|
|
66
56
|
})));
|
|
@@ -78,7 +68,7 @@ export var serializeAws_restJson1BatchGetFrameMetricDataCommand = function (inpu
|
|
|
78
68
|
});
|
|
79
69
|
}); };
|
|
80
70
|
export var serializeAws_restJson1ConfigureAgentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
71
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
82
72
|
return __generator(this, function (_c) {
|
|
83
73
|
switch (_c.label) {
|
|
84
74
|
case 0: return [4, context.endpoint()];
|
|
@@ -89,16 +79,7 @@ export var serializeAws_restJson1ConfigureAgentCommand = function (input, contex
|
|
|
89
79
|
};
|
|
90
80
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
91
81
|
"/profilingGroups/{profilingGroupName}/configureAgent";
|
|
92
|
-
|
|
93
|
-
labelValue = input.profilingGroupName;
|
|
94
|
-
if (labelValue.length <= 0) {
|
|
95
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
96
|
-
}
|
|
97
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
101
|
-
}
|
|
82
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
102
83
|
body = JSON.stringify(__assign(__assign({}, (input.fleetInstanceId != null && { fleetInstanceId: input.fleetInstanceId })), (input.metadata != null && { metadata: serializeAws_restJson1Metadata(input.metadata, context) })));
|
|
103
84
|
return [2, new __HttpRequest({
|
|
104
85
|
protocol: protocol,
|
|
@@ -123,7 +104,9 @@ export var serializeAws_restJson1CreateProfilingGroupCommand = function (input,
|
|
|
123
104
|
"content-type": "application/json",
|
|
124
105
|
};
|
|
125
106
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups";
|
|
126
|
-
query =
|
|
107
|
+
query = map({
|
|
108
|
+
clientToken: [, input.clientToken],
|
|
109
|
+
});
|
|
127
110
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.agentOrchestrationConfig != null && {
|
|
128
111
|
agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
129
112
|
})), (input.computePlatform != null && { computePlatform: input.computePlatform })), (input.profilingGroupName != null && { profilingGroupName: input.profilingGroupName })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
@@ -141,7 +124,7 @@ export var serializeAws_restJson1CreateProfilingGroupCommand = function (input,
|
|
|
141
124
|
});
|
|
142
125
|
}); };
|
|
143
126
|
export var serializeAws_restJson1DeleteProfilingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
127
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
145
128
|
return __generator(this, function (_c) {
|
|
146
129
|
switch (_c.label) {
|
|
147
130
|
case 0: return [4, context.endpoint()];
|
|
@@ -149,16 +132,7 @@ export var serializeAws_restJson1DeleteProfilingGroupCommand = function (input,
|
|
|
149
132
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
150
133
|
headers = {};
|
|
151
134
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups/{profilingGroupName}";
|
|
152
|
-
|
|
153
|
-
labelValue = input.profilingGroupName;
|
|
154
|
-
if (labelValue.length <= 0) {
|
|
155
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
156
|
-
}
|
|
157
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
161
|
-
}
|
|
135
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
162
136
|
return [2, new __HttpRequest({
|
|
163
137
|
protocol: protocol,
|
|
164
138
|
hostname: hostname,
|
|
@@ -172,7 +146,7 @@ export var serializeAws_restJson1DeleteProfilingGroupCommand = function (input,
|
|
|
172
146
|
});
|
|
173
147
|
}); };
|
|
174
148
|
export var serializeAws_restJson1DescribeProfilingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
149
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
176
150
|
return __generator(this, function (_c) {
|
|
177
151
|
switch (_c.label) {
|
|
178
152
|
case 0: return [4, context.endpoint()];
|
|
@@ -180,16 +154,7 @@ export var serializeAws_restJson1DescribeProfilingGroupCommand = function (input
|
|
|
180
154
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
181
155
|
headers = {};
|
|
182
156
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups/{profilingGroupName}";
|
|
183
|
-
|
|
184
|
-
labelValue = input.profilingGroupName;
|
|
185
|
-
if (labelValue.length <= 0) {
|
|
186
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
187
|
-
}
|
|
188
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
192
|
-
}
|
|
157
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
193
158
|
return [2, new __HttpRequest({
|
|
194
159
|
protocol: protocol,
|
|
195
160
|
hostname: hostname,
|
|
@@ -211,7 +176,11 @@ export var serializeAws_restJson1GetFindingsReportAccountSummaryCommand = functi
|
|
|
211
176
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
212
177
|
headers = {};
|
|
213
178
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/internal/findingsReports";
|
|
214
|
-
query =
|
|
179
|
+
query = map({
|
|
180
|
+
nextToken: [, input.nextToken],
|
|
181
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
182
|
+
dailyReportsOnly: [function () { return input.dailyReportsOnly !== void 0; }, function () { return input.dailyReportsOnly.toString(); }],
|
|
183
|
+
});
|
|
215
184
|
return [2, new __HttpRequest({
|
|
216
185
|
protocol: protocol,
|
|
217
186
|
hostname: hostname,
|
|
@@ -226,7 +195,7 @@ export var serializeAws_restJson1GetFindingsReportAccountSummaryCommand = functi
|
|
|
226
195
|
});
|
|
227
196
|
}); };
|
|
228
197
|
export var serializeAws_restJson1GetNotificationConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
229
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
198
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
230
199
|
return __generator(this, function (_c) {
|
|
231
200
|
switch (_c.label) {
|
|
232
201
|
case 0: return [4, context.endpoint()];
|
|
@@ -235,16 +204,7 @@ export var serializeAws_restJson1GetNotificationConfigurationCommand = function
|
|
|
235
204
|
headers = {};
|
|
236
205
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
237
206
|
"/profilingGroups/{profilingGroupName}/notificationConfiguration";
|
|
238
|
-
|
|
239
|
-
labelValue = input.profilingGroupName;
|
|
240
|
-
if (labelValue.length <= 0) {
|
|
241
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
242
|
-
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
247
|
-
}
|
|
207
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
248
208
|
return [2, new __HttpRequest({
|
|
249
209
|
protocol: protocol,
|
|
250
210
|
hostname: hostname,
|
|
@@ -258,7 +218,7 @@ export var serializeAws_restJson1GetNotificationConfigurationCommand = function
|
|
|
258
218
|
});
|
|
259
219
|
}); };
|
|
260
220
|
export var serializeAws_restJson1GetPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
261
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
221
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
262
222
|
return __generator(this, function (_c) {
|
|
263
223
|
switch (_c.label) {
|
|
264
224
|
case 0: return [4, context.endpoint()];
|
|
@@ -267,16 +227,7 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
267
227
|
headers = {};
|
|
268
228
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
269
229
|
"/profilingGroups/{profilingGroupName}/policy";
|
|
270
|
-
|
|
271
|
-
labelValue = input.profilingGroupName;
|
|
272
|
-
if (labelValue.length <= 0) {
|
|
273
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
274
|
-
}
|
|
275
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
279
|
-
}
|
|
230
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
280
231
|
return [2, new __HttpRequest({
|
|
281
232
|
protocol: protocol,
|
|
282
233
|
hostname: hostname,
|
|
@@ -290,26 +241,27 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
290
241
|
});
|
|
291
242
|
}); };
|
|
292
243
|
export var serializeAws_restJson1GetProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
293
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
244
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
294
245
|
return __generator(this, function (_c) {
|
|
295
246
|
switch (_c.label) {
|
|
296
247
|
case 0: return [4, context.endpoint()];
|
|
297
248
|
case 1:
|
|
298
249
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
299
|
-
headers =
|
|
250
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
251
|
+
accept: input.accept,
|
|
252
|
+
});
|
|
300
253
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
301
254
|
"/profilingGroups/{profilingGroupName}/profile";
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
query = __assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.period !== undefined && { period: input.period })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.maxDepth !== undefined && { maxDepth: input.maxDepth.toString() }));
|
|
255
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
256
|
+
query = map({
|
|
257
|
+
startTime: [
|
|
258
|
+
function () { return input.startTime !== void 0; },
|
|
259
|
+
function () { return (input.startTime.toISOString().split(".")[0] + "Z").toString(); },
|
|
260
|
+
],
|
|
261
|
+
period: [, input.period],
|
|
262
|
+
endTime: [function () { return input.endTime !== void 0; }, function () { return (input.endTime.toISOString().split(".")[0] + "Z").toString(); }],
|
|
263
|
+
maxDepth: [function () { return input.maxDepth !== void 0; }, function () { return input.maxDepth.toString(); }],
|
|
264
|
+
});
|
|
313
265
|
return [2, new __HttpRequest({
|
|
314
266
|
protocol: protocol,
|
|
315
267
|
hostname: hostname,
|
|
@@ -324,7 +276,7 @@ export var serializeAws_restJson1GetProfileCommand = function (input, context) {
|
|
|
324
276
|
});
|
|
325
277
|
}); };
|
|
326
278
|
export var serializeAws_restJson1GetRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
327
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
279
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
328
280
|
return __generator(this, function (_c) {
|
|
329
281
|
switch (_c.label) {
|
|
330
282
|
case 0: return [4, context.endpoint()];
|
|
@@ -333,17 +285,15 @@ export var serializeAws_restJson1GetRecommendationsCommand = function (input, co
|
|
|
333
285
|
headers = {};
|
|
334
286
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
335
287
|
"/internal/profilingGroups/{profilingGroupName}/recommendations";
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
query = __assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.locale !== undefined && { locale: input.locale }));
|
|
288
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
289
|
+
query = map({
|
|
290
|
+
startTime: [
|
|
291
|
+
function () { return input.startTime !== void 0; },
|
|
292
|
+
function () { return (input.startTime.toISOString().split(".")[0] + "Z").toString(); },
|
|
293
|
+
],
|
|
294
|
+
endTime: [function () { return input.endTime !== void 0; }, function () { return (input.endTime.toISOString().split(".")[0] + "Z").toString(); }],
|
|
295
|
+
locale: [, input.locale],
|
|
296
|
+
});
|
|
347
297
|
return [2, new __HttpRequest({
|
|
348
298
|
protocol: protocol,
|
|
349
299
|
hostname: hostname,
|
|
@@ -358,7 +308,7 @@ export var serializeAws_restJson1GetRecommendationsCommand = function (input, co
|
|
|
358
308
|
});
|
|
359
309
|
}); };
|
|
360
310
|
export var serializeAws_restJson1ListFindingsReportsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
361
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
311
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
362
312
|
return __generator(this, function (_c) {
|
|
363
313
|
switch (_c.label) {
|
|
364
314
|
case 0: return [4, context.endpoint()];
|
|
@@ -367,17 +317,17 @@ export var serializeAws_restJson1ListFindingsReportsCommand = function (input, c
|
|
|
367
317
|
headers = {};
|
|
368
318
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
369
319
|
"/internal/profilingGroups/{profilingGroupName}/findingsReports";
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
320
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
321
|
+
query = map({
|
|
322
|
+
startTime: [
|
|
323
|
+
function () { return input.startTime !== void 0; },
|
|
324
|
+
function () { return (input.startTime.toISOString().split(".")[0] + "Z").toString(); },
|
|
325
|
+
],
|
|
326
|
+
endTime: [function () { return input.endTime !== void 0; }, function () { return (input.endTime.toISOString().split(".")[0] + "Z").toString(); }],
|
|
327
|
+
nextToken: [, input.nextToken],
|
|
328
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
329
|
+
dailyReportsOnly: [function () { return input.dailyReportsOnly !== void 0; }, function () { return input.dailyReportsOnly.toString(); }],
|
|
330
|
+
});
|
|
381
331
|
return [2, new __HttpRequest({
|
|
382
332
|
protocol: protocol,
|
|
383
333
|
hostname: hostname,
|
|
@@ -392,7 +342,7 @@ export var serializeAws_restJson1ListFindingsReportsCommand = function (input, c
|
|
|
392
342
|
});
|
|
393
343
|
}); };
|
|
394
344
|
export var serializeAws_restJson1ListProfileTimesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
395
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
345
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
396
346
|
return __generator(this, function (_c) {
|
|
397
347
|
switch (_c.label) {
|
|
398
348
|
case 0: return [4, context.endpoint()];
|
|
@@ -401,17 +351,18 @@ export var serializeAws_restJson1ListProfileTimesCommand = function (input, cont
|
|
|
401
351
|
headers = {};
|
|
402
352
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
403
353
|
"/profilingGroups/{profilingGroupName}/profileTimes";
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
354
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
355
|
+
query = map({
|
|
356
|
+
startTime: [
|
|
357
|
+
function () { return input.startTime !== void 0; },
|
|
358
|
+
function () { return (input.startTime.toISOString().split(".")[0] + "Z").toString(); },
|
|
359
|
+
],
|
|
360
|
+
endTime: [function () { return input.endTime !== void 0; }, function () { return (input.endTime.toISOString().split(".")[0] + "Z").toString(); }],
|
|
361
|
+
period: [, input.period],
|
|
362
|
+
orderBy: [, input.orderBy],
|
|
363
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
364
|
+
nextToken: [, input.nextToken],
|
|
365
|
+
});
|
|
415
366
|
return [2, new __HttpRequest({
|
|
416
367
|
protocol: protocol,
|
|
417
368
|
hostname: hostname,
|
|
@@ -434,7 +385,11 @@ export var serializeAws_restJson1ListProfilingGroupsCommand = function (input, c
|
|
|
434
385
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
435
386
|
headers = {};
|
|
436
387
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups";
|
|
437
|
-
query =
|
|
388
|
+
query = map({
|
|
389
|
+
nextToken: [, input.nextToken],
|
|
390
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
391
|
+
includeDescription: [function () { return input.includeDescription !== void 0; }, function () { return input.includeDescription.toString(); }],
|
|
392
|
+
});
|
|
438
393
|
return [2, new __HttpRequest({
|
|
439
394
|
protocol: protocol,
|
|
440
395
|
hostname: hostname,
|
|
@@ -449,7 +404,7 @@ export var serializeAws_restJson1ListProfilingGroupsCommand = function (input, c
|
|
|
449
404
|
});
|
|
450
405
|
}); };
|
|
451
406
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
452
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
407
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
453
408
|
return __generator(this, function (_c) {
|
|
454
409
|
switch (_c.label) {
|
|
455
410
|
case 0: return [4, context.endpoint()];
|
|
@@ -457,16 +412,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
457
412
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
458
413
|
headers = {};
|
|
459
414
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
460
|
-
|
|
461
|
-
labelValue = input.resourceArn;
|
|
462
|
-
if (labelValue.length <= 0) {
|
|
463
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
464
|
-
}
|
|
465
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
469
|
-
}
|
|
415
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
470
416
|
return [2, new __HttpRequest({
|
|
471
417
|
protocol: protocol,
|
|
472
418
|
hostname: hostname,
|
|
@@ -480,26 +426,21 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
480
426
|
});
|
|
481
427
|
}); };
|
|
482
428
|
export var serializeAws_restJson1PostAgentProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
483
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
429
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
484
430
|
return __generator(this, function (_c) {
|
|
485
431
|
switch (_c.label) {
|
|
486
432
|
case 0: return [4, context.endpoint()];
|
|
487
433
|
case 1:
|
|
488
434
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
489
|
-
headers =
|
|
435
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
436
|
+
"content-type": input.contentType || "application/octet-stream",
|
|
437
|
+
});
|
|
490
438
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
491
439
|
"/profilingGroups/{profilingGroupName}/agentProfile";
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
501
|
-
}
|
|
502
|
-
query = __assign({}, (input.profileToken !== undefined && { profileToken: input.profileToken }));
|
|
440
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
441
|
+
query = map({
|
|
442
|
+
profileToken: [, input.profileToken],
|
|
443
|
+
});
|
|
503
444
|
if (input.agentProfile !== undefined) {
|
|
504
445
|
body = input.agentProfile;
|
|
505
446
|
}
|
|
@@ -517,7 +458,7 @@ export var serializeAws_restJson1PostAgentProfileCommand = function (input, cont
|
|
|
517
458
|
});
|
|
518
459
|
}); };
|
|
519
460
|
export var serializeAws_restJson1PutPermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
461
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
521
462
|
return __generator(this, function (_c) {
|
|
522
463
|
switch (_c.label) {
|
|
523
464
|
case 0: return [4, context.endpoint()];
|
|
@@ -528,26 +469,8 @@ export var serializeAws_restJson1PutPermissionCommand = function (input, context
|
|
|
528
469
|
};
|
|
529
470
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
530
471
|
"/profilingGroups/{profilingGroupName}/policy/{actionGroup}";
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
if (labelValue.length <= 0) {
|
|
534
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
535
|
-
}
|
|
536
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
537
|
-
}
|
|
538
|
-
else {
|
|
539
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
540
|
-
}
|
|
541
|
-
if (input.actionGroup !== undefined) {
|
|
542
|
-
labelValue = input.actionGroup;
|
|
543
|
-
if (labelValue.length <= 0) {
|
|
544
|
-
throw new Error("Empty value provided for input HTTP label: actionGroup.");
|
|
545
|
-
}
|
|
546
|
-
resolvedPath = resolvedPath.replace("{actionGroup}", __extendedEncodeURIComponent(labelValue));
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
throw new Error("No value provided for input HTTP label: actionGroup.");
|
|
550
|
-
}
|
|
472
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
473
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", function () { return input.actionGroup; }, "{actionGroup}", false);
|
|
551
474
|
body = JSON.stringify(__assign(__assign({}, (input.principals != null && { principals: serializeAws_restJson1Principals(input.principals, context) })), (input.revisionId != null && { revisionId: input.revisionId })));
|
|
552
475
|
return [2, new __HttpRequest({
|
|
553
476
|
protocol: protocol,
|
|
@@ -562,7 +485,7 @@ export var serializeAws_restJson1PutPermissionCommand = function (input, context
|
|
|
562
485
|
});
|
|
563
486
|
}); };
|
|
564
487
|
export var serializeAws_restJson1RemoveNotificationChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
565
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
488
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
566
489
|
return __generator(this, function (_c) {
|
|
567
490
|
switch (_c.label) {
|
|
568
491
|
case 0: return [4, context.endpoint()];
|
|
@@ -571,26 +494,8 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
|
|
|
571
494
|
headers = {};
|
|
572
495
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
573
496
|
"/profilingGroups/{profilingGroupName}/notificationConfiguration/{channelId}";
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
if (labelValue.length <= 0) {
|
|
577
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
578
|
-
}
|
|
579
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
583
|
-
}
|
|
584
|
-
if (input.channelId !== undefined) {
|
|
585
|
-
labelValue = input.channelId;
|
|
586
|
-
if (labelValue.length <= 0) {
|
|
587
|
-
throw new Error("Empty value provided for input HTTP label: channelId.");
|
|
588
|
-
}
|
|
589
|
-
resolvedPath = resolvedPath.replace("{channelId}", __extendedEncodeURIComponent(labelValue));
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
throw new Error("No value provided for input HTTP label: channelId.");
|
|
593
|
-
}
|
|
497
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
498
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "channelId", function () { return input.channelId; }, "{channelId}", false);
|
|
594
499
|
return [2, new __HttpRequest({
|
|
595
500
|
protocol: protocol,
|
|
596
501
|
hostname: hostname,
|
|
@@ -604,7 +509,7 @@ export var serializeAws_restJson1RemoveNotificationChannelCommand = function (in
|
|
|
604
509
|
});
|
|
605
510
|
}); };
|
|
606
511
|
export var serializeAws_restJson1RemovePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
607
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
512
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
608
513
|
return __generator(this, function (_c) {
|
|
609
514
|
switch (_c.label) {
|
|
610
515
|
case 0: return [4, context.endpoint()];
|
|
@@ -613,27 +518,11 @@ export var serializeAws_restJson1RemovePermissionCommand = function (input, cont
|
|
|
613
518
|
headers = {};
|
|
614
519
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
615
520
|
"/profilingGroups/{profilingGroupName}/policy/{actionGroup}";
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
622
|
-
}
|
|
623
|
-
else {
|
|
624
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
625
|
-
}
|
|
626
|
-
if (input.actionGroup !== undefined) {
|
|
627
|
-
labelValue = input.actionGroup;
|
|
628
|
-
if (labelValue.length <= 0) {
|
|
629
|
-
throw new Error("Empty value provided for input HTTP label: actionGroup.");
|
|
630
|
-
}
|
|
631
|
-
resolvedPath = resolvedPath.replace("{actionGroup}", __extendedEncodeURIComponent(labelValue));
|
|
632
|
-
}
|
|
633
|
-
else {
|
|
634
|
-
throw new Error("No value provided for input HTTP label: actionGroup.");
|
|
635
|
-
}
|
|
636
|
-
query = __assign({}, (input.revisionId !== undefined && { revisionId: input.revisionId }));
|
|
521
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
522
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "actionGroup", function () { return input.actionGroup; }, "{actionGroup}", false);
|
|
523
|
+
query = map({
|
|
524
|
+
revisionId: [, input.revisionId],
|
|
525
|
+
});
|
|
637
526
|
return [2, new __HttpRequest({
|
|
638
527
|
protocol: protocol,
|
|
639
528
|
hostname: hostname,
|
|
@@ -648,7 +537,7 @@ export var serializeAws_restJson1RemovePermissionCommand = function (input, cont
|
|
|
648
537
|
});
|
|
649
538
|
}); };
|
|
650
539
|
export var serializeAws_restJson1SubmitFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
651
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
540
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
652
541
|
return __generator(this, function (_c) {
|
|
653
542
|
switch (_c.label) {
|
|
654
543
|
case 0: return [4, context.endpoint()];
|
|
@@ -659,26 +548,8 @@ export var serializeAws_restJson1SubmitFeedbackCommand = function (input, contex
|
|
|
659
548
|
};
|
|
660
549
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
661
550
|
"/internal/profilingGroups/{profilingGroupName}/anomalies/{anomalyInstanceId}/feedback";
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
if (labelValue.length <= 0) {
|
|
665
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
666
|
-
}
|
|
667
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
668
|
-
}
|
|
669
|
-
else {
|
|
670
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
671
|
-
}
|
|
672
|
-
if (input.anomalyInstanceId !== undefined) {
|
|
673
|
-
labelValue = input.anomalyInstanceId;
|
|
674
|
-
if (labelValue.length <= 0) {
|
|
675
|
-
throw new Error("Empty value provided for input HTTP label: anomalyInstanceId.");
|
|
676
|
-
}
|
|
677
|
-
resolvedPath = resolvedPath.replace("{anomalyInstanceId}", __extendedEncodeURIComponent(labelValue));
|
|
678
|
-
}
|
|
679
|
-
else {
|
|
680
|
-
throw new Error("No value provided for input HTTP label: anomalyInstanceId.");
|
|
681
|
-
}
|
|
551
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
552
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "anomalyInstanceId", function () { return input.anomalyInstanceId; }, "{anomalyInstanceId}", false);
|
|
682
553
|
body = JSON.stringify(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.type != null && { type: input.type })));
|
|
683
554
|
return [2, new __HttpRequest({
|
|
684
555
|
protocol: protocol,
|
|
@@ -693,7 +564,7 @@ export var serializeAws_restJson1SubmitFeedbackCommand = function (input, contex
|
|
|
693
564
|
});
|
|
694
565
|
}); };
|
|
695
566
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
696
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
567
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
697
568
|
return __generator(this, function (_c) {
|
|
698
569
|
switch (_c.label) {
|
|
699
570
|
case 0: return [4, context.endpoint()];
|
|
@@ -703,16 +574,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
703
574
|
"content-type": "application/json",
|
|
704
575
|
};
|
|
705
576
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
706
|
-
|
|
707
|
-
labelValue = input.resourceArn;
|
|
708
|
-
if (labelValue.length <= 0) {
|
|
709
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
710
|
-
}
|
|
711
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
712
|
-
}
|
|
713
|
-
else {
|
|
714
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
715
|
-
}
|
|
577
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
716
578
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
717
579
|
return [2, new __HttpRequest({
|
|
718
580
|
protocol: protocol,
|
|
@@ -727,7 +589,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
727
589
|
});
|
|
728
590
|
}); };
|
|
729
591
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
730
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
592
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
731
593
|
return __generator(this, function (_c) {
|
|
732
594
|
switch (_c.label) {
|
|
733
595
|
case 0: return [4, context.endpoint()];
|
|
@@ -735,17 +597,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
735
597
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
736
598
|
headers = {};
|
|
737
599
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}
|
|
743
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
747
|
-
}
|
|
748
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
600
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
601
|
+
query = map({
|
|
602
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
603
|
+
});
|
|
749
604
|
return [2, new __HttpRequest({
|
|
750
605
|
protocol: protocol,
|
|
751
606
|
hostname: hostname,
|
|
@@ -760,7 +615,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
760
615
|
});
|
|
761
616
|
}); };
|
|
762
617
|
export var serializeAws_restJson1UpdateProfilingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
763
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
618
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
764
619
|
return __generator(this, function (_c) {
|
|
765
620
|
switch (_c.label) {
|
|
766
621
|
case 0: return [4, context.endpoint()];
|
|
@@ -770,16 +625,7 @@ export var serializeAws_restJson1UpdateProfilingGroupCommand = function (input,
|
|
|
770
625
|
"content-type": "application/json",
|
|
771
626
|
};
|
|
772
627
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/profilingGroups/{profilingGroupName}";
|
|
773
|
-
|
|
774
|
-
labelValue = input.profilingGroupName;
|
|
775
|
-
if (labelValue.length <= 0) {
|
|
776
|
-
throw new Error("Empty value provided for input HTTP label: profilingGroupName.");
|
|
777
|
-
}
|
|
778
|
-
resolvedPath = resolvedPath.replace("{profilingGroupName}", __extendedEncodeURIComponent(labelValue));
|
|
779
|
-
}
|
|
780
|
-
else {
|
|
781
|
-
throw new Error("No value provided for input HTTP label: profilingGroupName.");
|
|
782
|
-
}
|
|
628
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "profilingGroupName", function () { return input.profilingGroupName; }, "{profilingGroupName}", false);
|
|
783
629
|
body = JSON.stringify(__assign({}, (input.agentOrchestrationConfig != null && {
|
|
784
630
|
agentOrchestrationConfig: serializeAws_restJson1AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
785
631
|
})));
|
|
@@ -803,24 +649,23 @@ export var deserializeAws_restJson1AddNotificationChannelsCommand = function (ou
|
|
|
803
649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
804
650
|
return [2, deserializeAws_restJson1AddNotificationChannelsCommandError(output, context)];
|
|
805
651
|
}
|
|
806
|
-
contents = {
|
|
652
|
+
contents = map({
|
|
807
653
|
$metadata: deserializeMetadata(output),
|
|
808
|
-
|
|
809
|
-
};
|
|
654
|
+
});
|
|
810
655
|
_a = __expectNonNull;
|
|
811
656
|
_b = __expectObject;
|
|
812
657
|
return [4, parseBody(output.body, context)];
|
|
813
658
|
case 1:
|
|
814
659
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
815
|
-
if (data.notificationConfiguration
|
|
660
|
+
if (data.notificationConfiguration != null) {
|
|
816
661
|
contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
|
|
817
662
|
}
|
|
818
|
-
return [2,
|
|
663
|
+
return [2, contents];
|
|
819
664
|
}
|
|
820
665
|
});
|
|
821
666
|
}); };
|
|
822
667
|
var deserializeAws_restJson1AddNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
823
|
-
var parsedOutput, _a,
|
|
668
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
824
669
|
var _c;
|
|
825
670
|
return __generator(this, function (_d) {
|
|
826
671
|
switch (_d.label) {
|
|
@@ -861,14 +706,14 @@ var deserializeAws_restJson1AddNotificationChannelsCommandError = function (outp
|
|
|
861
706
|
case 13: throw _d.sent();
|
|
862
707
|
case 14:
|
|
863
708
|
parsedBody = parsedOutput.body;
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
$metadata: $metadata,
|
|
709
|
+
throwDefaultError({
|
|
710
|
+
output: output,
|
|
711
|
+
parsedBody: parsedBody,
|
|
712
|
+
exceptionCtor: __BaseException,
|
|
713
|
+
errorCode: errorCode,
|
|
870
714
|
});
|
|
871
|
-
|
|
715
|
+
_d.label = 15;
|
|
716
|
+
case 15: return [2];
|
|
872
717
|
}
|
|
873
718
|
});
|
|
874
719
|
}); };
|
|
@@ -880,44 +725,38 @@ export var deserializeAws_restJson1BatchGetFrameMetricDataCommand = function (ou
|
|
|
880
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
726
|
return [2, deserializeAws_restJson1BatchGetFrameMetricDataCommandError(output, context)];
|
|
882
727
|
}
|
|
883
|
-
contents = {
|
|
728
|
+
contents = map({
|
|
884
729
|
$metadata: deserializeMetadata(output),
|
|
885
|
-
|
|
886
|
-
endTimes: undefined,
|
|
887
|
-
frameMetricData: undefined,
|
|
888
|
-
resolution: undefined,
|
|
889
|
-
startTime: undefined,
|
|
890
|
-
unprocessedEndTimes: undefined,
|
|
891
|
-
};
|
|
730
|
+
});
|
|
892
731
|
_a = __expectNonNull;
|
|
893
732
|
_b = __expectObject;
|
|
894
733
|
return [4, parseBody(output.body, context)];
|
|
895
734
|
case 1:
|
|
896
735
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
897
|
-
if (data.endTime
|
|
736
|
+
if (data.endTime != null) {
|
|
898
737
|
contents.endTime = __expectNonNull(__parseRfc3339DateTime(data.endTime));
|
|
899
738
|
}
|
|
900
|
-
if (data.endTimes
|
|
739
|
+
if (data.endTimes != null) {
|
|
901
740
|
contents.endTimes = deserializeAws_restJson1ListOfTimestamps(data.endTimes, context);
|
|
902
741
|
}
|
|
903
|
-
if (data.frameMetricData
|
|
742
|
+
if (data.frameMetricData != null) {
|
|
904
743
|
contents.frameMetricData = deserializeAws_restJson1FrameMetricData(data.frameMetricData, context);
|
|
905
744
|
}
|
|
906
|
-
if (data.resolution
|
|
745
|
+
if (data.resolution != null) {
|
|
907
746
|
contents.resolution = __expectString(data.resolution);
|
|
908
747
|
}
|
|
909
|
-
if (data.startTime
|
|
748
|
+
if (data.startTime != null) {
|
|
910
749
|
contents.startTime = __expectNonNull(__parseRfc3339DateTime(data.startTime));
|
|
911
750
|
}
|
|
912
|
-
if (data.unprocessedEndTimes
|
|
751
|
+
if (data.unprocessedEndTimes != null) {
|
|
913
752
|
contents.unprocessedEndTimes = deserializeAws_restJson1UnprocessedEndTimeMap(data.unprocessedEndTimes, context);
|
|
914
753
|
}
|
|
915
|
-
return [2,
|
|
754
|
+
return [2, contents];
|
|
916
755
|
}
|
|
917
756
|
});
|
|
918
757
|
}); };
|
|
919
758
|
var deserializeAws_restJson1BatchGetFrameMetricDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
920
|
-
var parsedOutput, _a,
|
|
759
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
921
760
|
var _c;
|
|
922
761
|
return __generator(this, function (_d) {
|
|
923
762
|
switch (_d.label) {
|
|
@@ -950,14 +789,14 @@ var deserializeAws_restJson1BatchGetFrameMetricDataCommandError = function (outp
|
|
|
950
789
|
case 9: throw _d.sent();
|
|
951
790
|
case 10:
|
|
952
791
|
parsedBody = parsedOutput.body;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
$metadata: $metadata,
|
|
792
|
+
throwDefaultError({
|
|
793
|
+
output: output,
|
|
794
|
+
parsedBody: parsedBody,
|
|
795
|
+
exceptionCtor: __BaseException,
|
|
796
|
+
errorCode: errorCode,
|
|
959
797
|
});
|
|
960
|
-
|
|
798
|
+
_d.label = 11;
|
|
799
|
+
case 11: return [2];
|
|
961
800
|
}
|
|
962
801
|
});
|
|
963
802
|
}); };
|
|
@@ -969,21 +808,20 @@ export var deserializeAws_restJson1ConfigureAgentCommand = function (output, con
|
|
|
969
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
970
809
|
return [2, deserializeAws_restJson1ConfigureAgentCommandError(output, context)];
|
|
971
810
|
}
|
|
972
|
-
contents = {
|
|
811
|
+
contents = map({
|
|
973
812
|
$metadata: deserializeMetadata(output),
|
|
974
|
-
|
|
975
|
-
};
|
|
813
|
+
});
|
|
976
814
|
_a = __expectObject;
|
|
977
815
|
return [4, parseBody(output.body, context)];
|
|
978
816
|
case 1:
|
|
979
817
|
data = _a.apply(void 0, [_b.sent()]);
|
|
980
818
|
contents.configuration = deserializeAws_restJson1AgentConfiguration(data, context);
|
|
981
|
-
return [2,
|
|
819
|
+
return [2, contents];
|
|
982
820
|
}
|
|
983
821
|
});
|
|
984
822
|
}); };
|
|
985
823
|
var deserializeAws_restJson1ConfigureAgentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
986
|
-
var parsedOutput, _a,
|
|
824
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
987
825
|
var _c;
|
|
988
826
|
return __generator(this, function (_d) {
|
|
989
827
|
switch (_d.label) {
|
|
@@ -1016,14 +854,14 @@ var deserializeAws_restJson1ConfigureAgentCommandError = function (output, conte
|
|
|
1016
854
|
case 9: throw _d.sent();
|
|
1017
855
|
case 10:
|
|
1018
856
|
parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
$metadata: $metadata,
|
|
857
|
+
throwDefaultError({
|
|
858
|
+
output: output,
|
|
859
|
+
parsedBody: parsedBody,
|
|
860
|
+
exceptionCtor: __BaseException,
|
|
861
|
+
errorCode: errorCode,
|
|
1025
862
|
});
|
|
1026
|
-
|
|
863
|
+
_d.label = 11;
|
|
864
|
+
case 11: return [2];
|
|
1027
865
|
}
|
|
1028
866
|
});
|
|
1029
867
|
}); };
|
|
@@ -1035,21 +873,20 @@ export var deserializeAws_restJson1CreateProfilingGroupCommand = function (outpu
|
|
|
1035
873
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1036
874
|
return [2, deserializeAws_restJson1CreateProfilingGroupCommandError(output, context)];
|
|
1037
875
|
}
|
|
1038
|
-
contents = {
|
|
876
|
+
contents = map({
|
|
1039
877
|
$metadata: deserializeMetadata(output),
|
|
1040
|
-
|
|
1041
|
-
};
|
|
878
|
+
});
|
|
1042
879
|
_a = __expectObject;
|
|
1043
880
|
return [4, parseBody(output.body, context)];
|
|
1044
881
|
case 1:
|
|
1045
882
|
data = _a.apply(void 0, [_b.sent()]);
|
|
1046
883
|
contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
|
|
1047
|
-
return [2,
|
|
884
|
+
return [2, contents];
|
|
1048
885
|
}
|
|
1049
886
|
});
|
|
1050
887
|
}); };
|
|
1051
888
|
var deserializeAws_restJson1CreateProfilingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1052
|
-
var parsedOutput, _a,
|
|
889
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1053
890
|
var _c;
|
|
1054
891
|
return __generator(this, function (_d) {
|
|
1055
892
|
switch (_d.label) {
|
|
@@ -1086,14 +923,14 @@ var deserializeAws_restJson1CreateProfilingGroupCommandError = function (output,
|
|
|
1086
923
|
case 11: throw _d.sent();
|
|
1087
924
|
case 12:
|
|
1088
925
|
parsedBody = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
$metadata: $metadata,
|
|
926
|
+
throwDefaultError({
|
|
927
|
+
output: output,
|
|
928
|
+
parsedBody: parsedBody,
|
|
929
|
+
exceptionCtor: __BaseException,
|
|
930
|
+
errorCode: errorCode,
|
|
1095
931
|
});
|
|
1096
|
-
|
|
932
|
+
_d.label = 13;
|
|
933
|
+
case 13: return [2];
|
|
1097
934
|
}
|
|
1098
935
|
});
|
|
1099
936
|
}); };
|
|
@@ -1105,18 +942,18 @@ export var deserializeAws_restJson1DeleteProfilingGroupCommand = function (outpu
|
|
|
1105
942
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1106
943
|
return [2, deserializeAws_restJson1DeleteProfilingGroupCommandError(output, context)];
|
|
1107
944
|
}
|
|
1108
|
-
contents = {
|
|
945
|
+
contents = map({
|
|
1109
946
|
$metadata: deserializeMetadata(output),
|
|
1110
|
-
};
|
|
947
|
+
});
|
|
1111
948
|
return [4, collectBody(output.body, context)];
|
|
1112
949
|
case 1:
|
|
1113
950
|
_a.sent();
|
|
1114
|
-
return [2,
|
|
951
|
+
return [2, contents];
|
|
1115
952
|
}
|
|
1116
953
|
});
|
|
1117
954
|
}); };
|
|
1118
955
|
var deserializeAws_restJson1DeleteProfilingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1119
|
-
var parsedOutput, _a,
|
|
956
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1120
957
|
var _c;
|
|
1121
958
|
return __generator(this, function (_d) {
|
|
1122
959
|
switch (_d.label) {
|
|
@@ -1153,14 +990,14 @@ var deserializeAws_restJson1DeleteProfilingGroupCommandError = function (output,
|
|
|
1153
990
|
case 11: throw _d.sent();
|
|
1154
991
|
case 12:
|
|
1155
992
|
parsedBody = parsedOutput.body;
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
$metadata: $metadata,
|
|
993
|
+
throwDefaultError({
|
|
994
|
+
output: output,
|
|
995
|
+
parsedBody: parsedBody,
|
|
996
|
+
exceptionCtor: __BaseException,
|
|
997
|
+
errorCode: errorCode,
|
|
1162
998
|
});
|
|
1163
|
-
|
|
999
|
+
_d.label = 13;
|
|
1000
|
+
case 13: return [2];
|
|
1164
1001
|
}
|
|
1165
1002
|
});
|
|
1166
1003
|
}); };
|
|
@@ -1172,21 +1009,20 @@ export var deserializeAws_restJson1DescribeProfilingGroupCommand = function (out
|
|
|
1172
1009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
1010
|
return [2, deserializeAws_restJson1DescribeProfilingGroupCommandError(output, context)];
|
|
1174
1011
|
}
|
|
1175
|
-
contents = {
|
|
1012
|
+
contents = map({
|
|
1176
1013
|
$metadata: deserializeMetadata(output),
|
|
1177
|
-
|
|
1178
|
-
};
|
|
1014
|
+
});
|
|
1179
1015
|
_a = __expectObject;
|
|
1180
1016
|
return [4, parseBody(output.body, context)];
|
|
1181
1017
|
case 1:
|
|
1182
1018
|
data = _a.apply(void 0, [_b.sent()]);
|
|
1183
1019
|
contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
|
|
1184
|
-
return [2,
|
|
1020
|
+
return [2, contents];
|
|
1185
1021
|
}
|
|
1186
1022
|
});
|
|
1187
1023
|
}); };
|
|
1188
1024
|
var deserializeAws_restJson1DescribeProfilingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1189
|
-
var parsedOutput, _a,
|
|
1025
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1190
1026
|
var _c;
|
|
1191
1027
|
return __generator(this, function (_d) {
|
|
1192
1028
|
switch (_d.label) {
|
|
@@ -1219,14 +1055,14 @@ var deserializeAws_restJson1DescribeProfilingGroupCommandError = function (outpu
|
|
|
1219
1055
|
case 9: throw _d.sent();
|
|
1220
1056
|
case 10:
|
|
1221
1057
|
parsedBody = parsedOutput.body;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
$metadata: $metadata,
|
|
1058
|
+
throwDefaultError({
|
|
1059
|
+
output: output,
|
|
1060
|
+
parsedBody: parsedBody,
|
|
1061
|
+
exceptionCtor: __BaseException,
|
|
1062
|
+
errorCode: errorCode,
|
|
1228
1063
|
});
|
|
1229
|
-
|
|
1064
|
+
_d.label = 11;
|
|
1065
|
+
case 11: return [2];
|
|
1230
1066
|
}
|
|
1231
1067
|
});
|
|
1232
1068
|
}); };
|
|
@@ -1238,28 +1074,26 @@ export var deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = func
|
|
|
1238
1074
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
1075
|
return [2, deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError(output, context)];
|
|
1240
1076
|
}
|
|
1241
|
-
contents = {
|
|
1077
|
+
contents = map({
|
|
1242
1078
|
$metadata: deserializeMetadata(output),
|
|
1243
|
-
|
|
1244
|
-
reportSummaries: undefined,
|
|
1245
|
-
};
|
|
1079
|
+
});
|
|
1246
1080
|
_a = __expectNonNull;
|
|
1247
1081
|
_b = __expectObject;
|
|
1248
1082
|
return [4, parseBody(output.body, context)];
|
|
1249
1083
|
case 1:
|
|
1250
1084
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1251
|
-
if (data.nextToken
|
|
1085
|
+
if (data.nextToken != null) {
|
|
1252
1086
|
contents.nextToken = __expectString(data.nextToken);
|
|
1253
1087
|
}
|
|
1254
|
-
if (data.reportSummaries
|
|
1088
|
+
if (data.reportSummaries != null) {
|
|
1255
1089
|
contents.reportSummaries = deserializeAws_restJson1FindingsReportSummaries(data.reportSummaries, context);
|
|
1256
1090
|
}
|
|
1257
|
-
return [2,
|
|
1091
|
+
return [2, contents];
|
|
1258
1092
|
}
|
|
1259
1093
|
});
|
|
1260
1094
|
}); };
|
|
1261
1095
|
var deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1262
|
-
var parsedOutput, _a,
|
|
1096
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1263
1097
|
var _c;
|
|
1264
1098
|
return __generator(this, function (_d) {
|
|
1265
1099
|
switch (_d.label) {
|
|
@@ -1288,14 +1122,14 @@ var deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = functi
|
|
|
1288
1122
|
case 7: throw _d.sent();
|
|
1289
1123
|
case 8:
|
|
1290
1124
|
parsedBody = parsedOutput.body;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
$metadata: $metadata,
|
|
1125
|
+
throwDefaultError({
|
|
1126
|
+
output: output,
|
|
1127
|
+
parsedBody: parsedBody,
|
|
1128
|
+
exceptionCtor: __BaseException,
|
|
1129
|
+
errorCode: errorCode,
|
|
1297
1130
|
});
|
|
1298
|
-
|
|
1131
|
+
_d.label = 9;
|
|
1132
|
+
case 9: return [2];
|
|
1299
1133
|
}
|
|
1300
1134
|
});
|
|
1301
1135
|
}); };
|
|
@@ -1307,24 +1141,23 @@ export var deserializeAws_restJson1GetNotificationConfigurationCommand = functio
|
|
|
1307
1141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
1142
|
return [2, deserializeAws_restJson1GetNotificationConfigurationCommandError(output, context)];
|
|
1309
1143
|
}
|
|
1310
|
-
contents = {
|
|
1144
|
+
contents = map({
|
|
1311
1145
|
$metadata: deserializeMetadata(output),
|
|
1312
|
-
|
|
1313
|
-
};
|
|
1146
|
+
});
|
|
1314
1147
|
_a = __expectNonNull;
|
|
1315
1148
|
_b = __expectObject;
|
|
1316
1149
|
return [4, parseBody(output.body, context)];
|
|
1317
1150
|
case 1:
|
|
1318
1151
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1319
|
-
if (data.notificationConfiguration
|
|
1152
|
+
if (data.notificationConfiguration != null) {
|
|
1320
1153
|
contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
|
|
1321
1154
|
}
|
|
1322
|
-
return [2,
|
|
1155
|
+
return [2, contents];
|
|
1323
1156
|
}
|
|
1324
1157
|
});
|
|
1325
1158
|
}); };
|
|
1326
1159
|
var deserializeAws_restJson1GetNotificationConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1327
|
-
var parsedOutput, _a,
|
|
1160
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1328
1161
|
var _c;
|
|
1329
1162
|
return __generator(this, function (_d) {
|
|
1330
1163
|
switch (_d.label) {
|
|
@@ -1357,14 +1190,14 @@ var deserializeAws_restJson1GetNotificationConfigurationCommandError = function
|
|
|
1357
1190
|
case 9: throw _d.sent();
|
|
1358
1191
|
case 10:
|
|
1359
1192
|
parsedBody = parsedOutput.body;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
$metadata: $metadata,
|
|
1193
|
+
throwDefaultError({
|
|
1194
|
+
output: output,
|
|
1195
|
+
parsedBody: parsedBody,
|
|
1196
|
+
exceptionCtor: __BaseException,
|
|
1197
|
+
errorCode: errorCode,
|
|
1366
1198
|
});
|
|
1367
|
-
|
|
1199
|
+
_d.label = 11;
|
|
1200
|
+
case 11: return [2];
|
|
1368
1201
|
}
|
|
1369
1202
|
});
|
|
1370
1203
|
}); };
|
|
@@ -1376,28 +1209,26 @@ export var deserializeAws_restJson1GetPolicyCommand = function (output, context)
|
|
|
1376
1209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
1210
|
return [2, deserializeAws_restJson1GetPolicyCommandError(output, context)];
|
|
1378
1211
|
}
|
|
1379
|
-
contents = {
|
|
1212
|
+
contents = map({
|
|
1380
1213
|
$metadata: deserializeMetadata(output),
|
|
1381
|
-
|
|
1382
|
-
revisionId: undefined,
|
|
1383
|
-
};
|
|
1214
|
+
});
|
|
1384
1215
|
_a = __expectNonNull;
|
|
1385
1216
|
_b = __expectObject;
|
|
1386
1217
|
return [4, parseBody(output.body, context)];
|
|
1387
1218
|
case 1:
|
|
1388
1219
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1389
|
-
if (data.policy
|
|
1220
|
+
if (data.policy != null) {
|
|
1390
1221
|
contents.policy = __expectString(data.policy);
|
|
1391
1222
|
}
|
|
1392
|
-
if (data.revisionId
|
|
1223
|
+
if (data.revisionId != null) {
|
|
1393
1224
|
contents.revisionId = __expectString(data.revisionId);
|
|
1394
1225
|
}
|
|
1395
|
-
return [2,
|
|
1226
|
+
return [2, contents];
|
|
1396
1227
|
}
|
|
1397
1228
|
});
|
|
1398
1229
|
}); };
|
|
1399
1230
|
var deserializeAws_restJson1GetPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1400
|
-
var parsedOutput, _a,
|
|
1231
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1401
1232
|
var _c;
|
|
1402
1233
|
return __generator(this, function (_d) {
|
|
1403
1234
|
switch (_d.label) {
|
|
@@ -1426,14 +1257,14 @@ var deserializeAws_restJson1GetPolicyCommandError = function (output, context) {
|
|
|
1426
1257
|
case 7: throw _d.sent();
|
|
1427
1258
|
case 8:
|
|
1428
1259
|
parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
$metadata: $metadata,
|
|
1260
|
+
throwDefaultError({
|
|
1261
|
+
output: output,
|
|
1262
|
+
parsedBody: parsedBody,
|
|
1263
|
+
exceptionCtor: __BaseException,
|
|
1264
|
+
errorCode: errorCode,
|
|
1435
1265
|
});
|
|
1436
|
-
|
|
1266
|
+
_d.label = 9;
|
|
1267
|
+
case 9: return [2];
|
|
1437
1268
|
}
|
|
1438
1269
|
});
|
|
1439
1270
|
}); };
|
|
@@ -1445,28 +1276,21 @@ export var deserializeAws_restJson1GetProfileCommand = function (output, context
|
|
|
1445
1276
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1446
1277
|
return [2, deserializeAws_restJson1GetProfileCommandError(output, context)];
|
|
1447
1278
|
}
|
|
1448
|
-
contents = {
|
|
1279
|
+
contents = map({
|
|
1449
1280
|
$metadata: deserializeMetadata(output),
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
};
|
|
1454
|
-
if (output.headers["content-type"] !== undefined) {
|
|
1455
|
-
contents.contentType = output.headers["content-type"];
|
|
1456
|
-
}
|
|
1457
|
-
if (output.headers["content-encoding"] !== undefined) {
|
|
1458
|
-
contents.contentEncoding = output.headers["content-encoding"];
|
|
1459
|
-
}
|
|
1281
|
+
contentType: [, output.headers["content-type"]],
|
|
1282
|
+
contentEncoding: [, output.headers["content-encoding"]],
|
|
1283
|
+
});
|
|
1460
1284
|
return [4, collectBody(output.body, context)];
|
|
1461
1285
|
case 1:
|
|
1462
1286
|
data = _a.sent();
|
|
1463
1287
|
contents.profile = data;
|
|
1464
|
-
return [2,
|
|
1288
|
+
return [2, contents];
|
|
1465
1289
|
}
|
|
1466
1290
|
});
|
|
1467
1291
|
}); };
|
|
1468
1292
|
var deserializeAws_restJson1GetProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1469
|
-
var parsedOutput, _a,
|
|
1293
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1470
1294
|
var _c;
|
|
1471
1295
|
return __generator(this, function (_d) {
|
|
1472
1296
|
switch (_d.label) {
|
|
@@ -1499,14 +1323,14 @@ var deserializeAws_restJson1GetProfileCommandError = function (output, context)
|
|
|
1499
1323
|
case 9: throw _d.sent();
|
|
1500
1324
|
case 10:
|
|
1501
1325
|
parsedBody = parsedOutput.body;
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
$metadata: $metadata,
|
|
1326
|
+
throwDefaultError({
|
|
1327
|
+
output: output,
|
|
1328
|
+
parsedBody: parsedBody,
|
|
1329
|
+
exceptionCtor: __BaseException,
|
|
1330
|
+
errorCode: errorCode,
|
|
1508
1331
|
});
|
|
1509
|
-
|
|
1332
|
+
_d.label = 11;
|
|
1333
|
+
case 11: return [2];
|
|
1510
1334
|
}
|
|
1511
1335
|
});
|
|
1512
1336
|
}); };
|
|
@@ -1518,40 +1342,35 @@ export var deserializeAws_restJson1GetRecommendationsCommand = function (output,
|
|
|
1518
1342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
1343
|
return [2, deserializeAws_restJson1GetRecommendationsCommandError(output, context)];
|
|
1520
1344
|
}
|
|
1521
|
-
contents = {
|
|
1345
|
+
contents = map({
|
|
1522
1346
|
$metadata: deserializeMetadata(output),
|
|
1523
|
-
|
|
1524
|
-
profileEndTime: undefined,
|
|
1525
|
-
profileStartTime: undefined,
|
|
1526
|
-
profilingGroupName: undefined,
|
|
1527
|
-
recommendations: undefined,
|
|
1528
|
-
};
|
|
1347
|
+
});
|
|
1529
1348
|
_a = __expectNonNull;
|
|
1530
1349
|
_b = __expectObject;
|
|
1531
1350
|
return [4, parseBody(output.body, context)];
|
|
1532
1351
|
case 1:
|
|
1533
1352
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1534
|
-
if (data.anomalies
|
|
1353
|
+
if (data.anomalies != null) {
|
|
1535
1354
|
contents.anomalies = deserializeAws_restJson1Anomalies(data.anomalies, context);
|
|
1536
1355
|
}
|
|
1537
|
-
if (data.profileEndTime
|
|
1356
|
+
if (data.profileEndTime != null) {
|
|
1538
1357
|
contents.profileEndTime = __expectNonNull(__parseRfc3339DateTime(data.profileEndTime));
|
|
1539
1358
|
}
|
|
1540
|
-
if (data.profileStartTime
|
|
1359
|
+
if (data.profileStartTime != null) {
|
|
1541
1360
|
contents.profileStartTime = __expectNonNull(__parseRfc3339DateTime(data.profileStartTime));
|
|
1542
1361
|
}
|
|
1543
|
-
if (data.profilingGroupName
|
|
1362
|
+
if (data.profilingGroupName != null) {
|
|
1544
1363
|
contents.profilingGroupName = __expectString(data.profilingGroupName);
|
|
1545
1364
|
}
|
|
1546
|
-
if (data.recommendations
|
|
1365
|
+
if (data.recommendations != null) {
|
|
1547
1366
|
contents.recommendations = deserializeAws_restJson1Recommendations(data.recommendations, context);
|
|
1548
1367
|
}
|
|
1549
|
-
return [2,
|
|
1368
|
+
return [2, contents];
|
|
1550
1369
|
}
|
|
1551
1370
|
});
|
|
1552
1371
|
}); };
|
|
1553
1372
|
var deserializeAws_restJson1GetRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1554
|
-
var parsedOutput, _a,
|
|
1373
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1555
1374
|
var _c;
|
|
1556
1375
|
return __generator(this, function (_d) {
|
|
1557
1376
|
switch (_d.label) {
|
|
@@ -1584,14 +1403,14 @@ var deserializeAws_restJson1GetRecommendationsCommandError = function (output, c
|
|
|
1584
1403
|
case 9: throw _d.sent();
|
|
1585
1404
|
case 10:
|
|
1586
1405
|
parsedBody = parsedOutput.body;
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
$metadata: $metadata,
|
|
1406
|
+
throwDefaultError({
|
|
1407
|
+
output: output,
|
|
1408
|
+
parsedBody: parsedBody,
|
|
1409
|
+
exceptionCtor: __BaseException,
|
|
1410
|
+
errorCode: errorCode,
|
|
1593
1411
|
});
|
|
1594
|
-
|
|
1412
|
+
_d.label = 11;
|
|
1413
|
+
case 11: return [2];
|
|
1595
1414
|
}
|
|
1596
1415
|
});
|
|
1597
1416
|
}); };
|
|
@@ -1603,28 +1422,26 @@ export var deserializeAws_restJson1ListFindingsReportsCommand = function (output
|
|
|
1603
1422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
1423
|
return [2, deserializeAws_restJson1ListFindingsReportsCommandError(output, context)];
|
|
1605
1424
|
}
|
|
1606
|
-
contents = {
|
|
1425
|
+
contents = map({
|
|
1607
1426
|
$metadata: deserializeMetadata(output),
|
|
1608
|
-
|
|
1609
|
-
nextToken: undefined,
|
|
1610
|
-
};
|
|
1427
|
+
});
|
|
1611
1428
|
_a = __expectNonNull;
|
|
1612
1429
|
_b = __expectObject;
|
|
1613
1430
|
return [4, parseBody(output.body, context)];
|
|
1614
1431
|
case 1:
|
|
1615
1432
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1616
|
-
if (data.findingsReportSummaries
|
|
1433
|
+
if (data.findingsReportSummaries != null) {
|
|
1617
1434
|
contents.findingsReportSummaries = deserializeAws_restJson1FindingsReportSummaries(data.findingsReportSummaries, context);
|
|
1618
1435
|
}
|
|
1619
|
-
if (data.nextToken
|
|
1436
|
+
if (data.nextToken != null) {
|
|
1620
1437
|
contents.nextToken = __expectString(data.nextToken);
|
|
1621
1438
|
}
|
|
1622
|
-
return [2,
|
|
1439
|
+
return [2, contents];
|
|
1623
1440
|
}
|
|
1624
1441
|
});
|
|
1625
1442
|
}); };
|
|
1626
1443
|
var deserializeAws_restJson1ListFindingsReportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1627
|
-
var parsedOutput, _a,
|
|
1444
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1628
1445
|
var _c;
|
|
1629
1446
|
return __generator(this, function (_d) {
|
|
1630
1447
|
switch (_d.label) {
|
|
@@ -1657,14 +1474,14 @@ var deserializeAws_restJson1ListFindingsReportsCommandError = function (output,
|
|
|
1657
1474
|
case 9: throw _d.sent();
|
|
1658
1475
|
case 10:
|
|
1659
1476
|
parsedBody = parsedOutput.body;
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
$metadata: $metadata,
|
|
1477
|
+
throwDefaultError({
|
|
1478
|
+
output: output,
|
|
1479
|
+
parsedBody: parsedBody,
|
|
1480
|
+
exceptionCtor: __BaseException,
|
|
1481
|
+
errorCode: errorCode,
|
|
1666
1482
|
});
|
|
1667
|
-
|
|
1483
|
+
_d.label = 11;
|
|
1484
|
+
case 11: return [2];
|
|
1668
1485
|
}
|
|
1669
1486
|
});
|
|
1670
1487
|
}); };
|
|
@@ -1676,28 +1493,26 @@ export var deserializeAws_restJson1ListProfileTimesCommand = function (output, c
|
|
|
1676
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1677
1494
|
return [2, deserializeAws_restJson1ListProfileTimesCommandError(output, context)];
|
|
1678
1495
|
}
|
|
1679
|
-
contents = {
|
|
1496
|
+
contents = map({
|
|
1680
1497
|
$metadata: deserializeMetadata(output),
|
|
1681
|
-
|
|
1682
|
-
profileTimes: undefined,
|
|
1683
|
-
};
|
|
1498
|
+
});
|
|
1684
1499
|
_a = __expectNonNull;
|
|
1685
1500
|
_b = __expectObject;
|
|
1686
1501
|
return [4, parseBody(output.body, context)];
|
|
1687
1502
|
case 1:
|
|
1688
1503
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1689
|
-
if (data.nextToken
|
|
1504
|
+
if (data.nextToken != null) {
|
|
1690
1505
|
contents.nextToken = __expectString(data.nextToken);
|
|
1691
1506
|
}
|
|
1692
|
-
if (data.profileTimes
|
|
1507
|
+
if (data.profileTimes != null) {
|
|
1693
1508
|
contents.profileTimes = deserializeAws_restJson1ProfileTimes(data.profileTimes, context);
|
|
1694
1509
|
}
|
|
1695
|
-
return [2,
|
|
1510
|
+
return [2, contents];
|
|
1696
1511
|
}
|
|
1697
1512
|
});
|
|
1698
1513
|
}); };
|
|
1699
1514
|
var deserializeAws_restJson1ListProfileTimesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1700
|
-
var parsedOutput, _a,
|
|
1515
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1701
1516
|
var _c;
|
|
1702
1517
|
return __generator(this, function (_d) {
|
|
1703
1518
|
switch (_d.label) {
|
|
@@ -1730,14 +1545,14 @@ var deserializeAws_restJson1ListProfileTimesCommandError = function (output, con
|
|
|
1730
1545
|
case 9: throw _d.sent();
|
|
1731
1546
|
case 10:
|
|
1732
1547
|
parsedBody = parsedOutput.body;
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
$metadata: $metadata,
|
|
1548
|
+
throwDefaultError({
|
|
1549
|
+
output: output,
|
|
1550
|
+
parsedBody: parsedBody,
|
|
1551
|
+
exceptionCtor: __BaseException,
|
|
1552
|
+
errorCode: errorCode,
|
|
1739
1553
|
});
|
|
1740
|
-
|
|
1554
|
+
_d.label = 11;
|
|
1555
|
+
case 11: return [2];
|
|
1741
1556
|
}
|
|
1742
1557
|
});
|
|
1743
1558
|
}); };
|
|
@@ -1749,32 +1564,29 @@ export var deserializeAws_restJson1ListProfilingGroupsCommand = function (output
|
|
|
1749
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1750
1565
|
return [2, deserializeAws_restJson1ListProfilingGroupsCommandError(output, context)];
|
|
1751
1566
|
}
|
|
1752
|
-
contents = {
|
|
1567
|
+
contents = map({
|
|
1753
1568
|
$metadata: deserializeMetadata(output),
|
|
1754
|
-
|
|
1755
|
-
profilingGroupNames: undefined,
|
|
1756
|
-
profilingGroups: undefined,
|
|
1757
|
-
};
|
|
1569
|
+
});
|
|
1758
1570
|
_a = __expectNonNull;
|
|
1759
1571
|
_b = __expectObject;
|
|
1760
1572
|
return [4, parseBody(output.body, context)];
|
|
1761
1573
|
case 1:
|
|
1762
1574
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1763
|
-
if (data.nextToken
|
|
1575
|
+
if (data.nextToken != null) {
|
|
1764
1576
|
contents.nextToken = __expectString(data.nextToken);
|
|
1765
1577
|
}
|
|
1766
|
-
if (data.profilingGroupNames
|
|
1578
|
+
if (data.profilingGroupNames != null) {
|
|
1767
1579
|
contents.profilingGroupNames = deserializeAws_restJson1ProfilingGroupNames(data.profilingGroupNames, context);
|
|
1768
1580
|
}
|
|
1769
|
-
if (data.profilingGroups
|
|
1581
|
+
if (data.profilingGroups != null) {
|
|
1770
1582
|
contents.profilingGroups = deserializeAws_restJson1ProfilingGroupDescriptions(data.profilingGroups, context);
|
|
1771
1583
|
}
|
|
1772
|
-
return [2,
|
|
1584
|
+
return [2, contents];
|
|
1773
1585
|
}
|
|
1774
1586
|
});
|
|
1775
1587
|
}); };
|
|
1776
1588
|
var deserializeAws_restJson1ListProfilingGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1777
|
-
var parsedOutput, _a,
|
|
1589
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1778
1590
|
var _c;
|
|
1779
1591
|
return __generator(this, function (_d) {
|
|
1780
1592
|
switch (_d.label) {
|
|
@@ -1799,14 +1611,14 @@ var deserializeAws_restJson1ListProfilingGroupsCommandError = function (output,
|
|
|
1799
1611
|
case 5: throw _d.sent();
|
|
1800
1612
|
case 6:
|
|
1801
1613
|
parsedBody = parsedOutput.body;
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
$metadata: $metadata,
|
|
1614
|
+
throwDefaultError({
|
|
1615
|
+
output: output,
|
|
1616
|
+
parsedBody: parsedBody,
|
|
1617
|
+
exceptionCtor: __BaseException,
|
|
1618
|
+
errorCode: errorCode,
|
|
1808
1619
|
});
|
|
1809
|
-
|
|
1620
|
+
_d.label = 7;
|
|
1621
|
+
case 7: return [2];
|
|
1810
1622
|
}
|
|
1811
1623
|
});
|
|
1812
1624
|
}); };
|
|
@@ -1818,24 +1630,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1818
1630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1819
1631
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1820
1632
|
}
|
|
1821
|
-
contents = {
|
|
1633
|
+
contents = map({
|
|
1822
1634
|
$metadata: deserializeMetadata(output),
|
|
1823
|
-
|
|
1824
|
-
};
|
|
1635
|
+
});
|
|
1825
1636
|
_a = __expectNonNull;
|
|
1826
1637
|
_b = __expectObject;
|
|
1827
1638
|
return [4, parseBody(output.body, context)];
|
|
1828
1639
|
case 1:
|
|
1829
1640
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1830
|
-
if (data.tags
|
|
1641
|
+
if (data.tags != null) {
|
|
1831
1642
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1832
1643
|
}
|
|
1833
|
-
return [2,
|
|
1644
|
+
return [2, contents];
|
|
1834
1645
|
}
|
|
1835
1646
|
});
|
|
1836
1647
|
}); };
|
|
1837
1648
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1838
|
-
var parsedOutput, _a,
|
|
1649
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1839
1650
|
var _c;
|
|
1840
1651
|
return __generator(this, function (_d) {
|
|
1841
1652
|
switch (_d.label) {
|
|
@@ -1864,14 +1675,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1864
1675
|
case 7: throw _d.sent();
|
|
1865
1676
|
case 8:
|
|
1866
1677
|
parsedBody = parsedOutput.body;
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
$metadata: $metadata,
|
|
1678
|
+
throwDefaultError({
|
|
1679
|
+
output: output,
|
|
1680
|
+
parsedBody: parsedBody,
|
|
1681
|
+
exceptionCtor: __BaseException,
|
|
1682
|
+
errorCode: errorCode,
|
|
1873
1683
|
});
|
|
1874
|
-
|
|
1684
|
+
_d.label = 9;
|
|
1685
|
+
case 9: return [2];
|
|
1875
1686
|
}
|
|
1876
1687
|
});
|
|
1877
1688
|
}); };
|
|
@@ -1883,18 +1694,18 @@ export var deserializeAws_restJson1PostAgentProfileCommand = function (output, c
|
|
|
1883
1694
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1884
1695
|
return [2, deserializeAws_restJson1PostAgentProfileCommandError(output, context)];
|
|
1885
1696
|
}
|
|
1886
|
-
contents = {
|
|
1697
|
+
contents = map({
|
|
1887
1698
|
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1699
|
+
});
|
|
1889
1700
|
return [4, collectBody(output.body, context)];
|
|
1890
1701
|
case 1:
|
|
1891
1702
|
_a.sent();
|
|
1892
|
-
return [2,
|
|
1703
|
+
return [2, contents];
|
|
1893
1704
|
}
|
|
1894
1705
|
});
|
|
1895
1706
|
}); };
|
|
1896
1707
|
var deserializeAws_restJson1PostAgentProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1897
|
-
var parsedOutput, _a,
|
|
1708
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1898
1709
|
var _c;
|
|
1899
1710
|
return __generator(this, function (_d) {
|
|
1900
1711
|
switch (_d.label) {
|
|
@@ -1927,14 +1738,14 @@ var deserializeAws_restJson1PostAgentProfileCommandError = function (output, con
|
|
|
1927
1738
|
case 9: throw _d.sent();
|
|
1928
1739
|
case 10:
|
|
1929
1740
|
parsedBody = parsedOutput.body;
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
$metadata: $metadata,
|
|
1741
|
+
throwDefaultError({
|
|
1742
|
+
output: output,
|
|
1743
|
+
parsedBody: parsedBody,
|
|
1744
|
+
exceptionCtor: __BaseException,
|
|
1745
|
+
errorCode: errorCode,
|
|
1936
1746
|
});
|
|
1937
|
-
|
|
1747
|
+
_d.label = 11;
|
|
1748
|
+
case 11: return [2];
|
|
1938
1749
|
}
|
|
1939
1750
|
});
|
|
1940
1751
|
}); };
|
|
@@ -1946,28 +1757,26 @@ export var deserializeAws_restJson1PutPermissionCommand = function (output, cont
|
|
|
1946
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1947
1758
|
return [2, deserializeAws_restJson1PutPermissionCommandError(output, context)];
|
|
1948
1759
|
}
|
|
1949
|
-
contents = {
|
|
1760
|
+
contents = map({
|
|
1950
1761
|
$metadata: deserializeMetadata(output),
|
|
1951
|
-
|
|
1952
|
-
revisionId: undefined,
|
|
1953
|
-
};
|
|
1762
|
+
});
|
|
1954
1763
|
_a = __expectNonNull;
|
|
1955
1764
|
_b = __expectObject;
|
|
1956
1765
|
return [4, parseBody(output.body, context)];
|
|
1957
1766
|
case 1:
|
|
1958
1767
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1959
|
-
if (data.policy
|
|
1768
|
+
if (data.policy != null) {
|
|
1960
1769
|
contents.policy = __expectString(data.policy);
|
|
1961
1770
|
}
|
|
1962
|
-
if (data.revisionId
|
|
1771
|
+
if (data.revisionId != null) {
|
|
1963
1772
|
contents.revisionId = __expectString(data.revisionId);
|
|
1964
1773
|
}
|
|
1965
|
-
return [2,
|
|
1774
|
+
return [2, contents];
|
|
1966
1775
|
}
|
|
1967
1776
|
});
|
|
1968
1777
|
}); };
|
|
1969
1778
|
var deserializeAws_restJson1PutPermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1970
|
-
var parsedOutput, _a,
|
|
1779
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1971
1780
|
var _c;
|
|
1972
1781
|
return __generator(this, function (_d) {
|
|
1973
1782
|
switch (_d.label) {
|
|
@@ -2004,14 +1813,14 @@ var deserializeAws_restJson1PutPermissionCommandError = function (output, contex
|
|
|
2004
1813
|
case 11: throw _d.sent();
|
|
2005
1814
|
case 12:
|
|
2006
1815
|
parsedBody = parsedOutput.body;
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
$metadata: $metadata,
|
|
1816
|
+
throwDefaultError({
|
|
1817
|
+
output: output,
|
|
1818
|
+
parsedBody: parsedBody,
|
|
1819
|
+
exceptionCtor: __BaseException,
|
|
1820
|
+
errorCode: errorCode,
|
|
2013
1821
|
});
|
|
2014
|
-
|
|
1822
|
+
_d.label = 13;
|
|
1823
|
+
case 13: return [2];
|
|
2015
1824
|
}
|
|
2016
1825
|
});
|
|
2017
1826
|
}); };
|
|
@@ -2023,24 +1832,23 @@ export var deserializeAws_restJson1RemoveNotificationChannelCommand = function (
|
|
|
2023
1832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2024
1833
|
return [2, deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context)];
|
|
2025
1834
|
}
|
|
2026
|
-
contents = {
|
|
1835
|
+
contents = map({
|
|
2027
1836
|
$metadata: deserializeMetadata(output),
|
|
2028
|
-
|
|
2029
|
-
};
|
|
1837
|
+
});
|
|
2030
1838
|
_a = __expectNonNull;
|
|
2031
1839
|
_b = __expectObject;
|
|
2032
1840
|
return [4, parseBody(output.body, context)];
|
|
2033
1841
|
case 1:
|
|
2034
1842
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2035
|
-
if (data.notificationConfiguration
|
|
1843
|
+
if (data.notificationConfiguration != null) {
|
|
2036
1844
|
contents.notificationConfiguration = deserializeAws_restJson1NotificationConfiguration(data.notificationConfiguration, context);
|
|
2037
1845
|
}
|
|
2038
|
-
return [2,
|
|
1846
|
+
return [2, contents];
|
|
2039
1847
|
}
|
|
2040
1848
|
});
|
|
2041
1849
|
}); };
|
|
2042
1850
|
var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2043
|
-
var parsedOutput, _a,
|
|
1851
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2044
1852
|
var _c;
|
|
2045
1853
|
return __generator(this, function (_d) {
|
|
2046
1854
|
switch (_d.label) {
|
|
@@ -2073,14 +1881,14 @@ var deserializeAws_restJson1RemoveNotificationChannelCommandError = function (ou
|
|
|
2073
1881
|
case 9: throw _d.sent();
|
|
2074
1882
|
case 10:
|
|
2075
1883
|
parsedBody = parsedOutput.body;
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
$metadata: $metadata,
|
|
1884
|
+
throwDefaultError({
|
|
1885
|
+
output: output,
|
|
1886
|
+
parsedBody: parsedBody,
|
|
1887
|
+
exceptionCtor: __BaseException,
|
|
1888
|
+
errorCode: errorCode,
|
|
2082
1889
|
});
|
|
2083
|
-
|
|
1890
|
+
_d.label = 11;
|
|
1891
|
+
case 11: return [2];
|
|
2084
1892
|
}
|
|
2085
1893
|
});
|
|
2086
1894
|
}); };
|
|
@@ -2092,28 +1900,26 @@ export var deserializeAws_restJson1RemovePermissionCommand = function (output, c
|
|
|
2092
1900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2093
1901
|
return [2, deserializeAws_restJson1RemovePermissionCommandError(output, context)];
|
|
2094
1902
|
}
|
|
2095
|
-
contents = {
|
|
1903
|
+
contents = map({
|
|
2096
1904
|
$metadata: deserializeMetadata(output),
|
|
2097
|
-
|
|
2098
|
-
revisionId: undefined,
|
|
2099
|
-
};
|
|
1905
|
+
});
|
|
2100
1906
|
_a = __expectNonNull;
|
|
2101
1907
|
_b = __expectObject;
|
|
2102
1908
|
return [4, parseBody(output.body, context)];
|
|
2103
1909
|
case 1:
|
|
2104
1910
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2105
|
-
if (data.policy
|
|
1911
|
+
if (data.policy != null) {
|
|
2106
1912
|
contents.policy = __expectString(data.policy);
|
|
2107
1913
|
}
|
|
2108
|
-
if (data.revisionId
|
|
1914
|
+
if (data.revisionId != null) {
|
|
2109
1915
|
contents.revisionId = __expectString(data.revisionId);
|
|
2110
1916
|
}
|
|
2111
|
-
return [2,
|
|
1917
|
+
return [2, contents];
|
|
2112
1918
|
}
|
|
2113
1919
|
});
|
|
2114
1920
|
}); };
|
|
2115
1921
|
var deserializeAws_restJson1RemovePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2116
|
-
var parsedOutput, _a,
|
|
1922
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2117
1923
|
var _c;
|
|
2118
1924
|
return __generator(this, function (_d) {
|
|
2119
1925
|
switch (_d.label) {
|
|
@@ -2150,14 +1956,14 @@ var deserializeAws_restJson1RemovePermissionCommandError = function (output, con
|
|
|
2150
1956
|
case 11: throw _d.sent();
|
|
2151
1957
|
case 12:
|
|
2152
1958
|
parsedBody = parsedOutput.body;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
$metadata: $metadata,
|
|
1959
|
+
throwDefaultError({
|
|
1960
|
+
output: output,
|
|
1961
|
+
parsedBody: parsedBody,
|
|
1962
|
+
exceptionCtor: __BaseException,
|
|
1963
|
+
errorCode: errorCode,
|
|
2159
1964
|
});
|
|
2160
|
-
|
|
1965
|
+
_d.label = 13;
|
|
1966
|
+
case 13: return [2];
|
|
2161
1967
|
}
|
|
2162
1968
|
});
|
|
2163
1969
|
}); };
|
|
@@ -2169,18 +1975,18 @@ export var deserializeAws_restJson1SubmitFeedbackCommand = function (output, con
|
|
|
2169
1975
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2170
1976
|
return [2, deserializeAws_restJson1SubmitFeedbackCommandError(output, context)];
|
|
2171
1977
|
}
|
|
2172
|
-
contents = {
|
|
1978
|
+
contents = map({
|
|
2173
1979
|
$metadata: deserializeMetadata(output),
|
|
2174
|
-
};
|
|
1980
|
+
});
|
|
2175
1981
|
return [4, collectBody(output.body, context)];
|
|
2176
1982
|
case 1:
|
|
2177
1983
|
_a.sent();
|
|
2178
|
-
return [2,
|
|
1984
|
+
return [2, contents];
|
|
2179
1985
|
}
|
|
2180
1986
|
});
|
|
2181
1987
|
}); };
|
|
2182
1988
|
var deserializeAws_restJson1SubmitFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
|
-
var parsedOutput, _a,
|
|
1989
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2184
1990
|
var _c;
|
|
2185
1991
|
return __generator(this, function (_d) {
|
|
2186
1992
|
switch (_d.label) {
|
|
@@ -2213,14 +2019,14 @@ var deserializeAws_restJson1SubmitFeedbackCommandError = function (output, conte
|
|
|
2213
2019
|
case 9: throw _d.sent();
|
|
2214
2020
|
case 10:
|
|
2215
2021
|
parsedBody = parsedOutput.body;
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
$metadata: $metadata,
|
|
2022
|
+
throwDefaultError({
|
|
2023
|
+
output: output,
|
|
2024
|
+
parsedBody: parsedBody,
|
|
2025
|
+
exceptionCtor: __BaseException,
|
|
2026
|
+
errorCode: errorCode,
|
|
2222
2027
|
});
|
|
2223
|
-
|
|
2028
|
+
_d.label = 11;
|
|
2029
|
+
case 11: return [2];
|
|
2224
2030
|
}
|
|
2225
2031
|
});
|
|
2226
2032
|
}); };
|
|
@@ -2232,18 +2038,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2232
2038
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2233
2039
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2234
2040
|
}
|
|
2235
|
-
contents = {
|
|
2041
|
+
contents = map({
|
|
2236
2042
|
$metadata: deserializeMetadata(output),
|
|
2237
|
-
};
|
|
2043
|
+
});
|
|
2238
2044
|
return [4, collectBody(output.body, context)];
|
|
2239
2045
|
case 1:
|
|
2240
2046
|
_a.sent();
|
|
2241
|
-
return [2,
|
|
2047
|
+
return [2, contents];
|
|
2242
2048
|
}
|
|
2243
2049
|
});
|
|
2244
2050
|
}); };
|
|
2245
2051
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2246
|
-
var parsedOutput, _a,
|
|
2052
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2247
2053
|
var _c;
|
|
2248
2054
|
return __generator(this, function (_d) {
|
|
2249
2055
|
switch (_d.label) {
|
|
@@ -2272,14 +2078,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2272
2078
|
case 7: throw _d.sent();
|
|
2273
2079
|
case 8:
|
|
2274
2080
|
parsedBody = parsedOutput.body;
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
$metadata: $metadata,
|
|
2081
|
+
throwDefaultError({
|
|
2082
|
+
output: output,
|
|
2083
|
+
parsedBody: parsedBody,
|
|
2084
|
+
exceptionCtor: __BaseException,
|
|
2085
|
+
errorCode: errorCode,
|
|
2281
2086
|
});
|
|
2282
|
-
|
|
2087
|
+
_d.label = 9;
|
|
2088
|
+
case 9: return [2];
|
|
2283
2089
|
}
|
|
2284
2090
|
});
|
|
2285
2091
|
}); };
|
|
@@ -2291,18 +2097,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2291
2097
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2292
2098
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2293
2099
|
}
|
|
2294
|
-
contents = {
|
|
2100
|
+
contents = map({
|
|
2295
2101
|
$metadata: deserializeMetadata(output),
|
|
2296
|
-
};
|
|
2102
|
+
});
|
|
2297
2103
|
return [4, collectBody(output.body, context)];
|
|
2298
2104
|
case 1:
|
|
2299
2105
|
_a.sent();
|
|
2300
|
-
return [2,
|
|
2106
|
+
return [2, contents];
|
|
2301
2107
|
}
|
|
2302
2108
|
});
|
|
2303
2109
|
}); };
|
|
2304
2110
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2305
|
-
var parsedOutput, _a,
|
|
2111
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2306
2112
|
var _c;
|
|
2307
2113
|
return __generator(this, function (_d) {
|
|
2308
2114
|
switch (_d.label) {
|
|
@@ -2331,14 +2137,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2331
2137
|
case 7: throw _d.sent();
|
|
2332
2138
|
case 8:
|
|
2333
2139
|
parsedBody = parsedOutput.body;
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
$metadata: $metadata,
|
|
2140
|
+
throwDefaultError({
|
|
2141
|
+
output: output,
|
|
2142
|
+
parsedBody: parsedBody,
|
|
2143
|
+
exceptionCtor: __BaseException,
|
|
2144
|
+
errorCode: errorCode,
|
|
2340
2145
|
});
|
|
2341
|
-
|
|
2146
|
+
_d.label = 9;
|
|
2147
|
+
case 9: return [2];
|
|
2342
2148
|
}
|
|
2343
2149
|
});
|
|
2344
2150
|
}); };
|
|
@@ -2350,21 +2156,20 @@ export var deserializeAws_restJson1UpdateProfilingGroupCommand = function (outpu
|
|
|
2350
2156
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2351
2157
|
return [2, deserializeAws_restJson1UpdateProfilingGroupCommandError(output, context)];
|
|
2352
2158
|
}
|
|
2353
|
-
contents = {
|
|
2159
|
+
contents = map({
|
|
2354
2160
|
$metadata: deserializeMetadata(output),
|
|
2355
|
-
|
|
2356
|
-
};
|
|
2161
|
+
});
|
|
2357
2162
|
_a = __expectObject;
|
|
2358
2163
|
return [4, parseBody(output.body, context)];
|
|
2359
2164
|
case 1:
|
|
2360
2165
|
data = _a.apply(void 0, [_b.sent()]);
|
|
2361
2166
|
contents.profilingGroup = deserializeAws_restJson1ProfilingGroupDescription(data, context);
|
|
2362
|
-
return [2,
|
|
2167
|
+
return [2, contents];
|
|
2363
2168
|
}
|
|
2364
2169
|
});
|
|
2365
2170
|
}); };
|
|
2366
2171
|
var deserializeAws_restJson1UpdateProfilingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2367
|
-
var parsedOutput, _a,
|
|
2172
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2368
2173
|
var _c;
|
|
2369
2174
|
return __generator(this, function (_d) {
|
|
2370
2175
|
switch (_d.label) {
|
|
@@ -2401,23 +2206,24 @@ var deserializeAws_restJson1UpdateProfilingGroupCommandError = function (output,
|
|
|
2401
2206
|
case 11: throw _d.sent();
|
|
2402
2207
|
case 12:
|
|
2403
2208
|
parsedBody = parsedOutput.body;
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
$metadata: $metadata,
|
|
2209
|
+
throwDefaultError({
|
|
2210
|
+
output: output,
|
|
2211
|
+
parsedBody: parsedBody,
|
|
2212
|
+
exceptionCtor: __BaseException,
|
|
2213
|
+
errorCode: errorCode,
|
|
2410
2214
|
});
|
|
2411
|
-
|
|
2215
|
+
_d.label = 13;
|
|
2216
|
+
case 13: return [2];
|
|
2412
2217
|
}
|
|
2413
2218
|
});
|
|
2414
2219
|
}); };
|
|
2220
|
+
var map = __map;
|
|
2415
2221
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2416
2222
|
var contents, data, exception;
|
|
2417
2223
|
return __generator(this, function (_a) {
|
|
2418
|
-
contents = {};
|
|
2224
|
+
contents = map({});
|
|
2419
2225
|
data = parsedOutput.body;
|
|
2420
|
-
if (data.message
|
|
2226
|
+
if (data.message != null) {
|
|
2421
2227
|
contents.message = __expectString(data.message);
|
|
2422
2228
|
}
|
|
2423
2229
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2427,9 +2233,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2427
2233
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2428
2234
|
var contents, data, exception;
|
|
2429
2235
|
return __generator(this, function (_a) {
|
|
2430
|
-
contents = {};
|
|
2236
|
+
contents = map({});
|
|
2431
2237
|
data = parsedOutput.body;
|
|
2432
|
-
if (data.message
|
|
2238
|
+
if (data.message != null) {
|
|
2433
2239
|
contents.message = __expectString(data.message);
|
|
2434
2240
|
}
|
|
2435
2241
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2439,9 +2245,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2439
2245
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2440
2246
|
var contents, data, exception;
|
|
2441
2247
|
return __generator(this, function (_a) {
|
|
2442
|
-
contents = {};
|
|
2248
|
+
contents = map({});
|
|
2443
2249
|
data = parsedOutput.body;
|
|
2444
|
-
if (data.message
|
|
2250
|
+
if (data.message != null) {
|
|
2445
2251
|
contents.message = __expectString(data.message);
|
|
2446
2252
|
}
|
|
2447
2253
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2451,9 +2257,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2451
2257
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2452
2258
|
var contents, data, exception;
|
|
2453
2259
|
return __generator(this, function (_a) {
|
|
2454
|
-
contents = {};
|
|
2260
|
+
contents = map({});
|
|
2455
2261
|
data = parsedOutput.body;
|
|
2456
|
-
if (data.message
|
|
2262
|
+
if (data.message != null) {
|
|
2457
2263
|
contents.message = __expectString(data.message);
|
|
2458
2264
|
}
|
|
2459
2265
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2463,9 +2269,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2463
2269
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2464
2270
|
var contents, data, exception;
|
|
2465
2271
|
return __generator(this, function (_a) {
|
|
2466
|
-
contents = {};
|
|
2272
|
+
contents = map({});
|
|
2467
2273
|
data = parsedOutput.body;
|
|
2468
|
-
if (data.message
|
|
2274
|
+
if (data.message != null) {
|
|
2469
2275
|
contents.message = __expectString(data.message);
|
|
2470
2276
|
}
|
|
2471
2277
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2475,9 +2281,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2475
2281
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2476
2282
|
var contents, data, exception;
|
|
2477
2283
|
return __generator(this, function (_a) {
|
|
2478
|
-
contents = {};
|
|
2284
|
+
contents = map({});
|
|
2479
2285
|
data = parsedOutput.body;
|
|
2480
|
-
if (data.message
|
|
2286
|
+
if (data.message != null) {
|
|
2481
2287
|
contents.message = __expectString(data.message);
|
|
2482
2288
|
}
|
|
2483
2289
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2496,9 +2302,6 @@ var serializeAws_restJson1Channels = function (input, context) {
|
|
|
2496
2302
|
return input
|
|
2497
2303
|
.filter(function (e) { return e != null; })
|
|
2498
2304
|
.map(function (entry) {
|
|
2499
|
-
if (entry === null) {
|
|
2500
|
-
return null;
|
|
2501
|
-
}
|
|
2502
2305
|
return serializeAws_restJson1Channel(entry, context);
|
|
2503
2306
|
});
|
|
2504
2307
|
};
|
|
@@ -2506,9 +2309,6 @@ var serializeAws_restJson1EventPublishers = function (input, context) {
|
|
|
2506
2309
|
return input
|
|
2507
2310
|
.filter(function (e) { return e != null; })
|
|
2508
2311
|
.map(function (entry) {
|
|
2509
|
-
if (entry === null) {
|
|
2510
|
-
return null;
|
|
2511
|
-
}
|
|
2512
2312
|
return entry;
|
|
2513
2313
|
});
|
|
2514
2314
|
};
|
|
@@ -2521,9 +2321,6 @@ var serializeAws_restJson1FrameMetrics = function (input, context) {
|
|
|
2521
2321
|
return input
|
|
2522
2322
|
.filter(function (e) { return e != null; })
|
|
2523
2323
|
.map(function (entry) {
|
|
2524
|
-
if (entry === null) {
|
|
2525
|
-
return null;
|
|
2526
|
-
}
|
|
2527
2324
|
return serializeAws_restJson1FrameMetric(entry, context);
|
|
2528
2325
|
});
|
|
2529
2326
|
};
|
|
@@ -2541,9 +2338,6 @@ var serializeAws_restJson1Principals = function (input, context) {
|
|
|
2541
2338
|
return input
|
|
2542
2339
|
.filter(function (e) { return e != null; })
|
|
2543
2340
|
.map(function (entry) {
|
|
2544
|
-
if (entry === null) {
|
|
2545
|
-
return null;
|
|
2546
|
-
}
|
|
2547
2341
|
return entry;
|
|
2548
2342
|
});
|
|
2549
2343
|
};
|
|
@@ -2561,9 +2355,6 @@ var serializeAws_restJson1ThreadStates = function (input, context) {
|
|
|
2561
2355
|
return input
|
|
2562
2356
|
.filter(function (e) { return e != null; })
|
|
2563
2357
|
.map(function (entry) {
|
|
2564
|
-
if (entry === null) {
|
|
2565
|
-
return null;
|
|
2566
|
-
}
|
|
2567
2358
|
return entry;
|
|
2568
2359
|
});
|
|
2569
2360
|
};
|