@aws-sdk/client-devops-guru 3.476.0 → 3.477.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/protocols/Aws_restJson1.js +143 -369
- package/dist-es/protocols/Aws_restJson1.js +144 -370
- package/package.json +5 -4
|
@@ -2,200 +2,135 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_ListInsightsCommand = exports.de_ListEventsCommand = exports.de_ListAnomalousLogGroupsCommand = exports.de_ListAnomaliesForInsightCommand = exports.de_GetResourceCollectionCommand = exports.de_GetCostEstimationCommand = exports.de_DescribeServiceIntegrationCommand = exports.de_DescribeResourceCollectionHealthCommand = exports.de_DescribeOrganizationResourceCollectionHealthCommand = exports.de_DescribeOrganizationOverviewCommand = exports.de_DescribeOrganizationHealthCommand = exports.de_DescribeInsightCommand = exports.de_DescribeFeedbackCommand = exports.de_DescribeEventSourcesConfigCommand = exports.de_DescribeAnomalyCommand = exports.de_DescribeAccountOverviewCommand = exports.de_DescribeAccountHealthCommand = exports.de_DeleteInsightCommand = exports.de_AddNotificationChannelCommand = exports.se_UpdateServiceIntegrationCommand = exports.se_UpdateResourceCollectionCommand = exports.se_UpdateEventSourcesConfigCommand = exports.se_StartCostEstimationCommand = exports.se_SearchOrganizationInsightsCommand = exports.se_SearchInsightsCommand = exports.se_RemoveNotificationChannelCommand = exports.se_PutFeedbackCommand = exports.se_ListRecommendationsCommand = exports.se_ListOrganizationInsightsCommand = exports.se_ListNotificationChannelsCommand = exports.se_ListMonitoredResourcesCommand = exports.se_ListInsightsCommand = exports.se_ListEventsCommand = exports.se_ListAnomalousLogGroupsCommand = exports.se_ListAnomaliesForInsightCommand = exports.se_GetResourceCollectionCommand = exports.se_GetCostEstimationCommand = exports.se_DescribeServiceIntegrationCommand = exports.se_DescribeResourceCollectionHealthCommand = exports.se_DescribeOrganizationResourceCollectionHealthCommand = exports.se_DescribeOrganizationOverviewCommand = exports.se_DescribeOrganizationHealthCommand = exports.se_DescribeInsightCommand = exports.se_DescribeFeedbackCommand = exports.se_DescribeEventSourcesConfigCommand = exports.se_DescribeAnomalyCommand = exports.se_DescribeAccountOverviewCommand = exports.se_DescribeAccountHealthCommand = exports.se_DeleteInsightCommand = exports.se_AddNotificationChannelCommand = void 0;
|
|
4
4
|
exports.de_UpdateServiceIntegrationCommand = exports.de_UpdateResourceCollectionCommand = exports.de_UpdateEventSourcesConfigCommand = exports.de_StartCostEstimationCommand = exports.de_SearchOrganizationInsightsCommand = exports.de_SearchInsightsCommand = exports.de_RemoveNotificationChannelCommand = exports.de_PutFeedbackCommand = exports.de_ListRecommendationsCommand = exports.de_ListOrganizationInsightsCommand = exports.de_ListNotificationChannelsCommand = exports.de_ListMonitoredResourcesCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const DevOpsGuruServiceException_1 = require("../models/DevOpsGuruServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_AddNotificationChannelCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
b.bp("/channels");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
Config: (_) => (0, smithy_client_1._json)(_),
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
hostname,
|
|
23
|
-
port,
|
|
24
|
-
method: "PUT",
|
|
25
|
-
headers,
|
|
26
|
-
path: resolvedPath,
|
|
27
|
-
body,
|
|
28
|
-
});
|
|
20
|
+
b.m("PUT").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
29
22
|
};
|
|
30
23
|
exports.se_AddNotificationChannelCommand = se_AddNotificationChannelCommand;
|
|
31
24
|
const se_DeleteInsightCommand = async (input, context) => {
|
|
32
|
-
const
|
|
25
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
33
26
|
const headers = {};
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
b.bp("/insights/{Id}");
|
|
28
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
36
29
|
let body;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
hostname,
|
|
40
|
-
port,
|
|
41
|
-
method: "DELETE",
|
|
42
|
-
headers,
|
|
43
|
-
path: resolvedPath,
|
|
44
|
-
body,
|
|
45
|
-
});
|
|
30
|
+
b.m("DELETE").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
46
32
|
};
|
|
47
33
|
exports.se_DeleteInsightCommand = se_DeleteInsightCommand;
|
|
48
34
|
const se_DescribeAccountHealthCommand = async (input, context) => {
|
|
49
|
-
const
|
|
35
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
50
36
|
const headers = {
|
|
51
37
|
"content-type": "application/json",
|
|
52
38
|
};
|
|
53
|
-
|
|
39
|
+
b.bp("/accounts/health");
|
|
54
40
|
let body;
|
|
55
41
|
body = "";
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
hostname,
|
|
59
|
-
port,
|
|
60
|
-
method: "GET",
|
|
61
|
-
headers,
|
|
62
|
-
path: resolvedPath,
|
|
63
|
-
body,
|
|
64
|
-
});
|
|
42
|
+
b.m("GET").h(headers).b(body);
|
|
43
|
+
return b.build();
|
|
65
44
|
};
|
|
66
45
|
exports.se_DescribeAccountHealthCommand = se_DescribeAccountHealthCommand;
|
|
67
46
|
const se_DescribeAccountOverviewCommand = async (input, context) => {
|
|
68
|
-
const
|
|
47
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
69
48
|
const headers = {
|
|
70
49
|
"content-type": "application/json",
|
|
71
50
|
};
|
|
72
|
-
|
|
51
|
+
b.bp("/accounts/overview");
|
|
73
52
|
let body;
|
|
74
53
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
54
|
FromTime: (_) => Math.round(_.getTime() / 1000),
|
|
76
55
|
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
77
56
|
}));
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
hostname,
|
|
81
|
-
port,
|
|
82
|
-
method: "POST",
|
|
83
|
-
headers,
|
|
84
|
-
path: resolvedPath,
|
|
85
|
-
body,
|
|
86
|
-
});
|
|
57
|
+
b.m("POST").h(headers).b(body);
|
|
58
|
+
return b.build();
|
|
87
59
|
};
|
|
88
60
|
exports.se_DescribeAccountOverviewCommand = se_DescribeAccountOverviewCommand;
|
|
89
61
|
const se_DescribeAnomalyCommand = async (input, context) => {
|
|
90
|
-
const
|
|
62
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
63
|
const headers = {};
|
|
92
|
-
|
|
93
|
-
|
|
64
|
+
b.bp("/anomalies/{Id}");
|
|
65
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
94
66
|
const query = (0, smithy_client_1.map)({
|
|
95
|
-
|
|
67
|
+
[_AI]: [, input[_AI]],
|
|
96
68
|
});
|
|
97
69
|
let body;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
hostname,
|
|
101
|
-
port,
|
|
102
|
-
method: "GET",
|
|
103
|
-
headers,
|
|
104
|
-
path: resolvedPath,
|
|
105
|
-
query,
|
|
106
|
-
body,
|
|
107
|
-
});
|
|
70
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
71
|
+
return b.build();
|
|
108
72
|
};
|
|
109
73
|
exports.se_DescribeAnomalyCommand = se_DescribeAnomalyCommand;
|
|
110
74
|
const se_DescribeEventSourcesConfigCommand = async (input, context) => {
|
|
111
|
-
const
|
|
75
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
112
76
|
const headers = {
|
|
113
77
|
"content-type": "application/json",
|
|
114
78
|
};
|
|
115
|
-
|
|
79
|
+
b.bp("/event-sources");
|
|
116
80
|
let body;
|
|
117
81
|
body = "";
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
hostname,
|
|
121
|
-
port,
|
|
122
|
-
method: "POST",
|
|
123
|
-
headers,
|
|
124
|
-
path: resolvedPath,
|
|
125
|
-
body,
|
|
126
|
-
});
|
|
82
|
+
b.m("POST").h(headers).b(body);
|
|
83
|
+
return b.build();
|
|
127
84
|
};
|
|
128
85
|
exports.se_DescribeEventSourcesConfigCommand = se_DescribeEventSourcesConfigCommand;
|
|
129
86
|
const se_DescribeFeedbackCommand = async (input, context) => {
|
|
130
|
-
const
|
|
87
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
131
88
|
const headers = {
|
|
132
89
|
"content-type": "application/json",
|
|
133
90
|
};
|
|
134
|
-
|
|
91
|
+
b.bp("/feedback");
|
|
135
92
|
let body;
|
|
136
93
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
94
|
InsightId: [],
|
|
138
95
|
}));
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
hostname,
|
|
142
|
-
port,
|
|
143
|
-
method: "POST",
|
|
144
|
-
headers,
|
|
145
|
-
path: resolvedPath,
|
|
146
|
-
body,
|
|
147
|
-
});
|
|
96
|
+
b.m("POST").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
148
98
|
};
|
|
149
99
|
exports.se_DescribeFeedbackCommand = se_DescribeFeedbackCommand;
|
|
150
100
|
const se_DescribeInsightCommand = async (input, context) => {
|
|
151
|
-
const
|
|
101
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
152
102
|
const headers = {};
|
|
153
|
-
|
|
154
|
-
|
|
103
|
+
b.bp("/insights/{Id}");
|
|
104
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
155
105
|
const query = (0, smithy_client_1.map)({
|
|
156
|
-
|
|
106
|
+
[_AI]: [, input[_AI]],
|
|
157
107
|
});
|
|
158
108
|
let body;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
hostname,
|
|
162
|
-
port,
|
|
163
|
-
method: "GET",
|
|
164
|
-
headers,
|
|
165
|
-
path: resolvedPath,
|
|
166
|
-
query,
|
|
167
|
-
body,
|
|
168
|
-
});
|
|
109
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
110
|
+
return b.build();
|
|
169
111
|
};
|
|
170
112
|
exports.se_DescribeInsightCommand = se_DescribeInsightCommand;
|
|
171
113
|
const se_DescribeOrganizationHealthCommand = async (input, context) => {
|
|
172
|
-
const
|
|
114
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
173
115
|
const headers = {
|
|
174
116
|
"content-type": "application/json",
|
|
175
117
|
};
|
|
176
|
-
|
|
118
|
+
b.bp("/organization/health");
|
|
177
119
|
let body;
|
|
178
120
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
179
121
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
180
122
|
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
181
123
|
}));
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
hostname,
|
|
185
|
-
port,
|
|
186
|
-
method: "POST",
|
|
187
|
-
headers,
|
|
188
|
-
path: resolvedPath,
|
|
189
|
-
body,
|
|
190
|
-
});
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
191
126
|
};
|
|
192
127
|
exports.se_DescribeOrganizationHealthCommand = se_DescribeOrganizationHealthCommand;
|
|
193
128
|
const se_DescribeOrganizationOverviewCommand = async (input, context) => {
|
|
194
|
-
const
|
|
129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
195
130
|
const headers = {
|
|
196
131
|
"content-type": "application/json",
|
|
197
132
|
};
|
|
198
|
-
|
|
133
|
+
b.bp("/organization/overview");
|
|
199
134
|
let body;
|
|
200
135
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
201
136
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -203,23 +138,16 @@ const se_DescribeOrganizationOverviewCommand = async (input, context) => {
|
|
|
203
138
|
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
204
139
|
ToTime: (_) => Math.round(_.getTime() / 1000),
|
|
205
140
|
}));
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
hostname,
|
|
209
|
-
port,
|
|
210
|
-
method: "POST",
|
|
211
|
-
headers,
|
|
212
|
-
path: resolvedPath,
|
|
213
|
-
body,
|
|
214
|
-
});
|
|
141
|
+
b.m("POST").h(headers).b(body);
|
|
142
|
+
return b.build();
|
|
215
143
|
};
|
|
216
144
|
exports.se_DescribeOrganizationOverviewCommand = se_DescribeOrganizationOverviewCommand;
|
|
217
145
|
const se_DescribeOrganizationResourceCollectionHealthCommand = async (input, context) => {
|
|
218
|
-
const
|
|
146
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
219
147
|
const headers = {
|
|
220
148
|
"content-type": "application/json",
|
|
221
149
|
};
|
|
222
|
-
|
|
150
|
+
b.bp("/organization/health/resource-collection");
|
|
223
151
|
let body;
|
|
224
152
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
225
153
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -228,107 +156,67 @@ const se_DescribeOrganizationResourceCollectionHealthCommand = async (input, con
|
|
|
228
156
|
OrganizationResourceCollectionType: [],
|
|
229
157
|
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
230
158
|
}));
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
hostname,
|
|
234
|
-
port,
|
|
235
|
-
method: "POST",
|
|
236
|
-
headers,
|
|
237
|
-
path: resolvedPath,
|
|
238
|
-
body,
|
|
239
|
-
});
|
|
159
|
+
b.m("POST").h(headers).b(body);
|
|
160
|
+
return b.build();
|
|
240
161
|
};
|
|
241
162
|
exports.se_DescribeOrganizationResourceCollectionHealthCommand = se_DescribeOrganizationResourceCollectionHealthCommand;
|
|
242
163
|
const se_DescribeResourceCollectionHealthCommand = async (input, context) => {
|
|
243
|
-
const
|
|
164
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
244
165
|
const headers = {};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
|
|
166
|
+
b.bp("/accounts/health/resource-collection/{ResourceCollectionType}");
|
|
167
|
+
b.p("ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
|
|
248
168
|
const query = (0, smithy_client_1.map)({
|
|
249
|
-
|
|
169
|
+
[_NT]: [, input[_NT]],
|
|
250
170
|
});
|
|
251
171
|
let body;
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
hostname,
|
|
255
|
-
port,
|
|
256
|
-
method: "GET",
|
|
257
|
-
headers,
|
|
258
|
-
path: resolvedPath,
|
|
259
|
-
query,
|
|
260
|
-
body,
|
|
261
|
-
});
|
|
172
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
173
|
+
return b.build();
|
|
262
174
|
};
|
|
263
175
|
exports.se_DescribeResourceCollectionHealthCommand = se_DescribeResourceCollectionHealthCommand;
|
|
264
176
|
const se_DescribeServiceIntegrationCommand = async (input, context) => {
|
|
265
|
-
const
|
|
177
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
266
178
|
const headers = {
|
|
267
179
|
"content-type": "application/json",
|
|
268
180
|
};
|
|
269
|
-
|
|
181
|
+
b.bp("/service-integrations");
|
|
270
182
|
let body;
|
|
271
183
|
body = "";
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
hostname,
|
|
275
|
-
port,
|
|
276
|
-
method: "GET",
|
|
277
|
-
headers,
|
|
278
|
-
path: resolvedPath,
|
|
279
|
-
body,
|
|
280
|
-
});
|
|
184
|
+
b.m("GET").h(headers).b(body);
|
|
185
|
+
return b.build();
|
|
281
186
|
};
|
|
282
187
|
exports.se_DescribeServiceIntegrationCommand = se_DescribeServiceIntegrationCommand;
|
|
283
188
|
const se_GetCostEstimationCommand = async (input, context) => {
|
|
284
|
-
const
|
|
189
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
285
190
|
const headers = {};
|
|
286
|
-
|
|
191
|
+
b.bp("/cost-estimation");
|
|
287
192
|
const query = (0, smithy_client_1.map)({
|
|
288
|
-
|
|
193
|
+
[_NT]: [, input[_NT]],
|
|
289
194
|
});
|
|
290
195
|
let body;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
hostname,
|
|
294
|
-
port,
|
|
295
|
-
method: "GET",
|
|
296
|
-
headers,
|
|
297
|
-
path: resolvedPath,
|
|
298
|
-
query,
|
|
299
|
-
body,
|
|
300
|
-
});
|
|
196
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
197
|
+
return b.build();
|
|
301
198
|
};
|
|
302
199
|
exports.se_GetCostEstimationCommand = se_GetCostEstimationCommand;
|
|
303
200
|
const se_GetResourceCollectionCommand = async (input, context) => {
|
|
304
|
-
const
|
|
201
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
305
202
|
const headers = {};
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
|
|
203
|
+
b.bp("/resource-collections/{ResourceCollectionType}");
|
|
204
|
+
b.p("ResourceCollectionType", () => input.ResourceCollectionType, "{ResourceCollectionType}", false);
|
|
309
205
|
const query = (0, smithy_client_1.map)({
|
|
310
|
-
|
|
206
|
+
[_NT]: [, input[_NT]],
|
|
311
207
|
});
|
|
312
208
|
let body;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
hostname,
|
|
316
|
-
port,
|
|
317
|
-
method: "GET",
|
|
318
|
-
headers,
|
|
319
|
-
path: resolvedPath,
|
|
320
|
-
query,
|
|
321
|
-
body,
|
|
322
|
-
});
|
|
209
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
210
|
+
return b.build();
|
|
323
211
|
};
|
|
324
212
|
exports.se_GetResourceCollectionCommand = se_GetResourceCollectionCommand;
|
|
325
213
|
const se_ListAnomaliesForInsightCommand = async (input, context) => {
|
|
326
|
-
const
|
|
214
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
327
215
|
const headers = {
|
|
328
216
|
"content-type": "application/json",
|
|
329
217
|
};
|
|
330
|
-
|
|
331
|
-
|
|
218
|
+
b.bp("/anomalies/insight/{InsightId}");
|
|
219
|
+
b.p("InsightId", () => input.InsightId, "{InsightId}", false);
|
|
332
220
|
let body;
|
|
333
221
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
222
|
AccountId: [],
|
|
@@ -337,46 +225,32 @@ const se_ListAnomaliesForInsightCommand = async (input, context) => {
|
|
|
337
225
|
NextToken: [],
|
|
338
226
|
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
339
227
|
}));
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
hostname,
|
|
343
|
-
port,
|
|
344
|
-
method: "POST",
|
|
345
|
-
headers,
|
|
346
|
-
path: resolvedPath,
|
|
347
|
-
body,
|
|
348
|
-
});
|
|
228
|
+
b.m("POST").h(headers).b(body);
|
|
229
|
+
return b.build();
|
|
349
230
|
};
|
|
350
231
|
exports.se_ListAnomaliesForInsightCommand = se_ListAnomaliesForInsightCommand;
|
|
351
232
|
const se_ListAnomalousLogGroupsCommand = async (input, context) => {
|
|
352
|
-
const
|
|
233
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
353
234
|
const headers = {
|
|
354
235
|
"content-type": "application/json",
|
|
355
236
|
};
|
|
356
|
-
|
|
237
|
+
b.bp("/list-log-anomalies");
|
|
357
238
|
let body;
|
|
358
239
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
359
240
|
InsightId: [],
|
|
360
241
|
MaxResults: [],
|
|
361
242
|
NextToken: [],
|
|
362
243
|
}));
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
hostname,
|
|
366
|
-
port,
|
|
367
|
-
method: "POST",
|
|
368
|
-
headers,
|
|
369
|
-
path: resolvedPath,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
244
|
+
b.m("POST").h(headers).b(body);
|
|
245
|
+
return b.build();
|
|
372
246
|
};
|
|
373
247
|
exports.se_ListAnomalousLogGroupsCommand = se_ListAnomalousLogGroupsCommand;
|
|
374
248
|
const se_ListEventsCommand = async (input, context) => {
|
|
375
|
-
const
|
|
249
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
250
|
const headers = {
|
|
377
251
|
"content-type": "application/json",
|
|
378
252
|
};
|
|
379
|
-
|
|
253
|
+
b.bp("/events");
|
|
380
254
|
let body;
|
|
381
255
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
382
256
|
AccountId: [],
|
|
@@ -384,90 +258,62 @@ const se_ListEventsCommand = async (input, context) => {
|
|
|
384
258
|
MaxResults: [],
|
|
385
259
|
NextToken: [],
|
|
386
260
|
}));
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
hostname,
|
|
390
|
-
port,
|
|
391
|
-
method: "POST",
|
|
392
|
-
headers,
|
|
393
|
-
path: resolvedPath,
|
|
394
|
-
body,
|
|
395
|
-
});
|
|
261
|
+
b.m("POST").h(headers).b(body);
|
|
262
|
+
return b.build();
|
|
396
263
|
};
|
|
397
264
|
exports.se_ListEventsCommand = se_ListEventsCommand;
|
|
398
265
|
const se_ListInsightsCommand = async (input, context) => {
|
|
399
|
-
const
|
|
266
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
400
267
|
const headers = {
|
|
401
268
|
"content-type": "application/json",
|
|
402
269
|
};
|
|
403
|
-
|
|
270
|
+
b.bp("/insights");
|
|
404
271
|
let body;
|
|
405
272
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
406
273
|
MaxResults: [],
|
|
407
274
|
NextToken: [],
|
|
408
275
|
StatusFilter: (_) => se_ListInsightsStatusFilter(_, context),
|
|
409
276
|
}));
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
hostname,
|
|
413
|
-
port,
|
|
414
|
-
method: "POST",
|
|
415
|
-
headers,
|
|
416
|
-
path: resolvedPath,
|
|
417
|
-
body,
|
|
418
|
-
});
|
|
277
|
+
b.m("POST").h(headers).b(body);
|
|
278
|
+
return b.build();
|
|
419
279
|
};
|
|
420
280
|
exports.se_ListInsightsCommand = se_ListInsightsCommand;
|
|
421
281
|
const se_ListMonitoredResourcesCommand = async (input, context) => {
|
|
422
|
-
const
|
|
282
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
423
283
|
const headers = {
|
|
424
284
|
"content-type": "application/json",
|
|
425
285
|
};
|
|
426
|
-
|
|
286
|
+
b.bp("/monitoredResources");
|
|
427
287
|
let body;
|
|
428
288
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
429
289
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
430
290
|
MaxResults: [],
|
|
431
291
|
NextToken: [],
|
|
432
292
|
}));
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
hostname,
|
|
436
|
-
port,
|
|
437
|
-
method: "POST",
|
|
438
|
-
headers,
|
|
439
|
-
path: resolvedPath,
|
|
440
|
-
body,
|
|
441
|
-
});
|
|
293
|
+
b.m("POST").h(headers).b(body);
|
|
294
|
+
return b.build();
|
|
442
295
|
};
|
|
443
296
|
exports.se_ListMonitoredResourcesCommand = se_ListMonitoredResourcesCommand;
|
|
444
297
|
const se_ListNotificationChannelsCommand = async (input, context) => {
|
|
445
|
-
const
|
|
298
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
446
299
|
const headers = {
|
|
447
300
|
"content-type": "application/json",
|
|
448
301
|
};
|
|
449
|
-
|
|
302
|
+
b.bp("/channels");
|
|
450
303
|
let body;
|
|
451
304
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
452
305
|
NextToken: [],
|
|
453
306
|
}));
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
hostname,
|
|
457
|
-
port,
|
|
458
|
-
method: "POST",
|
|
459
|
-
headers,
|
|
460
|
-
path: resolvedPath,
|
|
461
|
-
body,
|
|
462
|
-
});
|
|
307
|
+
b.m("POST").h(headers).b(body);
|
|
308
|
+
return b.build();
|
|
463
309
|
};
|
|
464
310
|
exports.se_ListNotificationChannelsCommand = se_ListNotificationChannelsCommand;
|
|
465
311
|
const se_ListOrganizationInsightsCommand = async (input, context) => {
|
|
466
|
-
const
|
|
312
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
467
313
|
const headers = {
|
|
468
314
|
"content-type": "application/json",
|
|
469
315
|
};
|
|
470
|
-
|
|
316
|
+
b.bp("/organization/insights");
|
|
471
317
|
let body;
|
|
472
318
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
473
319
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -476,23 +322,16 @@ const se_ListOrganizationInsightsCommand = async (input, context) => {
|
|
|
476
322
|
OrganizationalUnitIds: (_) => (0, smithy_client_1._json)(_),
|
|
477
323
|
StatusFilter: (_) => se_ListInsightsStatusFilter(_, context),
|
|
478
324
|
}));
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
hostname,
|
|
482
|
-
port,
|
|
483
|
-
method: "POST",
|
|
484
|
-
headers,
|
|
485
|
-
path: resolvedPath,
|
|
486
|
-
body,
|
|
487
|
-
});
|
|
325
|
+
b.m("POST").h(headers).b(body);
|
|
326
|
+
return b.build();
|
|
488
327
|
};
|
|
489
328
|
exports.se_ListOrganizationInsightsCommand = se_ListOrganizationInsightsCommand;
|
|
490
329
|
const se_ListRecommendationsCommand = async (input, context) => {
|
|
491
|
-
const
|
|
330
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
492
331
|
const headers = {
|
|
493
332
|
"content-type": "application/json",
|
|
494
333
|
};
|
|
495
|
-
|
|
334
|
+
b.bp("/recommendations");
|
|
496
335
|
let body;
|
|
497
336
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
498
337
|
AccountId: [],
|
|
@@ -500,61 +339,40 @@ const se_ListRecommendationsCommand = async (input, context) => {
|
|
|
500
339
|
Locale: [],
|
|
501
340
|
NextToken: [],
|
|
502
341
|
}));
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
hostname,
|
|
506
|
-
port,
|
|
507
|
-
method: "POST",
|
|
508
|
-
headers,
|
|
509
|
-
path: resolvedPath,
|
|
510
|
-
body,
|
|
511
|
-
});
|
|
342
|
+
b.m("POST").h(headers).b(body);
|
|
343
|
+
return b.build();
|
|
512
344
|
};
|
|
513
345
|
exports.se_ListRecommendationsCommand = se_ListRecommendationsCommand;
|
|
514
346
|
const se_PutFeedbackCommand = async (input, context) => {
|
|
515
|
-
const
|
|
347
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
516
348
|
const headers = {
|
|
517
349
|
"content-type": "application/json",
|
|
518
350
|
};
|
|
519
|
-
|
|
351
|
+
b.bp("/feedback");
|
|
520
352
|
let body;
|
|
521
353
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
522
354
|
InsightFeedback: (_) => (0, smithy_client_1._json)(_),
|
|
523
355
|
}));
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
hostname,
|
|
527
|
-
port,
|
|
528
|
-
method: "PUT",
|
|
529
|
-
headers,
|
|
530
|
-
path: resolvedPath,
|
|
531
|
-
body,
|
|
532
|
-
});
|
|
356
|
+
b.m("PUT").h(headers).b(body);
|
|
357
|
+
return b.build();
|
|
533
358
|
};
|
|
534
359
|
exports.se_PutFeedbackCommand = se_PutFeedbackCommand;
|
|
535
360
|
const se_RemoveNotificationChannelCommand = async (input, context) => {
|
|
536
|
-
const
|
|
361
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
537
362
|
const headers = {};
|
|
538
|
-
|
|
539
|
-
|
|
363
|
+
b.bp("/channels/{Id}");
|
|
364
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
540
365
|
let body;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
hostname,
|
|
544
|
-
port,
|
|
545
|
-
method: "DELETE",
|
|
546
|
-
headers,
|
|
547
|
-
path: resolvedPath,
|
|
548
|
-
body,
|
|
549
|
-
});
|
|
366
|
+
b.m("DELETE").h(headers).b(body);
|
|
367
|
+
return b.build();
|
|
550
368
|
};
|
|
551
369
|
exports.se_RemoveNotificationChannelCommand = se_RemoveNotificationChannelCommand;
|
|
552
370
|
const se_SearchInsightsCommand = async (input, context) => {
|
|
553
|
-
const
|
|
371
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
554
372
|
const headers = {
|
|
555
373
|
"content-type": "application/json",
|
|
556
374
|
};
|
|
557
|
-
|
|
375
|
+
b.bp("/insights/search");
|
|
558
376
|
let body;
|
|
559
377
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
560
378
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -563,23 +381,16 @@ const se_SearchInsightsCommand = async (input, context) => {
|
|
|
563
381
|
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
564
382
|
Type: [],
|
|
565
383
|
}));
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
hostname,
|
|
569
|
-
port,
|
|
570
|
-
method: "POST",
|
|
571
|
-
headers,
|
|
572
|
-
path: resolvedPath,
|
|
573
|
-
body,
|
|
574
|
-
});
|
|
384
|
+
b.m("POST").h(headers).b(body);
|
|
385
|
+
return b.build();
|
|
575
386
|
};
|
|
576
387
|
exports.se_SearchInsightsCommand = se_SearchInsightsCommand;
|
|
577
388
|
const se_SearchOrganizationInsightsCommand = async (input, context) => {
|
|
578
|
-
const
|
|
389
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
579
390
|
const headers = {
|
|
580
391
|
"content-type": "application/json",
|
|
581
392
|
};
|
|
582
|
-
|
|
393
|
+
b.bp("/organization/insights/search");
|
|
583
394
|
let body;
|
|
584
395
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
585
396
|
AccountIds: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -589,101 +400,66 @@ const se_SearchOrganizationInsightsCommand = async (input, context) => {
|
|
|
589
400
|
StartTimeRange: (_) => se_StartTimeRange(_, context),
|
|
590
401
|
Type: [],
|
|
591
402
|
}));
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
hostname,
|
|
595
|
-
port,
|
|
596
|
-
method: "POST",
|
|
597
|
-
headers,
|
|
598
|
-
path: resolvedPath,
|
|
599
|
-
body,
|
|
600
|
-
});
|
|
403
|
+
b.m("POST").h(headers).b(body);
|
|
404
|
+
return b.build();
|
|
601
405
|
};
|
|
602
406
|
exports.se_SearchOrganizationInsightsCommand = se_SearchOrganizationInsightsCommand;
|
|
603
407
|
const se_StartCostEstimationCommand = async (input, context) => {
|
|
604
|
-
const
|
|
408
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
605
409
|
const headers = {
|
|
606
410
|
"content-type": "application/json",
|
|
607
411
|
};
|
|
608
|
-
|
|
412
|
+
b.bp("/cost-estimation");
|
|
609
413
|
let body;
|
|
610
414
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
611
415
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
612
416
|
ResourceCollection: (_) => (0, smithy_client_1._json)(_),
|
|
613
417
|
}));
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
hostname,
|
|
617
|
-
port,
|
|
618
|
-
method: "PUT",
|
|
619
|
-
headers,
|
|
620
|
-
path: resolvedPath,
|
|
621
|
-
body,
|
|
622
|
-
});
|
|
418
|
+
b.m("PUT").h(headers).b(body);
|
|
419
|
+
return b.build();
|
|
623
420
|
};
|
|
624
421
|
exports.se_StartCostEstimationCommand = se_StartCostEstimationCommand;
|
|
625
422
|
const se_UpdateEventSourcesConfigCommand = async (input, context) => {
|
|
626
|
-
const
|
|
423
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
627
424
|
const headers = {
|
|
628
425
|
"content-type": "application/json",
|
|
629
426
|
};
|
|
630
|
-
|
|
427
|
+
b.bp("/event-sources");
|
|
631
428
|
let body;
|
|
632
429
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
430
|
EventSources: (_) => (0, smithy_client_1._json)(_),
|
|
634
431
|
}));
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
hostname,
|
|
638
|
-
port,
|
|
639
|
-
method: "PUT",
|
|
640
|
-
headers,
|
|
641
|
-
path: resolvedPath,
|
|
642
|
-
body,
|
|
643
|
-
});
|
|
432
|
+
b.m("PUT").h(headers).b(body);
|
|
433
|
+
return b.build();
|
|
644
434
|
};
|
|
645
435
|
exports.se_UpdateEventSourcesConfigCommand = se_UpdateEventSourcesConfigCommand;
|
|
646
436
|
const se_UpdateResourceCollectionCommand = async (input, context) => {
|
|
647
|
-
const
|
|
437
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
648
438
|
const headers = {
|
|
649
439
|
"content-type": "application/json",
|
|
650
440
|
};
|
|
651
|
-
|
|
441
|
+
b.bp("/resource-collections");
|
|
652
442
|
let body;
|
|
653
443
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
654
444
|
Action: [],
|
|
655
445
|
ResourceCollection: (_) => (0, smithy_client_1._json)(_),
|
|
656
446
|
}));
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
hostname,
|
|
660
|
-
port,
|
|
661
|
-
method: "PUT",
|
|
662
|
-
headers,
|
|
663
|
-
path: resolvedPath,
|
|
664
|
-
body,
|
|
665
|
-
});
|
|
447
|
+
b.m("PUT").h(headers).b(body);
|
|
448
|
+
return b.build();
|
|
666
449
|
};
|
|
667
450
|
exports.se_UpdateResourceCollectionCommand = se_UpdateResourceCollectionCommand;
|
|
668
451
|
const se_UpdateServiceIntegrationCommand = async (input, context) => {
|
|
669
|
-
const
|
|
452
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
670
453
|
const headers = {
|
|
671
454
|
"content-type": "application/json",
|
|
672
455
|
};
|
|
673
|
-
|
|
456
|
+
b.bp("/service-integrations");
|
|
674
457
|
let body;
|
|
675
458
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
676
459
|
ServiceIntegration: (_) => (0, smithy_client_1._json)(_),
|
|
677
460
|
}));
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
hostname,
|
|
681
|
-
port,
|
|
682
|
-
method: "PUT",
|
|
683
|
-
headers,
|
|
684
|
-
path: resolvedPath,
|
|
685
|
-
body,
|
|
686
|
-
});
|
|
461
|
+
b.m("PUT").h(headers).b(body);
|
|
462
|
+
return b.build();
|
|
687
463
|
};
|
|
688
464
|
exports.se_UpdateServiceIntegrationCommand = se_UpdateServiceIntegrationCommand;
|
|
689
465
|
const de_AddNotificationChannelCommand = async (output, context) => {
|
|
@@ -2132,10 +1908,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2132
1908
|
};
|
|
2133
1909
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2134
1910
|
const contents = (0, smithy_client_1.map)({
|
|
2135
|
-
|
|
2136
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2137
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2138
|
-
],
|
|
1911
|
+
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
2139
1912
|
});
|
|
2140
1913
|
const data = parsedOutput.body;
|
|
2141
1914
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -2178,10 +1951,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2178
1951
|
};
|
|
2179
1952
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2180
1953
|
const contents = (0, smithy_client_1.map)({
|
|
2181
|
-
|
|
2182
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2183
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2184
|
-
],
|
|
1954
|
+
[_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
2185
1955
|
});
|
|
2186
1956
|
const data = parsedOutput.body;
|
|
2187
1957
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -2700,6 +2470,10 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2700
2470
|
value !== "" &&
|
|
2701
2471
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2702
2472
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2473
|
+
const _AI = "AccountId";
|
|
2474
|
+
const _NT = "NextToken";
|
|
2475
|
+
const _RAS = "RetryAfterSeconds";
|
|
2476
|
+
const _ra = "retry-after";
|
|
2703
2477
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2704
2478
|
if (encoded.length) {
|
|
2705
2479
|
return JSON.parse(encoded);
|