@aws-sdk/client-devops-guru 3.41.0 → 3.45.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 +1 -0
- package/dist-cjs/models/models_0.js +220 -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 +1339 -208
- 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 +1 -0
- package/dist-es/models/models_0.js +154 -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 +1284 -111
- package/dist-types/DevOpsGuru.d.ts +117 -92
- package/dist-types/DevOpsGuruClient.d.ts +19 -16
- package/dist-types/commands/AddNotificationChannelCommand.d.ts +4 -6
- package/dist-types/commands/DescribeAccountHealthCommand.d.ts +3 -4
- package/dist-types/commands/DescribeAccountOverviewCommand.d.ts +3 -4
- package/dist-types/commands/DescribeAnomalyCommand.d.ts +1 -3
- package/dist-types/commands/DescribeFeedbackCommand.d.ts +1 -2
- package/dist-types/commands/DescribeInsightCommand.d.ts +1 -3
- 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 -5
- package/dist-types/commands/DescribeServiceIntegrationCommand.d.ts +2 -4
- package/dist-types/commands/GetCostEstimationCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceCollectionCommand.d.ts +4 -4
- package/dist-types/commands/ListAnomaliesForInsightCommand.d.ts +2 -3
- package/dist-types/commands/ListEventsCommand.d.ts +2 -3
- package/dist-types/commands/ListInsightsCommand.d.ts +3 -4
- package/dist-types/commands/ListNotificationChannelsCommand.d.ts +4 -5
- package/dist-types/commands/ListOrganizationInsightsCommand.d.ts +35 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +2 -3
- package/dist-types/commands/PutFeedbackCommand.d.ts +1 -3
- package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +3 -4
- package/dist-types/commands/SearchInsightsCommand.d.ts +8 -9
- package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +42 -0
- package/dist-types/commands/StartCostEstimationCommand.d.ts +2 -1
- package/dist-types/commands/UpdateResourceCollectionCommand.d.ts +4 -3
- package/dist-types/commands/UpdateServiceIntegrationCommand.d.ts +3 -4
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +2078 -886
- 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/ts3.4/DevOpsGuru.d.ts +25 -0
- package/dist-types/ts3.4/DevOpsGuruClient.d.ts +7 -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 +490 -7
- 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/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -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,39 +1332,43 @@ var deserializeAws_restJson1DescribeInsightCommandError = function (output, cont
|
|
|
1174
1332
|
}
|
|
1175
1333
|
});
|
|
1176
1334
|
}); };
|
|
1177
|
-
export var
|
|
1335
|
+
export var deserializeAws_restJson1DescribeOrganizationHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1178
1336
|
var contents, data, _a, _b;
|
|
1179
1337
|
return __generator(this, function (_c) {
|
|
1180
1338
|
switch (_c.label) {
|
|
1181
1339
|
case 0:
|
|
1182
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
|
-
return [2,
|
|
1341
|
+
return [2, deserializeAws_restJson1DescribeOrganizationHealthCommandError(output, context)];
|
|
1184
1342
|
}
|
|
1185
1343
|
contents = {
|
|
1186
1344
|
$metadata: deserializeMetadata(output),
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1345
|
+
MetricsAnalyzed: undefined,
|
|
1346
|
+
OpenProactiveInsights: undefined,
|
|
1347
|
+
OpenReactiveInsights: undefined,
|
|
1348
|
+
ResourceHours: undefined,
|
|
1190
1349
|
};
|
|
1191
1350
|
_a = __expectNonNull;
|
|
1192
1351
|
_b = __expectObject;
|
|
1193
1352
|
return [4, parseBody(output.body, context)];
|
|
1194
1353
|
case 1:
|
|
1195
1354
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1196
|
-
if (data.
|
|
1197
|
-
contents.
|
|
1355
|
+
if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
|
|
1356
|
+
contents.MetricsAnalyzed = __expectInt32(data.MetricsAnalyzed);
|
|
1198
1357
|
}
|
|
1199
|
-
if (data.
|
|
1200
|
-
contents.
|
|
1358
|
+
if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
|
|
1359
|
+
contents.OpenProactiveInsights = __expectInt32(data.OpenProactiveInsights);
|
|
1201
1360
|
}
|
|
1202
|
-
if (data.
|
|
1203
|
-
contents.
|
|
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);
|
|
1204
1366
|
}
|
|
1205
1367
|
return [2, Promise.resolve(contents)];
|
|
1206
1368
|
}
|
|
1207
1369
|
});
|
|
1208
1370
|
}); };
|
|
1209
|
-
var
|
|
1371
|
+
var deserializeAws_restJson1DescribeOrganizationHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1210
1372
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1211
1373
|
var _g;
|
|
1212
1374
|
return __generator(this, function (_h) {
|
|
@@ -1268,31 +1430,35 @@ var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = funct
|
|
|
1268
1430
|
}
|
|
1269
1431
|
});
|
|
1270
1432
|
}); };
|
|
1271
|
-
export var
|
|
1433
|
+
export var deserializeAws_restJson1DescribeOrganizationOverviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1272
1434
|
var contents, data, _a, _b;
|
|
1273
1435
|
return __generator(this, function (_c) {
|
|
1274
1436
|
switch (_c.label) {
|
|
1275
1437
|
case 0:
|
|
1276
1438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1277
|
-
return [2,
|
|
1439
|
+
return [2, deserializeAws_restJson1DescribeOrganizationOverviewCommandError(output, context)];
|
|
1278
1440
|
}
|
|
1279
1441
|
contents = {
|
|
1280
1442
|
$metadata: deserializeMetadata(output),
|
|
1281
|
-
|
|
1443
|
+
ProactiveInsights: undefined,
|
|
1444
|
+
ReactiveInsights: undefined,
|
|
1282
1445
|
};
|
|
1283
1446
|
_a = __expectNonNull;
|
|
1284
1447
|
_b = __expectObject;
|
|
1285
1448
|
return [4, parseBody(output.body, context)];
|
|
1286
1449
|
case 1:
|
|
1287
1450
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1288
|
-
if (data.
|
|
1289
|
-
contents.
|
|
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);
|
|
1290
1456
|
}
|
|
1291
1457
|
return [2, Promise.resolve(contents)];
|
|
1292
1458
|
}
|
|
1293
1459
|
});
|
|
1294
1460
|
}); };
|
|
1295
|
-
var
|
|
1461
|
+
var deserializeAws_restJson1DescribeOrganizationOverviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1296
1462
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1297
1463
|
var _g;
|
|
1298
1464
|
return __generator(this, function (_h) {
|
|
@@ -1354,61 +1520,57 @@ var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (o
|
|
|
1354
1520
|
}
|
|
1355
1521
|
});
|
|
1356
1522
|
}); };
|
|
1357
|
-
export var
|
|
1523
|
+
export var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1358
1524
|
var contents, data, _a, _b;
|
|
1359
1525
|
return __generator(this, function (_c) {
|
|
1360
1526
|
switch (_c.label) {
|
|
1361
1527
|
case 0:
|
|
1362
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
|
-
return [2,
|
|
1529
|
+
return [2, deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError(output, context)];
|
|
1364
1530
|
}
|
|
1365
1531
|
contents = {
|
|
1366
1532
|
$metadata: deserializeMetadata(output),
|
|
1367
|
-
|
|
1533
|
+
Account: undefined,
|
|
1534
|
+
CloudFormation: undefined,
|
|
1368
1535
|
NextToken: undefined,
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
TimeRange: undefined,
|
|
1372
|
-
TotalCost: undefined,
|
|
1536
|
+
Service: undefined,
|
|
1537
|
+
Tags: undefined,
|
|
1373
1538
|
};
|
|
1374
1539
|
_a = __expectNonNull;
|
|
1375
1540
|
_b = __expectObject;
|
|
1376
1541
|
return [4, parseBody(output.body, context)];
|
|
1377
1542
|
case 1:
|
|
1378
1543
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1379
|
-
if (data.
|
|
1380
|
-
contents.
|
|
1544
|
+
if (data.Account !== undefined && data.Account !== null) {
|
|
1545
|
+
contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
|
|
1546
|
+
}
|
|
1547
|
+
if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
|
|
1548
|
+
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1381
1549
|
}
|
|
1382
1550
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1383
1551
|
contents.NextToken = __expectString(data.NextToken);
|
|
1384
1552
|
}
|
|
1385
|
-
if (data.
|
|
1386
|
-
contents.
|
|
1387
|
-
}
|
|
1388
|
-
if (data.Status !== undefined && data.Status !== null) {
|
|
1389
|
-
contents.Status = __expectString(data.Status);
|
|
1390
|
-
}
|
|
1391
|
-
if (data.TimeRange !== undefined && data.TimeRange !== null) {
|
|
1392
|
-
contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
|
|
1553
|
+
if (data.Service !== undefined && data.Service !== null) {
|
|
1554
|
+
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1393
1555
|
}
|
|
1394
|
-
if (data.
|
|
1395
|
-
contents.
|
|
1556
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1557
|
+
contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
|
|
1396
1558
|
}
|
|
1397
1559
|
return [2, Promise.resolve(contents)];
|
|
1398
1560
|
}
|
|
1399
1561
|
});
|
|
1400
1562
|
}); };
|
|
1401
|
-
var
|
|
1402
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f,
|
|
1403
|
-
var
|
|
1404
|
-
return __generator(this, function (
|
|
1405
|
-
switch (
|
|
1563
|
+
var deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1564
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1565
|
+
var _g;
|
|
1566
|
+
return __generator(this, function (_h) {
|
|
1567
|
+
switch (_h.label) {
|
|
1406
1568
|
case 0:
|
|
1407
1569
|
_a = [__assign({}, output)];
|
|
1408
|
-
|
|
1570
|
+
_g = {};
|
|
1409
1571
|
return [4, parseBody(output.body, context)];
|
|
1410
1572
|
case 1:
|
|
1411
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1573
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1412
1574
|
errorCode = "UnknownError";
|
|
1413
1575
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
1576
|
_b = errorCode;
|
|
@@ -1417,50 +1579,42 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
|
|
|
1417
1579
|
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1418
1580
|
case "InternalServerException": return [3, 4];
|
|
1419
1581
|
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1420
|
-
case "
|
|
1421
|
-
case "com.amazonaws.devopsguru#
|
|
1422
|
-
case "
|
|
1423
|
-
case "com.amazonaws.devopsguru#
|
|
1424
|
-
case "ValidationException": return [3, 10];
|
|
1425
|
-
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1582
|
+
case "ThrottlingException": return [3, 6];
|
|
1583
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1584
|
+
case "ValidationException": return [3, 8];
|
|
1585
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1426
1586
|
}
|
|
1427
|
-
return [3,
|
|
1587
|
+
return [3, 10];
|
|
1428
1588
|
case 2:
|
|
1429
1589
|
_c = [{}];
|
|
1430
1590
|
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1431
1591
|
case 3:
|
|
1432
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
1433
|
-
return [3,
|
|
1592
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
+
return [3, 11];
|
|
1434
1594
|
case 4:
|
|
1435
1595
|
_d = [{}];
|
|
1436
1596
|
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1437
1597
|
case 5:
|
|
1438
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
1439
|
-
return [3,
|
|
1598
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1599
|
+
return [3, 11];
|
|
1440
1600
|
case 6:
|
|
1441
1601
|
_e = [{}];
|
|
1442
|
-
return [4,
|
|
1602
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1443
1603
|
case 7:
|
|
1444
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
1445
|
-
return [3,
|
|
1604
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1605
|
+
return [3, 11];
|
|
1446
1606
|
case 8:
|
|
1447
1607
|
_f = [{}];
|
|
1448
|
-
return [4,
|
|
1608
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1449
1609
|
case 9:
|
|
1450
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
1451
|
-
return [3,
|
|
1610
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1611
|
+
return [3, 11];
|
|
1452
1612
|
case 10:
|
|
1453
|
-
_g = [{}];
|
|
1454
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1455
|
-
case 11:
|
|
1456
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1457
|
-
return [3, 13];
|
|
1458
|
-
case 12:
|
|
1459
1613
|
parsedBody = parsedOutput.body;
|
|
1460
1614
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1461
1615
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1462
|
-
|
|
1463
|
-
case
|
|
1616
|
+
_h.label = 11;
|
|
1617
|
+
case 11:
|
|
1464
1618
|
message = response.message || response.Message || errorCode;
|
|
1465
1619
|
response.message = message;
|
|
1466
1620
|
delete response.Message;
|
|
@@ -1468,37 +1622,335 @@ var deserializeAws_restJson1GetCostEstimationCommandError = function (output, co
|
|
|
1468
1622
|
}
|
|
1469
1623
|
});
|
|
1470
1624
|
}); };
|
|
1471
|
-
export var
|
|
1625
|
+
export var deserializeAws_restJson1DescribeResourceCollectionHealthCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1472
1626
|
var contents, data, _a, _b;
|
|
1473
1627
|
return __generator(this, function (_c) {
|
|
1474
1628
|
switch (_c.label) {
|
|
1475
1629
|
case 0:
|
|
1476
1630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1477
|
-
return [2,
|
|
1631
|
+
return [2, deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context)];
|
|
1478
1632
|
}
|
|
1479
1633
|
contents = {
|
|
1480
1634
|
$metadata: deserializeMetadata(output),
|
|
1635
|
+
CloudFormation: undefined,
|
|
1481
1636
|
NextToken: undefined,
|
|
1482
|
-
|
|
1637
|
+
Service: undefined,
|
|
1638
|
+
Tags: undefined,
|
|
1483
1639
|
};
|
|
1484
1640
|
_a = __expectNonNull;
|
|
1485
1641
|
_b = __expectObject;
|
|
1486
1642
|
return [4, parseBody(output.body, context)];
|
|
1487
1643
|
case 1:
|
|
1488
1644
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1645
|
+
if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
|
|
1646
|
+
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1647
|
+
}
|
|
1489
1648
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1490
1649
|
contents.NextToken = __expectString(data.NextToken);
|
|
1491
1650
|
}
|
|
1492
|
-
if (data.
|
|
1493
|
-
contents.
|
|
1651
|
+
if (data.Service !== undefined && data.Service !== null) {
|
|
1652
|
+
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1653
|
+
}
|
|
1654
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1655
|
+
contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
|
|
1494
1656
|
}
|
|
1495
1657
|
return [2, Promise.resolve(contents)];
|
|
1496
1658
|
}
|
|
1497
1659
|
});
|
|
1498
1660
|
}); };
|
|
1499
|
-
var
|
|
1500
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f,
|
|
1501
|
-
var
|
|
1661
|
+
var deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1662
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1663
|
+
var _g;
|
|
1664
|
+
return __generator(this, function (_h) {
|
|
1665
|
+
switch (_h.label) {
|
|
1666
|
+
case 0:
|
|
1667
|
+
_a = [__assign({}, output)];
|
|
1668
|
+
_g = {};
|
|
1669
|
+
return [4, parseBody(output.body, context)];
|
|
1670
|
+
case 1:
|
|
1671
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1672
|
+
errorCode = "UnknownError";
|
|
1673
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
+
_b = errorCode;
|
|
1675
|
+
switch (_b) {
|
|
1676
|
+
case "AccessDeniedException": return [3, 2];
|
|
1677
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1678
|
+
case "InternalServerException": return [3, 4];
|
|
1679
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1680
|
+
case "ThrottlingException": return [3, 6];
|
|
1681
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1682
|
+
case "ValidationException": return [3, 8];
|
|
1683
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1684
|
+
}
|
|
1685
|
+
return [3, 10];
|
|
1686
|
+
case 2:
|
|
1687
|
+
_c = [{}];
|
|
1688
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1689
|
+
case 3:
|
|
1690
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1691
|
+
return [3, 11];
|
|
1692
|
+
case 4:
|
|
1693
|
+
_d = [{}];
|
|
1694
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1695
|
+
case 5:
|
|
1696
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1697
|
+
return [3, 11];
|
|
1698
|
+
case 6:
|
|
1699
|
+
_e = [{}];
|
|
1700
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1701
|
+
case 7:
|
|
1702
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
+
return [3, 11];
|
|
1704
|
+
case 8:
|
|
1705
|
+
_f = [{}];
|
|
1706
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1707
|
+
case 9:
|
|
1708
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1709
|
+
return [3, 11];
|
|
1710
|
+
case 10:
|
|
1711
|
+
parsedBody = parsedOutput.body;
|
|
1712
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1713
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1714
|
+
_h.label = 11;
|
|
1715
|
+
case 11:
|
|
1716
|
+
message = response.message || response.Message || errorCode;
|
|
1717
|
+
response.message = message;
|
|
1718
|
+
delete response.Message;
|
|
1719
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
}); };
|
|
1723
|
+
export var deserializeAws_restJson1DescribeServiceIntegrationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1724
|
+
var contents, data, _a, _b;
|
|
1725
|
+
return __generator(this, function (_c) {
|
|
1726
|
+
switch (_c.label) {
|
|
1727
|
+
case 0:
|
|
1728
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1729
|
+
return [2, deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context)];
|
|
1730
|
+
}
|
|
1731
|
+
contents = {
|
|
1732
|
+
$metadata: deserializeMetadata(output),
|
|
1733
|
+
ServiceIntegration: undefined,
|
|
1734
|
+
};
|
|
1735
|
+
_a = __expectNonNull;
|
|
1736
|
+
_b = __expectObject;
|
|
1737
|
+
return [4, parseBody(output.body, context)];
|
|
1738
|
+
case 1:
|
|
1739
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1740
|
+
if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
|
|
1741
|
+
contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
|
|
1742
|
+
}
|
|
1743
|
+
return [2, Promise.resolve(contents)];
|
|
1744
|
+
}
|
|
1745
|
+
});
|
|
1746
|
+
}); };
|
|
1747
|
+
var deserializeAws_restJson1DescribeServiceIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1749
|
+
var _g;
|
|
1750
|
+
return __generator(this, function (_h) {
|
|
1751
|
+
switch (_h.label) {
|
|
1752
|
+
case 0:
|
|
1753
|
+
_a = [__assign({}, output)];
|
|
1754
|
+
_g = {};
|
|
1755
|
+
return [4, parseBody(output.body, context)];
|
|
1756
|
+
case 1:
|
|
1757
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1758
|
+
errorCode = "UnknownError";
|
|
1759
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
+
_b = errorCode;
|
|
1761
|
+
switch (_b) {
|
|
1762
|
+
case "AccessDeniedException": return [3, 2];
|
|
1763
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1764
|
+
case "InternalServerException": return [3, 4];
|
|
1765
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1766
|
+
case "ThrottlingException": return [3, 6];
|
|
1767
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
1768
|
+
case "ValidationException": return [3, 8];
|
|
1769
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
1770
|
+
}
|
|
1771
|
+
return [3, 10];
|
|
1772
|
+
case 2:
|
|
1773
|
+
_c = [{}];
|
|
1774
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1775
|
+
case 3:
|
|
1776
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1777
|
+
return [3, 11];
|
|
1778
|
+
case 4:
|
|
1779
|
+
_d = [{}];
|
|
1780
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1781
|
+
case 5:
|
|
1782
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1783
|
+
return [3, 11];
|
|
1784
|
+
case 6:
|
|
1785
|
+
_e = [{}];
|
|
1786
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1787
|
+
case 7:
|
|
1788
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1789
|
+
return [3, 11];
|
|
1790
|
+
case 8:
|
|
1791
|
+
_f = [{}];
|
|
1792
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1793
|
+
case 9:
|
|
1794
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
+
return [3, 11];
|
|
1796
|
+
case 10:
|
|
1797
|
+
parsedBody = parsedOutput.body;
|
|
1798
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1799
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1800
|
+
_h.label = 11;
|
|
1801
|
+
case 11:
|
|
1802
|
+
message = response.message || response.Message || errorCode;
|
|
1803
|
+
response.message = message;
|
|
1804
|
+
delete response.Message;
|
|
1805
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1806
|
+
}
|
|
1807
|
+
});
|
|
1808
|
+
}); };
|
|
1809
|
+
export var deserializeAws_restJson1GetCostEstimationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1810
|
+
var contents, data, _a, _b;
|
|
1811
|
+
return __generator(this, function (_c) {
|
|
1812
|
+
switch (_c.label) {
|
|
1813
|
+
case 0:
|
|
1814
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
|
+
return [2, deserializeAws_restJson1GetCostEstimationCommandError(output, context)];
|
|
1816
|
+
}
|
|
1817
|
+
contents = {
|
|
1818
|
+
$metadata: deserializeMetadata(output),
|
|
1819
|
+
Costs: undefined,
|
|
1820
|
+
NextToken: undefined,
|
|
1821
|
+
ResourceCollection: undefined,
|
|
1822
|
+
Status: undefined,
|
|
1823
|
+
TimeRange: undefined,
|
|
1824
|
+
TotalCost: undefined,
|
|
1825
|
+
};
|
|
1826
|
+
_a = __expectNonNull;
|
|
1827
|
+
_b = __expectObject;
|
|
1828
|
+
return [4, parseBody(output.body, context)];
|
|
1829
|
+
case 1:
|
|
1830
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1831
|
+
if (data.Costs !== undefined && data.Costs !== null) {
|
|
1832
|
+
contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
|
|
1833
|
+
}
|
|
1834
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1835
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1836
|
+
}
|
|
1837
|
+
if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
|
|
1838
|
+
contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
|
|
1839
|
+
}
|
|
1840
|
+
if (data.Status !== undefined && data.Status !== null) {
|
|
1841
|
+
contents.Status = __expectString(data.Status);
|
|
1842
|
+
}
|
|
1843
|
+
if (data.TimeRange !== undefined && data.TimeRange !== null) {
|
|
1844
|
+
contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
|
|
1845
|
+
}
|
|
1846
|
+
if (data.TotalCost !== undefined && data.TotalCost !== null) {
|
|
1847
|
+
contents.TotalCost = __limitedParseDouble(data.TotalCost);
|
|
1848
|
+
}
|
|
1849
|
+
return [2, Promise.resolve(contents)];
|
|
1850
|
+
}
|
|
1851
|
+
});
|
|
1852
|
+
}); };
|
|
1853
|
+
var deserializeAws_restJson1GetCostEstimationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1854
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1855
|
+
var _h;
|
|
1856
|
+
return __generator(this, function (_j) {
|
|
1857
|
+
switch (_j.label) {
|
|
1858
|
+
case 0:
|
|
1859
|
+
_a = [__assign({}, output)];
|
|
1860
|
+
_h = {};
|
|
1861
|
+
return [4, parseBody(output.body, context)];
|
|
1862
|
+
case 1:
|
|
1863
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1864
|
+
errorCode = "UnknownError";
|
|
1865
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
|
+
_b = errorCode;
|
|
1867
|
+
switch (_b) {
|
|
1868
|
+
case "AccessDeniedException": return [3, 2];
|
|
1869
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
1870
|
+
case "InternalServerException": return [3, 4];
|
|
1871
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
1872
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1873
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException": return [3, 6];
|
|
1874
|
+
case "ThrottlingException": return [3, 8];
|
|
1875
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 8];
|
|
1876
|
+
case "ValidationException": return [3, 10];
|
|
1877
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 10];
|
|
1878
|
+
}
|
|
1879
|
+
return [3, 12];
|
|
1880
|
+
case 2:
|
|
1881
|
+
_c = [{}];
|
|
1882
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1883
|
+
case 3:
|
|
1884
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1885
|
+
return [3, 13];
|
|
1886
|
+
case 4:
|
|
1887
|
+
_d = [{}];
|
|
1888
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1889
|
+
case 5:
|
|
1890
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1891
|
+
return [3, 13];
|
|
1892
|
+
case 6:
|
|
1893
|
+
_e = [{}];
|
|
1894
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1895
|
+
case 7:
|
|
1896
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1897
|
+
return [3, 13];
|
|
1898
|
+
case 8:
|
|
1899
|
+
_f = [{}];
|
|
1900
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1901
|
+
case 9:
|
|
1902
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1903
|
+
return [3, 13];
|
|
1904
|
+
case 10:
|
|
1905
|
+
_g = [{}];
|
|
1906
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1907
|
+
case 11:
|
|
1908
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1909
|
+
return [3, 13];
|
|
1910
|
+
case 12:
|
|
1911
|
+
parsedBody = parsedOutput.body;
|
|
1912
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1913
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1914
|
+
_j.label = 13;
|
|
1915
|
+
case 13:
|
|
1916
|
+
message = response.message || response.Message || errorCode;
|
|
1917
|
+
response.message = message;
|
|
1918
|
+
delete response.Message;
|
|
1919
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1920
|
+
}
|
|
1921
|
+
});
|
|
1922
|
+
}); };
|
|
1923
|
+
export var deserializeAws_restJson1GetResourceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1924
|
+
var contents, data, _a, _b;
|
|
1925
|
+
return __generator(this, function (_c) {
|
|
1926
|
+
switch (_c.label) {
|
|
1927
|
+
case 0:
|
|
1928
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1929
|
+
return [2, deserializeAws_restJson1GetResourceCollectionCommandError(output, context)];
|
|
1930
|
+
}
|
|
1931
|
+
contents = {
|
|
1932
|
+
$metadata: deserializeMetadata(output),
|
|
1933
|
+
NextToken: undefined,
|
|
1934
|
+
ResourceCollection: undefined,
|
|
1935
|
+
};
|
|
1936
|
+
_a = __expectNonNull;
|
|
1937
|
+
_b = __expectObject;
|
|
1938
|
+
return [4, parseBody(output.body, context)];
|
|
1939
|
+
case 1:
|
|
1940
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1941
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1942
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1943
|
+
}
|
|
1944
|
+
if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
|
|
1945
|
+
contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
|
|
1946
|
+
}
|
|
1947
|
+
return [2, Promise.resolve(contents)];
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
}); };
|
|
1951
|
+
var deserializeAws_restJson1GetResourceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1952
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
1953
|
+
var _h;
|
|
1502
1954
|
return __generator(this, function (_j) {
|
|
1503
1955
|
switch (_j.label) {
|
|
1504
1956
|
case 0:
|
|
@@ -1757,8 +2209,102 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
|
|
|
1757
2209
|
parsedBody = parsedOutput.body;
|
|
1758
2210
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1759
2211
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1760
|
-
_j.label = 13;
|
|
1761
|
-
case 13:
|
|
2212
|
+
_j.label = 13;
|
|
2213
|
+
case 13:
|
|
2214
|
+
message = response.message || response.Message || errorCode;
|
|
2215
|
+
response.message = message;
|
|
2216
|
+
delete response.Message;
|
|
2217
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2218
|
+
}
|
|
2219
|
+
});
|
|
2220
|
+
}); };
|
|
2221
|
+
export var deserializeAws_restJson1ListInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2222
|
+
var contents, data, _a, _b;
|
|
2223
|
+
return __generator(this, function (_c) {
|
|
2224
|
+
switch (_c.label) {
|
|
2225
|
+
case 0:
|
|
2226
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2227
|
+
return [2, deserializeAws_restJson1ListInsightsCommandError(output, context)];
|
|
2228
|
+
}
|
|
2229
|
+
contents = {
|
|
2230
|
+
$metadata: deserializeMetadata(output),
|
|
2231
|
+
NextToken: undefined,
|
|
2232
|
+
ProactiveInsights: undefined,
|
|
2233
|
+
ReactiveInsights: undefined,
|
|
2234
|
+
};
|
|
2235
|
+
_a = __expectNonNull;
|
|
2236
|
+
_b = __expectObject;
|
|
2237
|
+
return [4, parseBody(output.body, context)];
|
|
2238
|
+
case 1:
|
|
2239
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2240
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2241
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2242
|
+
}
|
|
2243
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2244
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2245
|
+
}
|
|
2246
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2247
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2248
|
+
}
|
|
2249
|
+
return [2, Promise.resolve(contents)];
|
|
2250
|
+
}
|
|
2251
|
+
});
|
|
2252
|
+
}); };
|
|
2253
|
+
var deserializeAws_restJson1ListInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2254
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2255
|
+
var _g;
|
|
2256
|
+
return __generator(this, function (_h) {
|
|
2257
|
+
switch (_h.label) {
|
|
2258
|
+
case 0:
|
|
2259
|
+
_a = [__assign({}, output)];
|
|
2260
|
+
_g = {};
|
|
2261
|
+
return [4, parseBody(output.body, context)];
|
|
2262
|
+
case 1:
|
|
2263
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2264
|
+
errorCode = "UnknownError";
|
|
2265
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
|
+
_b = errorCode;
|
|
2267
|
+
switch (_b) {
|
|
2268
|
+
case "AccessDeniedException": return [3, 2];
|
|
2269
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
2270
|
+
case "InternalServerException": return [3, 4];
|
|
2271
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
2272
|
+
case "ThrottlingException": return [3, 6];
|
|
2273
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
2274
|
+
case "ValidationException": return [3, 8];
|
|
2275
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2276
|
+
}
|
|
2277
|
+
return [3, 10];
|
|
2278
|
+
case 2:
|
|
2279
|
+
_c = [{}];
|
|
2280
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2281
|
+
case 3:
|
|
2282
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2283
|
+
return [3, 11];
|
|
2284
|
+
case 4:
|
|
2285
|
+
_d = [{}];
|
|
2286
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2287
|
+
case 5:
|
|
2288
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2289
|
+
return [3, 11];
|
|
2290
|
+
case 6:
|
|
2291
|
+
_e = [{}];
|
|
2292
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2293
|
+
case 7:
|
|
2294
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2295
|
+
return [3, 11];
|
|
2296
|
+
case 8:
|
|
2297
|
+
_f = [{}];
|
|
2298
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2299
|
+
case 9:
|
|
2300
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2301
|
+
return [3, 11];
|
|
2302
|
+
case 10:
|
|
2303
|
+
parsedBody = parsedOutput.body;
|
|
2304
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2305
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2306
|
+
_h.label = 11;
|
|
2307
|
+
case 11:
|
|
1762
2308
|
message = response.message || response.Message || errorCode;
|
|
1763
2309
|
response.message = message;
|
|
1764
2310
|
delete response.Message;
|
|
@@ -1766,39 +2312,35 @@ var deserializeAws_restJson1ListEventsCommandError = function (output, context)
|
|
|
1766
2312
|
}
|
|
1767
2313
|
});
|
|
1768
2314
|
}); };
|
|
1769
|
-
export var
|
|
2315
|
+
export var deserializeAws_restJson1ListNotificationChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1770
2316
|
var contents, data, _a, _b;
|
|
1771
2317
|
return __generator(this, function (_c) {
|
|
1772
2318
|
switch (_c.label) {
|
|
1773
2319
|
case 0:
|
|
1774
2320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1775
|
-
return [2,
|
|
2321
|
+
return [2, deserializeAws_restJson1ListNotificationChannelsCommandError(output, context)];
|
|
1776
2322
|
}
|
|
1777
2323
|
contents = {
|
|
1778
2324
|
$metadata: deserializeMetadata(output),
|
|
2325
|
+
Channels: undefined,
|
|
1779
2326
|
NextToken: undefined,
|
|
1780
|
-
ProactiveInsights: undefined,
|
|
1781
|
-
ReactiveInsights: undefined,
|
|
1782
2327
|
};
|
|
1783
2328
|
_a = __expectNonNull;
|
|
1784
2329
|
_b = __expectObject;
|
|
1785
2330
|
return [4, parseBody(output.body, context)];
|
|
1786
2331
|
case 1:
|
|
1787
2332
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2333
|
+
if (data.Channels !== undefined && data.Channels !== null) {
|
|
2334
|
+
contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
|
|
2335
|
+
}
|
|
1788
2336
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1789
2337
|
contents.NextToken = __expectString(data.NextToken);
|
|
1790
2338
|
}
|
|
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
|
-
}
|
|
1797
2339
|
return [2, Promise.resolve(contents)];
|
|
1798
2340
|
}
|
|
1799
2341
|
});
|
|
1800
2342
|
}); };
|
|
1801
|
-
var
|
|
2343
|
+
var deserializeAws_restJson1ListNotificationChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
2344
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1803
2345
|
var _g;
|
|
1804
2346
|
return __generator(this, function (_h) {
|
|
@@ -1860,35 +2402,39 @@ var deserializeAws_restJson1ListInsightsCommandError = function (output, context
|
|
|
1860
2402
|
}
|
|
1861
2403
|
});
|
|
1862
2404
|
}); };
|
|
1863
|
-
export var
|
|
2405
|
+
export var deserializeAws_restJson1ListOrganizationInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1864
2406
|
var contents, data, _a, _b;
|
|
1865
2407
|
return __generator(this, function (_c) {
|
|
1866
2408
|
switch (_c.label) {
|
|
1867
2409
|
case 0:
|
|
1868
2410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
-
return [2,
|
|
2411
|
+
return [2, deserializeAws_restJson1ListOrganizationInsightsCommandError(output, context)];
|
|
1870
2412
|
}
|
|
1871
2413
|
contents = {
|
|
1872
2414
|
$metadata: deserializeMetadata(output),
|
|
1873
|
-
Channels: undefined,
|
|
1874
2415
|
NextToken: undefined,
|
|
2416
|
+
ProactiveInsights: undefined,
|
|
2417
|
+
ReactiveInsights: undefined,
|
|
1875
2418
|
};
|
|
1876
2419
|
_a = __expectNonNull;
|
|
1877
2420
|
_b = __expectObject;
|
|
1878
2421
|
return [4, parseBody(output.body, context)];
|
|
1879
2422
|
case 1:
|
|
1880
2423
|
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
2424
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1885
2425
|
contents.NextToken = __expectString(data.NextToken);
|
|
1886
2426
|
}
|
|
2427
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2428
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
|
|
2429
|
+
}
|
|
2430
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2431
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveOrganizationInsights(data.ReactiveInsights, context);
|
|
2432
|
+
}
|
|
1887
2433
|
return [2, Promise.resolve(contents)];
|
|
1888
2434
|
}
|
|
1889
2435
|
});
|
|
1890
2436
|
}); };
|
|
1891
|
-
var
|
|
2437
|
+
var deserializeAws_restJson1ListOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1892
2438
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1893
2439
|
var _g;
|
|
1894
2440
|
return __generator(this, function (_h) {
|
|
@@ -2334,6 +2880,100 @@ var deserializeAws_restJson1SearchInsightsCommandError = function (output, conte
|
|
|
2334
2880
|
}
|
|
2335
2881
|
});
|
|
2336
2882
|
}); };
|
|
2883
|
+
export var deserializeAws_restJson1SearchOrganizationInsightsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2884
|
+
var contents, data, _a, _b;
|
|
2885
|
+
return __generator(this, function (_c) {
|
|
2886
|
+
switch (_c.label) {
|
|
2887
|
+
case 0:
|
|
2888
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2889
|
+
return [2, deserializeAws_restJson1SearchOrganizationInsightsCommandError(output, context)];
|
|
2890
|
+
}
|
|
2891
|
+
contents = {
|
|
2892
|
+
$metadata: deserializeMetadata(output),
|
|
2893
|
+
NextToken: undefined,
|
|
2894
|
+
ProactiveInsights: undefined,
|
|
2895
|
+
ReactiveInsights: undefined,
|
|
2896
|
+
};
|
|
2897
|
+
_a = __expectNonNull;
|
|
2898
|
+
_b = __expectObject;
|
|
2899
|
+
return [4, parseBody(output.body, context)];
|
|
2900
|
+
case 1:
|
|
2901
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2902
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2903
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2904
|
+
}
|
|
2905
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2906
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2907
|
+
}
|
|
2908
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2909
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2910
|
+
}
|
|
2911
|
+
return [2, Promise.resolve(contents)];
|
|
2912
|
+
}
|
|
2913
|
+
});
|
|
2914
|
+
}); };
|
|
2915
|
+
var deserializeAws_restJson1SearchOrganizationInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2916
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2917
|
+
var _g;
|
|
2918
|
+
return __generator(this, function (_h) {
|
|
2919
|
+
switch (_h.label) {
|
|
2920
|
+
case 0:
|
|
2921
|
+
_a = [__assign({}, output)];
|
|
2922
|
+
_g = {};
|
|
2923
|
+
return [4, parseBody(output.body, context)];
|
|
2924
|
+
case 1:
|
|
2925
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2926
|
+
errorCode = "UnknownError";
|
|
2927
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
|
+
_b = errorCode;
|
|
2929
|
+
switch (_b) {
|
|
2930
|
+
case "AccessDeniedException": return [3, 2];
|
|
2931
|
+
case "com.amazonaws.devopsguru#AccessDeniedException": return [3, 2];
|
|
2932
|
+
case "InternalServerException": return [3, 4];
|
|
2933
|
+
case "com.amazonaws.devopsguru#InternalServerException": return [3, 4];
|
|
2934
|
+
case "ThrottlingException": return [3, 6];
|
|
2935
|
+
case "com.amazonaws.devopsguru#ThrottlingException": return [3, 6];
|
|
2936
|
+
case "ValidationException": return [3, 8];
|
|
2937
|
+
case "com.amazonaws.devopsguru#ValidationException": return [3, 8];
|
|
2938
|
+
}
|
|
2939
|
+
return [3, 10];
|
|
2940
|
+
case 2:
|
|
2941
|
+
_c = [{}];
|
|
2942
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2943
|
+
case 3:
|
|
2944
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2945
|
+
return [3, 11];
|
|
2946
|
+
case 4:
|
|
2947
|
+
_d = [{}];
|
|
2948
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2949
|
+
case 5:
|
|
2950
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2951
|
+
return [3, 11];
|
|
2952
|
+
case 6:
|
|
2953
|
+
_e = [{}];
|
|
2954
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2955
|
+
case 7:
|
|
2956
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2957
|
+
return [3, 11];
|
|
2958
|
+
case 8:
|
|
2959
|
+
_f = [{}];
|
|
2960
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2961
|
+
case 9:
|
|
2962
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2963
|
+
return [3, 11];
|
|
2964
|
+
case 10:
|
|
2965
|
+
parsedBody = parsedOutput.body;
|
|
2966
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2967
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2968
|
+
_h.label = 11;
|
|
2969
|
+
case 11:
|
|
2970
|
+
message = response.message || response.Message || errorCode;
|
|
2971
|
+
response.message = message;
|
|
2972
|
+
delete response.Message;
|
|
2973
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2974
|
+
}
|
|
2975
|
+
});
|
|
2976
|
+
}); };
|
|
2337
2977
|
export var deserializeAws_restJson1StartCostEstimationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2338
2978
|
var contents;
|
|
2339
2979
|
return __generator(this, function (_a) {
|
|
@@ -2758,6 +3398,16 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2758
3398
|
return [2, contents];
|
|
2759
3399
|
});
|
|
2760
3400
|
}); };
|
|
3401
|
+
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
3402
|
+
return input
|
|
3403
|
+
.filter(function (e) { return e != null; })
|
|
3404
|
+
.map(function (entry) {
|
|
3405
|
+
if (entry === null) {
|
|
3406
|
+
return null;
|
|
3407
|
+
}
|
|
3408
|
+
return entry;
|
|
3409
|
+
});
|
|
3410
|
+
};
|
|
2761
3411
|
var serializeAws_restJson1CloudFormationCollection = function (input, context) {
|
|
2762
3412
|
return __assign({}, (input.StackNames !== undefined &&
|
|
2763
3413
|
input.StackNames !== null && { StackNames: serializeAws_restJson1StackNames(input.StackNames, context) }));
|
|
@@ -2769,9 +3419,12 @@ var serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter =
|
|
|
2769
3419
|
}));
|
|
2770
3420
|
};
|
|
2771
3421
|
var serializeAws_restJson1CostEstimationResourceCollectionFilter = function (input, context) {
|
|
2772
|
-
return __assign({}, (input.CloudFormation !== undefined &&
|
|
3422
|
+
return __assign(__assign({}, (input.CloudFormation !== undefined &&
|
|
2773
3423
|
input.CloudFormation !== null && {
|
|
2774
3424
|
CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
|
|
3425
|
+
})), (input.Tags !== undefined &&
|
|
3426
|
+
input.Tags !== null && {
|
|
3427
|
+
Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
|
|
2775
3428
|
}));
|
|
2776
3429
|
};
|
|
2777
3430
|
var serializeAws_restJson1CostEstimationStackNames = function (input, context) {
|
|
@@ -2784,6 +3437,16 @@ var serializeAws_restJson1CostEstimationStackNames = function (input, context) {
|
|
|
2784
3437
|
return entry;
|
|
2785
3438
|
});
|
|
2786
3439
|
};
|
|
3440
|
+
var serializeAws_restJson1CostEstimationTagValues = function (input, context) {
|
|
3441
|
+
return input
|
|
3442
|
+
.filter(function (e) { return e != null; })
|
|
3443
|
+
.map(function (entry) {
|
|
3444
|
+
if (entry === null) {
|
|
3445
|
+
return null;
|
|
3446
|
+
}
|
|
3447
|
+
return entry;
|
|
3448
|
+
});
|
|
3449
|
+
};
|
|
2787
3450
|
var serializeAws_restJson1EndTimeRange = function (input, context) {
|
|
2788
3451
|
return __assign(__assign({}, (input.FromTime !== undefined &&
|
|
2789
3452
|
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
|
|
@@ -2824,6 +3487,16 @@ var serializeAws_restJson1ListEventsFilters = function (input, context) {
|
|
|
2824
3487
|
ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
|
|
2825
3488
|
}));
|
|
2826
3489
|
};
|
|
3490
|
+
var serializeAws_restJson1ListInsightsAccountIdList = function (input, context) {
|
|
3491
|
+
return input
|
|
3492
|
+
.filter(function (e) { return e != null; })
|
|
3493
|
+
.map(function (entry) {
|
|
3494
|
+
if (entry === null) {
|
|
3495
|
+
return null;
|
|
3496
|
+
}
|
|
3497
|
+
return entry;
|
|
3498
|
+
});
|
|
3499
|
+
};
|
|
2827
3500
|
var serializeAws_restJson1ListInsightsAnyStatusFilter = function (input, context) {
|
|
2828
3501
|
return __assign(__assign({}, (input.StartTimeRange !== undefined &&
|
|
2829
3502
|
input.StartTimeRange !== null && {
|
|
@@ -2837,6 +3510,16 @@ var serializeAws_restJson1ListInsightsClosedStatusFilter = function (input, cont
|
|
|
2837
3510
|
var serializeAws_restJson1ListInsightsOngoingStatusFilter = function (input, context) {
|
|
2838
3511
|
return __assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2839
3512
|
};
|
|
3513
|
+
var serializeAws_restJson1ListInsightsOrganizationalUnitIdList = function (input, context) {
|
|
3514
|
+
return input
|
|
3515
|
+
.filter(function (e) { return e != null; })
|
|
3516
|
+
.map(function (entry) {
|
|
3517
|
+
if (entry === null) {
|
|
3518
|
+
return null;
|
|
3519
|
+
}
|
|
3520
|
+
return entry;
|
|
3521
|
+
});
|
|
3522
|
+
};
|
|
2840
3523
|
var serializeAws_restJson1ListInsightsStatusFilter = function (input, context) {
|
|
2841
3524
|
return __assign(__assign(__assign({}, (input.Any !== undefined &&
|
|
2842
3525
|
input.Any !== null && { Any: serializeAws_restJson1ListInsightsAnyStatusFilter(input.Any, context) })), (input.Closed !== undefined &&
|
|
@@ -2852,11 +3535,32 @@ var serializeAws_restJson1NotificationChannelConfig = function (input, context)
|
|
|
2852
3535
|
var serializeAws_restJson1OpsCenterIntegrationConfig = function (input, context) {
|
|
2853
3536
|
return __assign({}, (input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }));
|
|
2854
3537
|
};
|
|
3538
|
+
var serializeAws_restJson1OrganizationalUnitIdList = function (input, context) {
|
|
3539
|
+
return input
|
|
3540
|
+
.filter(function (e) { return e != null; })
|
|
3541
|
+
.map(function (entry) {
|
|
3542
|
+
if (entry === null) {
|
|
3543
|
+
return null;
|
|
3544
|
+
}
|
|
3545
|
+
return entry;
|
|
3546
|
+
});
|
|
3547
|
+
};
|
|
2855
3548
|
var serializeAws_restJson1ResourceCollection = function (input, context) {
|
|
2856
|
-
return __assign({}, (input.CloudFormation !== undefined &&
|
|
3549
|
+
return __assign(__assign({}, (input.CloudFormation !== undefined &&
|
|
2857
3550
|
input.CloudFormation !== null && {
|
|
2858
3551
|
CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
|
|
2859
|
-
}))
|
|
3552
|
+
})), (input.Tags !== undefined &&
|
|
3553
|
+
input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }));
|
|
3554
|
+
};
|
|
3555
|
+
var serializeAws_restJson1SearchInsightsAccountIdList = function (input, context) {
|
|
3556
|
+
return input
|
|
3557
|
+
.filter(function (e) { return e != null; })
|
|
3558
|
+
.map(function (entry) {
|
|
3559
|
+
if (entry === null) {
|
|
3560
|
+
return null;
|
|
3561
|
+
}
|
|
3562
|
+
return entry;
|
|
3563
|
+
});
|
|
2860
3564
|
};
|
|
2861
3565
|
var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
|
|
2862
3566
|
return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
|
|
@@ -2869,6 +3573,17 @@ var serializeAws_restJson1SearchInsightsFilters = function (input, context) {
|
|
|
2869
3573
|
input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
|
|
2870
3574
|
input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
|
|
2871
3575
|
};
|
|
3576
|
+
var serializeAws_restJson1SearchOrganizationInsightsFilters = function (input, context) {
|
|
3577
|
+
return __assign(__assign(__assign(__assign({}, (input.ResourceCollection !== undefined &&
|
|
3578
|
+
input.ResourceCollection !== null && {
|
|
3579
|
+
ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
|
|
3580
|
+
})), (input.ServiceCollection !== undefined &&
|
|
3581
|
+
input.ServiceCollection !== null && {
|
|
3582
|
+
ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
|
|
3583
|
+
})), (input.Severities !== undefined &&
|
|
3584
|
+
input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) })), (input.Statuses !== undefined &&
|
|
3585
|
+
input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }));
|
|
3586
|
+
};
|
|
2872
3587
|
var serializeAws_restJson1ServiceCollection = function (input, context) {
|
|
2873
3588
|
return __assign({}, (input.ServiceNames !== undefined &&
|
|
2874
3589
|
input.ServiceNames !== null && { ServiceNames: serializeAws_restJson1ServiceNames(input.ServiceNames, context) }));
|
|
@@ -2900,15 +3615,58 @@ var serializeAws_restJson1StartTimeRange = function (input, context) {
|
|
|
2900
3615
|
return __assign(__assign({}, (input.FromTime !== undefined &&
|
|
2901
3616
|
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) })), (input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }));
|
|
2902
3617
|
};
|
|
3618
|
+
var serializeAws_restJson1TagCollection = function (input, context) {
|
|
3619
|
+
return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
|
|
3620
|
+
input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
|
|
3621
|
+
input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }));
|
|
3622
|
+
};
|
|
3623
|
+
var serializeAws_restJson1TagCollections = function (input, context) {
|
|
3624
|
+
return input
|
|
3625
|
+
.filter(function (e) { return e != null; })
|
|
3626
|
+
.map(function (entry) {
|
|
3627
|
+
if (entry === null) {
|
|
3628
|
+
return null;
|
|
3629
|
+
}
|
|
3630
|
+
return serializeAws_restJson1TagCollection(entry, context);
|
|
3631
|
+
});
|
|
3632
|
+
};
|
|
3633
|
+
var serializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (input, context) {
|
|
3634
|
+
return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
|
|
3635
|
+
input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
|
|
3636
|
+
input.TagValues !== null && {
|
|
3637
|
+
TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
|
|
3638
|
+
}));
|
|
3639
|
+
};
|
|
3640
|
+
var serializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (input, context) {
|
|
3641
|
+
return input
|
|
3642
|
+
.filter(function (e) { return e != null; })
|
|
3643
|
+
.map(function (entry) {
|
|
3644
|
+
if (entry === null) {
|
|
3645
|
+
return null;
|
|
3646
|
+
}
|
|
3647
|
+
return serializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
|
|
3648
|
+
});
|
|
3649
|
+
};
|
|
3650
|
+
var serializeAws_restJson1TagValues = function (input, context) {
|
|
3651
|
+
return input
|
|
3652
|
+
.filter(function (e) { return e != null; })
|
|
3653
|
+
.map(function (entry) {
|
|
3654
|
+
if (entry === null) {
|
|
3655
|
+
return null;
|
|
3656
|
+
}
|
|
3657
|
+
return entry;
|
|
3658
|
+
});
|
|
3659
|
+
};
|
|
2903
3660
|
var serializeAws_restJson1UpdateCloudFormationCollectionFilter = function (input, context) {
|
|
2904
3661
|
return __assign({}, (input.StackNames !== undefined &&
|
|
2905
3662
|
input.StackNames !== null && { StackNames: serializeAws_restJson1UpdateStackNames(input.StackNames, context) }));
|
|
2906
3663
|
};
|
|
2907
3664
|
var serializeAws_restJson1UpdateResourceCollectionFilter = function (input, context) {
|
|
2908
|
-
return __assign({}, (input.CloudFormation !== undefined &&
|
|
3665
|
+
return __assign(__assign({}, (input.CloudFormation !== undefined &&
|
|
2909
3666
|
input.CloudFormation !== null && {
|
|
2910
3667
|
CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
|
|
2911
|
-
}))
|
|
3668
|
+
})), (input.Tags !== undefined &&
|
|
3669
|
+
input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }));
|
|
2912
3670
|
};
|
|
2913
3671
|
var serializeAws_restJson1UpdateServiceIntegrationConfig = function (input, context) {
|
|
2914
3672
|
return __assign({}, (input.OpsCenter !== undefined &&
|
|
@@ -2916,16 +3674,65 @@ var serializeAws_restJson1UpdateServiceIntegrationConfig = function (input, cont
|
|
|
2916
3674
|
OpsCenter: serializeAws_restJson1OpsCenterIntegrationConfig(input.OpsCenter, context),
|
|
2917
3675
|
}));
|
|
2918
3676
|
};
|
|
2919
|
-
var serializeAws_restJson1UpdateStackNames = function (input, context) {
|
|
2920
|
-
return input
|
|
3677
|
+
var serializeAws_restJson1UpdateStackNames = function (input, context) {
|
|
3678
|
+
return input
|
|
3679
|
+
.filter(function (e) { return e != null; })
|
|
3680
|
+
.map(function (entry) {
|
|
3681
|
+
if (entry === null) {
|
|
3682
|
+
return null;
|
|
3683
|
+
}
|
|
3684
|
+
return entry;
|
|
3685
|
+
});
|
|
3686
|
+
};
|
|
3687
|
+
var serializeAws_restJson1UpdateTagCollectionFilter = function (input, context) {
|
|
3688
|
+
return __assign(__assign({}, (input.AppBoundaryKey !== undefined &&
|
|
3689
|
+
input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey })), (input.TagValues !== undefined &&
|
|
3690
|
+
input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }));
|
|
3691
|
+
};
|
|
3692
|
+
var serializeAws_restJson1UpdateTagCollectionFilters = function (input, context) {
|
|
3693
|
+
return input
|
|
3694
|
+
.filter(function (e) { return e != null; })
|
|
3695
|
+
.map(function (entry) {
|
|
3696
|
+
if (entry === null) {
|
|
3697
|
+
return null;
|
|
3698
|
+
}
|
|
3699
|
+
return serializeAws_restJson1UpdateTagCollectionFilter(entry, context);
|
|
3700
|
+
});
|
|
3701
|
+
};
|
|
3702
|
+
var serializeAws_restJson1UpdateTagValues = function (input, context) {
|
|
3703
|
+
return input
|
|
3704
|
+
.filter(function (e) { return e != null; })
|
|
3705
|
+
.map(function (entry) {
|
|
3706
|
+
if (entry === null) {
|
|
3707
|
+
return null;
|
|
3708
|
+
}
|
|
3709
|
+
return entry;
|
|
3710
|
+
});
|
|
3711
|
+
};
|
|
3712
|
+
var deserializeAws_restJson1AccountHealth = function (output, context) {
|
|
3713
|
+
return {
|
|
3714
|
+
AccountId: __expectString(output.AccountId),
|
|
3715
|
+
Insight: output.Insight !== undefined && output.Insight !== null
|
|
3716
|
+
? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
|
|
3717
|
+
: undefined,
|
|
3718
|
+
};
|
|
3719
|
+
};
|
|
3720
|
+
var deserializeAws_restJson1AccountHealths = function (output, context) {
|
|
3721
|
+
return (output || [])
|
|
2921
3722
|
.filter(function (e) { return e != null; })
|
|
2922
3723
|
.map(function (entry) {
|
|
2923
3724
|
if (entry === null) {
|
|
2924
3725
|
return null;
|
|
2925
3726
|
}
|
|
2926
|
-
return entry;
|
|
3727
|
+
return deserializeAws_restJson1AccountHealth(entry, context);
|
|
2927
3728
|
});
|
|
2928
3729
|
};
|
|
3730
|
+
var deserializeAws_restJson1AccountInsightHealth = function (output, context) {
|
|
3731
|
+
return {
|
|
3732
|
+
OpenProactiveInsights: __expectInt32(output.OpenProactiveInsights),
|
|
3733
|
+
OpenReactiveInsights: __expectInt32(output.OpenReactiveInsights),
|
|
3734
|
+
};
|
|
3735
|
+
};
|
|
2929
3736
|
var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context) {
|
|
2930
3737
|
return {
|
|
2931
3738
|
CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
|
|
@@ -2936,11 +3743,30 @@ var deserializeAws_restJson1AnomalyReportedTimeRange = function (output, context
|
|
|
2936
3743
|
: undefined,
|
|
2937
3744
|
};
|
|
2938
3745
|
};
|
|
3746
|
+
var deserializeAws_restJson1AnomalyResource = function (output, context) {
|
|
3747
|
+
return {
|
|
3748
|
+
Name: __expectString(output.Name),
|
|
3749
|
+
Type: __expectString(output.Type),
|
|
3750
|
+
};
|
|
3751
|
+
};
|
|
3752
|
+
var deserializeAws_restJson1AnomalyResources = function (output, context) {
|
|
3753
|
+
return (output || [])
|
|
3754
|
+
.filter(function (e) { return e != null; })
|
|
3755
|
+
.map(function (entry) {
|
|
3756
|
+
if (entry === null) {
|
|
3757
|
+
return null;
|
|
3758
|
+
}
|
|
3759
|
+
return deserializeAws_restJson1AnomalyResource(entry, context);
|
|
3760
|
+
});
|
|
3761
|
+
};
|
|
2939
3762
|
var deserializeAws_restJson1AnomalySourceDetails = function (output, context) {
|
|
2940
3763
|
return {
|
|
2941
3764
|
CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
|
|
2942
3765
|
? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
|
|
2943
3766
|
: undefined,
|
|
3767
|
+
PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
|
|
3768
|
+
? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
|
|
3769
|
+
: undefined,
|
|
2944
3770
|
};
|
|
2945
3771
|
};
|
|
2946
3772
|
var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
|
|
@@ -2953,6 +3779,16 @@ var deserializeAws_restJson1AnomalyTimeRange = function (output, context) {
|
|
|
2953
3779
|
: undefined,
|
|
2954
3780
|
};
|
|
2955
3781
|
};
|
|
3782
|
+
var deserializeAws_restJson1AssociatedResourceArns = function (output, context) {
|
|
3783
|
+
return (output || [])
|
|
3784
|
+
.filter(function (e) { return e != null; })
|
|
3785
|
+
.map(function (entry) {
|
|
3786
|
+
if (entry === null) {
|
|
3787
|
+
return null;
|
|
3788
|
+
}
|
|
3789
|
+
return __expectString(entry);
|
|
3790
|
+
});
|
|
3791
|
+
};
|
|
2956
3792
|
var deserializeAws_restJson1Channels = function (output, context) {
|
|
2957
3793
|
return (output || [])
|
|
2958
3794
|
.filter(function (e) { return e != null; })
|
|
@@ -3002,11 +3838,22 @@ var deserializeAws_restJson1CloudFormationHealths = function (output, context) {
|
|
|
3002
3838
|
return deserializeAws_restJson1CloudFormationHealth(entry, context);
|
|
3003
3839
|
});
|
|
3004
3840
|
};
|
|
3841
|
+
var deserializeAws_restJson1CloudWatchMetricsDataSummary = function (output, context) {
|
|
3842
|
+
return {
|
|
3843
|
+
StatusCode: __expectString(output.StatusCode),
|
|
3844
|
+
TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
|
|
3845
|
+
? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
|
|
3846
|
+
: undefined,
|
|
3847
|
+
};
|
|
3848
|
+
};
|
|
3005
3849
|
var deserializeAws_restJson1CloudWatchMetricsDetail = function (output, context) {
|
|
3006
3850
|
return {
|
|
3007
3851
|
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
3008
3852
|
? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
|
|
3009
3853
|
: undefined,
|
|
3854
|
+
MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
|
|
3855
|
+
? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
|
|
3856
|
+
: undefined,
|
|
3010
3857
|
MetricName: __expectString(output.MetricName),
|
|
3011
3858
|
Namespace: __expectString(output.Namespace),
|
|
3012
3859
|
Period: __expectInt32(output.Period),
|
|
@@ -3045,6 +3892,9 @@ var deserializeAws_restJson1CostEstimationResourceCollectionFilter = function (o
|
|
|
3045
3892
|
CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
|
|
3046
3893
|
? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
|
|
3047
3894
|
: undefined,
|
|
3895
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3896
|
+
? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
|
|
3897
|
+
: undefined,
|
|
3048
3898
|
};
|
|
3049
3899
|
};
|
|
3050
3900
|
var deserializeAws_restJson1CostEstimationStackNames = function (output, context) {
|
|
@@ -3057,6 +3907,16 @@ var deserializeAws_restJson1CostEstimationStackNames = function (output, context
|
|
|
3057
3907
|
return __expectString(entry);
|
|
3058
3908
|
});
|
|
3059
3909
|
};
|
|
3910
|
+
var deserializeAws_restJson1CostEstimationTagValues = function (output, context) {
|
|
3911
|
+
return (output || [])
|
|
3912
|
+
.filter(function (e) { return e != null; })
|
|
3913
|
+
.map(function (entry) {
|
|
3914
|
+
if (entry === null) {
|
|
3915
|
+
return null;
|
|
3916
|
+
}
|
|
3917
|
+
return __expectString(entry);
|
|
3918
|
+
});
|
|
3919
|
+
};
|
|
3060
3920
|
var deserializeAws_restJson1CostEstimationTimeRange = function (output, context) {
|
|
3061
3921
|
return {
|
|
3062
3922
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -3155,6 +4015,130 @@ var deserializeAws_restJson1OpsCenterIntegration = function (output, context) {
|
|
|
3155
4015
|
OptInStatus: __expectString(output.OptInStatus),
|
|
3156
4016
|
};
|
|
3157
4017
|
};
|
|
4018
|
+
var deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = function (output, context) {
|
|
4019
|
+
return {
|
|
4020
|
+
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
4021
|
+
? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
|
|
4022
|
+
: undefined,
|
|
4023
|
+
Group: __expectString(output.Group),
|
|
4024
|
+
Limit: __expectInt32(output.Limit),
|
|
4025
|
+
};
|
|
4026
|
+
};
|
|
4027
|
+
var deserializeAws_restJson1PerformanceInsightsMetricDimensions = function (output, context) {
|
|
4028
|
+
return (output || [])
|
|
4029
|
+
.filter(function (e) { return e != null; })
|
|
4030
|
+
.map(function (entry) {
|
|
4031
|
+
if (entry === null) {
|
|
4032
|
+
return null;
|
|
4033
|
+
}
|
|
4034
|
+
return __expectString(entry);
|
|
4035
|
+
});
|
|
4036
|
+
};
|
|
4037
|
+
var deserializeAws_restJson1PerformanceInsightsMetricFilterMap = function (output, context) {
|
|
4038
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
4039
|
+
var _b;
|
|
4040
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
4041
|
+
if (value === null) {
|
|
4042
|
+
return acc;
|
|
4043
|
+
}
|
|
4044
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
4045
|
+
}, {});
|
|
4046
|
+
};
|
|
4047
|
+
var deserializeAws_restJson1PerformanceInsightsMetricQuery = function (output, context) {
|
|
4048
|
+
return {
|
|
4049
|
+
Filter: output.Filter !== undefined && output.Filter !== null
|
|
4050
|
+
? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
|
|
4051
|
+
: undefined,
|
|
4052
|
+
GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
|
|
4053
|
+
? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
|
|
4054
|
+
: undefined,
|
|
4055
|
+
Metric: __expectString(output.Metric),
|
|
4056
|
+
};
|
|
4057
|
+
};
|
|
4058
|
+
var deserializeAws_restJson1PerformanceInsightsMetricsDetail = function (output, context) {
|
|
4059
|
+
return {
|
|
4060
|
+
MetricDisplayName: __expectString(output.MetricDisplayName),
|
|
4061
|
+
MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
|
|
4062
|
+
? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
|
|
4063
|
+
: undefined,
|
|
4064
|
+
ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
|
|
4065
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
|
|
4066
|
+
: undefined,
|
|
4067
|
+
StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
|
|
4068
|
+
? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
|
|
4069
|
+
: undefined,
|
|
4070
|
+
StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
|
|
4071
|
+
? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
|
|
4072
|
+
: undefined,
|
|
4073
|
+
Unit: __expectString(output.Unit),
|
|
4074
|
+
};
|
|
4075
|
+
};
|
|
4076
|
+
var deserializeAws_restJson1PerformanceInsightsMetricsDetails = function (output, context) {
|
|
4077
|
+
return (output || [])
|
|
4078
|
+
.filter(function (e) { return e != null; })
|
|
4079
|
+
.map(function (entry) {
|
|
4080
|
+
if (entry === null) {
|
|
4081
|
+
return null;
|
|
4082
|
+
}
|
|
4083
|
+
return deserializeAws_restJson1PerformanceInsightsMetricsDetail(entry, context);
|
|
4084
|
+
});
|
|
4085
|
+
};
|
|
4086
|
+
var deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = function (output, context) {
|
|
4087
|
+
return {
|
|
4088
|
+
ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
|
|
4089
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
|
|
4090
|
+
: undefined,
|
|
4091
|
+
ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
|
|
4092
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
|
|
4093
|
+
: undefined,
|
|
4094
|
+
};
|
|
4095
|
+
};
|
|
4096
|
+
var deserializeAws_restJson1PerformanceInsightsReferenceData = function (output, context) {
|
|
4097
|
+
return {
|
|
4098
|
+
ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
|
|
4099
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
|
|
4100
|
+
: undefined,
|
|
4101
|
+
Name: __expectString(output.Name),
|
|
4102
|
+
};
|
|
4103
|
+
};
|
|
4104
|
+
var deserializeAws_restJson1PerformanceInsightsReferenceDataList = function (output, context) {
|
|
4105
|
+
return (output || [])
|
|
4106
|
+
.filter(function (e) { return e != null; })
|
|
4107
|
+
.map(function (entry) {
|
|
4108
|
+
if (entry === null) {
|
|
4109
|
+
return null;
|
|
4110
|
+
}
|
|
4111
|
+
return deserializeAws_restJson1PerformanceInsightsReferenceData(entry, context);
|
|
4112
|
+
});
|
|
4113
|
+
};
|
|
4114
|
+
var deserializeAws_restJson1PerformanceInsightsReferenceMetric = function (output, context) {
|
|
4115
|
+
return {
|
|
4116
|
+
MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
|
|
4117
|
+
? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
|
|
4118
|
+
: undefined,
|
|
4119
|
+
};
|
|
4120
|
+
};
|
|
4121
|
+
var deserializeAws_restJson1PerformanceInsightsReferenceScalar = function (output, context) {
|
|
4122
|
+
return {
|
|
4123
|
+
Value: __limitedParseDouble(output.Value),
|
|
4124
|
+
};
|
|
4125
|
+
};
|
|
4126
|
+
var deserializeAws_restJson1PerformanceInsightsStat = function (output, context) {
|
|
4127
|
+
return {
|
|
4128
|
+
Type: __expectString(output.Type),
|
|
4129
|
+
Value: __limitedParseDouble(output.Value),
|
|
4130
|
+
};
|
|
4131
|
+
};
|
|
4132
|
+
var deserializeAws_restJson1PerformanceInsightsStats = 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_restJson1PerformanceInsightsStat(entry, context);
|
|
4140
|
+
});
|
|
4141
|
+
};
|
|
3158
4142
|
var deserializeAws_restJson1PredictionTimeRange = function (output, context) {
|
|
3159
4143
|
return {
|
|
3160
4144
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -3259,11 +4243,46 @@ var deserializeAws_restJson1ProactiveInsights = function (output, context) {
|
|
|
3259
4243
|
};
|
|
3260
4244
|
var deserializeAws_restJson1ProactiveInsightSummary = function (output, context) {
|
|
3261
4245
|
return {
|
|
4246
|
+
AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
|
|
4247
|
+
? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
|
|
4248
|
+
: undefined,
|
|
4249
|
+
Id: __expectString(output.Id),
|
|
4250
|
+
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4251
|
+
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
4252
|
+
: undefined,
|
|
4253
|
+
Name: __expectString(output.Name),
|
|
4254
|
+
PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
|
|
4255
|
+
? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
|
|
4256
|
+
: undefined,
|
|
4257
|
+
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
4258
|
+
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
4259
|
+
: undefined,
|
|
4260
|
+
ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
|
|
4261
|
+
? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
|
|
4262
|
+
: undefined,
|
|
4263
|
+
Severity: __expectString(output.Severity),
|
|
4264
|
+
Status: __expectString(output.Status),
|
|
4265
|
+
};
|
|
4266
|
+
};
|
|
4267
|
+
var deserializeAws_restJson1ProactiveOrganizationInsights = function (output, context) {
|
|
4268
|
+
return (output || [])
|
|
4269
|
+
.filter(function (e) { return e != null; })
|
|
4270
|
+
.map(function (entry) {
|
|
4271
|
+
if (entry === null) {
|
|
4272
|
+
return null;
|
|
4273
|
+
}
|
|
4274
|
+
return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context);
|
|
4275
|
+
});
|
|
4276
|
+
};
|
|
4277
|
+
var deserializeAws_restJson1ProactiveOrganizationInsightSummary = function (output, context) {
|
|
4278
|
+
return {
|
|
4279
|
+
AccountId: __expectString(output.AccountId),
|
|
3262
4280
|
Id: __expectString(output.Id),
|
|
3263
4281
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3264
4282
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
3265
4283
|
: undefined,
|
|
3266
4284
|
Name: __expectString(output.Name),
|
|
4285
|
+
OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
|
|
3267
4286
|
PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
|
|
3268
4287
|
? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
|
|
3269
4288
|
: undefined,
|
|
@@ -3292,11 +4311,17 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
|
|
|
3292
4311
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3293
4312
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3294
4313
|
: undefined,
|
|
4314
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
4315
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
4316
|
+
: undefined,
|
|
3295
4317
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3296
4318
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3297
4319
|
: undefined,
|
|
3298
4320
|
AssociatedInsightId: __expectString(output.AssociatedInsightId),
|
|
4321
|
+
CausalAnomalyId: __expectString(output.CausalAnomalyId),
|
|
4322
|
+
Description: __expectString(output.Description),
|
|
3299
4323
|
Id: __expectString(output.Id),
|
|
4324
|
+
Name: __expectString(output.Name),
|
|
3300
4325
|
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
3301
4326
|
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
3302
4327
|
: undefined,
|
|
@@ -3305,6 +4330,7 @@ var deserializeAws_restJson1ReactiveAnomaly = function (output, context) {
|
|
|
3305
4330
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3306
4331
|
: undefined,
|
|
3307
4332
|
Status: __expectString(output.Status),
|
|
4333
|
+
Type: __expectString(output.Type),
|
|
3308
4334
|
};
|
|
3309
4335
|
};
|
|
3310
4336
|
var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context) {
|
|
@@ -3312,11 +4338,17 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
|
|
|
3312
4338
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3313
4339
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3314
4340
|
: undefined,
|
|
4341
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
4342
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
4343
|
+
: undefined,
|
|
3315
4344
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3316
4345
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3317
4346
|
: undefined,
|
|
3318
4347
|
AssociatedInsightId: __expectString(output.AssociatedInsightId),
|
|
4348
|
+
CausalAnomalyId: __expectString(output.CausalAnomalyId),
|
|
4349
|
+
Description: __expectString(output.Description),
|
|
3319
4350
|
Id: __expectString(output.Id),
|
|
4351
|
+
Name: __expectString(output.Name),
|
|
3320
4352
|
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
3321
4353
|
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
3322
4354
|
: undefined,
|
|
@@ -3325,6 +4357,7 @@ var deserializeAws_restJson1ReactiveAnomalySummary = function (output, context)
|
|
|
3325
4357
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3326
4358
|
: undefined,
|
|
3327
4359
|
Status: __expectString(output.Status),
|
|
4360
|
+
Type: __expectString(output.Type),
|
|
3328
4361
|
};
|
|
3329
4362
|
};
|
|
3330
4363
|
var deserializeAws_restJson1ReactiveInsight = function (output, context) {
|
|
@@ -3354,11 +4387,43 @@ var deserializeAws_restJson1ReactiveInsights = function (output, context) {
|
|
|
3354
4387
|
};
|
|
3355
4388
|
var deserializeAws_restJson1ReactiveInsightSummary = function (output, context) {
|
|
3356
4389
|
return {
|
|
4390
|
+
AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
|
|
4391
|
+
? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
|
|
4392
|
+
: undefined,
|
|
4393
|
+
Id: __expectString(output.Id),
|
|
4394
|
+
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4395
|
+
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
4396
|
+
: undefined,
|
|
4397
|
+
Name: __expectString(output.Name),
|
|
4398
|
+
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
4399
|
+
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
4400
|
+
: undefined,
|
|
4401
|
+
ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
|
|
4402
|
+
? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
|
|
4403
|
+
: undefined,
|
|
4404
|
+
Severity: __expectString(output.Severity),
|
|
4405
|
+
Status: __expectString(output.Status),
|
|
4406
|
+
};
|
|
4407
|
+
};
|
|
4408
|
+
var deserializeAws_restJson1ReactiveOrganizationInsights = function (output, context) {
|
|
4409
|
+
return (output || [])
|
|
4410
|
+
.filter(function (e) { return e != null; })
|
|
4411
|
+
.map(function (entry) {
|
|
4412
|
+
if (entry === null) {
|
|
4413
|
+
return null;
|
|
4414
|
+
}
|
|
4415
|
+
return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context);
|
|
4416
|
+
});
|
|
4417
|
+
};
|
|
4418
|
+
var deserializeAws_restJson1ReactiveOrganizationInsightSummary = function (output, context) {
|
|
4419
|
+
return {
|
|
4420
|
+
AccountId: __expectString(output.AccountId),
|
|
3357
4421
|
Id: __expectString(output.Id),
|
|
3358
4422
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3359
4423
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
3360
4424
|
: undefined,
|
|
3361
4425
|
Name: __expectString(output.Name),
|
|
4426
|
+
OrganizationalUnitId: __expectString(output.OrganizationalUnitId),
|
|
3362
4427
|
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
3363
4428
|
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
3364
4429
|
: undefined,
|
|
@@ -3395,6 +4460,7 @@ var deserializeAws_restJson1RecommendationRelatedAnomalies = function (output, c
|
|
|
3395
4460
|
};
|
|
3396
4461
|
var deserializeAws_restJson1RecommendationRelatedAnomaly = function (output, context) {
|
|
3397
4462
|
return {
|
|
4463
|
+
AnomalyId: __expectString(output.AnomalyId),
|
|
3398
4464
|
Resources: output.Resources !== undefined && output.Resources !== null
|
|
3399
4465
|
? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
|
|
3400
4466
|
: undefined,
|
|
@@ -3501,6 +4567,9 @@ var deserializeAws_restJson1ResourceCollection = function (output, context) {
|
|
|
3501
4567
|
CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
|
|
3502
4568
|
? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
|
|
3503
4569
|
: undefined,
|
|
4570
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4571
|
+
? deserializeAws_restJson1TagCollections(output.Tags, context)
|
|
4572
|
+
: undefined,
|
|
3504
4573
|
};
|
|
3505
4574
|
};
|
|
3506
4575
|
var deserializeAws_restJson1ResourceCollectionFilter = function (output, context) {
|
|
@@ -3508,6 +4577,9 @@ var deserializeAws_restJson1ResourceCollectionFilter = function (output, context
|
|
|
3508
4577
|
CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
|
|
3509
4578
|
? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
|
|
3510
4579
|
: undefined,
|
|
4580
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4581
|
+
? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
|
|
4582
|
+
: undefined,
|
|
3511
4583
|
};
|
|
3512
4584
|
};
|
|
3513
4585
|
var deserializeAws_restJson1ServiceCollection = function (output, context) {
|
|
@@ -3592,6 +4664,107 @@ var deserializeAws_restJson1StackNames = function (output, context) {
|
|
|
3592
4664
|
return __expectString(entry);
|
|
3593
4665
|
});
|
|
3594
4666
|
};
|
|
4667
|
+
var deserializeAws_restJson1TagCollection = function (output, context) {
|
|
4668
|
+
return {
|
|
4669
|
+
AppBoundaryKey: __expectString(output.AppBoundaryKey),
|
|
4670
|
+
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
4671
|
+
? deserializeAws_restJson1TagValues(output.TagValues, context)
|
|
4672
|
+
: undefined,
|
|
4673
|
+
};
|
|
4674
|
+
};
|
|
4675
|
+
var deserializeAws_restJson1TagCollectionFilter = function (output, context) {
|
|
4676
|
+
return {
|
|
4677
|
+
AppBoundaryKey: __expectString(output.AppBoundaryKey),
|
|
4678
|
+
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
4679
|
+
? deserializeAws_restJson1TagValues(output.TagValues, context)
|
|
4680
|
+
: undefined,
|
|
4681
|
+
};
|
|
4682
|
+
};
|
|
4683
|
+
var deserializeAws_restJson1TagCollectionFilters = function (output, context) {
|
|
4684
|
+
return (output || [])
|
|
4685
|
+
.filter(function (e) { return e != null; })
|
|
4686
|
+
.map(function (entry) {
|
|
4687
|
+
if (entry === null) {
|
|
4688
|
+
return null;
|
|
4689
|
+
}
|
|
4690
|
+
return deserializeAws_restJson1TagCollectionFilter(entry, context);
|
|
4691
|
+
});
|
|
4692
|
+
};
|
|
4693
|
+
var deserializeAws_restJson1TagCollections = function (output, context) {
|
|
4694
|
+
return (output || [])
|
|
4695
|
+
.filter(function (e) { return e != null; })
|
|
4696
|
+
.map(function (entry) {
|
|
4697
|
+
if (entry === null) {
|
|
4698
|
+
return null;
|
|
4699
|
+
}
|
|
4700
|
+
return deserializeAws_restJson1TagCollection(entry, context);
|
|
4701
|
+
});
|
|
4702
|
+
};
|
|
4703
|
+
var deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = function (output, context) {
|
|
4704
|
+
return {
|
|
4705
|
+
AppBoundaryKey: __expectString(output.AppBoundaryKey),
|
|
4706
|
+
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
4707
|
+
? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
|
|
4708
|
+
: undefined,
|
|
4709
|
+
};
|
|
4710
|
+
};
|
|
4711
|
+
var deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = function (output, context) {
|
|
4712
|
+
return (output || [])
|
|
4713
|
+
.filter(function (e) { return e != null; })
|
|
4714
|
+
.map(function (entry) {
|
|
4715
|
+
if (entry === null) {
|
|
4716
|
+
return null;
|
|
4717
|
+
}
|
|
4718
|
+
return deserializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
|
|
4719
|
+
});
|
|
4720
|
+
};
|
|
4721
|
+
var deserializeAws_restJson1TagHealth = function (output, context) {
|
|
4722
|
+
return {
|
|
4723
|
+
AppBoundaryKey: __expectString(output.AppBoundaryKey),
|
|
4724
|
+
Insight: output.Insight !== undefined && output.Insight !== null
|
|
4725
|
+
? deserializeAws_restJson1InsightHealth(output.Insight, context)
|
|
4726
|
+
: undefined,
|
|
4727
|
+
TagValue: __expectString(output.TagValue),
|
|
4728
|
+
};
|
|
4729
|
+
};
|
|
4730
|
+
var deserializeAws_restJson1TagHealths = function (output, context) {
|
|
4731
|
+
return (output || [])
|
|
4732
|
+
.filter(function (e) { return e != null; })
|
|
4733
|
+
.map(function (entry) {
|
|
4734
|
+
if (entry === null) {
|
|
4735
|
+
return null;
|
|
4736
|
+
}
|
|
4737
|
+
return deserializeAws_restJson1TagHealth(entry, context);
|
|
4738
|
+
});
|
|
4739
|
+
};
|
|
4740
|
+
var deserializeAws_restJson1TagValues = function (output, context) {
|
|
4741
|
+
return (output || [])
|
|
4742
|
+
.filter(function (e) { return e != null; })
|
|
4743
|
+
.map(function (entry) {
|
|
4744
|
+
if (entry === null) {
|
|
4745
|
+
return null;
|
|
4746
|
+
}
|
|
4747
|
+
return __expectString(entry);
|
|
4748
|
+
});
|
|
4749
|
+
};
|
|
4750
|
+
var deserializeAws_restJson1TimestampMetricValuePair = function (output, context) {
|
|
4751
|
+
return {
|
|
4752
|
+
MetricValue: __limitedParseDouble(output.MetricValue),
|
|
4753
|
+
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
4754
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
|
|
4755
|
+
: undefined,
|
|
4756
|
+
};
|
|
4757
|
+
};
|
|
4758
|
+
var deserializeAws_restJson1TimestampMetricValuePairList = function (output, context) {
|
|
4759
|
+
return (output || [])
|
|
4760
|
+
.filter(function (e) { return e != null; })
|
|
4761
|
+
.map(function (entry) {
|
|
4762
|
+
if (entry === null) {
|
|
4763
|
+
return null;
|
|
4764
|
+
}
|
|
4765
|
+
return deserializeAws_restJson1TimestampMetricValuePair(entry, context);
|
|
4766
|
+
});
|
|
4767
|
+
};
|
|
3595
4768
|
var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
|
|
3596
4769
|
return {
|
|
3597
4770
|
Message: __expectString(output.Message),
|