@aws-sdk/client-application-insights 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/ApplicationInsights.js +1 -77
- package/dist-cjs/ApplicationInsightsClient.js +1 -43
- package/dist-cjs/commands/AddWorkloadCommand.js +1 -28
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
- package/dist-cjs/commands/CreateComponentCommand.js +1 -28
- package/dist-cjs/commands/CreateLogPatternCommand.js +1 -28
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteComponentCommand.js +1 -28
- package/dist-cjs/commands/DeleteLogPatternCommand.js +1 -28
- package/dist-cjs/commands/DescribeApplicationCommand.js +1 -28
- package/dist-cjs/commands/DescribeComponentCommand.js +1 -28
- package/dist-cjs/commands/DescribeComponentConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DescribeComponentConfigurationRecommendationCommand.js +1 -28
- package/dist-cjs/commands/DescribeLogPatternCommand.js +1 -28
- package/dist-cjs/commands/DescribeObservationCommand.js +1 -28
- package/dist-cjs/commands/DescribeProblemCommand.js +1 -28
- package/dist-cjs/commands/DescribeProblemObservationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeWorkloadCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -28
- package/dist-cjs/commands/ListComponentsCommand.js +1 -28
- package/dist-cjs/commands/ListConfigurationHistoryCommand.js +1 -28
- package/dist-cjs/commands/ListLogPatternSetsCommand.js +1 -28
- package/dist-cjs/commands/ListLogPatternsCommand.js +1 -28
- package/dist-cjs/commands/ListProblemsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListWorkloadsCommand.js +1 -28
- package/dist-cjs/commands/RemoveWorkloadCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
- package/dist-cjs/commands/UpdateComponentCommand.js +1 -28
- package/dist-cjs/commands/UpdateComponentConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateLogPatternCommand.js +1 -28
- package/dist-cjs/commands/UpdateProblemCommand.js +1 -28
- package/dist-cjs/commands/UpdateWorkloadCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -36
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2926 -11
- package/dist-cjs/models/ApplicationInsightsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -211
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListComponentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListConfigurationHistoryPaginator.js +1 -7
- package/dist-cjs/pagination/ListLogPatternSetsPaginator.js +1 -7
- package/dist-cjs/pagination/ListLogPatternsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProblemsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkloadsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -11
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1855
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1855 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListApplicationsCommand = exports.de_DescribeWorkloadCommand = exports.de_DescribeProblemObservationsCommand = exports.de_DescribeProblemCommand = exports.de_DescribeObservationCommand = exports.de_DescribeLogPatternCommand = exports.de_DescribeComponentConfigurationRecommendationCommand = exports.de_DescribeComponentConfigurationCommand = exports.de_DescribeComponentCommand = exports.de_DescribeApplicationCommand = exports.de_DeleteLogPatternCommand = exports.de_DeleteComponentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateLogPatternCommand = exports.de_CreateComponentCommand = exports.de_CreateApplicationCommand = exports.de_AddWorkloadCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateProblemCommand = exports.se_UpdateLogPatternCommand = exports.se_UpdateComponentConfigurationCommand = exports.se_UpdateComponentCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveWorkloadCommand = exports.se_ListWorkloadsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProblemsCommand = exports.se_ListLogPatternSetsCommand = exports.se_ListLogPatternsCommand = exports.se_ListConfigurationHistoryCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_DescribeWorkloadCommand = exports.se_DescribeProblemObservationsCommand = exports.se_DescribeProblemCommand = exports.se_DescribeObservationCommand = exports.se_DescribeLogPatternCommand = exports.se_DescribeComponentConfigurationRecommendationCommand = exports.se_DescribeComponentConfigurationCommand = exports.se_DescribeComponentCommand = exports.se_DescribeApplicationCommand = exports.se_DeleteLogPatternCommand = exports.se_DeleteComponentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateLogPatternCommand = exports.se_CreateComponentCommand = exports.se_CreateApplicationCommand = exports.se_AddWorkloadCommand = void 0;
|
|
4
|
-
exports.de_UpdateWorkloadCommand = exports.de_UpdateProblemCommand = exports.de_UpdateLogPatternCommand = exports.de_UpdateComponentConfigurationCommand = exports.de_UpdateComponentCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveWorkloadCommand = exports.de_ListWorkloadsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProblemsCommand = exports.de_ListLogPatternSetsCommand = exports.de_ListLogPatternsCommand = exports.de_ListConfigurationHistoryCommand = exports.de_ListComponentsCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const ApplicationInsightsServiceException_1 = require("../models/ApplicationInsightsServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_AddWorkloadCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("AddWorkload");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_AddWorkloadCommand = se_AddWorkloadCommand;
|
|
16
|
-
const se_CreateApplicationCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CreateApplication");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
23
|
-
const se_CreateComponentCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CreateComponent");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_CreateComponentCommand = se_CreateComponentCommand;
|
|
30
|
-
const se_CreateLogPatternCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateLogPattern");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_CreateLogPatternCommand = se_CreateLogPatternCommand;
|
|
37
|
-
const se_DeleteApplicationCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeleteApplication");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
44
|
-
const se_DeleteComponentCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("DeleteComponent");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_DeleteComponentCommand = se_DeleteComponentCommand;
|
|
51
|
-
const se_DeleteLogPatternCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("DeleteLogPattern");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_DeleteLogPatternCommand = se_DeleteLogPatternCommand;
|
|
58
|
-
const se_DescribeApplicationCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("DescribeApplication");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_DescribeApplicationCommand = se_DescribeApplicationCommand;
|
|
65
|
-
const se_DescribeComponentCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("DescribeComponent");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_DescribeComponentCommand = se_DescribeComponentCommand;
|
|
72
|
-
const se_DescribeComponentConfigurationCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeComponentConfiguration");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_DescribeComponentConfigurationCommand = se_DescribeComponentConfigurationCommand;
|
|
79
|
-
const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_DescribeComponentConfigurationRecommendationCommand = se_DescribeComponentConfigurationRecommendationCommand;
|
|
86
|
-
const se_DescribeLogPatternCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("DescribeLogPattern");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_DescribeLogPatternCommand = se_DescribeLogPatternCommand;
|
|
93
|
-
const se_DescribeObservationCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("DescribeObservation");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_DescribeObservationCommand = se_DescribeObservationCommand;
|
|
100
|
-
const se_DescribeProblemCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("DescribeProblem");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_DescribeProblemCommand = se_DescribeProblemCommand;
|
|
107
|
-
const se_DescribeProblemObservationsCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("DescribeProblemObservations");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_DescribeProblemObservationsCommand = se_DescribeProblemObservationsCommand;
|
|
114
|
-
const se_DescribeWorkloadCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DescribeWorkload");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_DescribeWorkloadCommand = se_DescribeWorkloadCommand;
|
|
121
|
-
const se_ListApplicationsCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("ListApplications");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
128
|
-
const se_ListComponentsCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("ListComponents");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
135
|
-
const se_ListConfigurationHistoryCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("ListConfigurationHistory");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify(se_ListConfigurationHistoryRequest(input, context));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_ListConfigurationHistoryCommand = se_ListConfigurationHistoryCommand;
|
|
142
|
-
const se_ListLogPatternsCommand = async (input, context) => {
|
|
143
|
-
const headers = sharedHeaders("ListLogPatterns");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
exports.se_ListLogPatternsCommand = se_ListLogPatternsCommand;
|
|
149
|
-
const se_ListLogPatternSetsCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("ListLogPatternSets");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.se_ListLogPatternSetsCommand = se_ListLogPatternSetsCommand;
|
|
156
|
-
const se_ListProblemsCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("ListProblems");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(se_ListProblemsRequest(input, context));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
exports.se_ListProblemsCommand = se_ListProblemsCommand;
|
|
163
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
170
|
-
const se_ListWorkloadsCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("ListWorkloads");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
exports.se_ListWorkloadsCommand = se_ListWorkloadsCommand;
|
|
177
|
-
const se_RemoveWorkloadCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("RemoveWorkload");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
exports.se_RemoveWorkloadCommand = se_RemoveWorkloadCommand;
|
|
184
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
185
|
-
const headers = sharedHeaders("TagResource");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
-
};
|
|
190
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
191
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
192
|
-
const headers = sharedHeaders("UntagResource");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
-
};
|
|
197
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
198
|
-
const se_UpdateApplicationCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("UpdateApplication");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
205
|
-
const se_UpdateComponentCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("UpdateComponent");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
exports.se_UpdateComponentCommand = se_UpdateComponentCommand;
|
|
212
|
-
const se_UpdateComponentConfigurationCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("UpdateComponentConfiguration");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_UpdateComponentConfigurationCommand = se_UpdateComponentConfigurationCommand;
|
|
219
|
-
const se_UpdateLogPatternCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("UpdateLogPattern");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.se_UpdateLogPatternCommand = se_UpdateLogPatternCommand;
|
|
226
|
-
const se_UpdateProblemCommand = async (input, context) => {
|
|
227
|
-
const headers = sharedHeaders("UpdateProblem");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
|
-
};
|
|
232
|
-
exports.se_UpdateProblemCommand = se_UpdateProblemCommand;
|
|
233
|
-
const se_UpdateWorkloadCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("UpdateWorkload");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
exports.se_UpdateWorkloadCommand = se_UpdateWorkloadCommand;
|
|
240
|
-
const de_AddWorkloadCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode >= 300) {
|
|
242
|
-
return de_AddWorkloadCommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const data = await parseBody(output.body, context);
|
|
245
|
-
let contents = {};
|
|
246
|
-
contents = (0, smithy_client_1._json)(data);
|
|
247
|
-
const response = {
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
...contents,
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
exports.de_AddWorkloadCommand = de_AddWorkloadCommand;
|
|
254
|
-
const de_AddWorkloadCommandError = async (output, context) => {
|
|
255
|
-
const parsedOutput = {
|
|
256
|
-
...output,
|
|
257
|
-
body: await parseErrorBody(output.body, context),
|
|
258
|
-
};
|
|
259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
|
-
switch (errorCode) {
|
|
261
|
-
case "InternalServerException":
|
|
262
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
263
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
264
|
-
case "ResourceInUseException":
|
|
265
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
266
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
267
|
-
case "ResourceNotFoundException":
|
|
268
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
270
|
-
case "ValidationException":
|
|
271
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
273
|
-
default:
|
|
274
|
-
const parsedBody = parsedOutput.body;
|
|
275
|
-
return throwDefaultError({
|
|
276
|
-
output,
|
|
277
|
-
parsedBody,
|
|
278
|
-
errorCode,
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
const de_CreateApplicationCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CreateApplicationCommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const data = await parseBody(output.body, context);
|
|
287
|
-
let contents = {};
|
|
288
|
-
contents = (0, smithy_client_1._json)(data);
|
|
289
|
-
const response = {
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
...contents,
|
|
292
|
-
};
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
296
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
297
|
-
const parsedOutput = {
|
|
298
|
-
...output,
|
|
299
|
-
body: await parseErrorBody(output.body, context),
|
|
300
|
-
};
|
|
301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
302
|
-
switch (errorCode) {
|
|
303
|
-
case "AccessDeniedException":
|
|
304
|
-
case "com.amazonaws.applicationinsights#AccessDeniedException":
|
|
305
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
306
|
-
case "InternalServerException":
|
|
307
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
308
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
309
|
-
case "ResourceInUseException":
|
|
310
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
311
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
312
|
-
case "ResourceNotFoundException":
|
|
313
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
315
|
-
case "TagsAlreadyExistException":
|
|
316
|
-
case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
|
|
317
|
-
throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
|
|
318
|
-
case "ValidationException":
|
|
319
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
321
|
-
default:
|
|
322
|
-
const parsedBody = parsedOutput.body;
|
|
323
|
-
return throwDefaultError({
|
|
324
|
-
output,
|
|
325
|
-
parsedBody,
|
|
326
|
-
errorCode,
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
const de_CreateComponentCommand = async (output, context) => {
|
|
331
|
-
if (output.statusCode >= 300) {
|
|
332
|
-
return de_CreateComponentCommandError(output, context);
|
|
333
|
-
}
|
|
334
|
-
const data = await parseBody(output.body, context);
|
|
335
|
-
let contents = {};
|
|
336
|
-
contents = (0, smithy_client_1._json)(data);
|
|
337
|
-
const response = {
|
|
338
|
-
$metadata: deserializeMetadata(output),
|
|
339
|
-
...contents,
|
|
340
|
-
};
|
|
341
|
-
return response;
|
|
342
|
-
};
|
|
343
|
-
exports.de_CreateComponentCommand = de_CreateComponentCommand;
|
|
344
|
-
const de_CreateComponentCommandError = async (output, context) => {
|
|
345
|
-
const parsedOutput = {
|
|
346
|
-
...output,
|
|
347
|
-
body: await parseErrorBody(output.body, context),
|
|
348
|
-
};
|
|
349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
350
|
-
switch (errorCode) {
|
|
351
|
-
case "InternalServerException":
|
|
352
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
354
|
-
case "ResourceInUseException":
|
|
355
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
356
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
357
|
-
case "ResourceNotFoundException":
|
|
358
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
360
|
-
case "ValidationException":
|
|
361
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
363
|
-
default:
|
|
364
|
-
const parsedBody = parsedOutput.body;
|
|
365
|
-
return throwDefaultError({
|
|
366
|
-
output,
|
|
367
|
-
parsedBody,
|
|
368
|
-
errorCode,
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
const de_CreateLogPatternCommand = async (output, context) => {
|
|
373
|
-
if (output.statusCode >= 300) {
|
|
374
|
-
return de_CreateLogPatternCommandError(output, context);
|
|
375
|
-
}
|
|
376
|
-
const data = await parseBody(output.body, context);
|
|
377
|
-
let contents = {};
|
|
378
|
-
contents = (0, smithy_client_1._json)(data);
|
|
379
|
-
const response = {
|
|
380
|
-
$metadata: deserializeMetadata(output),
|
|
381
|
-
...contents,
|
|
382
|
-
};
|
|
383
|
-
return response;
|
|
384
|
-
};
|
|
385
|
-
exports.de_CreateLogPatternCommand = de_CreateLogPatternCommand;
|
|
386
|
-
const de_CreateLogPatternCommandError = async (output, context) => {
|
|
387
|
-
const parsedOutput = {
|
|
388
|
-
...output,
|
|
389
|
-
body: await parseErrorBody(output.body, context),
|
|
390
|
-
};
|
|
391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
-
switch (errorCode) {
|
|
393
|
-
case "InternalServerException":
|
|
394
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
395
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
396
|
-
case "ResourceInUseException":
|
|
397
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
398
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ResourceNotFoundException":
|
|
400
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
401
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ValidationException":
|
|
403
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
404
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
405
|
-
default:
|
|
406
|
-
const parsedBody = parsedOutput.body;
|
|
407
|
-
return throwDefaultError({
|
|
408
|
-
output,
|
|
409
|
-
parsedBody,
|
|
410
|
-
errorCode,
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
const de_DeleteApplicationCommand = async (output, context) => {
|
|
415
|
-
if (output.statusCode >= 300) {
|
|
416
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
417
|
-
}
|
|
418
|
-
const data = await parseBody(output.body, context);
|
|
419
|
-
let contents = {};
|
|
420
|
-
contents = (0, smithy_client_1._json)(data);
|
|
421
|
-
const response = {
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
...contents,
|
|
424
|
-
};
|
|
425
|
-
return response;
|
|
426
|
-
};
|
|
427
|
-
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
428
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
429
|
-
const parsedOutput = {
|
|
430
|
-
...output,
|
|
431
|
-
body: await parseErrorBody(output.body, context),
|
|
432
|
-
};
|
|
433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
|
-
switch (errorCode) {
|
|
435
|
-
case "BadRequestException":
|
|
436
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
437
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
438
|
-
case "InternalServerException":
|
|
439
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
440
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
441
|
-
case "ResourceNotFoundException":
|
|
442
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
444
|
-
case "ValidationException":
|
|
445
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
447
|
-
default:
|
|
448
|
-
const parsedBody = parsedOutput.body;
|
|
449
|
-
return throwDefaultError({
|
|
450
|
-
output,
|
|
451
|
-
parsedBody,
|
|
452
|
-
errorCode,
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
const de_DeleteComponentCommand = async (output, context) => {
|
|
457
|
-
if (output.statusCode >= 300) {
|
|
458
|
-
return de_DeleteComponentCommandError(output, context);
|
|
459
|
-
}
|
|
460
|
-
const data = await parseBody(output.body, context);
|
|
461
|
-
let contents = {};
|
|
462
|
-
contents = (0, smithy_client_1._json)(data);
|
|
463
|
-
const response = {
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
...contents,
|
|
466
|
-
};
|
|
467
|
-
return response;
|
|
468
|
-
};
|
|
469
|
-
exports.de_DeleteComponentCommand = de_DeleteComponentCommand;
|
|
470
|
-
const de_DeleteComponentCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "InternalServerException":
|
|
478
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
479
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ResourceNotFoundException":
|
|
481
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
482
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
483
|
-
case "ValidationException":
|
|
484
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
485
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
486
|
-
default:
|
|
487
|
-
const parsedBody = parsedOutput.body;
|
|
488
|
-
return throwDefaultError({
|
|
489
|
-
output,
|
|
490
|
-
parsedBody,
|
|
491
|
-
errorCode,
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
const de_DeleteLogPatternCommand = async (output, context) => {
|
|
496
|
-
if (output.statusCode >= 300) {
|
|
497
|
-
return de_DeleteLogPatternCommandError(output, context);
|
|
498
|
-
}
|
|
499
|
-
const data = await parseBody(output.body, context);
|
|
500
|
-
let contents = {};
|
|
501
|
-
contents = (0, smithy_client_1._json)(data);
|
|
502
|
-
const response = {
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
...contents,
|
|
505
|
-
};
|
|
506
|
-
return response;
|
|
507
|
-
};
|
|
508
|
-
exports.de_DeleteLogPatternCommand = de_DeleteLogPatternCommand;
|
|
509
|
-
const de_DeleteLogPatternCommandError = async (output, context) => {
|
|
510
|
-
const parsedOutput = {
|
|
511
|
-
...output,
|
|
512
|
-
body: await parseErrorBody(output.body, context),
|
|
513
|
-
};
|
|
514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
|
-
switch (errorCode) {
|
|
516
|
-
case "BadRequestException":
|
|
517
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
518
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
519
|
-
case "InternalServerException":
|
|
520
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceNotFoundException":
|
|
523
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ValidationException":
|
|
526
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
527
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
528
|
-
default:
|
|
529
|
-
const parsedBody = parsedOutput.body;
|
|
530
|
-
return throwDefaultError({
|
|
531
|
-
output,
|
|
532
|
-
parsedBody,
|
|
533
|
-
errorCode,
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
const de_DescribeApplicationCommand = async (output, context) => {
|
|
538
|
-
if (output.statusCode >= 300) {
|
|
539
|
-
return de_DescribeApplicationCommandError(output, context);
|
|
540
|
-
}
|
|
541
|
-
const data = await parseBody(output.body, context);
|
|
542
|
-
let contents = {};
|
|
543
|
-
contents = (0, smithy_client_1._json)(data);
|
|
544
|
-
const response = {
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
...contents,
|
|
547
|
-
};
|
|
548
|
-
return response;
|
|
549
|
-
};
|
|
550
|
-
exports.de_DescribeApplicationCommand = de_DescribeApplicationCommand;
|
|
551
|
-
const de_DescribeApplicationCommandError = async (output, context) => {
|
|
552
|
-
const parsedOutput = {
|
|
553
|
-
...output,
|
|
554
|
-
body: await parseErrorBody(output.body, context),
|
|
555
|
-
};
|
|
556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
|
-
switch (errorCode) {
|
|
558
|
-
case "InternalServerException":
|
|
559
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ResourceNotFoundException":
|
|
562
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
563
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ValidationException":
|
|
565
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
567
|
-
default:
|
|
568
|
-
const parsedBody = parsedOutput.body;
|
|
569
|
-
return throwDefaultError({
|
|
570
|
-
output,
|
|
571
|
-
parsedBody,
|
|
572
|
-
errorCode,
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
const de_DescribeComponentCommand = async (output, context) => {
|
|
577
|
-
if (output.statusCode >= 300) {
|
|
578
|
-
return de_DescribeComponentCommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const data = await parseBody(output.body, context);
|
|
581
|
-
let contents = {};
|
|
582
|
-
contents = (0, smithy_client_1._json)(data);
|
|
583
|
-
const response = {
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
...contents,
|
|
586
|
-
};
|
|
587
|
-
return response;
|
|
588
|
-
};
|
|
589
|
-
exports.de_DescribeComponentCommand = de_DescribeComponentCommand;
|
|
590
|
-
const de_DescribeComponentCommandError = async (output, context) => {
|
|
591
|
-
const parsedOutput = {
|
|
592
|
-
...output,
|
|
593
|
-
body: await parseErrorBody(output.body, context),
|
|
594
|
-
};
|
|
595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
-
switch (errorCode) {
|
|
597
|
-
case "InternalServerException":
|
|
598
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
599
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
600
|
-
case "ResourceNotFoundException":
|
|
601
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
602
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
603
|
-
case "ValidationException":
|
|
604
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
606
|
-
default:
|
|
607
|
-
const parsedBody = parsedOutput.body;
|
|
608
|
-
return throwDefaultError({
|
|
609
|
-
output,
|
|
610
|
-
parsedBody,
|
|
611
|
-
errorCode,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
|
-
const de_DescribeComponentConfigurationCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode >= 300) {
|
|
617
|
-
return de_DescribeComponentConfigurationCommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const data = await parseBody(output.body, context);
|
|
620
|
-
let contents = {};
|
|
621
|
-
contents = (0, smithy_client_1._json)(data);
|
|
622
|
-
const response = {
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
...contents,
|
|
625
|
-
};
|
|
626
|
-
return response;
|
|
627
|
-
};
|
|
628
|
-
exports.de_DescribeComponentConfigurationCommand = de_DescribeComponentConfigurationCommand;
|
|
629
|
-
const de_DescribeComponentConfigurationCommandError = async (output, context) => {
|
|
630
|
-
const parsedOutput = {
|
|
631
|
-
...output,
|
|
632
|
-
body: await parseErrorBody(output.body, context),
|
|
633
|
-
};
|
|
634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
|
-
switch (errorCode) {
|
|
636
|
-
case "InternalServerException":
|
|
637
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
638
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
639
|
-
case "ResourceNotFoundException":
|
|
640
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ValidationException":
|
|
643
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
644
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode,
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
const de_DescribeComponentConfigurationRecommendationCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_DescribeComponentConfigurationRecommendationCommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await parseBody(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = (0, smithy_client_1._json)(data);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents,
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
};
|
|
667
|
-
exports.de_DescribeComponentConfigurationRecommendationCommand = de_DescribeComponentConfigurationRecommendationCommand;
|
|
668
|
-
const de_DescribeComponentConfigurationRecommendationCommandError = async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await parseErrorBody(output.body, context),
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "InternalServerException":
|
|
676
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
677
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ResourceNotFoundException":
|
|
679
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
680
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ValidationException":
|
|
682
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
683
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
|
-
default:
|
|
685
|
-
const parsedBody = parsedOutput.body;
|
|
686
|
-
return throwDefaultError({
|
|
687
|
-
output,
|
|
688
|
-
parsedBody,
|
|
689
|
-
errorCode,
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
const de_DescribeLogPatternCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode >= 300) {
|
|
695
|
-
return de_DescribeLogPatternCommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const data = await parseBody(output.body, context);
|
|
698
|
-
let contents = {};
|
|
699
|
-
contents = (0, smithy_client_1._json)(data);
|
|
700
|
-
const response = {
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
...contents,
|
|
703
|
-
};
|
|
704
|
-
return response;
|
|
705
|
-
};
|
|
706
|
-
exports.de_DescribeLogPatternCommand = de_DescribeLogPatternCommand;
|
|
707
|
-
const de_DescribeLogPatternCommandError = async (output, context) => {
|
|
708
|
-
const parsedOutput = {
|
|
709
|
-
...output,
|
|
710
|
-
body: await parseErrorBody(output.body, context),
|
|
711
|
-
};
|
|
712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
|
-
switch (errorCode) {
|
|
714
|
-
case "InternalServerException":
|
|
715
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
716
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ResourceNotFoundException":
|
|
718
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
719
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
-
case "ValidationException":
|
|
721
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
722
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
723
|
-
default:
|
|
724
|
-
const parsedBody = parsedOutput.body;
|
|
725
|
-
return throwDefaultError({
|
|
726
|
-
output,
|
|
727
|
-
parsedBody,
|
|
728
|
-
errorCode,
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const de_DescribeObservationCommand = async (output, context) => {
|
|
733
|
-
if (output.statusCode >= 300) {
|
|
734
|
-
return de_DescribeObservationCommandError(output, context);
|
|
735
|
-
}
|
|
736
|
-
const data = await parseBody(output.body, context);
|
|
737
|
-
let contents = {};
|
|
738
|
-
contents = de_DescribeObservationResponse(data, context);
|
|
739
|
-
const response = {
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
...contents,
|
|
742
|
-
};
|
|
743
|
-
return response;
|
|
744
|
-
};
|
|
745
|
-
exports.de_DescribeObservationCommand = de_DescribeObservationCommand;
|
|
746
|
-
const de_DescribeObservationCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "InternalServerException":
|
|
754
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
756
|
-
case "ResourceNotFoundException":
|
|
757
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
-
case "ValidationException":
|
|
760
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
761
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
762
|
-
default:
|
|
763
|
-
const parsedBody = parsedOutput.body;
|
|
764
|
-
return throwDefaultError({
|
|
765
|
-
output,
|
|
766
|
-
parsedBody,
|
|
767
|
-
errorCode,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
};
|
|
771
|
-
const de_DescribeProblemCommand = async (output, context) => {
|
|
772
|
-
if (output.statusCode >= 300) {
|
|
773
|
-
return de_DescribeProblemCommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const data = await parseBody(output.body, context);
|
|
776
|
-
let contents = {};
|
|
777
|
-
contents = de_DescribeProblemResponse(data, context);
|
|
778
|
-
const response = {
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
...contents,
|
|
781
|
-
};
|
|
782
|
-
return response;
|
|
783
|
-
};
|
|
784
|
-
exports.de_DescribeProblemCommand = de_DescribeProblemCommand;
|
|
785
|
-
const de_DescribeProblemCommandError = async (output, context) => {
|
|
786
|
-
const parsedOutput = {
|
|
787
|
-
...output,
|
|
788
|
-
body: await parseErrorBody(output.body, context),
|
|
789
|
-
};
|
|
790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
|
-
switch (errorCode) {
|
|
792
|
-
case "InternalServerException":
|
|
793
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
794
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ResourceNotFoundException":
|
|
796
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
797
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ValidationException":
|
|
799
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
800
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
801
|
-
default:
|
|
802
|
-
const parsedBody = parsedOutput.body;
|
|
803
|
-
return throwDefaultError({
|
|
804
|
-
output,
|
|
805
|
-
parsedBody,
|
|
806
|
-
errorCode,
|
|
807
|
-
});
|
|
808
|
-
}
|
|
809
|
-
};
|
|
810
|
-
const de_DescribeProblemObservationsCommand = async (output, context) => {
|
|
811
|
-
if (output.statusCode >= 300) {
|
|
812
|
-
return de_DescribeProblemObservationsCommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const data = await parseBody(output.body, context);
|
|
815
|
-
let contents = {};
|
|
816
|
-
contents = de_DescribeProblemObservationsResponse(data, context);
|
|
817
|
-
const response = {
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
...contents,
|
|
820
|
-
};
|
|
821
|
-
return response;
|
|
822
|
-
};
|
|
823
|
-
exports.de_DescribeProblemObservationsCommand = de_DescribeProblemObservationsCommand;
|
|
824
|
-
const de_DescribeProblemObservationsCommandError = async (output, context) => {
|
|
825
|
-
const parsedOutput = {
|
|
826
|
-
...output,
|
|
827
|
-
body: await parseErrorBody(output.body, context),
|
|
828
|
-
};
|
|
829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
830
|
-
switch (errorCode) {
|
|
831
|
-
case "InternalServerException":
|
|
832
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
834
|
-
case "ResourceNotFoundException":
|
|
835
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
837
|
-
case "ValidationException":
|
|
838
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
839
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
840
|
-
default:
|
|
841
|
-
const parsedBody = parsedOutput.body;
|
|
842
|
-
return throwDefaultError({
|
|
843
|
-
output,
|
|
844
|
-
parsedBody,
|
|
845
|
-
errorCode,
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
};
|
|
849
|
-
const de_DescribeWorkloadCommand = async (output, context) => {
|
|
850
|
-
if (output.statusCode >= 300) {
|
|
851
|
-
return de_DescribeWorkloadCommandError(output, context);
|
|
852
|
-
}
|
|
853
|
-
const data = await parseBody(output.body, context);
|
|
854
|
-
let contents = {};
|
|
855
|
-
contents = (0, smithy_client_1._json)(data);
|
|
856
|
-
const response = {
|
|
857
|
-
$metadata: deserializeMetadata(output),
|
|
858
|
-
...contents,
|
|
859
|
-
};
|
|
860
|
-
return response;
|
|
861
|
-
};
|
|
862
|
-
exports.de_DescribeWorkloadCommand = de_DescribeWorkloadCommand;
|
|
863
|
-
const de_DescribeWorkloadCommandError = async (output, context) => {
|
|
864
|
-
const parsedOutput = {
|
|
865
|
-
...output,
|
|
866
|
-
body: await parseErrorBody(output.body, context),
|
|
867
|
-
};
|
|
868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
-
switch (errorCode) {
|
|
870
|
-
case "InternalServerException":
|
|
871
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ResourceNotFoundException":
|
|
874
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ValidationException":
|
|
877
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
879
|
-
default:
|
|
880
|
-
const parsedBody = parsedOutput.body;
|
|
881
|
-
return throwDefaultError({
|
|
882
|
-
output,
|
|
883
|
-
parsedBody,
|
|
884
|
-
errorCode,
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
const de_ListApplicationsCommand = async (output, context) => {
|
|
889
|
-
if (output.statusCode >= 300) {
|
|
890
|
-
return de_ListApplicationsCommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const data = await parseBody(output.body, context);
|
|
893
|
-
let contents = {};
|
|
894
|
-
contents = (0, smithy_client_1._json)(data);
|
|
895
|
-
const response = {
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
...contents,
|
|
898
|
-
};
|
|
899
|
-
return response;
|
|
900
|
-
};
|
|
901
|
-
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
902
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context),
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "InternalServerException":
|
|
910
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ValidationException":
|
|
913
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode,
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
const de_ListComponentsCommand = async (output, context) => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return de_ListComponentsCommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
const data = await parseBody(output.body, context);
|
|
929
|
-
let contents = {};
|
|
930
|
-
contents = (0, smithy_client_1._json)(data);
|
|
931
|
-
const response = {
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
...contents,
|
|
934
|
-
};
|
|
935
|
-
return response;
|
|
936
|
-
};
|
|
937
|
-
exports.de_ListComponentsCommand = de_ListComponentsCommand;
|
|
938
|
-
const de_ListComponentsCommandError = async (output, context) => {
|
|
939
|
-
const parsedOutput = {
|
|
940
|
-
...output,
|
|
941
|
-
body: await parseErrorBody(output.body, context),
|
|
942
|
-
};
|
|
943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
-
switch (errorCode) {
|
|
945
|
-
case "InternalServerException":
|
|
946
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
947
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ResourceNotFoundException":
|
|
949
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
950
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ValidationException":
|
|
952
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
953
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
954
|
-
default:
|
|
955
|
-
const parsedBody = parsedOutput.body;
|
|
956
|
-
return throwDefaultError({
|
|
957
|
-
output,
|
|
958
|
-
parsedBody,
|
|
959
|
-
errorCode,
|
|
960
|
-
});
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
const de_ListConfigurationHistoryCommand = async (output, context) => {
|
|
964
|
-
if (output.statusCode >= 300) {
|
|
965
|
-
return de_ListConfigurationHistoryCommandError(output, context);
|
|
966
|
-
}
|
|
967
|
-
const data = await parseBody(output.body, context);
|
|
968
|
-
let contents = {};
|
|
969
|
-
contents = de_ListConfigurationHistoryResponse(data, context);
|
|
970
|
-
const response = {
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
...contents,
|
|
973
|
-
};
|
|
974
|
-
return response;
|
|
975
|
-
};
|
|
976
|
-
exports.de_ListConfigurationHistoryCommand = de_ListConfigurationHistoryCommand;
|
|
977
|
-
const de_ListConfigurationHistoryCommandError = async (output, context) => {
|
|
978
|
-
const parsedOutput = {
|
|
979
|
-
...output,
|
|
980
|
-
body: await parseErrorBody(output.body, context),
|
|
981
|
-
};
|
|
982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
|
-
switch (errorCode) {
|
|
984
|
-
case "InternalServerException":
|
|
985
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ResourceNotFoundException":
|
|
988
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
990
|
-
case "ValidationException":
|
|
991
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
992
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
993
|
-
default:
|
|
994
|
-
const parsedBody = parsedOutput.body;
|
|
995
|
-
return throwDefaultError({
|
|
996
|
-
output,
|
|
997
|
-
parsedBody,
|
|
998
|
-
errorCode,
|
|
999
|
-
});
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
const de_ListLogPatternsCommand = async (output, context) => {
|
|
1003
|
-
if (output.statusCode >= 300) {
|
|
1004
|
-
return de_ListLogPatternsCommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const data = await parseBody(output.body, context);
|
|
1007
|
-
let contents = {};
|
|
1008
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1009
|
-
const response = {
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
...contents,
|
|
1012
|
-
};
|
|
1013
|
-
return response;
|
|
1014
|
-
};
|
|
1015
|
-
exports.de_ListLogPatternsCommand = de_ListLogPatternsCommand;
|
|
1016
|
-
const de_ListLogPatternsCommandError = async (output, context) => {
|
|
1017
|
-
const parsedOutput = {
|
|
1018
|
-
...output,
|
|
1019
|
-
body: await parseErrorBody(output.body, context),
|
|
1020
|
-
};
|
|
1021
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1022
|
-
switch (errorCode) {
|
|
1023
|
-
case "InternalServerException":
|
|
1024
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1025
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ResourceNotFoundException":
|
|
1027
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1028
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ValidationException":
|
|
1030
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1031
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1032
|
-
default:
|
|
1033
|
-
const parsedBody = parsedOutput.body;
|
|
1034
|
-
return throwDefaultError({
|
|
1035
|
-
output,
|
|
1036
|
-
parsedBody,
|
|
1037
|
-
errorCode,
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
const de_ListLogPatternSetsCommand = async (output, context) => {
|
|
1042
|
-
if (output.statusCode >= 300) {
|
|
1043
|
-
return de_ListLogPatternSetsCommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const data = await parseBody(output.body, context);
|
|
1046
|
-
let contents = {};
|
|
1047
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1048
|
-
const response = {
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
...contents,
|
|
1051
|
-
};
|
|
1052
|
-
return response;
|
|
1053
|
-
};
|
|
1054
|
-
exports.de_ListLogPatternSetsCommand = de_ListLogPatternSetsCommand;
|
|
1055
|
-
const de_ListLogPatternSetsCommandError = async (output, context) => {
|
|
1056
|
-
const parsedOutput = {
|
|
1057
|
-
...output,
|
|
1058
|
-
body: await parseErrorBody(output.body, context),
|
|
1059
|
-
};
|
|
1060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
-
switch (errorCode) {
|
|
1062
|
-
case "InternalServerException":
|
|
1063
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1064
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ResourceNotFoundException":
|
|
1066
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ValidationException":
|
|
1069
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1070
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1071
|
-
default:
|
|
1072
|
-
const parsedBody = parsedOutput.body;
|
|
1073
|
-
return throwDefaultError({
|
|
1074
|
-
output,
|
|
1075
|
-
parsedBody,
|
|
1076
|
-
errorCode,
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
|
-
const de_ListProblemsCommand = async (output, context) => {
|
|
1081
|
-
if (output.statusCode >= 300) {
|
|
1082
|
-
return de_ListProblemsCommandError(output, context);
|
|
1083
|
-
}
|
|
1084
|
-
const data = await parseBody(output.body, context);
|
|
1085
|
-
let contents = {};
|
|
1086
|
-
contents = de_ListProblemsResponse(data, context);
|
|
1087
|
-
const response = {
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
...contents,
|
|
1090
|
-
};
|
|
1091
|
-
return response;
|
|
1092
|
-
};
|
|
1093
|
-
exports.de_ListProblemsCommand = de_ListProblemsCommand;
|
|
1094
|
-
const de_ListProblemsCommandError = async (output, context) => {
|
|
1095
|
-
const parsedOutput = {
|
|
1096
|
-
...output,
|
|
1097
|
-
body: await parseErrorBody(output.body, context),
|
|
1098
|
-
};
|
|
1099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
|
-
switch (errorCode) {
|
|
1101
|
-
case "InternalServerException":
|
|
1102
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1103
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ResourceNotFoundException":
|
|
1105
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ValidationException":
|
|
1108
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1109
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode,
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1120
|
-
if (output.statusCode >= 300) {
|
|
1121
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1122
|
-
}
|
|
1123
|
-
const data = await parseBody(output.body, context);
|
|
1124
|
-
let contents = {};
|
|
1125
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1126
|
-
const response = {
|
|
1127
|
-
$metadata: deserializeMetadata(output),
|
|
1128
|
-
...contents,
|
|
1129
|
-
};
|
|
1130
|
-
return response;
|
|
1131
|
-
};
|
|
1132
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1133
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context),
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "ResourceNotFoundException":
|
|
1141
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1142
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "ValidationException":
|
|
1144
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1145
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1146
|
-
default:
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode,
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
|
-
const de_ListWorkloadsCommand = async (output, context) => {
|
|
1156
|
-
if (output.statusCode >= 300) {
|
|
1157
|
-
return de_ListWorkloadsCommandError(output, context);
|
|
1158
|
-
}
|
|
1159
|
-
const data = await parseBody(output.body, context);
|
|
1160
|
-
let contents = {};
|
|
1161
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1162
|
-
const response = {
|
|
1163
|
-
$metadata: deserializeMetadata(output),
|
|
1164
|
-
...contents,
|
|
1165
|
-
};
|
|
1166
|
-
return response;
|
|
1167
|
-
};
|
|
1168
|
-
exports.de_ListWorkloadsCommand = de_ListWorkloadsCommand;
|
|
1169
|
-
const de_ListWorkloadsCommandError = async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context),
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "InternalServerException":
|
|
1177
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ResourceNotFoundException":
|
|
1180
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ValidationException":
|
|
1183
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1185
|
-
default:
|
|
1186
|
-
const parsedBody = parsedOutput.body;
|
|
1187
|
-
return throwDefaultError({
|
|
1188
|
-
output,
|
|
1189
|
-
parsedBody,
|
|
1190
|
-
errorCode,
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
};
|
|
1194
|
-
const de_RemoveWorkloadCommand = async (output, context) => {
|
|
1195
|
-
if (output.statusCode >= 300) {
|
|
1196
|
-
return de_RemoveWorkloadCommandError(output, context);
|
|
1197
|
-
}
|
|
1198
|
-
const data = await parseBody(output.body, context);
|
|
1199
|
-
let contents = {};
|
|
1200
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1201
|
-
const response = {
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
...contents,
|
|
1204
|
-
};
|
|
1205
|
-
return response;
|
|
1206
|
-
};
|
|
1207
|
-
exports.de_RemoveWorkloadCommand = de_RemoveWorkloadCommand;
|
|
1208
|
-
const de_RemoveWorkloadCommandError = async (output, context) => {
|
|
1209
|
-
const parsedOutput = {
|
|
1210
|
-
...output,
|
|
1211
|
-
body: await parseErrorBody(output.body, context),
|
|
1212
|
-
};
|
|
1213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
|
-
switch (errorCode) {
|
|
1215
|
-
case "InternalServerException":
|
|
1216
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1217
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ResourceNotFoundException":
|
|
1219
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1220
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ValidationException":
|
|
1222
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
|
-
default:
|
|
1225
|
-
const parsedBody = parsedOutput.body;
|
|
1226
|
-
return throwDefaultError({
|
|
1227
|
-
output,
|
|
1228
|
-
parsedBody,
|
|
1229
|
-
errorCode,
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1234
|
-
if (output.statusCode >= 300) {
|
|
1235
|
-
return de_TagResourceCommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const data = await parseBody(output.body, context);
|
|
1238
|
-
let contents = {};
|
|
1239
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1240
|
-
const response = {
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
...contents,
|
|
1243
|
-
};
|
|
1244
|
-
return response;
|
|
1245
|
-
};
|
|
1246
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1247
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1248
|
-
const parsedOutput = {
|
|
1249
|
-
...output,
|
|
1250
|
-
body: await parseErrorBody(output.body, context),
|
|
1251
|
-
};
|
|
1252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
switch (errorCode) {
|
|
1254
|
-
case "ResourceNotFoundException":
|
|
1255
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "TooManyTagsException":
|
|
1258
|
-
case "com.amazonaws.applicationinsights#TooManyTagsException":
|
|
1259
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ValidationException":
|
|
1261
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1262
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1263
|
-
default:
|
|
1264
|
-
const parsedBody = parsedOutput.body;
|
|
1265
|
-
return throwDefaultError({
|
|
1266
|
-
output,
|
|
1267
|
-
parsedBody,
|
|
1268
|
-
errorCode,
|
|
1269
|
-
});
|
|
1270
|
-
}
|
|
1271
|
-
};
|
|
1272
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1273
|
-
if (output.statusCode >= 300) {
|
|
1274
|
-
return de_UntagResourceCommandError(output, context);
|
|
1275
|
-
}
|
|
1276
|
-
const data = await parseBody(output.body, context);
|
|
1277
|
-
let contents = {};
|
|
1278
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1279
|
-
const response = {
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
...contents,
|
|
1282
|
-
};
|
|
1283
|
-
return response;
|
|
1284
|
-
};
|
|
1285
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1286
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1287
|
-
const parsedOutput = {
|
|
1288
|
-
...output,
|
|
1289
|
-
body: await parseErrorBody(output.body, context),
|
|
1290
|
-
};
|
|
1291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
-
switch (errorCode) {
|
|
1293
|
-
case "ResourceNotFoundException":
|
|
1294
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1295
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ValidationException":
|
|
1297
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
-
default:
|
|
1300
|
-
const parsedBody = parsedOutput.body;
|
|
1301
|
-
return throwDefaultError({
|
|
1302
|
-
output,
|
|
1303
|
-
parsedBody,
|
|
1304
|
-
errorCode,
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
|
-
const de_UpdateApplicationCommand = async (output, context) => {
|
|
1309
|
-
if (output.statusCode >= 300) {
|
|
1310
|
-
return de_UpdateApplicationCommandError(output, context);
|
|
1311
|
-
}
|
|
1312
|
-
const data = await parseBody(output.body, context);
|
|
1313
|
-
let contents = {};
|
|
1314
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1315
|
-
const response = {
|
|
1316
|
-
$metadata: deserializeMetadata(output),
|
|
1317
|
-
...contents,
|
|
1318
|
-
};
|
|
1319
|
-
return response;
|
|
1320
|
-
};
|
|
1321
|
-
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
1322
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1323
|
-
const parsedOutput = {
|
|
1324
|
-
...output,
|
|
1325
|
-
body: await parseErrorBody(output.body, context),
|
|
1326
|
-
};
|
|
1327
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
-
switch (errorCode) {
|
|
1329
|
-
case "InternalServerException":
|
|
1330
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1331
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ResourceNotFoundException":
|
|
1333
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ValidationException":
|
|
1336
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1337
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1338
|
-
default:
|
|
1339
|
-
const parsedBody = parsedOutput.body;
|
|
1340
|
-
return throwDefaultError({
|
|
1341
|
-
output,
|
|
1342
|
-
parsedBody,
|
|
1343
|
-
errorCode,
|
|
1344
|
-
});
|
|
1345
|
-
}
|
|
1346
|
-
};
|
|
1347
|
-
const de_UpdateComponentCommand = async (output, context) => {
|
|
1348
|
-
if (output.statusCode >= 300) {
|
|
1349
|
-
return de_UpdateComponentCommandError(output, context);
|
|
1350
|
-
}
|
|
1351
|
-
const data = await parseBody(output.body, context);
|
|
1352
|
-
let contents = {};
|
|
1353
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1354
|
-
const response = {
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
...contents,
|
|
1357
|
-
};
|
|
1358
|
-
return response;
|
|
1359
|
-
};
|
|
1360
|
-
exports.de_UpdateComponentCommand = de_UpdateComponentCommand;
|
|
1361
|
-
const de_UpdateComponentCommandError = async (output, context) => {
|
|
1362
|
-
const parsedOutput = {
|
|
1363
|
-
...output,
|
|
1364
|
-
body: await parseErrorBody(output.body, context),
|
|
1365
|
-
};
|
|
1366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
-
switch (errorCode) {
|
|
1368
|
-
case "InternalServerException":
|
|
1369
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ResourceInUseException":
|
|
1372
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
1373
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ResourceNotFoundException":
|
|
1375
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ValidationException":
|
|
1378
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1379
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1380
|
-
default:
|
|
1381
|
-
const parsedBody = parsedOutput.body;
|
|
1382
|
-
return throwDefaultError({
|
|
1383
|
-
output,
|
|
1384
|
-
parsedBody,
|
|
1385
|
-
errorCode,
|
|
1386
|
-
});
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
const de_UpdateComponentConfigurationCommand = async (output, context) => {
|
|
1390
|
-
if (output.statusCode >= 300) {
|
|
1391
|
-
return de_UpdateComponentConfigurationCommandError(output, context);
|
|
1392
|
-
}
|
|
1393
|
-
const data = await parseBody(output.body, context);
|
|
1394
|
-
let contents = {};
|
|
1395
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1396
|
-
const response = {
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
...contents,
|
|
1399
|
-
};
|
|
1400
|
-
return response;
|
|
1401
|
-
};
|
|
1402
|
-
exports.de_UpdateComponentConfigurationCommand = de_UpdateComponentConfigurationCommand;
|
|
1403
|
-
const de_UpdateComponentConfigurationCommandError = async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context),
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "InternalServerException":
|
|
1411
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1412
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ResourceInUseException":
|
|
1414
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
1415
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ValidationException":
|
|
1420
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1421
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1422
|
-
default:
|
|
1423
|
-
const parsedBody = parsedOutput.body;
|
|
1424
|
-
return throwDefaultError({
|
|
1425
|
-
output,
|
|
1426
|
-
parsedBody,
|
|
1427
|
-
errorCode,
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
};
|
|
1431
|
-
const de_UpdateLogPatternCommand = async (output, context) => {
|
|
1432
|
-
if (output.statusCode >= 300) {
|
|
1433
|
-
return de_UpdateLogPatternCommandError(output, context);
|
|
1434
|
-
}
|
|
1435
|
-
const data = await parseBody(output.body, context);
|
|
1436
|
-
let contents = {};
|
|
1437
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1438
|
-
const response = {
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
...contents,
|
|
1441
|
-
};
|
|
1442
|
-
return response;
|
|
1443
|
-
};
|
|
1444
|
-
exports.de_UpdateLogPatternCommand = de_UpdateLogPatternCommand;
|
|
1445
|
-
const de_UpdateLogPatternCommandError = async (output, context) => {
|
|
1446
|
-
const parsedOutput = {
|
|
1447
|
-
...output,
|
|
1448
|
-
body: await parseErrorBody(output.body, context),
|
|
1449
|
-
};
|
|
1450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
-
switch (errorCode) {
|
|
1452
|
-
case "InternalServerException":
|
|
1453
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceInUseException":
|
|
1456
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
1457
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ResourceNotFoundException":
|
|
1459
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1460
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ValidationException":
|
|
1462
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
return throwDefaultError({
|
|
1467
|
-
output,
|
|
1468
|
-
parsedBody,
|
|
1469
|
-
errorCode,
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
const de_UpdateProblemCommand = async (output, context) => {
|
|
1474
|
-
if (output.statusCode >= 300) {
|
|
1475
|
-
return de_UpdateProblemCommandError(output, context);
|
|
1476
|
-
}
|
|
1477
|
-
const data = await parseBody(output.body, context);
|
|
1478
|
-
let contents = {};
|
|
1479
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1480
|
-
const response = {
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
...contents,
|
|
1483
|
-
};
|
|
1484
|
-
return response;
|
|
1485
|
-
};
|
|
1486
|
-
exports.de_UpdateProblemCommand = de_UpdateProblemCommand;
|
|
1487
|
-
const de_UpdateProblemCommandError = async (output, context) => {
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context),
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "InternalServerException":
|
|
1495
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1496
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ResourceNotFoundException":
|
|
1498
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "ValidationException":
|
|
1501
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1502
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1503
|
-
default:
|
|
1504
|
-
const parsedBody = parsedOutput.body;
|
|
1505
|
-
return throwDefaultError({
|
|
1506
|
-
output,
|
|
1507
|
-
parsedBody,
|
|
1508
|
-
errorCode,
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
const de_UpdateWorkloadCommand = async (output, context) => {
|
|
1513
|
-
if (output.statusCode >= 300) {
|
|
1514
|
-
return de_UpdateWorkloadCommandError(output, context);
|
|
1515
|
-
}
|
|
1516
|
-
const data = await parseBody(output.body, context);
|
|
1517
|
-
let contents = {};
|
|
1518
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1519
|
-
const response = {
|
|
1520
|
-
$metadata: deserializeMetadata(output),
|
|
1521
|
-
...contents,
|
|
1522
|
-
};
|
|
1523
|
-
return response;
|
|
1524
|
-
};
|
|
1525
|
-
exports.de_UpdateWorkloadCommand = de_UpdateWorkloadCommand;
|
|
1526
|
-
const de_UpdateWorkloadCommandError = async (output, context) => {
|
|
1527
|
-
const parsedOutput = {
|
|
1528
|
-
...output,
|
|
1529
|
-
body: await parseErrorBody(output.body, context),
|
|
1530
|
-
};
|
|
1531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
|
-
switch (errorCode) {
|
|
1533
|
-
case "InternalServerException":
|
|
1534
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
1535
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "ResourceNotFoundException":
|
|
1537
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
1538
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "ValidationException":
|
|
1540
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
1541
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1542
|
-
default:
|
|
1543
|
-
const parsedBody = parsedOutput.body;
|
|
1544
|
-
return throwDefaultError({
|
|
1545
|
-
output,
|
|
1546
|
-
parsedBody,
|
|
1547
|
-
errorCode,
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
};
|
|
1551
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1552
|
-
const body = parsedOutput.body;
|
|
1553
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1554
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1555
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1556
|
-
...deserialized,
|
|
1557
|
-
});
|
|
1558
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1559
|
-
};
|
|
1560
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1561
|
-
const body = parsedOutput.body;
|
|
1562
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1563
|
-
const exception = new models_0_1.BadRequestException({
|
|
1564
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1565
|
-
...deserialized,
|
|
1566
|
-
});
|
|
1567
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1568
|
-
};
|
|
1569
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1570
|
-
const body = parsedOutput.body;
|
|
1571
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1572
|
-
const exception = new models_0_1.InternalServerException({
|
|
1573
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1574
|
-
...deserialized,
|
|
1575
|
-
});
|
|
1576
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1577
|
-
};
|
|
1578
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1579
|
-
const body = parsedOutput.body;
|
|
1580
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1581
|
-
const exception = new models_0_1.ResourceInUseException({
|
|
1582
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1583
|
-
...deserialized,
|
|
1584
|
-
});
|
|
1585
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1586
|
-
};
|
|
1587
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1588
|
-
const body = parsedOutput.body;
|
|
1589
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1590
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1591
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1592
|
-
...deserialized,
|
|
1593
|
-
});
|
|
1594
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1595
|
-
};
|
|
1596
|
-
const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
1597
|
-
const body = parsedOutput.body;
|
|
1598
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1599
|
-
const exception = new models_0_1.TagsAlreadyExistException({
|
|
1600
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1601
|
-
...deserialized,
|
|
1602
|
-
});
|
|
1603
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1604
|
-
};
|
|
1605
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1606
|
-
const body = parsedOutput.body;
|
|
1607
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1608
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
1609
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1610
|
-
...deserialized,
|
|
1611
|
-
});
|
|
1612
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1613
|
-
};
|
|
1614
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1615
|
-
const body = parsedOutput.body;
|
|
1616
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1617
|
-
const exception = new models_0_1.ValidationException({
|
|
1618
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1619
|
-
...deserialized,
|
|
1620
|
-
});
|
|
1621
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1622
|
-
};
|
|
1623
|
-
const se_ListConfigurationHistoryRequest = (input, context) => {
|
|
1624
|
-
return (0, smithy_client_1.take)(input, {
|
|
1625
|
-
AccountId: [],
|
|
1626
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1627
|
-
EventStatus: [],
|
|
1628
|
-
MaxResults: [],
|
|
1629
|
-
NextToken: [],
|
|
1630
|
-
ResourceGroupName: [],
|
|
1631
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1632
|
-
});
|
|
1633
|
-
};
|
|
1634
|
-
const se_ListProblemsRequest = (input, context) => {
|
|
1635
|
-
return (0, smithy_client_1.take)(input, {
|
|
1636
|
-
AccountId: [],
|
|
1637
|
-
ComponentName: [],
|
|
1638
|
-
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1639
|
-
MaxResults: [],
|
|
1640
|
-
NextToken: [],
|
|
1641
|
-
ResourceGroupName: [],
|
|
1642
|
-
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1643
|
-
Visibility: [],
|
|
1644
|
-
});
|
|
1645
|
-
};
|
|
1646
|
-
const de_ConfigurationEvent = (output, context) => {
|
|
1647
|
-
return (0, smithy_client_1.take)(output, {
|
|
1648
|
-
AccountId: smithy_client_1.expectString,
|
|
1649
|
-
EventDetail: smithy_client_1.expectString,
|
|
1650
|
-
EventResourceName: smithy_client_1.expectString,
|
|
1651
|
-
EventResourceType: smithy_client_1.expectString,
|
|
1652
|
-
EventStatus: smithy_client_1.expectString,
|
|
1653
|
-
EventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1654
|
-
MonitoredResourceARN: smithy_client_1.expectString,
|
|
1655
|
-
ResourceGroupName: smithy_client_1.expectString,
|
|
1656
|
-
});
|
|
1657
|
-
};
|
|
1658
|
-
const de_ConfigurationEventList = (output, context) => {
|
|
1659
|
-
const retVal = (output || [])
|
|
1660
|
-
.filter((e) => e != null)
|
|
1661
|
-
.map((entry) => {
|
|
1662
|
-
return de_ConfigurationEvent(entry, context);
|
|
1663
|
-
});
|
|
1664
|
-
return retVal;
|
|
1665
|
-
};
|
|
1666
|
-
const de_DescribeObservationResponse = (output, context) => {
|
|
1667
|
-
return (0, smithy_client_1.take)(output, {
|
|
1668
|
-
Observation: (_) => de_Observation(_, context),
|
|
1669
|
-
});
|
|
1670
|
-
};
|
|
1671
|
-
const de_DescribeProblemObservationsResponse = (output, context) => {
|
|
1672
|
-
return (0, smithy_client_1.take)(output, {
|
|
1673
|
-
RelatedObservations: (_) => de_RelatedObservations(_, context),
|
|
1674
|
-
});
|
|
1675
|
-
};
|
|
1676
|
-
const de_DescribeProblemResponse = (output, context) => {
|
|
1677
|
-
return (0, smithy_client_1.take)(output, {
|
|
1678
|
-
Problem: (_) => de_Problem(_, context),
|
|
1679
|
-
});
|
|
1680
|
-
};
|
|
1681
|
-
const de_ListConfigurationHistoryResponse = (output, context) => {
|
|
1682
|
-
return (0, smithy_client_1.take)(output, {
|
|
1683
|
-
EventList: (_) => de_ConfigurationEventList(_, context),
|
|
1684
|
-
NextToken: smithy_client_1.expectString,
|
|
1685
|
-
});
|
|
1686
|
-
};
|
|
1687
|
-
const de_ListProblemsResponse = (output, context) => {
|
|
1688
|
-
return (0, smithy_client_1.take)(output, {
|
|
1689
|
-
AccountId: smithy_client_1.expectString,
|
|
1690
|
-
NextToken: smithy_client_1.expectString,
|
|
1691
|
-
ProblemList: (_) => de_ProblemList(_, context),
|
|
1692
|
-
ResourceGroupName: smithy_client_1.expectString,
|
|
1693
|
-
});
|
|
1694
|
-
};
|
|
1695
|
-
const de_Observation = (output, context) => {
|
|
1696
|
-
return (0, smithy_client_1.take)(output, {
|
|
1697
|
-
CloudWatchEventDetailType: smithy_client_1.expectString,
|
|
1698
|
-
CloudWatchEventId: smithy_client_1.expectString,
|
|
1699
|
-
CloudWatchEventSource: smithy_client_1.expectString,
|
|
1700
|
-
CodeDeployApplication: smithy_client_1.expectString,
|
|
1701
|
-
CodeDeployDeploymentGroup: smithy_client_1.expectString,
|
|
1702
|
-
CodeDeployDeploymentId: smithy_client_1.expectString,
|
|
1703
|
-
CodeDeployInstanceGroupId: smithy_client_1.expectString,
|
|
1704
|
-
CodeDeployState: smithy_client_1.expectString,
|
|
1705
|
-
EbsCause: smithy_client_1.expectString,
|
|
1706
|
-
EbsEvent: smithy_client_1.expectString,
|
|
1707
|
-
EbsRequestId: smithy_client_1.expectString,
|
|
1708
|
-
EbsResult: smithy_client_1.expectString,
|
|
1709
|
-
Ec2State: smithy_client_1.expectString,
|
|
1710
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1711
|
-
HealthEventArn: smithy_client_1.expectString,
|
|
1712
|
-
HealthEventDescription: smithy_client_1.expectString,
|
|
1713
|
-
HealthEventTypeCategory: smithy_client_1.expectString,
|
|
1714
|
-
HealthEventTypeCode: smithy_client_1.expectString,
|
|
1715
|
-
HealthService: smithy_client_1.expectString,
|
|
1716
|
-
Id: smithy_client_1.expectString,
|
|
1717
|
-
LineTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1718
|
-
LogFilter: smithy_client_1.expectString,
|
|
1719
|
-
LogGroup: smithy_client_1.expectString,
|
|
1720
|
-
LogText: smithy_client_1.expectString,
|
|
1721
|
-
MetricName: smithy_client_1.expectString,
|
|
1722
|
-
MetricNamespace: smithy_client_1.expectString,
|
|
1723
|
-
RdsEventCategories: smithy_client_1.expectString,
|
|
1724
|
-
RdsEventMessage: smithy_client_1.expectString,
|
|
1725
|
-
S3EventName: smithy_client_1.expectString,
|
|
1726
|
-
SourceARN: smithy_client_1.expectString,
|
|
1727
|
-
SourceType: smithy_client_1.expectString,
|
|
1728
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1729
|
-
StatesArn: smithy_client_1.expectString,
|
|
1730
|
-
StatesExecutionArn: smithy_client_1.expectString,
|
|
1731
|
-
StatesInput: smithy_client_1.expectString,
|
|
1732
|
-
StatesStatus: smithy_client_1.expectString,
|
|
1733
|
-
Unit: smithy_client_1.expectString,
|
|
1734
|
-
Value: smithy_client_1.limitedParseDouble,
|
|
1735
|
-
XRayErrorPercent: smithy_client_1.expectInt32,
|
|
1736
|
-
XRayFaultPercent: smithy_client_1.expectInt32,
|
|
1737
|
-
XRayNodeName: smithy_client_1.expectString,
|
|
1738
|
-
XRayNodeType: smithy_client_1.expectString,
|
|
1739
|
-
XRayRequestAverageLatency: smithy_client_1.expectLong,
|
|
1740
|
-
XRayRequestCount: smithy_client_1.expectInt32,
|
|
1741
|
-
XRayThrottlePercent: smithy_client_1.expectInt32,
|
|
1742
|
-
});
|
|
1743
|
-
};
|
|
1744
|
-
const de_ObservationList = (output, context) => {
|
|
1745
|
-
const retVal = (output || [])
|
|
1746
|
-
.filter((e) => e != null)
|
|
1747
|
-
.map((entry) => {
|
|
1748
|
-
return de_Observation(entry, context);
|
|
1749
|
-
});
|
|
1750
|
-
return retVal;
|
|
1751
|
-
};
|
|
1752
|
-
const de_Problem = (output, context) => {
|
|
1753
|
-
return (0, smithy_client_1.take)(output, {
|
|
1754
|
-
AccountId: smithy_client_1.expectString,
|
|
1755
|
-
AffectedResource: smithy_client_1.expectString,
|
|
1756
|
-
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1757
|
-
Feedback: smithy_client_1._json,
|
|
1758
|
-
Id: smithy_client_1.expectString,
|
|
1759
|
-
Insights: smithy_client_1.expectString,
|
|
1760
|
-
LastRecurrenceTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1761
|
-
RecurringCount: smithy_client_1.expectLong,
|
|
1762
|
-
ResolutionMethod: smithy_client_1.expectString,
|
|
1763
|
-
ResourceGroupName: smithy_client_1.expectString,
|
|
1764
|
-
SeverityLevel: smithy_client_1.expectString,
|
|
1765
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1766
|
-
Status: smithy_client_1.expectString,
|
|
1767
|
-
Title: smithy_client_1.expectString,
|
|
1768
|
-
Visibility: smithy_client_1.expectString,
|
|
1769
|
-
});
|
|
1770
|
-
};
|
|
1771
|
-
const de_ProblemList = (output, context) => {
|
|
1772
|
-
const retVal = (output || [])
|
|
1773
|
-
.filter((e) => e != null)
|
|
1774
|
-
.map((entry) => {
|
|
1775
|
-
return de_Problem(entry, context);
|
|
1776
|
-
});
|
|
1777
|
-
return retVal;
|
|
1778
|
-
};
|
|
1779
|
-
const de_RelatedObservations = (output, context) => {
|
|
1780
|
-
return (0, smithy_client_1.take)(output, {
|
|
1781
|
-
ObservationList: (_) => de_ObservationList(_, context),
|
|
1782
|
-
});
|
|
1783
|
-
};
|
|
1784
|
-
const deserializeMetadata = (output) => ({
|
|
1785
|
-
httpStatusCode: output.statusCode,
|
|
1786
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1787
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1788
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1789
|
-
});
|
|
1790
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1791
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationInsightsServiceException_1.ApplicationInsightsServiceException);
|
|
1792
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1793
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1794
|
-
const contents = {
|
|
1795
|
-
protocol,
|
|
1796
|
-
hostname,
|
|
1797
|
-
port,
|
|
1798
|
-
method: "POST",
|
|
1799
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1800
|
-
headers,
|
|
1801
|
-
};
|
|
1802
|
-
if (resolvedHostname !== undefined) {
|
|
1803
|
-
contents.hostname = resolvedHostname;
|
|
1804
|
-
}
|
|
1805
|
-
if (body !== undefined) {
|
|
1806
|
-
contents.body = body;
|
|
1807
|
-
}
|
|
1808
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1809
|
-
};
|
|
1810
|
-
function sharedHeaders(operation) {
|
|
1811
|
-
return {
|
|
1812
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1813
|
-
"x-amz-target": `EC2WindowsBarleyService.${operation}`,
|
|
1814
|
-
};
|
|
1815
|
-
}
|
|
1816
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1817
|
-
if (encoded.length) {
|
|
1818
|
-
return JSON.parse(encoded);
|
|
1819
|
-
}
|
|
1820
|
-
return {};
|
|
1821
|
-
});
|
|
1822
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1823
|
-
const value = await parseBody(errorBody, context);
|
|
1824
|
-
value.message = value.message ?? value.Message;
|
|
1825
|
-
return value;
|
|
1826
|
-
};
|
|
1827
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1828
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1829
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1830
|
-
let cleanValue = rawValue;
|
|
1831
|
-
if (typeof cleanValue === "number") {
|
|
1832
|
-
cleanValue = cleanValue.toString();
|
|
1833
|
-
}
|
|
1834
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1835
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1836
|
-
}
|
|
1837
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1838
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1839
|
-
}
|
|
1840
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1841
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1842
|
-
}
|
|
1843
|
-
return cleanValue;
|
|
1844
|
-
};
|
|
1845
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1846
|
-
if (headerKey !== undefined) {
|
|
1847
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1848
|
-
}
|
|
1849
|
-
if (data.code !== undefined) {
|
|
1850
|
-
return sanitizeErrorCode(data.code);
|
|
1851
|
-
}
|
|
1852
|
-
if (data["__type"] !== undefined) {
|
|
1853
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1854
|
-
}
|
|
1855
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|