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