@aws-sdk/client-codeguruprofiler 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AddNotificationChannelsCommand.js +2 -2
- package/dist-cjs/commands/BatchGetFrameMetricDataCommand.js +2 -2
- package/dist-cjs/commands/ConfigureAgentCommand.js +2 -2
- package/dist-cjs/commands/CreateProfilingGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfilingGroupCommand.js +2 -2
- package/dist-cjs/commands/DescribeProfilingGroupCommand.js +2 -2
- package/dist-cjs/commands/GetFindingsReportAccountSummaryCommand.js +2 -2
- package/dist-cjs/commands/GetNotificationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetProfileCommand.js +2 -2
- package/dist-cjs/commands/GetRecommendationsCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsReportsCommand.js +2 -2
- package/dist-cjs/commands/ListProfileTimesCommand.js +2 -2
- package/dist-cjs/commands/ListProfilingGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PostAgentProfileCommand.js +2 -2
- package/dist-cjs/commands/PutPermissionCommand.js +2 -2
- package/dist-cjs/commands/RemoveNotificationChannelCommand.js +2 -2
- package/dist-cjs/commands/RemovePermissionCommand.js +2 -2
- package/dist-cjs/commands/SubmitFeedbackCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateProfilingGroupCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +346 -360
- package/dist-es/commands/AddNotificationChannelsCommand.js +3 -3
- package/dist-es/commands/BatchGetFrameMetricDataCommand.js +3 -3
- package/dist-es/commands/ConfigureAgentCommand.js +3 -3
- package/dist-es/commands/CreateProfilingGroupCommand.js +3 -3
- package/dist-es/commands/DeleteProfilingGroupCommand.js +3 -3
- package/dist-es/commands/DescribeProfilingGroupCommand.js +3 -3
- package/dist-es/commands/GetFindingsReportAccountSummaryCommand.js +3 -3
- package/dist-es/commands/GetNotificationConfigurationCommand.js +3 -3
- package/dist-es/commands/GetPolicyCommand.js +3 -3
- package/dist-es/commands/GetProfileCommand.js +3 -3
- package/dist-es/commands/GetRecommendationsCommand.js +3 -3
- package/dist-es/commands/ListFindingsReportsCommand.js +3 -3
- package/dist-es/commands/ListProfileTimesCommand.js +3 -3
- package/dist-es/commands/ListProfilingGroupsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PostAgentProfileCommand.js +3 -3
- package/dist-es/commands/PutPermissionCommand.js +3 -3
- package/dist-es/commands/RemoveNotificationChannelCommand.js +3 -3
- package/dist-es/commands/RemovePermissionCommand.js +3 -3
- package/dist-es/commands/SubmitFeedbackCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateProfilingGroupCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +299 -313
- package/dist-types/protocols/Aws_restJson1.d.ts +184 -46
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +46 -46
- package/package.json +35 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateProfilingGroupCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SubmitFeedbackCommand = exports.de_RemovePermissionCommand = exports.de_RemoveNotificationChannelCommand = exports.de_PutPermissionCommand = exports.de_PostAgentProfileCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProfilingGroupsCommand = exports.de_ListProfileTimesCommand = exports.de_ListFindingsReportsCommand = exports.de_GetRecommendationsCommand = exports.de_GetProfileCommand = exports.de_GetPolicyCommand = exports.de_GetNotificationConfigurationCommand = exports.de_GetFindingsReportAccountSummaryCommand = exports.de_DescribeProfilingGroupCommand = exports.de_DeleteProfilingGroupCommand = exports.de_CreateProfilingGroupCommand = exports.de_ConfigureAgentCommand = exports.de_BatchGetFrameMetricDataCommand = exports.de_AddNotificationChannelsCommand = exports.se_UpdateProfilingGroupCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SubmitFeedbackCommand = exports.se_RemovePermissionCommand = exports.se_RemoveNotificationChannelCommand = exports.se_PutPermissionCommand = exports.se_PostAgentProfileCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProfilingGroupsCommand = exports.se_ListProfileTimesCommand = exports.se_ListFindingsReportsCommand = exports.se_GetRecommendationsCommand = exports.se_GetProfileCommand = exports.se_GetPolicyCommand = exports.se_GetNotificationConfigurationCommand = exports.se_GetFindingsReportAccountSummaryCommand = exports.se_DescribeProfilingGroupCommand = exports.se_DeleteProfilingGroupCommand = exports.se_CreateProfilingGroupCommand = exports.se_ConfigureAgentCommand = exports.se_BatchGetFrameMetricDataCommand = exports.se_AddNotificationChannelsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const CodeGuruProfilerServiceException_1 = require("../models/CodeGuruProfilerServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_AddNotificationChannelsCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1AddNotificationChannelsCommand = async (input, conte
|
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.channels != null && { channels:
|
|
19
|
+
...(input.channels != null && { channels: se_Channels(input.channels, context) }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -28,8 +28,8 @@ const serializeAws_restJson1AddNotificationChannelsCommand = async (input, conte
|
|
|
28
28
|
body,
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
exports.
|
|
32
|
-
const
|
|
31
|
+
exports.se_AddNotificationChannelsCommand = se_AddNotificationChannelsCommand;
|
|
32
|
+
const se_BatchGetFrameMetricDataCommand = async (input, context) => {
|
|
33
33
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
@@ -48,9 +48,7 @@ const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input, conte
|
|
|
48
48
|
});
|
|
49
49
|
let body;
|
|
50
50
|
body = JSON.stringify({
|
|
51
|
-
...(input.frameMetrics != null && {
|
|
52
|
-
frameMetrics: serializeAws_restJson1FrameMetrics(input.frameMetrics, context),
|
|
53
|
-
}),
|
|
51
|
+
...(input.frameMetrics != null && { frameMetrics: se_FrameMetrics(input.frameMetrics, context) }),
|
|
54
52
|
});
|
|
55
53
|
return new protocol_http_1.HttpRequest({
|
|
56
54
|
protocol,
|
|
@@ -63,8 +61,8 @@ const serializeAws_restJson1BatchGetFrameMetricDataCommand = async (input, conte
|
|
|
63
61
|
body,
|
|
64
62
|
});
|
|
65
63
|
};
|
|
66
|
-
exports.
|
|
67
|
-
const
|
|
64
|
+
exports.se_BatchGetFrameMetricDataCommand = se_BatchGetFrameMetricDataCommand;
|
|
65
|
+
const se_ConfigureAgentCommand = async (input, context) => {
|
|
68
66
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
69
67
|
const headers = {
|
|
70
68
|
"content-type": "application/json",
|
|
@@ -75,7 +73,7 @@ const serializeAws_restJson1ConfigureAgentCommand = async (input, context) => {
|
|
|
75
73
|
let body;
|
|
76
74
|
body = JSON.stringify({
|
|
77
75
|
...(input.fleetInstanceId != null && { fleetInstanceId: input.fleetInstanceId }),
|
|
78
|
-
...(input.metadata != null && { metadata:
|
|
76
|
+
...(input.metadata != null && { metadata: se_Metadata(input.metadata, context) }),
|
|
79
77
|
});
|
|
80
78
|
return new protocol_http_1.HttpRequest({
|
|
81
79
|
protocol,
|
|
@@ -87,8 +85,8 @@ const serializeAws_restJson1ConfigureAgentCommand = async (input, context) => {
|
|
|
87
85
|
body,
|
|
88
86
|
});
|
|
89
87
|
};
|
|
90
|
-
exports.
|
|
91
|
-
const
|
|
88
|
+
exports.se_ConfigureAgentCommand = se_ConfigureAgentCommand;
|
|
89
|
+
const se_CreateProfilingGroupCommand = async (input, context) => {
|
|
92
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
91
|
const headers = {
|
|
94
92
|
"content-type": "application/json",
|
|
@@ -100,11 +98,11 @@ const serializeAws_restJson1CreateProfilingGroupCommand = async (input, context)
|
|
|
100
98
|
let body;
|
|
101
99
|
body = JSON.stringify({
|
|
102
100
|
...(input.agentOrchestrationConfig != null && {
|
|
103
|
-
agentOrchestrationConfig:
|
|
101
|
+
agentOrchestrationConfig: se_AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
104
102
|
}),
|
|
105
103
|
...(input.computePlatform != null && { computePlatform: input.computePlatform }),
|
|
106
104
|
...(input.profilingGroupName != null && { profilingGroupName: input.profilingGroupName }),
|
|
107
|
-
...(input.tags != null && { tags:
|
|
105
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
108
106
|
});
|
|
109
107
|
return new protocol_http_1.HttpRequest({
|
|
110
108
|
protocol,
|
|
@@ -117,8 +115,8 @@ const serializeAws_restJson1CreateProfilingGroupCommand = async (input, context)
|
|
|
117
115
|
body,
|
|
118
116
|
});
|
|
119
117
|
};
|
|
120
|
-
exports.
|
|
121
|
-
const
|
|
118
|
+
exports.se_CreateProfilingGroupCommand = se_CreateProfilingGroupCommand;
|
|
119
|
+
const se_DeleteProfilingGroupCommand = async (input, context) => {
|
|
122
120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
123
121
|
const headers = {};
|
|
124
122
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}";
|
|
@@ -134,8 +132,8 @@ const serializeAws_restJson1DeleteProfilingGroupCommand = async (input, context)
|
|
|
134
132
|
body,
|
|
135
133
|
});
|
|
136
134
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
135
|
+
exports.se_DeleteProfilingGroupCommand = se_DeleteProfilingGroupCommand;
|
|
136
|
+
const se_DescribeProfilingGroupCommand = async (input, context) => {
|
|
139
137
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
138
|
const headers = {};
|
|
141
139
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups/{profilingGroupName}";
|
|
@@ -151,8 +149,8 @@ const serializeAws_restJson1DescribeProfilingGroupCommand = async (input, contex
|
|
|
151
149
|
body,
|
|
152
150
|
});
|
|
153
151
|
};
|
|
154
|
-
exports.
|
|
155
|
-
const
|
|
152
|
+
exports.se_DescribeProfilingGroupCommand = se_DescribeProfilingGroupCommand;
|
|
153
|
+
const se_GetFindingsReportAccountSummaryCommand = async (input, context) => {
|
|
156
154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
155
|
const headers = {};
|
|
158
156
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/internal/findingsReports";
|
|
@@ -173,8 +171,8 @@ const serializeAws_restJson1GetFindingsReportAccountSummaryCommand = async (inpu
|
|
|
173
171
|
body,
|
|
174
172
|
});
|
|
175
173
|
};
|
|
176
|
-
exports.
|
|
177
|
-
const
|
|
174
|
+
exports.se_GetFindingsReportAccountSummaryCommand = se_GetFindingsReportAccountSummaryCommand;
|
|
175
|
+
const se_GetNotificationConfigurationCommand = async (input, context) => {
|
|
178
176
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
177
|
const headers = {};
|
|
180
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -191,8 +189,8 @@ const serializeAws_restJson1GetNotificationConfigurationCommand = async (input,
|
|
|
191
189
|
body,
|
|
192
190
|
});
|
|
193
191
|
};
|
|
194
|
-
exports.
|
|
195
|
-
const
|
|
192
|
+
exports.se_GetNotificationConfigurationCommand = se_GetNotificationConfigurationCommand;
|
|
193
|
+
const se_GetPolicyCommand = async (input, context) => {
|
|
196
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
197
195
|
const headers = {};
|
|
198
196
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -209,8 +207,8 @@ const serializeAws_restJson1GetPolicyCommand = async (input, context) => {
|
|
|
209
207
|
body,
|
|
210
208
|
});
|
|
211
209
|
};
|
|
212
|
-
exports.
|
|
213
|
-
const
|
|
210
|
+
exports.se_GetPolicyCommand = se_GetPolicyCommand;
|
|
211
|
+
const se_GetProfileCommand = async (input, context) => {
|
|
214
212
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
215
213
|
const headers = map({}, isSerializableHeaderValue, {
|
|
216
214
|
accept: input.accept,
|
|
@@ -239,8 +237,8 @@ const serializeAws_restJson1GetProfileCommand = async (input, context) => {
|
|
|
239
237
|
body,
|
|
240
238
|
});
|
|
241
239
|
};
|
|
242
|
-
exports.
|
|
243
|
-
const
|
|
240
|
+
exports.se_GetProfileCommand = se_GetProfileCommand;
|
|
241
|
+
const se_GetRecommendationsCommand = async (input, context) => {
|
|
244
242
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
243
|
const headers = {};
|
|
246
244
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -269,8 +267,8 @@ const serializeAws_restJson1GetRecommendationsCommand = async (input, context) =
|
|
|
269
267
|
body,
|
|
270
268
|
});
|
|
271
269
|
};
|
|
272
|
-
exports.
|
|
273
|
-
const
|
|
270
|
+
exports.se_GetRecommendationsCommand = se_GetRecommendationsCommand;
|
|
271
|
+
const se_ListFindingsReportsCommand = async (input, context) => {
|
|
274
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
275
273
|
const headers = {};
|
|
276
274
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -301,8 +299,8 @@ const serializeAws_restJson1ListFindingsReportsCommand = async (input, context)
|
|
|
301
299
|
body,
|
|
302
300
|
});
|
|
303
301
|
};
|
|
304
|
-
exports.
|
|
305
|
-
const
|
|
302
|
+
exports.se_ListFindingsReportsCommand = se_ListFindingsReportsCommand;
|
|
303
|
+
const se_ListProfileTimesCommand = async (input, context) => {
|
|
306
304
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
307
305
|
const headers = {};
|
|
308
306
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -334,8 +332,8 @@ const serializeAws_restJson1ListProfileTimesCommand = async (input, context) =>
|
|
|
334
332
|
body,
|
|
335
333
|
});
|
|
336
334
|
};
|
|
337
|
-
exports.
|
|
338
|
-
const
|
|
335
|
+
exports.se_ListProfileTimesCommand = se_ListProfileTimesCommand;
|
|
336
|
+
const se_ListProfilingGroupsCommand = async (input, context) => {
|
|
339
337
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
338
|
const headers = {};
|
|
341
339
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profilingGroups";
|
|
@@ -356,8 +354,8 @@ const serializeAws_restJson1ListProfilingGroupsCommand = async (input, context)
|
|
|
356
354
|
body,
|
|
357
355
|
});
|
|
358
356
|
};
|
|
359
|
-
exports.
|
|
360
|
-
const
|
|
357
|
+
exports.se_ListProfilingGroupsCommand = se_ListProfilingGroupsCommand;
|
|
358
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
361
359
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
360
|
const headers = {};
|
|
363
361
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -373,8 +371,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
373
371
|
body,
|
|
374
372
|
});
|
|
375
373
|
};
|
|
376
|
-
exports.
|
|
377
|
-
const
|
|
374
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
375
|
+
const se_PostAgentProfileCommand = async (input, context) => {
|
|
378
376
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
377
|
const headers = map({}, isSerializableHeaderValue, {
|
|
380
378
|
"content-type": input.contentType || "application/octet-stream",
|
|
@@ -400,8 +398,8 @@ const serializeAws_restJson1PostAgentProfileCommand = async (input, context) =>
|
|
|
400
398
|
body,
|
|
401
399
|
});
|
|
402
400
|
};
|
|
403
|
-
exports.
|
|
404
|
-
const
|
|
401
|
+
exports.se_PostAgentProfileCommand = se_PostAgentProfileCommand;
|
|
402
|
+
const se_PutPermissionCommand = async (input, context) => {
|
|
405
403
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
406
404
|
const headers = {
|
|
407
405
|
"content-type": "application/json",
|
|
@@ -412,7 +410,7 @@ const serializeAws_restJson1PutPermissionCommand = async (input, context) => {
|
|
|
412
410
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionGroup", () => input.actionGroup, "{actionGroup}", false);
|
|
413
411
|
let body;
|
|
414
412
|
body = JSON.stringify({
|
|
415
|
-
...(input.principals != null && { principals:
|
|
413
|
+
...(input.principals != null && { principals: se_Principals(input.principals, context) }),
|
|
416
414
|
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
417
415
|
});
|
|
418
416
|
return new protocol_http_1.HttpRequest({
|
|
@@ -425,8 +423,8 @@ const serializeAws_restJson1PutPermissionCommand = async (input, context) => {
|
|
|
425
423
|
body,
|
|
426
424
|
});
|
|
427
425
|
};
|
|
428
|
-
exports.
|
|
429
|
-
const
|
|
426
|
+
exports.se_PutPermissionCommand = se_PutPermissionCommand;
|
|
427
|
+
const se_RemoveNotificationChannelCommand = async (input, context) => {
|
|
430
428
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
431
429
|
const headers = {};
|
|
432
430
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -444,8 +442,8 @@ const serializeAws_restJson1RemoveNotificationChannelCommand = async (input, con
|
|
|
444
442
|
body,
|
|
445
443
|
});
|
|
446
444
|
};
|
|
447
|
-
exports.
|
|
448
|
-
const
|
|
445
|
+
exports.se_RemoveNotificationChannelCommand = se_RemoveNotificationChannelCommand;
|
|
446
|
+
const se_RemovePermissionCommand = async (input, context) => {
|
|
449
447
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
450
448
|
const headers = {};
|
|
451
449
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -467,8 +465,8 @@ const serializeAws_restJson1RemovePermissionCommand = async (input, context) =>
|
|
|
467
465
|
body,
|
|
468
466
|
});
|
|
469
467
|
};
|
|
470
|
-
exports.
|
|
471
|
-
const
|
|
468
|
+
exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
|
|
469
|
+
const se_SubmitFeedbackCommand = async (input, context) => {
|
|
472
470
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
473
471
|
const headers = {
|
|
474
472
|
"content-type": "application/json",
|
|
@@ -492,8 +490,8 @@ const serializeAws_restJson1SubmitFeedbackCommand = async (input, context) => {
|
|
|
492
490
|
body,
|
|
493
491
|
});
|
|
494
492
|
};
|
|
495
|
-
exports.
|
|
496
|
-
const
|
|
493
|
+
exports.se_SubmitFeedbackCommand = se_SubmitFeedbackCommand;
|
|
494
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
497
495
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
496
|
const headers = {
|
|
499
497
|
"content-type": "application/json",
|
|
@@ -502,7 +500,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
502
500
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
503
501
|
let body;
|
|
504
502
|
body = JSON.stringify({
|
|
505
|
-
...(input.tags != null && { tags:
|
|
503
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
506
504
|
});
|
|
507
505
|
return new protocol_http_1.HttpRequest({
|
|
508
506
|
protocol,
|
|
@@ -514,8 +512,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
514
512
|
body,
|
|
515
513
|
});
|
|
516
514
|
};
|
|
517
|
-
exports.
|
|
518
|
-
const
|
|
515
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
516
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
519
517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
520
518
|
const headers = {};
|
|
521
519
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -538,8 +536,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
538
536
|
body,
|
|
539
537
|
});
|
|
540
538
|
};
|
|
541
|
-
exports.
|
|
542
|
-
const
|
|
539
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
540
|
+
const se_UpdateProfilingGroupCommand = async (input, context) => {
|
|
543
541
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
544
542
|
const headers = {
|
|
545
543
|
"content-type": "application/json",
|
|
@@ -549,7 +547,7 @@ const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, context)
|
|
|
549
547
|
let body;
|
|
550
548
|
body = JSON.stringify({
|
|
551
549
|
...(input.agentOrchestrationConfig != null && {
|
|
552
|
-
agentOrchestrationConfig:
|
|
550
|
+
agentOrchestrationConfig: se_AgentOrchestrationConfig(input.agentOrchestrationConfig, context),
|
|
553
551
|
}),
|
|
554
552
|
});
|
|
555
553
|
return new protocol_http_1.HttpRequest({
|
|
@@ -562,22 +560,22 @@ const serializeAws_restJson1UpdateProfilingGroupCommand = async (input, context)
|
|
|
562
560
|
body,
|
|
563
561
|
});
|
|
564
562
|
};
|
|
565
|
-
exports.
|
|
566
|
-
const
|
|
563
|
+
exports.se_UpdateProfilingGroupCommand = se_UpdateProfilingGroupCommand;
|
|
564
|
+
const de_AddNotificationChannelsCommand = async (output, context) => {
|
|
567
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return
|
|
566
|
+
return de_AddNotificationChannelsCommandError(output, context);
|
|
569
567
|
}
|
|
570
568
|
const contents = map({
|
|
571
569
|
$metadata: deserializeMetadata(output),
|
|
572
570
|
});
|
|
573
571
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
574
572
|
if (data.notificationConfiguration != null) {
|
|
575
|
-
contents.notificationConfiguration =
|
|
573
|
+
contents.notificationConfiguration = de_NotificationConfiguration(data.notificationConfiguration, context);
|
|
576
574
|
}
|
|
577
575
|
return contents;
|
|
578
576
|
};
|
|
579
|
-
exports.
|
|
580
|
-
const
|
|
577
|
+
exports.de_AddNotificationChannelsCommand = de_AddNotificationChannelsCommand;
|
|
578
|
+
const de_AddNotificationChannelsCommandError = async (output, context) => {
|
|
581
579
|
const parsedOutput = {
|
|
582
580
|
...output,
|
|
583
581
|
body: await parseErrorBody(output.body, context),
|
|
@@ -586,22 +584,22 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
|
|
|
586
584
|
switch (errorCode) {
|
|
587
585
|
case "ConflictException":
|
|
588
586
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
589
|
-
throw await
|
|
587
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
590
588
|
case "InternalServerException":
|
|
591
589
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
592
|
-
throw await
|
|
590
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
593
591
|
case "ResourceNotFoundException":
|
|
594
592
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
595
|
-
throw await
|
|
593
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
596
594
|
case "ServiceQuotaExceededException":
|
|
597
595
|
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
|
|
598
|
-
throw await
|
|
596
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
599
597
|
case "ThrottlingException":
|
|
600
598
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
601
|
-
throw await
|
|
599
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
602
600
|
case "ValidationException":
|
|
603
601
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
604
|
-
throw await
|
|
602
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
605
603
|
default:
|
|
606
604
|
const parsedBody = parsedOutput.body;
|
|
607
605
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -612,9 +610,9 @@ const deserializeAws_restJson1AddNotificationChannelsCommandError = async (outpu
|
|
|
612
610
|
});
|
|
613
611
|
}
|
|
614
612
|
};
|
|
615
|
-
const
|
|
613
|
+
const de_BatchGetFrameMetricDataCommand = async (output, context) => {
|
|
616
614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
-
return
|
|
615
|
+
return de_BatchGetFrameMetricDataCommandError(output, context);
|
|
618
616
|
}
|
|
619
617
|
const contents = map({
|
|
620
618
|
$metadata: deserializeMetadata(output),
|
|
@@ -624,10 +622,10 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommand = async (output, co
|
|
|
624
622
|
contents.endTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.endTime));
|
|
625
623
|
}
|
|
626
624
|
if (data.endTimes != null) {
|
|
627
|
-
contents.endTimes =
|
|
625
|
+
contents.endTimes = de_ListOfTimestamps(data.endTimes, context);
|
|
628
626
|
}
|
|
629
627
|
if (data.frameMetricData != null) {
|
|
630
|
-
contents.frameMetricData =
|
|
628
|
+
contents.frameMetricData = de_FrameMetricData(data.frameMetricData, context);
|
|
631
629
|
}
|
|
632
630
|
if (data.resolution != null) {
|
|
633
631
|
contents.resolution = (0, smithy_client_1.expectString)(data.resolution);
|
|
@@ -636,12 +634,12 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommand = async (output, co
|
|
|
636
634
|
contents.startTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.startTime));
|
|
637
635
|
}
|
|
638
636
|
if (data.unprocessedEndTimes != null) {
|
|
639
|
-
contents.unprocessedEndTimes =
|
|
637
|
+
contents.unprocessedEndTimes = de_UnprocessedEndTimeMap(data.unprocessedEndTimes, context);
|
|
640
638
|
}
|
|
641
639
|
return contents;
|
|
642
640
|
};
|
|
643
|
-
exports.
|
|
644
|
-
const
|
|
641
|
+
exports.de_BatchGetFrameMetricDataCommand = de_BatchGetFrameMetricDataCommand;
|
|
642
|
+
const de_BatchGetFrameMetricDataCommandError = async (output, context) => {
|
|
645
643
|
const parsedOutput = {
|
|
646
644
|
...output,
|
|
647
645
|
body: await parseErrorBody(output.body, context),
|
|
@@ -650,16 +648,16 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
|
|
|
650
648
|
switch (errorCode) {
|
|
651
649
|
case "InternalServerException":
|
|
652
650
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
653
|
-
throw await
|
|
651
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
654
652
|
case "ResourceNotFoundException":
|
|
655
653
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
656
|
-
throw await
|
|
654
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
657
655
|
case "ThrottlingException":
|
|
658
656
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
659
|
-
throw await
|
|
657
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
660
658
|
case "ValidationException":
|
|
661
659
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
662
|
-
throw await
|
|
660
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
661
|
default:
|
|
664
662
|
const parsedBody = parsedOutput.body;
|
|
665
663
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -670,19 +668,19 @@ const deserializeAws_restJson1BatchGetFrameMetricDataCommandError = async (outpu
|
|
|
670
668
|
});
|
|
671
669
|
}
|
|
672
670
|
};
|
|
673
|
-
const
|
|
671
|
+
const de_ConfigureAgentCommand = async (output, context) => {
|
|
674
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
-
return
|
|
673
|
+
return de_ConfigureAgentCommandError(output, context);
|
|
676
674
|
}
|
|
677
675
|
const contents = map({
|
|
678
676
|
$metadata: deserializeMetadata(output),
|
|
679
677
|
});
|
|
680
678
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
681
|
-
contents.configuration =
|
|
679
|
+
contents.configuration = de_AgentConfiguration(data, context);
|
|
682
680
|
return contents;
|
|
683
681
|
};
|
|
684
|
-
exports.
|
|
685
|
-
const
|
|
682
|
+
exports.de_ConfigureAgentCommand = de_ConfigureAgentCommand;
|
|
683
|
+
const de_ConfigureAgentCommandError = async (output, context) => {
|
|
686
684
|
const parsedOutput = {
|
|
687
685
|
...output,
|
|
688
686
|
body: await parseErrorBody(output.body, context),
|
|
@@ -691,16 +689,16 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
|
|
|
691
689
|
switch (errorCode) {
|
|
692
690
|
case "InternalServerException":
|
|
693
691
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
694
|
-
throw await
|
|
692
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
695
693
|
case "ResourceNotFoundException":
|
|
696
694
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
697
|
-
throw await
|
|
695
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
698
696
|
case "ThrottlingException":
|
|
699
697
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
700
|
-
throw await
|
|
698
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
701
699
|
case "ValidationException":
|
|
702
700
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
703
|
-
throw await
|
|
701
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
704
702
|
default:
|
|
705
703
|
const parsedBody = parsedOutput.body;
|
|
706
704
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -711,19 +709,19 @@ const deserializeAws_restJson1ConfigureAgentCommandError = async (output, contex
|
|
|
711
709
|
});
|
|
712
710
|
}
|
|
713
711
|
};
|
|
714
|
-
const
|
|
712
|
+
const de_CreateProfilingGroupCommand = async (output, context) => {
|
|
715
713
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
716
|
-
return
|
|
714
|
+
return de_CreateProfilingGroupCommandError(output, context);
|
|
717
715
|
}
|
|
718
716
|
const contents = map({
|
|
719
717
|
$metadata: deserializeMetadata(output),
|
|
720
718
|
});
|
|
721
719
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
722
|
-
contents.profilingGroup =
|
|
720
|
+
contents.profilingGroup = de_ProfilingGroupDescription(data, context);
|
|
723
721
|
return contents;
|
|
724
722
|
};
|
|
725
|
-
exports.
|
|
726
|
-
const
|
|
723
|
+
exports.de_CreateProfilingGroupCommand = de_CreateProfilingGroupCommand;
|
|
724
|
+
const de_CreateProfilingGroupCommandError = async (output, context) => {
|
|
727
725
|
const parsedOutput = {
|
|
728
726
|
...output,
|
|
729
727
|
body: await parseErrorBody(output.body, context),
|
|
@@ -732,19 +730,19 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
|
|
|
732
730
|
switch (errorCode) {
|
|
733
731
|
case "ConflictException":
|
|
734
732
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
735
|
-
throw await
|
|
733
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
736
734
|
case "InternalServerException":
|
|
737
735
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
738
|
-
throw await
|
|
736
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
739
737
|
case "ServiceQuotaExceededException":
|
|
740
738
|
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
|
|
741
|
-
throw await
|
|
739
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
742
740
|
case "ThrottlingException":
|
|
743
741
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
744
|
-
throw await
|
|
742
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
745
743
|
case "ValidationException":
|
|
746
744
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
747
|
-
throw await
|
|
745
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
746
|
default:
|
|
749
747
|
const parsedBody = parsedOutput.body;
|
|
750
748
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -755,9 +753,9 @@ const deserializeAws_restJson1CreateProfilingGroupCommandError = async (output,
|
|
|
755
753
|
});
|
|
756
754
|
}
|
|
757
755
|
};
|
|
758
|
-
const
|
|
756
|
+
const de_DeleteProfilingGroupCommand = async (output, context) => {
|
|
759
757
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
760
|
-
return
|
|
758
|
+
return de_DeleteProfilingGroupCommandError(output, context);
|
|
761
759
|
}
|
|
762
760
|
const contents = map({
|
|
763
761
|
$metadata: deserializeMetadata(output),
|
|
@@ -765,8 +763,8 @@ const deserializeAws_restJson1DeleteProfilingGroupCommand = async (output, conte
|
|
|
765
763
|
await collectBody(output.body, context);
|
|
766
764
|
return contents;
|
|
767
765
|
};
|
|
768
|
-
exports.
|
|
769
|
-
const
|
|
766
|
+
exports.de_DeleteProfilingGroupCommand = de_DeleteProfilingGroupCommand;
|
|
767
|
+
const de_DeleteProfilingGroupCommandError = async (output, context) => {
|
|
770
768
|
const parsedOutput = {
|
|
771
769
|
...output,
|
|
772
770
|
body: await parseErrorBody(output.body, context),
|
|
@@ -775,19 +773,19 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
|
|
|
775
773
|
switch (errorCode) {
|
|
776
774
|
case "ConflictException":
|
|
777
775
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
778
|
-
throw await
|
|
776
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
779
777
|
case "InternalServerException":
|
|
780
778
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
781
|
-
throw await
|
|
779
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
782
780
|
case "ResourceNotFoundException":
|
|
783
781
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
784
|
-
throw await
|
|
782
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
785
783
|
case "ThrottlingException":
|
|
786
784
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
787
|
-
throw await
|
|
785
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
788
786
|
case "ValidationException":
|
|
789
787
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
790
|
-
throw await
|
|
788
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
791
789
|
default:
|
|
792
790
|
const parsedBody = parsedOutput.body;
|
|
793
791
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -798,19 +796,19 @@ const deserializeAws_restJson1DeleteProfilingGroupCommandError = async (output,
|
|
|
798
796
|
});
|
|
799
797
|
}
|
|
800
798
|
};
|
|
801
|
-
const
|
|
799
|
+
const de_DescribeProfilingGroupCommand = async (output, context) => {
|
|
802
800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return
|
|
801
|
+
return de_DescribeProfilingGroupCommandError(output, context);
|
|
804
802
|
}
|
|
805
803
|
const contents = map({
|
|
806
804
|
$metadata: deserializeMetadata(output),
|
|
807
805
|
});
|
|
808
806
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
809
|
-
contents.profilingGroup =
|
|
807
|
+
contents.profilingGroup = de_ProfilingGroupDescription(data, context);
|
|
810
808
|
return contents;
|
|
811
809
|
};
|
|
812
|
-
exports.
|
|
813
|
-
const
|
|
810
|
+
exports.de_DescribeProfilingGroupCommand = de_DescribeProfilingGroupCommand;
|
|
811
|
+
const de_DescribeProfilingGroupCommandError = async (output, context) => {
|
|
814
812
|
const parsedOutput = {
|
|
815
813
|
...output,
|
|
816
814
|
body: await parseErrorBody(output.body, context),
|
|
@@ -819,16 +817,16 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
|
|
|
819
817
|
switch (errorCode) {
|
|
820
818
|
case "InternalServerException":
|
|
821
819
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
822
|
-
throw await
|
|
820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
823
821
|
case "ResourceNotFoundException":
|
|
824
822
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
825
|
-
throw await
|
|
823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
826
824
|
case "ThrottlingException":
|
|
827
825
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
828
|
-
throw await
|
|
826
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
829
827
|
case "ValidationException":
|
|
830
828
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
831
|
-
throw await
|
|
829
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
830
|
default:
|
|
833
831
|
const parsedBody = parsedOutput.body;
|
|
834
832
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -839,9 +837,9 @@ const deserializeAws_restJson1DescribeProfilingGroupCommandError = async (output
|
|
|
839
837
|
});
|
|
840
838
|
}
|
|
841
839
|
};
|
|
842
|
-
const
|
|
840
|
+
const de_GetFindingsReportAccountSummaryCommand = async (output, context) => {
|
|
843
841
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
-
return
|
|
842
|
+
return de_GetFindingsReportAccountSummaryCommandError(output, context);
|
|
845
843
|
}
|
|
846
844
|
const contents = map({
|
|
847
845
|
$metadata: deserializeMetadata(output),
|
|
@@ -851,12 +849,12 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommand = async (ou
|
|
|
851
849
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
852
850
|
}
|
|
853
851
|
if (data.reportSummaries != null) {
|
|
854
|
-
contents.reportSummaries =
|
|
852
|
+
contents.reportSummaries = de_FindingsReportSummaries(data.reportSummaries, context);
|
|
855
853
|
}
|
|
856
854
|
return contents;
|
|
857
855
|
};
|
|
858
|
-
exports.
|
|
859
|
-
const
|
|
856
|
+
exports.de_GetFindingsReportAccountSummaryCommand = de_GetFindingsReportAccountSummaryCommand;
|
|
857
|
+
const de_GetFindingsReportAccountSummaryCommandError = async (output, context) => {
|
|
860
858
|
const parsedOutput = {
|
|
861
859
|
...output,
|
|
862
860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -865,13 +863,13 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
|
|
|
865
863
|
switch (errorCode) {
|
|
866
864
|
case "InternalServerException":
|
|
867
865
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
868
|
-
throw await
|
|
866
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
869
867
|
case "ThrottlingException":
|
|
870
868
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
871
|
-
throw await
|
|
869
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
872
870
|
case "ValidationException":
|
|
873
871
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
874
|
-
throw await
|
|
872
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
875
873
|
default:
|
|
876
874
|
const parsedBody = parsedOutput.body;
|
|
877
875
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -882,21 +880,21 @@ const deserializeAws_restJson1GetFindingsReportAccountSummaryCommandError = asyn
|
|
|
882
880
|
});
|
|
883
881
|
}
|
|
884
882
|
};
|
|
885
|
-
const
|
|
883
|
+
const de_GetNotificationConfigurationCommand = async (output, context) => {
|
|
886
884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
885
|
+
return de_GetNotificationConfigurationCommandError(output, context);
|
|
888
886
|
}
|
|
889
887
|
const contents = map({
|
|
890
888
|
$metadata: deserializeMetadata(output),
|
|
891
889
|
});
|
|
892
890
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
893
891
|
if (data.notificationConfiguration != null) {
|
|
894
|
-
contents.notificationConfiguration =
|
|
892
|
+
contents.notificationConfiguration = de_NotificationConfiguration(data.notificationConfiguration, context);
|
|
895
893
|
}
|
|
896
894
|
return contents;
|
|
897
895
|
};
|
|
898
|
-
exports.
|
|
899
|
-
const
|
|
896
|
+
exports.de_GetNotificationConfigurationCommand = de_GetNotificationConfigurationCommand;
|
|
897
|
+
const de_GetNotificationConfigurationCommandError = async (output, context) => {
|
|
900
898
|
const parsedOutput = {
|
|
901
899
|
...output,
|
|
902
900
|
body: await parseErrorBody(output.body, context),
|
|
@@ -905,16 +903,16 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
|
|
|
905
903
|
switch (errorCode) {
|
|
906
904
|
case "InternalServerException":
|
|
907
905
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
908
|
-
throw await
|
|
906
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
909
907
|
case "ResourceNotFoundException":
|
|
910
908
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
911
|
-
throw await
|
|
909
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
912
910
|
case "ThrottlingException":
|
|
913
911
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
914
|
-
throw await
|
|
912
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
915
913
|
case "ValidationException":
|
|
916
914
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
917
|
-
throw await
|
|
915
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
918
916
|
default:
|
|
919
917
|
const parsedBody = parsedOutput.body;
|
|
920
918
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -925,9 +923,9 @@ const deserializeAws_restJson1GetNotificationConfigurationCommandError = async (
|
|
|
925
923
|
});
|
|
926
924
|
}
|
|
927
925
|
};
|
|
928
|
-
const
|
|
926
|
+
const de_GetPolicyCommand = async (output, context) => {
|
|
929
927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
|
-
return
|
|
928
|
+
return de_GetPolicyCommandError(output, context);
|
|
931
929
|
}
|
|
932
930
|
const contents = map({
|
|
933
931
|
$metadata: deserializeMetadata(output),
|
|
@@ -941,8 +939,8 @@ const deserializeAws_restJson1GetPolicyCommand = async (output, context) => {
|
|
|
941
939
|
}
|
|
942
940
|
return contents;
|
|
943
941
|
};
|
|
944
|
-
exports.
|
|
945
|
-
const
|
|
942
|
+
exports.de_GetPolicyCommand = de_GetPolicyCommand;
|
|
943
|
+
const de_GetPolicyCommandError = async (output, context) => {
|
|
946
944
|
const parsedOutput = {
|
|
947
945
|
...output,
|
|
948
946
|
body: await parseErrorBody(output.body, context),
|
|
@@ -951,13 +949,13 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
951
949
|
switch (errorCode) {
|
|
952
950
|
case "InternalServerException":
|
|
953
951
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
954
|
-
throw await
|
|
952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
955
953
|
case "ResourceNotFoundException":
|
|
956
954
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
957
|
-
throw await
|
|
955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
958
956
|
case "ThrottlingException":
|
|
959
957
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
960
|
-
throw await
|
|
958
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
961
959
|
default:
|
|
962
960
|
const parsedBody = parsedOutput.body;
|
|
963
961
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -968,9 +966,9 @@ const deserializeAws_restJson1GetPolicyCommandError = async (output, context) =>
|
|
|
968
966
|
});
|
|
969
967
|
}
|
|
970
968
|
};
|
|
971
|
-
const
|
|
969
|
+
const de_GetProfileCommand = async (output, context) => {
|
|
972
970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
-
return
|
|
971
|
+
return de_GetProfileCommandError(output, context);
|
|
974
972
|
}
|
|
975
973
|
const contents = map({
|
|
976
974
|
$metadata: deserializeMetadata(output),
|
|
@@ -981,8 +979,8 @@ const deserializeAws_restJson1GetProfileCommand = async (output, context) => {
|
|
|
981
979
|
contents.profile = data;
|
|
982
980
|
return contents;
|
|
983
981
|
};
|
|
984
|
-
exports.
|
|
985
|
-
const
|
|
982
|
+
exports.de_GetProfileCommand = de_GetProfileCommand;
|
|
983
|
+
const de_GetProfileCommandError = async (output, context) => {
|
|
986
984
|
const parsedOutput = {
|
|
987
985
|
...output,
|
|
988
986
|
body: await parseErrorBody(output.body, context),
|
|
@@ -991,16 +989,16 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
991
989
|
switch (errorCode) {
|
|
992
990
|
case "InternalServerException":
|
|
993
991
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
994
|
-
throw await
|
|
992
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
995
993
|
case "ResourceNotFoundException":
|
|
996
994
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
997
|
-
throw await
|
|
995
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
998
996
|
case "ThrottlingException":
|
|
999
997
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1000
|
-
throw await
|
|
998
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1001
999
|
case "ValidationException":
|
|
1002
1000
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1003
|
-
throw await
|
|
1001
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1004
1002
|
default:
|
|
1005
1003
|
const parsedBody = parsedOutput.body;
|
|
1006
1004
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1011,16 +1009,16 @@ const deserializeAws_restJson1GetProfileCommandError = async (output, context) =
|
|
|
1011
1009
|
});
|
|
1012
1010
|
}
|
|
1013
1011
|
};
|
|
1014
|
-
const
|
|
1012
|
+
const de_GetRecommendationsCommand = async (output, context) => {
|
|
1015
1013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1016
|
-
return
|
|
1014
|
+
return de_GetRecommendationsCommandError(output, context);
|
|
1017
1015
|
}
|
|
1018
1016
|
const contents = map({
|
|
1019
1017
|
$metadata: deserializeMetadata(output),
|
|
1020
1018
|
});
|
|
1021
1019
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1022
1020
|
if (data.anomalies != null) {
|
|
1023
|
-
contents.anomalies =
|
|
1021
|
+
contents.anomalies = de_Anomalies(data.anomalies, context);
|
|
1024
1022
|
}
|
|
1025
1023
|
if (data.profileEndTime != null) {
|
|
1026
1024
|
contents.profileEndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.profileEndTime));
|
|
@@ -1032,12 +1030,12 @@ const deserializeAws_restJson1GetRecommendationsCommand = async (output, context
|
|
|
1032
1030
|
contents.profilingGroupName = (0, smithy_client_1.expectString)(data.profilingGroupName);
|
|
1033
1031
|
}
|
|
1034
1032
|
if (data.recommendations != null) {
|
|
1035
|
-
contents.recommendations =
|
|
1033
|
+
contents.recommendations = de_Recommendations(data.recommendations, context);
|
|
1036
1034
|
}
|
|
1037
1035
|
return contents;
|
|
1038
1036
|
};
|
|
1039
|
-
exports.
|
|
1040
|
-
const
|
|
1037
|
+
exports.de_GetRecommendationsCommand = de_GetRecommendationsCommand;
|
|
1038
|
+
const de_GetRecommendationsCommandError = async (output, context) => {
|
|
1041
1039
|
const parsedOutput = {
|
|
1042
1040
|
...output,
|
|
1043
1041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1046,16 +1044,16 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
|
|
|
1046
1044
|
switch (errorCode) {
|
|
1047
1045
|
case "InternalServerException":
|
|
1048
1046
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1049
|
-
throw await
|
|
1047
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
1048
|
case "ResourceNotFoundException":
|
|
1051
1049
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1052
|
-
throw await
|
|
1050
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
1051
|
case "ThrottlingException":
|
|
1054
1052
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1055
|
-
throw await
|
|
1053
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1056
1054
|
case "ValidationException":
|
|
1057
1055
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1058
|
-
throw await
|
|
1056
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
1057
|
default:
|
|
1060
1058
|
const parsedBody = parsedOutput.body;
|
|
1061
1059
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1066,24 +1064,24 @@ const deserializeAws_restJson1GetRecommendationsCommandError = async (output, co
|
|
|
1066
1064
|
});
|
|
1067
1065
|
}
|
|
1068
1066
|
};
|
|
1069
|
-
const
|
|
1067
|
+
const de_ListFindingsReportsCommand = async (output, context) => {
|
|
1070
1068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
-
return
|
|
1069
|
+
return de_ListFindingsReportsCommandError(output, context);
|
|
1072
1070
|
}
|
|
1073
1071
|
const contents = map({
|
|
1074
1072
|
$metadata: deserializeMetadata(output),
|
|
1075
1073
|
});
|
|
1076
1074
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1077
1075
|
if (data.findingsReportSummaries != null) {
|
|
1078
|
-
contents.findingsReportSummaries =
|
|
1076
|
+
contents.findingsReportSummaries = de_FindingsReportSummaries(data.findingsReportSummaries, context);
|
|
1079
1077
|
}
|
|
1080
1078
|
if (data.nextToken != null) {
|
|
1081
1079
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1082
1080
|
}
|
|
1083
1081
|
return contents;
|
|
1084
1082
|
};
|
|
1085
|
-
exports.
|
|
1086
|
-
const
|
|
1083
|
+
exports.de_ListFindingsReportsCommand = de_ListFindingsReportsCommand;
|
|
1084
|
+
const de_ListFindingsReportsCommandError = async (output, context) => {
|
|
1087
1085
|
const parsedOutput = {
|
|
1088
1086
|
...output,
|
|
1089
1087
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1092,16 +1090,16 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
|
|
|
1092
1090
|
switch (errorCode) {
|
|
1093
1091
|
case "InternalServerException":
|
|
1094
1092
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1095
|
-
throw await
|
|
1093
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1096
1094
|
case "ResourceNotFoundException":
|
|
1097
1095
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1098
|
-
throw await
|
|
1096
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1099
1097
|
case "ThrottlingException":
|
|
1100
1098
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1101
|
-
throw await
|
|
1099
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1102
1100
|
case "ValidationException":
|
|
1103
1101
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1104
|
-
throw await
|
|
1102
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
1103
|
default:
|
|
1106
1104
|
const parsedBody = parsedOutput.body;
|
|
1107
1105
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1112,9 +1110,9 @@ const deserializeAws_restJson1ListFindingsReportsCommandError = async (output, c
|
|
|
1112
1110
|
});
|
|
1113
1111
|
}
|
|
1114
1112
|
};
|
|
1115
|
-
const
|
|
1113
|
+
const de_ListProfileTimesCommand = async (output, context) => {
|
|
1116
1114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1117
|
-
return
|
|
1115
|
+
return de_ListProfileTimesCommandError(output, context);
|
|
1118
1116
|
}
|
|
1119
1117
|
const contents = map({
|
|
1120
1118
|
$metadata: deserializeMetadata(output),
|
|
@@ -1124,12 +1122,12 @@ const deserializeAws_restJson1ListProfileTimesCommand = async (output, context)
|
|
|
1124
1122
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1125
1123
|
}
|
|
1126
1124
|
if (data.profileTimes != null) {
|
|
1127
|
-
contents.profileTimes =
|
|
1125
|
+
contents.profileTimes = de_ProfileTimes(data.profileTimes, context);
|
|
1128
1126
|
}
|
|
1129
1127
|
return contents;
|
|
1130
1128
|
};
|
|
1131
|
-
exports.
|
|
1132
|
-
const
|
|
1129
|
+
exports.de_ListProfileTimesCommand = de_ListProfileTimesCommand;
|
|
1130
|
+
const de_ListProfileTimesCommandError = async (output, context) => {
|
|
1133
1131
|
const parsedOutput = {
|
|
1134
1132
|
...output,
|
|
1135
1133
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1138,16 +1136,16 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
|
|
|
1138
1136
|
switch (errorCode) {
|
|
1139
1137
|
case "InternalServerException":
|
|
1140
1138
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1141
|
-
throw await
|
|
1139
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1142
1140
|
case "ResourceNotFoundException":
|
|
1143
1141
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1144
|
-
throw await
|
|
1142
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1145
1143
|
case "ThrottlingException":
|
|
1146
1144
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1147
|
-
throw await
|
|
1145
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1148
1146
|
case "ValidationException":
|
|
1149
1147
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1150
|
-
throw await
|
|
1148
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1151
1149
|
default:
|
|
1152
1150
|
const parsedBody = parsedOutput.body;
|
|
1153
1151
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1158,9 +1156,9 @@ const deserializeAws_restJson1ListProfileTimesCommandError = async (output, cont
|
|
|
1158
1156
|
});
|
|
1159
1157
|
}
|
|
1160
1158
|
};
|
|
1161
|
-
const
|
|
1159
|
+
const de_ListProfilingGroupsCommand = async (output, context) => {
|
|
1162
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1163
|
-
return
|
|
1161
|
+
return de_ListProfilingGroupsCommandError(output, context);
|
|
1164
1162
|
}
|
|
1165
1163
|
const contents = map({
|
|
1166
1164
|
$metadata: deserializeMetadata(output),
|
|
@@ -1170,15 +1168,15 @@ const deserializeAws_restJson1ListProfilingGroupsCommand = async (output, contex
|
|
|
1170
1168
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1171
1169
|
}
|
|
1172
1170
|
if (data.profilingGroupNames != null) {
|
|
1173
|
-
contents.profilingGroupNames =
|
|
1171
|
+
contents.profilingGroupNames = de_ProfilingGroupNames(data.profilingGroupNames, context);
|
|
1174
1172
|
}
|
|
1175
1173
|
if (data.profilingGroups != null) {
|
|
1176
|
-
contents.profilingGroups =
|
|
1174
|
+
contents.profilingGroups = de_ProfilingGroupDescriptions(data.profilingGroups, context);
|
|
1177
1175
|
}
|
|
1178
1176
|
return contents;
|
|
1179
1177
|
};
|
|
1180
|
-
exports.
|
|
1181
|
-
const
|
|
1178
|
+
exports.de_ListProfilingGroupsCommand = de_ListProfilingGroupsCommand;
|
|
1179
|
+
const de_ListProfilingGroupsCommandError = async (output, context) => {
|
|
1182
1180
|
const parsedOutput = {
|
|
1183
1181
|
...output,
|
|
1184
1182
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1187,10 +1185,10 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
|
|
|
1187
1185
|
switch (errorCode) {
|
|
1188
1186
|
case "InternalServerException":
|
|
1189
1187
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1190
|
-
throw await
|
|
1188
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1191
1189
|
case "ThrottlingException":
|
|
1192
1190
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1193
|
-
throw await
|
|
1191
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1194
1192
|
default:
|
|
1195
1193
|
const parsedBody = parsedOutput.body;
|
|
1196
1194
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1201,21 +1199,21 @@ const deserializeAws_restJson1ListProfilingGroupsCommandError = async (output, c
|
|
|
1201
1199
|
});
|
|
1202
1200
|
}
|
|
1203
1201
|
};
|
|
1204
|
-
const
|
|
1202
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1205
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1206
|
-
return
|
|
1204
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1207
1205
|
}
|
|
1208
1206
|
const contents = map({
|
|
1209
1207
|
$metadata: deserializeMetadata(output),
|
|
1210
1208
|
});
|
|
1211
1209
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1212
1210
|
if (data.tags != null) {
|
|
1213
|
-
contents.tags =
|
|
1211
|
+
contents.tags = de_TagsMap(data.tags, context);
|
|
1214
1212
|
}
|
|
1215
1213
|
return contents;
|
|
1216
1214
|
};
|
|
1217
|
-
exports.
|
|
1218
|
-
const
|
|
1215
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1216
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1219
1217
|
const parsedOutput = {
|
|
1220
1218
|
...output,
|
|
1221
1219
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1224,13 +1222,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1224
1222
|
switch (errorCode) {
|
|
1225
1223
|
case "InternalServerException":
|
|
1226
1224
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1227
|
-
throw await
|
|
1225
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1228
1226
|
case "ResourceNotFoundException":
|
|
1229
1227
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1230
|
-
throw await
|
|
1228
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1231
1229
|
case "ValidationException":
|
|
1232
1230
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1233
|
-
throw await
|
|
1231
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1234
1232
|
default:
|
|
1235
1233
|
const parsedBody = parsedOutput.body;
|
|
1236
1234
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1241,9 +1239,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1241
1239
|
});
|
|
1242
1240
|
}
|
|
1243
1241
|
};
|
|
1244
|
-
const
|
|
1242
|
+
const de_PostAgentProfileCommand = async (output, context) => {
|
|
1245
1243
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
1244
|
+
return de_PostAgentProfileCommandError(output, context);
|
|
1247
1245
|
}
|
|
1248
1246
|
const contents = map({
|
|
1249
1247
|
$metadata: deserializeMetadata(output),
|
|
@@ -1251,8 +1249,8 @@ const deserializeAws_restJson1PostAgentProfileCommand = async (output, context)
|
|
|
1251
1249
|
await collectBody(output.body, context);
|
|
1252
1250
|
return contents;
|
|
1253
1251
|
};
|
|
1254
|
-
exports.
|
|
1255
|
-
const
|
|
1252
|
+
exports.de_PostAgentProfileCommand = de_PostAgentProfileCommand;
|
|
1253
|
+
const de_PostAgentProfileCommandError = async (output, context) => {
|
|
1256
1254
|
const parsedOutput = {
|
|
1257
1255
|
...output,
|
|
1258
1256
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1261,16 +1259,16 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
|
|
|
1261
1259
|
switch (errorCode) {
|
|
1262
1260
|
case "InternalServerException":
|
|
1263
1261
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1264
|
-
throw await
|
|
1262
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1265
1263
|
case "ResourceNotFoundException":
|
|
1266
1264
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1267
|
-
throw await
|
|
1265
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1268
1266
|
case "ThrottlingException":
|
|
1269
1267
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1270
|
-
throw await
|
|
1268
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1271
1269
|
case "ValidationException":
|
|
1272
1270
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1273
|
-
throw await
|
|
1271
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1274
1272
|
default:
|
|
1275
1273
|
const parsedBody = parsedOutput.body;
|
|
1276
1274
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1281,9 +1279,9 @@ const deserializeAws_restJson1PostAgentProfileCommandError = async (output, cont
|
|
|
1281
1279
|
});
|
|
1282
1280
|
}
|
|
1283
1281
|
};
|
|
1284
|
-
const
|
|
1282
|
+
const de_PutPermissionCommand = async (output, context) => {
|
|
1285
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
1284
|
+
return de_PutPermissionCommandError(output, context);
|
|
1287
1285
|
}
|
|
1288
1286
|
const contents = map({
|
|
1289
1287
|
$metadata: deserializeMetadata(output),
|
|
@@ -1297,8 +1295,8 @@ const deserializeAws_restJson1PutPermissionCommand = async (output, context) =>
|
|
|
1297
1295
|
}
|
|
1298
1296
|
return contents;
|
|
1299
1297
|
};
|
|
1300
|
-
exports.
|
|
1301
|
-
const
|
|
1298
|
+
exports.de_PutPermissionCommand = de_PutPermissionCommand;
|
|
1299
|
+
const de_PutPermissionCommandError = async (output, context) => {
|
|
1302
1300
|
const parsedOutput = {
|
|
1303
1301
|
...output,
|
|
1304
1302
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1307,19 +1305,19 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
|
|
|
1307
1305
|
switch (errorCode) {
|
|
1308
1306
|
case "ConflictException":
|
|
1309
1307
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1310
|
-
throw await
|
|
1308
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1311
1309
|
case "InternalServerException":
|
|
1312
1310
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1313
|
-
throw await
|
|
1311
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1314
1312
|
case "ResourceNotFoundException":
|
|
1315
1313
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1316
|
-
throw await
|
|
1314
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1317
1315
|
case "ThrottlingException":
|
|
1318
1316
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1319
|
-
throw await
|
|
1317
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1320
1318
|
case "ValidationException":
|
|
1321
1319
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1322
|
-
throw await
|
|
1320
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
1321
|
default:
|
|
1324
1322
|
const parsedBody = parsedOutput.body;
|
|
1325
1323
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1330,21 +1328,21 @@ const deserializeAws_restJson1PutPermissionCommandError = async (output, context
|
|
|
1330
1328
|
});
|
|
1331
1329
|
}
|
|
1332
1330
|
};
|
|
1333
|
-
const
|
|
1331
|
+
const de_RemoveNotificationChannelCommand = async (output, context) => {
|
|
1334
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
|
-
return
|
|
1333
|
+
return de_RemoveNotificationChannelCommandError(output, context);
|
|
1336
1334
|
}
|
|
1337
1335
|
const contents = map({
|
|
1338
1336
|
$metadata: deserializeMetadata(output),
|
|
1339
1337
|
});
|
|
1340
1338
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1341
1339
|
if (data.notificationConfiguration != null) {
|
|
1342
|
-
contents.notificationConfiguration =
|
|
1340
|
+
contents.notificationConfiguration = de_NotificationConfiguration(data.notificationConfiguration, context);
|
|
1343
1341
|
}
|
|
1344
1342
|
return contents;
|
|
1345
1343
|
};
|
|
1346
|
-
exports.
|
|
1347
|
-
const
|
|
1344
|
+
exports.de_RemoveNotificationChannelCommand = de_RemoveNotificationChannelCommand;
|
|
1345
|
+
const de_RemoveNotificationChannelCommandError = async (output, context) => {
|
|
1348
1346
|
const parsedOutput = {
|
|
1349
1347
|
...output,
|
|
1350
1348
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1353,16 +1351,16 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1353
1351
|
switch (errorCode) {
|
|
1354
1352
|
case "InternalServerException":
|
|
1355
1353
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1356
|
-
throw await
|
|
1354
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1357
1355
|
case "ResourceNotFoundException":
|
|
1358
1356
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1359
|
-
throw await
|
|
1357
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1360
1358
|
case "ThrottlingException":
|
|
1361
1359
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1362
|
-
throw await
|
|
1360
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1363
1361
|
case "ValidationException":
|
|
1364
1362
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1365
|
-
throw await
|
|
1363
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1366
1364
|
default:
|
|
1367
1365
|
const parsedBody = parsedOutput.body;
|
|
1368
1366
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1373,9 +1371,9 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1373
1371
|
});
|
|
1374
1372
|
}
|
|
1375
1373
|
};
|
|
1376
|
-
const
|
|
1374
|
+
const de_RemovePermissionCommand = async (output, context) => {
|
|
1377
1375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1378
|
-
return
|
|
1376
|
+
return de_RemovePermissionCommandError(output, context);
|
|
1379
1377
|
}
|
|
1380
1378
|
const contents = map({
|
|
1381
1379
|
$metadata: deserializeMetadata(output),
|
|
@@ -1389,8 +1387,8 @@ const deserializeAws_restJson1RemovePermissionCommand = async (output, context)
|
|
|
1389
1387
|
}
|
|
1390
1388
|
return contents;
|
|
1391
1389
|
};
|
|
1392
|
-
exports.
|
|
1393
|
-
const
|
|
1390
|
+
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
1391
|
+
const de_RemovePermissionCommandError = async (output, context) => {
|
|
1394
1392
|
const parsedOutput = {
|
|
1395
1393
|
...output,
|
|
1396
1394
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1399,19 +1397,19 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
1399
1397
|
switch (errorCode) {
|
|
1400
1398
|
case "ConflictException":
|
|
1401
1399
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1402
|
-
throw await
|
|
1400
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1403
1401
|
case "InternalServerException":
|
|
1404
1402
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1405
|
-
throw await
|
|
1403
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1406
1404
|
case "ResourceNotFoundException":
|
|
1407
1405
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1408
|
-
throw await
|
|
1406
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1409
1407
|
case "ThrottlingException":
|
|
1410
1408
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1411
|
-
throw await
|
|
1409
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1412
1410
|
case "ValidationException":
|
|
1413
1411
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1414
|
-
throw await
|
|
1412
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1415
1413
|
default:
|
|
1416
1414
|
const parsedBody = parsedOutput.body;
|
|
1417
1415
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1422,9 +1420,9 @@ const deserializeAws_restJson1RemovePermissionCommandError = async (output, cont
|
|
|
1422
1420
|
});
|
|
1423
1421
|
}
|
|
1424
1422
|
};
|
|
1425
|
-
const
|
|
1423
|
+
const de_SubmitFeedbackCommand = async (output, context) => {
|
|
1426
1424
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1427
|
-
return
|
|
1425
|
+
return de_SubmitFeedbackCommandError(output, context);
|
|
1428
1426
|
}
|
|
1429
1427
|
const contents = map({
|
|
1430
1428
|
$metadata: deserializeMetadata(output),
|
|
@@ -1432,8 +1430,8 @@ const deserializeAws_restJson1SubmitFeedbackCommand = async (output, context) =>
|
|
|
1432
1430
|
await collectBody(output.body, context);
|
|
1433
1431
|
return contents;
|
|
1434
1432
|
};
|
|
1435
|
-
exports.
|
|
1436
|
-
const
|
|
1433
|
+
exports.de_SubmitFeedbackCommand = de_SubmitFeedbackCommand;
|
|
1434
|
+
const de_SubmitFeedbackCommandError = async (output, context) => {
|
|
1437
1435
|
const parsedOutput = {
|
|
1438
1436
|
...output,
|
|
1439
1437
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1442,16 +1440,16 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
|
|
|
1442
1440
|
switch (errorCode) {
|
|
1443
1441
|
case "InternalServerException":
|
|
1444
1442
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1445
|
-
throw await
|
|
1443
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1446
1444
|
case "ResourceNotFoundException":
|
|
1447
1445
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1448
|
-
throw await
|
|
1446
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1449
1447
|
case "ThrottlingException":
|
|
1450
1448
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1451
|
-
throw await
|
|
1449
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1452
1450
|
case "ValidationException":
|
|
1453
1451
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1454
|
-
throw await
|
|
1452
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1455
1453
|
default:
|
|
1456
1454
|
const parsedBody = parsedOutput.body;
|
|
1457
1455
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1462,9 +1460,9 @@ const deserializeAws_restJson1SubmitFeedbackCommandError = async (output, contex
|
|
|
1462
1460
|
});
|
|
1463
1461
|
}
|
|
1464
1462
|
};
|
|
1465
|
-
const
|
|
1463
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1466
1464
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
1465
|
+
return de_TagResourceCommandError(output, context);
|
|
1468
1466
|
}
|
|
1469
1467
|
const contents = map({
|
|
1470
1468
|
$metadata: deserializeMetadata(output),
|
|
@@ -1472,8 +1470,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1472
1470
|
await collectBody(output.body, context);
|
|
1473
1471
|
return contents;
|
|
1474
1472
|
};
|
|
1475
|
-
exports.
|
|
1476
|
-
const
|
|
1473
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1474
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1477
1475
|
const parsedOutput = {
|
|
1478
1476
|
...output,
|
|
1479
1477
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1482,13 +1480,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1482
1480
|
switch (errorCode) {
|
|
1483
1481
|
case "InternalServerException":
|
|
1484
1482
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1485
|
-
throw await
|
|
1483
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1486
1484
|
case "ResourceNotFoundException":
|
|
1487
1485
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1488
|
-
throw await
|
|
1486
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1489
1487
|
case "ValidationException":
|
|
1490
1488
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1491
|
-
throw await
|
|
1489
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1492
1490
|
default:
|
|
1493
1491
|
const parsedBody = parsedOutput.body;
|
|
1494
1492
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1499,9 +1497,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1499
1497
|
});
|
|
1500
1498
|
}
|
|
1501
1499
|
};
|
|
1502
|
-
const
|
|
1500
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1503
1501
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1504
|
-
return
|
|
1502
|
+
return de_UntagResourceCommandError(output, context);
|
|
1505
1503
|
}
|
|
1506
1504
|
const contents = map({
|
|
1507
1505
|
$metadata: deserializeMetadata(output),
|
|
@@ -1509,8 +1507,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1509
1507
|
await collectBody(output.body, context);
|
|
1510
1508
|
return contents;
|
|
1511
1509
|
};
|
|
1512
|
-
exports.
|
|
1513
|
-
const
|
|
1510
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1511
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1514
1512
|
const parsedOutput = {
|
|
1515
1513
|
...output,
|
|
1516
1514
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1519,13 +1517,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1519
1517
|
switch (errorCode) {
|
|
1520
1518
|
case "InternalServerException":
|
|
1521
1519
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1522
|
-
throw await
|
|
1520
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1523
1521
|
case "ResourceNotFoundException":
|
|
1524
1522
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1525
|
-
throw await
|
|
1523
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1526
1524
|
case "ValidationException":
|
|
1527
1525
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1528
|
-
throw await
|
|
1526
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1529
1527
|
default:
|
|
1530
1528
|
const parsedBody = parsedOutput.body;
|
|
1531
1529
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1536,19 +1534,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1536
1534
|
});
|
|
1537
1535
|
}
|
|
1538
1536
|
};
|
|
1539
|
-
const
|
|
1537
|
+
const de_UpdateProfilingGroupCommand = async (output, context) => {
|
|
1540
1538
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
-
return
|
|
1539
|
+
return de_UpdateProfilingGroupCommandError(output, context);
|
|
1542
1540
|
}
|
|
1543
1541
|
const contents = map({
|
|
1544
1542
|
$metadata: deserializeMetadata(output),
|
|
1545
1543
|
});
|
|
1546
1544
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1547
|
-
contents.profilingGroup =
|
|
1545
|
+
contents.profilingGroup = de_ProfilingGroupDescription(data, context);
|
|
1548
1546
|
return contents;
|
|
1549
1547
|
};
|
|
1550
|
-
exports.
|
|
1551
|
-
const
|
|
1548
|
+
exports.de_UpdateProfilingGroupCommand = de_UpdateProfilingGroupCommand;
|
|
1549
|
+
const de_UpdateProfilingGroupCommandError = async (output, context) => {
|
|
1552
1550
|
const parsedOutput = {
|
|
1553
1551
|
...output,
|
|
1554
1552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1557,19 +1555,19 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
|
|
|
1557
1555
|
switch (errorCode) {
|
|
1558
1556
|
case "ConflictException":
|
|
1559
1557
|
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1560
|
-
throw await
|
|
1558
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1561
1559
|
case "InternalServerException":
|
|
1562
1560
|
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1563
|
-
throw await
|
|
1561
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1564
1562
|
case "ResourceNotFoundException":
|
|
1565
1563
|
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1566
|
-
throw await
|
|
1564
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1567
1565
|
case "ThrottlingException":
|
|
1568
1566
|
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1569
|
-
throw await
|
|
1567
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1570
1568
|
case "ValidationException":
|
|
1571
1569
|
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1572
|
-
throw await
|
|
1570
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1573
1571
|
default:
|
|
1574
1572
|
const parsedBody = parsedOutput.body;
|
|
1575
1573
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1581,7 +1579,7 @@ const deserializeAws_restJson1UpdateProfilingGroupCommandError = async (output,
|
|
|
1581
1579
|
}
|
|
1582
1580
|
};
|
|
1583
1581
|
const map = smithy_client_1.map;
|
|
1584
|
-
const
|
|
1582
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1585
1583
|
const contents = map({});
|
|
1586
1584
|
const data = parsedOutput.body;
|
|
1587
1585
|
if (data.message != null) {
|
|
@@ -1593,7 +1591,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1593
1591
|
});
|
|
1594
1592
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1595
1593
|
};
|
|
1596
|
-
const
|
|
1594
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1597
1595
|
const contents = map({});
|
|
1598
1596
|
const data = parsedOutput.body;
|
|
1599
1597
|
if (data.message != null) {
|
|
@@ -1605,7 +1603,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1605
1603
|
});
|
|
1606
1604
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1607
1605
|
};
|
|
1608
|
-
const
|
|
1606
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1609
1607
|
const contents = map({});
|
|
1610
1608
|
const data = parsedOutput.body;
|
|
1611
1609
|
if (data.message != null) {
|
|
@@ -1617,7 +1615,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1617
1615
|
});
|
|
1618
1616
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1619
1617
|
};
|
|
1620
|
-
const
|
|
1618
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1621
1619
|
const contents = map({});
|
|
1622
1620
|
const data = parsedOutput.body;
|
|
1623
1621
|
if (data.message != null) {
|
|
@@ -1629,7 +1627,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1629
1627
|
});
|
|
1630
1628
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1631
1629
|
};
|
|
1632
|
-
const
|
|
1630
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1633
1631
|
const contents = map({});
|
|
1634
1632
|
const data = parsedOutput.body;
|
|
1635
1633
|
if (data.message != null) {
|
|
@@ -1641,7 +1639,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1641
1639
|
});
|
|
1642
1640
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1643
1641
|
};
|
|
1644
|
-
const
|
|
1642
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1645
1643
|
const contents = map({});
|
|
1646
1644
|
const data = parsedOutput.body;
|
|
1647
1645
|
if (data.message != null) {
|
|
@@ -1653,51 +1651,47 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1653
1651
|
});
|
|
1654
1652
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1655
1653
|
};
|
|
1656
|
-
const
|
|
1654
|
+
const se_AgentOrchestrationConfig = (input, context) => {
|
|
1657
1655
|
return {
|
|
1658
1656
|
...(input.profilingEnabled != null && { profilingEnabled: input.profilingEnabled }),
|
|
1659
1657
|
};
|
|
1660
1658
|
};
|
|
1661
|
-
const
|
|
1659
|
+
const se_Channel = (input, context) => {
|
|
1662
1660
|
return {
|
|
1663
|
-
...(input.eventPublishers != null && {
|
|
1664
|
-
eventPublishers: serializeAws_restJson1EventPublishers(input.eventPublishers, context),
|
|
1665
|
-
}),
|
|
1661
|
+
...(input.eventPublishers != null && { eventPublishers: se_EventPublishers(input.eventPublishers, context) }),
|
|
1666
1662
|
...(input.id != null && { id: input.id }),
|
|
1667
1663
|
...(input.uri != null && { uri: input.uri }),
|
|
1668
1664
|
};
|
|
1669
1665
|
};
|
|
1670
|
-
const
|
|
1666
|
+
const se_Channels = (input, context) => {
|
|
1671
1667
|
return input
|
|
1672
1668
|
.filter((e) => e != null)
|
|
1673
1669
|
.map((entry) => {
|
|
1674
|
-
return
|
|
1670
|
+
return se_Channel(entry, context);
|
|
1675
1671
|
});
|
|
1676
1672
|
};
|
|
1677
|
-
const
|
|
1673
|
+
const se_EventPublishers = (input, context) => {
|
|
1678
1674
|
return input
|
|
1679
1675
|
.filter((e) => e != null)
|
|
1680
1676
|
.map((entry) => {
|
|
1681
1677
|
return entry;
|
|
1682
1678
|
});
|
|
1683
1679
|
};
|
|
1684
|
-
const
|
|
1680
|
+
const se_FrameMetric = (input, context) => {
|
|
1685
1681
|
return {
|
|
1686
1682
|
...(input.frameName != null && { frameName: input.frameName }),
|
|
1687
|
-
...(input.threadStates != null && {
|
|
1688
|
-
threadStates: serializeAws_restJson1ThreadStates(input.threadStates, context),
|
|
1689
|
-
}),
|
|
1683
|
+
...(input.threadStates != null && { threadStates: se_ThreadStates(input.threadStates, context) }),
|
|
1690
1684
|
...(input.type != null && { type: input.type }),
|
|
1691
1685
|
};
|
|
1692
1686
|
};
|
|
1693
|
-
const
|
|
1687
|
+
const se_FrameMetrics = (input, context) => {
|
|
1694
1688
|
return input
|
|
1695
1689
|
.filter((e) => e != null)
|
|
1696
1690
|
.map((entry) => {
|
|
1697
|
-
return
|
|
1691
|
+
return se_FrameMetric(entry, context);
|
|
1698
1692
|
});
|
|
1699
1693
|
};
|
|
1700
|
-
const
|
|
1694
|
+
const se_Metadata = (input, context) => {
|
|
1701
1695
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1702
1696
|
if (value === null) {
|
|
1703
1697
|
return acc;
|
|
@@ -1706,14 +1700,14 @@ const serializeAws_restJson1Metadata = (input, context) => {
|
|
|
1706
1700
|
return acc;
|
|
1707
1701
|
}, {});
|
|
1708
1702
|
};
|
|
1709
|
-
const
|
|
1703
|
+
const se_Principals = (input, context) => {
|
|
1710
1704
|
return input
|
|
1711
1705
|
.filter((e) => e != null)
|
|
1712
1706
|
.map((entry) => {
|
|
1713
1707
|
return entry;
|
|
1714
1708
|
});
|
|
1715
1709
|
};
|
|
1716
|
-
const
|
|
1710
|
+
const se_TagsMap = (input, context) => {
|
|
1717
1711
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1718
1712
|
if (value === null) {
|
|
1719
1713
|
return acc;
|
|
@@ -1722,28 +1716,26 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
1722
1716
|
return acc;
|
|
1723
1717
|
}, {});
|
|
1724
1718
|
};
|
|
1725
|
-
const
|
|
1719
|
+
const se_ThreadStates = (input, context) => {
|
|
1726
1720
|
return input
|
|
1727
1721
|
.filter((e) => e != null)
|
|
1728
1722
|
.map((entry) => {
|
|
1729
1723
|
return entry;
|
|
1730
1724
|
});
|
|
1731
1725
|
};
|
|
1732
|
-
const
|
|
1726
|
+
const de_AgentConfiguration = (output, context) => {
|
|
1733
1727
|
return {
|
|
1734
|
-
agentParameters: output.agentParameters != null
|
|
1735
|
-
? deserializeAws_restJson1AgentParameters(output.agentParameters, context)
|
|
1736
|
-
: undefined,
|
|
1728
|
+
agentParameters: output.agentParameters != null ? de_AgentParameters(output.agentParameters, context) : undefined,
|
|
1737
1729
|
periodInSeconds: (0, smithy_client_1.expectInt32)(output.periodInSeconds),
|
|
1738
1730
|
shouldProfile: (0, smithy_client_1.expectBoolean)(output.shouldProfile),
|
|
1739
1731
|
};
|
|
1740
1732
|
};
|
|
1741
|
-
const
|
|
1733
|
+
const de_AgentOrchestrationConfig = (output, context) => {
|
|
1742
1734
|
return {
|
|
1743
1735
|
profilingEnabled: (0, smithy_client_1.expectBoolean)(output.profilingEnabled),
|
|
1744
1736
|
};
|
|
1745
1737
|
};
|
|
1746
|
-
const
|
|
1738
|
+
const de_AgentParameters = (output, context) => {
|
|
1747
1739
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1748
1740
|
if (value === null) {
|
|
1749
1741
|
return acc;
|
|
@@ -1752,70 +1744,68 @@ const deserializeAws_restJson1AgentParameters = (output, context) => {
|
|
|
1752
1744
|
return acc;
|
|
1753
1745
|
}, {});
|
|
1754
1746
|
};
|
|
1755
|
-
const
|
|
1747
|
+
const de_AggregatedProfileTime = (output, context) => {
|
|
1756
1748
|
return {
|
|
1757
1749
|
period: (0, smithy_client_1.expectString)(output.period),
|
|
1758
1750
|
start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.start)) : undefined,
|
|
1759
1751
|
};
|
|
1760
1752
|
};
|
|
1761
|
-
const
|
|
1753
|
+
const de_Anomalies = (output, context) => {
|
|
1762
1754
|
const retVal = (output || [])
|
|
1763
1755
|
.filter((e) => e != null)
|
|
1764
1756
|
.map((entry) => {
|
|
1765
1757
|
if (entry === null) {
|
|
1766
1758
|
return null;
|
|
1767
1759
|
}
|
|
1768
|
-
return
|
|
1760
|
+
return de_Anomaly(entry, context);
|
|
1769
1761
|
});
|
|
1770
1762
|
return retVal;
|
|
1771
1763
|
};
|
|
1772
|
-
const
|
|
1764
|
+
const de_Anomaly = (output, context) => {
|
|
1773
1765
|
return {
|
|
1774
|
-
instances: output.instances != null ?
|
|
1775
|
-
metric: output.metric != null ?
|
|
1766
|
+
instances: output.instances != null ? de_AnomalyInstances(output.instances, context) : undefined,
|
|
1767
|
+
metric: output.metric != null ? de_Metric(output.metric, context) : undefined,
|
|
1776
1768
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1777
1769
|
};
|
|
1778
1770
|
};
|
|
1779
|
-
const
|
|
1771
|
+
const de_AnomalyInstance = (output, context) => {
|
|
1780
1772
|
return {
|
|
1781
1773
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.endTime)) : undefined,
|
|
1782
1774
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1783
1775
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.startTime)) : undefined,
|
|
1784
|
-
userFeedback: output.userFeedback != null ?
|
|
1776
|
+
userFeedback: output.userFeedback != null ? de_UserFeedback(output.userFeedback, context) : undefined,
|
|
1785
1777
|
};
|
|
1786
1778
|
};
|
|
1787
|
-
const
|
|
1779
|
+
const de_AnomalyInstances = (output, context) => {
|
|
1788
1780
|
const retVal = (output || [])
|
|
1789
1781
|
.filter((e) => e != null)
|
|
1790
1782
|
.map((entry) => {
|
|
1791
1783
|
if (entry === null) {
|
|
1792
1784
|
return null;
|
|
1793
1785
|
}
|
|
1794
|
-
return
|
|
1786
|
+
return de_AnomalyInstance(entry, context);
|
|
1795
1787
|
});
|
|
1796
1788
|
return retVal;
|
|
1797
1789
|
};
|
|
1798
|
-
const
|
|
1790
|
+
const de_Channel = (output, context) => {
|
|
1799
1791
|
return {
|
|
1800
|
-
eventPublishers: output.eventPublishers != null
|
|
1801
|
-
? deserializeAws_restJson1EventPublishers(output.eventPublishers, context)
|
|
1802
|
-
: undefined,
|
|
1792
|
+
eventPublishers: output.eventPublishers != null ? de_EventPublishers(output.eventPublishers, context) : undefined,
|
|
1803
1793
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1804
1794
|
uri: (0, smithy_client_1.expectString)(output.uri),
|
|
1805
1795
|
};
|
|
1806
1796
|
};
|
|
1807
|
-
const
|
|
1797
|
+
const de_Channels = (output, context) => {
|
|
1808
1798
|
const retVal = (output || [])
|
|
1809
1799
|
.filter((e) => e != null)
|
|
1810
1800
|
.map((entry) => {
|
|
1811
1801
|
if (entry === null) {
|
|
1812
1802
|
return null;
|
|
1813
1803
|
}
|
|
1814
|
-
return
|
|
1804
|
+
return de_Channel(entry, context);
|
|
1815
1805
|
});
|
|
1816
1806
|
return retVal;
|
|
1817
1807
|
};
|
|
1818
|
-
const
|
|
1808
|
+
const de_EventPublishers = (output, context) => {
|
|
1819
1809
|
const retVal = (output || [])
|
|
1820
1810
|
.filter((e) => e != null)
|
|
1821
1811
|
.map((entry) => {
|
|
@@ -1826,18 +1816,18 @@ const deserializeAws_restJson1EventPublishers = (output, context) => {
|
|
|
1826
1816
|
});
|
|
1827
1817
|
return retVal;
|
|
1828
1818
|
};
|
|
1829
|
-
const
|
|
1819
|
+
const de_FindingsReportSummaries = (output, context) => {
|
|
1830
1820
|
const retVal = (output || [])
|
|
1831
1821
|
.filter((e) => e != null)
|
|
1832
1822
|
.map((entry) => {
|
|
1833
1823
|
if (entry === null) {
|
|
1834
1824
|
return null;
|
|
1835
1825
|
}
|
|
1836
|
-
return
|
|
1826
|
+
return de_FindingsReportSummary(entry, context);
|
|
1837
1827
|
});
|
|
1838
1828
|
return retVal;
|
|
1839
1829
|
};
|
|
1840
|
-
const
|
|
1830
|
+
const de_FindingsReportSummary = (output, context) => {
|
|
1841
1831
|
return {
|
|
1842
1832
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1843
1833
|
profileEndTime: output.profileEndTime != null
|
|
@@ -1850,31 +1840,31 @@ const deserializeAws_restJson1FindingsReportSummary = (output, context) => {
|
|
|
1850
1840
|
totalNumberOfFindings: (0, smithy_client_1.expectInt32)(output.totalNumberOfFindings),
|
|
1851
1841
|
};
|
|
1852
1842
|
};
|
|
1853
|
-
const
|
|
1843
|
+
const de_FrameMetric = (output, context) => {
|
|
1854
1844
|
return {
|
|
1855
1845
|
frameName: (0, smithy_client_1.expectString)(output.frameName),
|
|
1856
|
-
threadStates: output.threadStates != null ?
|
|
1846
|
+
threadStates: output.threadStates != null ? de_ThreadStates(output.threadStates, context) : undefined,
|
|
1857
1847
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1858
1848
|
};
|
|
1859
1849
|
};
|
|
1860
|
-
const
|
|
1850
|
+
const de_FrameMetricData = (output, context) => {
|
|
1861
1851
|
const retVal = (output || [])
|
|
1862
1852
|
.filter((e) => e != null)
|
|
1863
1853
|
.map((entry) => {
|
|
1864
1854
|
if (entry === null) {
|
|
1865
1855
|
return null;
|
|
1866
1856
|
}
|
|
1867
|
-
return
|
|
1857
|
+
return de_FrameMetricDatum(entry, context);
|
|
1868
1858
|
});
|
|
1869
1859
|
return retVal;
|
|
1870
1860
|
};
|
|
1871
|
-
const
|
|
1861
|
+
const de_FrameMetricDatum = (output, context) => {
|
|
1872
1862
|
return {
|
|
1873
|
-
frameMetric: output.frameMetric != null ?
|
|
1874
|
-
values: output.values != null ?
|
|
1863
|
+
frameMetric: output.frameMetric != null ? de_FrameMetric(output.frameMetric, context) : undefined,
|
|
1864
|
+
values: output.values != null ? de_FrameMetricValues(output.values, context) : undefined,
|
|
1875
1865
|
};
|
|
1876
1866
|
};
|
|
1877
|
-
const
|
|
1867
|
+
const de_FrameMetricValues = (output, context) => {
|
|
1878
1868
|
const retVal = (output || [])
|
|
1879
1869
|
.filter((e) => e != null)
|
|
1880
1870
|
.map((entry) => {
|
|
@@ -1885,104 +1875,100 @@ const deserializeAws_restJson1FrameMetricValues = (output, context) => {
|
|
|
1885
1875
|
});
|
|
1886
1876
|
return retVal;
|
|
1887
1877
|
};
|
|
1888
|
-
const
|
|
1878
|
+
const de_ListOfTimestamps = (output, context) => {
|
|
1889
1879
|
const retVal = (output || [])
|
|
1890
1880
|
.filter((e) => e != null)
|
|
1891
1881
|
.map((entry) => {
|
|
1892
1882
|
if (entry === null) {
|
|
1893
1883
|
return null;
|
|
1894
1884
|
}
|
|
1895
|
-
return
|
|
1885
|
+
return de_TimestampStructure(entry, context);
|
|
1896
1886
|
});
|
|
1897
1887
|
return retVal;
|
|
1898
1888
|
};
|
|
1899
|
-
const
|
|
1889
|
+
const de_Match = (output, context) => {
|
|
1900
1890
|
return {
|
|
1901
1891
|
frameAddress: (0, smithy_client_1.expectString)(output.frameAddress),
|
|
1902
1892
|
targetFramesIndex: (0, smithy_client_1.expectInt32)(output.targetFramesIndex),
|
|
1903
1893
|
thresholdBreachValue: (0, smithy_client_1.limitedParseDouble)(output.thresholdBreachValue),
|
|
1904
1894
|
};
|
|
1905
1895
|
};
|
|
1906
|
-
const
|
|
1896
|
+
const de_Matches = (output, context) => {
|
|
1907
1897
|
const retVal = (output || [])
|
|
1908
1898
|
.filter((e) => e != null)
|
|
1909
1899
|
.map((entry) => {
|
|
1910
1900
|
if (entry === null) {
|
|
1911
1901
|
return null;
|
|
1912
1902
|
}
|
|
1913
|
-
return
|
|
1903
|
+
return de_Match(entry, context);
|
|
1914
1904
|
});
|
|
1915
1905
|
return retVal;
|
|
1916
1906
|
};
|
|
1917
|
-
const
|
|
1907
|
+
const de_Metric = (output, context) => {
|
|
1918
1908
|
return {
|
|
1919
1909
|
frameName: (0, smithy_client_1.expectString)(output.frameName),
|
|
1920
|
-
threadStates: output.threadStates != null ?
|
|
1910
|
+
threadStates: output.threadStates != null ? de_Strings(output.threadStates, context) : undefined,
|
|
1921
1911
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1922
1912
|
};
|
|
1923
1913
|
};
|
|
1924
|
-
const
|
|
1914
|
+
const de_NotificationConfiguration = (output, context) => {
|
|
1925
1915
|
return {
|
|
1926
|
-
channels: output.channels != null ?
|
|
1916
|
+
channels: output.channels != null ? de_Channels(output.channels, context) : undefined,
|
|
1927
1917
|
};
|
|
1928
1918
|
};
|
|
1929
|
-
const
|
|
1919
|
+
const de_Pattern = (output, context) => {
|
|
1930
1920
|
return {
|
|
1931
|
-
countersToAggregate: output.countersToAggregate != null
|
|
1932
|
-
? deserializeAws_restJson1Strings(output.countersToAggregate, context)
|
|
1933
|
-
: undefined,
|
|
1921
|
+
countersToAggregate: output.countersToAggregate != null ? de_Strings(output.countersToAggregate, context) : undefined,
|
|
1934
1922
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1935
1923
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1936
1924
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1937
1925
|
resolutionSteps: (0, smithy_client_1.expectString)(output.resolutionSteps),
|
|
1938
|
-
targetFrames: output.targetFrames != null ?
|
|
1926
|
+
targetFrames: output.targetFrames != null ? de_TargetFrames(output.targetFrames, context) : undefined,
|
|
1939
1927
|
thresholdPercent: (0, smithy_client_1.limitedParseDouble)(output.thresholdPercent),
|
|
1940
1928
|
};
|
|
1941
1929
|
};
|
|
1942
|
-
const
|
|
1930
|
+
const de_ProfileTime = (output, context) => {
|
|
1943
1931
|
return {
|
|
1944
1932
|
start: output.start != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.start)) : undefined,
|
|
1945
1933
|
};
|
|
1946
1934
|
};
|
|
1947
|
-
const
|
|
1935
|
+
const de_ProfileTimes = (output, context) => {
|
|
1948
1936
|
const retVal = (output || [])
|
|
1949
1937
|
.filter((e) => e != null)
|
|
1950
1938
|
.map((entry) => {
|
|
1951
1939
|
if (entry === null) {
|
|
1952
1940
|
return null;
|
|
1953
1941
|
}
|
|
1954
|
-
return
|
|
1942
|
+
return de_ProfileTime(entry, context);
|
|
1955
1943
|
});
|
|
1956
1944
|
return retVal;
|
|
1957
1945
|
};
|
|
1958
|
-
const
|
|
1946
|
+
const de_ProfilingGroupDescription = (output, context) => {
|
|
1959
1947
|
return {
|
|
1960
1948
|
agentOrchestrationConfig: output.agentOrchestrationConfig != null
|
|
1961
|
-
?
|
|
1949
|
+
? de_AgentOrchestrationConfig(output.agentOrchestrationConfig, context)
|
|
1962
1950
|
: undefined,
|
|
1963
1951
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1964
1952
|
computePlatform: (0, smithy_client_1.expectString)(output.computePlatform),
|
|
1965
1953
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
1966
1954
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1967
|
-
profilingStatus: output.profilingStatus != null
|
|
1968
|
-
|
|
1969
|
-
: undefined,
|
|
1970
|
-
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
1955
|
+
profilingStatus: output.profilingStatus != null ? de_ProfilingStatus(output.profilingStatus, context) : undefined,
|
|
1956
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
1971
1957
|
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
|
|
1972
1958
|
};
|
|
1973
1959
|
};
|
|
1974
|
-
const
|
|
1960
|
+
const de_ProfilingGroupDescriptions = (output, context) => {
|
|
1975
1961
|
const retVal = (output || [])
|
|
1976
1962
|
.filter((e) => e != null)
|
|
1977
1963
|
.map((entry) => {
|
|
1978
1964
|
if (entry === null) {
|
|
1979
1965
|
return null;
|
|
1980
1966
|
}
|
|
1981
|
-
return
|
|
1967
|
+
return de_ProfilingGroupDescription(entry, context);
|
|
1982
1968
|
});
|
|
1983
1969
|
return retVal;
|
|
1984
1970
|
};
|
|
1985
|
-
const
|
|
1971
|
+
const de_ProfilingGroupNames = (output, context) => {
|
|
1986
1972
|
const retVal = (output || [])
|
|
1987
1973
|
.filter((e) => e != null)
|
|
1988
1974
|
.map((entry) => {
|
|
@@ -1993,7 +1979,7 @@ const deserializeAws_restJson1ProfilingGroupNames = (output, context) => {
|
|
|
1993
1979
|
});
|
|
1994
1980
|
return retVal;
|
|
1995
1981
|
};
|
|
1996
|
-
const
|
|
1982
|
+
const de_ProfilingStatus = (output, context) => {
|
|
1997
1983
|
return {
|
|
1998
1984
|
latestAgentOrchestratedAt: output.latestAgentOrchestratedAt != null
|
|
1999
1985
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.latestAgentOrchestratedAt))
|
|
@@ -2002,32 +1988,32 @@ const deserializeAws_restJson1ProfilingStatus = (output, context) => {
|
|
|
2002
1988
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.latestAgentProfileReportedAt))
|
|
2003
1989
|
: undefined,
|
|
2004
1990
|
latestAggregatedProfile: output.latestAggregatedProfile != null
|
|
2005
|
-
?
|
|
1991
|
+
? de_AggregatedProfileTime(output.latestAggregatedProfile, context)
|
|
2006
1992
|
: undefined,
|
|
2007
1993
|
};
|
|
2008
1994
|
};
|
|
2009
|
-
const
|
|
1995
|
+
const de_Recommendation = (output, context) => {
|
|
2010
1996
|
return {
|
|
2011
1997
|
allMatchesCount: (0, smithy_client_1.expectInt32)(output.allMatchesCount),
|
|
2012
1998
|
allMatchesSum: (0, smithy_client_1.limitedParseDouble)(output.allMatchesSum),
|
|
2013
1999
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.endTime)) : undefined,
|
|
2014
|
-
pattern: output.pattern != null ?
|
|
2000
|
+
pattern: output.pattern != null ? de_Pattern(output.pattern, context) : undefined,
|
|
2015
2001
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.startTime)) : undefined,
|
|
2016
|
-
topMatches: output.topMatches != null ?
|
|
2002
|
+
topMatches: output.topMatches != null ? de_Matches(output.topMatches, context) : undefined,
|
|
2017
2003
|
};
|
|
2018
2004
|
};
|
|
2019
|
-
const
|
|
2005
|
+
const de_Recommendations = (output, context) => {
|
|
2020
2006
|
const retVal = (output || [])
|
|
2021
2007
|
.filter((e) => e != null)
|
|
2022
2008
|
.map((entry) => {
|
|
2023
2009
|
if (entry === null) {
|
|
2024
2010
|
return null;
|
|
2025
2011
|
}
|
|
2026
|
-
return
|
|
2012
|
+
return de_Recommendation(entry, context);
|
|
2027
2013
|
});
|
|
2028
2014
|
return retVal;
|
|
2029
2015
|
};
|
|
2030
|
-
const
|
|
2016
|
+
const de_Strings = (output, context) => {
|
|
2031
2017
|
const retVal = (output || [])
|
|
2032
2018
|
.filter((e) => e != null)
|
|
2033
2019
|
.map((entry) => {
|
|
@@ -2038,7 +2024,7 @@ const deserializeAws_restJson1Strings = (output, context) => {
|
|
|
2038
2024
|
});
|
|
2039
2025
|
return retVal;
|
|
2040
2026
|
};
|
|
2041
|
-
const
|
|
2027
|
+
const de_TagsMap = (output, context) => {
|
|
2042
2028
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2043
2029
|
if (value === null) {
|
|
2044
2030
|
return acc;
|
|
@@ -2047,7 +2033,7 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
2047
2033
|
return acc;
|
|
2048
2034
|
}, {});
|
|
2049
2035
|
};
|
|
2050
|
-
const
|
|
2036
|
+
const de_TargetFrame = (output, context) => {
|
|
2051
2037
|
const retVal = (output || [])
|
|
2052
2038
|
.filter((e) => e != null)
|
|
2053
2039
|
.map((entry) => {
|
|
@@ -2058,18 +2044,18 @@ const deserializeAws_restJson1TargetFrame = (output, context) => {
|
|
|
2058
2044
|
});
|
|
2059
2045
|
return retVal;
|
|
2060
2046
|
};
|
|
2061
|
-
const
|
|
2047
|
+
const de_TargetFrames = (output, context) => {
|
|
2062
2048
|
const retVal = (output || [])
|
|
2063
2049
|
.filter((e) => e != null)
|
|
2064
2050
|
.map((entry) => {
|
|
2065
2051
|
if (entry === null) {
|
|
2066
2052
|
return null;
|
|
2067
2053
|
}
|
|
2068
|
-
return
|
|
2054
|
+
return de_TargetFrame(entry, context);
|
|
2069
2055
|
});
|
|
2070
2056
|
return retVal;
|
|
2071
2057
|
};
|
|
2072
|
-
const
|
|
2058
|
+
const de_ThreadStates = (output, context) => {
|
|
2073
2059
|
const retVal = (output || [])
|
|
2074
2060
|
.filter((e) => e != null)
|
|
2075
2061
|
.map((entry) => {
|
|
@@ -2080,21 +2066,21 @@ const deserializeAws_restJson1ThreadStates = (output, context) => {
|
|
|
2080
2066
|
});
|
|
2081
2067
|
return retVal;
|
|
2082
2068
|
};
|
|
2083
|
-
const
|
|
2069
|
+
const de_TimestampStructure = (output, context) => {
|
|
2084
2070
|
return {
|
|
2085
2071
|
value: output.value != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.value)) : undefined,
|
|
2086
2072
|
};
|
|
2087
2073
|
};
|
|
2088
|
-
const
|
|
2074
|
+
const de_UnprocessedEndTimeMap = (output, context) => {
|
|
2089
2075
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2090
2076
|
if (value === null) {
|
|
2091
2077
|
return acc;
|
|
2092
2078
|
}
|
|
2093
|
-
acc[key] =
|
|
2079
|
+
acc[key] = de_ListOfTimestamps(value, context);
|
|
2094
2080
|
return acc;
|
|
2095
2081
|
}, {});
|
|
2096
2082
|
};
|
|
2097
|
-
const
|
|
2083
|
+
const de_UserFeedback = (output, context) => {
|
|
2098
2084
|
return {
|
|
2099
2085
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2100
2086
|
};
|