@aws-sdk/client-rum 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/RUM.js +1 -45
- package/dist-cjs/RUMClient.js +1 -43
- package/dist-cjs/commands/BatchCreateRumMetricDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/BatchDeleteRumMetricDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/BatchGetRumMetricDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/CreateAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeleteAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/DeleteRumMetricsDestinationCommand.js +1 -28
- package/dist-cjs/commands/GetAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/GetAppMonitorDataCommand.js +1 -28
- package/dist-cjs/commands/ListAppMonitorsCommand.js +1 -28
- package/dist-cjs/commands/ListRumMetricsDestinationsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutRumEventsCommand.js +1 -28
- package/dist-cjs/commands/PutRumMetricsDestinationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAppMonitorCommand.js +1 -28
- package/dist-cjs/commands/UpdateRumMetricDefinitionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -20
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1937 -11
- package/dist-cjs/models/RUMServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -125
- package/dist-cjs/pagination/BatchGetRumMetricDefinitionsPaginator.js +1 -7
- package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAppMonitorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRumMetricsDestinationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1264
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1264 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateRumMetricDefinitionCommand = exports.de_UpdateAppMonitorCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutRumMetricsDestinationCommand = exports.de_PutRumEventsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRumMetricsDestinationsCommand = exports.de_ListAppMonitorsCommand = exports.de_GetAppMonitorDataCommand = exports.de_GetAppMonitorCommand = exports.de_DeleteRumMetricsDestinationCommand = exports.de_DeleteAppMonitorCommand = exports.de_CreateAppMonitorCommand = exports.de_BatchGetRumMetricDefinitionsCommand = exports.de_BatchDeleteRumMetricDefinitionsCommand = exports.de_BatchCreateRumMetricDefinitionsCommand = exports.se_UpdateRumMetricDefinitionCommand = exports.se_UpdateAppMonitorCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutRumMetricsDestinationCommand = exports.se_PutRumEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRumMetricsDestinationsCommand = exports.se_ListAppMonitorsCommand = exports.se_GetAppMonitorDataCommand = exports.se_GetAppMonitorCommand = exports.se_DeleteRumMetricsDestinationCommand = exports.se_DeleteAppMonitorCommand = exports.se_CreateAppMonitorCommand = exports.se_BatchGetRumMetricDefinitionsCommand = exports.se_BatchDeleteRumMetricDefinitionsCommand = exports.se_BatchCreateRumMetricDefinitionsCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const RUMServiceException_1 = require("../models/RUMServiceException");
|
|
9
|
-
const se_BatchCreateRumMetricDefinitionsCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
"content-type": "application/json",
|
|
13
|
-
};
|
|
14
|
-
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
15
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
Destination: [],
|
|
19
|
-
DestinationArn: [],
|
|
20
|
-
MetricDefinitions: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
-
}));
|
|
22
|
-
b.m("POST").h(headers).b(body);
|
|
23
|
-
return b.build();
|
|
24
|
-
};
|
|
25
|
-
exports.se_BatchCreateRumMetricDefinitionsCommand = se_BatchCreateRumMetricDefinitionsCommand;
|
|
26
|
-
const se_BatchDeleteRumMetricDefinitionsCommand = async (input, context) => {
|
|
27
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
28
|
-
const headers = {};
|
|
29
|
-
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
30
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
31
|
-
const query = (0, smithy_client_1.map)({
|
|
32
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_D], `Destination`)],
|
|
33
|
-
[_dA]: [, input[_DA]],
|
|
34
|
-
[_mDI]: [
|
|
35
|
-
(0, smithy_client_1.expectNonNull)(input.MetricDefinitionIds, `MetricDefinitionIds`) != null,
|
|
36
|
-
() => (input[_MDI] || []).map((_entry) => _entry),
|
|
37
|
-
],
|
|
38
|
-
});
|
|
39
|
-
let body;
|
|
40
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
exports.se_BatchDeleteRumMetricDefinitionsCommand = se_BatchDeleteRumMetricDefinitionsCommand;
|
|
44
|
-
const se_BatchGetRumMetricDefinitionsCommand = async (input, context) => {
|
|
45
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
46
|
-
const headers = {};
|
|
47
|
-
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
48
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
49
|
-
const query = (0, smithy_client_1.map)({
|
|
50
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_D], `Destination`)],
|
|
51
|
-
[_dA]: [, input[_DA]],
|
|
52
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
53
|
-
[_nT]: [, input[_NT]],
|
|
54
|
-
});
|
|
55
|
-
let body;
|
|
56
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
exports.se_BatchGetRumMetricDefinitionsCommand = se_BatchGetRumMetricDefinitionsCommand;
|
|
60
|
-
const se_CreateAppMonitorCommand = async (input, context) => {
|
|
61
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
62
|
-
const headers = {
|
|
63
|
-
"content-type": "application/json",
|
|
64
|
-
};
|
|
65
|
-
b.bp("/appmonitor");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
|
-
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
69
|
-
CustomEvents: (_) => (0, smithy_client_1._json)(_),
|
|
70
|
-
CwLogEnabled: [],
|
|
71
|
-
Domain: [],
|
|
72
|
-
Name: [],
|
|
73
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
74
|
-
}));
|
|
75
|
-
b.m("POST").h(headers).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
exports.se_CreateAppMonitorCommand = se_CreateAppMonitorCommand;
|
|
79
|
-
const se_DeleteAppMonitorCommand = async (input, context) => {
|
|
80
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
81
|
-
const headers = {};
|
|
82
|
-
b.bp("/appmonitor/{Name}");
|
|
83
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
84
|
-
let body;
|
|
85
|
-
b.m("DELETE").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
exports.se_DeleteAppMonitorCommand = se_DeleteAppMonitorCommand;
|
|
89
|
-
const se_DeleteRumMetricsDestinationCommand = async (input, context) => {
|
|
90
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
|
-
const headers = {};
|
|
92
|
-
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
93
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
94
|
-
const query = (0, smithy_client_1.map)({
|
|
95
|
-
[_d]: [, (0, smithy_client_1.expectNonNull)(input[_D], `Destination`)],
|
|
96
|
-
[_dA]: [, input[_DA]],
|
|
97
|
-
});
|
|
98
|
-
let body;
|
|
99
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
exports.se_DeleteRumMetricsDestinationCommand = se_DeleteRumMetricsDestinationCommand;
|
|
103
|
-
const se_GetAppMonitorCommand = async (input, context) => {
|
|
104
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
|
-
const headers = {};
|
|
106
|
-
b.bp("/appmonitor/{Name}");
|
|
107
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
108
|
-
let body;
|
|
109
|
-
b.m("GET").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
exports.se_GetAppMonitorCommand = se_GetAppMonitorCommand;
|
|
113
|
-
const se_GetAppMonitorDataCommand = async (input, context) => {
|
|
114
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
115
|
-
const headers = {
|
|
116
|
-
"content-type": "application/json",
|
|
117
|
-
};
|
|
118
|
-
b.bp("/appmonitor/{Name}/data");
|
|
119
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
120
|
-
let body;
|
|
121
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
122
|
-
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
123
|
-
MaxResults: [],
|
|
124
|
-
NextToken: [],
|
|
125
|
-
TimeRange: (_) => (0, smithy_client_1._json)(_),
|
|
126
|
-
}));
|
|
127
|
-
b.m("POST").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
exports.se_GetAppMonitorDataCommand = se_GetAppMonitorDataCommand;
|
|
131
|
-
const se_ListAppMonitorsCommand = async (input, context) => {
|
|
132
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
133
|
-
const headers = {};
|
|
134
|
-
b.bp("/appmonitors");
|
|
135
|
-
const query = (0, smithy_client_1.map)({
|
|
136
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
137
|
-
[_nT]: [, input[_NT]],
|
|
138
|
-
});
|
|
139
|
-
let body;
|
|
140
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
exports.se_ListAppMonitorsCommand = se_ListAppMonitorsCommand;
|
|
144
|
-
const se_ListRumMetricsDestinationsCommand = async (input, context) => {
|
|
145
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
148
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
149
|
-
const query = (0, smithy_client_1.map)({
|
|
150
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
151
|
-
[_nT]: [, input[_NT]],
|
|
152
|
-
});
|
|
153
|
-
let body;
|
|
154
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
155
|
-
return b.build();
|
|
156
|
-
};
|
|
157
|
-
exports.se_ListRumMetricsDestinationsCommand = se_ListRumMetricsDestinationsCommand;
|
|
158
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
159
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
160
|
-
const headers = {};
|
|
161
|
-
b.bp("/tags/{ResourceArn}");
|
|
162
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
163
|
-
let body;
|
|
164
|
-
b.m("GET").h(headers).b(body);
|
|
165
|
-
return b.build();
|
|
166
|
-
};
|
|
167
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
168
|
-
const se_PutRumEventsCommand = async (input, context) => {
|
|
169
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
170
|
-
const headers = {
|
|
171
|
-
"content-type": "application/json",
|
|
172
|
-
};
|
|
173
|
-
b.bp("/appmonitors/{Id}");
|
|
174
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
175
|
-
let body;
|
|
176
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
177
|
-
AppMonitorDetails: (_) => (0, smithy_client_1._json)(_),
|
|
178
|
-
BatchId: [],
|
|
179
|
-
RumEvents: (_) => se_RumEventList(_, context),
|
|
180
|
-
UserDetails: (_) => (0, smithy_client_1._json)(_),
|
|
181
|
-
}));
|
|
182
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
183
|
-
if (context.disableHostPrefix !== true) {
|
|
184
|
-
resolvedHostname = "dataplane." + resolvedHostname;
|
|
185
|
-
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
186
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
b.hn(resolvedHostname);
|
|
190
|
-
b.m("POST").h(headers).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
exports.se_PutRumEventsCommand = se_PutRumEventsCommand;
|
|
194
|
-
const se_PutRumMetricsDestinationCommand = async (input, context) => {
|
|
195
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
196
|
-
const headers = {
|
|
197
|
-
"content-type": "application/json",
|
|
198
|
-
};
|
|
199
|
-
b.bp("/rummetrics/{AppMonitorName}/metricsdestination");
|
|
200
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
203
|
-
Destination: [],
|
|
204
|
-
DestinationArn: [],
|
|
205
|
-
IamRoleArn: [],
|
|
206
|
-
}));
|
|
207
|
-
b.m("POST").h(headers).b(body);
|
|
208
|
-
return b.build();
|
|
209
|
-
};
|
|
210
|
-
exports.se_PutRumMetricsDestinationCommand = se_PutRumMetricsDestinationCommand;
|
|
211
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
212
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
213
|
-
const headers = {
|
|
214
|
-
"content-type": "application/json",
|
|
215
|
-
};
|
|
216
|
-
b.bp("/tags/{ResourceArn}");
|
|
217
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
220
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
221
|
-
}));
|
|
222
|
-
b.m("POST").h(headers).b(body);
|
|
223
|
-
return b.build();
|
|
224
|
-
};
|
|
225
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
226
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
227
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
228
|
-
const headers = {};
|
|
229
|
-
b.bp("/tags/{ResourceArn}");
|
|
230
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
231
|
-
const query = (0, smithy_client_1.map)({
|
|
232
|
-
[_tK]: [
|
|
233
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
234
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
235
|
-
],
|
|
236
|
-
});
|
|
237
|
-
let body;
|
|
238
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
239
|
-
return b.build();
|
|
240
|
-
};
|
|
241
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
242
|
-
const se_UpdateAppMonitorCommand = async (input, context) => {
|
|
243
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
|
-
const headers = {
|
|
245
|
-
"content-type": "application/json",
|
|
246
|
-
};
|
|
247
|
-
b.bp("/appmonitor/{Name}");
|
|
248
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
251
|
-
AppMonitorConfiguration: (_) => se_AppMonitorConfiguration(_, context),
|
|
252
|
-
CustomEvents: (_) => (0, smithy_client_1._json)(_),
|
|
253
|
-
CwLogEnabled: [],
|
|
254
|
-
Domain: [],
|
|
255
|
-
}));
|
|
256
|
-
b.m("PATCH").h(headers).b(body);
|
|
257
|
-
return b.build();
|
|
258
|
-
};
|
|
259
|
-
exports.se_UpdateAppMonitorCommand = se_UpdateAppMonitorCommand;
|
|
260
|
-
const se_UpdateRumMetricDefinitionCommand = async (input, context) => {
|
|
261
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
262
|
-
const headers = {
|
|
263
|
-
"content-type": "application/json",
|
|
264
|
-
};
|
|
265
|
-
b.bp("/rummetrics/{AppMonitorName}/metrics");
|
|
266
|
-
b.p("AppMonitorName", () => input.AppMonitorName, "{AppMonitorName}", false);
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
269
|
-
Destination: [],
|
|
270
|
-
DestinationArn: [],
|
|
271
|
-
MetricDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
272
|
-
MetricDefinitionId: [],
|
|
273
|
-
}));
|
|
274
|
-
b.m("PATCH").h(headers).b(body);
|
|
275
|
-
return b.build();
|
|
276
|
-
};
|
|
277
|
-
exports.se_UpdateRumMetricDefinitionCommand = se_UpdateRumMetricDefinitionCommand;
|
|
278
|
-
const de_BatchCreateRumMetricDefinitionsCommand = async (output, context) => {
|
|
279
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
280
|
-
return de_BatchCreateRumMetricDefinitionsCommandError(output, context);
|
|
281
|
-
}
|
|
282
|
-
const contents = (0, smithy_client_1.map)({
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
});
|
|
285
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
286
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
287
|
-
Errors: smithy_client_1._json,
|
|
288
|
-
MetricDefinitions: smithy_client_1._json,
|
|
289
|
-
});
|
|
290
|
-
Object.assign(contents, doc);
|
|
291
|
-
return contents;
|
|
292
|
-
};
|
|
293
|
-
exports.de_BatchCreateRumMetricDefinitionsCommand = de_BatchCreateRumMetricDefinitionsCommand;
|
|
294
|
-
const de_BatchCreateRumMetricDefinitionsCommandError = async (output, context) => {
|
|
295
|
-
const parsedOutput = {
|
|
296
|
-
...output,
|
|
297
|
-
body: await parseErrorBody(output.body, context),
|
|
298
|
-
};
|
|
299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
|
-
switch (errorCode) {
|
|
301
|
-
case "AccessDeniedException":
|
|
302
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
303
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
304
|
-
case "ConflictException":
|
|
305
|
-
case "com.amazonaws.rum#ConflictException":
|
|
306
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
307
|
-
case "InternalServerException":
|
|
308
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
310
|
-
case "ResourceNotFoundException":
|
|
311
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
313
|
-
case "ServiceQuotaExceededException":
|
|
314
|
-
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
315
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ThrottlingException":
|
|
317
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
318
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ValidationException":
|
|
320
|
-
case "com.amazonaws.rum#ValidationException":
|
|
321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
const de_BatchDeleteRumMetricDefinitionsCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return de_BatchDeleteRumMetricDefinitionsCommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const contents = (0, smithy_client_1.map)({
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
});
|
|
338
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
339
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
340
|
-
Errors: smithy_client_1._json,
|
|
341
|
-
MetricDefinitionIds: smithy_client_1._json,
|
|
342
|
-
});
|
|
343
|
-
Object.assign(contents, doc);
|
|
344
|
-
return contents;
|
|
345
|
-
};
|
|
346
|
-
exports.de_BatchDeleteRumMetricDefinitionsCommand = de_BatchDeleteRumMetricDefinitionsCommand;
|
|
347
|
-
const de_BatchDeleteRumMetricDefinitionsCommandError = async (output, context) => {
|
|
348
|
-
const parsedOutput = {
|
|
349
|
-
...output,
|
|
350
|
-
body: await parseErrorBody(output.body, context),
|
|
351
|
-
};
|
|
352
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
353
|
-
switch (errorCode) {
|
|
354
|
-
case "AccessDeniedException":
|
|
355
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
356
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
357
|
-
case "ConflictException":
|
|
358
|
-
case "com.amazonaws.rum#ConflictException":
|
|
359
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
360
|
-
case "InternalServerException":
|
|
361
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ResourceNotFoundException":
|
|
364
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
365
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ThrottlingException":
|
|
367
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
368
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
369
|
-
case "ValidationException":
|
|
370
|
-
case "com.amazonaws.rum#ValidationException":
|
|
371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
|
-
const de_BatchGetRumMetricDefinitionsCommand = async (output, context) => {
|
|
382
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
383
|
-
return de_BatchGetRumMetricDefinitionsCommandError(output, context);
|
|
384
|
-
}
|
|
385
|
-
const contents = (0, smithy_client_1.map)({
|
|
386
|
-
$metadata: deserializeMetadata(output),
|
|
387
|
-
});
|
|
388
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
389
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
390
|
-
MetricDefinitions: smithy_client_1._json,
|
|
391
|
-
NextToken: smithy_client_1.expectString,
|
|
392
|
-
});
|
|
393
|
-
Object.assign(contents, doc);
|
|
394
|
-
return contents;
|
|
395
|
-
};
|
|
396
|
-
exports.de_BatchGetRumMetricDefinitionsCommand = de_BatchGetRumMetricDefinitionsCommand;
|
|
397
|
-
const de_BatchGetRumMetricDefinitionsCommandError = async (output, context) => {
|
|
398
|
-
const parsedOutput = {
|
|
399
|
-
...output,
|
|
400
|
-
body: await parseErrorBody(output.body, context),
|
|
401
|
-
};
|
|
402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
403
|
-
switch (errorCode) {
|
|
404
|
-
case "AccessDeniedException":
|
|
405
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
406
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
407
|
-
case "InternalServerException":
|
|
408
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
409
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ResourceNotFoundException":
|
|
411
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
412
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
413
|
-
case "ValidationException":
|
|
414
|
-
case "com.amazonaws.rum#ValidationException":
|
|
415
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
416
|
-
default:
|
|
417
|
-
const parsedBody = parsedOutput.body;
|
|
418
|
-
return throwDefaultError({
|
|
419
|
-
output,
|
|
420
|
-
parsedBody,
|
|
421
|
-
errorCode,
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
const de_CreateAppMonitorCommand = async (output, context) => {
|
|
426
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
427
|
-
return de_CreateAppMonitorCommandError(output, context);
|
|
428
|
-
}
|
|
429
|
-
const contents = (0, smithy_client_1.map)({
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
});
|
|
432
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
433
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
434
|
-
Id: smithy_client_1.expectString,
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
return contents;
|
|
438
|
-
};
|
|
439
|
-
exports.de_CreateAppMonitorCommand = de_CreateAppMonitorCommand;
|
|
440
|
-
const de_CreateAppMonitorCommandError = async (output, context) => {
|
|
441
|
-
const parsedOutput = {
|
|
442
|
-
...output,
|
|
443
|
-
body: await parseErrorBody(output.body, context),
|
|
444
|
-
};
|
|
445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
|
-
switch (errorCode) {
|
|
447
|
-
case "AccessDeniedException":
|
|
448
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
449
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
450
|
-
case "ConflictException":
|
|
451
|
-
case "com.amazonaws.rum#ConflictException":
|
|
452
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
453
|
-
case "InternalServerException":
|
|
454
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ResourceNotFoundException":
|
|
457
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
458
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ServiceQuotaExceededException":
|
|
460
|
-
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
461
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
462
|
-
case "ThrottlingException":
|
|
463
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
464
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
465
|
-
case "ValidationException":
|
|
466
|
-
case "com.amazonaws.rum#ValidationException":
|
|
467
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
468
|
-
default:
|
|
469
|
-
const parsedBody = parsedOutput.body;
|
|
470
|
-
return throwDefaultError({
|
|
471
|
-
output,
|
|
472
|
-
parsedBody,
|
|
473
|
-
errorCode,
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
const de_DeleteAppMonitorCommand = async (output, context) => {
|
|
478
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
479
|
-
return de_DeleteAppMonitorCommandError(output, context);
|
|
480
|
-
}
|
|
481
|
-
const contents = (0, smithy_client_1.map)({
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
});
|
|
484
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
485
|
-
return contents;
|
|
486
|
-
};
|
|
487
|
-
exports.de_DeleteAppMonitorCommand = de_DeleteAppMonitorCommand;
|
|
488
|
-
const de_DeleteAppMonitorCommandError = async (output, context) => {
|
|
489
|
-
const parsedOutput = {
|
|
490
|
-
...output,
|
|
491
|
-
body: await parseErrorBody(output.body, context),
|
|
492
|
-
};
|
|
493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
|
-
switch (errorCode) {
|
|
495
|
-
case "AccessDeniedException":
|
|
496
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
497
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ConflictException":
|
|
499
|
-
case "com.amazonaws.rum#ConflictException":
|
|
500
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
501
|
-
case "InternalServerException":
|
|
502
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
503
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ResourceNotFoundException":
|
|
505
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ThrottlingException":
|
|
508
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
509
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ValidationException":
|
|
511
|
-
case "com.amazonaws.rum#ValidationException":
|
|
512
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
513
|
-
default:
|
|
514
|
-
const parsedBody = parsedOutput.body;
|
|
515
|
-
return throwDefaultError({
|
|
516
|
-
output,
|
|
517
|
-
parsedBody,
|
|
518
|
-
errorCode,
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
const de_DeleteRumMetricsDestinationCommand = async (output, context) => {
|
|
523
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
524
|
-
return de_DeleteRumMetricsDestinationCommandError(output, context);
|
|
525
|
-
}
|
|
526
|
-
const contents = (0, smithy_client_1.map)({
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
});
|
|
529
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
530
|
-
return contents;
|
|
531
|
-
};
|
|
532
|
-
exports.de_DeleteRumMetricsDestinationCommand = de_DeleteRumMetricsDestinationCommand;
|
|
533
|
-
const de_DeleteRumMetricsDestinationCommandError = async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context),
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "AccessDeniedException":
|
|
541
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ConflictException":
|
|
544
|
-
case "com.amazonaws.rum#ConflictException":
|
|
545
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
546
|
-
case "InternalServerException":
|
|
547
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
549
|
-
case "ResourceNotFoundException":
|
|
550
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
552
|
-
case "ThrottlingException":
|
|
553
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ValidationException":
|
|
556
|
-
case "com.amazonaws.rum#ValidationException":
|
|
557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
558
|
-
default:
|
|
559
|
-
const parsedBody = parsedOutput.body;
|
|
560
|
-
return throwDefaultError({
|
|
561
|
-
output,
|
|
562
|
-
parsedBody,
|
|
563
|
-
errorCode,
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
const de_GetAppMonitorCommand = async (output, context) => {
|
|
568
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
569
|
-
return de_GetAppMonitorCommandError(output, context);
|
|
570
|
-
}
|
|
571
|
-
const contents = (0, smithy_client_1.map)({
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
});
|
|
574
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
575
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
576
|
-
AppMonitor: (_) => de_AppMonitor(_, context),
|
|
577
|
-
});
|
|
578
|
-
Object.assign(contents, doc);
|
|
579
|
-
return contents;
|
|
580
|
-
};
|
|
581
|
-
exports.de_GetAppMonitorCommand = de_GetAppMonitorCommand;
|
|
582
|
-
const de_GetAppMonitorCommandError = async (output, context) => {
|
|
583
|
-
const parsedOutput = {
|
|
584
|
-
...output,
|
|
585
|
-
body: await parseErrorBody(output.body, context),
|
|
586
|
-
};
|
|
587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
-
switch (errorCode) {
|
|
589
|
-
case "AccessDeniedException":
|
|
590
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
592
|
-
case "InternalServerException":
|
|
593
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
594
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
595
|
-
case "ResourceNotFoundException":
|
|
596
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
598
|
-
case "ThrottlingException":
|
|
599
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
600
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
601
|
-
case "ValidationException":
|
|
602
|
-
case "com.amazonaws.rum#ValidationException":
|
|
603
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
604
|
-
default:
|
|
605
|
-
const parsedBody = parsedOutput.body;
|
|
606
|
-
return throwDefaultError({
|
|
607
|
-
output,
|
|
608
|
-
parsedBody,
|
|
609
|
-
errorCode,
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
const de_GetAppMonitorDataCommand = async (output, context) => {
|
|
614
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
615
|
-
return de_GetAppMonitorDataCommandError(output, context);
|
|
616
|
-
}
|
|
617
|
-
const contents = (0, smithy_client_1.map)({
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
});
|
|
620
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
621
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
622
|
-
Events: smithy_client_1._json,
|
|
623
|
-
NextToken: smithy_client_1.expectString,
|
|
624
|
-
});
|
|
625
|
-
Object.assign(contents, doc);
|
|
626
|
-
return contents;
|
|
627
|
-
};
|
|
628
|
-
exports.de_GetAppMonitorDataCommand = de_GetAppMonitorDataCommand;
|
|
629
|
-
const de_GetAppMonitorDataCommandError = 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 "AccessDeniedException":
|
|
637
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
638
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
639
|
-
case "InternalServerException":
|
|
640
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
641
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ResourceNotFoundException":
|
|
643
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
644
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
645
|
-
case "ThrottlingException":
|
|
646
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
647
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ValidationException":
|
|
649
|
-
case "com.amazonaws.rum#ValidationException":
|
|
650
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
651
|
-
default:
|
|
652
|
-
const parsedBody = parsedOutput.body;
|
|
653
|
-
return throwDefaultError({
|
|
654
|
-
output,
|
|
655
|
-
parsedBody,
|
|
656
|
-
errorCode,
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
const de_ListAppMonitorsCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return de_ListAppMonitorsCommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const contents = (0, smithy_client_1.map)({
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
});
|
|
667
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
668
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
669
|
-
AppMonitorSummaries: smithy_client_1._json,
|
|
670
|
-
NextToken: smithy_client_1.expectString,
|
|
671
|
-
});
|
|
672
|
-
Object.assign(contents, doc);
|
|
673
|
-
return contents;
|
|
674
|
-
};
|
|
675
|
-
exports.de_ListAppMonitorsCommand = de_ListAppMonitorsCommand;
|
|
676
|
-
const de_ListAppMonitorsCommandError = async (output, context) => {
|
|
677
|
-
const parsedOutput = {
|
|
678
|
-
...output,
|
|
679
|
-
body: await parseErrorBody(output.body, context),
|
|
680
|
-
};
|
|
681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
|
-
switch (errorCode) {
|
|
683
|
-
case "AccessDeniedException":
|
|
684
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
685
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
686
|
-
case "InternalServerException":
|
|
687
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
688
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
689
|
-
case "ThrottlingException":
|
|
690
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
691
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
692
|
-
case "ValidationException":
|
|
693
|
-
case "com.amazonaws.rum#ValidationException":
|
|
694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
|
-
default:
|
|
696
|
-
const parsedBody = parsedOutput.body;
|
|
697
|
-
return throwDefaultError({
|
|
698
|
-
output,
|
|
699
|
-
parsedBody,
|
|
700
|
-
errorCode,
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
const de_ListRumMetricsDestinationsCommand = async (output, context) => {
|
|
705
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
|
-
return de_ListRumMetricsDestinationsCommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const contents = (0, smithy_client_1.map)({
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
});
|
|
711
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
712
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
713
|
-
Destinations: smithy_client_1._json,
|
|
714
|
-
NextToken: smithy_client_1.expectString,
|
|
715
|
-
});
|
|
716
|
-
Object.assign(contents, doc);
|
|
717
|
-
return contents;
|
|
718
|
-
};
|
|
719
|
-
exports.de_ListRumMetricsDestinationsCommand = de_ListRumMetricsDestinationsCommand;
|
|
720
|
-
const de_ListRumMetricsDestinationsCommandError = async (output, context) => {
|
|
721
|
-
const parsedOutput = {
|
|
722
|
-
...output,
|
|
723
|
-
body: await parseErrorBody(output.body, context),
|
|
724
|
-
};
|
|
725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
726
|
-
switch (errorCode) {
|
|
727
|
-
case "AccessDeniedException":
|
|
728
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
729
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
730
|
-
case "InternalServerException":
|
|
731
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
732
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
733
|
-
case "ResourceNotFoundException":
|
|
734
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
735
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
736
|
-
case "ValidationException":
|
|
737
|
-
case "com.amazonaws.rum#ValidationException":
|
|
738
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const contents = (0, smithy_client_1.map)({
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
});
|
|
755
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
757
|
-
ResourceArn: smithy_client_1.expectString,
|
|
758
|
-
Tags: smithy_client_1._json,
|
|
759
|
-
});
|
|
760
|
-
Object.assign(contents, doc);
|
|
761
|
-
return contents;
|
|
762
|
-
};
|
|
763
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
764
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
765
|
-
const parsedOutput = {
|
|
766
|
-
...output,
|
|
767
|
-
body: await parseErrorBody(output.body, context),
|
|
768
|
-
};
|
|
769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
switch (errorCode) {
|
|
771
|
-
case "InternalServerException":
|
|
772
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
773
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
774
|
-
case "ResourceNotFoundException":
|
|
775
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
776
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
777
|
-
case "ValidationException":
|
|
778
|
-
case "com.amazonaws.rum#ValidationException":
|
|
779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
|
-
default:
|
|
781
|
-
const parsedBody = parsedOutput.body;
|
|
782
|
-
return throwDefaultError({
|
|
783
|
-
output,
|
|
784
|
-
parsedBody,
|
|
785
|
-
errorCode,
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
789
|
-
const de_PutRumEventsCommand = async (output, context) => {
|
|
790
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
-
return de_PutRumEventsCommandError(output, context);
|
|
792
|
-
}
|
|
793
|
-
const contents = (0, smithy_client_1.map)({
|
|
794
|
-
$metadata: deserializeMetadata(output),
|
|
795
|
-
});
|
|
796
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
797
|
-
return contents;
|
|
798
|
-
};
|
|
799
|
-
exports.de_PutRumEventsCommand = de_PutRumEventsCommand;
|
|
800
|
-
const de_PutRumEventsCommandError = async (output, context) => {
|
|
801
|
-
const parsedOutput = {
|
|
802
|
-
...output,
|
|
803
|
-
body: await parseErrorBody(output.body, context),
|
|
804
|
-
};
|
|
805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
|
-
switch (errorCode) {
|
|
807
|
-
case "AccessDeniedException":
|
|
808
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
809
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
810
|
-
case "InternalServerException":
|
|
811
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
812
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ResourceNotFoundException":
|
|
814
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
815
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ThrottlingException":
|
|
817
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
818
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
819
|
-
case "ValidationException":
|
|
820
|
-
case "com.amazonaws.rum#ValidationException":
|
|
821
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
822
|
-
default:
|
|
823
|
-
const parsedBody = parsedOutput.body;
|
|
824
|
-
return throwDefaultError({
|
|
825
|
-
output,
|
|
826
|
-
parsedBody,
|
|
827
|
-
errorCode,
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
const de_PutRumMetricsDestinationCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return de_PutRumMetricsDestinationCommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const contents = (0, smithy_client_1.map)({
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
});
|
|
838
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
839
|
-
return contents;
|
|
840
|
-
};
|
|
841
|
-
exports.de_PutRumMetricsDestinationCommand = de_PutRumMetricsDestinationCommand;
|
|
842
|
-
const de_PutRumMetricsDestinationCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "AccessDeniedException":
|
|
850
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
851
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ConflictException":
|
|
853
|
-
case "com.amazonaws.rum#ConflictException":
|
|
854
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
855
|
-
case "InternalServerException":
|
|
856
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ResourceNotFoundException":
|
|
859
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ThrottlingException":
|
|
862
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
863
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ValidationException":
|
|
865
|
-
case "com.amazonaws.rum#ValidationException":
|
|
866
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
867
|
-
default:
|
|
868
|
-
const parsedBody = parsedOutput.body;
|
|
869
|
-
return throwDefaultError({
|
|
870
|
-
output,
|
|
871
|
-
parsedBody,
|
|
872
|
-
errorCode,
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
};
|
|
876
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
877
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
|
-
return de_TagResourceCommandError(output, context);
|
|
879
|
-
}
|
|
880
|
-
const contents = (0, smithy_client_1.map)({
|
|
881
|
-
$metadata: deserializeMetadata(output),
|
|
882
|
-
});
|
|
883
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
884
|
-
return contents;
|
|
885
|
-
};
|
|
886
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
887
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
888
|
-
const parsedOutput = {
|
|
889
|
-
...output,
|
|
890
|
-
body: await parseErrorBody(output.body, context),
|
|
891
|
-
};
|
|
892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
|
-
switch (errorCode) {
|
|
894
|
-
case "InternalServerException":
|
|
895
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
896
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
897
|
-
case "ResourceNotFoundException":
|
|
898
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ValidationException":
|
|
901
|
-
case "com.amazonaws.rum#ValidationException":
|
|
902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
913
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
914
|
-
return de_UntagResourceCommandError(output, context);
|
|
915
|
-
}
|
|
916
|
-
const contents = (0, smithy_client_1.map)({
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
});
|
|
919
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
920
|
-
return contents;
|
|
921
|
-
};
|
|
922
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
923
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context),
|
|
927
|
-
};
|
|
928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
-
switch (errorCode) {
|
|
930
|
-
case "InternalServerException":
|
|
931
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
932
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ResourceNotFoundException":
|
|
934
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ValidationException":
|
|
937
|
-
case "com.amazonaws.rum#ValidationException":
|
|
938
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
939
|
-
default:
|
|
940
|
-
const parsedBody = parsedOutput.body;
|
|
941
|
-
return throwDefaultError({
|
|
942
|
-
output,
|
|
943
|
-
parsedBody,
|
|
944
|
-
errorCode,
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
};
|
|
948
|
-
const de_UpdateAppMonitorCommand = async (output, context) => {
|
|
949
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return de_UpdateAppMonitorCommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const contents = (0, smithy_client_1.map)({
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
});
|
|
955
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
956
|
-
return contents;
|
|
957
|
-
};
|
|
958
|
-
exports.de_UpdateAppMonitorCommand = de_UpdateAppMonitorCommand;
|
|
959
|
-
const de_UpdateAppMonitorCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "AccessDeniedException":
|
|
967
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ConflictException":
|
|
970
|
-
case "com.amazonaws.rum#ConflictException":
|
|
971
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerException":
|
|
973
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
974
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottlingException":
|
|
979
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
980
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ValidationException":
|
|
982
|
-
case "com.amazonaws.rum#ValidationException":
|
|
983
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
-
default:
|
|
985
|
-
const parsedBody = parsedOutput.body;
|
|
986
|
-
return throwDefaultError({
|
|
987
|
-
output,
|
|
988
|
-
parsedBody,
|
|
989
|
-
errorCode,
|
|
990
|
-
});
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
const de_UpdateRumMetricDefinitionCommand = async (output, context) => {
|
|
994
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
995
|
-
return de_UpdateRumMetricDefinitionCommandError(output, context);
|
|
996
|
-
}
|
|
997
|
-
const contents = (0, smithy_client_1.map)({
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
});
|
|
1000
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1001
|
-
return contents;
|
|
1002
|
-
};
|
|
1003
|
-
exports.de_UpdateRumMetricDefinitionCommand = de_UpdateRumMetricDefinitionCommand;
|
|
1004
|
-
const de_UpdateRumMetricDefinitionCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "AccessDeniedException":
|
|
1012
|
-
case "com.amazonaws.rum#AccessDeniedException":
|
|
1013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ConflictException":
|
|
1015
|
-
case "com.amazonaws.rum#ConflictException":
|
|
1016
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InternalServerException":
|
|
1018
|
-
case "com.amazonaws.rum#InternalServerException":
|
|
1019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ResourceNotFoundException":
|
|
1021
|
-
case "com.amazonaws.rum#ResourceNotFoundException":
|
|
1022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ServiceQuotaExceededException":
|
|
1024
|
-
case "com.amazonaws.rum#ServiceQuotaExceededException":
|
|
1025
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ThrottlingException":
|
|
1027
|
-
case "com.amazonaws.rum#ThrottlingException":
|
|
1028
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ValidationException":
|
|
1030
|
-
case "com.amazonaws.rum#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 throwDefaultError = (0, smithy_client_1.withBaseException)(RUMServiceException_1.RUMServiceException);
|
|
1042
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1043
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1044
|
-
const data = parsedOutput.body;
|
|
1045
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1046
|
-
message: smithy_client_1.expectString,
|
|
1047
|
-
});
|
|
1048
|
-
Object.assign(contents, doc);
|
|
1049
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1051
|
-
...contents,
|
|
1052
|
-
});
|
|
1053
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1054
|
-
};
|
|
1055
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1056
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1057
|
-
const data = parsedOutput.body;
|
|
1058
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1059
|
-
message: smithy_client_1.expectString,
|
|
1060
|
-
resourceName: smithy_client_1.expectString,
|
|
1061
|
-
resourceType: smithy_client_1.expectString,
|
|
1062
|
-
});
|
|
1063
|
-
Object.assign(contents, doc);
|
|
1064
|
-
const exception = new models_0_1.ConflictException({
|
|
1065
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1066
|
-
...contents,
|
|
1067
|
-
});
|
|
1068
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1069
|
-
};
|
|
1070
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1071
|
-
const contents = (0, smithy_client_1.map)({
|
|
1072
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1073
|
-
});
|
|
1074
|
-
const data = parsedOutput.body;
|
|
1075
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1076
|
-
message: smithy_client_1.expectString,
|
|
1077
|
-
});
|
|
1078
|
-
Object.assign(contents, doc);
|
|
1079
|
-
const exception = new models_0_1.InternalServerException({
|
|
1080
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1081
|
-
...contents,
|
|
1082
|
-
});
|
|
1083
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1084
|
-
};
|
|
1085
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1086
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1087
|
-
const data = parsedOutput.body;
|
|
1088
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1089
|
-
message: smithy_client_1.expectString,
|
|
1090
|
-
resourceName: smithy_client_1.expectString,
|
|
1091
|
-
resourceType: smithy_client_1.expectString,
|
|
1092
|
-
});
|
|
1093
|
-
Object.assign(contents, doc);
|
|
1094
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1096
|
-
...contents,
|
|
1097
|
-
});
|
|
1098
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1099
|
-
};
|
|
1100
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1101
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1102
|
-
const data = parsedOutput.body;
|
|
1103
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1104
|
-
message: smithy_client_1.expectString,
|
|
1105
|
-
});
|
|
1106
|
-
Object.assign(contents, doc);
|
|
1107
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1108
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1109
|
-
...contents,
|
|
1110
|
-
});
|
|
1111
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1112
|
-
};
|
|
1113
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1114
|
-
const contents = (0, smithy_client_1.map)({
|
|
1115
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1116
|
-
});
|
|
1117
|
-
const data = parsedOutput.body;
|
|
1118
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1119
|
-
message: smithy_client_1.expectString,
|
|
1120
|
-
quotaCode: smithy_client_1.expectString,
|
|
1121
|
-
serviceCode: smithy_client_1.expectString,
|
|
1122
|
-
});
|
|
1123
|
-
Object.assign(contents, doc);
|
|
1124
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1125
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1126
|
-
...contents,
|
|
1127
|
-
});
|
|
1128
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1129
|
-
};
|
|
1130
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1131
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1132
|
-
const data = parsedOutput.body;
|
|
1133
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1134
|
-
message: smithy_client_1.expectString,
|
|
1135
|
-
});
|
|
1136
|
-
Object.assign(contents, doc);
|
|
1137
|
-
const exception = new models_0_1.ValidationException({
|
|
1138
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1139
|
-
...contents,
|
|
1140
|
-
});
|
|
1141
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1142
|
-
};
|
|
1143
|
-
const se_AppMonitorConfiguration = (input, context) => {
|
|
1144
|
-
return (0, smithy_client_1.take)(input, {
|
|
1145
|
-
AllowCookies: [],
|
|
1146
|
-
EnableXRay: [],
|
|
1147
|
-
ExcludedPages: smithy_client_1._json,
|
|
1148
|
-
FavoritePages: smithy_client_1._json,
|
|
1149
|
-
GuestRoleArn: [],
|
|
1150
|
-
IdentityPoolId: [],
|
|
1151
|
-
IncludedPages: smithy_client_1._json,
|
|
1152
|
-
SessionSampleRate: smithy_client_1.serializeFloat,
|
|
1153
|
-
Telemetries: smithy_client_1._json,
|
|
1154
|
-
});
|
|
1155
|
-
};
|
|
1156
|
-
const se_RumEvent = (input, context) => {
|
|
1157
|
-
return (0, smithy_client_1.take)(input, {
|
|
1158
|
-
details: smithy_client_1.LazyJsonString.fromObject,
|
|
1159
|
-
id: [],
|
|
1160
|
-
metadata: smithy_client_1.LazyJsonString.fromObject,
|
|
1161
|
-
timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1162
|
-
type: [],
|
|
1163
|
-
});
|
|
1164
|
-
};
|
|
1165
|
-
const se_RumEventList = (input, context) => {
|
|
1166
|
-
return input
|
|
1167
|
-
.filter((e) => e != null)
|
|
1168
|
-
.map((entry) => {
|
|
1169
|
-
return se_RumEvent(entry, context);
|
|
1170
|
-
});
|
|
1171
|
-
};
|
|
1172
|
-
const de_AppMonitor = (output, context) => {
|
|
1173
|
-
return (0, smithy_client_1.take)(output, {
|
|
1174
|
-
AppMonitorConfiguration: (_) => de_AppMonitorConfiguration(_, context),
|
|
1175
|
-
Created: smithy_client_1.expectString,
|
|
1176
|
-
CustomEvents: smithy_client_1._json,
|
|
1177
|
-
DataStorage: smithy_client_1._json,
|
|
1178
|
-
Domain: smithy_client_1.expectString,
|
|
1179
|
-
Id: smithy_client_1.expectString,
|
|
1180
|
-
LastModified: smithy_client_1.expectString,
|
|
1181
|
-
Name: smithy_client_1.expectString,
|
|
1182
|
-
State: smithy_client_1.expectString,
|
|
1183
|
-
Tags: smithy_client_1._json,
|
|
1184
|
-
});
|
|
1185
|
-
};
|
|
1186
|
-
const de_AppMonitorConfiguration = (output, context) => {
|
|
1187
|
-
return (0, smithy_client_1.take)(output, {
|
|
1188
|
-
AllowCookies: smithy_client_1.expectBoolean,
|
|
1189
|
-
EnableXRay: smithy_client_1.expectBoolean,
|
|
1190
|
-
ExcludedPages: smithy_client_1._json,
|
|
1191
|
-
FavoritePages: smithy_client_1._json,
|
|
1192
|
-
GuestRoleArn: smithy_client_1.expectString,
|
|
1193
|
-
IdentityPoolId: smithy_client_1.expectString,
|
|
1194
|
-
IncludedPages: smithy_client_1._json,
|
|
1195
|
-
SessionSampleRate: smithy_client_1.limitedParseDouble,
|
|
1196
|
-
Telemetries: smithy_client_1._json,
|
|
1197
|
-
});
|
|
1198
|
-
};
|
|
1199
|
-
const deserializeMetadata = (output) => ({
|
|
1200
|
-
httpStatusCode: output.statusCode,
|
|
1201
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1202
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1203
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1204
|
-
});
|
|
1205
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1206
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1207
|
-
value !== null &&
|
|
1208
|
-
value !== "" &&
|
|
1209
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1210
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1211
|
-
const _D = "Destination";
|
|
1212
|
-
const _DA = "DestinationArn";
|
|
1213
|
-
const _MDI = "MetricDefinitionIds";
|
|
1214
|
-
const _MR = "MaxResults";
|
|
1215
|
-
const _NT = "NextToken";
|
|
1216
|
-
const _TK = "TagKeys";
|
|
1217
|
-
const _d = "destination";
|
|
1218
|
-
const _dA = "destinationArn";
|
|
1219
|
-
const _mDI = "metricDefinitionIds";
|
|
1220
|
-
const _mR = "maxResults";
|
|
1221
|
-
const _nT = "nextToken";
|
|
1222
|
-
const _rAS = "retryAfterSeconds";
|
|
1223
|
-
const _ra = "retry-after";
|
|
1224
|
-
const _tK = "tagKeys";
|
|
1225
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1226
|
-
if (encoded.length) {
|
|
1227
|
-
return JSON.parse(encoded);
|
|
1228
|
-
}
|
|
1229
|
-
return {};
|
|
1230
|
-
});
|
|
1231
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1232
|
-
const value = await parseBody(errorBody, context);
|
|
1233
|
-
value.message = value.message ?? value.Message;
|
|
1234
|
-
return value;
|
|
1235
|
-
};
|
|
1236
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1237
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1238
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1239
|
-
let cleanValue = rawValue;
|
|
1240
|
-
if (typeof cleanValue === "number") {
|
|
1241
|
-
cleanValue = cleanValue.toString();
|
|
1242
|
-
}
|
|
1243
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1244
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1245
|
-
}
|
|
1246
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1247
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1248
|
-
}
|
|
1249
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1250
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1251
|
-
}
|
|
1252
|
-
return cleanValue;
|
|
1253
|
-
};
|
|
1254
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1255
|
-
if (headerKey !== undefined) {
|
|
1256
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1257
|
-
}
|
|
1258
|
-
if (data.code !== undefined) {
|
|
1259
|
-
return sanitizeErrorCode(data.code);
|
|
1260
|
-
}
|
|
1261
|
-
if (data["__type"] !== undefined) {
|
|
1262
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|