@aws-sdk/client-networkflowmonitor 3.927.0 → 3.929.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/index.js +1082 -1045
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/NetworkFlowMonitorClient.js +2 -0
- package/dist-es/commands/CreateMonitorCommand.js +3 -9
- package/dist-es/commands/CreateScopeCommand.js +3 -9
- package/dist-es/commands/DeleteMonitorCommand.js +3 -9
- package/dist-es/commands/DeleteScopeCommand.js +3 -9
- package/dist-es/commands/GetMonitorCommand.js +3 -9
- package/dist-es/commands/GetQueryResultsMonitorTopContributorsCommand.js +3 -9
- package/dist-es/commands/GetQueryResultsWorkloadInsightsTopContributorsCommand.js +3 -9
- package/dist-es/commands/GetQueryResultsWorkloadInsightsTopContributorsDataCommand.js +3 -9
- package/dist-es/commands/GetQueryStatusMonitorTopContributorsCommand.js +3 -9
- package/dist-es/commands/GetQueryStatusWorkloadInsightsTopContributorsCommand.js +3 -9
- package/dist-es/commands/GetQueryStatusWorkloadInsightsTopContributorsDataCommand.js +3 -9
- package/dist-es/commands/GetScopeCommand.js +3 -9
- package/dist-es/commands/ListMonitorsCommand.js +3 -9
- package/dist-es/commands/ListScopesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/StartQueryMonitorTopContributorsCommand.js +3 -9
- package/dist-es/commands/StartQueryWorkloadInsightsTopContributorsCommand.js +3 -9
- package/dist-es/commands/StartQueryWorkloadInsightsTopContributorsDataCommand.js +3 -9
- package/dist-es/commands/StopQueryMonitorTopContributorsCommand.js +3 -9
- package/dist-es/commands/StopQueryWorkloadInsightsTopContributorsCommand.js +3 -9
- package/dist-es/commands/StopQueryWorkloadInsightsTopContributorsDataCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateMonitorCommand.js +3 -9
- package/dist-es/commands/UpdateScopeCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1018 -0
- package/dist-types/NetworkFlowMonitorClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +110 -0
- package/dist-types/ts3.4/NetworkFlowMonitorClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +115 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -854
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -227
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -305
|
@@ -1,854 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { NetworkFlowMonitorServiceException as __BaseException } from "../models/NetworkFlowMonitorServiceException";
|
|
7
|
-
export const se_CreateMonitorCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/monitors");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
|
-
localResources: (_) => _json(_),
|
|
17
|
-
monitorName: [],
|
|
18
|
-
remoteResources: (_) => _json(_),
|
|
19
|
-
scopeArn: [],
|
|
20
|
-
tags: (_) => _json(_),
|
|
21
|
-
}));
|
|
22
|
-
b.m("POST").h(headers).b(body);
|
|
23
|
-
return b.build();
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateScopeCommand = async (input, context) => {
|
|
26
|
-
const b = rb(input, context);
|
|
27
|
-
const headers = {
|
|
28
|
-
"content-type": "application/json",
|
|
29
|
-
};
|
|
30
|
-
b.bp("/scopes");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify(take(input, {
|
|
33
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
34
|
-
tags: (_) => _json(_),
|
|
35
|
-
targets: (_) => _json(_),
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_DeleteMonitorCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {};
|
|
43
|
-
b.bp("/monitors/{monitorName}");
|
|
44
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
45
|
-
let body;
|
|
46
|
-
b.m("DELETE").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_DeleteScopeCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = {};
|
|
52
|
-
b.bp("/scopes/{scopeId}");
|
|
53
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
54
|
-
let body;
|
|
55
|
-
b.m("DELETE").h(headers).b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
export const se_GetMonitorCommand = async (input, context) => {
|
|
59
|
-
const b = rb(input, context);
|
|
60
|
-
const headers = {};
|
|
61
|
-
b.bp("/monitors/{monitorName}");
|
|
62
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
63
|
-
let body;
|
|
64
|
-
b.m("GET").h(headers).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
export const se_GetQueryResultsMonitorTopContributorsCommand = async (input, context) => {
|
|
68
|
-
const b = rb(input, context);
|
|
69
|
-
const headers = {};
|
|
70
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}/results");
|
|
71
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
72
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
73
|
-
const query = map({
|
|
74
|
-
[_nT]: [, input[_nT]],
|
|
75
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
76
|
-
});
|
|
77
|
-
let body;
|
|
78
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
79
|
-
return b.build();
|
|
80
|
-
};
|
|
81
|
-
export const se_GetQueryResultsWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
82
|
-
const b = rb(input, context);
|
|
83
|
-
const headers = {};
|
|
84
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}/results");
|
|
85
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
86
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
87
|
-
const query = map({
|
|
88
|
-
[_nT]: [, input[_nT]],
|
|
89
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
90
|
-
});
|
|
91
|
-
let body;
|
|
92
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_GetQueryResultsWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {};
|
|
98
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/results");
|
|
99
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
100
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
101
|
-
const query = map({
|
|
102
|
-
[_nT]: [, input[_nT]],
|
|
103
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
104
|
-
});
|
|
105
|
-
let body;
|
|
106
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
export const se_GetQueryStatusMonitorTopContributorsCommand = async (input, context) => {
|
|
110
|
-
const b = rb(input, context);
|
|
111
|
-
const headers = {};
|
|
112
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}/status");
|
|
113
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
114
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
115
|
-
let body;
|
|
116
|
-
b.m("GET").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
export const se_GetQueryStatusWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
120
|
-
const b = rb(input, context);
|
|
121
|
-
const headers = {};
|
|
122
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}/status");
|
|
123
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
124
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
125
|
-
let body;
|
|
126
|
-
b.m("GET").h(headers).b(body);
|
|
127
|
-
return b.build();
|
|
128
|
-
};
|
|
129
|
-
export const se_GetQueryStatusWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
130
|
-
const b = rb(input, context);
|
|
131
|
-
const headers = {};
|
|
132
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}/status");
|
|
133
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
134
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
135
|
-
let body;
|
|
136
|
-
b.m("GET").h(headers).b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
export const se_GetScopeCommand = async (input, context) => {
|
|
140
|
-
const b = rb(input, context);
|
|
141
|
-
const headers = {};
|
|
142
|
-
b.bp("/scopes/{scopeId}");
|
|
143
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
144
|
-
let body;
|
|
145
|
-
b.m("GET").h(headers).b(body);
|
|
146
|
-
return b.build();
|
|
147
|
-
};
|
|
148
|
-
export const se_ListMonitorsCommand = async (input, context) => {
|
|
149
|
-
const b = rb(input, context);
|
|
150
|
-
const headers = {};
|
|
151
|
-
b.bp("/monitors");
|
|
152
|
-
const query = map({
|
|
153
|
-
[_nT]: [, input[_nT]],
|
|
154
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
155
|
-
[_mS]: [, input[_mS]],
|
|
156
|
-
});
|
|
157
|
-
let body;
|
|
158
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
export const se_ListScopesCommand = async (input, context) => {
|
|
162
|
-
const b = rb(input, context);
|
|
163
|
-
const headers = {};
|
|
164
|
-
b.bp("/scopes");
|
|
165
|
-
const query = map({
|
|
166
|
-
[_nT]: [, input[_nT]],
|
|
167
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
168
|
-
});
|
|
169
|
-
let body;
|
|
170
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
174
|
-
const b = rb(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/tags/{resourceArn}");
|
|
177
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
178
|
-
let body;
|
|
179
|
-
b.m("GET").h(headers).b(body);
|
|
180
|
-
return b.build();
|
|
181
|
-
};
|
|
182
|
-
export const se_StartQueryMonitorTopContributorsCommand = async (input, context) => {
|
|
183
|
-
const b = rb(input, context);
|
|
184
|
-
const headers = {
|
|
185
|
-
"content-type": "application/json",
|
|
186
|
-
};
|
|
187
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries");
|
|
188
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(take(input, {
|
|
191
|
-
destinationCategory: [],
|
|
192
|
-
endTime: (_) => __serializeDateTime(_),
|
|
193
|
-
limit: [],
|
|
194
|
-
metricName: [],
|
|
195
|
-
startTime: (_) => __serializeDateTime(_),
|
|
196
|
-
}));
|
|
197
|
-
b.m("POST").h(headers).b(body);
|
|
198
|
-
return b.build();
|
|
199
|
-
};
|
|
200
|
-
export const se_StartQueryWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
201
|
-
const b = rb(input, context);
|
|
202
|
-
const headers = {
|
|
203
|
-
"content-type": "application/json",
|
|
204
|
-
};
|
|
205
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries");
|
|
206
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(take(input, {
|
|
209
|
-
destinationCategory: [],
|
|
210
|
-
endTime: (_) => __serializeDateTime(_),
|
|
211
|
-
limit: [],
|
|
212
|
-
metricName: [],
|
|
213
|
-
startTime: (_) => __serializeDateTime(_),
|
|
214
|
-
}));
|
|
215
|
-
b.m("POST").h(headers).b(body);
|
|
216
|
-
return b.build();
|
|
217
|
-
};
|
|
218
|
-
export const se_StartQueryWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
219
|
-
const b = rb(input, context);
|
|
220
|
-
const headers = {
|
|
221
|
-
"content-type": "application/json",
|
|
222
|
-
};
|
|
223
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries");
|
|
224
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(take(input, {
|
|
227
|
-
destinationCategory: [],
|
|
228
|
-
endTime: (_) => __serializeDateTime(_),
|
|
229
|
-
metricName: [],
|
|
230
|
-
startTime: (_) => __serializeDateTime(_),
|
|
231
|
-
}));
|
|
232
|
-
b.m("POST").h(headers).b(body);
|
|
233
|
-
return b.build();
|
|
234
|
-
};
|
|
235
|
-
export const se_StopQueryMonitorTopContributorsCommand = async (input, context) => {
|
|
236
|
-
const b = rb(input, context);
|
|
237
|
-
const headers = {};
|
|
238
|
-
b.bp("/monitors/{monitorName}/topContributorsQueries/{queryId}");
|
|
239
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
240
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
241
|
-
let body;
|
|
242
|
-
b.m("DELETE").h(headers).b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
export const se_StopQueryWorkloadInsightsTopContributorsCommand = async (input, context) => {
|
|
246
|
-
const b = rb(input, context);
|
|
247
|
-
const headers = {};
|
|
248
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsQueries/{queryId}");
|
|
249
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
250
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
251
|
-
let body;
|
|
252
|
-
b.m("DELETE").h(headers).b(body);
|
|
253
|
-
return b.build();
|
|
254
|
-
};
|
|
255
|
-
export const se_StopQueryWorkloadInsightsTopContributorsDataCommand = async (input, context) => {
|
|
256
|
-
const b = rb(input, context);
|
|
257
|
-
const headers = {};
|
|
258
|
-
b.bp("/workloadInsights/{scopeId}/topContributorsDataQueries/{queryId}");
|
|
259
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
260
|
-
b.p("queryId", () => input.queryId, "{queryId}", false);
|
|
261
|
-
let body;
|
|
262
|
-
b.m("DELETE").h(headers).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
266
|
-
const b = rb(input, context);
|
|
267
|
-
const headers = {
|
|
268
|
-
"content-type": "application/json",
|
|
269
|
-
};
|
|
270
|
-
b.bp("/tags/{resourceArn}");
|
|
271
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(take(input, {
|
|
274
|
-
tags: (_) => _json(_),
|
|
275
|
-
}));
|
|
276
|
-
b.m("POST").h(headers).b(body);
|
|
277
|
-
return b.build();
|
|
278
|
-
};
|
|
279
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
280
|
-
const b = rb(input, context);
|
|
281
|
-
const headers = {};
|
|
282
|
-
b.bp("/tags/{resourceArn}");
|
|
283
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
284
|
-
const query = map({
|
|
285
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
286
|
-
});
|
|
287
|
-
let body;
|
|
288
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
289
|
-
return b.build();
|
|
290
|
-
};
|
|
291
|
-
export const se_UpdateMonitorCommand = async (input, context) => {
|
|
292
|
-
const b = rb(input, context);
|
|
293
|
-
const headers = {
|
|
294
|
-
"content-type": "application/json",
|
|
295
|
-
};
|
|
296
|
-
b.bp("/monitors/{monitorName}");
|
|
297
|
-
b.p("monitorName", () => input.monitorName, "{monitorName}", false);
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify(take(input, {
|
|
300
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
301
|
-
localResourcesToAdd: (_) => _json(_),
|
|
302
|
-
localResourcesToRemove: (_) => _json(_),
|
|
303
|
-
remoteResourcesToAdd: (_) => _json(_),
|
|
304
|
-
remoteResourcesToRemove: (_) => _json(_),
|
|
305
|
-
}));
|
|
306
|
-
b.m("PATCH").h(headers).b(body);
|
|
307
|
-
return b.build();
|
|
308
|
-
};
|
|
309
|
-
export const se_UpdateScopeCommand = async (input, context) => {
|
|
310
|
-
const b = rb(input, context);
|
|
311
|
-
const headers = {
|
|
312
|
-
"content-type": "application/json",
|
|
313
|
-
};
|
|
314
|
-
b.bp("/scopes/{scopeId}");
|
|
315
|
-
b.p("scopeId", () => input.scopeId, "{scopeId}", false);
|
|
316
|
-
let body;
|
|
317
|
-
body = JSON.stringify(take(input, {
|
|
318
|
-
resourcesToAdd: (_) => _json(_),
|
|
319
|
-
resourcesToDelete: (_) => _json(_),
|
|
320
|
-
}));
|
|
321
|
-
b.m("PATCH").h(headers).b(body);
|
|
322
|
-
return b.build();
|
|
323
|
-
};
|
|
324
|
-
export const de_CreateMonitorCommand = async (output, context) => {
|
|
325
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
326
|
-
return de_CommandError(output, context);
|
|
327
|
-
}
|
|
328
|
-
const contents = map({
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
});
|
|
331
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
332
|
-
const doc = take(data, {
|
|
333
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
334
|
-
localResources: _json,
|
|
335
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
336
|
-
monitorArn: __expectString,
|
|
337
|
-
monitorName: __expectString,
|
|
338
|
-
monitorStatus: __expectString,
|
|
339
|
-
remoteResources: _json,
|
|
340
|
-
tags: _json,
|
|
341
|
-
});
|
|
342
|
-
Object.assign(contents, doc);
|
|
343
|
-
return contents;
|
|
344
|
-
};
|
|
345
|
-
export const de_CreateScopeCommand = async (output, context) => {
|
|
346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
|
-
return de_CommandError(output, context);
|
|
348
|
-
}
|
|
349
|
-
const contents = map({
|
|
350
|
-
$metadata: deserializeMetadata(output),
|
|
351
|
-
});
|
|
352
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
353
|
-
const doc = take(data, {
|
|
354
|
-
scopeArn: __expectString,
|
|
355
|
-
scopeId: __expectString,
|
|
356
|
-
status: __expectString,
|
|
357
|
-
tags: _json,
|
|
358
|
-
});
|
|
359
|
-
Object.assign(contents, doc);
|
|
360
|
-
return contents;
|
|
361
|
-
};
|
|
362
|
-
export const de_DeleteMonitorCommand = async (output, context) => {
|
|
363
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
364
|
-
return de_CommandError(output, context);
|
|
365
|
-
}
|
|
366
|
-
const contents = map({
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
});
|
|
369
|
-
await collectBody(output.body, context);
|
|
370
|
-
return contents;
|
|
371
|
-
};
|
|
372
|
-
export const de_DeleteScopeCommand = async (output, context) => {
|
|
373
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
374
|
-
return de_CommandError(output, context);
|
|
375
|
-
}
|
|
376
|
-
const contents = map({
|
|
377
|
-
$metadata: deserializeMetadata(output),
|
|
378
|
-
});
|
|
379
|
-
await collectBody(output.body, context);
|
|
380
|
-
return contents;
|
|
381
|
-
};
|
|
382
|
-
export const de_GetMonitorCommand = async (output, context) => {
|
|
383
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
-
return de_CommandError(output, context);
|
|
385
|
-
}
|
|
386
|
-
const contents = map({
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
});
|
|
389
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
390
|
-
const doc = take(data, {
|
|
391
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
392
|
-
localResources: _json,
|
|
393
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
394
|
-
monitorArn: __expectString,
|
|
395
|
-
monitorName: __expectString,
|
|
396
|
-
monitorStatus: __expectString,
|
|
397
|
-
remoteResources: _json,
|
|
398
|
-
tags: _json,
|
|
399
|
-
});
|
|
400
|
-
Object.assign(contents, doc);
|
|
401
|
-
return contents;
|
|
402
|
-
};
|
|
403
|
-
export const de_GetQueryResultsMonitorTopContributorsCommand = async (output, context) => {
|
|
404
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
405
|
-
return de_CommandError(output, context);
|
|
406
|
-
}
|
|
407
|
-
const contents = map({
|
|
408
|
-
$metadata: deserializeMetadata(output),
|
|
409
|
-
});
|
|
410
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
411
|
-
const doc = take(data, {
|
|
412
|
-
nextToken: __expectString,
|
|
413
|
-
topContributors: _json,
|
|
414
|
-
unit: __expectString,
|
|
415
|
-
});
|
|
416
|
-
Object.assign(contents, doc);
|
|
417
|
-
return contents;
|
|
418
|
-
};
|
|
419
|
-
export const de_GetQueryResultsWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
420
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
-
return de_CommandError(output, context);
|
|
422
|
-
}
|
|
423
|
-
const contents = map({
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
});
|
|
426
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
427
|
-
const doc = take(data, {
|
|
428
|
-
nextToken: __expectString,
|
|
429
|
-
topContributors: _json,
|
|
430
|
-
});
|
|
431
|
-
Object.assign(contents, doc);
|
|
432
|
-
return contents;
|
|
433
|
-
};
|
|
434
|
-
export const de_GetQueryResultsWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
435
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return de_CommandError(output, context);
|
|
437
|
-
}
|
|
438
|
-
const contents = map({
|
|
439
|
-
$metadata: deserializeMetadata(output),
|
|
440
|
-
});
|
|
441
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
442
|
-
const doc = take(data, {
|
|
443
|
-
datapoints: (_) => de_WorkloadInsightsTopContributorsDataPoints(_, context),
|
|
444
|
-
nextToken: __expectString,
|
|
445
|
-
unit: __expectString,
|
|
446
|
-
});
|
|
447
|
-
Object.assign(contents, doc);
|
|
448
|
-
return contents;
|
|
449
|
-
};
|
|
450
|
-
export const de_GetQueryStatusMonitorTopContributorsCommand = async (output, context) => {
|
|
451
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
|
-
return de_CommandError(output, context);
|
|
453
|
-
}
|
|
454
|
-
const contents = map({
|
|
455
|
-
$metadata: deserializeMetadata(output),
|
|
456
|
-
});
|
|
457
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
458
|
-
const doc = take(data, {
|
|
459
|
-
status: __expectString,
|
|
460
|
-
});
|
|
461
|
-
Object.assign(contents, doc);
|
|
462
|
-
return contents;
|
|
463
|
-
};
|
|
464
|
-
export const de_GetQueryStatusWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
465
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
|
-
return de_CommandError(output, context);
|
|
467
|
-
}
|
|
468
|
-
const contents = map({
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
});
|
|
471
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
472
|
-
const doc = take(data, {
|
|
473
|
-
status: __expectString,
|
|
474
|
-
});
|
|
475
|
-
Object.assign(contents, doc);
|
|
476
|
-
return contents;
|
|
477
|
-
};
|
|
478
|
-
export const de_GetQueryStatusWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
479
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return de_CommandError(output, context);
|
|
481
|
-
}
|
|
482
|
-
const contents = map({
|
|
483
|
-
$metadata: deserializeMetadata(output),
|
|
484
|
-
});
|
|
485
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
486
|
-
const doc = take(data, {
|
|
487
|
-
status: __expectString,
|
|
488
|
-
});
|
|
489
|
-
Object.assign(contents, doc);
|
|
490
|
-
return contents;
|
|
491
|
-
};
|
|
492
|
-
export const de_GetScopeCommand = async (output, context) => {
|
|
493
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
-
return de_CommandError(output, context);
|
|
495
|
-
}
|
|
496
|
-
const contents = map({
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
});
|
|
499
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
500
|
-
const doc = take(data, {
|
|
501
|
-
scopeArn: __expectString,
|
|
502
|
-
scopeId: __expectString,
|
|
503
|
-
status: __expectString,
|
|
504
|
-
tags: _json,
|
|
505
|
-
targets: _json,
|
|
506
|
-
});
|
|
507
|
-
Object.assign(contents, doc);
|
|
508
|
-
return contents;
|
|
509
|
-
};
|
|
510
|
-
export const de_ListMonitorsCommand = async (output, context) => {
|
|
511
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
512
|
-
return de_CommandError(output, context);
|
|
513
|
-
}
|
|
514
|
-
const contents = map({
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
});
|
|
517
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
518
|
-
const doc = take(data, {
|
|
519
|
-
monitors: _json,
|
|
520
|
-
nextToken: __expectString,
|
|
521
|
-
});
|
|
522
|
-
Object.assign(contents, doc);
|
|
523
|
-
return contents;
|
|
524
|
-
};
|
|
525
|
-
export const de_ListScopesCommand = async (output, context) => {
|
|
526
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
-
return de_CommandError(output, context);
|
|
528
|
-
}
|
|
529
|
-
const contents = map({
|
|
530
|
-
$metadata: deserializeMetadata(output),
|
|
531
|
-
});
|
|
532
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
533
|
-
const doc = take(data, {
|
|
534
|
-
nextToken: __expectString,
|
|
535
|
-
scopes: _json,
|
|
536
|
-
});
|
|
537
|
-
Object.assign(contents, doc);
|
|
538
|
-
return contents;
|
|
539
|
-
};
|
|
540
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return de_CommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const contents = map({
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
});
|
|
547
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
548
|
-
const doc = take(data, {
|
|
549
|
-
tags: _json,
|
|
550
|
-
});
|
|
551
|
-
Object.assign(contents, doc);
|
|
552
|
-
return contents;
|
|
553
|
-
};
|
|
554
|
-
export const de_StartQueryMonitorTopContributorsCommand = async (output, context) => {
|
|
555
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
556
|
-
return de_CommandError(output, context);
|
|
557
|
-
}
|
|
558
|
-
const contents = map({
|
|
559
|
-
$metadata: deserializeMetadata(output),
|
|
560
|
-
});
|
|
561
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
562
|
-
const doc = take(data, {
|
|
563
|
-
queryId: __expectString,
|
|
564
|
-
});
|
|
565
|
-
Object.assign(contents, doc);
|
|
566
|
-
return contents;
|
|
567
|
-
};
|
|
568
|
-
export const de_StartQueryWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
569
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
570
|
-
return de_CommandError(output, context);
|
|
571
|
-
}
|
|
572
|
-
const contents = map({
|
|
573
|
-
$metadata: deserializeMetadata(output),
|
|
574
|
-
});
|
|
575
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
576
|
-
const doc = take(data, {
|
|
577
|
-
queryId: __expectString,
|
|
578
|
-
});
|
|
579
|
-
Object.assign(contents, doc);
|
|
580
|
-
return contents;
|
|
581
|
-
};
|
|
582
|
-
export const de_StartQueryWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
583
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
|
-
return de_CommandError(output, context);
|
|
585
|
-
}
|
|
586
|
-
const contents = map({
|
|
587
|
-
$metadata: deserializeMetadata(output),
|
|
588
|
-
});
|
|
589
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
590
|
-
const doc = take(data, {
|
|
591
|
-
queryId: __expectString,
|
|
592
|
-
});
|
|
593
|
-
Object.assign(contents, doc);
|
|
594
|
-
return contents;
|
|
595
|
-
};
|
|
596
|
-
export const de_StopQueryMonitorTopContributorsCommand = async (output, context) => {
|
|
597
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
-
return de_CommandError(output, context);
|
|
599
|
-
}
|
|
600
|
-
const contents = map({
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
});
|
|
603
|
-
await collectBody(output.body, context);
|
|
604
|
-
return contents;
|
|
605
|
-
};
|
|
606
|
-
export const de_StopQueryWorkloadInsightsTopContributorsCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const contents = map({
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
});
|
|
613
|
-
await collectBody(output.body, context);
|
|
614
|
-
return contents;
|
|
615
|
-
};
|
|
616
|
-
export const de_StopQueryWorkloadInsightsTopContributorsDataCommand = async (output, context) => {
|
|
617
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
618
|
-
return de_CommandError(output, context);
|
|
619
|
-
}
|
|
620
|
-
const contents = map({
|
|
621
|
-
$metadata: deserializeMetadata(output),
|
|
622
|
-
});
|
|
623
|
-
await collectBody(output.body, context);
|
|
624
|
-
return contents;
|
|
625
|
-
};
|
|
626
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
627
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
628
|
-
return de_CommandError(output, context);
|
|
629
|
-
}
|
|
630
|
-
const contents = map({
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
});
|
|
633
|
-
await collectBody(output.body, context);
|
|
634
|
-
return contents;
|
|
635
|
-
};
|
|
636
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const contents = map({
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
});
|
|
643
|
-
await collectBody(output.body, context);
|
|
644
|
-
return contents;
|
|
645
|
-
};
|
|
646
|
-
export const de_UpdateMonitorCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
const contents = map({
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
});
|
|
653
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
654
|
-
const doc = take(data, {
|
|
655
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
656
|
-
localResources: _json,
|
|
657
|
-
modifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
658
|
-
monitorArn: __expectString,
|
|
659
|
-
monitorName: __expectString,
|
|
660
|
-
monitorStatus: __expectString,
|
|
661
|
-
remoteResources: _json,
|
|
662
|
-
tags: _json,
|
|
663
|
-
});
|
|
664
|
-
Object.assign(contents, doc);
|
|
665
|
-
return contents;
|
|
666
|
-
};
|
|
667
|
-
export const de_UpdateScopeCommand = async (output, context) => {
|
|
668
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return de_CommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const contents = map({
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
});
|
|
674
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
675
|
-
const doc = take(data, {
|
|
676
|
-
scopeArn: __expectString,
|
|
677
|
-
scopeId: __expectString,
|
|
678
|
-
status: __expectString,
|
|
679
|
-
tags: _json,
|
|
680
|
-
});
|
|
681
|
-
Object.assign(contents, doc);
|
|
682
|
-
return contents;
|
|
683
|
-
};
|
|
684
|
-
const de_CommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "AccessDeniedException":
|
|
692
|
-
case "com.amazonaws.networkflowmonitor#AccessDeniedException":
|
|
693
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ConflictException":
|
|
695
|
-
case "com.amazonaws.networkflowmonitor#ConflictException":
|
|
696
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
697
|
-
case "InternalServerException":
|
|
698
|
-
case "com.amazonaws.networkflowmonitor#InternalServerException":
|
|
699
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
700
|
-
case "ServiceQuotaExceededException":
|
|
701
|
-
case "com.amazonaws.networkflowmonitor#ServiceQuotaExceededException":
|
|
702
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
703
|
-
case "ThrottlingException":
|
|
704
|
-
case "com.amazonaws.networkflowmonitor#ThrottlingException":
|
|
705
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ValidationException":
|
|
707
|
-
case "com.amazonaws.networkflowmonitor#ValidationException":
|
|
708
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ResourceNotFoundException":
|
|
710
|
-
case "com.amazonaws.networkflowmonitor#ResourceNotFoundException":
|
|
711
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
712
|
-
default:
|
|
713
|
-
const parsedBody = parsedOutput.body;
|
|
714
|
-
return throwDefaultError({
|
|
715
|
-
output,
|
|
716
|
-
parsedBody,
|
|
717
|
-
errorCode,
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
722
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
723
|
-
const contents = map({});
|
|
724
|
-
const data = parsedOutput.body;
|
|
725
|
-
const doc = take(data, {
|
|
726
|
-
message: __expectString,
|
|
727
|
-
});
|
|
728
|
-
Object.assign(contents, doc);
|
|
729
|
-
const exception = new AccessDeniedException({
|
|
730
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
731
|
-
...contents,
|
|
732
|
-
});
|
|
733
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
734
|
-
};
|
|
735
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
736
|
-
const contents = map({});
|
|
737
|
-
const data = parsedOutput.body;
|
|
738
|
-
const doc = take(data, {
|
|
739
|
-
message: __expectString,
|
|
740
|
-
});
|
|
741
|
-
Object.assign(contents, doc);
|
|
742
|
-
const exception = new ConflictException({
|
|
743
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
744
|
-
...contents,
|
|
745
|
-
});
|
|
746
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
747
|
-
};
|
|
748
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
749
|
-
const contents = map({});
|
|
750
|
-
const data = parsedOutput.body;
|
|
751
|
-
const doc = take(data, {
|
|
752
|
-
message: __expectString,
|
|
753
|
-
});
|
|
754
|
-
Object.assign(contents, doc);
|
|
755
|
-
const exception = new InternalServerException({
|
|
756
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
757
|
-
...contents,
|
|
758
|
-
});
|
|
759
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
760
|
-
};
|
|
761
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
762
|
-
const contents = map({});
|
|
763
|
-
const data = parsedOutput.body;
|
|
764
|
-
const doc = take(data, {
|
|
765
|
-
message: __expectString,
|
|
766
|
-
});
|
|
767
|
-
Object.assign(contents, doc);
|
|
768
|
-
const exception = new ResourceNotFoundException({
|
|
769
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
770
|
-
...contents,
|
|
771
|
-
});
|
|
772
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
773
|
-
};
|
|
774
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
775
|
-
const contents = map({});
|
|
776
|
-
const data = parsedOutput.body;
|
|
777
|
-
const doc = take(data, {
|
|
778
|
-
message: __expectString,
|
|
779
|
-
});
|
|
780
|
-
Object.assign(contents, doc);
|
|
781
|
-
const exception = new ServiceQuotaExceededException({
|
|
782
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
783
|
-
...contents,
|
|
784
|
-
});
|
|
785
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
786
|
-
};
|
|
787
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
788
|
-
const contents = map({});
|
|
789
|
-
const data = parsedOutput.body;
|
|
790
|
-
const doc = take(data, {
|
|
791
|
-
message: __expectString,
|
|
792
|
-
});
|
|
793
|
-
Object.assign(contents, doc);
|
|
794
|
-
const exception = new ThrottlingException({
|
|
795
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
796
|
-
...contents,
|
|
797
|
-
});
|
|
798
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
799
|
-
};
|
|
800
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
801
|
-
const contents = map({});
|
|
802
|
-
const data = parsedOutput.body;
|
|
803
|
-
const doc = take(data, {
|
|
804
|
-
message: __expectString,
|
|
805
|
-
});
|
|
806
|
-
Object.assign(contents, doc);
|
|
807
|
-
const exception = new ValidationException({
|
|
808
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
809
|
-
...contents,
|
|
810
|
-
});
|
|
811
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
812
|
-
};
|
|
813
|
-
const de_WorkloadInsightsTopContributorsDataPoint = (output, context) => {
|
|
814
|
-
return take(output, {
|
|
815
|
-
label: __expectString,
|
|
816
|
-
timestamps: (_) => de_WorkloadInsightsTopContributorsTimestampsList(_, context),
|
|
817
|
-
values: (_) => de_WorkloadInsightsTopContributorsValuesList(_, context),
|
|
818
|
-
});
|
|
819
|
-
};
|
|
820
|
-
const de_WorkloadInsightsTopContributorsDataPoints = (output, context) => {
|
|
821
|
-
const retVal = (output || [])
|
|
822
|
-
.filter((e) => e != null)
|
|
823
|
-
.map((entry) => {
|
|
824
|
-
return de_WorkloadInsightsTopContributorsDataPoint(entry, context);
|
|
825
|
-
});
|
|
826
|
-
return retVal;
|
|
827
|
-
};
|
|
828
|
-
const de_WorkloadInsightsTopContributorsTimestampsList = (output, context) => {
|
|
829
|
-
const retVal = (output || [])
|
|
830
|
-
.filter((e) => e != null)
|
|
831
|
-
.map((entry) => {
|
|
832
|
-
return __expectNonNull(__parseRfc3339DateTimeWithOffset(entry));
|
|
833
|
-
});
|
|
834
|
-
return retVal;
|
|
835
|
-
};
|
|
836
|
-
const de_WorkloadInsightsTopContributorsValuesList = (output, context) => {
|
|
837
|
-
const retVal = (output || [])
|
|
838
|
-
.filter((e) => e != null)
|
|
839
|
-
.map((entry) => {
|
|
840
|
-
return __limitedParseDouble(entry);
|
|
841
|
-
});
|
|
842
|
-
return retVal;
|
|
843
|
-
};
|
|
844
|
-
const deserializeMetadata = (output) => ({
|
|
845
|
-
httpStatusCode: output.statusCode,
|
|
846
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
847
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
848
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
849
|
-
});
|
|
850
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
851
|
-
const _mR = "maxResults";
|
|
852
|
-
const _mS = "monitorStatus";
|
|
853
|
-
const _nT = "nextToken";
|
|
854
|
-
const _tK = "tagKeys";
|