@aws-sdk/client-codeguruprofiler 3.490.0 → 3.496.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/CodeGuruProfiler.js +1 -57
- package/dist-cjs/CodeGuruProfilerClient.js +1 -43
- package/dist-cjs/commands/AddNotificationChannelsCommand.js +1 -28
- package/dist-cjs/commands/BatchGetFrameMetricDataCommand.js +1 -28
- package/dist-cjs/commands/ConfigureAgentCommand.js +1 -28
- package/dist-cjs/commands/CreateProfilingGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteProfilingGroupCommand.js +1 -28
- package/dist-cjs/commands/DescribeProfilingGroupCommand.js +1 -28
- package/dist-cjs/commands/GetFindingsReportAccountSummaryCommand.js +1 -28
- package/dist-cjs/commands/GetNotificationConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetProfileCommand.js +1 -28
- package/dist-cjs/commands/GetRecommendationsCommand.js +1 -28
- package/dist-cjs/commands/ListFindingsReportsCommand.js +1 -28
- package/dist-cjs/commands/ListProfileTimesCommand.js +1 -28
- package/dist-cjs/commands/ListProfilingGroupsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PostAgentProfileCommand.js +1 -28
- package/dist-cjs/commands/PutPermissionCommand.js +1 -28
- package/dist-cjs/commands/RemoveNotificationChannelCommand.js +1 -28
- package/dist-cjs/commands/RemovePermissionCommand.js +1 -28
- package/dist-cjs/commands/SubmitFeedbackCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateProfilingGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2514 -11
- package/dist-cjs/models/CodeGuruProfilerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -129
- package/dist-cjs/pagination/GetFindingsReportAccountSummaryPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListFindingsReportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProfileTimesPaginator.js +1 -7
- package/dist-cjs/pagination/ListProfilingGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1673
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
|
@@ -1,1673 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const uuid_1 = require("uuid");
|
|
7
|
-
const CodeGuruProfilerServiceException_1 = require("../models/CodeGuruProfilerServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_AddNotificationChannelsCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration");
|
|
15
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
channels: (_) => (0, smithy_client_1._json)(_),
|
|
19
|
-
}));
|
|
20
|
-
b.m("POST").h(headers).b(body);
|
|
21
|
-
return b.build();
|
|
22
|
-
};
|
|
23
|
-
exports.se_AddNotificationChannelsCommand = se_AddNotificationChannelsCommand;
|
|
24
|
-
const se_BatchGetFrameMetricDataCommand = async (input, context) => {
|
|
25
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
26
|
-
const headers = {
|
|
27
|
-
"content-type": "application/json",
|
|
28
|
-
};
|
|
29
|
-
b.bp("/profilingGroups/{profilingGroupName}/frames/-/metrics");
|
|
30
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
31
|
-
const query = (0, smithy_client_1.map)({
|
|
32
|
-
[_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
|
|
33
|
-
[_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
|
|
34
|
-
[_p]: [, input[_p]],
|
|
35
|
-
[_tR]: [, input[_tR]],
|
|
36
|
-
});
|
|
37
|
-
let body;
|
|
38
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
39
|
-
frameMetrics: (_) => (0, smithy_client_1._json)(_),
|
|
40
|
-
}));
|
|
41
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
42
|
-
return b.build();
|
|
43
|
-
};
|
|
44
|
-
exports.se_BatchGetFrameMetricDataCommand = se_BatchGetFrameMetricDataCommand;
|
|
45
|
-
const se_ConfigureAgentCommand = async (input, context) => {
|
|
46
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
47
|
-
const headers = {
|
|
48
|
-
"content-type": "application/json",
|
|
49
|
-
};
|
|
50
|
-
b.bp("/profilingGroups/{profilingGroupName}/configureAgent");
|
|
51
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
54
|
-
fleetInstanceId: [],
|
|
55
|
-
metadata: (_) => (0, smithy_client_1._json)(_),
|
|
56
|
-
}));
|
|
57
|
-
b.m("POST").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
exports.se_ConfigureAgentCommand = se_ConfigureAgentCommand;
|
|
61
|
-
const se_CreateProfilingGroupCommand = async (input, context) => {
|
|
62
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
63
|
-
const headers = {
|
|
64
|
-
"content-type": "application/json",
|
|
65
|
-
};
|
|
66
|
-
b.bp("/profilingGroups");
|
|
67
|
-
const query = (0, smithy_client_1.map)({
|
|
68
|
-
[_cT]: [, (0, smithy_client_1.expectNonNull)(input[_cT], `clientToken`)],
|
|
69
|
-
});
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
72
|
-
agentOrchestrationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
73
|
-
computePlatform: [],
|
|
74
|
-
profilingGroupName: [],
|
|
75
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
76
|
-
}));
|
|
77
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
78
|
-
return b.build();
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreateProfilingGroupCommand = se_CreateProfilingGroupCommand;
|
|
81
|
-
const se_DeleteProfilingGroupCommand = async (input, context) => {
|
|
82
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
83
|
-
const headers = {};
|
|
84
|
-
b.bp("/profilingGroups/{profilingGroupName}");
|
|
85
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
86
|
-
let body;
|
|
87
|
-
b.m("DELETE").h(headers).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
exports.se_DeleteProfilingGroupCommand = se_DeleteProfilingGroupCommand;
|
|
91
|
-
const se_DescribeProfilingGroupCommand = async (input, context) => {
|
|
92
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
93
|
-
const headers = {};
|
|
94
|
-
b.bp("/profilingGroups/{profilingGroupName}");
|
|
95
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
96
|
-
let body;
|
|
97
|
-
b.m("GET").h(headers).b(body);
|
|
98
|
-
return b.build();
|
|
99
|
-
};
|
|
100
|
-
exports.se_DescribeProfilingGroupCommand = se_DescribeProfilingGroupCommand;
|
|
101
|
-
const se_GetFindingsReportAccountSummaryCommand = async (input, context) => {
|
|
102
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
103
|
-
const headers = {};
|
|
104
|
-
b.bp("/internal/findingsReports");
|
|
105
|
-
const query = (0, smithy_client_1.map)({
|
|
106
|
-
[_nT]: [, input[_nT]],
|
|
107
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
108
|
-
[_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO].toString()],
|
|
109
|
-
});
|
|
110
|
-
let body;
|
|
111
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
112
|
-
return b.build();
|
|
113
|
-
};
|
|
114
|
-
exports.se_GetFindingsReportAccountSummaryCommand = se_GetFindingsReportAccountSummaryCommand;
|
|
115
|
-
const se_GetNotificationConfigurationCommand = async (input, context) => {
|
|
116
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
117
|
-
const headers = {};
|
|
118
|
-
b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration");
|
|
119
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
120
|
-
let body;
|
|
121
|
-
b.m("GET").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
exports.se_GetNotificationConfigurationCommand = se_GetNotificationConfigurationCommand;
|
|
125
|
-
const se_GetPolicyCommand = async (input, context) => {
|
|
126
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
127
|
-
const headers = {};
|
|
128
|
-
b.bp("/profilingGroups/{profilingGroupName}/policy");
|
|
129
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
130
|
-
let body;
|
|
131
|
-
b.m("GET").h(headers).b(body);
|
|
132
|
-
return b.build();
|
|
133
|
-
};
|
|
134
|
-
exports.se_GetPolicyCommand = se_GetPolicyCommand;
|
|
135
|
-
const se_GetProfileCommand = async (input, context) => {
|
|
136
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
137
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
138
|
-
[_a]: input[_a],
|
|
139
|
-
});
|
|
140
|
-
b.bp("/profilingGroups/{profilingGroupName}/profile");
|
|
141
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
142
|
-
const query = (0, smithy_client_1.map)({
|
|
143
|
-
[_sT]: [() => input.startTime !== void 0, () => (input[_sT].toISOString().split(".")[0] + "Z").toString()],
|
|
144
|
-
[_p]: [, input[_p]],
|
|
145
|
-
[_eT]: [() => input.endTime !== void 0, () => (input[_eT].toISOString().split(".")[0] + "Z").toString()],
|
|
146
|
-
[_mD]: [() => input.maxDepth !== void 0, () => input[_mD].toString()],
|
|
147
|
-
});
|
|
148
|
-
let body;
|
|
149
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
150
|
-
return b.build();
|
|
151
|
-
};
|
|
152
|
-
exports.se_GetProfileCommand = se_GetProfileCommand;
|
|
153
|
-
const se_GetRecommendationsCommand = async (input, context) => {
|
|
154
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
155
|
-
const headers = {};
|
|
156
|
-
b.bp("/internal/profilingGroups/{profilingGroupName}/recommendations");
|
|
157
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
158
|
-
const query = (0, smithy_client_1.map)({
|
|
159
|
-
[_sT]: [
|
|
160
|
-
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
161
|
-
() => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
|
|
162
|
-
],
|
|
163
|
-
[_eT]: [
|
|
164
|
-
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
165
|
-
() => (input[_eT].toISOString().split(".")[0] + "Z").toString(),
|
|
166
|
-
],
|
|
167
|
-
[_l]: [, input[_l]],
|
|
168
|
-
});
|
|
169
|
-
let body;
|
|
170
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
exports.se_GetRecommendationsCommand = se_GetRecommendationsCommand;
|
|
174
|
-
const se_ListFindingsReportsCommand = async (input, context) => {
|
|
175
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
176
|
-
const headers = {};
|
|
177
|
-
b.bp("/internal/profilingGroups/{profilingGroupName}/findingsReports");
|
|
178
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
179
|
-
const query = (0, smithy_client_1.map)({
|
|
180
|
-
[_sT]: [
|
|
181
|
-
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
182
|
-
() => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
|
|
183
|
-
],
|
|
184
|
-
[_eT]: [
|
|
185
|
-
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
186
|
-
() => (input[_eT].toISOString().split(".")[0] + "Z").toString(),
|
|
187
|
-
],
|
|
188
|
-
[_nT]: [, input[_nT]],
|
|
189
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
190
|
-
[_dRO]: [() => input.dailyReportsOnly !== void 0, () => input[_dRO].toString()],
|
|
191
|
-
});
|
|
192
|
-
let body;
|
|
193
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
exports.se_ListFindingsReportsCommand = se_ListFindingsReportsCommand;
|
|
197
|
-
const se_ListProfileTimesCommand = async (input, context) => {
|
|
198
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
199
|
-
const headers = {};
|
|
200
|
-
b.bp("/profilingGroups/{profilingGroupName}/profileTimes");
|
|
201
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
202
|
-
const query = (0, smithy_client_1.map)({
|
|
203
|
-
[_sT]: [
|
|
204
|
-
(0, smithy_client_1.expectNonNull)(input.startTime, `startTime`) != null,
|
|
205
|
-
() => (input[_sT].toISOString().split(".")[0] + "Z").toString(),
|
|
206
|
-
],
|
|
207
|
-
[_eT]: [
|
|
208
|
-
(0, smithy_client_1.expectNonNull)(input.endTime, `endTime`) != null,
|
|
209
|
-
() => (input[_eT].toISOString().split(".")[0] + "Z").toString(),
|
|
210
|
-
],
|
|
211
|
-
[_p]: [, (0, smithy_client_1.expectNonNull)(input[_p], `period`)],
|
|
212
|
-
[_oB]: [, input[_oB]],
|
|
213
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
214
|
-
[_nT]: [, input[_nT]],
|
|
215
|
-
});
|
|
216
|
-
let body;
|
|
217
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
218
|
-
return b.build();
|
|
219
|
-
};
|
|
220
|
-
exports.se_ListProfileTimesCommand = se_ListProfileTimesCommand;
|
|
221
|
-
const se_ListProfilingGroupsCommand = async (input, context) => {
|
|
222
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
223
|
-
const headers = {};
|
|
224
|
-
b.bp("/profilingGroups");
|
|
225
|
-
const query = (0, smithy_client_1.map)({
|
|
226
|
-
[_nT]: [, input[_nT]],
|
|
227
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
228
|
-
[_iD]: [() => input.includeDescription !== void 0, () => input[_iD].toString()],
|
|
229
|
-
});
|
|
230
|
-
let body;
|
|
231
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
232
|
-
return b.build();
|
|
233
|
-
};
|
|
234
|
-
exports.se_ListProfilingGroupsCommand = se_ListProfilingGroupsCommand;
|
|
235
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
236
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
237
|
-
const headers = {};
|
|
238
|
-
b.bp("/tags/{resourceArn}");
|
|
239
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
240
|
-
let body;
|
|
241
|
-
b.m("GET").h(headers).b(body);
|
|
242
|
-
return b.build();
|
|
243
|
-
};
|
|
244
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
245
|
-
const se_PostAgentProfileCommand = async (input, context) => {
|
|
246
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
247
|
-
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
248
|
-
[_ct]: input[_cTo] || "application/octet-stream",
|
|
249
|
-
});
|
|
250
|
-
b.bp("/profilingGroups/{profilingGroupName}/agentProfile");
|
|
251
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
252
|
-
const query = (0, smithy_client_1.map)({
|
|
253
|
-
[_pT]: [, input[_pT] ?? (0, uuid_1.v4)()],
|
|
254
|
-
});
|
|
255
|
-
let body;
|
|
256
|
-
if (input.agentProfile !== undefined) {
|
|
257
|
-
body = input.agentProfile;
|
|
258
|
-
}
|
|
259
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
exports.se_PostAgentProfileCommand = se_PostAgentProfileCommand;
|
|
263
|
-
const se_PutPermissionCommand = async (input, context) => {
|
|
264
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
265
|
-
const headers = {
|
|
266
|
-
"content-type": "application/json",
|
|
267
|
-
};
|
|
268
|
-
b.bp("/profilingGroups/{profilingGroupName}/policy/{actionGroup}");
|
|
269
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
270
|
-
b.p("actionGroup", () => input.actionGroup, "{actionGroup}", false);
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
273
|
-
principals: (_) => (0, smithy_client_1._json)(_),
|
|
274
|
-
revisionId: [],
|
|
275
|
-
}));
|
|
276
|
-
b.m("PUT").h(headers).b(body);
|
|
277
|
-
return b.build();
|
|
278
|
-
};
|
|
279
|
-
exports.se_PutPermissionCommand = se_PutPermissionCommand;
|
|
280
|
-
const se_RemoveNotificationChannelCommand = async (input, context) => {
|
|
281
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
282
|
-
const headers = {};
|
|
283
|
-
b.bp("/profilingGroups/{profilingGroupName}/notificationConfiguration/{channelId}");
|
|
284
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
285
|
-
b.p("channelId", () => input.channelId, "{channelId}", false);
|
|
286
|
-
let body;
|
|
287
|
-
b.m("DELETE").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
exports.se_RemoveNotificationChannelCommand = se_RemoveNotificationChannelCommand;
|
|
291
|
-
const se_RemovePermissionCommand = async (input, context) => {
|
|
292
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
293
|
-
const headers = {};
|
|
294
|
-
b.bp("/profilingGroups/{profilingGroupName}/policy/{actionGroup}");
|
|
295
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
296
|
-
b.p("actionGroup", () => input.actionGroup, "{actionGroup}", false);
|
|
297
|
-
const query = (0, smithy_client_1.map)({
|
|
298
|
-
[_rI]: [, (0, smithy_client_1.expectNonNull)(input[_rI], `revisionId`)],
|
|
299
|
-
});
|
|
300
|
-
let body;
|
|
301
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
exports.se_RemovePermissionCommand = se_RemovePermissionCommand;
|
|
305
|
-
const se_SubmitFeedbackCommand = async (input, context) => {
|
|
306
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
307
|
-
const headers = {
|
|
308
|
-
"content-type": "application/json",
|
|
309
|
-
};
|
|
310
|
-
b.bp("/internal/profilingGroups/{profilingGroupName}/anomalies/{anomalyInstanceId}/feedback");
|
|
311
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
312
|
-
b.p("anomalyInstanceId", () => input.anomalyInstanceId, "{anomalyInstanceId}", false);
|
|
313
|
-
let body;
|
|
314
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
315
|
-
comment: [],
|
|
316
|
-
type: [],
|
|
317
|
-
}));
|
|
318
|
-
b.m("POST").h(headers).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
exports.se_SubmitFeedbackCommand = se_SubmitFeedbackCommand;
|
|
322
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
323
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
324
|
-
const headers = {
|
|
325
|
-
"content-type": "application/json",
|
|
326
|
-
};
|
|
327
|
-
b.bp("/tags/{resourceArn}");
|
|
328
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
329
|
-
let body;
|
|
330
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
331
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
332
|
-
}));
|
|
333
|
-
b.m("POST").h(headers).b(body);
|
|
334
|
-
return b.build();
|
|
335
|
-
};
|
|
336
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
337
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
338
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
339
|
-
const headers = {};
|
|
340
|
-
b.bp("/tags/{resourceArn}");
|
|
341
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
342
|
-
const query = (0, smithy_client_1.map)({
|
|
343
|
-
[_tK]: [
|
|
344
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
345
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
346
|
-
],
|
|
347
|
-
});
|
|
348
|
-
let body;
|
|
349
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
350
|
-
return b.build();
|
|
351
|
-
};
|
|
352
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
353
|
-
const se_UpdateProfilingGroupCommand = async (input, context) => {
|
|
354
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
355
|
-
const headers = {
|
|
356
|
-
"content-type": "application/json",
|
|
357
|
-
};
|
|
358
|
-
b.bp("/profilingGroups/{profilingGroupName}");
|
|
359
|
-
b.p("profilingGroupName", () => input.profilingGroupName, "{profilingGroupName}", false);
|
|
360
|
-
let body;
|
|
361
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
362
|
-
agentOrchestrationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
363
|
-
}));
|
|
364
|
-
b.m("PUT").h(headers).b(body);
|
|
365
|
-
return b.build();
|
|
366
|
-
};
|
|
367
|
-
exports.se_UpdateProfilingGroupCommand = se_UpdateProfilingGroupCommand;
|
|
368
|
-
const de_AddNotificationChannelsCommand = async (output, context) => {
|
|
369
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return de_AddNotificationChannelsCommandError(output, context);
|
|
371
|
-
}
|
|
372
|
-
const contents = (0, smithy_client_1.map)({
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
});
|
|
375
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
376
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
377
|
-
notificationConfiguration: smithy_client_1._json,
|
|
378
|
-
});
|
|
379
|
-
Object.assign(contents, doc);
|
|
380
|
-
return contents;
|
|
381
|
-
};
|
|
382
|
-
exports.de_AddNotificationChannelsCommand = de_AddNotificationChannelsCommand;
|
|
383
|
-
const de_AddNotificationChannelsCommandError = async (output, context) => {
|
|
384
|
-
const parsedOutput = {
|
|
385
|
-
...output,
|
|
386
|
-
body: await parseErrorBody(output.body, context),
|
|
387
|
-
};
|
|
388
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
|
-
switch (errorCode) {
|
|
390
|
-
case "ConflictException":
|
|
391
|
-
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
392
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
393
|
-
case "InternalServerException":
|
|
394
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
395
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ResourceNotFoundException":
|
|
397
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ServiceQuotaExceededException":
|
|
400
|
-
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
|
|
401
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ThrottlingException":
|
|
403
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
404
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
405
|
-
case "ValidationException":
|
|
406
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
407
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
408
|
-
default:
|
|
409
|
-
const parsedBody = parsedOutput.body;
|
|
410
|
-
return throwDefaultError({
|
|
411
|
-
output,
|
|
412
|
-
parsedBody,
|
|
413
|
-
errorCode,
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
const de_BatchGetFrameMetricDataCommand = async (output, context) => {
|
|
418
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
419
|
-
return de_BatchGetFrameMetricDataCommandError(output, context);
|
|
420
|
-
}
|
|
421
|
-
const contents = (0, smithy_client_1.map)({
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
});
|
|
424
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
425
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
426
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
427
|
-
endTimes: (_) => de_ListOfTimestamps(_, context),
|
|
428
|
-
frameMetricData: (_) => de_FrameMetricData(_, context),
|
|
429
|
-
resolution: smithy_client_1.expectString,
|
|
430
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
431
|
-
unprocessedEndTimes: (_) => de_UnprocessedEndTimeMap(_, context),
|
|
432
|
-
});
|
|
433
|
-
Object.assign(contents, doc);
|
|
434
|
-
return contents;
|
|
435
|
-
};
|
|
436
|
-
exports.de_BatchGetFrameMetricDataCommand = de_BatchGetFrameMetricDataCommand;
|
|
437
|
-
const de_BatchGetFrameMetricDataCommandError = async (output, context) => {
|
|
438
|
-
const parsedOutput = {
|
|
439
|
-
...output,
|
|
440
|
-
body: await parseErrorBody(output.body, context),
|
|
441
|
-
};
|
|
442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
-
switch (errorCode) {
|
|
444
|
-
case "InternalServerException":
|
|
445
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
446
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
447
|
-
case "ResourceNotFoundException":
|
|
448
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
450
|
-
case "ThrottlingException":
|
|
451
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
452
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ValidationException":
|
|
454
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
const de_ConfigureAgentCommand = async (output, context) => {
|
|
466
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
467
|
-
return de_ConfigureAgentCommandError(output, context);
|
|
468
|
-
}
|
|
469
|
-
const contents = (0, smithy_client_1.map)({
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
});
|
|
472
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
473
|
-
contents.configuration = (0, smithy_client_1._json)(data);
|
|
474
|
-
return contents;
|
|
475
|
-
};
|
|
476
|
-
exports.de_ConfigureAgentCommand = de_ConfigureAgentCommand;
|
|
477
|
-
const de_ConfigureAgentCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "InternalServerException":
|
|
485
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
486
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ResourceNotFoundException":
|
|
488
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
490
|
-
case "ThrottlingException":
|
|
491
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
492
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ValidationException":
|
|
494
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
496
|
-
default:
|
|
497
|
-
const parsedBody = parsedOutput.body;
|
|
498
|
-
return throwDefaultError({
|
|
499
|
-
output,
|
|
500
|
-
parsedBody,
|
|
501
|
-
errorCode,
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
const de_CreateProfilingGroupCommand = async (output, context) => {
|
|
506
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
507
|
-
return de_CreateProfilingGroupCommandError(output, context);
|
|
508
|
-
}
|
|
509
|
-
const contents = (0, smithy_client_1.map)({
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
});
|
|
512
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
513
|
-
contents.profilingGroup = de_ProfilingGroupDescription(data, context);
|
|
514
|
-
return contents;
|
|
515
|
-
};
|
|
516
|
-
exports.de_CreateProfilingGroupCommand = de_CreateProfilingGroupCommand;
|
|
517
|
-
const de_CreateProfilingGroupCommandError = async (output, context) => {
|
|
518
|
-
const parsedOutput = {
|
|
519
|
-
...output,
|
|
520
|
-
body: await parseErrorBody(output.body, context),
|
|
521
|
-
};
|
|
522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
|
-
switch (errorCode) {
|
|
524
|
-
case "ConflictException":
|
|
525
|
-
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
526
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
527
|
-
case "InternalServerException":
|
|
528
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
529
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
530
|
-
case "ServiceQuotaExceededException":
|
|
531
|
-
case "com.amazonaws.codeguruprofiler#ServiceQuotaExceededException":
|
|
532
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
533
|
-
case "ThrottlingException":
|
|
534
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
535
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
536
|
-
case "ValidationException":
|
|
537
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
538
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
539
|
-
default:
|
|
540
|
-
const parsedBody = parsedOutput.body;
|
|
541
|
-
return throwDefaultError({
|
|
542
|
-
output,
|
|
543
|
-
parsedBody,
|
|
544
|
-
errorCode,
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
const de_DeleteProfilingGroupCommand = async (output, context) => {
|
|
549
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
550
|
-
return de_DeleteProfilingGroupCommandError(output, context);
|
|
551
|
-
}
|
|
552
|
-
const contents = (0, smithy_client_1.map)({
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
});
|
|
555
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
556
|
-
return contents;
|
|
557
|
-
};
|
|
558
|
-
exports.de_DeleteProfilingGroupCommand = de_DeleteProfilingGroupCommand;
|
|
559
|
-
const de_DeleteProfilingGroupCommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "ConflictException":
|
|
567
|
-
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
568
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
569
|
-
case "InternalServerException":
|
|
570
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
571
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ResourceNotFoundException":
|
|
573
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
574
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ThrottlingException":
|
|
576
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
577
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ValidationException":
|
|
579
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
580
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
581
|
-
default:
|
|
582
|
-
const parsedBody = parsedOutput.body;
|
|
583
|
-
return throwDefaultError({
|
|
584
|
-
output,
|
|
585
|
-
parsedBody,
|
|
586
|
-
errorCode,
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
|
-
const de_DescribeProfilingGroupCommand = async (output, context) => {
|
|
591
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
-
return de_DescribeProfilingGroupCommandError(output, context);
|
|
593
|
-
}
|
|
594
|
-
const contents = (0, smithy_client_1.map)({
|
|
595
|
-
$metadata: deserializeMetadata(output),
|
|
596
|
-
});
|
|
597
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
598
|
-
contents.profilingGroup = de_ProfilingGroupDescription(data, context);
|
|
599
|
-
return contents;
|
|
600
|
-
};
|
|
601
|
-
exports.de_DescribeProfilingGroupCommand = de_DescribeProfilingGroupCommand;
|
|
602
|
-
const de_DescribeProfilingGroupCommandError = async (output, context) => {
|
|
603
|
-
const parsedOutput = {
|
|
604
|
-
...output,
|
|
605
|
-
body: await parseErrorBody(output.body, context),
|
|
606
|
-
};
|
|
607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
-
switch (errorCode) {
|
|
609
|
-
case "InternalServerException":
|
|
610
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
611
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ResourceNotFoundException":
|
|
613
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
614
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ThrottlingException":
|
|
616
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
617
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
618
|
-
case "ValidationException":
|
|
619
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
620
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode,
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
const de_GetFindingsReportAccountSummaryCommand = async (output, context) => {
|
|
631
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return de_GetFindingsReportAccountSummaryCommandError(output, context);
|
|
633
|
-
}
|
|
634
|
-
const contents = (0, smithy_client_1.map)({
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
});
|
|
637
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
638
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
639
|
-
nextToken: smithy_client_1.expectString,
|
|
640
|
-
reportSummaries: (_) => de_FindingsReportSummaries(_, context),
|
|
641
|
-
});
|
|
642
|
-
Object.assign(contents, doc);
|
|
643
|
-
return contents;
|
|
644
|
-
};
|
|
645
|
-
exports.de_GetFindingsReportAccountSummaryCommand = de_GetFindingsReportAccountSummaryCommand;
|
|
646
|
-
const de_GetFindingsReportAccountSummaryCommandError = async (output, context) => {
|
|
647
|
-
const parsedOutput = {
|
|
648
|
-
...output,
|
|
649
|
-
body: await parseErrorBody(output.body, context),
|
|
650
|
-
};
|
|
651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
|
-
switch (errorCode) {
|
|
653
|
-
case "InternalServerException":
|
|
654
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ThrottlingException":
|
|
657
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
658
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ValidationException":
|
|
660
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
661
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
662
|
-
default:
|
|
663
|
-
const parsedBody = parsedOutput.body;
|
|
664
|
-
return throwDefaultError({
|
|
665
|
-
output,
|
|
666
|
-
parsedBody,
|
|
667
|
-
errorCode,
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
const de_GetNotificationConfigurationCommand = async (output, context) => {
|
|
672
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
673
|
-
return de_GetNotificationConfigurationCommandError(output, context);
|
|
674
|
-
}
|
|
675
|
-
const contents = (0, smithy_client_1.map)({
|
|
676
|
-
$metadata: deserializeMetadata(output),
|
|
677
|
-
});
|
|
678
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
679
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
680
|
-
notificationConfiguration: smithy_client_1._json,
|
|
681
|
-
});
|
|
682
|
-
Object.assign(contents, doc);
|
|
683
|
-
return contents;
|
|
684
|
-
};
|
|
685
|
-
exports.de_GetNotificationConfigurationCommand = de_GetNotificationConfigurationCommand;
|
|
686
|
-
const de_GetNotificationConfigurationCommandError = async (output, context) => {
|
|
687
|
-
const parsedOutput = {
|
|
688
|
-
...output,
|
|
689
|
-
body: await parseErrorBody(output.body, context),
|
|
690
|
-
};
|
|
691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "InternalServerException":
|
|
694
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
695
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ResourceNotFoundException":
|
|
697
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
698
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
699
|
-
case "ThrottlingException":
|
|
700
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
701
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ValidationException":
|
|
703
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
704
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
705
|
-
default:
|
|
706
|
-
const parsedBody = parsedOutput.body;
|
|
707
|
-
return throwDefaultError({
|
|
708
|
-
output,
|
|
709
|
-
parsedBody,
|
|
710
|
-
errorCode,
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
|
-
const de_GetPolicyCommand = async (output, context) => {
|
|
715
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
-
return de_GetPolicyCommandError(output, context);
|
|
717
|
-
}
|
|
718
|
-
const contents = (0, smithy_client_1.map)({
|
|
719
|
-
$metadata: deserializeMetadata(output),
|
|
720
|
-
});
|
|
721
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
722
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
723
|
-
policy: smithy_client_1.expectString,
|
|
724
|
-
revisionId: smithy_client_1.expectString,
|
|
725
|
-
});
|
|
726
|
-
Object.assign(contents, doc);
|
|
727
|
-
return contents;
|
|
728
|
-
};
|
|
729
|
-
exports.de_GetPolicyCommand = de_GetPolicyCommand;
|
|
730
|
-
const de_GetPolicyCommandError = async (output, context) => {
|
|
731
|
-
const parsedOutput = {
|
|
732
|
-
...output,
|
|
733
|
-
body: await parseErrorBody(output.body, context),
|
|
734
|
-
};
|
|
735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
|
-
switch (errorCode) {
|
|
737
|
-
case "InternalServerException":
|
|
738
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
739
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
740
|
-
case "ResourceNotFoundException":
|
|
741
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
742
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ThrottlingException":
|
|
744
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
745
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
const de_GetProfileCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
-
return de_GetProfileCommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const contents = (0, smithy_client_1.map)({
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
[_cTo]: [, output.headers[_ct]],
|
|
762
|
-
[_cE]: [, output.headers[_ce]],
|
|
763
|
-
});
|
|
764
|
-
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
765
|
-
contents.profile = data;
|
|
766
|
-
return contents;
|
|
767
|
-
};
|
|
768
|
-
exports.de_GetProfileCommand = de_GetProfileCommand;
|
|
769
|
-
const de_GetProfileCommandError = async (output, context) => {
|
|
770
|
-
const parsedOutput = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseErrorBody(output.body, context),
|
|
773
|
-
};
|
|
774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
-
switch (errorCode) {
|
|
776
|
-
case "InternalServerException":
|
|
777
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ResourceNotFoundException":
|
|
780
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ThrottlingException":
|
|
783
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ValidationException":
|
|
786
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode,
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
const de_GetRecommendationsCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return de_GetRecommendationsCommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const contents = (0, smithy_client_1.map)({
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
});
|
|
804
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
805
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
806
|
-
anomalies: (_) => de_Anomalies(_, context),
|
|
807
|
-
profileEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
808
|
-
profileStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
809
|
-
profilingGroupName: smithy_client_1.expectString,
|
|
810
|
-
recommendations: (_) => de_Recommendations(_, context),
|
|
811
|
-
});
|
|
812
|
-
Object.assign(contents, doc);
|
|
813
|
-
return contents;
|
|
814
|
-
};
|
|
815
|
-
exports.de_GetRecommendationsCommand = de_GetRecommendationsCommand;
|
|
816
|
-
const de_GetRecommendationsCommandError = async (output, context) => {
|
|
817
|
-
const parsedOutput = {
|
|
818
|
-
...output,
|
|
819
|
-
body: await parseErrorBody(output.body, context),
|
|
820
|
-
};
|
|
821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
|
-
switch (errorCode) {
|
|
823
|
-
case "InternalServerException":
|
|
824
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ResourceNotFoundException":
|
|
827
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ThrottlingException":
|
|
830
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
831
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
832
|
-
case "ValidationException":
|
|
833
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
834
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
const de_ListFindingsReportsCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return de_ListFindingsReportsCommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const contents = (0, smithy_client_1.map)({
|
|
849
|
-
$metadata: deserializeMetadata(output),
|
|
850
|
-
});
|
|
851
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
852
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
853
|
-
findingsReportSummaries: (_) => de_FindingsReportSummaries(_, context),
|
|
854
|
-
nextToken: smithy_client_1.expectString,
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
return contents;
|
|
858
|
-
};
|
|
859
|
-
exports.de_ListFindingsReportsCommand = de_ListFindingsReportsCommand;
|
|
860
|
-
const de_ListFindingsReportsCommandError = async (output, context) => {
|
|
861
|
-
const parsedOutput = {
|
|
862
|
-
...output,
|
|
863
|
-
body: await parseErrorBody(output.body, context),
|
|
864
|
-
};
|
|
865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
|
-
switch (errorCode) {
|
|
867
|
-
case "InternalServerException":
|
|
868
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
869
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
870
|
-
case "ResourceNotFoundException":
|
|
871
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
872
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ThrottlingException":
|
|
874
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
875
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ValidationException":
|
|
877
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
const de_ListProfileTimesCommand = async (output, context) => {
|
|
889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return de_ListProfileTimesCommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const contents = (0, smithy_client_1.map)({
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
});
|
|
895
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
896
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
897
|
-
nextToken: smithy_client_1.expectString,
|
|
898
|
-
profileTimes: (_) => de_ProfileTimes(_, context),
|
|
899
|
-
});
|
|
900
|
-
Object.assign(contents, doc);
|
|
901
|
-
return contents;
|
|
902
|
-
};
|
|
903
|
-
exports.de_ListProfileTimesCommand = de_ListProfileTimesCommand;
|
|
904
|
-
const de_ListProfileTimesCommandError = async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context),
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "InternalServerException":
|
|
912
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
913
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ResourceNotFoundException":
|
|
915
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ThrottlingException":
|
|
918
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
919
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ValidationException":
|
|
921
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
922
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
923
|
-
default:
|
|
924
|
-
const parsedBody = parsedOutput.body;
|
|
925
|
-
return throwDefaultError({
|
|
926
|
-
output,
|
|
927
|
-
parsedBody,
|
|
928
|
-
errorCode,
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
};
|
|
932
|
-
const de_ListProfilingGroupsCommand = async (output, context) => {
|
|
933
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
934
|
-
return de_ListProfilingGroupsCommandError(output, context);
|
|
935
|
-
}
|
|
936
|
-
const contents = (0, smithy_client_1.map)({
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
});
|
|
939
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
940
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
941
|
-
nextToken: smithy_client_1.expectString,
|
|
942
|
-
profilingGroupNames: smithy_client_1._json,
|
|
943
|
-
profilingGroups: (_) => de_ProfilingGroupDescriptions(_, context),
|
|
944
|
-
});
|
|
945
|
-
Object.assign(contents, doc);
|
|
946
|
-
return contents;
|
|
947
|
-
};
|
|
948
|
-
exports.de_ListProfilingGroupsCommand = de_ListProfilingGroupsCommand;
|
|
949
|
-
const de_ListProfilingGroupsCommandError = async (output, context) => {
|
|
950
|
-
const parsedOutput = {
|
|
951
|
-
...output,
|
|
952
|
-
body: await parseErrorBody(output.body, context),
|
|
953
|
-
};
|
|
954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
955
|
-
switch (errorCode) {
|
|
956
|
-
case "InternalServerException":
|
|
957
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
958
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ThrottlingException":
|
|
960
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
-
default:
|
|
963
|
-
const parsedBody = parsedOutput.body;
|
|
964
|
-
return throwDefaultError({
|
|
965
|
-
output,
|
|
966
|
-
parsedBody,
|
|
967
|
-
errorCode,
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
972
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
973
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
974
|
-
}
|
|
975
|
-
const contents = (0, smithy_client_1.map)({
|
|
976
|
-
$metadata: deserializeMetadata(output),
|
|
977
|
-
});
|
|
978
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
979
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
980
|
-
tags: smithy_client_1._json,
|
|
981
|
-
});
|
|
982
|
-
Object.assign(contents, doc);
|
|
983
|
-
return contents;
|
|
984
|
-
};
|
|
985
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
986
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
987
|
-
const parsedOutput = {
|
|
988
|
-
...output,
|
|
989
|
-
body: await parseErrorBody(output.body, context),
|
|
990
|
-
};
|
|
991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
|
-
switch (errorCode) {
|
|
993
|
-
case "InternalServerException":
|
|
994
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
995
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
996
|
-
case "ResourceNotFoundException":
|
|
997
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
998
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
|
-
case "ValidationException":
|
|
1000
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1001
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1002
|
-
default:
|
|
1003
|
-
const parsedBody = parsedOutput.body;
|
|
1004
|
-
return throwDefaultError({
|
|
1005
|
-
output,
|
|
1006
|
-
parsedBody,
|
|
1007
|
-
errorCode,
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
};
|
|
1011
|
-
const de_PostAgentProfileCommand = async (output, context) => {
|
|
1012
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1013
|
-
return de_PostAgentProfileCommandError(output, context);
|
|
1014
|
-
}
|
|
1015
|
-
const contents = (0, smithy_client_1.map)({
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
});
|
|
1018
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1019
|
-
return contents;
|
|
1020
|
-
};
|
|
1021
|
-
exports.de_PostAgentProfileCommand = de_PostAgentProfileCommand;
|
|
1022
|
-
const de_PostAgentProfileCommandError = async (output, context) => {
|
|
1023
|
-
const parsedOutput = {
|
|
1024
|
-
...output,
|
|
1025
|
-
body: await parseErrorBody(output.body, context),
|
|
1026
|
-
};
|
|
1027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1028
|
-
switch (errorCode) {
|
|
1029
|
-
case "InternalServerException":
|
|
1030
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1031
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ResourceNotFoundException":
|
|
1033
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1034
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ThrottlingException":
|
|
1036
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1037
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ValidationException":
|
|
1039
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1041
|
-
default:
|
|
1042
|
-
const parsedBody = parsedOutput.body;
|
|
1043
|
-
return throwDefaultError({
|
|
1044
|
-
output,
|
|
1045
|
-
parsedBody,
|
|
1046
|
-
errorCode,
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
};
|
|
1050
|
-
const de_PutPermissionCommand = async (output, context) => {
|
|
1051
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
|
-
return de_PutPermissionCommandError(output, context);
|
|
1053
|
-
}
|
|
1054
|
-
const contents = (0, smithy_client_1.map)({
|
|
1055
|
-
$metadata: deserializeMetadata(output),
|
|
1056
|
-
});
|
|
1057
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1058
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1059
|
-
policy: smithy_client_1.expectString,
|
|
1060
|
-
revisionId: smithy_client_1.expectString,
|
|
1061
|
-
});
|
|
1062
|
-
Object.assign(contents, doc);
|
|
1063
|
-
return contents;
|
|
1064
|
-
};
|
|
1065
|
-
exports.de_PutPermissionCommand = de_PutPermissionCommand;
|
|
1066
|
-
const de_PutPermissionCommandError = async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context),
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "ConflictException":
|
|
1074
|
-
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1075
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InternalServerException":
|
|
1077
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ResourceNotFoundException":
|
|
1080
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1081
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ThrottlingException":
|
|
1083
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1084
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ValidationException":
|
|
1086
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1087
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
-
default:
|
|
1089
|
-
const parsedBody = parsedOutput.body;
|
|
1090
|
-
return throwDefaultError({
|
|
1091
|
-
output,
|
|
1092
|
-
parsedBody,
|
|
1093
|
-
errorCode,
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
|
-
const de_RemoveNotificationChannelCommand = async (output, context) => {
|
|
1098
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return de_RemoveNotificationChannelCommandError(output, context);
|
|
1100
|
-
}
|
|
1101
|
-
const contents = (0, smithy_client_1.map)({
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
});
|
|
1104
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1105
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1106
|
-
notificationConfiguration: smithy_client_1._json,
|
|
1107
|
-
});
|
|
1108
|
-
Object.assign(contents, doc);
|
|
1109
|
-
return contents;
|
|
1110
|
-
};
|
|
1111
|
-
exports.de_RemoveNotificationChannelCommand = de_RemoveNotificationChannelCommand;
|
|
1112
|
-
const de_RemoveNotificationChannelCommandError = async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context),
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "InternalServerException":
|
|
1120
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1121
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ResourceNotFoundException":
|
|
1123
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ThrottlingException":
|
|
1126
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ValidationException":
|
|
1129
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1130
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1131
|
-
default:
|
|
1132
|
-
const parsedBody = parsedOutput.body;
|
|
1133
|
-
return throwDefaultError({
|
|
1134
|
-
output,
|
|
1135
|
-
parsedBody,
|
|
1136
|
-
errorCode,
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
const de_RemovePermissionCommand = async (output, context) => {
|
|
1141
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1142
|
-
return de_RemovePermissionCommandError(output, context);
|
|
1143
|
-
}
|
|
1144
|
-
const contents = (0, smithy_client_1.map)({
|
|
1145
|
-
$metadata: deserializeMetadata(output),
|
|
1146
|
-
});
|
|
1147
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1148
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1149
|
-
policy: smithy_client_1.expectString,
|
|
1150
|
-
revisionId: smithy_client_1.expectString,
|
|
1151
|
-
});
|
|
1152
|
-
Object.assign(contents, doc);
|
|
1153
|
-
return contents;
|
|
1154
|
-
};
|
|
1155
|
-
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
1156
|
-
const de_RemovePermissionCommandError = async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context),
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "ConflictException":
|
|
1164
|
-
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1165
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "InternalServerException":
|
|
1167
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1168
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ResourceNotFoundException":
|
|
1170
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1171
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ThrottlingException":
|
|
1173
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1174
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ValidationException":
|
|
1176
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1178
|
-
default:
|
|
1179
|
-
const parsedBody = parsedOutput.body;
|
|
1180
|
-
return throwDefaultError({
|
|
1181
|
-
output,
|
|
1182
|
-
parsedBody,
|
|
1183
|
-
errorCode,
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
const de_SubmitFeedbackCommand = async (output, context) => {
|
|
1188
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1189
|
-
return de_SubmitFeedbackCommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const contents = (0, smithy_client_1.map)({
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
});
|
|
1194
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1195
|
-
return contents;
|
|
1196
|
-
};
|
|
1197
|
-
exports.de_SubmitFeedbackCommand = de_SubmitFeedbackCommand;
|
|
1198
|
-
const de_SubmitFeedbackCommandError = async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context),
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "InternalServerException":
|
|
1206
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1207
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ResourceNotFoundException":
|
|
1209
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1210
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ThrottlingException":
|
|
1212
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1213
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ValidationException":
|
|
1215
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1216
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
|
-
default:
|
|
1218
|
-
const parsedBody = parsedOutput.body;
|
|
1219
|
-
return throwDefaultError({
|
|
1220
|
-
output,
|
|
1221
|
-
parsedBody,
|
|
1222
|
-
errorCode,
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1227
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1228
|
-
return de_TagResourceCommandError(output, context);
|
|
1229
|
-
}
|
|
1230
|
-
const contents = (0, smithy_client_1.map)({
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
});
|
|
1233
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1234
|
-
return contents;
|
|
1235
|
-
};
|
|
1236
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1237
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context),
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "InternalServerException":
|
|
1245
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1246
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ResourceNotFoundException":
|
|
1248
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1249
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "ValidationException":
|
|
1251
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1252
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1253
|
-
default:
|
|
1254
|
-
const parsedBody = parsedOutput.body;
|
|
1255
|
-
return throwDefaultError({
|
|
1256
|
-
output,
|
|
1257
|
-
parsedBody,
|
|
1258
|
-
errorCode,
|
|
1259
|
-
});
|
|
1260
|
-
}
|
|
1261
|
-
};
|
|
1262
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1263
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1264
|
-
return de_UntagResourceCommandError(output, context);
|
|
1265
|
-
}
|
|
1266
|
-
const contents = (0, smithy_client_1.map)({
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
});
|
|
1269
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1270
|
-
return contents;
|
|
1271
|
-
};
|
|
1272
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1273
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1274
|
-
const parsedOutput = {
|
|
1275
|
-
...output,
|
|
1276
|
-
body: await parseErrorBody(output.body, context),
|
|
1277
|
-
};
|
|
1278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
|
-
switch (errorCode) {
|
|
1280
|
-
case "InternalServerException":
|
|
1281
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ResourceNotFoundException":
|
|
1284
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ValidationException":
|
|
1287
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1288
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1289
|
-
default:
|
|
1290
|
-
const parsedBody = parsedOutput.body;
|
|
1291
|
-
return throwDefaultError({
|
|
1292
|
-
output,
|
|
1293
|
-
parsedBody,
|
|
1294
|
-
errorCode,
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
};
|
|
1298
|
-
const de_UpdateProfilingGroupCommand = async (output, context) => {
|
|
1299
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1300
|
-
return de_UpdateProfilingGroupCommandError(output, context);
|
|
1301
|
-
}
|
|
1302
|
-
const contents = (0, smithy_client_1.map)({
|
|
1303
|
-
$metadata: deserializeMetadata(output),
|
|
1304
|
-
});
|
|
1305
|
-
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1306
|
-
contents.profilingGroup = de_ProfilingGroupDescription(data, context);
|
|
1307
|
-
return contents;
|
|
1308
|
-
};
|
|
1309
|
-
exports.de_UpdateProfilingGroupCommand = de_UpdateProfilingGroupCommand;
|
|
1310
|
-
const de_UpdateProfilingGroupCommandError = async (output, context) => {
|
|
1311
|
-
const parsedOutput = {
|
|
1312
|
-
...output,
|
|
1313
|
-
body: await parseErrorBody(output.body, context),
|
|
1314
|
-
};
|
|
1315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
switch (errorCode) {
|
|
1317
|
-
case "ConflictException":
|
|
1318
|
-
case "com.amazonaws.codeguruprofiler#ConflictException":
|
|
1319
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "InternalServerException":
|
|
1321
|
-
case "com.amazonaws.codeguruprofiler#InternalServerException":
|
|
1322
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.codeguruprofiler#ResourceNotFoundException":
|
|
1325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ThrottlingException":
|
|
1327
|
-
case "com.amazonaws.codeguruprofiler#ThrottlingException":
|
|
1328
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "ValidationException":
|
|
1330
|
-
case "com.amazonaws.codeguruprofiler#ValidationException":
|
|
1331
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1332
|
-
default:
|
|
1333
|
-
const parsedBody = parsedOutput.body;
|
|
1334
|
-
return throwDefaultError({
|
|
1335
|
-
output,
|
|
1336
|
-
parsedBody,
|
|
1337
|
-
errorCode,
|
|
1338
|
-
});
|
|
1339
|
-
}
|
|
1340
|
-
};
|
|
1341
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeGuruProfilerServiceException_1.CodeGuruProfilerServiceException);
|
|
1342
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1343
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1344
|
-
const data = parsedOutput.body;
|
|
1345
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1346
|
-
message: smithy_client_1.expectString,
|
|
1347
|
-
});
|
|
1348
|
-
Object.assign(contents, doc);
|
|
1349
|
-
const exception = new models_0_1.ConflictException({
|
|
1350
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1351
|
-
...contents,
|
|
1352
|
-
});
|
|
1353
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1354
|
-
};
|
|
1355
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1356
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1357
|
-
const data = parsedOutput.body;
|
|
1358
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1359
|
-
message: smithy_client_1.expectString,
|
|
1360
|
-
});
|
|
1361
|
-
Object.assign(contents, doc);
|
|
1362
|
-
const exception = new models_0_1.InternalServerException({
|
|
1363
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1364
|
-
...contents,
|
|
1365
|
-
});
|
|
1366
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1367
|
-
};
|
|
1368
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1369
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1370
|
-
const data = parsedOutput.body;
|
|
1371
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1372
|
-
message: smithy_client_1.expectString,
|
|
1373
|
-
});
|
|
1374
|
-
Object.assign(contents, doc);
|
|
1375
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1376
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1377
|
-
...contents,
|
|
1378
|
-
});
|
|
1379
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1380
|
-
};
|
|
1381
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1382
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1383
|
-
const data = parsedOutput.body;
|
|
1384
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1385
|
-
message: smithy_client_1.expectString,
|
|
1386
|
-
});
|
|
1387
|
-
Object.assign(contents, doc);
|
|
1388
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1389
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1390
|
-
...contents,
|
|
1391
|
-
});
|
|
1392
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1393
|
-
};
|
|
1394
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1395
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1396
|
-
const data = parsedOutput.body;
|
|
1397
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1398
|
-
message: smithy_client_1.expectString,
|
|
1399
|
-
});
|
|
1400
|
-
Object.assign(contents, doc);
|
|
1401
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1402
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1403
|
-
...contents,
|
|
1404
|
-
});
|
|
1405
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1406
|
-
};
|
|
1407
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1408
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1409
|
-
const data = parsedOutput.body;
|
|
1410
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1411
|
-
message: smithy_client_1.expectString,
|
|
1412
|
-
});
|
|
1413
|
-
Object.assign(contents, doc);
|
|
1414
|
-
const exception = new models_0_1.ValidationException({
|
|
1415
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1416
|
-
...contents,
|
|
1417
|
-
});
|
|
1418
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1419
|
-
};
|
|
1420
|
-
const de_AggregatedProfileTime = (output, context) => {
|
|
1421
|
-
return (0, smithy_client_1.take)(output, {
|
|
1422
|
-
period: smithy_client_1.expectString,
|
|
1423
|
-
start: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1424
|
-
});
|
|
1425
|
-
};
|
|
1426
|
-
const de_Anomalies = (output, context) => {
|
|
1427
|
-
const retVal = (output || [])
|
|
1428
|
-
.filter((e) => e != null)
|
|
1429
|
-
.map((entry) => {
|
|
1430
|
-
return de_Anomaly(entry, context);
|
|
1431
|
-
});
|
|
1432
|
-
return retVal;
|
|
1433
|
-
};
|
|
1434
|
-
const de_Anomaly = (output, context) => {
|
|
1435
|
-
return (0, smithy_client_1.take)(output, {
|
|
1436
|
-
instances: (_) => de_AnomalyInstances(_, context),
|
|
1437
|
-
metric: smithy_client_1._json,
|
|
1438
|
-
reason: smithy_client_1.expectString,
|
|
1439
|
-
});
|
|
1440
|
-
};
|
|
1441
|
-
const de_AnomalyInstance = (output, context) => {
|
|
1442
|
-
return (0, smithy_client_1.take)(output, {
|
|
1443
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1444
|
-
id: smithy_client_1.expectString,
|
|
1445
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1446
|
-
userFeedback: smithy_client_1._json,
|
|
1447
|
-
});
|
|
1448
|
-
};
|
|
1449
|
-
const de_AnomalyInstances = (output, context) => {
|
|
1450
|
-
const retVal = (output || [])
|
|
1451
|
-
.filter((e) => e != null)
|
|
1452
|
-
.map((entry) => {
|
|
1453
|
-
return de_AnomalyInstance(entry, context);
|
|
1454
|
-
});
|
|
1455
|
-
return retVal;
|
|
1456
|
-
};
|
|
1457
|
-
const de_FindingsReportSummaries = (output, context) => {
|
|
1458
|
-
const retVal = (output || [])
|
|
1459
|
-
.filter((e) => e != null)
|
|
1460
|
-
.map((entry) => {
|
|
1461
|
-
return de_FindingsReportSummary(entry, context);
|
|
1462
|
-
});
|
|
1463
|
-
return retVal;
|
|
1464
|
-
};
|
|
1465
|
-
const de_FindingsReportSummary = (output, context) => {
|
|
1466
|
-
return (0, smithy_client_1.take)(output, {
|
|
1467
|
-
id: smithy_client_1.expectString,
|
|
1468
|
-
profileEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1469
|
-
profileStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1470
|
-
profilingGroupName: smithy_client_1.expectString,
|
|
1471
|
-
totalNumberOfFindings: smithy_client_1.expectInt32,
|
|
1472
|
-
});
|
|
1473
|
-
};
|
|
1474
|
-
const de_FrameMetricData = (output, context) => {
|
|
1475
|
-
const retVal = (output || [])
|
|
1476
|
-
.filter((e) => e != null)
|
|
1477
|
-
.map((entry) => {
|
|
1478
|
-
return de_FrameMetricDatum(entry, context);
|
|
1479
|
-
});
|
|
1480
|
-
return retVal;
|
|
1481
|
-
};
|
|
1482
|
-
const de_FrameMetricDatum = (output, context) => {
|
|
1483
|
-
return (0, smithy_client_1.take)(output, {
|
|
1484
|
-
frameMetric: smithy_client_1._json,
|
|
1485
|
-
values: (_) => de_FrameMetricValues(_, context),
|
|
1486
|
-
});
|
|
1487
|
-
};
|
|
1488
|
-
const de_FrameMetricValues = (output, context) => {
|
|
1489
|
-
const retVal = (output || [])
|
|
1490
|
-
.filter((e) => e != null)
|
|
1491
|
-
.map((entry) => {
|
|
1492
|
-
return (0, smithy_client_1.limitedParseDouble)(entry);
|
|
1493
|
-
});
|
|
1494
|
-
return retVal;
|
|
1495
|
-
};
|
|
1496
|
-
const de_ListOfTimestamps = (output, context) => {
|
|
1497
|
-
const retVal = (output || [])
|
|
1498
|
-
.filter((e) => e != null)
|
|
1499
|
-
.map((entry) => {
|
|
1500
|
-
return de_TimestampStructure(entry, context);
|
|
1501
|
-
});
|
|
1502
|
-
return retVal;
|
|
1503
|
-
};
|
|
1504
|
-
const de_Match = (output, context) => {
|
|
1505
|
-
return (0, smithy_client_1.take)(output, {
|
|
1506
|
-
frameAddress: smithy_client_1.expectString,
|
|
1507
|
-
targetFramesIndex: smithy_client_1.expectInt32,
|
|
1508
|
-
thresholdBreachValue: smithy_client_1.limitedParseDouble,
|
|
1509
|
-
});
|
|
1510
|
-
};
|
|
1511
|
-
const de_Matches = (output, context) => {
|
|
1512
|
-
const retVal = (output || [])
|
|
1513
|
-
.filter((e) => e != null)
|
|
1514
|
-
.map((entry) => {
|
|
1515
|
-
return de_Match(entry, context);
|
|
1516
|
-
});
|
|
1517
|
-
return retVal;
|
|
1518
|
-
};
|
|
1519
|
-
const de_Pattern = (output, context) => {
|
|
1520
|
-
return (0, smithy_client_1.take)(output, {
|
|
1521
|
-
countersToAggregate: smithy_client_1._json,
|
|
1522
|
-
description: smithy_client_1.expectString,
|
|
1523
|
-
id: smithy_client_1.expectString,
|
|
1524
|
-
name: smithy_client_1.expectString,
|
|
1525
|
-
resolutionSteps: smithy_client_1.expectString,
|
|
1526
|
-
targetFrames: smithy_client_1._json,
|
|
1527
|
-
thresholdPercent: smithy_client_1.limitedParseDouble,
|
|
1528
|
-
});
|
|
1529
|
-
};
|
|
1530
|
-
const de_ProfileTime = (output, context) => {
|
|
1531
|
-
return (0, smithy_client_1.take)(output, {
|
|
1532
|
-
start: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1533
|
-
});
|
|
1534
|
-
};
|
|
1535
|
-
const de_ProfileTimes = (output, context) => {
|
|
1536
|
-
const retVal = (output || [])
|
|
1537
|
-
.filter((e) => e != null)
|
|
1538
|
-
.map((entry) => {
|
|
1539
|
-
return de_ProfileTime(entry, context);
|
|
1540
|
-
});
|
|
1541
|
-
return retVal;
|
|
1542
|
-
};
|
|
1543
|
-
const de_ProfilingGroupDescription = (output, context) => {
|
|
1544
|
-
return (0, smithy_client_1.take)(output, {
|
|
1545
|
-
agentOrchestrationConfig: smithy_client_1._json,
|
|
1546
|
-
arn: smithy_client_1.expectString,
|
|
1547
|
-
computePlatform: smithy_client_1.expectString,
|
|
1548
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1549
|
-
name: smithy_client_1.expectString,
|
|
1550
|
-
profilingStatus: (_) => de_ProfilingStatus(_, context),
|
|
1551
|
-
tags: smithy_client_1._json,
|
|
1552
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1553
|
-
});
|
|
1554
|
-
};
|
|
1555
|
-
const de_ProfilingGroupDescriptions = (output, context) => {
|
|
1556
|
-
const retVal = (output || [])
|
|
1557
|
-
.filter((e) => e != null)
|
|
1558
|
-
.map((entry) => {
|
|
1559
|
-
return de_ProfilingGroupDescription(entry, context);
|
|
1560
|
-
});
|
|
1561
|
-
return retVal;
|
|
1562
|
-
};
|
|
1563
|
-
const de_ProfilingStatus = (output, context) => {
|
|
1564
|
-
return (0, smithy_client_1.take)(output, {
|
|
1565
|
-
latestAgentOrchestratedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1566
|
-
latestAgentProfileReportedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1567
|
-
latestAggregatedProfile: (_) => de_AggregatedProfileTime(_, context),
|
|
1568
|
-
});
|
|
1569
|
-
};
|
|
1570
|
-
const de_Recommendation = (output, context) => {
|
|
1571
|
-
return (0, smithy_client_1.take)(output, {
|
|
1572
|
-
allMatchesCount: smithy_client_1.expectInt32,
|
|
1573
|
-
allMatchesSum: smithy_client_1.limitedParseDouble,
|
|
1574
|
-
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1575
|
-
pattern: (_) => de_Pattern(_, context),
|
|
1576
|
-
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1577
|
-
topMatches: (_) => de_Matches(_, context),
|
|
1578
|
-
});
|
|
1579
|
-
};
|
|
1580
|
-
const de_Recommendations = (output, context) => {
|
|
1581
|
-
const retVal = (output || [])
|
|
1582
|
-
.filter((e) => e != null)
|
|
1583
|
-
.map((entry) => {
|
|
1584
|
-
return de_Recommendation(entry, context);
|
|
1585
|
-
});
|
|
1586
|
-
return retVal;
|
|
1587
|
-
};
|
|
1588
|
-
const de_TimestampStructure = (output, context) => {
|
|
1589
|
-
return (0, smithy_client_1.take)(output, {
|
|
1590
|
-
value: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1591
|
-
});
|
|
1592
|
-
};
|
|
1593
|
-
const de_UnprocessedEndTimeMap = (output, context) => {
|
|
1594
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1595
|
-
if (value === null) {
|
|
1596
|
-
return acc;
|
|
1597
|
-
}
|
|
1598
|
-
acc[key] = de_ListOfTimestamps(value, context);
|
|
1599
|
-
return acc;
|
|
1600
|
-
}, {});
|
|
1601
|
-
};
|
|
1602
|
-
const deserializeMetadata = (output) => ({
|
|
1603
|
-
httpStatusCode: output.statusCode,
|
|
1604
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1605
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1606
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1607
|
-
});
|
|
1608
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1609
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1610
|
-
value !== null &&
|
|
1611
|
-
value !== "" &&
|
|
1612
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1613
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1614
|
-
const _a = "accept";
|
|
1615
|
-
const _cE = "contentEncoding";
|
|
1616
|
-
const _cT = "clientToken";
|
|
1617
|
-
const _cTo = "contentType";
|
|
1618
|
-
const _ce = "content-encoding";
|
|
1619
|
-
const _ct = "content-type";
|
|
1620
|
-
const _dRO = "dailyReportsOnly";
|
|
1621
|
-
const _eT = "endTime";
|
|
1622
|
-
const _iD = "includeDescription";
|
|
1623
|
-
const _l = "locale";
|
|
1624
|
-
const _mD = "maxDepth";
|
|
1625
|
-
const _mR = "maxResults";
|
|
1626
|
-
const _nT = "nextToken";
|
|
1627
|
-
const _oB = "orderBy";
|
|
1628
|
-
const _p = "period";
|
|
1629
|
-
const _pT = "profileToken";
|
|
1630
|
-
const _rI = "revisionId";
|
|
1631
|
-
const _sT = "startTime";
|
|
1632
|
-
const _tK = "tagKeys";
|
|
1633
|
-
const _tR = "targetResolution";
|
|
1634
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1635
|
-
if (encoded.length) {
|
|
1636
|
-
return JSON.parse(encoded);
|
|
1637
|
-
}
|
|
1638
|
-
return {};
|
|
1639
|
-
});
|
|
1640
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1641
|
-
const value = await parseBody(errorBody, context);
|
|
1642
|
-
value.message = value.message ?? value.Message;
|
|
1643
|
-
return value;
|
|
1644
|
-
};
|
|
1645
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1646
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1647
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1648
|
-
let cleanValue = rawValue;
|
|
1649
|
-
if (typeof cleanValue === "number") {
|
|
1650
|
-
cleanValue = cleanValue.toString();
|
|
1651
|
-
}
|
|
1652
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1653
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1654
|
-
}
|
|
1655
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1656
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1657
|
-
}
|
|
1658
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1659
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1660
|
-
}
|
|
1661
|
-
return cleanValue;
|
|
1662
|
-
};
|
|
1663
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1664
|
-
if (headerKey !== undefined) {
|
|
1665
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1666
|
-
}
|
|
1667
|
-
if (data.code !== undefined) {
|
|
1668
|
-
return sanitizeErrorCode(data.code);
|
|
1669
|
-
}
|
|
1670
|
-
if (data["__type"] !== undefined) {
|
|
1671
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|