@aws-sdk/client-devops-guru 3.40.0 → 3.44.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 +8 -0
- package/dist-cjs/models/models_0.js +219 -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 +1335 -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 +8 -0
- package/dist-es/models/models_0.js +153 -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 +1280 -111
- package/dist-types/DevOpsGuru.d.ts +117 -92
- package/dist-types/DevOpsGuruClient.d.ts +19 -16
- package/dist-types/commands/AddNotificationChannelCommand.d.ts +5 -7
- package/dist-types/commands/DescribeAccountHealthCommand.d.ts +4 -5
- package/dist-types/commands/DescribeAccountOverviewCommand.d.ts +4 -5
- package/dist-types/commands/DescribeAnomalyCommand.d.ts +2 -4
- package/dist-types/commands/DescribeFeedbackCommand.d.ts +2 -3
- package/dist-types/commands/DescribeInsightCommand.d.ts +2 -4
- package/dist-types/commands/DescribeOrganizationHealthCommand.d.ts +36 -0
- package/dist-types/commands/DescribeOrganizationOverviewCommand.d.ts +36 -0
- package/dist-types/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +37 -0
- package/dist-types/commands/DescribeResourceCollectionHealthCommand.d.ts +6 -6
- package/dist-types/commands/DescribeServiceIntegrationCommand.d.ts +3 -5
- package/dist-types/commands/GetCostEstimationCommand.d.ts +2 -2
- package/dist-types/commands/GetResourceCollectionCommand.d.ts +5 -5
- package/dist-types/commands/ListAnomaliesForInsightCommand.d.ts +3 -4
- package/dist-types/commands/ListEventsCommand.d.ts +3 -4
- package/dist-types/commands/ListInsightsCommand.d.ts +4 -5
- package/dist-types/commands/ListNotificationChannelsCommand.d.ts +5 -6
- package/dist-types/commands/ListOrganizationInsightsCommand.d.ts +35 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +3 -4
- package/dist-types/commands/PutFeedbackCommand.d.ts +2 -4
- package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +4 -5
- package/dist-types/commands/SearchInsightsCommand.d.ts +9 -10
- package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +42 -0
- package/dist-types/commands/StartCostEstimationCommand.d.ts +3 -2
- package/dist-types/commands/UpdateResourceCollectionCommand.d.ts +5 -4
- package/dist-types/commands/UpdateServiceIntegrationCommand.d.ts +4 -5
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +2040 -885
- 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 +486 -6
- 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 +4 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_restJson1StartCostEstimationCommand = exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = exports.deserializeAws_restJson1SearchInsightsCommand = exports.deserializeAws_restJson1RemoveNotificationChannelCommand = exports.deserializeAws_restJson1PutFeedbackCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListOrganizationInsightsCommand = exports.deserializeAws_restJson1ListNotificationChannelsCommand = exports.deserializeAws_restJson1ListInsightsCommand = exports.deserializeAws_restJson1ListEventsCommand = exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = exports.deserializeAws_restJson1GetResourceCollectionCommand = exports.deserializeAws_restJson1GetCostEstimationCommand = exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = exports.deserializeAws_restJson1DescribeInsightCommand = exports.deserializeAws_restJson1DescribeFeedbackCommand = exports.deserializeAws_restJson1DescribeAnomalyCommand = exports.deserializeAws_restJson1DescribeAccountOverviewCommand = exports.deserializeAws_restJson1DescribeAccountHealthCommand = exports.deserializeAws_restJson1AddNotificationChannelCommand = exports.serializeAws_restJson1UpdateServiceIntegrationCommand = exports.serializeAws_restJson1UpdateResourceCollectionCommand = exports.serializeAws_restJson1StartCostEstimationCommand = exports.serializeAws_restJson1SearchOrganizationInsightsCommand = exports.serializeAws_restJson1SearchInsightsCommand = exports.serializeAws_restJson1RemoveNotificationChannelCommand = exports.serializeAws_restJson1PutFeedbackCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListOrganizationInsightsCommand = exports.serializeAws_restJson1ListNotificationChannelsCommand = exports.serializeAws_restJson1ListInsightsCommand = exports.serializeAws_restJson1ListEventsCommand = exports.serializeAws_restJson1ListAnomaliesForInsightCommand = exports.serializeAws_restJson1GetResourceCollectionCommand = exports.serializeAws_restJson1GetCostEstimationCommand = exports.serializeAws_restJson1DescribeServiceIntegrationCommand = exports.serializeAws_restJson1DescribeResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = exports.serializeAws_restJson1DescribeOrganizationHealthCommand = exports.serializeAws_restJson1DescribeInsightCommand = exports.serializeAws_restJson1DescribeFeedbackCommand = exports.serializeAws_restJson1DescribeAnomalyCommand = exports.serializeAws_restJson1DescribeAccountOverviewCommand = exports.serializeAws_restJson1DescribeAccountHealthCommand = exports.serializeAws_restJson1AddNotificationChannelCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = exports.deserializeAws_restJson1UpdateResourceCollectionCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
@@ -82,6 +83,9 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
|
|
|
82
83
|
else {
|
|
83
84
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
84
85
|
}
|
|
86
|
+
const query = {
|
|
87
|
+
...(input.AccountId !== undefined && { AccountId: input.AccountId }),
|
|
88
|
+
};
|
|
85
89
|
let body;
|
|
86
90
|
return new protocol_http_1.HttpRequest({
|
|
87
91
|
protocol,
|
|
@@ -90,6 +94,7 @@ const serializeAws_restJson1DescribeAnomalyCommand = async (input, context) => {
|
|
|
90
94
|
method: "GET",
|
|
91
95
|
headers,
|
|
92
96
|
path: resolvedPath,
|
|
97
|
+
query,
|
|
93
98
|
body,
|
|
94
99
|
});
|
|
95
100
|
};
|
|
@@ -129,6 +134,9 @@ const serializeAws_restJson1DescribeInsightCommand = async (input, context) => {
|
|
|
129
134
|
else {
|
|
130
135
|
throw new Error("No value provided for input HTTP label: Id.");
|
|
131
136
|
}
|
|
137
|
+
const query = {
|
|
138
|
+
...(input.AccountId !== undefined && { AccountId: input.AccountId }),
|
|
139
|
+
};
|
|
132
140
|
let body;
|
|
133
141
|
return new protocol_http_1.HttpRequest({
|
|
134
142
|
protocol,
|
|
@@ -137,10 +145,98 @@ const serializeAws_restJson1DescribeInsightCommand = async (input, context) => {
|
|
|
137
145
|
method: "GET",
|
|
138
146
|
headers,
|
|
139
147
|
path: resolvedPath,
|
|
148
|
+
query,
|
|
140
149
|
body,
|
|
141
150
|
});
|
|
142
151
|
};
|
|
143
152
|
exports.serializeAws_restJson1DescribeInsightCommand = serializeAws_restJson1DescribeInsightCommand;
|
|
153
|
+
const serializeAws_restJson1DescribeOrganizationHealthCommand = async (input, context) => {
|
|
154
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
155
|
+
const headers = {
|
|
156
|
+
"content-type": "application/json",
|
|
157
|
+
};
|
|
158
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health";
|
|
159
|
+
let body;
|
|
160
|
+
body = JSON.stringify({
|
|
161
|
+
...(input.AccountIds !== undefined &&
|
|
162
|
+
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
163
|
+
...(input.OrganizationalUnitIds !== undefined &&
|
|
164
|
+
input.OrganizationalUnitIds !== null && {
|
|
165
|
+
OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
166
|
+
}),
|
|
167
|
+
});
|
|
168
|
+
return new protocol_http_1.HttpRequest({
|
|
169
|
+
protocol,
|
|
170
|
+
hostname,
|
|
171
|
+
port,
|
|
172
|
+
method: "POST",
|
|
173
|
+
headers,
|
|
174
|
+
path: resolvedPath,
|
|
175
|
+
body,
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.serializeAws_restJson1DescribeOrganizationHealthCommand = serializeAws_restJson1DescribeOrganizationHealthCommand;
|
|
179
|
+
const serializeAws_restJson1DescribeOrganizationOverviewCommand = async (input, context) => {
|
|
180
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
181
|
+
const headers = {
|
|
182
|
+
"content-type": "application/json",
|
|
183
|
+
};
|
|
184
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/overview";
|
|
185
|
+
let body;
|
|
186
|
+
body = JSON.stringify({
|
|
187
|
+
...(input.AccountIds !== undefined &&
|
|
188
|
+
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
189
|
+
...(input.FromTime !== undefined &&
|
|
190
|
+
input.FromTime !== null && { FromTime: Math.round(input.FromTime.getTime() / 1000) }),
|
|
191
|
+
...(input.OrganizationalUnitIds !== undefined &&
|
|
192
|
+
input.OrganizationalUnitIds !== null && {
|
|
193
|
+
OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
194
|
+
}),
|
|
195
|
+
...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
|
|
196
|
+
});
|
|
197
|
+
return new protocol_http_1.HttpRequest({
|
|
198
|
+
protocol,
|
|
199
|
+
hostname,
|
|
200
|
+
port,
|
|
201
|
+
method: "POST",
|
|
202
|
+
headers,
|
|
203
|
+
path: resolvedPath,
|
|
204
|
+
body,
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
exports.serializeAws_restJson1DescribeOrganizationOverviewCommand = serializeAws_restJson1DescribeOrganizationOverviewCommand;
|
|
208
|
+
const serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = async (input, context) => {
|
|
209
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
|
+
const headers = {
|
|
211
|
+
"content-type": "application/json",
|
|
212
|
+
};
|
|
213
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/health/resource-collection";
|
|
214
|
+
let body;
|
|
215
|
+
body = JSON.stringify({
|
|
216
|
+
...(input.AccountIds !== undefined &&
|
|
217
|
+
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
218
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
219
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
220
|
+
...(input.OrganizationResourceCollectionType !== undefined &&
|
|
221
|
+
input.OrganizationResourceCollectionType !== null && {
|
|
222
|
+
OrganizationResourceCollectionType: input.OrganizationResourceCollectionType,
|
|
223
|
+
}),
|
|
224
|
+
...(input.OrganizationalUnitIds !== undefined &&
|
|
225
|
+
input.OrganizationalUnitIds !== null && {
|
|
226
|
+
OrganizationalUnitIds: serializeAws_restJson1OrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
227
|
+
}),
|
|
228
|
+
});
|
|
229
|
+
return new protocol_http_1.HttpRequest({
|
|
230
|
+
protocol,
|
|
231
|
+
hostname,
|
|
232
|
+
port,
|
|
233
|
+
method: "POST",
|
|
234
|
+
headers,
|
|
235
|
+
path: resolvedPath,
|
|
236
|
+
body,
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
exports.serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = serializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand;
|
|
144
240
|
const serializeAws_restJson1DescribeResourceCollectionHealthCommand = async (input, context) => {
|
|
145
241
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
242
|
const headers = {};
|
|
@@ -260,6 +356,7 @@ const serializeAws_restJson1ListAnomaliesForInsightCommand = async (input, conte
|
|
|
260
356
|
}
|
|
261
357
|
let body;
|
|
262
358
|
body = JSON.stringify({
|
|
359
|
+
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
263
360
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
264
361
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
265
362
|
...(input.StartTimeRange !== undefined &&
|
|
@@ -286,6 +383,7 @@ const serializeAws_restJson1ListEventsCommand = async (input, context) => {
|
|
|
286
383
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/events";
|
|
287
384
|
let body;
|
|
288
385
|
body = JSON.stringify({
|
|
386
|
+
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
289
387
|
...(input.Filters !== undefined &&
|
|
290
388
|
input.Filters !== null && { Filters: serializeAws_restJson1ListEventsFilters(input.Filters, context) }),
|
|
291
389
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
@@ -349,6 +447,40 @@ const serializeAws_restJson1ListNotificationChannelsCommand = async (input, cont
|
|
|
349
447
|
});
|
|
350
448
|
};
|
|
351
449
|
exports.serializeAws_restJson1ListNotificationChannelsCommand = serializeAws_restJson1ListNotificationChannelsCommand;
|
|
450
|
+
const serializeAws_restJson1ListOrganizationInsightsCommand = async (input, context) => {
|
|
451
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
|
+
const headers = {
|
|
453
|
+
"content-type": "application/json",
|
|
454
|
+
};
|
|
455
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights";
|
|
456
|
+
let body;
|
|
457
|
+
body = JSON.stringify({
|
|
458
|
+
...(input.AccountIds !== undefined &&
|
|
459
|
+
input.AccountIds !== null && {
|
|
460
|
+
AccountIds: serializeAws_restJson1ListInsightsAccountIdList(input.AccountIds, context),
|
|
461
|
+
}),
|
|
462
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
463
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
464
|
+
...(input.OrganizationalUnitIds !== undefined &&
|
|
465
|
+
input.OrganizationalUnitIds !== null && {
|
|
466
|
+
OrganizationalUnitIds: serializeAws_restJson1ListInsightsOrganizationalUnitIdList(input.OrganizationalUnitIds, context),
|
|
467
|
+
}),
|
|
468
|
+
...(input.StatusFilter !== undefined &&
|
|
469
|
+
input.StatusFilter !== null && {
|
|
470
|
+
StatusFilter: serializeAws_restJson1ListInsightsStatusFilter(input.StatusFilter, context),
|
|
471
|
+
}),
|
|
472
|
+
});
|
|
473
|
+
return new protocol_http_1.HttpRequest({
|
|
474
|
+
protocol,
|
|
475
|
+
hostname,
|
|
476
|
+
port,
|
|
477
|
+
method: "POST",
|
|
478
|
+
headers,
|
|
479
|
+
path: resolvedPath,
|
|
480
|
+
body,
|
|
481
|
+
});
|
|
482
|
+
};
|
|
483
|
+
exports.serializeAws_restJson1ListOrganizationInsightsCommand = serializeAws_restJson1ListOrganizationInsightsCommand;
|
|
352
484
|
const serializeAws_restJson1ListRecommendationsCommand = async (input, context) => {
|
|
353
485
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
354
486
|
const headers = {
|
|
@@ -357,6 +489,7 @@ const serializeAws_restJson1ListRecommendationsCommand = async (input, context)
|
|
|
357
489
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recommendations";
|
|
358
490
|
let body;
|
|
359
491
|
body = JSON.stringify({
|
|
492
|
+
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
360
493
|
...(input.InsightId !== undefined && input.InsightId !== null && { InsightId: input.InsightId }),
|
|
361
494
|
...(input.Locale !== undefined && input.Locale !== null && { Locale: input.Locale }),
|
|
362
495
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
@@ -451,6 +584,41 @@ const serializeAws_restJson1SearchInsightsCommand = async (input, context) => {
|
|
|
451
584
|
});
|
|
452
585
|
};
|
|
453
586
|
exports.serializeAws_restJson1SearchInsightsCommand = serializeAws_restJson1SearchInsightsCommand;
|
|
587
|
+
const serializeAws_restJson1SearchOrganizationInsightsCommand = async (input, context) => {
|
|
588
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
589
|
+
const headers = {
|
|
590
|
+
"content-type": "application/json",
|
|
591
|
+
};
|
|
592
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/organization/insights/search";
|
|
593
|
+
let body;
|
|
594
|
+
body = JSON.stringify({
|
|
595
|
+
...(input.AccountIds !== undefined &&
|
|
596
|
+
input.AccountIds !== null && {
|
|
597
|
+
AccountIds: serializeAws_restJson1SearchInsightsAccountIdList(input.AccountIds, context),
|
|
598
|
+
}),
|
|
599
|
+
...(input.Filters !== undefined &&
|
|
600
|
+
input.Filters !== null && {
|
|
601
|
+
Filters: serializeAws_restJson1SearchOrganizationInsightsFilters(input.Filters, context),
|
|
602
|
+
}),
|
|
603
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
604
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
605
|
+
...(input.StartTimeRange !== undefined &&
|
|
606
|
+
input.StartTimeRange !== null && {
|
|
607
|
+
StartTimeRange: serializeAws_restJson1StartTimeRange(input.StartTimeRange, context),
|
|
608
|
+
}),
|
|
609
|
+
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
610
|
+
});
|
|
611
|
+
return new protocol_http_1.HttpRequest({
|
|
612
|
+
protocol,
|
|
613
|
+
hostname,
|
|
614
|
+
port,
|
|
615
|
+
method: "POST",
|
|
616
|
+
headers,
|
|
617
|
+
path: resolvedPath,
|
|
618
|
+
body,
|
|
619
|
+
});
|
|
620
|
+
};
|
|
621
|
+
exports.serializeAws_restJson1SearchOrganizationInsightsCommand = serializeAws_restJson1SearchOrganizationInsightsCommand;
|
|
454
622
|
const serializeAws_restJson1StartCostEstimationCommand = async (input, context) => {
|
|
455
623
|
var _a;
|
|
456
624
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1034,30 +1202,34 @@ const deserializeAws_restJson1DescribeInsightCommandError = async (output, conte
|
|
|
1034
1202
|
delete response.Message;
|
|
1035
1203
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1036
1204
|
};
|
|
1037
|
-
const
|
|
1205
|
+
const deserializeAws_restJson1DescribeOrganizationHealthCommand = async (output, context) => {
|
|
1038
1206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
1207
|
+
return deserializeAws_restJson1DescribeOrganizationHealthCommandError(output, context);
|
|
1040
1208
|
}
|
|
1041
1209
|
const contents = {
|
|
1042
1210
|
$metadata: deserializeMetadata(output),
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1211
|
+
MetricsAnalyzed: undefined,
|
|
1212
|
+
OpenProactiveInsights: undefined,
|
|
1213
|
+
OpenReactiveInsights: undefined,
|
|
1214
|
+
ResourceHours: undefined,
|
|
1046
1215
|
};
|
|
1047
1216
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1048
|
-
if (data.
|
|
1049
|
-
contents.
|
|
1217
|
+
if (data.MetricsAnalyzed !== undefined && data.MetricsAnalyzed !== null) {
|
|
1218
|
+
contents.MetricsAnalyzed = smithy_client_1.expectInt32(data.MetricsAnalyzed);
|
|
1050
1219
|
}
|
|
1051
|
-
if (data.
|
|
1052
|
-
contents.
|
|
1220
|
+
if (data.OpenProactiveInsights !== undefined && data.OpenProactiveInsights !== null) {
|
|
1221
|
+
contents.OpenProactiveInsights = smithy_client_1.expectInt32(data.OpenProactiveInsights);
|
|
1053
1222
|
}
|
|
1054
|
-
if (data.
|
|
1055
|
-
contents.
|
|
1223
|
+
if (data.OpenReactiveInsights !== undefined && data.OpenReactiveInsights !== null) {
|
|
1224
|
+
contents.OpenReactiveInsights = smithy_client_1.expectInt32(data.OpenReactiveInsights);
|
|
1225
|
+
}
|
|
1226
|
+
if (data.ResourceHours !== undefined && data.ResourceHours !== null) {
|
|
1227
|
+
contents.ResourceHours = smithy_client_1.expectLong(data.ResourceHours);
|
|
1056
1228
|
}
|
|
1057
1229
|
return Promise.resolve(contents);
|
|
1058
1230
|
};
|
|
1059
|
-
exports.
|
|
1060
|
-
const
|
|
1231
|
+
exports.deserializeAws_restJson1DescribeOrganizationHealthCommand = deserializeAws_restJson1DescribeOrganizationHealthCommand;
|
|
1232
|
+
const deserializeAws_restJson1DescribeOrganizationHealthCommandError = async (output, context) => {
|
|
1061
1233
|
const parsedOutput = {
|
|
1062
1234
|
...output,
|
|
1063
1235
|
body: await parseBody(output.body, context),
|
|
@@ -1114,22 +1286,26 @@ const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = asy
|
|
|
1114
1286
|
delete response.Message;
|
|
1115
1287
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1116
1288
|
};
|
|
1117
|
-
const
|
|
1289
|
+
const deserializeAws_restJson1DescribeOrganizationOverviewCommand = async (output, context) => {
|
|
1118
1290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
|
-
return
|
|
1291
|
+
return deserializeAws_restJson1DescribeOrganizationOverviewCommandError(output, context);
|
|
1120
1292
|
}
|
|
1121
1293
|
const contents = {
|
|
1122
1294
|
$metadata: deserializeMetadata(output),
|
|
1123
|
-
|
|
1295
|
+
ProactiveInsights: undefined,
|
|
1296
|
+
ReactiveInsights: undefined,
|
|
1124
1297
|
};
|
|
1125
1298
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1126
|
-
if (data.
|
|
1127
|
-
contents.
|
|
1299
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
1300
|
+
contents.ProactiveInsights = smithy_client_1.expectInt32(data.ProactiveInsights);
|
|
1301
|
+
}
|
|
1302
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
1303
|
+
contents.ReactiveInsights = smithy_client_1.expectInt32(data.ReactiveInsights);
|
|
1128
1304
|
}
|
|
1129
1305
|
return Promise.resolve(contents);
|
|
1130
1306
|
};
|
|
1131
|
-
exports.
|
|
1132
|
-
const
|
|
1307
|
+
exports.deserializeAws_restJson1DescribeOrganizationOverviewCommand = deserializeAws_restJson1DescribeOrganizationOverviewCommand;
|
|
1308
|
+
const deserializeAws_restJson1DescribeOrganizationOverviewCommandError = async (output, context) => {
|
|
1133
1309
|
const parsedOutput = {
|
|
1134
1310
|
...output,
|
|
1135
1311
|
body: await parseBody(output.body, context),
|
|
@@ -1186,42 +1362,34 @@ const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (ou
|
|
|
1186
1362
|
delete response.Message;
|
|
1187
1363
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1188
1364
|
};
|
|
1189
|
-
const
|
|
1365
|
+
const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = async (output, context) => {
|
|
1190
1366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
1367
|
+
return deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError(output, context);
|
|
1192
1368
|
}
|
|
1193
1369
|
const contents = {
|
|
1194
1370
|
$metadata: deserializeMetadata(output),
|
|
1195
|
-
|
|
1371
|
+
Account: undefined,
|
|
1372
|
+
CloudFormation: undefined,
|
|
1196
1373
|
NextToken: undefined,
|
|
1197
|
-
|
|
1198
|
-
Status: undefined,
|
|
1199
|
-
TimeRange: undefined,
|
|
1200
|
-
TotalCost: undefined,
|
|
1374
|
+
Service: undefined,
|
|
1201
1375
|
};
|
|
1202
1376
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1203
|
-
if (data.
|
|
1204
|
-
contents.
|
|
1377
|
+
if (data.Account !== undefined && data.Account !== null) {
|
|
1378
|
+
contents.Account = deserializeAws_restJson1AccountHealths(data.Account, context);
|
|
1379
|
+
}
|
|
1380
|
+
if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
|
|
1381
|
+
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1205
1382
|
}
|
|
1206
1383
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1207
1384
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1208
1385
|
}
|
|
1209
|
-
if (data.
|
|
1210
|
-
contents.
|
|
1211
|
-
}
|
|
1212
|
-
if (data.Status !== undefined && data.Status !== null) {
|
|
1213
|
-
contents.Status = smithy_client_1.expectString(data.Status);
|
|
1214
|
-
}
|
|
1215
|
-
if (data.TimeRange !== undefined && data.TimeRange !== null) {
|
|
1216
|
-
contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
|
|
1217
|
-
}
|
|
1218
|
-
if (data.TotalCost !== undefined && data.TotalCost !== null) {
|
|
1219
|
-
contents.TotalCost = smithy_client_1.limitedParseDouble(data.TotalCost);
|
|
1386
|
+
if (data.Service !== undefined && data.Service !== null) {
|
|
1387
|
+
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1220
1388
|
}
|
|
1221
1389
|
return Promise.resolve(contents);
|
|
1222
1390
|
};
|
|
1223
|
-
exports.
|
|
1224
|
-
const
|
|
1391
|
+
exports.deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand = deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommand;
|
|
1392
|
+
const deserializeAws_restJson1DescribeOrganizationResourceCollectionHealthCommandError = async (output, context) => {
|
|
1225
1393
|
const parsedOutput = {
|
|
1226
1394
|
...output,
|
|
1227
1395
|
body: await parseBody(output.body, context),
|
|
@@ -1246,14 +1414,6 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
|
|
|
1246
1414
|
$metadata: deserializeMetadata(output),
|
|
1247
1415
|
};
|
|
1248
1416
|
break;
|
|
1249
|
-
case "ResourceNotFoundException":
|
|
1250
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1251
|
-
response = {
|
|
1252
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1253
|
-
name: errorCode,
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
1256
|
-
break;
|
|
1257
1417
|
case "ThrottlingException":
|
|
1258
1418
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1259
1419
|
response = {
|
|
@@ -1286,26 +1446,34 @@ const deserializeAws_restJson1GetCostEstimationCommandError = async (output, con
|
|
|
1286
1446
|
delete response.Message;
|
|
1287
1447
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1288
1448
|
};
|
|
1289
|
-
const
|
|
1449
|
+
const deserializeAws_restJson1DescribeResourceCollectionHealthCommand = async (output, context) => {
|
|
1290
1450
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1291
|
-
return
|
|
1451
|
+
return deserializeAws_restJson1DescribeResourceCollectionHealthCommandError(output, context);
|
|
1292
1452
|
}
|
|
1293
1453
|
const contents = {
|
|
1294
1454
|
$metadata: deserializeMetadata(output),
|
|
1455
|
+
CloudFormation: undefined,
|
|
1295
1456
|
NextToken: undefined,
|
|
1296
|
-
|
|
1457
|
+
Service: undefined,
|
|
1458
|
+
Tags: undefined,
|
|
1297
1459
|
};
|
|
1298
1460
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1461
|
+
if (data.CloudFormation !== undefined && data.CloudFormation !== null) {
|
|
1462
|
+
contents.CloudFormation = deserializeAws_restJson1CloudFormationHealths(data.CloudFormation, context);
|
|
1463
|
+
}
|
|
1299
1464
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1300
1465
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1301
1466
|
}
|
|
1302
|
-
if (data.
|
|
1303
|
-
contents.
|
|
1467
|
+
if (data.Service !== undefined && data.Service !== null) {
|
|
1468
|
+
contents.Service = deserializeAws_restJson1ServiceHealths(data.Service, context);
|
|
1469
|
+
}
|
|
1470
|
+
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1471
|
+
contents.Tags = deserializeAws_restJson1TagHealths(data.Tags, context);
|
|
1304
1472
|
}
|
|
1305
1473
|
return Promise.resolve(contents);
|
|
1306
1474
|
};
|
|
1307
|
-
exports.
|
|
1308
|
-
const
|
|
1475
|
+
exports.deserializeAws_restJson1DescribeResourceCollectionHealthCommand = deserializeAws_restJson1DescribeResourceCollectionHealthCommand;
|
|
1476
|
+
const deserializeAws_restJson1DescribeResourceCollectionHealthCommandError = async (output, context) => {
|
|
1309
1477
|
const parsedOutput = {
|
|
1310
1478
|
...output,
|
|
1311
1479
|
body: await parseBody(output.body, context),
|
|
@@ -1330,14 +1498,6 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
|
|
|
1330
1498
|
$metadata: deserializeMetadata(output),
|
|
1331
1499
|
};
|
|
1332
1500
|
break;
|
|
1333
|
-
case "ResourceNotFoundException":
|
|
1334
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1335
|
-
response = {
|
|
1336
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1337
|
-
name: errorCode,
|
|
1338
|
-
$metadata: deserializeMetadata(output),
|
|
1339
|
-
};
|
|
1340
|
-
break;
|
|
1341
1501
|
case "ThrottlingException":
|
|
1342
1502
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1343
1503
|
response = {
|
|
@@ -1370,30 +1530,22 @@ const deserializeAws_restJson1GetResourceCollectionCommandError = async (output,
|
|
|
1370
1530
|
delete response.Message;
|
|
1371
1531
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1372
1532
|
};
|
|
1373
|
-
const
|
|
1533
|
+
const deserializeAws_restJson1DescribeServiceIntegrationCommand = async (output, context) => {
|
|
1374
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
1535
|
+
return deserializeAws_restJson1DescribeServiceIntegrationCommandError(output, context);
|
|
1376
1536
|
}
|
|
1377
1537
|
const contents = {
|
|
1378
1538
|
$metadata: deserializeMetadata(output),
|
|
1379
|
-
|
|
1380
|
-
ProactiveAnomalies: undefined,
|
|
1381
|
-
ReactiveAnomalies: undefined,
|
|
1539
|
+
ServiceIntegration: undefined,
|
|
1382
1540
|
};
|
|
1383
1541
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1384
|
-
if (data.
|
|
1385
|
-
contents.
|
|
1386
|
-
}
|
|
1387
|
-
if (data.ProactiveAnomalies !== undefined && data.ProactiveAnomalies !== null) {
|
|
1388
|
-
contents.ProactiveAnomalies = deserializeAws_restJson1ProactiveAnomalies(data.ProactiveAnomalies, context);
|
|
1389
|
-
}
|
|
1390
|
-
if (data.ReactiveAnomalies !== undefined && data.ReactiveAnomalies !== null) {
|
|
1391
|
-
contents.ReactiveAnomalies = deserializeAws_restJson1ReactiveAnomalies(data.ReactiveAnomalies, context);
|
|
1542
|
+
if (data.ServiceIntegration !== undefined && data.ServiceIntegration !== null) {
|
|
1543
|
+
contents.ServiceIntegration = deserializeAws_restJson1ServiceIntegrationConfig(data.ServiceIntegration, context);
|
|
1392
1544
|
}
|
|
1393
1545
|
return Promise.resolve(contents);
|
|
1394
1546
|
};
|
|
1395
|
-
exports.
|
|
1396
|
-
const
|
|
1547
|
+
exports.deserializeAws_restJson1DescribeServiceIntegrationCommand = deserializeAws_restJson1DescribeServiceIntegrationCommand;
|
|
1548
|
+
const deserializeAws_restJson1DescribeServiceIntegrationCommandError = async (output, context) => {
|
|
1397
1549
|
const parsedOutput = {
|
|
1398
1550
|
...output,
|
|
1399
1551
|
body: await parseBody(output.body, context),
|
|
@@ -1418,14 +1570,6 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
|
|
|
1418
1570
|
$metadata: deserializeMetadata(output),
|
|
1419
1571
|
};
|
|
1420
1572
|
break;
|
|
1421
|
-
case "ResourceNotFoundException":
|
|
1422
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1423
|
-
response = {
|
|
1424
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1425
|
-
name: errorCode,
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
};
|
|
1428
|
-
break;
|
|
1429
1573
|
case "ThrottlingException":
|
|
1430
1574
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1431
1575
|
response = {
|
|
@@ -1458,26 +1602,42 @@ const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (outpu
|
|
|
1458
1602
|
delete response.Message;
|
|
1459
1603
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1460
1604
|
};
|
|
1461
|
-
const
|
|
1605
|
+
const deserializeAws_restJson1GetCostEstimationCommand = async (output, context) => {
|
|
1462
1606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1463
|
-
return
|
|
1607
|
+
return deserializeAws_restJson1GetCostEstimationCommandError(output, context);
|
|
1464
1608
|
}
|
|
1465
1609
|
const contents = {
|
|
1466
1610
|
$metadata: deserializeMetadata(output),
|
|
1467
|
-
|
|
1611
|
+
Costs: undefined,
|
|
1468
1612
|
NextToken: undefined,
|
|
1613
|
+
ResourceCollection: undefined,
|
|
1614
|
+
Status: undefined,
|
|
1615
|
+
TimeRange: undefined,
|
|
1616
|
+
TotalCost: undefined,
|
|
1469
1617
|
};
|
|
1470
1618
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1471
|
-
if (data.
|
|
1472
|
-
contents.
|
|
1619
|
+
if (data.Costs !== undefined && data.Costs !== null) {
|
|
1620
|
+
contents.Costs = deserializeAws_restJson1ServiceResourceCosts(data.Costs, context);
|
|
1473
1621
|
}
|
|
1474
1622
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1475
1623
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1476
1624
|
}
|
|
1625
|
+
if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
|
|
1626
|
+
contents.ResourceCollection = deserializeAws_restJson1CostEstimationResourceCollectionFilter(data.ResourceCollection, context);
|
|
1627
|
+
}
|
|
1628
|
+
if (data.Status !== undefined && data.Status !== null) {
|
|
1629
|
+
contents.Status = smithy_client_1.expectString(data.Status);
|
|
1630
|
+
}
|
|
1631
|
+
if (data.TimeRange !== undefined && data.TimeRange !== null) {
|
|
1632
|
+
contents.TimeRange = deserializeAws_restJson1CostEstimationTimeRange(data.TimeRange, context);
|
|
1633
|
+
}
|
|
1634
|
+
if (data.TotalCost !== undefined && data.TotalCost !== null) {
|
|
1635
|
+
contents.TotalCost = smithy_client_1.limitedParseDouble(data.TotalCost);
|
|
1636
|
+
}
|
|
1477
1637
|
return Promise.resolve(contents);
|
|
1478
1638
|
};
|
|
1479
|
-
exports.
|
|
1480
|
-
const
|
|
1639
|
+
exports.deserializeAws_restJson1GetCostEstimationCommand = deserializeAws_restJson1GetCostEstimationCommand;
|
|
1640
|
+
const deserializeAws_restJson1GetCostEstimationCommandError = async (output, context) => {
|
|
1481
1641
|
const parsedOutput = {
|
|
1482
1642
|
...output,
|
|
1483
1643
|
body: await parseBody(output.body, context),
|
|
@@ -1542,30 +1702,26 @@ const deserializeAws_restJson1ListEventsCommandError = async (output, context) =
|
|
|
1542
1702
|
delete response.Message;
|
|
1543
1703
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1544
1704
|
};
|
|
1545
|
-
const
|
|
1705
|
+
const deserializeAws_restJson1GetResourceCollectionCommand = async (output, context) => {
|
|
1546
1706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1547
|
-
return
|
|
1707
|
+
return deserializeAws_restJson1GetResourceCollectionCommandError(output, context);
|
|
1548
1708
|
}
|
|
1549
1709
|
const contents = {
|
|
1550
1710
|
$metadata: deserializeMetadata(output),
|
|
1551
1711
|
NextToken: undefined,
|
|
1552
|
-
|
|
1553
|
-
ReactiveInsights: undefined,
|
|
1712
|
+
ResourceCollection: undefined,
|
|
1554
1713
|
};
|
|
1555
1714
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1556
1715
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1557
1716
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1558
1717
|
}
|
|
1559
|
-
if (data.
|
|
1560
|
-
contents.
|
|
1561
|
-
}
|
|
1562
|
-
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
1563
|
-
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
1718
|
+
if (data.ResourceCollection !== undefined && data.ResourceCollection !== null) {
|
|
1719
|
+
contents.ResourceCollection = deserializeAws_restJson1ResourceCollectionFilter(data.ResourceCollection, context);
|
|
1564
1720
|
}
|
|
1565
1721
|
return Promise.resolve(contents);
|
|
1566
1722
|
};
|
|
1567
|
-
exports.
|
|
1568
|
-
const
|
|
1723
|
+
exports.deserializeAws_restJson1GetResourceCollectionCommand = deserializeAws_restJson1GetResourceCollectionCommand;
|
|
1724
|
+
const deserializeAws_restJson1GetResourceCollectionCommandError = async (output, context) => {
|
|
1569
1725
|
const parsedOutput = {
|
|
1570
1726
|
...output,
|
|
1571
1727
|
body: await parseBody(output.body, context),
|
|
@@ -1590,6 +1746,14 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
|
|
|
1590
1746
|
$metadata: deserializeMetadata(output),
|
|
1591
1747
|
};
|
|
1592
1748
|
break;
|
|
1749
|
+
case "ResourceNotFoundException":
|
|
1750
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1751
|
+
response = {
|
|
1752
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1753
|
+
name: errorCode,
|
|
1754
|
+
$metadata: deserializeMetadata(output),
|
|
1755
|
+
};
|
|
1756
|
+
break;
|
|
1593
1757
|
case "ThrottlingException":
|
|
1594
1758
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1595
1759
|
response = {
|
|
@@ -1622,26 +1786,30 @@ const deserializeAws_restJson1ListInsightsCommandError = async (output, context)
|
|
|
1622
1786
|
delete response.Message;
|
|
1623
1787
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1624
1788
|
};
|
|
1625
|
-
const
|
|
1789
|
+
const deserializeAws_restJson1ListAnomaliesForInsightCommand = async (output, context) => {
|
|
1626
1790
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1791
|
+
return deserializeAws_restJson1ListAnomaliesForInsightCommandError(output, context);
|
|
1628
1792
|
}
|
|
1629
1793
|
const contents = {
|
|
1630
1794
|
$metadata: deserializeMetadata(output),
|
|
1631
|
-
Channels: undefined,
|
|
1632
1795
|
NextToken: undefined,
|
|
1796
|
+
ProactiveAnomalies: undefined,
|
|
1797
|
+
ReactiveAnomalies: undefined,
|
|
1633
1798
|
};
|
|
1634
1799
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1635
|
-
if (data.Channels !== undefined && data.Channels !== null) {
|
|
1636
|
-
contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
|
|
1637
|
-
}
|
|
1638
1800
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1639
1801
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1640
1802
|
}
|
|
1803
|
+
if (data.ProactiveAnomalies !== undefined && data.ProactiveAnomalies !== null) {
|
|
1804
|
+
contents.ProactiveAnomalies = deserializeAws_restJson1ProactiveAnomalies(data.ProactiveAnomalies, context);
|
|
1805
|
+
}
|
|
1806
|
+
if (data.ReactiveAnomalies !== undefined && data.ReactiveAnomalies !== null) {
|
|
1807
|
+
contents.ReactiveAnomalies = deserializeAws_restJson1ReactiveAnomalies(data.ReactiveAnomalies, context);
|
|
1808
|
+
}
|
|
1641
1809
|
return Promise.resolve(contents);
|
|
1642
1810
|
};
|
|
1643
|
-
exports.
|
|
1644
|
-
const
|
|
1811
|
+
exports.deserializeAws_restJson1ListAnomaliesForInsightCommand = deserializeAws_restJson1ListAnomaliesForInsightCommand;
|
|
1812
|
+
const deserializeAws_restJson1ListAnomaliesForInsightCommandError = async (output, context) => {
|
|
1645
1813
|
const parsedOutput = {
|
|
1646
1814
|
...output,
|
|
1647
1815
|
body: await parseBody(output.body, context),
|
|
@@ -1666,6 +1834,14 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
|
|
|
1666
1834
|
$metadata: deserializeMetadata(output),
|
|
1667
1835
|
};
|
|
1668
1836
|
break;
|
|
1837
|
+
case "ResourceNotFoundException":
|
|
1838
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1839
|
+
response = {
|
|
1840
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1841
|
+
name: errorCode,
|
|
1842
|
+
$metadata: deserializeMetadata(output),
|
|
1843
|
+
};
|
|
1844
|
+
break;
|
|
1669
1845
|
case "ThrottlingException":
|
|
1670
1846
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1671
1847
|
response = {
|
|
@@ -1698,26 +1874,26 @@ const deserializeAws_restJson1ListNotificationChannelsCommandError = async (outp
|
|
|
1698
1874
|
delete response.Message;
|
|
1699
1875
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1700
1876
|
};
|
|
1701
|
-
const
|
|
1877
|
+
const deserializeAws_restJson1ListEventsCommand = async (output, context) => {
|
|
1702
1878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1703
|
-
return
|
|
1879
|
+
return deserializeAws_restJson1ListEventsCommandError(output, context);
|
|
1704
1880
|
}
|
|
1705
1881
|
const contents = {
|
|
1706
1882
|
$metadata: deserializeMetadata(output),
|
|
1883
|
+
Events: undefined,
|
|
1707
1884
|
NextToken: undefined,
|
|
1708
|
-
Recommendations: undefined,
|
|
1709
1885
|
};
|
|
1710
1886
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1887
|
+
if (data.Events !== undefined && data.Events !== null) {
|
|
1888
|
+
contents.Events = deserializeAws_restJson1Events(data.Events, context);
|
|
1889
|
+
}
|
|
1711
1890
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1712
1891
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1713
1892
|
}
|
|
1714
|
-
if (data.Recommendations !== undefined && data.Recommendations !== null) {
|
|
1715
|
-
contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
|
|
1716
|
-
}
|
|
1717
1893
|
return Promise.resolve(contents);
|
|
1718
1894
|
};
|
|
1719
|
-
exports.
|
|
1720
|
-
const
|
|
1895
|
+
exports.deserializeAws_restJson1ListEventsCommand = deserializeAws_restJson1ListEventsCommand;
|
|
1896
|
+
const deserializeAws_restJson1ListEventsCommandError = async (output, context) => {
|
|
1721
1897
|
const parsedOutput = {
|
|
1722
1898
|
...output,
|
|
1723
1899
|
body: await parseBody(output.body, context),
|
|
@@ -1782,18 +1958,30 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
1782
1958
|
delete response.Message;
|
|
1783
1959
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1784
1960
|
};
|
|
1785
|
-
const
|
|
1961
|
+
const deserializeAws_restJson1ListInsightsCommand = async (output, context) => {
|
|
1786
1962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1787
|
-
return
|
|
1963
|
+
return deserializeAws_restJson1ListInsightsCommandError(output, context);
|
|
1788
1964
|
}
|
|
1789
1965
|
const contents = {
|
|
1790
1966
|
$metadata: deserializeMetadata(output),
|
|
1967
|
+
NextToken: undefined,
|
|
1968
|
+
ProactiveInsights: undefined,
|
|
1969
|
+
ReactiveInsights: undefined,
|
|
1791
1970
|
};
|
|
1792
|
-
await
|
|
1971
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1972
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1973
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1974
|
+
}
|
|
1975
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
1976
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
1977
|
+
}
|
|
1978
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
1979
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
1980
|
+
}
|
|
1793
1981
|
return Promise.resolve(contents);
|
|
1794
1982
|
};
|
|
1795
|
-
exports.
|
|
1796
|
-
const
|
|
1983
|
+
exports.deserializeAws_restJson1ListInsightsCommand = deserializeAws_restJson1ListInsightsCommand;
|
|
1984
|
+
const deserializeAws_restJson1ListInsightsCommandError = async (output, context) => {
|
|
1797
1985
|
const parsedOutput = {
|
|
1798
1986
|
...output,
|
|
1799
1987
|
body: await parseBody(output.body, context),
|
|
@@ -1810,14 +1998,6 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
|
|
|
1810
1998
|
$metadata: deserializeMetadata(output),
|
|
1811
1999
|
};
|
|
1812
2000
|
break;
|
|
1813
|
-
case "ConflictException":
|
|
1814
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
1815
|
-
response = {
|
|
1816
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1817
|
-
name: errorCode,
|
|
1818
|
-
$metadata: deserializeMetadata(output),
|
|
1819
|
-
};
|
|
1820
|
-
break;
|
|
1821
2001
|
case "InternalServerException":
|
|
1822
2002
|
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1823
2003
|
response = {
|
|
@@ -1826,14 +2006,6 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
|
|
|
1826
2006
|
$metadata: deserializeMetadata(output),
|
|
1827
2007
|
};
|
|
1828
2008
|
break;
|
|
1829
|
-
case "ResourceNotFoundException":
|
|
1830
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1831
|
-
response = {
|
|
1832
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1833
|
-
name: errorCode,
|
|
1834
|
-
$metadata: deserializeMetadata(output),
|
|
1835
|
-
};
|
|
1836
|
-
break;
|
|
1837
2009
|
case "ThrottlingException":
|
|
1838
2010
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1839
2011
|
response = {
|
|
@@ -1866,18 +2038,26 @@ const deserializeAws_restJson1PutFeedbackCommandError = async (output, context)
|
|
|
1866
2038
|
delete response.Message;
|
|
1867
2039
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1868
2040
|
};
|
|
1869
|
-
const
|
|
2041
|
+
const deserializeAws_restJson1ListNotificationChannelsCommand = async (output, context) => {
|
|
1870
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1871
|
-
return
|
|
2043
|
+
return deserializeAws_restJson1ListNotificationChannelsCommandError(output, context);
|
|
1872
2044
|
}
|
|
1873
2045
|
const contents = {
|
|
1874
2046
|
$metadata: deserializeMetadata(output),
|
|
2047
|
+
Channels: undefined,
|
|
2048
|
+
NextToken: undefined,
|
|
1875
2049
|
};
|
|
1876
|
-
await
|
|
2050
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2051
|
+
if (data.Channels !== undefined && data.Channels !== null) {
|
|
2052
|
+
contents.Channels = deserializeAws_restJson1Channels(data.Channels, context);
|
|
2053
|
+
}
|
|
2054
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2055
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2056
|
+
}
|
|
1877
2057
|
return Promise.resolve(contents);
|
|
1878
2058
|
};
|
|
1879
|
-
exports.
|
|
1880
|
-
const
|
|
2059
|
+
exports.deserializeAws_restJson1ListNotificationChannelsCommand = deserializeAws_restJson1ListNotificationChannelsCommand;
|
|
2060
|
+
const deserializeAws_restJson1ListNotificationChannelsCommandError = async (output, context) => {
|
|
1881
2061
|
const parsedOutput = {
|
|
1882
2062
|
...output,
|
|
1883
2063
|
body: await parseBody(output.body, context),
|
|
@@ -1894,14 +2074,6 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1894
2074
|
$metadata: deserializeMetadata(output),
|
|
1895
2075
|
};
|
|
1896
2076
|
break;
|
|
1897
|
-
case "ConflictException":
|
|
1898
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
1899
|
-
response = {
|
|
1900
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1901
|
-
name: errorCode,
|
|
1902
|
-
$metadata: deserializeMetadata(output),
|
|
1903
|
-
};
|
|
1904
|
-
break;
|
|
1905
2077
|
case "InternalServerException":
|
|
1906
2078
|
case "com.amazonaws.devopsguru#InternalServerException":
|
|
1907
2079
|
response = {
|
|
@@ -1910,14 +2082,6 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1910
2082
|
$metadata: deserializeMetadata(output),
|
|
1911
2083
|
};
|
|
1912
2084
|
break;
|
|
1913
|
-
case "ResourceNotFoundException":
|
|
1914
|
-
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
1915
|
-
response = {
|
|
1916
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1917
|
-
name: errorCode,
|
|
1918
|
-
$metadata: deserializeMetadata(output),
|
|
1919
|
-
};
|
|
1920
|
-
break;
|
|
1921
2085
|
case "ThrottlingException":
|
|
1922
2086
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
1923
2087
|
response = {
|
|
@@ -1950,9 +2114,9 @@ const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (out
|
|
|
1950
2114
|
delete response.Message;
|
|
1951
2115
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1952
2116
|
};
|
|
1953
|
-
const
|
|
2117
|
+
const deserializeAws_restJson1ListOrganizationInsightsCommand = async (output, context) => {
|
|
1954
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1955
|
-
return
|
|
2119
|
+
return deserializeAws_restJson1ListOrganizationInsightsCommandError(output, context);
|
|
1956
2120
|
}
|
|
1957
2121
|
const contents = {
|
|
1958
2122
|
$metadata: deserializeMetadata(output),
|
|
@@ -1965,15 +2129,15 @@ const deserializeAws_restJson1SearchInsightsCommand = async (output, context) =>
|
|
|
1965
2129
|
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
1966
2130
|
}
|
|
1967
2131
|
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
1968
|
-
contents.ProactiveInsights =
|
|
2132
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveOrganizationInsights(data.ProactiveInsights, context);
|
|
1969
2133
|
}
|
|
1970
2134
|
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
1971
|
-
contents.ReactiveInsights =
|
|
2135
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveOrganizationInsights(data.ReactiveInsights, context);
|
|
1972
2136
|
}
|
|
1973
2137
|
return Promise.resolve(contents);
|
|
1974
2138
|
};
|
|
1975
|
-
exports.
|
|
1976
|
-
const
|
|
2139
|
+
exports.deserializeAws_restJson1ListOrganizationInsightsCommand = deserializeAws_restJson1ListOrganizationInsightsCommand;
|
|
2140
|
+
const deserializeAws_restJson1ListOrganizationInsightsCommandError = async (output, context) => {
|
|
1977
2141
|
const parsedOutput = {
|
|
1978
2142
|
...output,
|
|
1979
2143
|
body: await parseBody(output.body, context),
|
|
@@ -2030,18 +2194,26 @@ const deserializeAws_restJson1SearchInsightsCommandError = async (output, contex
|
|
|
2030
2194
|
delete response.Message;
|
|
2031
2195
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2032
2196
|
};
|
|
2033
|
-
const
|
|
2197
|
+
const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
|
|
2034
2198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2035
|
-
return
|
|
2199
|
+
return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
|
|
2036
2200
|
}
|
|
2037
2201
|
const contents = {
|
|
2038
2202
|
$metadata: deserializeMetadata(output),
|
|
2203
|
+
NextToken: undefined,
|
|
2204
|
+
Recommendations: undefined,
|
|
2039
2205
|
};
|
|
2040
|
-
await
|
|
2206
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2207
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2208
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2209
|
+
}
|
|
2210
|
+
if (data.Recommendations !== undefined && data.Recommendations !== null) {
|
|
2211
|
+
contents.Recommendations = deserializeAws_restJson1Recommendations(data.Recommendations, context);
|
|
2212
|
+
}
|
|
2041
2213
|
return Promise.resolve(contents);
|
|
2042
2214
|
};
|
|
2043
|
-
exports.
|
|
2044
|
-
const
|
|
2215
|
+
exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_restJson1ListRecommendationsCommand;
|
|
2216
|
+
const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
|
|
2045
2217
|
const parsedOutput = {
|
|
2046
2218
|
...output,
|
|
2047
2219
|
body: await parseBody(output.body, context),
|
|
@@ -2058,14 +2230,6 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
|
|
|
2058
2230
|
$metadata: deserializeMetadata(output),
|
|
2059
2231
|
};
|
|
2060
2232
|
break;
|
|
2061
|
-
case "ConflictException":
|
|
2062
|
-
case "com.amazonaws.devopsguru#ConflictException":
|
|
2063
|
-
response = {
|
|
2064
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2065
|
-
name: errorCode,
|
|
2066
|
-
$metadata: deserializeMetadata(output),
|
|
2067
|
-
};
|
|
2068
|
-
break;
|
|
2069
2233
|
case "InternalServerException":
|
|
2070
2234
|
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2071
2235
|
response = {
|
|
@@ -2114,9 +2278,9 @@ const deserializeAws_restJson1StartCostEstimationCommandError = async (output, c
|
|
|
2114
2278
|
delete response.Message;
|
|
2115
2279
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2116
2280
|
};
|
|
2117
|
-
const
|
|
2281
|
+
const deserializeAws_restJson1PutFeedbackCommand = async (output, context) => {
|
|
2118
2282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2119
|
-
return
|
|
2283
|
+
return deserializeAws_restJson1PutFeedbackCommandError(output, context);
|
|
2120
2284
|
}
|
|
2121
2285
|
const contents = {
|
|
2122
2286
|
$metadata: deserializeMetadata(output),
|
|
@@ -2124,8 +2288,8 @@ const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, c
|
|
|
2124
2288
|
await collectBody(output.body, context);
|
|
2125
2289
|
return Promise.resolve(contents);
|
|
2126
2290
|
};
|
|
2127
|
-
exports.
|
|
2128
|
-
const
|
|
2291
|
+
exports.deserializeAws_restJson1PutFeedbackCommand = deserializeAws_restJson1PutFeedbackCommand;
|
|
2292
|
+
const deserializeAws_restJson1PutFeedbackCommandError = async (output, context) => {
|
|
2129
2293
|
const parsedOutput = {
|
|
2130
2294
|
...output,
|
|
2131
2295
|
body: await parseBody(output.body, context),
|
|
@@ -2158,6 +2322,14 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
|
|
|
2158
2322
|
$metadata: deserializeMetadata(output),
|
|
2159
2323
|
};
|
|
2160
2324
|
break;
|
|
2325
|
+
case "ResourceNotFoundException":
|
|
2326
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2327
|
+
response = {
|
|
2328
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2329
|
+
name: errorCode,
|
|
2330
|
+
$metadata: deserializeMetadata(output),
|
|
2331
|
+
};
|
|
2332
|
+
break;
|
|
2161
2333
|
case "ThrottlingException":
|
|
2162
2334
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2163
2335
|
response = {
|
|
@@ -2190,9 +2362,9 @@ const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (outp
|
|
|
2190
2362
|
delete response.Message;
|
|
2191
2363
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2192
2364
|
};
|
|
2193
|
-
const
|
|
2365
|
+
const deserializeAws_restJson1RemoveNotificationChannelCommand = async (output, context) => {
|
|
2194
2366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2195
|
-
return
|
|
2367
|
+
return deserializeAws_restJson1RemoveNotificationChannelCommandError(output, context);
|
|
2196
2368
|
}
|
|
2197
2369
|
const contents = {
|
|
2198
2370
|
$metadata: deserializeMetadata(output),
|
|
@@ -2200,8 +2372,8 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommand = async (output, c
|
|
|
2200
2372
|
await collectBody(output.body, context);
|
|
2201
2373
|
return Promise.resolve(contents);
|
|
2202
2374
|
};
|
|
2203
|
-
exports.
|
|
2204
|
-
const
|
|
2375
|
+
exports.deserializeAws_restJson1RemoveNotificationChannelCommand = deserializeAws_restJson1RemoveNotificationChannelCommand;
|
|
2376
|
+
const deserializeAws_restJson1RemoveNotificationChannelCommandError = async (output, context) => {
|
|
2205
2377
|
const parsedOutput = {
|
|
2206
2378
|
...output,
|
|
2207
2379
|
body: await parseBody(output.body, context),
|
|
@@ -2234,6 +2406,14 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
|
|
|
2234
2406
|
$metadata: deserializeMetadata(output),
|
|
2235
2407
|
};
|
|
2236
2408
|
break;
|
|
2409
|
+
case "ResourceNotFoundException":
|
|
2410
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2411
|
+
response = {
|
|
2412
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2413
|
+
name: errorCode,
|
|
2414
|
+
$metadata: deserializeMetadata(output),
|
|
2415
|
+
};
|
|
2416
|
+
break;
|
|
2237
2417
|
case "ThrottlingException":
|
|
2238
2418
|
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2239
2419
|
response = {
|
|
@@ -2266,22 +2446,418 @@ const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (outp
|
|
|
2266
2446
|
delete response.Message;
|
|
2267
2447
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2268
2448
|
};
|
|
2269
|
-
const
|
|
2449
|
+
const deserializeAws_restJson1SearchInsightsCommand = async (output, context) => {
|
|
2450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2451
|
+
return deserializeAws_restJson1SearchInsightsCommandError(output, context);
|
|
2452
|
+
}
|
|
2270
2453
|
const contents = {
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2454
|
+
$metadata: deserializeMetadata(output),
|
|
2455
|
+
NextToken: undefined,
|
|
2456
|
+
ProactiveInsights: undefined,
|
|
2457
|
+
ReactiveInsights: undefined,
|
|
2275
2458
|
};
|
|
2276
|
-
const data =
|
|
2277
|
-
if (data.
|
|
2278
|
-
contents.
|
|
2459
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2460
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2461
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2279
2462
|
}
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2463
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2464
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2465
|
+
}
|
|
2466
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2467
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2468
|
+
}
|
|
2469
|
+
return Promise.resolve(contents);
|
|
2470
|
+
};
|
|
2471
|
+
exports.deserializeAws_restJson1SearchInsightsCommand = deserializeAws_restJson1SearchInsightsCommand;
|
|
2472
|
+
const deserializeAws_restJson1SearchInsightsCommandError = async (output, context) => {
|
|
2473
|
+
const parsedOutput = {
|
|
2474
|
+
...output,
|
|
2475
|
+
body: await parseBody(output.body, context),
|
|
2476
|
+
};
|
|
2477
|
+
let response;
|
|
2478
|
+
let errorCode = "UnknownError";
|
|
2479
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
|
+
switch (errorCode) {
|
|
2481
|
+
case "AccessDeniedException":
|
|
2482
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2483
|
+
response = {
|
|
2484
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2485
|
+
name: errorCode,
|
|
2486
|
+
$metadata: deserializeMetadata(output),
|
|
2487
|
+
};
|
|
2488
|
+
break;
|
|
2489
|
+
case "InternalServerException":
|
|
2490
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2491
|
+
response = {
|
|
2492
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2493
|
+
name: errorCode,
|
|
2494
|
+
$metadata: deserializeMetadata(output),
|
|
2495
|
+
};
|
|
2496
|
+
break;
|
|
2497
|
+
case "ThrottlingException":
|
|
2498
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2499
|
+
response = {
|
|
2500
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2501
|
+
name: errorCode,
|
|
2502
|
+
$metadata: deserializeMetadata(output),
|
|
2503
|
+
};
|
|
2504
|
+
break;
|
|
2505
|
+
case "ValidationException":
|
|
2506
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
2507
|
+
response = {
|
|
2508
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2509
|
+
name: errorCode,
|
|
2510
|
+
$metadata: deserializeMetadata(output),
|
|
2511
|
+
};
|
|
2512
|
+
break;
|
|
2513
|
+
default:
|
|
2514
|
+
const parsedBody = parsedOutput.body;
|
|
2515
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2516
|
+
response = {
|
|
2517
|
+
...parsedBody,
|
|
2518
|
+
name: `${errorCode}`,
|
|
2519
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2520
|
+
$fault: "client",
|
|
2521
|
+
$metadata: deserializeMetadata(output),
|
|
2522
|
+
};
|
|
2523
|
+
}
|
|
2524
|
+
const message = response.message || response.Message || errorCode;
|
|
2525
|
+
response.message = message;
|
|
2526
|
+
delete response.Message;
|
|
2527
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2528
|
+
};
|
|
2529
|
+
const deserializeAws_restJson1SearchOrganizationInsightsCommand = async (output, context) => {
|
|
2530
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2531
|
+
return deserializeAws_restJson1SearchOrganizationInsightsCommandError(output, context);
|
|
2532
|
+
}
|
|
2533
|
+
const contents = {
|
|
2534
|
+
$metadata: deserializeMetadata(output),
|
|
2535
|
+
NextToken: undefined,
|
|
2536
|
+
ProactiveInsights: undefined,
|
|
2537
|
+
ReactiveInsights: undefined,
|
|
2538
|
+
};
|
|
2539
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2540
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2541
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
2542
|
+
}
|
|
2543
|
+
if (data.ProactiveInsights !== undefined && data.ProactiveInsights !== null) {
|
|
2544
|
+
contents.ProactiveInsights = deserializeAws_restJson1ProactiveInsights(data.ProactiveInsights, context);
|
|
2545
|
+
}
|
|
2546
|
+
if (data.ReactiveInsights !== undefined && data.ReactiveInsights !== null) {
|
|
2547
|
+
contents.ReactiveInsights = deserializeAws_restJson1ReactiveInsights(data.ReactiveInsights, context);
|
|
2548
|
+
}
|
|
2549
|
+
return Promise.resolve(contents);
|
|
2550
|
+
};
|
|
2551
|
+
exports.deserializeAws_restJson1SearchOrganizationInsightsCommand = deserializeAws_restJson1SearchOrganizationInsightsCommand;
|
|
2552
|
+
const deserializeAws_restJson1SearchOrganizationInsightsCommandError = async (output, context) => {
|
|
2553
|
+
const parsedOutput = {
|
|
2554
|
+
...output,
|
|
2555
|
+
body: await parseBody(output.body, context),
|
|
2556
|
+
};
|
|
2557
|
+
let response;
|
|
2558
|
+
let errorCode = "UnknownError";
|
|
2559
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
|
+
switch (errorCode) {
|
|
2561
|
+
case "AccessDeniedException":
|
|
2562
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2563
|
+
response = {
|
|
2564
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2565
|
+
name: errorCode,
|
|
2566
|
+
$metadata: deserializeMetadata(output),
|
|
2567
|
+
};
|
|
2568
|
+
break;
|
|
2569
|
+
case "InternalServerException":
|
|
2570
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2571
|
+
response = {
|
|
2572
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2573
|
+
name: errorCode,
|
|
2574
|
+
$metadata: deserializeMetadata(output),
|
|
2575
|
+
};
|
|
2576
|
+
break;
|
|
2577
|
+
case "ThrottlingException":
|
|
2578
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2579
|
+
response = {
|
|
2580
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2581
|
+
name: errorCode,
|
|
2582
|
+
$metadata: deserializeMetadata(output),
|
|
2583
|
+
};
|
|
2584
|
+
break;
|
|
2585
|
+
case "ValidationException":
|
|
2586
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
2587
|
+
response = {
|
|
2588
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2589
|
+
name: errorCode,
|
|
2590
|
+
$metadata: deserializeMetadata(output),
|
|
2591
|
+
};
|
|
2592
|
+
break;
|
|
2593
|
+
default:
|
|
2594
|
+
const parsedBody = parsedOutput.body;
|
|
2595
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2596
|
+
response = {
|
|
2597
|
+
...parsedBody,
|
|
2598
|
+
name: `${errorCode}`,
|
|
2599
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2600
|
+
$fault: "client",
|
|
2601
|
+
$metadata: deserializeMetadata(output),
|
|
2602
|
+
};
|
|
2603
|
+
}
|
|
2604
|
+
const message = response.message || response.Message || errorCode;
|
|
2605
|
+
response.message = message;
|
|
2606
|
+
delete response.Message;
|
|
2607
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2608
|
+
};
|
|
2609
|
+
const deserializeAws_restJson1StartCostEstimationCommand = async (output, context) => {
|
|
2610
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2611
|
+
return deserializeAws_restJson1StartCostEstimationCommandError(output, context);
|
|
2612
|
+
}
|
|
2613
|
+
const contents = {
|
|
2614
|
+
$metadata: deserializeMetadata(output),
|
|
2615
|
+
};
|
|
2616
|
+
await collectBody(output.body, context);
|
|
2617
|
+
return Promise.resolve(contents);
|
|
2618
|
+
};
|
|
2619
|
+
exports.deserializeAws_restJson1StartCostEstimationCommand = deserializeAws_restJson1StartCostEstimationCommand;
|
|
2620
|
+
const deserializeAws_restJson1StartCostEstimationCommandError = async (output, context) => {
|
|
2621
|
+
const parsedOutput = {
|
|
2622
|
+
...output,
|
|
2623
|
+
body: await parseBody(output.body, context),
|
|
2624
|
+
};
|
|
2625
|
+
let response;
|
|
2626
|
+
let errorCode = "UnknownError";
|
|
2627
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2628
|
+
switch (errorCode) {
|
|
2629
|
+
case "AccessDeniedException":
|
|
2630
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2631
|
+
response = {
|
|
2632
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2633
|
+
name: errorCode,
|
|
2634
|
+
$metadata: deserializeMetadata(output),
|
|
2635
|
+
};
|
|
2636
|
+
break;
|
|
2637
|
+
case "ConflictException":
|
|
2638
|
+
case "com.amazonaws.devopsguru#ConflictException":
|
|
2639
|
+
response = {
|
|
2640
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2641
|
+
name: errorCode,
|
|
2642
|
+
$metadata: deserializeMetadata(output),
|
|
2643
|
+
};
|
|
2644
|
+
break;
|
|
2645
|
+
case "InternalServerException":
|
|
2646
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2647
|
+
response = {
|
|
2648
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2649
|
+
name: errorCode,
|
|
2650
|
+
$metadata: deserializeMetadata(output),
|
|
2651
|
+
};
|
|
2652
|
+
break;
|
|
2653
|
+
case "ResourceNotFoundException":
|
|
2654
|
+
case "com.amazonaws.devopsguru#ResourceNotFoundException":
|
|
2655
|
+
response = {
|
|
2656
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2657
|
+
name: errorCode,
|
|
2658
|
+
$metadata: deserializeMetadata(output),
|
|
2659
|
+
};
|
|
2660
|
+
break;
|
|
2661
|
+
case "ThrottlingException":
|
|
2662
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2663
|
+
response = {
|
|
2664
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2665
|
+
name: errorCode,
|
|
2666
|
+
$metadata: deserializeMetadata(output),
|
|
2667
|
+
};
|
|
2668
|
+
break;
|
|
2669
|
+
case "ValidationException":
|
|
2670
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
2671
|
+
response = {
|
|
2672
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2673
|
+
name: errorCode,
|
|
2674
|
+
$metadata: deserializeMetadata(output),
|
|
2675
|
+
};
|
|
2676
|
+
break;
|
|
2677
|
+
default:
|
|
2678
|
+
const parsedBody = parsedOutput.body;
|
|
2679
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2680
|
+
response = {
|
|
2681
|
+
...parsedBody,
|
|
2682
|
+
name: `${errorCode}`,
|
|
2683
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2684
|
+
$fault: "client",
|
|
2685
|
+
$metadata: deserializeMetadata(output),
|
|
2686
|
+
};
|
|
2687
|
+
}
|
|
2688
|
+
const message = response.message || response.Message || errorCode;
|
|
2689
|
+
response.message = message;
|
|
2690
|
+
delete response.Message;
|
|
2691
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2692
|
+
};
|
|
2693
|
+
const deserializeAws_restJson1UpdateResourceCollectionCommand = async (output, context) => {
|
|
2694
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2695
|
+
return deserializeAws_restJson1UpdateResourceCollectionCommandError(output, context);
|
|
2696
|
+
}
|
|
2697
|
+
const contents = {
|
|
2698
|
+
$metadata: deserializeMetadata(output),
|
|
2699
|
+
};
|
|
2700
|
+
await collectBody(output.body, context);
|
|
2701
|
+
return Promise.resolve(contents);
|
|
2702
|
+
};
|
|
2703
|
+
exports.deserializeAws_restJson1UpdateResourceCollectionCommand = deserializeAws_restJson1UpdateResourceCollectionCommand;
|
|
2704
|
+
const deserializeAws_restJson1UpdateResourceCollectionCommandError = async (output, context) => {
|
|
2705
|
+
const parsedOutput = {
|
|
2706
|
+
...output,
|
|
2707
|
+
body: await parseBody(output.body, context),
|
|
2708
|
+
};
|
|
2709
|
+
let response;
|
|
2710
|
+
let errorCode = "UnknownError";
|
|
2711
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2712
|
+
switch (errorCode) {
|
|
2713
|
+
case "AccessDeniedException":
|
|
2714
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2715
|
+
response = {
|
|
2716
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2717
|
+
name: errorCode,
|
|
2718
|
+
$metadata: deserializeMetadata(output),
|
|
2719
|
+
};
|
|
2720
|
+
break;
|
|
2721
|
+
case "ConflictException":
|
|
2722
|
+
case "com.amazonaws.devopsguru#ConflictException":
|
|
2723
|
+
response = {
|
|
2724
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2725
|
+
name: errorCode,
|
|
2726
|
+
$metadata: deserializeMetadata(output),
|
|
2727
|
+
};
|
|
2728
|
+
break;
|
|
2729
|
+
case "InternalServerException":
|
|
2730
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2731
|
+
response = {
|
|
2732
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2733
|
+
name: errorCode,
|
|
2734
|
+
$metadata: deserializeMetadata(output),
|
|
2735
|
+
};
|
|
2736
|
+
break;
|
|
2737
|
+
case "ThrottlingException":
|
|
2738
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2739
|
+
response = {
|
|
2740
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2741
|
+
name: errorCode,
|
|
2742
|
+
$metadata: deserializeMetadata(output),
|
|
2743
|
+
};
|
|
2744
|
+
break;
|
|
2745
|
+
case "ValidationException":
|
|
2746
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
2747
|
+
response = {
|
|
2748
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2749
|
+
name: errorCode,
|
|
2750
|
+
$metadata: deserializeMetadata(output),
|
|
2751
|
+
};
|
|
2752
|
+
break;
|
|
2753
|
+
default:
|
|
2754
|
+
const parsedBody = parsedOutput.body;
|
|
2755
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2756
|
+
response = {
|
|
2757
|
+
...parsedBody,
|
|
2758
|
+
name: `${errorCode}`,
|
|
2759
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2760
|
+
$fault: "client",
|
|
2761
|
+
$metadata: deserializeMetadata(output),
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
const message = response.message || response.Message || errorCode;
|
|
2765
|
+
response.message = message;
|
|
2766
|
+
delete response.Message;
|
|
2767
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2768
|
+
};
|
|
2769
|
+
const deserializeAws_restJson1UpdateServiceIntegrationCommand = async (output, context) => {
|
|
2770
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2771
|
+
return deserializeAws_restJson1UpdateServiceIntegrationCommandError(output, context);
|
|
2772
|
+
}
|
|
2773
|
+
const contents = {
|
|
2774
|
+
$metadata: deserializeMetadata(output),
|
|
2775
|
+
};
|
|
2776
|
+
await collectBody(output.body, context);
|
|
2777
|
+
return Promise.resolve(contents);
|
|
2778
|
+
};
|
|
2779
|
+
exports.deserializeAws_restJson1UpdateServiceIntegrationCommand = deserializeAws_restJson1UpdateServiceIntegrationCommand;
|
|
2780
|
+
const deserializeAws_restJson1UpdateServiceIntegrationCommandError = async (output, context) => {
|
|
2781
|
+
const parsedOutput = {
|
|
2782
|
+
...output,
|
|
2783
|
+
body: await parseBody(output.body, context),
|
|
2784
|
+
};
|
|
2785
|
+
let response;
|
|
2786
|
+
let errorCode = "UnknownError";
|
|
2787
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
|
+
switch (errorCode) {
|
|
2789
|
+
case "AccessDeniedException":
|
|
2790
|
+
case "com.amazonaws.devopsguru#AccessDeniedException":
|
|
2791
|
+
response = {
|
|
2792
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2793
|
+
name: errorCode,
|
|
2794
|
+
$metadata: deserializeMetadata(output),
|
|
2795
|
+
};
|
|
2796
|
+
break;
|
|
2797
|
+
case "ConflictException":
|
|
2798
|
+
case "com.amazonaws.devopsguru#ConflictException":
|
|
2799
|
+
response = {
|
|
2800
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2801
|
+
name: errorCode,
|
|
2802
|
+
$metadata: deserializeMetadata(output),
|
|
2803
|
+
};
|
|
2804
|
+
break;
|
|
2805
|
+
case "InternalServerException":
|
|
2806
|
+
case "com.amazonaws.devopsguru#InternalServerException":
|
|
2807
|
+
response = {
|
|
2808
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2809
|
+
name: errorCode,
|
|
2810
|
+
$metadata: deserializeMetadata(output),
|
|
2811
|
+
};
|
|
2812
|
+
break;
|
|
2813
|
+
case "ThrottlingException":
|
|
2814
|
+
case "com.amazonaws.devopsguru#ThrottlingException":
|
|
2815
|
+
response = {
|
|
2816
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2817
|
+
name: errorCode,
|
|
2818
|
+
$metadata: deserializeMetadata(output),
|
|
2819
|
+
};
|
|
2820
|
+
break;
|
|
2821
|
+
case "ValidationException":
|
|
2822
|
+
case "com.amazonaws.devopsguru#ValidationException":
|
|
2823
|
+
response = {
|
|
2824
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2825
|
+
name: errorCode,
|
|
2826
|
+
$metadata: deserializeMetadata(output),
|
|
2827
|
+
};
|
|
2828
|
+
break;
|
|
2829
|
+
default:
|
|
2830
|
+
const parsedBody = parsedOutput.body;
|
|
2831
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2832
|
+
response = {
|
|
2833
|
+
...parsedBody,
|
|
2834
|
+
name: `${errorCode}`,
|
|
2835
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2836
|
+
$fault: "client",
|
|
2837
|
+
$metadata: deserializeMetadata(output),
|
|
2838
|
+
};
|
|
2839
|
+
}
|
|
2840
|
+
const message = response.message || response.Message || errorCode;
|
|
2841
|
+
response.message = message;
|
|
2842
|
+
delete response.Message;
|
|
2843
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2844
|
+
};
|
|
2845
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2846
|
+
const contents = {
|
|
2847
|
+
name: "AccessDeniedException",
|
|
2848
|
+
$fault: "client",
|
|
2849
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2850
|
+
Message: undefined,
|
|
2851
|
+
};
|
|
2852
|
+
const data = parsedOutput.body;
|
|
2853
|
+
if (data.Message !== undefined && data.Message !== null) {
|
|
2854
|
+
contents.Message = smithy_client_1.expectString(data.Message);
|
|
2855
|
+
}
|
|
2856
|
+
return contents;
|
|
2857
|
+
};
|
|
2858
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2859
|
+
const contents = {
|
|
2860
|
+
name: "ConflictException",
|
|
2285
2861
|
$fault: "client",
|
|
2286
2862
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2287
2863
|
Message: undefined,
|
|
@@ -2397,6 +2973,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2397
2973
|
}
|
|
2398
2974
|
return contents;
|
|
2399
2975
|
};
|
|
2976
|
+
const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
2977
|
+
return input
|
|
2978
|
+
.filter((e) => e != null)
|
|
2979
|
+
.map((entry) => {
|
|
2980
|
+
if (entry === null) {
|
|
2981
|
+
return null;
|
|
2982
|
+
}
|
|
2983
|
+
return entry;
|
|
2984
|
+
});
|
|
2985
|
+
};
|
|
2400
2986
|
const serializeAws_restJson1CloudFormationCollection = (input, context) => {
|
|
2401
2987
|
return {
|
|
2402
2988
|
...(input.StackNames !== undefined &&
|
|
@@ -2417,6 +3003,10 @@ const serializeAws_restJson1CostEstimationResourceCollectionFilter = (input, con
|
|
|
2417
3003
|
input.CloudFormation !== null && {
|
|
2418
3004
|
CloudFormation: serializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(input.CloudFormation, context),
|
|
2419
3005
|
}),
|
|
3006
|
+
...(input.Tags !== undefined &&
|
|
3007
|
+
input.Tags !== null && {
|
|
3008
|
+
Tags: serializeAws_restJson1TagCostEstimationResourceCollectionFilters(input.Tags, context),
|
|
3009
|
+
}),
|
|
2420
3010
|
};
|
|
2421
3011
|
};
|
|
2422
3012
|
const serializeAws_restJson1CostEstimationStackNames = (input, context) => {
|
|
@@ -2429,6 +3019,16 @@ const serializeAws_restJson1CostEstimationStackNames = (input, context) => {
|
|
|
2429
3019
|
return entry;
|
|
2430
3020
|
});
|
|
2431
3021
|
};
|
|
3022
|
+
const serializeAws_restJson1CostEstimationTagValues = (input, context) => {
|
|
3023
|
+
return input
|
|
3024
|
+
.filter((e) => e != null)
|
|
3025
|
+
.map((entry) => {
|
|
3026
|
+
if (entry === null) {
|
|
3027
|
+
return null;
|
|
3028
|
+
}
|
|
3029
|
+
return entry;
|
|
3030
|
+
});
|
|
3031
|
+
};
|
|
2432
3032
|
const serializeAws_restJson1EndTimeRange = (input, context) => {
|
|
2433
3033
|
return {
|
|
2434
3034
|
...(input.FromTime !== undefined &&
|
|
@@ -2485,6 +3085,16 @@ const serializeAws_restJson1ListEventsFilters = (input, context) => {
|
|
|
2485
3085
|
}),
|
|
2486
3086
|
};
|
|
2487
3087
|
};
|
|
3088
|
+
const serializeAws_restJson1ListInsightsAccountIdList = (input, context) => {
|
|
3089
|
+
return input
|
|
3090
|
+
.filter((e) => e != null)
|
|
3091
|
+
.map((entry) => {
|
|
3092
|
+
if (entry === null) {
|
|
3093
|
+
return null;
|
|
3094
|
+
}
|
|
3095
|
+
return entry;
|
|
3096
|
+
});
|
|
3097
|
+
};
|
|
2488
3098
|
const serializeAws_restJson1ListInsightsAnyStatusFilter = (input, context) => {
|
|
2489
3099
|
return {
|
|
2490
3100
|
...(input.StartTimeRange !== undefined &&
|
|
@@ -2506,6 +3116,16 @@ const serializeAws_restJson1ListInsightsOngoingStatusFilter = (input, context) =
|
|
|
2506
3116
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2507
3117
|
};
|
|
2508
3118
|
};
|
|
3119
|
+
const serializeAws_restJson1ListInsightsOrganizationalUnitIdList = (input, context) => {
|
|
3120
|
+
return input
|
|
3121
|
+
.filter((e) => e != null)
|
|
3122
|
+
.map((entry) => {
|
|
3123
|
+
if (entry === null) {
|
|
3124
|
+
return null;
|
|
3125
|
+
}
|
|
3126
|
+
return entry;
|
|
3127
|
+
});
|
|
3128
|
+
};
|
|
2509
3129
|
const serializeAws_restJson1ListInsightsStatusFilter = (input, context) => {
|
|
2510
3130
|
return {
|
|
2511
3131
|
...(input.Any !== undefined &&
|
|
@@ -2529,14 +3149,36 @@ const serializeAws_restJson1OpsCenterIntegrationConfig = (input, context) => {
|
|
|
2529
3149
|
...(input.OptInStatus !== undefined && input.OptInStatus !== null && { OptInStatus: input.OptInStatus }),
|
|
2530
3150
|
};
|
|
2531
3151
|
};
|
|
3152
|
+
const serializeAws_restJson1OrganizationalUnitIdList = (input, context) => {
|
|
3153
|
+
return input
|
|
3154
|
+
.filter((e) => e != null)
|
|
3155
|
+
.map((entry) => {
|
|
3156
|
+
if (entry === null) {
|
|
3157
|
+
return null;
|
|
3158
|
+
}
|
|
3159
|
+
return entry;
|
|
3160
|
+
});
|
|
3161
|
+
};
|
|
2532
3162
|
const serializeAws_restJson1ResourceCollection = (input, context) => {
|
|
2533
3163
|
return {
|
|
2534
3164
|
...(input.CloudFormation !== undefined &&
|
|
2535
3165
|
input.CloudFormation !== null && {
|
|
2536
3166
|
CloudFormation: serializeAws_restJson1CloudFormationCollection(input.CloudFormation, context),
|
|
2537
3167
|
}),
|
|
3168
|
+
...(input.Tags !== undefined &&
|
|
3169
|
+
input.Tags !== null && { Tags: serializeAws_restJson1TagCollections(input.Tags, context) }),
|
|
2538
3170
|
};
|
|
2539
3171
|
};
|
|
3172
|
+
const serializeAws_restJson1SearchInsightsAccountIdList = (input, context) => {
|
|
3173
|
+
return input
|
|
3174
|
+
.filter((e) => e != null)
|
|
3175
|
+
.map((entry) => {
|
|
3176
|
+
if (entry === null) {
|
|
3177
|
+
return null;
|
|
3178
|
+
}
|
|
3179
|
+
return entry;
|
|
3180
|
+
});
|
|
3181
|
+
};
|
|
2540
3182
|
const serializeAws_restJson1SearchInsightsFilters = (input, context) => {
|
|
2541
3183
|
return {
|
|
2542
3184
|
...(input.ResourceCollection !== undefined &&
|
|
@@ -2553,6 +3195,22 @@ const serializeAws_restJson1SearchInsightsFilters = (input, context) => {
|
|
|
2553
3195
|
input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
|
|
2554
3196
|
};
|
|
2555
3197
|
};
|
|
3198
|
+
const serializeAws_restJson1SearchOrganizationInsightsFilters = (input, context) => {
|
|
3199
|
+
return {
|
|
3200
|
+
...(input.ResourceCollection !== undefined &&
|
|
3201
|
+
input.ResourceCollection !== null && {
|
|
3202
|
+
ResourceCollection: serializeAws_restJson1ResourceCollection(input.ResourceCollection, context),
|
|
3203
|
+
}),
|
|
3204
|
+
...(input.ServiceCollection !== undefined &&
|
|
3205
|
+
input.ServiceCollection !== null && {
|
|
3206
|
+
ServiceCollection: serializeAws_restJson1ServiceCollection(input.ServiceCollection, context),
|
|
3207
|
+
}),
|
|
3208
|
+
...(input.Severities !== undefined &&
|
|
3209
|
+
input.Severities !== null && { Severities: serializeAws_restJson1InsightSeverities(input.Severities, context) }),
|
|
3210
|
+
...(input.Statuses !== undefined &&
|
|
3211
|
+
input.Statuses !== null && { Statuses: serializeAws_restJson1InsightStatuses(input.Statuses, context) }),
|
|
3212
|
+
};
|
|
3213
|
+
};
|
|
2556
3214
|
const serializeAws_restJson1ServiceCollection = (input, context) => {
|
|
2557
3215
|
return {
|
|
2558
3216
|
...(input.ServiceNames !== undefined &&
|
|
@@ -2591,6 +3249,54 @@ const serializeAws_restJson1StartTimeRange = (input, context) => {
|
|
|
2591
3249
|
...(input.ToTime !== undefined && input.ToTime !== null && { ToTime: Math.round(input.ToTime.getTime() / 1000) }),
|
|
2592
3250
|
};
|
|
2593
3251
|
};
|
|
3252
|
+
const serializeAws_restJson1TagCollection = (input, context) => {
|
|
3253
|
+
return {
|
|
3254
|
+
...(input.AppBoundaryKey !== undefined &&
|
|
3255
|
+
input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
|
|
3256
|
+
...(input.TagValues !== undefined &&
|
|
3257
|
+
input.TagValues !== null && { TagValues: serializeAws_restJson1TagValues(input.TagValues, context) }),
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
const serializeAws_restJson1TagCollections = (input, context) => {
|
|
3261
|
+
return input
|
|
3262
|
+
.filter((e) => e != null)
|
|
3263
|
+
.map((entry) => {
|
|
3264
|
+
if (entry === null) {
|
|
3265
|
+
return null;
|
|
3266
|
+
}
|
|
3267
|
+
return serializeAws_restJson1TagCollection(entry, context);
|
|
3268
|
+
});
|
|
3269
|
+
};
|
|
3270
|
+
const serializeAws_restJson1TagCostEstimationResourceCollectionFilter = (input, context) => {
|
|
3271
|
+
return {
|
|
3272
|
+
...(input.AppBoundaryKey !== undefined &&
|
|
3273
|
+
input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
|
|
3274
|
+
...(input.TagValues !== undefined &&
|
|
3275
|
+
input.TagValues !== null && {
|
|
3276
|
+
TagValues: serializeAws_restJson1CostEstimationTagValues(input.TagValues, context),
|
|
3277
|
+
}),
|
|
3278
|
+
};
|
|
3279
|
+
};
|
|
3280
|
+
const serializeAws_restJson1TagCostEstimationResourceCollectionFilters = (input, context) => {
|
|
3281
|
+
return input
|
|
3282
|
+
.filter((e) => e != null)
|
|
3283
|
+
.map((entry) => {
|
|
3284
|
+
if (entry === null) {
|
|
3285
|
+
return null;
|
|
3286
|
+
}
|
|
3287
|
+
return serializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
|
|
3288
|
+
});
|
|
3289
|
+
};
|
|
3290
|
+
const serializeAws_restJson1TagValues = (input, context) => {
|
|
3291
|
+
return input
|
|
3292
|
+
.filter((e) => e != null)
|
|
3293
|
+
.map((entry) => {
|
|
3294
|
+
if (entry === null) {
|
|
3295
|
+
return null;
|
|
3296
|
+
}
|
|
3297
|
+
return entry;
|
|
3298
|
+
});
|
|
3299
|
+
};
|
|
2594
3300
|
const serializeAws_restJson1UpdateCloudFormationCollectionFilter = (input, context) => {
|
|
2595
3301
|
return {
|
|
2596
3302
|
...(input.StackNames !== undefined &&
|
|
@@ -2603,6 +3309,8 @@ const serializeAws_restJson1UpdateResourceCollectionFilter = (input, context) =>
|
|
|
2603
3309
|
input.CloudFormation !== null && {
|
|
2604
3310
|
CloudFormation: serializeAws_restJson1UpdateCloudFormationCollectionFilter(input.CloudFormation, context),
|
|
2605
3311
|
}),
|
|
3312
|
+
...(input.Tags !== undefined &&
|
|
3313
|
+
input.Tags !== null && { Tags: serializeAws_restJson1UpdateTagCollectionFilters(input.Tags, context) }),
|
|
2606
3314
|
};
|
|
2607
3315
|
};
|
|
2608
3316
|
const serializeAws_restJson1UpdateServiceIntegrationConfig = (input, context) => {
|
|
@@ -2613,16 +3321,68 @@ const serializeAws_restJson1UpdateServiceIntegrationConfig = (input, context) =>
|
|
|
2613
3321
|
}),
|
|
2614
3322
|
};
|
|
2615
3323
|
};
|
|
2616
|
-
const serializeAws_restJson1UpdateStackNames = (input, context) => {
|
|
2617
|
-
return input
|
|
3324
|
+
const serializeAws_restJson1UpdateStackNames = (input, context) => {
|
|
3325
|
+
return input
|
|
3326
|
+
.filter((e) => e != null)
|
|
3327
|
+
.map((entry) => {
|
|
3328
|
+
if (entry === null) {
|
|
3329
|
+
return null;
|
|
3330
|
+
}
|
|
3331
|
+
return entry;
|
|
3332
|
+
});
|
|
3333
|
+
};
|
|
3334
|
+
const serializeAws_restJson1UpdateTagCollectionFilter = (input, context) => {
|
|
3335
|
+
return {
|
|
3336
|
+
...(input.AppBoundaryKey !== undefined &&
|
|
3337
|
+
input.AppBoundaryKey !== null && { AppBoundaryKey: input.AppBoundaryKey }),
|
|
3338
|
+
...(input.TagValues !== undefined &&
|
|
3339
|
+
input.TagValues !== null && { TagValues: serializeAws_restJson1UpdateTagValues(input.TagValues, context) }),
|
|
3340
|
+
};
|
|
3341
|
+
};
|
|
3342
|
+
const serializeAws_restJson1UpdateTagCollectionFilters = (input, context) => {
|
|
3343
|
+
return input
|
|
3344
|
+
.filter((e) => e != null)
|
|
3345
|
+
.map((entry) => {
|
|
3346
|
+
if (entry === null) {
|
|
3347
|
+
return null;
|
|
3348
|
+
}
|
|
3349
|
+
return serializeAws_restJson1UpdateTagCollectionFilter(entry, context);
|
|
3350
|
+
});
|
|
3351
|
+
};
|
|
3352
|
+
const serializeAws_restJson1UpdateTagValues = (input, context) => {
|
|
3353
|
+
return input
|
|
3354
|
+
.filter((e) => e != null)
|
|
3355
|
+
.map((entry) => {
|
|
3356
|
+
if (entry === null) {
|
|
3357
|
+
return null;
|
|
3358
|
+
}
|
|
3359
|
+
return entry;
|
|
3360
|
+
});
|
|
3361
|
+
};
|
|
3362
|
+
const deserializeAws_restJson1AccountHealth = (output, context) => {
|
|
3363
|
+
return {
|
|
3364
|
+
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
3365
|
+
Insight: output.Insight !== undefined && output.Insight !== null
|
|
3366
|
+
? deserializeAws_restJson1AccountInsightHealth(output.Insight, context)
|
|
3367
|
+
: undefined,
|
|
3368
|
+
};
|
|
3369
|
+
};
|
|
3370
|
+
const deserializeAws_restJson1AccountHealths = (output, context) => {
|
|
3371
|
+
return (output || [])
|
|
2618
3372
|
.filter((e) => e != null)
|
|
2619
3373
|
.map((entry) => {
|
|
2620
3374
|
if (entry === null) {
|
|
2621
3375
|
return null;
|
|
2622
3376
|
}
|
|
2623
|
-
return entry;
|
|
3377
|
+
return deserializeAws_restJson1AccountHealth(entry, context);
|
|
2624
3378
|
});
|
|
2625
3379
|
};
|
|
3380
|
+
const deserializeAws_restJson1AccountInsightHealth = (output, context) => {
|
|
3381
|
+
return {
|
|
3382
|
+
OpenProactiveInsights: smithy_client_1.expectInt32(output.OpenProactiveInsights),
|
|
3383
|
+
OpenReactiveInsights: smithy_client_1.expectInt32(output.OpenReactiveInsights),
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
2626
3386
|
const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
|
|
2627
3387
|
return {
|
|
2628
3388
|
CloseTime: output.CloseTime !== undefined && output.CloseTime !== null
|
|
@@ -2633,11 +3393,30 @@ const deserializeAws_restJson1AnomalyReportedTimeRange = (output, context) => {
|
|
|
2633
3393
|
: undefined,
|
|
2634
3394
|
};
|
|
2635
3395
|
};
|
|
3396
|
+
const deserializeAws_restJson1AnomalyResource = (output, context) => {
|
|
3397
|
+
return {
|
|
3398
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3399
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
const deserializeAws_restJson1AnomalyResources = (output, context) => {
|
|
3403
|
+
return (output || [])
|
|
3404
|
+
.filter((e) => e != null)
|
|
3405
|
+
.map((entry) => {
|
|
3406
|
+
if (entry === null) {
|
|
3407
|
+
return null;
|
|
3408
|
+
}
|
|
3409
|
+
return deserializeAws_restJson1AnomalyResource(entry, context);
|
|
3410
|
+
});
|
|
3411
|
+
};
|
|
2636
3412
|
const deserializeAws_restJson1AnomalySourceDetails = (output, context) => {
|
|
2637
3413
|
return {
|
|
2638
3414
|
CloudWatchMetrics: output.CloudWatchMetrics !== undefined && output.CloudWatchMetrics !== null
|
|
2639
3415
|
? deserializeAws_restJson1CloudWatchMetricsDetails(output.CloudWatchMetrics, context)
|
|
2640
3416
|
: undefined,
|
|
3417
|
+
PerformanceInsightsMetrics: output.PerformanceInsightsMetrics !== undefined && output.PerformanceInsightsMetrics !== null
|
|
3418
|
+
? deserializeAws_restJson1PerformanceInsightsMetricsDetails(output.PerformanceInsightsMetrics, context)
|
|
3419
|
+
: undefined,
|
|
2641
3420
|
};
|
|
2642
3421
|
};
|
|
2643
3422
|
const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
|
|
@@ -2650,6 +3429,16 @@ const deserializeAws_restJson1AnomalyTimeRange = (output, context) => {
|
|
|
2650
3429
|
: undefined,
|
|
2651
3430
|
};
|
|
2652
3431
|
};
|
|
3432
|
+
const deserializeAws_restJson1AssociatedResourceArns = (output, context) => {
|
|
3433
|
+
return (output || [])
|
|
3434
|
+
.filter((e) => e != null)
|
|
3435
|
+
.map((entry) => {
|
|
3436
|
+
if (entry === null) {
|
|
3437
|
+
return null;
|
|
3438
|
+
}
|
|
3439
|
+
return smithy_client_1.expectString(entry);
|
|
3440
|
+
});
|
|
3441
|
+
};
|
|
2653
3442
|
const deserializeAws_restJson1Channels = (output, context) => {
|
|
2654
3443
|
return (output || [])
|
|
2655
3444
|
.filter((e) => e != null)
|
|
@@ -2699,11 +3488,22 @@ const deserializeAws_restJson1CloudFormationHealths = (output, context) => {
|
|
|
2699
3488
|
return deserializeAws_restJson1CloudFormationHealth(entry, context);
|
|
2700
3489
|
});
|
|
2701
3490
|
};
|
|
3491
|
+
const deserializeAws_restJson1CloudWatchMetricsDataSummary = (output, context) => {
|
|
3492
|
+
return {
|
|
3493
|
+
StatusCode: smithy_client_1.expectString(output.StatusCode),
|
|
3494
|
+
TimestampMetricValuePairList: output.TimestampMetricValuePairList !== undefined && output.TimestampMetricValuePairList !== null
|
|
3495
|
+
? deserializeAws_restJson1TimestampMetricValuePairList(output.TimestampMetricValuePairList, context)
|
|
3496
|
+
: undefined,
|
|
3497
|
+
};
|
|
3498
|
+
};
|
|
2702
3499
|
const deserializeAws_restJson1CloudWatchMetricsDetail = (output, context) => {
|
|
2703
3500
|
return {
|
|
2704
3501
|
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
2705
3502
|
? deserializeAws_restJson1CloudWatchMetricsDimensions(output.Dimensions, context)
|
|
2706
3503
|
: undefined,
|
|
3504
|
+
MetricDataSummary: output.MetricDataSummary !== undefined && output.MetricDataSummary !== null
|
|
3505
|
+
? deserializeAws_restJson1CloudWatchMetricsDataSummary(output.MetricDataSummary, context)
|
|
3506
|
+
: undefined,
|
|
2707
3507
|
MetricName: smithy_client_1.expectString(output.MetricName),
|
|
2708
3508
|
Namespace: smithy_client_1.expectString(output.Namespace),
|
|
2709
3509
|
Period: smithy_client_1.expectInt32(output.Period),
|
|
@@ -2742,6 +3542,9 @@ const deserializeAws_restJson1CostEstimationResourceCollectionFilter = (output,
|
|
|
2742
3542
|
CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
|
|
2743
3543
|
? deserializeAws_restJson1CloudFormationCostEstimationResourceCollectionFilter(output.CloudFormation, context)
|
|
2744
3544
|
: undefined,
|
|
3545
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3546
|
+
? deserializeAws_restJson1TagCostEstimationResourceCollectionFilters(output.Tags, context)
|
|
3547
|
+
: undefined,
|
|
2745
3548
|
};
|
|
2746
3549
|
};
|
|
2747
3550
|
const deserializeAws_restJson1CostEstimationStackNames = (output, context) => {
|
|
@@ -2754,6 +3557,16 @@ const deserializeAws_restJson1CostEstimationStackNames = (output, context) => {
|
|
|
2754
3557
|
return smithy_client_1.expectString(entry);
|
|
2755
3558
|
});
|
|
2756
3559
|
};
|
|
3560
|
+
const deserializeAws_restJson1CostEstimationTagValues = (output, context) => {
|
|
3561
|
+
return (output || [])
|
|
3562
|
+
.filter((e) => e != null)
|
|
3563
|
+
.map((entry) => {
|
|
3564
|
+
if (entry === null) {
|
|
3565
|
+
return null;
|
|
3566
|
+
}
|
|
3567
|
+
return smithy_client_1.expectString(entry);
|
|
3568
|
+
});
|
|
3569
|
+
};
|
|
2757
3570
|
const deserializeAws_restJson1CostEstimationTimeRange = (output, context) => {
|
|
2758
3571
|
return {
|
|
2759
3572
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -2852,6 +3665,131 @@ const deserializeAws_restJson1OpsCenterIntegration = (output, context) => {
|
|
|
2852
3665
|
OptInStatus: smithy_client_1.expectString(output.OptInStatus),
|
|
2853
3666
|
};
|
|
2854
3667
|
};
|
|
3668
|
+
const deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup = (output, context) => {
|
|
3669
|
+
return {
|
|
3670
|
+
Dimensions: output.Dimensions !== undefined && output.Dimensions !== null
|
|
3671
|
+
? deserializeAws_restJson1PerformanceInsightsMetricDimensions(output.Dimensions, context)
|
|
3672
|
+
: undefined,
|
|
3673
|
+
Group: smithy_client_1.expectString(output.Group),
|
|
3674
|
+
Limit: smithy_client_1.expectInt32(output.Limit),
|
|
3675
|
+
};
|
|
3676
|
+
};
|
|
3677
|
+
const deserializeAws_restJson1PerformanceInsightsMetricDimensions = (output, context) => {
|
|
3678
|
+
return (output || [])
|
|
3679
|
+
.filter((e) => e != null)
|
|
3680
|
+
.map((entry) => {
|
|
3681
|
+
if (entry === null) {
|
|
3682
|
+
return null;
|
|
3683
|
+
}
|
|
3684
|
+
return smithy_client_1.expectString(entry);
|
|
3685
|
+
});
|
|
3686
|
+
};
|
|
3687
|
+
const deserializeAws_restJson1PerformanceInsightsMetricFilterMap = (output, context) => {
|
|
3688
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3689
|
+
if (value === null) {
|
|
3690
|
+
return acc;
|
|
3691
|
+
}
|
|
3692
|
+
return {
|
|
3693
|
+
...acc,
|
|
3694
|
+
[key]: smithy_client_1.expectString(value),
|
|
3695
|
+
};
|
|
3696
|
+
}, {});
|
|
3697
|
+
};
|
|
3698
|
+
const deserializeAws_restJson1PerformanceInsightsMetricQuery = (output, context) => {
|
|
3699
|
+
return {
|
|
3700
|
+
Filter: output.Filter !== undefined && output.Filter !== null
|
|
3701
|
+
? deserializeAws_restJson1PerformanceInsightsMetricFilterMap(output.Filter, context)
|
|
3702
|
+
: undefined,
|
|
3703
|
+
GroupBy: output.GroupBy !== undefined && output.GroupBy !== null
|
|
3704
|
+
? deserializeAws_restJson1PerformanceInsightsMetricDimensionGroup(output.GroupBy, context)
|
|
3705
|
+
: undefined,
|
|
3706
|
+
Metric: smithy_client_1.expectString(output.Metric),
|
|
3707
|
+
};
|
|
3708
|
+
};
|
|
3709
|
+
const deserializeAws_restJson1PerformanceInsightsMetricsDetail = (output, context) => {
|
|
3710
|
+
return {
|
|
3711
|
+
MetricDisplayName: smithy_client_1.expectString(output.MetricDisplayName),
|
|
3712
|
+
MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
|
|
3713
|
+
? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
|
|
3714
|
+
: undefined,
|
|
3715
|
+
ReferenceData: output.ReferenceData !== undefined && output.ReferenceData !== null
|
|
3716
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceDataList(output.ReferenceData, context)
|
|
3717
|
+
: undefined,
|
|
3718
|
+
StatsAtAnomaly: output.StatsAtAnomaly !== undefined && output.StatsAtAnomaly !== null
|
|
3719
|
+
? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtAnomaly, context)
|
|
3720
|
+
: undefined,
|
|
3721
|
+
StatsAtBaseline: output.StatsAtBaseline !== undefined && output.StatsAtBaseline !== null
|
|
3722
|
+
? deserializeAws_restJson1PerformanceInsightsStats(output.StatsAtBaseline, context)
|
|
3723
|
+
: undefined,
|
|
3724
|
+
Unit: smithy_client_1.expectString(output.Unit),
|
|
3725
|
+
};
|
|
3726
|
+
};
|
|
3727
|
+
const deserializeAws_restJson1PerformanceInsightsMetricsDetails = (output, context) => {
|
|
3728
|
+
return (output || [])
|
|
3729
|
+
.filter((e) => e != null)
|
|
3730
|
+
.map((entry) => {
|
|
3731
|
+
if (entry === null) {
|
|
3732
|
+
return null;
|
|
3733
|
+
}
|
|
3734
|
+
return deserializeAws_restJson1PerformanceInsightsMetricsDetail(entry, context);
|
|
3735
|
+
});
|
|
3736
|
+
};
|
|
3737
|
+
const deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues = (output, context) => {
|
|
3738
|
+
return {
|
|
3739
|
+
ReferenceMetric: output.ReferenceMetric !== undefined && output.ReferenceMetric !== null
|
|
3740
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceMetric(output.ReferenceMetric, context)
|
|
3741
|
+
: undefined,
|
|
3742
|
+
ReferenceScalar: output.ReferenceScalar !== undefined && output.ReferenceScalar !== null
|
|
3743
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceScalar(output.ReferenceScalar, context)
|
|
3744
|
+
: undefined,
|
|
3745
|
+
};
|
|
3746
|
+
};
|
|
3747
|
+
const deserializeAws_restJson1PerformanceInsightsReferenceData = (output, context) => {
|
|
3748
|
+
return {
|
|
3749
|
+
ComparisonValues: output.ComparisonValues !== undefined && output.ComparisonValues !== null
|
|
3750
|
+
? deserializeAws_restJson1PerformanceInsightsReferenceComparisonValues(output.ComparisonValues, context)
|
|
3751
|
+
: undefined,
|
|
3752
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
const deserializeAws_restJson1PerformanceInsightsReferenceDataList = (output, context) => {
|
|
3756
|
+
return (output || [])
|
|
3757
|
+
.filter((e) => e != null)
|
|
3758
|
+
.map((entry) => {
|
|
3759
|
+
if (entry === null) {
|
|
3760
|
+
return null;
|
|
3761
|
+
}
|
|
3762
|
+
return deserializeAws_restJson1PerformanceInsightsReferenceData(entry, context);
|
|
3763
|
+
});
|
|
3764
|
+
};
|
|
3765
|
+
const deserializeAws_restJson1PerformanceInsightsReferenceMetric = (output, context) => {
|
|
3766
|
+
return {
|
|
3767
|
+
MetricQuery: output.MetricQuery !== undefined && output.MetricQuery !== null
|
|
3768
|
+
? deserializeAws_restJson1PerformanceInsightsMetricQuery(output.MetricQuery, context)
|
|
3769
|
+
: undefined,
|
|
3770
|
+
};
|
|
3771
|
+
};
|
|
3772
|
+
const deserializeAws_restJson1PerformanceInsightsReferenceScalar = (output, context) => {
|
|
3773
|
+
return {
|
|
3774
|
+
Value: smithy_client_1.limitedParseDouble(output.Value),
|
|
3775
|
+
};
|
|
3776
|
+
};
|
|
3777
|
+
const deserializeAws_restJson1PerformanceInsightsStat = (output, context) => {
|
|
3778
|
+
return {
|
|
3779
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3780
|
+
Value: smithy_client_1.limitedParseDouble(output.Value),
|
|
3781
|
+
};
|
|
3782
|
+
};
|
|
3783
|
+
const deserializeAws_restJson1PerformanceInsightsStats = (output, context) => {
|
|
3784
|
+
return (output || [])
|
|
3785
|
+
.filter((e) => e != null)
|
|
3786
|
+
.map((entry) => {
|
|
3787
|
+
if (entry === null) {
|
|
3788
|
+
return null;
|
|
3789
|
+
}
|
|
3790
|
+
return deserializeAws_restJson1PerformanceInsightsStat(entry, context);
|
|
3791
|
+
});
|
|
3792
|
+
};
|
|
2855
3793
|
const deserializeAws_restJson1PredictionTimeRange = (output, context) => {
|
|
2856
3794
|
return {
|
|
2857
3795
|
EndTime: output.EndTime !== undefined && output.EndTime !== null
|
|
@@ -2956,11 +3894,46 @@ const deserializeAws_restJson1ProactiveInsights = (output, context) => {
|
|
|
2956
3894
|
};
|
|
2957
3895
|
const deserializeAws_restJson1ProactiveInsightSummary = (output, context) => {
|
|
2958
3896
|
return {
|
|
3897
|
+
AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
|
|
3898
|
+
? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
|
|
3899
|
+
: undefined,
|
|
3900
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
3901
|
+
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3902
|
+
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
3903
|
+
: undefined,
|
|
3904
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3905
|
+
PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
|
|
3906
|
+
? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
|
|
3907
|
+
: undefined,
|
|
3908
|
+
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
3909
|
+
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
3910
|
+
: undefined,
|
|
3911
|
+
ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
|
|
3912
|
+
? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
|
|
3913
|
+
: undefined,
|
|
3914
|
+
Severity: smithy_client_1.expectString(output.Severity),
|
|
3915
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3918
|
+
const deserializeAws_restJson1ProactiveOrganizationInsights = (output, context) => {
|
|
3919
|
+
return (output || [])
|
|
3920
|
+
.filter((e) => e != null)
|
|
3921
|
+
.map((entry) => {
|
|
3922
|
+
if (entry === null) {
|
|
3923
|
+
return null;
|
|
3924
|
+
}
|
|
3925
|
+
return deserializeAws_restJson1ProactiveOrganizationInsightSummary(entry, context);
|
|
3926
|
+
});
|
|
3927
|
+
};
|
|
3928
|
+
const deserializeAws_restJson1ProactiveOrganizationInsightSummary = (output, context) => {
|
|
3929
|
+
return {
|
|
3930
|
+
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
2959
3931
|
Id: smithy_client_1.expectString(output.Id),
|
|
2960
3932
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
2961
3933
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
2962
3934
|
: undefined,
|
|
2963
3935
|
Name: smithy_client_1.expectString(output.Name),
|
|
3936
|
+
OrganizationalUnitId: smithy_client_1.expectString(output.OrganizationalUnitId),
|
|
2964
3937
|
PredictionTimeRange: output.PredictionTimeRange !== undefined && output.PredictionTimeRange !== null
|
|
2965
3938
|
? deserializeAws_restJson1PredictionTimeRange(output.PredictionTimeRange, context)
|
|
2966
3939
|
: undefined,
|
|
@@ -2989,11 +3962,17 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
|
|
|
2989
3962
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
2990
3963
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
2991
3964
|
: undefined,
|
|
3965
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3966
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3967
|
+
: undefined,
|
|
2992
3968
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
2993
3969
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
2994
3970
|
: undefined,
|
|
2995
3971
|
AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
|
|
3972
|
+
CausalAnomalyId: smithy_client_1.expectString(output.CausalAnomalyId),
|
|
3973
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
2996
3974
|
Id: smithy_client_1.expectString(output.Id),
|
|
3975
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
2997
3976
|
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
2998
3977
|
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
2999
3978
|
: undefined,
|
|
@@ -3002,6 +3981,7 @@ const deserializeAws_restJson1ReactiveAnomaly = (output, context) => {
|
|
|
3002
3981
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3003
3982
|
: undefined,
|
|
3004
3983
|
Status: smithy_client_1.expectString(output.Status),
|
|
3984
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3005
3985
|
};
|
|
3006
3986
|
};
|
|
3007
3987
|
const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
|
|
@@ -3009,11 +3989,17 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
|
|
|
3009
3989
|
AnomalyReportedTimeRange: output.AnomalyReportedTimeRange !== undefined && output.AnomalyReportedTimeRange !== null
|
|
3010
3990
|
? deserializeAws_restJson1AnomalyReportedTimeRange(output.AnomalyReportedTimeRange, context)
|
|
3011
3991
|
: undefined,
|
|
3992
|
+
AnomalyResources: output.AnomalyResources !== undefined && output.AnomalyResources !== null
|
|
3993
|
+
? deserializeAws_restJson1AnomalyResources(output.AnomalyResources, context)
|
|
3994
|
+
: undefined,
|
|
3012
3995
|
AnomalyTimeRange: output.AnomalyTimeRange !== undefined && output.AnomalyTimeRange !== null
|
|
3013
3996
|
? deserializeAws_restJson1AnomalyTimeRange(output.AnomalyTimeRange, context)
|
|
3014
3997
|
: undefined,
|
|
3015
3998
|
AssociatedInsightId: smithy_client_1.expectString(output.AssociatedInsightId),
|
|
3999
|
+
CausalAnomalyId: smithy_client_1.expectString(output.CausalAnomalyId),
|
|
4000
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
3016
4001
|
Id: smithy_client_1.expectString(output.Id),
|
|
4002
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
3017
4003
|
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
3018
4004
|
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
3019
4005
|
: undefined,
|
|
@@ -3022,6 +4008,7 @@ const deserializeAws_restJson1ReactiveAnomalySummary = (output, context) => {
|
|
|
3022
4008
|
? deserializeAws_restJson1AnomalySourceDetails(output.SourceDetails, context)
|
|
3023
4009
|
: undefined,
|
|
3024
4010
|
Status: smithy_client_1.expectString(output.Status),
|
|
4011
|
+
Type: smithy_client_1.expectString(output.Type),
|
|
3025
4012
|
};
|
|
3026
4013
|
};
|
|
3027
4014
|
const deserializeAws_restJson1ReactiveInsight = (output, context) => {
|
|
@@ -3051,11 +4038,43 @@ const deserializeAws_restJson1ReactiveInsights = (output, context) => {
|
|
|
3051
4038
|
};
|
|
3052
4039
|
const deserializeAws_restJson1ReactiveInsightSummary = (output, context) => {
|
|
3053
4040
|
return {
|
|
4041
|
+
AssociatedResourceArns: output.AssociatedResourceArns !== undefined && output.AssociatedResourceArns !== null
|
|
4042
|
+
? deserializeAws_restJson1AssociatedResourceArns(output.AssociatedResourceArns, context)
|
|
4043
|
+
: undefined,
|
|
4044
|
+
Id: smithy_client_1.expectString(output.Id),
|
|
4045
|
+
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
4046
|
+
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
4047
|
+
: undefined,
|
|
4048
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4049
|
+
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
4050
|
+
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
4051
|
+
: undefined,
|
|
4052
|
+
ServiceCollection: output.ServiceCollection !== undefined && output.ServiceCollection !== null
|
|
4053
|
+
? deserializeAws_restJson1ServiceCollection(output.ServiceCollection, context)
|
|
4054
|
+
: undefined,
|
|
4055
|
+
Severity: smithy_client_1.expectString(output.Severity),
|
|
4056
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4057
|
+
};
|
|
4058
|
+
};
|
|
4059
|
+
const deserializeAws_restJson1ReactiveOrganizationInsights = (output, context) => {
|
|
4060
|
+
return (output || [])
|
|
4061
|
+
.filter((e) => e != null)
|
|
4062
|
+
.map((entry) => {
|
|
4063
|
+
if (entry === null) {
|
|
4064
|
+
return null;
|
|
4065
|
+
}
|
|
4066
|
+
return deserializeAws_restJson1ReactiveOrganizationInsightSummary(entry, context);
|
|
4067
|
+
});
|
|
4068
|
+
};
|
|
4069
|
+
const deserializeAws_restJson1ReactiveOrganizationInsightSummary = (output, context) => {
|
|
4070
|
+
return {
|
|
4071
|
+
AccountId: smithy_client_1.expectString(output.AccountId),
|
|
3054
4072
|
Id: smithy_client_1.expectString(output.Id),
|
|
3055
4073
|
InsightTimeRange: output.InsightTimeRange !== undefined && output.InsightTimeRange !== null
|
|
3056
4074
|
? deserializeAws_restJson1InsightTimeRange(output.InsightTimeRange, context)
|
|
3057
4075
|
: undefined,
|
|
3058
4076
|
Name: smithy_client_1.expectString(output.Name),
|
|
4077
|
+
OrganizationalUnitId: smithy_client_1.expectString(output.OrganizationalUnitId),
|
|
3059
4078
|
ResourceCollection: output.ResourceCollection !== undefined && output.ResourceCollection !== null
|
|
3060
4079
|
? deserializeAws_restJson1ResourceCollection(output.ResourceCollection, context)
|
|
3061
4080
|
: undefined,
|
|
@@ -3092,6 +4111,7 @@ const deserializeAws_restJson1RecommendationRelatedAnomalies = (output, context)
|
|
|
3092
4111
|
};
|
|
3093
4112
|
const deserializeAws_restJson1RecommendationRelatedAnomaly = (output, context) => {
|
|
3094
4113
|
return {
|
|
4114
|
+
AnomalyId: smithy_client_1.expectString(output.AnomalyId),
|
|
3095
4115
|
Resources: output.Resources !== undefined && output.Resources !== null
|
|
3096
4116
|
? deserializeAws_restJson1RecommendationRelatedAnomalyResources(output.Resources, context)
|
|
3097
4117
|
: undefined,
|
|
@@ -3198,6 +4218,9 @@ const deserializeAws_restJson1ResourceCollection = (output, context) => {
|
|
|
3198
4218
|
CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
|
|
3199
4219
|
? deserializeAws_restJson1CloudFormationCollection(output.CloudFormation, context)
|
|
3200
4220
|
: undefined,
|
|
4221
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4222
|
+
? deserializeAws_restJson1TagCollections(output.Tags, context)
|
|
4223
|
+
: undefined,
|
|
3201
4224
|
};
|
|
3202
4225
|
};
|
|
3203
4226
|
const deserializeAws_restJson1ResourceCollectionFilter = (output, context) => {
|
|
@@ -3205,6 +4228,9 @@ const deserializeAws_restJson1ResourceCollectionFilter = (output, context) => {
|
|
|
3205
4228
|
CloudFormation: output.CloudFormation !== undefined && output.CloudFormation !== null
|
|
3206
4229
|
? deserializeAws_restJson1CloudFormationCollectionFilter(output.CloudFormation, context)
|
|
3207
4230
|
: undefined,
|
|
4231
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4232
|
+
? deserializeAws_restJson1TagCollectionFilters(output.Tags, context)
|
|
4233
|
+
: undefined,
|
|
3208
4234
|
};
|
|
3209
4235
|
};
|
|
3210
4236
|
const deserializeAws_restJson1ServiceCollection = (output, context) => {
|
|
@@ -3289,6 +4315,107 @@ const deserializeAws_restJson1StackNames = (output, context) => {
|
|
|
3289
4315
|
return smithy_client_1.expectString(entry);
|
|
3290
4316
|
});
|
|
3291
4317
|
};
|
|
4318
|
+
const deserializeAws_restJson1TagCollection = (output, context) => {
|
|
4319
|
+
return {
|
|
4320
|
+
AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
|
|
4321
|
+
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
4322
|
+
? deserializeAws_restJson1TagValues(output.TagValues, context)
|
|
4323
|
+
: undefined,
|
|
4324
|
+
};
|
|
4325
|
+
};
|
|
4326
|
+
const deserializeAws_restJson1TagCollectionFilter = (output, context) => {
|
|
4327
|
+
return {
|
|
4328
|
+
AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
|
|
4329
|
+
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
4330
|
+
? deserializeAws_restJson1TagValues(output.TagValues, context)
|
|
4331
|
+
: undefined,
|
|
4332
|
+
};
|
|
4333
|
+
};
|
|
4334
|
+
const deserializeAws_restJson1TagCollectionFilters = (output, context) => {
|
|
4335
|
+
return (output || [])
|
|
4336
|
+
.filter((e) => e != null)
|
|
4337
|
+
.map((entry) => {
|
|
4338
|
+
if (entry === null) {
|
|
4339
|
+
return null;
|
|
4340
|
+
}
|
|
4341
|
+
return deserializeAws_restJson1TagCollectionFilter(entry, context);
|
|
4342
|
+
});
|
|
4343
|
+
};
|
|
4344
|
+
const deserializeAws_restJson1TagCollections = (output, context) => {
|
|
4345
|
+
return (output || [])
|
|
4346
|
+
.filter((e) => e != null)
|
|
4347
|
+
.map((entry) => {
|
|
4348
|
+
if (entry === null) {
|
|
4349
|
+
return null;
|
|
4350
|
+
}
|
|
4351
|
+
return deserializeAws_restJson1TagCollection(entry, context);
|
|
4352
|
+
});
|
|
4353
|
+
};
|
|
4354
|
+
const deserializeAws_restJson1TagCostEstimationResourceCollectionFilter = (output, context) => {
|
|
4355
|
+
return {
|
|
4356
|
+
AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
|
|
4357
|
+
TagValues: output.TagValues !== undefined && output.TagValues !== null
|
|
4358
|
+
? deserializeAws_restJson1CostEstimationTagValues(output.TagValues, context)
|
|
4359
|
+
: undefined,
|
|
4360
|
+
};
|
|
4361
|
+
};
|
|
4362
|
+
const deserializeAws_restJson1TagCostEstimationResourceCollectionFilters = (output, context) => {
|
|
4363
|
+
return (output || [])
|
|
4364
|
+
.filter((e) => e != null)
|
|
4365
|
+
.map((entry) => {
|
|
4366
|
+
if (entry === null) {
|
|
4367
|
+
return null;
|
|
4368
|
+
}
|
|
4369
|
+
return deserializeAws_restJson1TagCostEstimationResourceCollectionFilter(entry, context);
|
|
4370
|
+
});
|
|
4371
|
+
};
|
|
4372
|
+
const deserializeAws_restJson1TagHealth = (output, context) => {
|
|
4373
|
+
return {
|
|
4374
|
+
AppBoundaryKey: smithy_client_1.expectString(output.AppBoundaryKey),
|
|
4375
|
+
Insight: output.Insight !== undefined && output.Insight !== null
|
|
4376
|
+
? deserializeAws_restJson1InsightHealth(output.Insight, context)
|
|
4377
|
+
: undefined,
|
|
4378
|
+
TagValue: smithy_client_1.expectString(output.TagValue),
|
|
4379
|
+
};
|
|
4380
|
+
};
|
|
4381
|
+
const deserializeAws_restJson1TagHealths = (output, context) => {
|
|
4382
|
+
return (output || [])
|
|
4383
|
+
.filter((e) => e != null)
|
|
4384
|
+
.map((entry) => {
|
|
4385
|
+
if (entry === null) {
|
|
4386
|
+
return null;
|
|
4387
|
+
}
|
|
4388
|
+
return deserializeAws_restJson1TagHealth(entry, context);
|
|
4389
|
+
});
|
|
4390
|
+
};
|
|
4391
|
+
const deserializeAws_restJson1TagValues = (output, context) => {
|
|
4392
|
+
return (output || [])
|
|
4393
|
+
.filter((e) => e != null)
|
|
4394
|
+
.map((entry) => {
|
|
4395
|
+
if (entry === null) {
|
|
4396
|
+
return null;
|
|
4397
|
+
}
|
|
4398
|
+
return smithy_client_1.expectString(entry);
|
|
4399
|
+
});
|
|
4400
|
+
};
|
|
4401
|
+
const deserializeAws_restJson1TimestampMetricValuePair = (output, context) => {
|
|
4402
|
+
return {
|
|
4403
|
+
MetricValue: smithy_client_1.limitedParseDouble(output.MetricValue),
|
|
4404
|
+
Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
|
|
4405
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.Timestamp)))
|
|
4406
|
+
: undefined,
|
|
4407
|
+
};
|
|
4408
|
+
};
|
|
4409
|
+
const deserializeAws_restJson1TimestampMetricValuePairList = (output, context) => {
|
|
4410
|
+
return (output || [])
|
|
4411
|
+
.filter((e) => e != null)
|
|
4412
|
+
.map((entry) => {
|
|
4413
|
+
if (entry === null) {
|
|
4414
|
+
return null;
|
|
4415
|
+
}
|
|
4416
|
+
return deserializeAws_restJson1TimestampMetricValuePair(entry, context);
|
|
4417
|
+
});
|
|
4418
|
+
};
|
|
3292
4419
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3293
4420
|
return {
|
|
3294
4421
|
Message: smithy_client_1.expectString(output.Message),
|