@aws-sdk/client-devops-guru 3.39.0 → 3.43.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/CHANGELOG.md +41 -0
- package/README.md +14 -16
- package/dist-cjs/DevOpsGuru.js +75 -0
- package/dist-cjs/commands/DescribeOrganizationHealthCommand.js +36 -0
- package/dist-cjs/commands/DescribeOrganizationOverviewCommand.js +36 -0
- package/dist-cjs/commands/DescribeOrganizationResourceCollectionHealthCommand.js +36 -0
- package/dist-cjs/commands/ListOrganizationInsightsCommand.js +36 -0
- package/dist-cjs/commands/SearchOrganizationInsightsCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +126 -12
- package/dist-cjs/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +34 -0
- package/dist-cjs/pagination/ListOrganizationInsightsPaginator.js +35 -0
- package/dist-cjs/pagination/SearchOrganizationInsightsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +773 -21
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/DevOpsGuru.js +75 -0
- package/dist-es/commands/DescribeOrganizationHealthCommand.js +39 -0
- package/dist-es/commands/DescribeOrganizationOverviewCommand.js +39 -0
- package/dist-es/commands/DescribeOrganizationResourceCollectionHealthCommand.js +39 -0
- package/dist-es/commands/ListOrganizationInsightsCommand.js +39 -0
- package/dist-es/commands/SearchOrganizationInsightsCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +89 -9
- package/dist-es/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +73 -0
- package/dist-es/pagination/ListOrganizationInsightsPaginator.js +74 -0
- package/dist-es/pagination/SearchOrganizationInsightsPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +826 -19
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/DevOpsGuru.d.ts +114 -92
- package/dist-types/DevOpsGuruClient.d.ts +27 -16
- package/dist-types/commands/AddNotificationChannelCommand.d.ts +5 -7
- package/dist-types/commands/DescribeAccountHealthCommand.d.ts +4 -5
- package/dist-types/commands/DescribeAccountOverviewCommand.d.ts +4 -5
- package/dist-types/commands/DescribeAnomalyCommand.d.ts +2 -4
- package/dist-types/commands/DescribeFeedbackCommand.d.ts +2 -3
- package/dist-types/commands/DescribeInsightCommand.d.ts +2 -4
- package/dist-types/commands/DescribeOrganizationHealthCommand.d.ts +36 -0
- package/dist-types/commands/DescribeOrganizationOverviewCommand.d.ts +36 -0
- package/dist-types/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +37 -0
- package/dist-types/commands/DescribeResourceCollectionHealthCommand.d.ts +5 -6
- package/dist-types/commands/DescribeServiceIntegrationCommand.d.ts +3 -5
- package/dist-types/commands/GetCostEstimationCommand.d.ts +2 -2
- package/dist-types/commands/GetResourceCollectionCommand.d.ts +4 -5
- package/dist-types/commands/ListAnomaliesForInsightCommand.d.ts +3 -4
- package/dist-types/commands/ListEventsCommand.d.ts +3 -4
- package/dist-types/commands/ListInsightsCommand.d.ts +4 -5
- package/dist-types/commands/ListNotificationChannelsCommand.d.ts +5 -6
- package/dist-types/commands/ListOrganizationInsightsCommand.d.ts +35 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +3 -4
- package/dist-types/commands/PutFeedbackCommand.d.ts +2 -4
- package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +4 -5
- package/dist-types/commands/SearchInsightsCommand.d.ts +9 -10
- package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +42 -0
- package/dist-types/commands/StartCostEstimationCommand.d.ts +3 -2
- package/dist-types/commands/UpdateResourceCollectionCommand.d.ts +4 -4
- package/dist-types/commands/UpdateServiceIntegrationCommand.d.ts +4 -5
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +1000 -832
- package/dist-types/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +4 -0
- package/dist-types/pagination/ListOrganizationInsightsPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchOrganizationInsightsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/DevOpsGuru.d.ts +25 -0
- package/dist-types/ts3.4/DevOpsGuruClient.d.ts +11 -2
- package/dist-types/ts3.4/commands/DescribeOrganizationHealthCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeOrganizationOverviewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListOrganizationInsightsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SearchOrganizationInsightsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +274 -5
- package/dist-types/ts3.4/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListOrganizationInsightsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchOrganizationInsightsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -77,7 +77,7 @@ export var serializeAws_restJson1DescribeAccountOverviewCommand = function (inpu
|
|
|
77
77
|
});
|
|
78
78
|
}); };
|
|
79
79
|
export var serializeAws_restJson1DescribeAnomalyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
80
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
80
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
81
81
|
return __generator(this, function (_c) {
|
|
82
82
|
switch (_c.label) {
|
|
83
83
|
case 0: return [4, context.endpoint()];
|
|
@@ -95,6 +95,7 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
|
|
|
95
95
|
else {
|
|
96
96
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
97
97
|
}
|
|
98
|
+
query = __assign({}, (input.AccountId !== undefined && { AccountId: input.AccountId }));
|
|
98
99
|
return [2, new __HttpRequest({
|
|
99
100
|
protocol: protocol,
|
|
100
101
|
hostname: hostname,
|
|
@@ -102,6 +103,7 @@ export var serializeAws_restJson1DescribeAnomalyCommand = function (input, conte
|
|
|
102
103
|
method: "GET",
|
|
103
104
|
headers: headers,
|
|
104
105
|
path: resolvedPath,
|
|
106
|
+
query: query,
|
|
105
107
|
body: body,
|
|
106
108
|
})];
|
|
107
109
|
}
|
|
@@ -132,7 +134,7 @@ export var serializeAws_restJson1DescribeFeedbackCommand = function (input, cont
|
|
|
132
134
|
});
|
|
133
135
|
}); };
|
|
134
136
|
export var serializeAws_restJson1DescribeInsightCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
137
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
136
138
|
return __generator(this, function (_c) {
|
|
137
139
|
switch (_c.label) {
|
|
138
140
|
case 0: return [4, context.endpoint()];
|
|
@@ -150,6 +152,7 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
|
|
|
150
152
|
else {
|
|
151
153
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
152
154
|
}
|
|
155
|
+
query = __assign({}, (input.AccountId !== undefined && { AccountId: input.AccountId }));
|
|
153
156
|
return [2, new __HttpRequest({
|
|
154
157
|
protocol: protocol,
|
|
155
158
|
hostname: hostname,
|
|
@@ -157,6 +160,95 @@ export var serializeAws_restJson1DescribeInsightCommand = function (input, conte
|
|
|
157
160
|
method: "GET",
|
|
158
161
|
headers: headers,
|
|
159
162
|
path: resolvedPath,
|
|
163
|
+
query: query,
|
|
164
|
+
body: body,
|
|
165
|
+
})];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}); };
|
|
169
|
+
export var serializeAws_restJson1DescribeOrganizationHealthCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
170
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
171
|
+
return __generator(this, function (_c) {
|
|
172
|
+
switch (_c.label) {
|
|
173
|
+
case 0: return [4, context.endpoint()];
|
|
174
|
+
case 1:
|
|
175
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
176
|
+
headers = {
|
|
177
|
+
"content-type": "application/json",
|
|
178
|
+
};
|
|
179
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health";
|
|
180
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
|
|
181
|
+
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.OrganizationalUnitIds !== undefined &&
|
|
182
|
+
input.OrganizationalUnitIds !== null && {
|
|
183
|
+
OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
184
|
+
})));
|
|
185
|
+
return [2, new __HttpRequest({
|
|
186
|
+
protocol: protocol,
|
|
187
|
+
hostname: hostname,
|
|
188
|
+
port: port,
|
|
189
|
+
method: "POST",
|
|
190
|
+
headers: headers,
|
|
191
|
+
path: resolvedPath,
|
|
192
|
+
body: body,
|
|
193
|
+
})];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}); };
|
|
197
|
+
export var serializeAws_restJson1DescribeOrganizationOverviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
199
|
+
return __generator(this, function (_c) {
|
|
200
|
+
switch (_c.label) {
|
|
201
|
+
case 0: return [4, context.endpoint()];
|
|
202
|
+
case 1:
|
|
203
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
204
|
+
headers = {
|
|
205
|
+
"content-type": "application/json",
|
|
206
|
+
};
|
|
207
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/overview";
|
|
208
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
|
|
209
|
+
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.FromTime !== undefined &&
|
|
210
|
+
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.OrganizationalUnitIds !== undefined &&
|
|
211
|
+
input.OrganizationalUnitIds !== null && {
|
|
212
|
+
OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
213
|
+
})), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) })));
|
|
214
|
+
return [2, new __HttpRequest({
|
|
215
|
+
protocol: protocol,
|
|
216
|
+
hostname: hostname,
|
|
217
|
+
port: port,
|
|
218
|
+
method: "POST",
|
|
219
|
+
headers: headers,
|
|
220
|
+
path: resolvedPath,
|
|
221
|
+
body: body,
|
|
222
|
+
})];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
226
|
+
export var serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
228
|
+
return __generator(this, function (_c) {
|
|
229
|
+
switch (_c.label) {
|
|
230
|
+
case 0: return [4, context.endpoint()];
|
|
231
|
+
case 1:
|
|
232
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
233
|
+
headers = {
|
|
234
|
+
"content-type": "application/json",
|
|
235
|
+
};
|
|
236
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/health/resource-collection";
|
|
237
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
|
|
238
|
+
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationResourceCollectionType !== undefined &&
|
|
239
|
+
input.OrganizationResourceCollectionType !== null && {
|
|
240
|
+
OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
|
|
241
|
+
})), (input.OrganizationalUnitIds !== undefined &&
|
|
242
|
+
input.OrganizationalUnitIds !== null && {
|
|
243
|
+
OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
244
|
+
})));
|
|
245
|
+
return [2, new __HttpRequest({
|
|
246
|
+
protocol: protocol,
|
|
247
|
+
hostname: hostname,
|
|
248
|
+
port: port,
|
|
249
|
+
method: "POST",
|
|
250
|
+
headers: headers,
|
|
251
|
+
path: resolvedPath,
|
|
160
252
|
body: body,
|
|
161
253
|
})];
|
|
162
254
|
}
|
|
@@ -298,7 +390,7 @@ export var serializeAws_restJson1ListAnomaliesForInsightCommand = function (inpu
|
|
|
298
390
|
else {
|
|
299
391
|
throw new Error("No value provided for input HTTP label: InsightId.");
|
|
300
392
|
}
|
|
301
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
|
|
393
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
|
|
302
394
|
input.StartTimeRange !== null && {
|
|
303
395
|
StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
|
|
304
396
|
})));
|
|
@@ -325,7 +417,7 @@ export var serializeAws_restJson1ListEventsCommand = function (input, context) {
|
|
|
325
417
|
"content-type": "application/json",
|
|
326
418
|
};
|
|
327
419
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/events";
|
|
328
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
420
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.Filters !== undefined &&
|
|
329
421
|
input.Filters !== null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
330
422
|
return [2, new __HttpRequest({
|
|
331
423
|
protocol: protocol,
|
|
@@ -390,6 +482,39 @@ export var serializeAws_restJson1ListNotificationChannelsCommand = function (inp
|
|
|
390
482
|
}
|
|
391
483
|
});
|
|
392
484
|
}); };
|
|
485
|
+
export var serializeAws_restJson1ListOrganizationInsightsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
487
|
+
return __generator(this, function (_c) {
|
|
488
|
+
switch (_c.label) {
|
|
489
|
+
case 0: return [4, context.endpoint()];
|
|
490
|
+
case 1:
|
|
491
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
492
|
+
headers = {
|
|
493
|
+
"content-type": "application/json",
|
|
494
|
+
};
|
|
495
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights";
|
|
496
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
|
|
497
|
+
input.AccountIds !== null && {
|
|
498
|
+
AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
|
|
499
|
+
})), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.OrganizationalUnitIds !== undefined &&
|
|
500
|
+
input.OrganizationalUnitIds !== null && {
|
|
501
|
+
OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
502
|
+
})), (input.StatusFilter !== undefined &&
|
|
503
|
+
input.StatusFilter !== null && {
|
|
504
|
+
StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
|
|
505
|
+
})));
|
|
506
|
+
return [2, new __HttpRequest({
|
|
507
|
+
protocol: protocol,
|
|
508
|
+
hostname: hostname,
|
|
509
|
+
port: port,
|
|
510
|
+
method: "POST",
|
|
511
|
+
headers: headers,
|
|
512
|
+
path: resolvedPath,
|
|
513
|
+
body: body,
|
|
514
|
+
})];
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}); };
|
|
393
518
|
export var serializeAws_restJson1ListRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
394
519
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
395
520
|
return __generator(this, function (_c) {
|
|
@@ -401,7 +526,7 @@ export var serializeAws_restJson1ListRecommendationsCommand = function (input, c
|
|
|
401
526
|
"content-type": "application/json",
|
|
402
527
|
};
|
|
403
528
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/recommendations";
|
|
404
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
529
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId })), (input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
405
530
|
return [2, new __HttpRequest({
|
|
406
531
|
protocol: protocol,
|
|
407
532
|
hostname: hostname,
|
|
@@ -500,6 +625,39 @@ export var serializeAws_restJson1SearchInsightsCommand = function (input, contex
|
|
|
500
625
|
}
|
|
501
626
|
});
|
|
502
627
|
}); };
|
|
628
|
+
export var serializeAws_restJson1SearchOrganizationInsightsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
629
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
630
|
+
return __generator(this, function (_c) {
|
|
631
|
+
switch (_c.label) {
|
|
632
|
+
case 0: return [4, context.endpoint()];
|
|
633
|
+
case 1:
|
|
634
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
635
|
+
headers = {
|
|
636
|
+
"content-type": "application/json",
|
|
637
|
+
};
|
|
638
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/organization/insights/search";
|
|
639
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountIds !== undefined &&
|
|
640
|
+
input.AccountIds !== null && {
|
|
641
|
+
AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
|
|
642
|
+
})), (input.Filters !== undefined &&
|
|
643
|
+
input.Filters !== null && {
|
|
644
|
+
Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
|
|
645
|
+
})), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StartTimeRange !== undefined &&
|
|
646
|
+
input.StartTimeRange !== null && {
|
|
647
|
+
StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
|
|
648
|
+
})), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
649
|
+
return [2, new __HttpRequest({
|
|
650
|
+
protocol: protocol,
|
|
651
|
+
hostname: hostname,
|
|
652
|
+
port: port,
|
|
653
|
+
method: "POST",
|
|
654
|
+
headers: headers,
|
|
655
|
+
path: resolvedPath,
|
|
656
|
+
body: body,
|
|
657
|
+
})];
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
}); };
|
|
503
661
|
export var serializeAws_restJson1StartCostEstimationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
504
662
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
505
663
|
var _c;
|
|
@@ -1174,6 +1332,292 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
|
|
|
1174
1332
|
}
|
|
1175
1333
|
});
|
|
1176
1334
|
}); };
|
|
1335
|
+
export var deserializeAws_restJson1DescribeOrganizationHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1336
|
+
var contents, data, _a, _b;
|
|
1337
|
+
return __generator(this, function (_c) {
|
|
1338
|
+
switch (_c.label) {
|
|
1339
|
+
case 0:
|
|
1340
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
+
return [2, deserializeAws_restJson1DescribeOrganizationHealthCommandError(output, context)];
|
|
1342
|
+
}
|
|
1343
|
+
contents = {
|
|
1344
|
+
$metadata: deserializeMetadata(output),
|
|
1345
|
+
MetricsAnalyzed: undefined,
|
|
1346
|
+
OpenProactiveInsights: undefined,
|
|
1347
|
+
OpenReactiveInsights: undefined,
|
|
1348
|
+
ResourceHours: undefined,
|
|
1349
|
+
};
|
|
1350
|
+
_a = __expectNonNull;
|
|
1351
|
+
_b = __expectObject;
|
|
1352
|
+
return [4, parseBody(output.body, context)];
|
|
1353
|
+
case 1:
|
|
1354
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1355
|
+
if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
|
|
1356
|
+
contents.MetricsAnalyzed = __expectInt32(data.MetricsAnalyzed);
|
|
1357
|
+
}
|
|
1358
|
+
if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
|
|
1359
|
+
contents.OpenProactiveInsights = __expectInt32(data.OpenProactiveInsights);
|
|
1360
|
+
}
|
|
1361
|
+
if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) {
|
|
1362
|
+
contents.OpenReactiveInsights = __expectInt32(data.OpenReactiveInsights);
|
|
1363
|
+
}
|
|
1364
|
+
if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
|
|
1365
|
+
contents.ResourceHours = __expectLong(data.ResourceHours);
|
|
1366
|
+
}
|
|
1367
|
+
return [2, Promise.resolve(contents)];
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
}); };
|
|
1371
|
+
var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1372
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1373
|
+
var _g;
|
|
1374
|
+
return __generator(this, function (_h) {
|
|
1375
|
+
switch (_h.label) {
|
|
1376
|
+
case 0:
|
|
1377
|
+
_a = [__assign({}, output)];
|
|
1378
|
+
_g = {};
|
|
1379
|
+
return [4, parseBody(output.body, context)];
|
|
1380
|
+
case 1:
|
|
1381
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1382
|
+
errorCode = "UnknownError";
|
|
1383
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
+
_b = errorCode;
|
|
1385
|
+
switch (_b) {
|
|
1386
|
+
case "AccessDeniedException": return [3, 2];
|
|
1387
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1388
|
+
case "InternalServerException": return [3, 4];
|
|
1389
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1390
|
+
case "ThrottlingException": return [3, 6];
|
|
1391
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1392
|
+
case "ValidationException": return [3, 8];
|
|
1393
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1394
|
+
}
|
|
1395
|
+
return [3, 10];
|
|
1396
|
+
case 2:
|
|
1397
|
+
_c = [{}];
|
|
1398
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1399
|
+
case 3:
|
|
1400
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1401
|
+
return [3, 11];
|
|
1402
|
+
case 4:
|
|
1403
|
+
_d = [{}];
|
|
1404
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1405
|
+
case 5:
|
|
1406
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1407
|
+
return [3, 11];
|
|
1408
|
+
case 6:
|
|
1409
|
+
_e = [{}];
|
|
1410
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1411
|
+
case 7:
|
|
1412
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1413
|
+
return [3, 11];
|
|
1414
|
+
case 8:
|
|
1415
|
+
_f = [{}];
|
|
1416
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1417
|
+
case 9:
|
|
1418
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1419
|
+
return [3, 11];
|
|
1420
|
+
case 10:
|
|
1421
|
+
parsedBody = parsedOutput.body;
|
|
1422
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1423
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1424
|
+
_h.label = 11;
|
|
1425
|
+
case 11:
|
|
1426
|
+
message = response.message || response.Message || errorCode;
|
|
1427
|
+
response.message = message;
|
|
1428
|
+
delete response.Message;
|
|
1429
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1432
|
+
}); };
|
|
1433
|
+
export var deserializeAws_restJson1DescribeOrganizationOverviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1434
|
+
var contents, data, _a, _b;
|
|
1435
|
+
return __generator(this, function (_c) {
|
|
1436
|
+
switch (_c.label) {
|
|
1437
|
+
case 0:
|
|
1438
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1439
|
+
return [2, deserializeAws_restJson1DescribeOrganizationOverviewCommandError(output, context)];
|
|
1440
|
+
}
|
|
1441
|
+
contents = {
|
|
1442
|
+
$metadata: deserializeMetadata(output),
|
|
1443
|
+
ProactiveInsights: undefined,
|
|
1444
|
+
ReactiveInsights: undefined,
|
|
1445
|
+
};
|
|
1446
|
+
_a = __expectNonNull;
|
|
1447
|
+
_b = __expectObject;
|
|
1448
|
+
return [4, parseBody(output.body, context)];
|
|
1449
|
+
case 1:
|
|
1450
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1451
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
1452
|
+
contents.ProactiveInsights = __expectInt32(data.ProactiveInsights);
|
|
1453
|
+
}
|
|
1454
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
1455
|
+
contents.ReactiveInsights = __expectInt32(data.ReactiveInsights);
|
|
1456
|
+
}
|
|
1457
|
+
return [2, Promise.resolve(contents)];
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
}); };
|
|
1461
|
+
var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1462
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1463
|
+
var _g;
|
|
1464
|
+
return __generator(this, function (_h) {
|
|
1465
|
+
switch (_h.label) {
|
|
1466
|
+
case 0:
|
|
1467
|
+
_a = [__assign({}, output)];
|
|
1468
|
+
_g = {};
|
|
1469
|
+
return [4, parseBody(output.body, context)];
|
|
1470
|
+
case 1:
|
|
1471
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1472
|
+
errorCode = "UnknownError";
|
|
1473
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
+
_b = errorCode;
|
|
1475
|
+
switch (_b) {
|
|
1476
|
+
case "AccessDeniedException": return [3, 2];
|
|
1477
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1478
|
+
case "InternalServerException": return [3, 4];
|
|
1479
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1480
|
+
case "ThrottlingException": return [3, 6];
|
|
1481
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1482
|
+
case "ValidationException": return [3, 8];
|
|
1483
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1484
|
+
}
|
|
1485
|
+
return [3, 10];
|
|
1486
|
+
case 2:
|
|
1487
|
+
_c = [{}];
|
|
1488
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1489
|
+
case 3:
|
|
1490
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1491
|
+
return [3, 11];
|
|
1492
|
+
case 4:
|
|
1493
|
+
_d = [{}];
|
|
1494
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1495
|
+
case 5:
|
|
1496
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
+
return [3, 11];
|
|
1498
|
+
case 6:
|
|
1499
|
+
_e = [{}];
|
|
1500
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1501
|
+
case 7:
|
|
1502
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1503
|
+
return [3, 11];
|
|
1504
|
+
case 8:
|
|
1505
|
+
_f = [{}];
|
|
1506
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1507
|
+
case 9:
|
|
1508
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1509
|
+
return [3, 11];
|
|
1510
|
+
case 10:
|
|
1511
|
+
parsedBody = parsedOutput.body;
|
|
1512
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1513
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1514
|
+
_h.label = 11;
|
|
1515
|
+
case 11:
|
|
1516
|
+
message = response.message || response.Message || errorCode;
|
|
1517
|
+
response.message = message;
|
|
1518
|
+
delete response.Message;
|
|
1519
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1520
|
+
}
|
|
1521
|
+
});
|
|
1522
|
+
}); };
|
|
1523
|
+
export var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1524
|
+
var contents, data, _a, _b;
|
|
1525
|
+
return __generator(this, function (_c) {
|
|
1526
|
+
switch (_c.label) {
|
|
1527
|
+
case 0:
|
|
1528
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
|
+
return [2, deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError(output, context)];
|
|
1530
|
+
}
|
|
1531
|
+
contents = {
|
|
1532
|
+
$metadata: deserializeMetadata(output),
|
|
1533
|
+
Account: undefined,
|
|
1534
|
+
CloudFormation: undefined,
|
|
1535
|
+
NextToken: undefined,
|
|
1536
|
+
Service: undefined,
|
|
1537
|
+
};
|
|
1538
|
+
_a = __expectNonNull;
|
|
1539
|
+
_b = __expectObject;
|
|
1540
|
+
return [4, parseBody(output.body, context)];
|
|
1541
|
+
case 1:
|
|
1542
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1543
|
+
if (data.Account !== undefined && data.Account !== null) {
|
|
1544
|
+
contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
|
|
1545
|
+
}
|
|
1546
|
+
if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
|
|
1547
|
+
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1548
|
+
}
|
|
1549
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1550
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1551
|
+
}
|
|
1552
|
+
if (data.Service !== undefined && data.Service !== null) {
|
|
1553
|
+
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1554
|
+
}
|
|
1555
|
+
return [2, Promise.resolve(contents)];
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
}); };
|
|
1559
|
+
var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1560
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1561
|
+
var _g;
|
|
1562
|
+
return __generator(this, function (_h) {
|
|
1563
|
+
switch (_h.label) {
|
|
1564
|
+
case 0:
|
|
1565
|
+
_a = [__assign({}, output)];
|
|
1566
|
+
_g = {};
|
|
1567
|
+
return [4, parseBody(output.body, context)];
|
|
1568
|
+
case 1:
|
|
1569
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1570
|
+
errorCode = "UnknownError";
|
|
1571
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
+
_b = errorCode;
|
|
1573
|
+
switch (_b) {
|
|
1574
|
+
case "AccessDeniedException": return [3, 2];
|
|
1575
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1576
|
+
case "InternalServerException": return [3, 4];
|
|
1577
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1578
|
+
case "ThrottlingException": return [3, 6];
|
|
1579
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1580
|
+
case "ValidationException": return [3, 8];
|
|
1581
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1582
|
+
}
|
|
1583
|
+
return [3, 10];
|
|
1584
|
+
case 2:
|
|
1585
|
+
_c = [{}];
|
|
1586
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1587
|
+
case 3:
|
|
1588
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1589
|
+
return [3, 11];
|
|
1590
|
+
case 4:
|
|
1591
|
+
_d = [{}];
|
|
1592
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1593
|
+
case 5:
|
|
1594
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1595
|
+
return [3, 11];
|
|
1596
|
+
case 6:
|
|
1597
|
+
_e = [{}];
|
|
1598
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1599
|
+
case 7:
|
|
1600
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1601
|
+
return [3, 11];
|
|
1602
|
+
case 8:
|
|
1603
|
+
_f = [{}];
|
|
1604
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1605
|
+
case 9:
|
|
1606
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1607
|
+
return [3, 11];
|
|
1608
|
+
case 10:
|
|
1609
|
+
parsedBody = parsedOutput.body;
|
|
1610
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1611
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1612
|
+
_h.label = 11;
|
|
1613
|
+
case 11:
|
|
1614
|
+
message = response.message || response.Message || errorCode;
|
|
1615
|
+
response.message = message;
|
|
1616
|
+
delete response.Message;
|
|
1617
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1618
|
+
}
|
|
1619
|
+
});
|
|
1620
|
+
}); };
|
|
1177
1621
|
export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1178
1622
|
var contents, data, _a, _b;
|
|
1179
1623
|
return __generator(this, function (_c) {
|
|
@@ -1788,17 +2232,107 @@ export var deserializeAws_restJson1ListInsightsCommand = function (output, conte
|
|
|
1788
2232
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1789
2233
|
contents.NextToken = __expectString(data.NextToken);
|
|
1790
2234
|
}
|
|
1791
|
-
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
1792
|
-
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
1793
|
-
}
|
|
1794
|
-
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
1795
|
-
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
1796
|
-
}
|
|
2235
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2236
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2237
|
+
}
|
|
2238
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2239
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2240
|
+
}
|
|
2241
|
+
return [2, Promise.resolve(contents)];
|
|
2242
|
+
}
|
|
2243
|
+
});
|
|
2244
|
+
}); };
|
|
2245
|
+
var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2246
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2247
|
+
var _g;
|
|
2248
|
+
return __generator(this, function (_h) {
|
|
2249
|
+
switch (_h.label) {
|
|
2250
|
+
case 0:
|
|
2251
|
+
_a = [__assign({}, output)];
|
|
2252
|
+
_g = {};
|
|
2253
|
+
return [4, parseBody(output.body, context)];
|
|
2254
|
+
case 1:
|
|
2255
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2256
|
+
errorCode = "UnknownError";
|
|
2257
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2258
|
+
_b = errorCode;
|
|
2259
|
+
switch (_b) {
|
|
2260
|
+
case "AccessDeniedException": return [3, 2];
|
|
2261
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
2262
|
+
case "InternalServerException": return [3, 4];
|
|
2263
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
2264
|
+
case "ThrottlingException": return [3, 6];
|
|
2265
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
2266
|
+
case "ValidationException": return [3, 8];
|
|
2267
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2268
|
+
}
|
|
2269
|
+
return [3, 10];
|
|
2270
|
+
case 2:
|
|
2271
|
+
_c = [{}];
|
|
2272
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2273
|
+
case 3:
|
|
2274
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2275
|
+
return [3, 11];
|
|
2276
|
+
case 4:
|
|
2277
|
+
_d = [{}];
|
|
2278
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2279
|
+
case 5:
|
|
2280
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2281
|
+
return [3, 11];
|
|
2282
|
+
case 6:
|
|
2283
|
+
_e = [{}];
|
|
2284
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2285
|
+
case 7:
|
|
2286
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2287
|
+
return [3, 11];
|
|
2288
|
+
case 8:
|
|
2289
|
+
_f = [{}];
|
|
2290
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2291
|
+
case 9:
|
|
2292
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2293
|
+
return [3, 11];
|
|
2294
|
+
case 10:
|
|
2295
|
+
parsedBody = parsedOutput.body;
|
|
2296
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2297
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2298
|
+
_h.label = 11;
|
|
2299
|
+
case 11:
|
|
2300
|
+
message = response.message || response.Message || errorCode;
|
|
2301
|
+
response.message = message;
|
|
2302
|
+
delete response.Message;
|
|
2303
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2304
|
+
}
|
|
2305
|
+
});
|
|
2306
|
+
}); };
|
|
2307
|
+
export var deserializeAws_restJson1ListNotificationChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2308
|
+
var contents, data, _a, _b;
|
|
2309
|
+
return __generator(this, function (_c) {
|
|
2310
|
+
switch (_c.label) {
|
|
2311
|
+
case 0:
|
|
2312
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2313
|
+
return [2, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
|
|
2314
|
+
}
|
|
2315
|
+
contents = {
|
|
2316
|
+
$metadata: deserializeMetadata(output),
|
|
2317
|
+
Channels: undefined,
|
|
2318
|
+
NextToken: undefined,
|
|
2319
|
+
};
|
|
2320
|
+
_a = __expectNonNull;
|
|
2321
|
+
_b = __expectObject;
|
|
2322
|
+
return [4, parseBody(output.body, context)];
|
|
2323
|
+
case 1:
|
|
2324
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2325
|
+
if (data.Channels !== undefined && data.Channels !== null) {
|
|
2326
|
+
contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
|
|
2327
|
+
}
|
|
2328
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2329
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2330
|
+
}
|
|
1797
2331
|
return [2, Promise.resolve(contents)];
|
|
1798
2332
|
}
|
|
1799
2333
|
});
|
|
1800
2334
|
}); };
|
|
1801
|
-
var
|
|
2335
|
+
var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
2336
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1803
2337
|
var _g;
|
|
1804
2338
|
return __generator(this, function (_h) {
|
|
@@ -1860,35 +2394,39 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
|
|
|
1860
2394
|
}
|
|
1861
2395
|
});
|
|
1862
2396
|
}); };
|
|
1863
|
-
export var
|
|
2397
|
+
export var deserializeAws_restJson1ListOrganizationInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1864
2398
|
var contents, data, _a, _b;
|
|
1865
2399
|
return __generator(this, function (_c) {
|
|
1866
2400
|
switch (_c.label) {
|
|
1867
2401
|
case 0:
|
|
1868
2402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
-
return [2,
|
|
2403
|
+
return [2, deserializeAws_restJson1ListOrganizationInsightsCommandError(output, context)];
|
|
1870
2404
|
}
|
|
1871
2405
|
contents = {
|
|
1872
2406
|
$metadata: deserializeMetadata(output),
|
|
1873
|
-
Channels: undefined,
|
|
1874
2407
|
NextToken: undefined,
|
|
2408
|
+
ProactiveInsights: undefined,
|
|
2409
|
+
ReactiveInsights: undefined,
|
|
1875
2410
|
};
|
|
1876
2411
|
_a = __expectNonNull;
|
|
1877
2412
|
_b = __expectObject;
|
|
1878
2413
|
return [4, parseBody(output.body, context)];
|
|
1879
2414
|
case 1:
|
|
1880
2415
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1881
|
-
if (data.Channels !== undefined && data.Channels !== null) {
|
|
1882
|
-
contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
|
|
1883
|
-
}
|
|
1884
2416
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1885
2417
|
contents.NextToken = __expectString(data.NextToken);
|
|
1886
2418
|
}
|
|
2419
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2420
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
|
|
2421
|
+
}
|
|
2422
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2423
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveOrganizationInsights(data.ReactiveInsights, context);
|
|
2424
|
+
}
|
|
1887
2425
|
return [2, Promise.resolve(contents)];
|
|
1888
2426
|
}
|
|
1889
2427
|
});
|
|
1890
2428
|
}); };
|
|
1891
|
-
var
|
|
2429
|
+
var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1892
2430
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1893
2431
|
var _g;
|
|
1894
2432
|
return __generator(this, function (_h) {
|
|
@@ -2334,6 +2872,100 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
|
|
|
2334
2872
|
}
|
|
2335
2873
|
});
|
|
2336
2874
|
}); };
|
|
2875
|
+
export var deserializeAws_restJson1SearchOrganizationInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2876
|
+
var contents, data, _a, _b;
|
|
2877
|
+
return __generator(this, function (_c) {
|
|
2878
|
+
switch (_c.label) {
|
|
2879
|
+
case 0:
|
|
2880
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2881
|
+
return [2, deserializeAws_restJson1SearchOrganizationInsightsCommandError(output, context)];
|
|
2882
|
+
}
|
|
2883
|
+
contents = {
|
|
2884
|
+
$metadata: deserializeMetadata(output),
|
|
2885
|
+
NextToken: undefined,
|
|
2886
|
+
ProactiveInsights: undefined,
|
|
2887
|
+
ReactiveInsights: undefined,
|
|
2888
|
+
};
|
|
2889
|
+
_a = __expectNonNull;
|
|
2890
|
+
_b = __expectObject;
|
|
2891
|
+
return [4, parseBody(output.body, context)];
|
|
2892
|
+
case 1:
|
|
2893
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2894
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2895
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2896
|
+
}
|
|
2897
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2898
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2899
|
+
}
|
|
2900
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2901
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2902
|
+
}
|
|
2903
|
+
return [2, Promise.resolve(contents)];
|
|
2904
|
+
}
|
|
2905
|
+
});
|
|
2906
|
+
}); };
|
|
2907
|
+
var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2908
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2909
|
+
var _g;
|
|
2910
|
+
return __generator(this, function (_h) {
|
|
2911
|
+
switch (_h.label) {
|
|
2912
|
+
case 0:
|
|
2913
|
+
_a = [__assign({}, output)];
|
|
2914
|
+
_g = {};
|
|
2915
|
+
return [4, parseBody(output.body, context)];
|
|
2916
|
+
case 1:
|
|
2917
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2918
|
+
errorCode = "UnknownError";
|
|
2919
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
+
_b = errorCode;
|
|
2921
|
+
switch (_b) {
|
|
2922
|
+
case "AccessDeniedException": return [3, 2];
|
|
2923
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
2924
|
+
case "InternalServerException": return [3, 4];
|
|
2925
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
2926
|
+
case "ThrottlingException": return [3, 6];
|
|
2927
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
2928
|
+
case "ValidationException": return [3, 8];
|
|
2929
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2930
|
+
}
|
|
2931
|
+
return [3, 10];
|
|
2932
|
+
case 2:
|
|
2933
|
+
_c = [{}];
|
|
2934
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2935
|
+
case 3:
|
|
2936
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2937
|
+
return [3, 11];
|
|
2938
|
+
case 4:
|
|
2939
|
+
_d = [{}];
|
|
2940
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2941
|
+
case 5:
|
|
2942
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2943
|
+
return [3, 11];
|
|
2944
|
+
case 6:
|
|
2945
|
+
_e = [{}];
|
|
2946
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2947
|
+
case 7:
|
|
2948
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2949
|
+
return [3, 11];
|
|
2950
|
+
case 8:
|
|
2951
|
+
_f = [{}];
|
|
2952
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2953
|
+
case 9:
|
|
2954
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2955
|
+
return [3, 11];
|
|
2956
|
+
case 10:
|
|
2957
|
+
parsedBody = parsedOutput.body;
|
|
2958
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2959
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2960
|
+
_h.label = 11;
|
|
2961
|
+
case 11:
|
|
2962
|
+
message = response.message || response.Message || errorCode;
|
|
2963
|
+
response.message = message;
|
|
2964
|
+
delete response.Message;
|
|
2965
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2966
|
+
}
|
|
2967
|
+
});
|
|
2968
|
+
}); };
|
|
2337
2969
|
export var deserializeAws_restJson1StartCostEstimationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2338
2970
|
var contents;
|
|
2339
2971
|
return __generator(this, function (_a) {
|
|
@@ -2758,6 +3390,16 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2758
3390
|
return [2, contents];
|
|
2759
3391
|
});
|
|
2760
3392
|
}); };
|
|
3393
|
+
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
3394
|
+
return input
|
|
3395
|
+
.filter(function (e) { return e != null; })
|
|
3396
|
+
.map(function (entry) {
|
|
3397
|
+
if (entry === null) {
|
|
3398
|
+
return null;
|
|
3399
|
+
}
|
|
3400
|
+
return entry;
|
|
3401
|
+
});
|
|
3402
|
+
};
|
|
2761
3403
|
var serializeAws_restJson1CloudFormationCollection = function (input, context) {
|
|
2762
3404
|
return __assign({}, (input.StackNames !== undefined &&
|
|
2763
3405
|
input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
|
|
@@ -2824,6 +3466,16 @@ var serializeAws_restJson1ListEventsFilters = function (input, context) {
|
|
|
2824
3466
|
ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
|
|
2825
3467
|
}));
|
|
2826
3468
|
};
|
|
3469
|
+
var serializeAws_restJson1ListInsightsAccountIdList = function (input, context) {
|
|
3470
|
+
return input
|
|
3471
|
+
.filter(function (e) { return e != null; })
|
|
3472
|
+
.map(function (entry) {
|
|
3473
|
+
if (entry === null) {
|
|
3474
|
+
return null;
|
|
3475
|
+
}
|
|
3476
|
+
return entry;
|
|
3477
|
+
});
|
|
3478
|
+
};
|
|
2827
3479
|
var serializeAws_restJson1ListInsightsAnyStatusFilter = function (input, context) {
|
|
2828
3480
|
return __assign(__assign({}, (input.StartTimeRange !== undefined &&
|
|
2829
3481
|
input.StartTimeRange !== null && {
|
|
@@ -2837,6 +3489,16 @@ var serializeAws_restJson1ListInsightsClosedStatusFilter = function (input, cont
|
|
|
2837
3489
|
var serializeAws_restJson1ListInsightsOngoingStatusFilter = function (input, context) {
|
|
2838
3490
|
return __assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2839
3491
|
};
|
|
3492
|
+
var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input, context) {
|
|
3493
|
+
return input
|
|
3494
|
+
.filter(function (e) { return e != null; })
|
|
3495
|
+
.map(function (entry) {
|
|
3496
|
+
if (entry === null) {
|
|
3497
|
+
return null;
|
|
3498
|
+
}
|
|
3499
|
+
return entry;
|
|
3500
|
+
});
|
|
3501
|
+
};
|
|
2840
3502
|
var serializeAws_restJson1ListInsightsStatusFilter = function (input, context) {
|
|
2841
3503
|
return __assign(__assign(__assign({}, (input.Any !== undefined &&
|
|
2842
3504
|
input.Any !== null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed !== undefined &&
|
|
@@ -2852,12 +3514,32 @@ var serializeAws_restJson1NotificationChannelConfig = function (input, context)
|
|
|
2852
3514
|
var serializeAws_restJson1OpsCenterIntegrationConfig = function (input, context) {
|
|
2853
3515
|
return __assign({}, (input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }));
|
|
2854
3516
|
};
|
|
3517
|
+
var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
|
|
3518
|
+
return input
|
|
3519
|
+
.filter(function (e) { return e != null; })
|
|
3520
|
+
.map(function (entry) {
|
|
3521
|
+
if (entry === null) {
|
|
3522
|
+
return null;
|
|
3523
|
+
}
|
|
3524
|
+
return entry;
|
|
3525
|
+
});
|
|
3526
|
+
};
|
|
2855
3527
|
var serializeAws_restJson1ResourceCollection = function (input, context) {
|
|
2856
3528
|
return __assign({}, (input.CloudFormation !== undefined &&
|
|
2857
3529
|
input.CloudFormation !== null && {
|
|
2858
3530
|
CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
|
|
2859
3531
|
}));
|
|
2860
3532
|
};
|
|
3533
|
+
var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context) {
|
|
3534
|
+
return input
|
|
3535
|
+
.filter(function (e) { return e != null; })
|
|
3536
|
+
.map(function (entry) {
|
|
3537
|
+
if (entry === null) {
|
|
3538
|
+
return null;
|
|
3539
|
+
}
|
|
3540
|
+
return entry;
|
|
3541
|
+
});
|
|
3542
|
+
};
|
|
2861
3543
|
var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
|
|
2862
3544
|
return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
|
|
2863
3545
|
input.ResourceCollection !== null && {
|
|
@@ -2869,6 +3551,17 @@ var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
|
|
|
2869
3551
|
input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
|
|
2870
3552
|
input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
|
|
2871
3553
|
};
|
|
3554
|
+
var serializeAws_restJson1SearchOrganizationInsightsFilters = function (input, context) {
|
|
3555
|
+
return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
|
|
3556
|
+
input.ResourceCollection !== null && {
|
|
3557
|
+
ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
|
|
3558
|
+
})), (input.ServiceCollection !== undefined &&
|
|
3559
|
+
input.ServiceCollection !== null && {
|
|
3560
|
+
ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
|
|
3561
|
+
})), (input.Severities !== undefined &&
|
|
3562
|
+
input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
|
|
3563
|
+
input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
|
|
3564
|
+
};
|
|
2872
3565
|
var serializeAws_restJson1ServiceCollection = function (input, context) {
|
|
2873
3566
|
return __assign({}, (input.ServiceNames !== undefined &&
|
|
2874
3567
|
input.ServiceNames !== null && { ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context) }));
|
|
@@ -2926,6 +3619,30 @@ var serializeAws_restJson1UpdateStackNames = function (input, context) {
|
|
|
2926
3619
|
return entry;
|
|
2927
3620
|
});
|
|
2928
3621
|
};
|
|
3622
|
+
var deserializeAws_restJson1AccountHealth = function (output, context) {
|
|
3623
|
+
return {
|
|
3624
|
+
AccountId: __expectString(output.AccountId),
|
|
3625
|
+
Insight: output.Insight !== undefined && output.Insight !== null
|
|
3626
|
+
? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
|
|
3627
|
+
: undefined,
|
|
3628
|
+
};
|
|
3629
|
+
};
|
|
3630
|
+
var deserializeAws_restJson1AccountHealths = function (output, context) {
|
|
3631
|
+
return (output || [])
|
|
3632
|
+
.filter(function (e) { return e != null; })
|
|
3633
|
+
.map(function (entry) {
|
|
3634
|
+
if (entry === null) {
|
|
3635
|
+
return null;
|
|
3636
|
+
}
|
|
3637
|
+
return deserializeAws_restJson1AccountHealth(entry, context);
|
|
3638
|
+
});
|
|
3639
|
+
};
|
|
3640
|
+
var deserializeAws_restJson1AccountInsightHealth = function (output, context) {
|
|
3641
|
+
return {
|
|
3642
|
+
OpenProactiveInsights: __expectInt32(output.OpenProactiveInsights),
|
|
3643
|
+
OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights),
|
|
3644
|
+
};
|
|
3645
|
+
};
|
|
2929
3646
|
var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
|
|
2930
3647
|
return {
|
|
2931
3648
|
CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
|
|
@@ -3002,11 +3719,22 @@ var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
|
|
|
3002
3719
|
return deserializeAws_restJson1CloudFormationHealth(entry, context);
|
|
3003
3720
|
});
|
|
3004
3721
|
};
|
|
3722
|
+
var deserializeAws_restJson1CloudWatchMetricsDataSummary = function (output, context) {
|
|
3723
|
+
return {
|
|
3724
|
+
StatusCode: __expectString(output.StatusCode),
|
|
3725
|
+
TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
|
|
3726
|
+
? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
|
|
3727
|
+
: undefined,
|
|
3728
|
+
};
|
|
3729
|
+
};
|
|
3005
3730
|
var deserializeAws_restJson1CloudWatchMetricsDetail = function (output, context) {
|
|
3006
3731
|
return {
|
|
3007
3732
|
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
3008
3733
|
? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
|
|
3009
3734
|
: undefined,
|
|
3735
|
+
MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
|
|
3736
|
+
? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
|
|
3737
|
+
: undefined,
|
|
3010
3738
|
MetricName: __expectString(output.MetricName),
|
|
3011
3739
|
Namespace: __expectString(output.Namespace),
|
|
3012
3740
|
Period: __expectInt32(output.Period),
|
|
@@ -3277,6 +4005,38 @@ var deserializeAws_restJson1ProactiveInsightSummary = function (output, context)
|
|
|
3277
4005
|
Status: __expectString(output.Status),
|
|
3278
4006
|
};
|
|
3279
4007
|
};
|
|
4008
|
+
var deserializeAws_restJson1ProactiveOrganizationInsights = function (output, context) {
|
|
4009
|
+
return (output || [])
|
|
4010
|
+
.filter(function (e) { return e != null; })
|
|
4011
|
+
.map(function (entry) {
|
|
4012
|
+
if (entry === null) {
|
|
4013
|
+
return null;
|
|
4014
|
+
}
|
|
4015
|
+
return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context);
|
|
4016
|
+
});
|
|
4017
|
+
};
|
|
4018
|
+
var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (output, context) {
|
|
4019
|
+
return {
|
|
4020
|
+
AccountId: __expectString(output.AccountId),
|
|
4021
|
+
Id: __expectString(output.Id),
|
|
4022
|
+
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4023
|
+
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
4024
|
+
: undefined,
|
|
4025
|
+
Name: __expectString(output.Name),
|
|
4026
|
+
OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
|
|
4027
|
+
PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
|
|
4028
|
+
? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
|
|
4029
|
+
: undefined,
|
|
4030
|
+
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
4031
|
+
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
4032
|
+
: undefined,
|
|
4033
|
+
ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
|
|
4034
|
+
? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
|
|
4035
|
+
: undefined,
|
|
4036
|
+
Severity: __expectString(output.Severity),
|
|
4037
|
+
Status: __expectString(output.Status),
|
|
4038
|
+
};
|
|
4039
|
+
};
|
|
3280
4040
|
var deserializeAws_restJson1ReactiveAnomalies = function (output, context) {
|
|
3281
4041
|
return (output || [])
|
|
3282
4042
|
.filter(function (e) { return e != null; })
|
|
@@ -3369,6 +4129,35 @@ var deserializeAws_restJson1ReactiveInsightSummary = function (output, context)
|
|
|
3369
4129
|
Status: __expectString(output.Status),
|
|
3370
4130
|
};
|
|
3371
4131
|
};
|
|
4132
|
+
var deserializeAws_restJson1ReactiveOrganizationInsights = function (output, context) {
|
|
4133
|
+
return (output || [])
|
|
4134
|
+
.filter(function (e) { return e != null; })
|
|
4135
|
+
.map(function (entry) {
|
|
4136
|
+
if (entry === null) {
|
|
4137
|
+
return null;
|
|
4138
|
+
}
|
|
4139
|
+
return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context);
|
|
4140
|
+
});
|
|
4141
|
+
};
|
|
4142
|
+
var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (output, context) {
|
|
4143
|
+
return {
|
|
4144
|
+
AccountId: __expectString(output.AccountId),
|
|
4145
|
+
Id: __expectString(output.Id),
|
|
4146
|
+
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4147
|
+
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
4148
|
+
: undefined,
|
|
4149
|
+
Name: __expectString(output.Name),
|
|
4150
|
+
OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
|
|
4151
|
+
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
4152
|
+
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
4153
|
+
: undefined,
|
|
4154
|
+
ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
|
|
4155
|
+
? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
|
|
4156
|
+
: undefined,
|
|
4157
|
+
Severity: __expectString(output.Severity),
|
|
4158
|
+
Status: __expectString(output.Status),
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
3372
4161
|
var deserializeAws_restJson1Recommendation = function (output, context) {
|
|
3373
4162
|
return {
|
|
3374
4163
|
Description: __expectString(output.Description),
|
|
@@ -3592,6 +4381,24 @@ var deserializeAws_restJson1StackNames = function (output, context) {
|
|
|
3592
4381
|
return __expectString(entry);
|
|
3593
4382
|
});
|
|
3594
4383
|
};
|
|
4384
|
+
var deserializeAws_restJson1TimestampMetricValuePair = function (output, context) {
|
|
4385
|
+
return {
|
|
4386
|
+
MetricValue: __limitedParseDouble(output.MetricValue),
|
|
4387
|
+
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
4388
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
|
|
4389
|
+
: undefined,
|
|
4390
|
+
};
|
|
4391
|
+
};
|
|
4392
|
+
var deserializeAws_restJson1TimestampMetricValuePairList = function (output, context) {
|
|
4393
|
+
return (output || [])
|
|
4394
|
+
.filter(function (e) { return e != null; })
|
|
4395
|
+
.map(function (entry) {
|
|
4396
|
+
if (entry === null) {
|
|
4397
|
+
return null;
|
|
4398
|
+
}
|
|
4399
|
+
return deserializeAws_restJson1TimestampMetricValuePair(entry, context);
|
|
4400
|
+
});
|
|
4401
|
+
};
|
|
3595
4402
|
var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
|
|
3596
4403
|
return {
|
|
3597
4404
|
Message: __expectString(output.Message),
|