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