@aws-sdk/client-cost-explorer 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +488 -2355
- package/dist-es/protocols/Aws_json1_1.js +490 -2357
- package/package.json +6 -6
|
@@ -7,370 +7,259 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const CostExplorerServiceException_1 = require("../models/CostExplorerServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CreateAnomalyMonitorCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "AWSInsightsIndexService.CreateAnomalyMonitor",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CreateAnomalyMonitor");
|
|
14
11
|
let body;
|
|
15
12
|
body = JSON.stringify(se_CreateAnomalyMonitorRequest(input, context));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CreateAnomalyMonitorCommand = se_CreateAnomalyMonitorCommand;
|
|
19
16
|
const se_CreateAnomalySubscriptionCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "AWSInsightsIndexService.CreateAnomalySubscription",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateAnomalySubscription");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CreateAnomalySubscriptionRequest(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateAnomalySubscriptionCommand = se_CreateAnomalySubscriptionCommand;
|
|
29
23
|
const se_CreateCostCategoryDefinitionCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "AWSInsightsIndexService.CreateCostCategoryDefinition",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateCostCategoryDefinition");
|
|
34
25
|
let body;
|
|
35
26
|
body = JSON.stringify(se_CreateCostCategoryDefinitionRequest(input, context));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateCostCategoryDefinitionCommand = se_CreateCostCategoryDefinitionCommand;
|
|
39
30
|
const se_DeleteAnomalyMonitorCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "AWSInsightsIndexService.DeleteAnomalyMonitor",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteAnomalyMonitor");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_DeleteAnomalyMonitorCommand = se_DeleteAnomalyMonitorCommand;
|
|
49
37
|
const se_DeleteAnomalySubscriptionCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "AWSInsightsIndexService.DeleteAnomalySubscription",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeleteAnomalySubscription");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeleteAnomalySubscriptionCommand = se_DeleteAnomalySubscriptionCommand;
|
|
59
44
|
const se_DeleteCostCategoryDefinitionCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSInsightsIndexService.DeleteCostCategoryDefinition",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeleteCostCategoryDefinition");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeleteCostCategoryDefinitionCommand = se_DeleteCostCategoryDefinitionCommand;
|
|
69
51
|
const se_DescribeCostCategoryDefinitionCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "AWSInsightsIndexService.DescribeCostCategoryDefinition",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeCostCategoryDefinition");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeCostCategoryDefinitionCommand = se_DescribeCostCategoryDefinitionCommand;
|
|
79
58
|
const se_GetAnomaliesCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "AWSInsightsIndexService.GetAnomalies",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("GetAnomalies");
|
|
84
60
|
let body;
|
|
85
61
|
body = JSON.stringify(se_GetAnomaliesRequest(input, context));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_GetAnomaliesCommand = se_GetAnomaliesCommand;
|
|
89
65
|
const se_GetAnomalyMonitorsCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "AWSInsightsIndexService.GetAnomalyMonitors",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("GetAnomalyMonitors");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_GetAnomalyMonitorsCommand = se_GetAnomalyMonitorsCommand;
|
|
99
72
|
const se_GetAnomalySubscriptionsCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "AWSInsightsIndexService.GetAnomalySubscriptions",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("GetAnomalySubscriptions");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_GetAnomalySubscriptionsCommand = se_GetAnomalySubscriptionsCommand;
|
|
109
79
|
const se_GetCostAndUsageCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "AWSInsightsIndexService.GetCostAndUsage",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("GetCostAndUsage");
|
|
114
81
|
let body;
|
|
115
82
|
body = JSON.stringify(se_GetCostAndUsageRequest(input, context));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_GetCostAndUsageCommand = se_GetCostAndUsageCommand;
|
|
119
86
|
const se_GetCostAndUsageWithResourcesCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "AWSInsightsIndexService.GetCostAndUsageWithResources",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("GetCostAndUsageWithResources");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_GetCostAndUsageWithResourcesRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_GetCostAndUsageWithResourcesCommand = se_GetCostAndUsageWithResourcesCommand;
|
|
129
93
|
const se_GetCostCategoriesCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "AWSInsightsIndexService.GetCostCategories",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("GetCostCategories");
|
|
134
95
|
let body;
|
|
135
96
|
body = JSON.stringify(se_GetCostCategoriesRequest(input, context));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_GetCostCategoriesCommand = se_GetCostCategoriesCommand;
|
|
139
100
|
const se_GetCostForecastCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "AWSInsightsIndexService.GetCostForecast",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("GetCostForecast");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(se_GetCostForecastRequest(input, context));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_GetCostForecastCommand = se_GetCostForecastCommand;
|
|
149
107
|
const se_GetDimensionValuesCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSInsightsIndexService.GetDimensionValues",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("GetDimensionValues");
|
|
154
109
|
let body;
|
|
155
110
|
body = JSON.stringify(se_GetDimensionValuesRequest(input, context));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_GetDimensionValuesCommand = se_GetDimensionValuesCommand;
|
|
159
114
|
const se_GetReservationCoverageCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "AWSInsightsIndexService.GetReservationCoverage",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("GetReservationCoverage");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_GetReservationCoverageRequest(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_GetReservationCoverageCommand = se_GetReservationCoverageCommand;
|
|
169
121
|
const se_GetReservationPurchaseRecommendationCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "AWSInsightsIndexService.GetReservationPurchaseRecommendation",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("GetReservationPurchaseRecommendation");
|
|
174
123
|
let body;
|
|
175
124
|
body = JSON.stringify(se_GetReservationPurchaseRecommendationRequest(input, context));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_GetReservationPurchaseRecommendationCommand = se_GetReservationPurchaseRecommendationCommand;
|
|
179
128
|
const se_GetReservationUtilizationCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "AWSInsightsIndexService.GetReservationUtilization",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("GetReservationUtilization");
|
|
184
130
|
let body;
|
|
185
131
|
body = JSON.stringify(se_GetReservationUtilizationRequest(input, context));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_GetReservationUtilizationCommand = se_GetReservationUtilizationCommand;
|
|
189
135
|
const se_GetRightsizingRecommendationCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "AWSInsightsIndexService.GetRightsizingRecommendation",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("GetRightsizingRecommendation");
|
|
194
137
|
let body;
|
|
195
138
|
body = JSON.stringify(se_GetRightsizingRecommendationRequest(input, context));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_GetRightsizingRecommendationCommand = se_GetRightsizingRecommendationCommand;
|
|
199
142
|
const se_GetSavingsPlansCoverageCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansCoverage",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("GetSavingsPlansCoverage");
|
|
204
144
|
let body;
|
|
205
145
|
body = JSON.stringify(se_GetSavingsPlansCoverageRequest(input, context));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_GetSavingsPlansCoverageCommand = se_GetSavingsPlansCoverageCommand;
|
|
209
149
|
const se_GetSavingsPlansPurchaseRecommendationCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansPurchaseRecommendation",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("GetSavingsPlansPurchaseRecommendation");
|
|
214
151
|
let body;
|
|
215
152
|
body = JSON.stringify(se_GetSavingsPlansPurchaseRecommendationRequest(input, context));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_GetSavingsPlansPurchaseRecommendationCommand = se_GetSavingsPlansPurchaseRecommendationCommand;
|
|
219
156
|
const se_GetSavingsPlansUtilizationCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansUtilization",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("GetSavingsPlansUtilization");
|
|
224
158
|
let body;
|
|
225
159
|
body = JSON.stringify(se_GetSavingsPlansUtilizationRequest(input, context));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_GetSavingsPlansUtilizationCommand = se_GetSavingsPlansUtilizationCommand;
|
|
229
163
|
const se_GetSavingsPlansUtilizationDetailsCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansUtilizationDetails",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("GetSavingsPlansUtilizationDetails");
|
|
234
165
|
let body;
|
|
235
166
|
body = JSON.stringify(se_GetSavingsPlansUtilizationDetailsRequest(input, context));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_GetSavingsPlansUtilizationDetailsCommand = se_GetSavingsPlansUtilizationDetailsCommand;
|
|
239
170
|
const se_GetTagsCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "AWSInsightsIndexService.GetTags",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("GetTags");
|
|
244
172
|
let body;
|
|
245
173
|
body = JSON.stringify(se_GetTagsRequest(input, context));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_GetTagsCommand = se_GetTagsCommand;
|
|
249
177
|
const se_GetUsageForecastCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "AWSInsightsIndexService.GetUsageForecast",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("GetUsageForecast");
|
|
254
179
|
let body;
|
|
255
180
|
body = JSON.stringify(se_GetUsageForecastRequest(input, context));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_GetUsageForecastCommand = se_GetUsageForecastCommand;
|
|
259
184
|
const se_ListCostAllocationTagsCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "AWSInsightsIndexService.ListCostAllocationTags",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("ListCostAllocationTags");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_ListCostAllocationTagsCommand = se_ListCostAllocationTagsCommand;
|
|
269
191
|
const se_ListCostCategoryDefinitionsCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "AWSInsightsIndexService.ListCostCategoryDefinitions",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("ListCostCategoryDefinitions");
|
|
274
193
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_ListCostCategoryDefinitionsCommand = se_ListCostCategoryDefinitionsCommand;
|
|
279
198
|
const se_ListSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "AWSInsightsIndexService.ListSavingsPlansPurchaseRecommendationGeneration",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("ListSavingsPlansPurchaseRecommendationGeneration");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_ListSavingsPlansPurchaseRecommendationGenerationCommand = se_ListSavingsPlansPurchaseRecommendationGenerationCommand;
|
|
289
205
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "AWSInsightsIndexService.ListTagsForResource",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
294
207
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
299
212
|
const se_ProvideAnomalyFeedbackCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.1",
|
|
302
|
-
"x-amz-target": "AWSInsightsIndexService.ProvideAnomalyFeedback",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("ProvideAnomalyFeedback");
|
|
304
214
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_ProvideAnomalyFeedbackCommand = se_ProvideAnomalyFeedbackCommand;
|
|
309
219
|
const se_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.1",
|
|
312
|
-
"x-amz-target": "AWSInsightsIndexService.StartSavingsPlansPurchaseRecommendationGeneration",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("StartSavingsPlansPurchaseRecommendationGeneration");
|
|
314
221
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_StartSavingsPlansPurchaseRecommendationGenerationCommand = se_StartSavingsPlansPurchaseRecommendationGenerationCommand;
|
|
319
226
|
const se_TagResourceCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "AWSInsightsIndexService.TagResource",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("TagResource");
|
|
324
228
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
329
233
|
const se_UntagResourceCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "AWSInsightsIndexService.UntagResource",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("UntagResource");
|
|
334
235
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
339
240
|
const se_UpdateAnomalyMonitorCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "AWSInsightsIndexService.UpdateAnomalyMonitor",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("UpdateAnomalyMonitor");
|
|
344
242
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_UpdateAnomalyMonitorCommand = se_UpdateAnomalyMonitorCommand;
|
|
349
247
|
const se_UpdateAnomalySubscriptionCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "AWSInsightsIndexService.UpdateAnomalySubscription",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("UpdateAnomalySubscription");
|
|
354
249
|
let body;
|
|
355
250
|
body = JSON.stringify(se_UpdateAnomalySubscriptionRequest(input, context));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_UpdateAnomalySubscriptionCommand = se_UpdateAnomalySubscriptionCommand;
|
|
359
254
|
const se_UpdateCostAllocationTagsStatusCommand = async (input, context) => {
|
|
360
|
-
const headers =
|
|
361
|
-
"content-type": "application/x-amz-json-1.1",
|
|
362
|
-
"x-amz-target": "AWSInsightsIndexService.UpdateCostAllocationTagsStatus",
|
|
363
|
-
};
|
|
255
|
+
const headers = sharedHeaders("UpdateCostAllocationTagsStatus");
|
|
364
256
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
259
|
};
|
|
368
260
|
exports.se_UpdateCostAllocationTagsStatusCommand = se_UpdateCostAllocationTagsStatusCommand;
|
|
369
261
|
const se_UpdateCostCategoryDefinitionCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "AWSInsightsIndexService.UpdateCostCategoryDefinition",
|
|
373
|
-
};
|
|
262
|
+
const headers = sharedHeaders("UpdateCostCategoryDefinition");
|
|
374
263
|
let body;
|
|
375
264
|
body = JSON.stringify(se_UpdateCostCategoryDefinitionRequest(input, context));
|
|
376
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -382,12 +271,12 @@ const de_CreateAnomalyMonitorCommand = async (output, context) => {
|
|
|
382
271
|
}
|
|
383
272
|
const data = await parseBody(output.body, context);
|
|
384
273
|
let contents = {};
|
|
385
|
-
contents =
|
|
274
|
+
contents = (0, smithy_client_1._json)(data);
|
|
386
275
|
const response = {
|
|
387
276
|
$metadata: deserializeMetadata(output),
|
|
388
277
|
...contents,
|
|
389
278
|
};
|
|
390
|
-
return
|
|
279
|
+
return response;
|
|
391
280
|
};
|
|
392
281
|
exports.de_CreateAnomalyMonitorCommand = de_CreateAnomalyMonitorCommand;
|
|
393
282
|
const de_CreateAnomalyMonitorCommandError = async (output, context) => {
|
|
@@ -402,10 +291,9 @@ const de_CreateAnomalyMonitorCommandError = async (output, context) => {
|
|
|
402
291
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
403
292
|
default:
|
|
404
293
|
const parsedBody = parsedOutput.body;
|
|
405
|
-
|
|
294
|
+
return throwDefaultError({
|
|
406
295
|
output,
|
|
407
296
|
parsedBody,
|
|
408
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
409
297
|
errorCode,
|
|
410
298
|
});
|
|
411
299
|
}
|
|
@@ -416,12 +304,12 @@ const de_CreateAnomalySubscriptionCommand = async (output, context) => {
|
|
|
416
304
|
}
|
|
417
305
|
const data = await parseBody(output.body, context);
|
|
418
306
|
let contents = {};
|
|
419
|
-
contents =
|
|
307
|
+
contents = (0, smithy_client_1._json)(data);
|
|
420
308
|
const response = {
|
|
421
309
|
$metadata: deserializeMetadata(output),
|
|
422
310
|
...contents,
|
|
423
311
|
};
|
|
424
|
-
return
|
|
312
|
+
return response;
|
|
425
313
|
};
|
|
426
314
|
exports.de_CreateAnomalySubscriptionCommand = de_CreateAnomalySubscriptionCommand;
|
|
427
315
|
const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
|
|
@@ -439,10 +327,9 @@ const de_CreateAnomalySubscriptionCommandError = async (output, context) => {
|
|
|
439
327
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
440
328
|
default:
|
|
441
329
|
const parsedBody = parsedOutput.body;
|
|
442
|
-
|
|
330
|
+
return throwDefaultError({
|
|
443
331
|
output,
|
|
444
332
|
parsedBody,
|
|
445
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
446
333
|
errorCode,
|
|
447
334
|
});
|
|
448
335
|
}
|
|
@@ -453,12 +340,12 @@ const de_CreateCostCategoryDefinitionCommand = async (output, context) => {
|
|
|
453
340
|
}
|
|
454
341
|
const data = await parseBody(output.body, context);
|
|
455
342
|
let contents = {};
|
|
456
|
-
contents =
|
|
343
|
+
contents = (0, smithy_client_1._json)(data);
|
|
457
344
|
const response = {
|
|
458
345
|
$metadata: deserializeMetadata(output),
|
|
459
346
|
...contents,
|
|
460
347
|
};
|
|
461
|
-
return
|
|
348
|
+
return response;
|
|
462
349
|
};
|
|
463
350
|
exports.de_CreateCostCategoryDefinitionCommand = de_CreateCostCategoryDefinitionCommand;
|
|
464
351
|
const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
@@ -476,10 +363,9 @@ const de_CreateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
476
363
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
477
364
|
default:
|
|
478
365
|
const parsedBody = parsedOutput.body;
|
|
479
|
-
|
|
366
|
+
return throwDefaultError({
|
|
480
367
|
output,
|
|
481
368
|
parsedBody,
|
|
482
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
483
369
|
errorCode,
|
|
484
370
|
});
|
|
485
371
|
}
|
|
@@ -490,12 +376,12 @@ const de_DeleteAnomalyMonitorCommand = async (output, context) => {
|
|
|
490
376
|
}
|
|
491
377
|
const data = await parseBody(output.body, context);
|
|
492
378
|
let contents = {};
|
|
493
|
-
contents =
|
|
379
|
+
contents = (0, smithy_client_1._json)(data);
|
|
494
380
|
const response = {
|
|
495
381
|
$metadata: deserializeMetadata(output),
|
|
496
382
|
...contents,
|
|
497
383
|
};
|
|
498
|
-
return
|
|
384
|
+
return response;
|
|
499
385
|
};
|
|
500
386
|
exports.de_DeleteAnomalyMonitorCommand = de_DeleteAnomalyMonitorCommand;
|
|
501
387
|
const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
|
|
@@ -513,10 +399,9 @@ const de_DeleteAnomalyMonitorCommandError = async (output, context) => {
|
|
|
513
399
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
514
400
|
default:
|
|
515
401
|
const parsedBody = parsedOutput.body;
|
|
516
|
-
|
|
402
|
+
return throwDefaultError({
|
|
517
403
|
output,
|
|
518
404
|
parsedBody,
|
|
519
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
520
405
|
errorCode,
|
|
521
406
|
});
|
|
522
407
|
}
|
|
@@ -527,12 +412,12 @@ const de_DeleteAnomalySubscriptionCommand = async (output, context) => {
|
|
|
527
412
|
}
|
|
528
413
|
const data = await parseBody(output.body, context);
|
|
529
414
|
let contents = {};
|
|
530
|
-
contents =
|
|
415
|
+
contents = (0, smithy_client_1._json)(data);
|
|
531
416
|
const response = {
|
|
532
417
|
$metadata: deserializeMetadata(output),
|
|
533
418
|
...contents,
|
|
534
419
|
};
|
|
535
|
-
return
|
|
420
|
+
return response;
|
|
536
421
|
};
|
|
537
422
|
exports.de_DeleteAnomalySubscriptionCommand = de_DeleteAnomalySubscriptionCommand;
|
|
538
423
|
const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
|
|
@@ -550,10 +435,9 @@ const de_DeleteAnomalySubscriptionCommandError = async (output, context) => {
|
|
|
550
435
|
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
551
436
|
default:
|
|
552
437
|
const parsedBody = parsedOutput.body;
|
|
553
|
-
|
|
438
|
+
return throwDefaultError({
|
|
554
439
|
output,
|
|
555
440
|
parsedBody,
|
|
556
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
557
441
|
errorCode,
|
|
558
442
|
});
|
|
559
443
|
}
|
|
@@ -564,12 +448,12 @@ const de_DeleteCostCategoryDefinitionCommand = async (output, context) => {
|
|
|
564
448
|
}
|
|
565
449
|
const data = await parseBody(output.body, context);
|
|
566
450
|
let contents = {};
|
|
567
|
-
contents =
|
|
451
|
+
contents = (0, smithy_client_1._json)(data);
|
|
568
452
|
const response = {
|
|
569
453
|
$metadata: deserializeMetadata(output),
|
|
570
454
|
...contents,
|
|
571
455
|
};
|
|
572
|
-
return
|
|
456
|
+
return response;
|
|
573
457
|
};
|
|
574
458
|
exports.de_DeleteCostCategoryDefinitionCommand = de_DeleteCostCategoryDefinitionCommand;
|
|
575
459
|
const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
|
|
@@ -587,10 +471,9 @@ const de_DeleteCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
587
471
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
588
472
|
default:
|
|
589
473
|
const parsedBody = parsedOutput.body;
|
|
590
|
-
|
|
474
|
+
return throwDefaultError({
|
|
591
475
|
output,
|
|
592
476
|
parsedBody,
|
|
593
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
594
477
|
errorCode,
|
|
595
478
|
});
|
|
596
479
|
}
|
|
@@ -606,7 +489,7 @@ const de_DescribeCostCategoryDefinitionCommand = async (output, context) => {
|
|
|
606
489
|
$metadata: deserializeMetadata(output),
|
|
607
490
|
...contents,
|
|
608
491
|
};
|
|
609
|
-
return
|
|
492
|
+
return response;
|
|
610
493
|
};
|
|
611
494
|
exports.de_DescribeCostCategoryDefinitionCommand = de_DescribeCostCategoryDefinitionCommand;
|
|
612
495
|
const de_DescribeCostCategoryDefinitionCommandError = async (output, context) => {
|
|
@@ -624,10 +507,9 @@ const de_DescribeCostCategoryDefinitionCommandError = async (output, context) =>
|
|
|
624
507
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
625
508
|
default:
|
|
626
509
|
const parsedBody = parsedOutput.body;
|
|
627
|
-
|
|
510
|
+
return throwDefaultError({
|
|
628
511
|
output,
|
|
629
512
|
parsedBody,
|
|
630
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
631
513
|
errorCode,
|
|
632
514
|
});
|
|
633
515
|
}
|
|
@@ -643,7 +525,7 @@ const de_GetAnomaliesCommand = async (output, context) => {
|
|
|
643
525
|
$metadata: deserializeMetadata(output),
|
|
644
526
|
...contents,
|
|
645
527
|
};
|
|
646
|
-
return
|
|
528
|
+
return response;
|
|
647
529
|
};
|
|
648
530
|
exports.de_GetAnomaliesCommand = de_GetAnomaliesCommand;
|
|
649
531
|
const de_GetAnomaliesCommandError = async (output, context) => {
|
|
@@ -661,10 +543,9 @@ const de_GetAnomaliesCommandError = async (output, context) => {
|
|
|
661
543
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
662
544
|
default:
|
|
663
545
|
const parsedBody = parsedOutput.body;
|
|
664
|
-
|
|
546
|
+
return throwDefaultError({
|
|
665
547
|
output,
|
|
666
548
|
parsedBody,
|
|
667
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
668
549
|
errorCode,
|
|
669
550
|
});
|
|
670
551
|
}
|
|
@@ -680,7 +561,7 @@ const de_GetAnomalyMonitorsCommand = async (output, context) => {
|
|
|
680
561
|
$metadata: deserializeMetadata(output),
|
|
681
562
|
...contents,
|
|
682
563
|
};
|
|
683
|
-
return
|
|
564
|
+
return response;
|
|
684
565
|
};
|
|
685
566
|
exports.de_GetAnomalyMonitorsCommand = de_GetAnomalyMonitorsCommand;
|
|
686
567
|
const de_GetAnomalyMonitorsCommandError = async (output, context) => {
|
|
@@ -701,10 +582,9 @@ const de_GetAnomalyMonitorsCommandError = async (output, context) => {
|
|
|
701
582
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
702
583
|
default:
|
|
703
584
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
585
|
+
return throwDefaultError({
|
|
705
586
|
output,
|
|
706
587
|
parsedBody,
|
|
707
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
708
588
|
errorCode,
|
|
709
589
|
});
|
|
710
590
|
}
|
|
@@ -720,7 +600,7 @@ const de_GetAnomalySubscriptionsCommand = async (output, context) => {
|
|
|
720
600
|
$metadata: deserializeMetadata(output),
|
|
721
601
|
...contents,
|
|
722
602
|
};
|
|
723
|
-
return
|
|
603
|
+
return response;
|
|
724
604
|
};
|
|
725
605
|
exports.de_GetAnomalySubscriptionsCommand = de_GetAnomalySubscriptionsCommand;
|
|
726
606
|
const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
|
|
@@ -741,10 +621,9 @@ const de_GetAnomalySubscriptionsCommandError = async (output, context) => {
|
|
|
741
621
|
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
742
622
|
default:
|
|
743
623
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
|
|
624
|
+
return throwDefaultError({
|
|
745
625
|
output,
|
|
746
626
|
parsedBody,
|
|
747
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
748
627
|
errorCode,
|
|
749
628
|
});
|
|
750
629
|
}
|
|
@@ -755,12 +634,12 @@ const de_GetCostAndUsageCommand = async (output, context) => {
|
|
|
755
634
|
}
|
|
756
635
|
const data = await parseBody(output.body, context);
|
|
757
636
|
let contents = {};
|
|
758
|
-
contents =
|
|
637
|
+
contents = (0, smithy_client_1._json)(data);
|
|
759
638
|
const response = {
|
|
760
639
|
$metadata: deserializeMetadata(output),
|
|
761
640
|
...contents,
|
|
762
641
|
};
|
|
763
|
-
return
|
|
642
|
+
return response;
|
|
764
643
|
};
|
|
765
644
|
exports.de_GetCostAndUsageCommand = de_GetCostAndUsageCommand;
|
|
766
645
|
const de_GetCostAndUsageCommandError = async (output, context) => {
|
|
@@ -787,10 +666,9 @@ const de_GetCostAndUsageCommandError = async (output, context) => {
|
|
|
787
666
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
788
667
|
default:
|
|
789
668
|
const parsedBody = parsedOutput.body;
|
|
790
|
-
|
|
669
|
+
return throwDefaultError({
|
|
791
670
|
output,
|
|
792
671
|
parsedBody,
|
|
793
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
794
672
|
errorCode,
|
|
795
673
|
});
|
|
796
674
|
}
|
|
@@ -801,12 +679,12 @@ const de_GetCostAndUsageWithResourcesCommand = async (output, context) => {
|
|
|
801
679
|
}
|
|
802
680
|
const data = await parseBody(output.body, context);
|
|
803
681
|
let contents = {};
|
|
804
|
-
contents =
|
|
682
|
+
contents = (0, smithy_client_1._json)(data);
|
|
805
683
|
const response = {
|
|
806
684
|
$metadata: deserializeMetadata(output),
|
|
807
685
|
...contents,
|
|
808
686
|
};
|
|
809
|
-
return
|
|
687
|
+
return response;
|
|
810
688
|
};
|
|
811
689
|
exports.de_GetCostAndUsageWithResourcesCommand = de_GetCostAndUsageWithResourcesCommand;
|
|
812
690
|
const de_GetCostAndUsageWithResourcesCommandError = async (output, context) => {
|
|
@@ -833,10 +711,9 @@ const de_GetCostAndUsageWithResourcesCommandError = async (output, context) => {
|
|
|
833
711
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
834
712
|
default:
|
|
835
713
|
const parsedBody = parsedOutput.body;
|
|
836
|
-
|
|
714
|
+
return throwDefaultError({
|
|
837
715
|
output,
|
|
838
716
|
parsedBody,
|
|
839
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
840
717
|
errorCode,
|
|
841
718
|
});
|
|
842
719
|
}
|
|
@@ -847,12 +724,12 @@ const de_GetCostCategoriesCommand = async (output, context) => {
|
|
|
847
724
|
}
|
|
848
725
|
const data = await parseBody(output.body, context);
|
|
849
726
|
let contents = {};
|
|
850
|
-
contents =
|
|
727
|
+
contents = (0, smithy_client_1._json)(data);
|
|
851
728
|
const response = {
|
|
852
729
|
$metadata: deserializeMetadata(output),
|
|
853
730
|
...contents,
|
|
854
731
|
};
|
|
855
|
-
return
|
|
732
|
+
return response;
|
|
856
733
|
};
|
|
857
734
|
exports.de_GetCostCategoriesCommand = de_GetCostCategoriesCommand;
|
|
858
735
|
const de_GetCostCategoriesCommandError = async (output, context) => {
|
|
@@ -879,10 +756,9 @@ const de_GetCostCategoriesCommandError = async (output, context) => {
|
|
|
879
756
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
880
757
|
default:
|
|
881
758
|
const parsedBody = parsedOutput.body;
|
|
882
|
-
|
|
759
|
+
return throwDefaultError({
|
|
883
760
|
output,
|
|
884
761
|
parsedBody,
|
|
885
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
886
762
|
errorCode,
|
|
887
763
|
});
|
|
888
764
|
}
|
|
@@ -893,12 +769,12 @@ const de_GetCostForecastCommand = async (output, context) => {
|
|
|
893
769
|
}
|
|
894
770
|
const data = await parseBody(output.body, context);
|
|
895
771
|
let contents = {};
|
|
896
|
-
contents =
|
|
772
|
+
contents = (0, smithy_client_1._json)(data);
|
|
897
773
|
const response = {
|
|
898
774
|
$metadata: deserializeMetadata(output),
|
|
899
775
|
...contents,
|
|
900
776
|
};
|
|
901
|
-
return
|
|
777
|
+
return response;
|
|
902
778
|
};
|
|
903
779
|
exports.de_GetCostForecastCommand = de_GetCostForecastCommand;
|
|
904
780
|
const de_GetCostForecastCommandError = async (output, context) => {
|
|
@@ -916,10 +792,9 @@ const de_GetCostForecastCommandError = async (output, context) => {
|
|
|
916
792
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
917
793
|
default:
|
|
918
794
|
const parsedBody = parsedOutput.body;
|
|
919
|
-
|
|
795
|
+
return throwDefaultError({
|
|
920
796
|
output,
|
|
921
797
|
parsedBody,
|
|
922
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
923
798
|
errorCode,
|
|
924
799
|
});
|
|
925
800
|
}
|
|
@@ -930,12 +805,12 @@ const de_GetDimensionValuesCommand = async (output, context) => {
|
|
|
930
805
|
}
|
|
931
806
|
const data = await parseBody(output.body, context);
|
|
932
807
|
let contents = {};
|
|
933
|
-
contents =
|
|
808
|
+
contents = (0, smithy_client_1._json)(data);
|
|
934
809
|
const response = {
|
|
935
810
|
$metadata: deserializeMetadata(output),
|
|
936
811
|
...contents,
|
|
937
812
|
};
|
|
938
|
-
return
|
|
813
|
+
return response;
|
|
939
814
|
};
|
|
940
815
|
exports.de_GetDimensionValuesCommand = de_GetDimensionValuesCommand;
|
|
941
816
|
const de_GetDimensionValuesCommandError = async (output, context) => {
|
|
@@ -962,10 +837,9 @@ const de_GetDimensionValuesCommandError = async (output, context) => {
|
|
|
962
837
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
963
838
|
default:
|
|
964
839
|
const parsedBody = parsedOutput.body;
|
|
965
|
-
|
|
840
|
+
return throwDefaultError({
|
|
966
841
|
output,
|
|
967
842
|
parsedBody,
|
|
968
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
969
843
|
errorCode,
|
|
970
844
|
});
|
|
971
845
|
}
|
|
@@ -976,12 +850,12 @@ const de_GetReservationCoverageCommand = async (output, context) => {
|
|
|
976
850
|
}
|
|
977
851
|
const data = await parseBody(output.body, context);
|
|
978
852
|
let contents = {};
|
|
979
|
-
contents =
|
|
853
|
+
contents = (0, smithy_client_1._json)(data);
|
|
980
854
|
const response = {
|
|
981
855
|
$metadata: deserializeMetadata(output),
|
|
982
856
|
...contents,
|
|
983
857
|
};
|
|
984
|
-
return
|
|
858
|
+
return response;
|
|
985
859
|
};
|
|
986
860
|
exports.de_GetReservationCoverageCommand = de_GetReservationCoverageCommand;
|
|
987
861
|
const de_GetReservationCoverageCommandError = async (output, context) => {
|
|
@@ -1002,10 +876,9 @@ const de_GetReservationCoverageCommandError = async (output, context) => {
|
|
|
1002
876
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1003
877
|
default:
|
|
1004
878
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
|
|
879
|
+
return throwDefaultError({
|
|
1006
880
|
output,
|
|
1007
881
|
parsedBody,
|
|
1008
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1009
882
|
errorCode,
|
|
1010
883
|
});
|
|
1011
884
|
}
|
|
@@ -1016,12 +889,12 @@ const de_GetReservationPurchaseRecommendationCommand = async (output, context) =
|
|
|
1016
889
|
}
|
|
1017
890
|
const data = await parseBody(output.body, context);
|
|
1018
891
|
let contents = {};
|
|
1019
|
-
contents =
|
|
892
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1020
893
|
const response = {
|
|
1021
894
|
$metadata: deserializeMetadata(output),
|
|
1022
895
|
...contents,
|
|
1023
896
|
};
|
|
1024
|
-
return
|
|
897
|
+
return response;
|
|
1025
898
|
};
|
|
1026
899
|
exports.de_GetReservationPurchaseRecommendationCommand = de_GetReservationPurchaseRecommendationCommand;
|
|
1027
900
|
const de_GetReservationPurchaseRecommendationCommandError = async (output, context) => {
|
|
@@ -1042,10 +915,9 @@ const de_GetReservationPurchaseRecommendationCommandError = async (output, conte
|
|
|
1042
915
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1043
916
|
default:
|
|
1044
917
|
const parsedBody = parsedOutput.body;
|
|
1045
|
-
|
|
918
|
+
return throwDefaultError({
|
|
1046
919
|
output,
|
|
1047
920
|
parsedBody,
|
|
1048
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1049
921
|
errorCode,
|
|
1050
922
|
});
|
|
1051
923
|
}
|
|
@@ -1056,12 +928,12 @@ const de_GetReservationUtilizationCommand = async (output, context) => {
|
|
|
1056
928
|
}
|
|
1057
929
|
const data = await parseBody(output.body, context);
|
|
1058
930
|
let contents = {};
|
|
1059
|
-
contents =
|
|
931
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1060
932
|
const response = {
|
|
1061
933
|
$metadata: deserializeMetadata(output),
|
|
1062
934
|
...contents,
|
|
1063
935
|
};
|
|
1064
|
-
return
|
|
936
|
+
return response;
|
|
1065
937
|
};
|
|
1066
938
|
exports.de_GetReservationUtilizationCommand = de_GetReservationUtilizationCommand;
|
|
1067
939
|
const de_GetReservationUtilizationCommandError = async (output, context) => {
|
|
@@ -1082,10 +954,9 @@ const de_GetReservationUtilizationCommandError = async (output, context) => {
|
|
|
1082
954
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1083
955
|
default:
|
|
1084
956
|
const parsedBody = parsedOutput.body;
|
|
1085
|
-
|
|
957
|
+
return throwDefaultError({
|
|
1086
958
|
output,
|
|
1087
959
|
parsedBody,
|
|
1088
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1089
960
|
errorCode,
|
|
1090
961
|
});
|
|
1091
962
|
}
|
|
@@ -1096,12 +967,12 @@ const de_GetRightsizingRecommendationCommand = async (output, context) => {
|
|
|
1096
967
|
}
|
|
1097
968
|
const data = await parseBody(output.body, context);
|
|
1098
969
|
let contents = {};
|
|
1099
|
-
contents =
|
|
970
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1100
971
|
const response = {
|
|
1101
972
|
$metadata: deserializeMetadata(output),
|
|
1102
973
|
...contents,
|
|
1103
974
|
};
|
|
1104
|
-
return
|
|
975
|
+
return response;
|
|
1105
976
|
};
|
|
1106
977
|
exports.de_GetRightsizingRecommendationCommand = de_GetRightsizingRecommendationCommand;
|
|
1107
978
|
const de_GetRightsizingRecommendationCommandError = async (output, context) => {
|
|
@@ -1119,10 +990,9 @@ const de_GetRightsizingRecommendationCommandError = async (output, context) => {
|
|
|
1119
990
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1120
991
|
default:
|
|
1121
992
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
993
|
+
return throwDefaultError({
|
|
1123
994
|
output,
|
|
1124
995
|
parsedBody,
|
|
1125
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1126
996
|
errorCode,
|
|
1127
997
|
});
|
|
1128
998
|
}
|
|
@@ -1133,12 +1003,12 @@ const de_GetSavingsPlansCoverageCommand = async (output, context) => {
|
|
|
1133
1003
|
}
|
|
1134
1004
|
const data = await parseBody(output.body, context);
|
|
1135
1005
|
let contents = {};
|
|
1136
|
-
contents =
|
|
1006
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1137
1007
|
const response = {
|
|
1138
1008
|
$metadata: deserializeMetadata(output),
|
|
1139
1009
|
...contents,
|
|
1140
1010
|
};
|
|
1141
|
-
return
|
|
1011
|
+
return response;
|
|
1142
1012
|
};
|
|
1143
1013
|
exports.de_GetSavingsPlansCoverageCommand = de_GetSavingsPlansCoverageCommand;
|
|
1144
1014
|
const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
|
|
@@ -1159,10 +1029,9 @@ const de_GetSavingsPlansCoverageCommandError = async (output, context) => {
|
|
|
1159
1029
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1160
1030
|
default:
|
|
1161
1031
|
const parsedBody = parsedOutput.body;
|
|
1162
|
-
|
|
1032
|
+
return throwDefaultError({
|
|
1163
1033
|
output,
|
|
1164
1034
|
parsedBody,
|
|
1165
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1166
1035
|
errorCode,
|
|
1167
1036
|
});
|
|
1168
1037
|
}
|
|
@@ -1173,12 +1042,12 @@ const de_GetSavingsPlansPurchaseRecommendationCommand = async (output, context)
|
|
|
1173
1042
|
}
|
|
1174
1043
|
const data = await parseBody(output.body, context);
|
|
1175
1044
|
let contents = {};
|
|
1176
|
-
contents =
|
|
1045
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1177
1046
|
const response = {
|
|
1178
1047
|
$metadata: deserializeMetadata(output),
|
|
1179
1048
|
...contents,
|
|
1180
1049
|
};
|
|
1181
|
-
return
|
|
1050
|
+
return response;
|
|
1182
1051
|
};
|
|
1183
1052
|
exports.de_GetSavingsPlansPurchaseRecommendationCommand = de_GetSavingsPlansPurchaseRecommendationCommand;
|
|
1184
1053
|
const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, context) => {
|
|
@@ -1196,10 +1065,9 @@ const de_GetSavingsPlansPurchaseRecommendationCommandError = async (output, cont
|
|
|
1196
1065
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1197
1066
|
default:
|
|
1198
1067
|
const parsedBody = parsedOutput.body;
|
|
1199
|
-
|
|
1068
|
+
return throwDefaultError({
|
|
1200
1069
|
output,
|
|
1201
1070
|
parsedBody,
|
|
1202
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1203
1071
|
errorCode,
|
|
1204
1072
|
});
|
|
1205
1073
|
}
|
|
@@ -1210,12 +1078,12 @@ const de_GetSavingsPlansUtilizationCommand = async (output, context) => {
|
|
|
1210
1078
|
}
|
|
1211
1079
|
const data = await parseBody(output.body, context);
|
|
1212
1080
|
let contents = {};
|
|
1213
|
-
contents =
|
|
1081
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1214
1082
|
const response = {
|
|
1215
1083
|
$metadata: deserializeMetadata(output),
|
|
1216
1084
|
...contents,
|
|
1217
1085
|
};
|
|
1218
|
-
return
|
|
1086
|
+
return response;
|
|
1219
1087
|
};
|
|
1220
1088
|
exports.de_GetSavingsPlansUtilizationCommand = de_GetSavingsPlansUtilizationCommand;
|
|
1221
1089
|
const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
|
|
@@ -1233,10 +1101,9 @@ const de_GetSavingsPlansUtilizationCommandError = async (output, context) => {
|
|
|
1233
1101
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1234
1102
|
default:
|
|
1235
1103
|
const parsedBody = parsedOutput.body;
|
|
1236
|
-
|
|
1104
|
+
return throwDefaultError({
|
|
1237
1105
|
output,
|
|
1238
1106
|
parsedBody,
|
|
1239
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1240
1107
|
errorCode,
|
|
1241
1108
|
});
|
|
1242
1109
|
}
|
|
@@ -1247,12 +1114,12 @@ const de_GetSavingsPlansUtilizationDetailsCommand = async (output, context) => {
|
|
|
1247
1114
|
}
|
|
1248
1115
|
const data = await parseBody(output.body, context);
|
|
1249
1116
|
let contents = {};
|
|
1250
|
-
contents =
|
|
1117
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1251
1118
|
const response = {
|
|
1252
1119
|
$metadata: deserializeMetadata(output),
|
|
1253
1120
|
...contents,
|
|
1254
1121
|
};
|
|
1255
|
-
return
|
|
1122
|
+
return response;
|
|
1256
1123
|
};
|
|
1257
1124
|
exports.de_GetSavingsPlansUtilizationDetailsCommand = de_GetSavingsPlansUtilizationDetailsCommand;
|
|
1258
1125
|
const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context) => {
|
|
@@ -1273,10 +1140,9 @@ const de_GetSavingsPlansUtilizationDetailsCommandError = async (output, context)
|
|
|
1273
1140
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1274
1141
|
default:
|
|
1275
1142
|
const parsedBody = parsedOutput.body;
|
|
1276
|
-
|
|
1143
|
+
return throwDefaultError({
|
|
1277
1144
|
output,
|
|
1278
1145
|
parsedBody,
|
|
1279
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1280
1146
|
errorCode,
|
|
1281
1147
|
});
|
|
1282
1148
|
}
|
|
@@ -1287,12 +1153,12 @@ const de_GetTagsCommand = async (output, context) => {
|
|
|
1287
1153
|
}
|
|
1288
1154
|
const data = await parseBody(output.body, context);
|
|
1289
1155
|
let contents = {};
|
|
1290
|
-
contents =
|
|
1156
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1291
1157
|
const response = {
|
|
1292
1158
|
$metadata: deserializeMetadata(output),
|
|
1293
1159
|
...contents,
|
|
1294
1160
|
};
|
|
1295
|
-
return
|
|
1161
|
+
return response;
|
|
1296
1162
|
};
|
|
1297
1163
|
exports.de_GetTagsCommand = de_GetTagsCommand;
|
|
1298
1164
|
const de_GetTagsCommandError = async (output, context) => {
|
|
@@ -1319,10 +1185,9 @@ const de_GetTagsCommandError = async (output, context) => {
|
|
|
1319
1185
|
throw await de_RequestChangedExceptionRes(parsedOutput, context);
|
|
1320
1186
|
default:
|
|
1321
1187
|
const parsedBody = parsedOutput.body;
|
|
1322
|
-
|
|
1188
|
+
return throwDefaultError({
|
|
1323
1189
|
output,
|
|
1324
1190
|
parsedBody,
|
|
1325
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1326
1191
|
errorCode,
|
|
1327
1192
|
});
|
|
1328
1193
|
}
|
|
@@ -1333,12 +1198,12 @@ const de_GetUsageForecastCommand = async (output, context) => {
|
|
|
1333
1198
|
}
|
|
1334
1199
|
const data = await parseBody(output.body, context);
|
|
1335
1200
|
let contents = {};
|
|
1336
|
-
contents =
|
|
1201
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1337
1202
|
const response = {
|
|
1338
1203
|
$metadata: deserializeMetadata(output),
|
|
1339
1204
|
...contents,
|
|
1340
1205
|
};
|
|
1341
|
-
return
|
|
1206
|
+
return response;
|
|
1342
1207
|
};
|
|
1343
1208
|
exports.de_GetUsageForecastCommand = de_GetUsageForecastCommand;
|
|
1344
1209
|
const de_GetUsageForecastCommandError = async (output, context) => {
|
|
@@ -1359,10 +1224,9 @@ const de_GetUsageForecastCommandError = async (output, context) => {
|
|
|
1359
1224
|
throw await de_UnresolvableUsageUnitExceptionRes(parsedOutput, context);
|
|
1360
1225
|
default:
|
|
1361
1226
|
const parsedBody = parsedOutput.body;
|
|
1362
|
-
|
|
1227
|
+
return throwDefaultError({
|
|
1363
1228
|
output,
|
|
1364
1229
|
parsedBody,
|
|
1365
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1366
1230
|
errorCode,
|
|
1367
1231
|
});
|
|
1368
1232
|
}
|
|
@@ -1373,12 +1237,12 @@ const de_ListCostAllocationTagsCommand = async (output, context) => {
|
|
|
1373
1237
|
}
|
|
1374
1238
|
const data = await parseBody(output.body, context);
|
|
1375
1239
|
let contents = {};
|
|
1376
|
-
contents =
|
|
1240
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1377
1241
|
const response = {
|
|
1378
1242
|
$metadata: deserializeMetadata(output),
|
|
1379
1243
|
...contents,
|
|
1380
1244
|
};
|
|
1381
|
-
return
|
|
1245
|
+
return response;
|
|
1382
1246
|
};
|
|
1383
1247
|
exports.de_ListCostAllocationTagsCommand = de_ListCostAllocationTagsCommand;
|
|
1384
1248
|
const de_ListCostAllocationTagsCommandError = async (output, context) => {
|
|
@@ -1396,10 +1260,9 @@ const de_ListCostAllocationTagsCommandError = async (output, context) => {
|
|
|
1396
1260
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1397
1261
|
default:
|
|
1398
1262
|
const parsedBody = parsedOutput.body;
|
|
1399
|
-
|
|
1263
|
+
return throwDefaultError({
|
|
1400
1264
|
output,
|
|
1401
1265
|
parsedBody,
|
|
1402
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1403
1266
|
errorCode,
|
|
1404
1267
|
});
|
|
1405
1268
|
}
|
|
@@ -1410,12 +1273,12 @@ const de_ListCostCategoryDefinitionsCommand = async (output, context) => {
|
|
|
1410
1273
|
}
|
|
1411
1274
|
const data = await parseBody(output.body, context);
|
|
1412
1275
|
let contents = {};
|
|
1413
|
-
contents =
|
|
1276
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1414
1277
|
const response = {
|
|
1415
1278
|
$metadata: deserializeMetadata(output),
|
|
1416
1279
|
...contents,
|
|
1417
1280
|
};
|
|
1418
|
-
return
|
|
1281
|
+
return response;
|
|
1419
1282
|
};
|
|
1420
1283
|
exports.de_ListCostCategoryDefinitionsCommand = de_ListCostCategoryDefinitionsCommand;
|
|
1421
1284
|
const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
|
|
@@ -1430,10 +1293,9 @@ const de_ListCostCategoryDefinitionsCommandError = async (output, context) => {
|
|
|
1430
1293
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1431
1294
|
default:
|
|
1432
1295
|
const parsedBody = parsedOutput.body;
|
|
1433
|
-
|
|
1296
|
+
return throwDefaultError({
|
|
1434
1297
|
output,
|
|
1435
1298
|
parsedBody,
|
|
1436
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1437
1299
|
errorCode,
|
|
1438
1300
|
});
|
|
1439
1301
|
}
|
|
@@ -1444,12 +1306,12 @@ const de_ListSavingsPlansPurchaseRecommendationGenerationCommand = async (output
|
|
|
1444
1306
|
}
|
|
1445
1307
|
const data = await parseBody(output.body, context);
|
|
1446
1308
|
let contents = {};
|
|
1447
|
-
contents =
|
|
1309
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1448
1310
|
const response = {
|
|
1449
1311
|
$metadata: deserializeMetadata(output),
|
|
1450
1312
|
...contents,
|
|
1451
1313
|
};
|
|
1452
|
-
return
|
|
1314
|
+
return response;
|
|
1453
1315
|
};
|
|
1454
1316
|
exports.de_ListSavingsPlansPurchaseRecommendationGenerationCommand = de_ListSavingsPlansPurchaseRecommendationGenerationCommand;
|
|
1455
1317
|
const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
@@ -1467,10 +1329,9 @@ const de_ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (o
|
|
|
1467
1329
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1468
1330
|
default:
|
|
1469
1331
|
const parsedBody = parsedOutput.body;
|
|
1470
|
-
|
|
1332
|
+
return throwDefaultError({
|
|
1471
1333
|
output,
|
|
1472
1334
|
parsedBody,
|
|
1473
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1474
1335
|
errorCode,
|
|
1475
1336
|
});
|
|
1476
1337
|
}
|
|
@@ -1481,12 +1342,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1481
1342
|
}
|
|
1482
1343
|
const data = await parseBody(output.body, context);
|
|
1483
1344
|
let contents = {};
|
|
1484
|
-
contents =
|
|
1345
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1485
1346
|
const response = {
|
|
1486
1347
|
$metadata: deserializeMetadata(output),
|
|
1487
1348
|
...contents,
|
|
1488
1349
|
};
|
|
1489
|
-
return
|
|
1350
|
+
return response;
|
|
1490
1351
|
};
|
|
1491
1352
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1492
1353
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1504,10 +1365,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1504
1365
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1505
1366
|
default:
|
|
1506
1367
|
const parsedBody = parsedOutput.body;
|
|
1507
|
-
|
|
1368
|
+
return throwDefaultError({
|
|
1508
1369
|
output,
|
|
1509
1370
|
parsedBody,
|
|
1510
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1511
1371
|
errorCode,
|
|
1512
1372
|
});
|
|
1513
1373
|
}
|
|
@@ -1518,12 +1378,12 @@ const de_ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
|
1518
1378
|
}
|
|
1519
1379
|
const data = await parseBody(output.body, context);
|
|
1520
1380
|
let contents = {};
|
|
1521
|
-
contents =
|
|
1381
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1522
1382
|
const response = {
|
|
1523
1383
|
$metadata: deserializeMetadata(output),
|
|
1524
1384
|
...contents,
|
|
1525
1385
|
};
|
|
1526
|
-
return
|
|
1386
|
+
return response;
|
|
1527
1387
|
};
|
|
1528
1388
|
exports.de_ProvideAnomalyFeedbackCommand = de_ProvideAnomalyFeedbackCommand;
|
|
1529
1389
|
const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
|
|
@@ -1538,10 +1398,9 @@ const de_ProvideAnomalyFeedbackCommandError = async (output, context) => {
|
|
|
1538
1398
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1539
1399
|
default:
|
|
1540
1400
|
const parsedBody = parsedOutput.body;
|
|
1541
|
-
|
|
1401
|
+
return throwDefaultError({
|
|
1542
1402
|
output,
|
|
1543
1403
|
parsedBody,
|
|
1544
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1545
1404
|
errorCode,
|
|
1546
1405
|
});
|
|
1547
1406
|
}
|
|
@@ -1552,12 +1411,12 @@ const de_StartSavingsPlansPurchaseRecommendationGenerationCommand = async (outpu
|
|
|
1552
1411
|
}
|
|
1553
1412
|
const data = await parseBody(output.body, context);
|
|
1554
1413
|
let contents = {};
|
|
1555
|
-
contents =
|
|
1414
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1556
1415
|
const response = {
|
|
1557
1416
|
$metadata: deserializeMetadata(output),
|
|
1558
1417
|
...contents,
|
|
1559
1418
|
};
|
|
1560
|
-
return
|
|
1419
|
+
return response;
|
|
1561
1420
|
};
|
|
1562
1421
|
exports.de_StartSavingsPlansPurchaseRecommendationGenerationCommand = de_StartSavingsPlansPurchaseRecommendationGenerationCommand;
|
|
1563
1422
|
const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
@@ -1578,10 +1437,9 @@ const de_StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (
|
|
|
1578
1437
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1579
1438
|
default:
|
|
1580
1439
|
const parsedBody = parsedOutput.body;
|
|
1581
|
-
|
|
1440
|
+
return throwDefaultError({
|
|
1582
1441
|
output,
|
|
1583
1442
|
parsedBody,
|
|
1584
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1585
1443
|
errorCode,
|
|
1586
1444
|
});
|
|
1587
1445
|
}
|
|
@@ -1592,12 +1450,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1592
1450
|
}
|
|
1593
1451
|
const data = await parseBody(output.body, context);
|
|
1594
1452
|
let contents = {};
|
|
1595
|
-
contents =
|
|
1453
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1596
1454
|
const response = {
|
|
1597
1455
|
$metadata: deserializeMetadata(output),
|
|
1598
1456
|
...contents,
|
|
1599
1457
|
};
|
|
1600
|
-
return
|
|
1458
|
+
return response;
|
|
1601
1459
|
};
|
|
1602
1460
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1603
1461
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1618,10 +1476,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1618
1476
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1619
1477
|
default:
|
|
1620
1478
|
const parsedBody = parsedOutput.body;
|
|
1621
|
-
|
|
1479
|
+
return throwDefaultError({
|
|
1622
1480
|
output,
|
|
1623
1481
|
parsedBody,
|
|
1624
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1625
1482
|
errorCode,
|
|
1626
1483
|
});
|
|
1627
1484
|
}
|
|
@@ -1632,12 +1489,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1632
1489
|
}
|
|
1633
1490
|
const data = await parseBody(output.body, context);
|
|
1634
1491
|
let contents = {};
|
|
1635
|
-
contents =
|
|
1492
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1636
1493
|
const response = {
|
|
1637
1494
|
$metadata: deserializeMetadata(output),
|
|
1638
1495
|
...contents,
|
|
1639
1496
|
};
|
|
1640
|
-
return
|
|
1497
|
+
return response;
|
|
1641
1498
|
};
|
|
1642
1499
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1643
1500
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1655,10 +1512,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1655
1512
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1656
1513
|
default:
|
|
1657
1514
|
const parsedBody = parsedOutput.body;
|
|
1658
|
-
|
|
1515
|
+
return throwDefaultError({
|
|
1659
1516
|
output,
|
|
1660
1517
|
parsedBody,
|
|
1661
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1662
1518
|
errorCode,
|
|
1663
1519
|
});
|
|
1664
1520
|
}
|
|
@@ -1669,12 +1525,12 @@ const de_UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
|
1669
1525
|
}
|
|
1670
1526
|
const data = await parseBody(output.body, context);
|
|
1671
1527
|
let contents = {};
|
|
1672
|
-
contents =
|
|
1528
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1673
1529
|
const response = {
|
|
1674
1530
|
$metadata: deserializeMetadata(output),
|
|
1675
1531
|
...contents,
|
|
1676
1532
|
};
|
|
1677
|
-
return
|
|
1533
|
+
return response;
|
|
1678
1534
|
};
|
|
1679
1535
|
exports.de_UpdateAnomalyMonitorCommand = de_UpdateAnomalyMonitorCommand;
|
|
1680
1536
|
const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
|
|
@@ -1692,10 +1548,9 @@ const de_UpdateAnomalyMonitorCommandError = async (output, context) => {
|
|
|
1692
1548
|
throw await de_UnknownMonitorExceptionRes(parsedOutput, context);
|
|
1693
1549
|
default:
|
|
1694
1550
|
const parsedBody = parsedOutput.body;
|
|
1695
|
-
|
|
1551
|
+
return throwDefaultError({
|
|
1696
1552
|
output,
|
|
1697
1553
|
parsedBody,
|
|
1698
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1699
1554
|
errorCode,
|
|
1700
1555
|
});
|
|
1701
1556
|
}
|
|
@@ -1706,12 +1561,12 @@ const de_UpdateAnomalySubscriptionCommand = async (output, context) => {
|
|
|
1706
1561
|
}
|
|
1707
1562
|
const data = await parseBody(output.body, context);
|
|
1708
1563
|
let contents = {};
|
|
1709
|
-
contents =
|
|
1564
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1710
1565
|
const response = {
|
|
1711
1566
|
$metadata: deserializeMetadata(output),
|
|
1712
1567
|
...contents,
|
|
1713
1568
|
};
|
|
1714
|
-
return
|
|
1569
|
+
return response;
|
|
1715
1570
|
};
|
|
1716
1571
|
exports.de_UpdateAnomalySubscriptionCommand = de_UpdateAnomalySubscriptionCommand;
|
|
1717
1572
|
const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
|
|
@@ -1732,10 +1587,9 @@ const de_UpdateAnomalySubscriptionCommandError = async (output, context) => {
|
|
|
1732
1587
|
throw await de_UnknownSubscriptionExceptionRes(parsedOutput, context);
|
|
1733
1588
|
default:
|
|
1734
1589
|
const parsedBody = parsedOutput.body;
|
|
1735
|
-
|
|
1590
|
+
return throwDefaultError({
|
|
1736
1591
|
output,
|
|
1737
1592
|
parsedBody,
|
|
1738
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1739
1593
|
errorCode,
|
|
1740
1594
|
});
|
|
1741
1595
|
}
|
|
@@ -1746,12 +1600,12 @@ const de_UpdateCostAllocationTagsStatusCommand = async (output, context) => {
|
|
|
1746
1600
|
}
|
|
1747
1601
|
const data = await parseBody(output.body, context);
|
|
1748
1602
|
let contents = {};
|
|
1749
|
-
contents =
|
|
1603
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1750
1604
|
const response = {
|
|
1751
1605
|
$metadata: deserializeMetadata(output),
|
|
1752
1606
|
...contents,
|
|
1753
1607
|
};
|
|
1754
|
-
return
|
|
1608
|
+
return response;
|
|
1755
1609
|
};
|
|
1756
1610
|
exports.de_UpdateCostAllocationTagsStatusCommand = de_UpdateCostAllocationTagsStatusCommand;
|
|
1757
1611
|
const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) => {
|
|
@@ -1766,10 +1620,9 @@ const de_UpdateCostAllocationTagsStatusCommandError = async (output, context) =>
|
|
|
1766
1620
|
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1767
1621
|
default:
|
|
1768
1622
|
const parsedBody = parsedOutput.body;
|
|
1769
|
-
|
|
1623
|
+
return throwDefaultError({
|
|
1770
1624
|
output,
|
|
1771
1625
|
parsedBody,
|
|
1772
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1773
1626
|
errorCode,
|
|
1774
1627
|
});
|
|
1775
1628
|
}
|
|
@@ -1780,12 +1633,12 @@ const de_UpdateCostCategoryDefinitionCommand = async (output, context) => {
|
|
|
1780
1633
|
}
|
|
1781
1634
|
const data = await parseBody(output.body, context);
|
|
1782
1635
|
let contents = {};
|
|
1783
|
-
contents =
|
|
1636
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1784
1637
|
const response = {
|
|
1785
1638
|
$metadata: deserializeMetadata(output),
|
|
1786
1639
|
...contents,
|
|
1787
1640
|
};
|
|
1788
|
-
return
|
|
1641
|
+
return response;
|
|
1789
1642
|
};
|
|
1790
1643
|
exports.de_UpdateCostCategoryDefinitionCommand = de_UpdateCostCategoryDefinitionCommand;
|
|
1791
1644
|
const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
@@ -1806,17 +1659,16 @@ const de_UpdateCostCategoryDefinitionCommandError = async (output, context) => {
|
|
|
1806
1659
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1807
1660
|
default:
|
|
1808
1661
|
const parsedBody = parsedOutput.body;
|
|
1809
|
-
|
|
1662
|
+
return throwDefaultError({
|
|
1810
1663
|
output,
|
|
1811
1664
|
parsedBody,
|
|
1812
|
-
exceptionCtor: CostExplorerServiceException_1.CostExplorerServiceException,
|
|
1813
1665
|
errorCode,
|
|
1814
1666
|
});
|
|
1815
1667
|
}
|
|
1816
1668
|
};
|
|
1817
1669
|
const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
|
|
1818
1670
|
const body = parsedOutput.body;
|
|
1819
|
-
const deserialized =
|
|
1671
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1820
1672
|
const exception = new models_0_1.BillExpirationException({
|
|
1821
1673
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1822
1674
|
...deserialized,
|
|
@@ -1825,7 +1677,7 @@ const de_BillExpirationExceptionRes = async (parsedOutput, context) => {
|
|
|
1825
1677
|
};
|
|
1826
1678
|
const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1827
1679
|
const body = parsedOutput.body;
|
|
1828
|
-
const deserialized =
|
|
1680
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1829
1681
|
const exception = new models_0_1.DataUnavailableException({
|
|
1830
1682
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1831
1683
|
...deserialized,
|
|
@@ -1834,7 +1686,7 @@ const de_DataUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1834
1686
|
};
|
|
1835
1687
|
const de_GenerationExistsExceptionRes = async (parsedOutput, context) => {
|
|
1836
1688
|
const body = parsedOutput.body;
|
|
1837
|
-
const deserialized =
|
|
1689
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1838
1690
|
const exception = new models_0_1.GenerationExistsException({
|
|
1839
1691
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1840
1692
|
...deserialized,
|
|
@@ -1843,7 +1695,7 @@ const de_GenerationExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1843
1695
|
};
|
|
1844
1696
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1845
1697
|
const body = parsedOutput.body;
|
|
1846
|
-
const deserialized =
|
|
1698
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1847
1699
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1848
1700
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1849
1701
|
...deserialized,
|
|
@@ -1852,7 +1704,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1852
1704
|
};
|
|
1853
1705
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1854
1706
|
const body = parsedOutput.body;
|
|
1855
|
-
const deserialized =
|
|
1707
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1856
1708
|
const exception = new models_0_1.LimitExceededException({
|
|
1857
1709
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1858
1710
|
...deserialized,
|
|
@@ -1861,7 +1713,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1861
1713
|
};
|
|
1862
1714
|
const de_RequestChangedExceptionRes = async (parsedOutput, context) => {
|
|
1863
1715
|
const body = parsedOutput.body;
|
|
1864
|
-
const deserialized =
|
|
1716
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1865
1717
|
const exception = new models_0_1.RequestChangedException({
|
|
1866
1718
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1867
1719
|
...deserialized,
|
|
@@ -1870,7 +1722,7 @@ const de_RequestChangedExceptionRes = async (parsedOutput, context) => {
|
|
|
1870
1722
|
};
|
|
1871
1723
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1872
1724
|
const body = parsedOutput.body;
|
|
1873
|
-
const deserialized =
|
|
1725
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1874
1726
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1875
1727
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1876
1728
|
...deserialized,
|
|
@@ -1879,7 +1731,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1879
1731
|
};
|
|
1880
1732
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1881
1733
|
const body = parsedOutput.body;
|
|
1882
|
-
const deserialized =
|
|
1734
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1883
1735
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1884
1736
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1885
1737
|
...deserialized,
|
|
@@ -1888,7 +1740,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1888
1740
|
};
|
|
1889
1741
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1890
1742
|
const body = parsedOutput.body;
|
|
1891
|
-
const deserialized =
|
|
1743
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1892
1744
|
const exception = new models_0_1.TooManyTagsException({
|
|
1893
1745
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1894
1746
|
...deserialized,
|
|
@@ -1897,7 +1749,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1897
1749
|
};
|
|
1898
1750
|
const de_UnknownMonitorExceptionRes = async (parsedOutput, context) => {
|
|
1899
1751
|
const body = parsedOutput.body;
|
|
1900
|
-
const deserialized =
|
|
1752
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1901
1753
|
const exception = new models_0_1.UnknownMonitorException({
|
|
1902
1754
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1903
1755
|
...deserialized,
|
|
@@ -1906,7 +1758,7 @@ const de_UnknownMonitorExceptionRes = async (parsedOutput, context) => {
|
|
|
1906
1758
|
};
|
|
1907
1759
|
const de_UnknownSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
1908
1760
|
const body = parsedOutput.body;
|
|
1909
|
-
const deserialized =
|
|
1761
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1910
1762
|
const exception = new models_0_1.UnknownSubscriptionException({
|
|
1911
1763
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1912
1764
|
...deserialized,
|
|
@@ -1915,83 +1767,45 @@ const de_UnknownSubscriptionExceptionRes = async (parsedOutput, context) => {
|
|
|
1915
1767
|
};
|
|
1916
1768
|
const de_UnresolvableUsageUnitExceptionRes = async (parsedOutput, context) => {
|
|
1917
1769
|
const body = parsedOutput.body;
|
|
1918
|
-
const deserialized =
|
|
1770
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1919
1771
|
const exception = new models_0_1.UnresolvableUsageUnitException({
|
|
1920
1772
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1921
1773
|
...deserialized,
|
|
1922
1774
|
});
|
|
1923
1775
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1924
1776
|
};
|
|
1925
|
-
const se_AnomalyDateInterval = (input, context) => {
|
|
1926
|
-
return {
|
|
1927
|
-
...(input.EndDate != null && { EndDate: input.EndDate }),
|
|
1928
|
-
...(input.StartDate != null && { StartDate: input.StartDate }),
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
1777
|
const se_AnomalyMonitor = (input, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
}),
|
|
1943
|
-
...(input.MonitorType != null && { MonitorType: input.MonitorType }),
|
|
1944
|
-
};
|
|
1945
|
-
};
|
|
1946
|
-
const se_AnomalySubscription = (input, context) => {
|
|
1947
|
-
return {
|
|
1948
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1949
|
-
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
1950
|
-
...(input.MonitorArnList != null && { MonitorArnList: se_MonitorArnList(input.MonitorArnList, context) }),
|
|
1951
|
-
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
1952
|
-
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
1953
|
-
...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
|
|
1954
|
-
...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
1955
|
-
...(input.ThresholdExpression != null && {
|
|
1956
|
-
ThresholdExpression: se_Expression(input.ThresholdExpression, context),
|
|
1957
|
-
}),
|
|
1958
|
-
};
|
|
1959
|
-
};
|
|
1960
|
-
const se_CostAllocationTagKeyList = (input, context) => {
|
|
1961
|
-
return input
|
|
1962
|
-
.filter((e) => e != null)
|
|
1963
|
-
.map((entry) => {
|
|
1964
|
-
return entry;
|
|
1778
|
+
return (0, smithy_client_1.take)(input, {
|
|
1779
|
+
CreationDate: [],
|
|
1780
|
+
DimensionalValueCount: [],
|
|
1781
|
+
LastEvaluatedDate: [],
|
|
1782
|
+
LastUpdatedDate: [],
|
|
1783
|
+
MonitorArn: [],
|
|
1784
|
+
MonitorDimension: [],
|
|
1785
|
+
MonitorName: [],
|
|
1786
|
+
MonitorSpecification: (_) => se_Expression(_, context),
|
|
1787
|
+
MonitorType: [],
|
|
1965
1788
|
});
|
|
1966
1789
|
};
|
|
1967
|
-
const
|
|
1968
|
-
return {
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
.
|
|
1976
|
-
|
|
1977
|
-
return se_CostAllocationTagStatusEntry(entry, context);
|
|
1790
|
+
const se_AnomalySubscription = (input, context) => {
|
|
1791
|
+
return (0, smithy_client_1.take)(input, {
|
|
1792
|
+
AccountId: [],
|
|
1793
|
+
Frequency: [],
|
|
1794
|
+
MonitorArnList: smithy_client_1._json,
|
|
1795
|
+
Subscribers: smithy_client_1._json,
|
|
1796
|
+
SubscriptionArn: [],
|
|
1797
|
+
SubscriptionName: [],
|
|
1798
|
+
Threshold: smithy_client_1.serializeFloat,
|
|
1799
|
+
ThresholdExpression: (_) => se_Expression(_, context),
|
|
1978
1800
|
});
|
|
1979
1801
|
};
|
|
1980
|
-
const se_CostCategoryInheritedValueDimension = (input, context) => {
|
|
1981
|
-
return {
|
|
1982
|
-
...(input.DimensionKey != null && { DimensionKey: input.DimensionKey }),
|
|
1983
|
-
...(input.DimensionName != null && { DimensionName: input.DimensionName }),
|
|
1984
|
-
};
|
|
1985
|
-
};
|
|
1986
1802
|
const se_CostCategoryRule = (input, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1994
|
-
};
|
|
1803
|
+
return (0, smithy_client_1.take)(input, {
|
|
1804
|
+
InheritedValue: smithy_client_1._json,
|
|
1805
|
+
Rule: (_) => se_Expression(_, context),
|
|
1806
|
+
Type: [],
|
|
1807
|
+
Value: [],
|
|
1808
|
+
});
|
|
1995
1809
|
};
|
|
1996
1810
|
const se_CostCategoryRulesList = (input, context) => {
|
|
1997
1811
|
return input
|
|
@@ -2000,132 +1814,38 @@ const se_CostCategoryRulesList = (input, context) => {
|
|
|
2000
1814
|
return se_CostCategoryRule(entry, context);
|
|
2001
1815
|
});
|
|
2002
1816
|
};
|
|
2003
|
-
const se_CostCategorySplitChargeRule = (input, context) => {
|
|
2004
|
-
return {
|
|
2005
|
-
...(input.Method != null && { Method: input.Method }),
|
|
2006
|
-
...(input.Parameters != null && {
|
|
2007
|
-
Parameters: se_CostCategorySplitChargeRuleParametersList(input.Parameters, context),
|
|
2008
|
-
}),
|
|
2009
|
-
...(input.Source != null && { Source: input.Source }),
|
|
2010
|
-
...(input.Targets != null && { Targets: se_CostCategorySplitChargeRuleTargetsList(input.Targets, context) }),
|
|
2011
|
-
};
|
|
2012
|
-
};
|
|
2013
|
-
const se_CostCategorySplitChargeRuleParameter = (input, context) => {
|
|
2014
|
-
return {
|
|
2015
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2016
|
-
...(input.Values != null && { Values: se_CostCategorySplitChargeRuleParameterValuesList(input.Values, context) }),
|
|
2017
|
-
};
|
|
2018
|
-
};
|
|
2019
|
-
const se_CostCategorySplitChargeRuleParametersList = (input, context) => {
|
|
2020
|
-
return input
|
|
2021
|
-
.filter((e) => e != null)
|
|
2022
|
-
.map((entry) => {
|
|
2023
|
-
return se_CostCategorySplitChargeRuleParameter(entry, context);
|
|
2024
|
-
});
|
|
2025
|
-
};
|
|
2026
|
-
const se_CostCategorySplitChargeRuleParameterValuesList = (input, context) => {
|
|
2027
|
-
return input
|
|
2028
|
-
.filter((e) => e != null)
|
|
2029
|
-
.map((entry) => {
|
|
2030
|
-
return entry;
|
|
2031
|
-
});
|
|
2032
|
-
};
|
|
2033
|
-
const se_CostCategorySplitChargeRulesList = (input, context) => {
|
|
2034
|
-
return input
|
|
2035
|
-
.filter((e) => e != null)
|
|
2036
|
-
.map((entry) => {
|
|
2037
|
-
return se_CostCategorySplitChargeRule(entry, context);
|
|
2038
|
-
});
|
|
2039
|
-
};
|
|
2040
|
-
const se_CostCategorySplitChargeRuleTargetsList = (input, context) => {
|
|
2041
|
-
return input
|
|
2042
|
-
.filter((e) => e != null)
|
|
2043
|
-
.map((entry) => {
|
|
2044
|
-
return entry;
|
|
2045
|
-
});
|
|
2046
|
-
};
|
|
2047
|
-
const se_CostCategoryValues = (input, context) => {
|
|
2048
|
-
return {
|
|
2049
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2050
|
-
...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
|
|
2051
|
-
...(input.Values != null && { Values: se_Values(input.Values, context) }),
|
|
2052
|
-
};
|
|
2053
|
-
};
|
|
2054
1817
|
const se_CreateAnomalyMonitorRequest = (input, context) => {
|
|
2055
|
-
return {
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
};
|
|
1818
|
+
return (0, smithy_client_1.take)(input, {
|
|
1819
|
+
AnomalyMonitor: (_) => se_AnomalyMonitor(_, context),
|
|
1820
|
+
ResourceTags: smithy_client_1._json,
|
|
1821
|
+
});
|
|
2059
1822
|
};
|
|
2060
1823
|
const se_CreateAnomalySubscriptionRequest = (input, context) => {
|
|
2061
|
-
return {
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
|
|
2066
|
-
};
|
|
1824
|
+
return (0, smithy_client_1.take)(input, {
|
|
1825
|
+
AnomalySubscription: (_) => se_AnomalySubscription(_, context),
|
|
1826
|
+
ResourceTags: smithy_client_1._json,
|
|
1827
|
+
});
|
|
2067
1828
|
};
|
|
2068
1829
|
const se_CreateCostCategoryDefinitionRequest = (input, context) => {
|
|
2069
|
-
return {
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
}),
|
|
2079
|
-
};
|
|
2080
|
-
};
|
|
2081
|
-
const se_DateInterval = (input, context) => {
|
|
2082
|
-
return {
|
|
2083
|
-
...(input.End != null && { End: input.End }),
|
|
2084
|
-
...(input.Start != null && { Start: input.Start }),
|
|
2085
|
-
};
|
|
2086
|
-
};
|
|
2087
|
-
const se_DeleteAnomalyMonitorRequest = (input, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const se_DeleteAnomalySubscriptionRequest = (input, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
const se_DeleteCostCategoryDefinitionRequest = (input, context) => {
|
|
2098
|
-
return {
|
|
2099
|
-
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
2102
|
-
const se_DescribeCostCategoryDefinitionRequest = (input, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2105
|
-
...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
|
|
2106
|
-
};
|
|
2107
|
-
};
|
|
2108
|
-
const se_DimensionValues = (input, context) => {
|
|
2109
|
-
return {
|
|
2110
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2111
|
-
...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
|
|
2112
|
-
...(input.Values != null && { Values: se_Values(input.Values, context) }),
|
|
2113
|
-
};
|
|
2114
|
-
};
|
|
2115
|
-
const se_EC2Specification = (input, context) => {
|
|
2116
|
-
return {
|
|
2117
|
-
...(input.OfferingClass != null && { OfferingClass: input.OfferingClass }),
|
|
2118
|
-
};
|
|
1830
|
+
return (0, smithy_client_1.take)(input, {
|
|
1831
|
+
DefaultValue: [],
|
|
1832
|
+
EffectiveStart: [],
|
|
1833
|
+
Name: [],
|
|
1834
|
+
ResourceTags: smithy_client_1._json,
|
|
1835
|
+
RuleVersion: [],
|
|
1836
|
+
Rules: (_) => se_CostCategoryRulesList(_, context),
|
|
1837
|
+
SplitChargeRules: smithy_client_1._json,
|
|
1838
|
+
});
|
|
2119
1839
|
};
|
|
2120
1840
|
const se_Expression = (input, context) => {
|
|
2121
|
-
return {
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
};
|
|
1841
|
+
return (0, smithy_client_1.take)(input, {
|
|
1842
|
+
And: (_) => se_Expressions(_, context),
|
|
1843
|
+
CostCategories: smithy_client_1._json,
|
|
1844
|
+
Dimensions: smithy_client_1._json,
|
|
1845
|
+
Not: (_) => se_Expression(_, context),
|
|
1846
|
+
Or: (_) => se_Expressions(_, context),
|
|
1847
|
+
Tags: smithy_client_1._json,
|
|
1848
|
+
});
|
|
2129
1849
|
};
|
|
2130
1850
|
const se_Expressions = (input, context) => {
|
|
2131
1851
|
return input
|
|
@@ -2135,1943 +1855,349 @@ const se_Expressions = (input, context) => {
|
|
|
2135
1855
|
});
|
|
2136
1856
|
};
|
|
2137
1857
|
const se_GetAnomaliesRequest = (input, context) => {
|
|
2138
|
-
return {
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
};
|
|
2146
|
-
};
|
|
2147
|
-
const se_GetAnomalyMonitorsRequest = (input, context) => {
|
|
2148
|
-
return {
|
|
2149
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2150
|
-
...(input.MonitorArnList != null && { MonitorArnList: se_Values(input.MonitorArnList, context) }),
|
|
2151
|
-
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2152
|
-
};
|
|
2153
|
-
};
|
|
2154
|
-
const se_GetAnomalySubscriptionsRequest = (input, context) => {
|
|
2155
|
-
return {
|
|
2156
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2157
|
-
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2158
|
-
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2159
|
-
...(input.SubscriptionArnList != null && { SubscriptionArnList: se_Values(input.SubscriptionArnList, context) }),
|
|
2160
|
-
};
|
|
1858
|
+
return (0, smithy_client_1.take)(input, {
|
|
1859
|
+
DateInterval: smithy_client_1._json,
|
|
1860
|
+
Feedback: [],
|
|
1861
|
+
MaxResults: [],
|
|
1862
|
+
MonitorArn: [],
|
|
1863
|
+
NextPageToken: [],
|
|
1864
|
+
TotalImpact: (_) => se_TotalImpactFilter(_, context),
|
|
1865
|
+
});
|
|
2161
1866
|
};
|
|
2162
1867
|
const se_GetCostAndUsageRequest = (input, context) => {
|
|
2163
|
-
return {
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
};
|
|
1868
|
+
return (0, smithy_client_1.take)(input, {
|
|
1869
|
+
Filter: (_) => se_Expression(_, context),
|
|
1870
|
+
Granularity: [],
|
|
1871
|
+
GroupBy: smithy_client_1._json,
|
|
1872
|
+
Metrics: smithy_client_1._json,
|
|
1873
|
+
NextPageToken: [],
|
|
1874
|
+
TimePeriod: smithy_client_1._json,
|
|
1875
|
+
});
|
|
2171
1876
|
};
|
|
2172
1877
|
const se_GetCostAndUsageWithResourcesRequest = (input, context) => {
|
|
2173
|
-
return {
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
};
|
|
1878
|
+
return (0, smithy_client_1.take)(input, {
|
|
1879
|
+
Filter: (_) => se_Expression(_, context),
|
|
1880
|
+
Granularity: [],
|
|
1881
|
+
GroupBy: smithy_client_1._json,
|
|
1882
|
+
Metrics: smithy_client_1._json,
|
|
1883
|
+
NextPageToken: [],
|
|
1884
|
+
TimePeriod: smithy_client_1._json,
|
|
1885
|
+
});
|
|
2181
1886
|
};
|
|
2182
1887
|
const se_GetCostCategoriesRequest = (input, context) => {
|
|
2183
|
-
return {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
};
|
|
1888
|
+
return (0, smithy_client_1.take)(input, {
|
|
1889
|
+
CostCategoryName: [],
|
|
1890
|
+
Filter: (_) => se_Expression(_, context),
|
|
1891
|
+
MaxResults: [],
|
|
1892
|
+
NextPageToken: [],
|
|
1893
|
+
SearchString: [],
|
|
1894
|
+
SortBy: smithy_client_1._json,
|
|
1895
|
+
TimePeriod: smithy_client_1._json,
|
|
1896
|
+
});
|
|
2192
1897
|
};
|
|
2193
1898
|
const se_GetCostForecastRequest = (input, context) => {
|
|
2194
|
-
return {
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
};
|
|
1899
|
+
return (0, smithy_client_1.take)(input, {
|
|
1900
|
+
Filter: (_) => se_Expression(_, context),
|
|
1901
|
+
Granularity: [],
|
|
1902
|
+
Metric: [],
|
|
1903
|
+
PredictionIntervalLevel: [],
|
|
1904
|
+
TimePeriod: smithy_client_1._json,
|
|
1905
|
+
});
|
|
2201
1906
|
};
|
|
2202
1907
|
const se_GetDimensionValuesRequest = (input, context) => {
|
|
2203
|
-
return {
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
};
|
|
1908
|
+
return (0, smithy_client_1.take)(input, {
|
|
1909
|
+
Context: [],
|
|
1910
|
+
Dimension: [],
|
|
1911
|
+
Filter: (_) => se_Expression(_, context),
|
|
1912
|
+
MaxResults: [],
|
|
1913
|
+
NextPageToken: [],
|
|
1914
|
+
SearchString: [],
|
|
1915
|
+
SortBy: smithy_client_1._json,
|
|
1916
|
+
TimePeriod: smithy_client_1._json,
|
|
1917
|
+
});
|
|
2213
1918
|
};
|
|
2214
1919
|
const se_GetReservationCoverageRequest = (input, context) => {
|
|
2215
|
-
return {
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
};
|
|
1920
|
+
return (0, smithy_client_1.take)(input, {
|
|
1921
|
+
Filter: (_) => se_Expression(_, context),
|
|
1922
|
+
Granularity: [],
|
|
1923
|
+
GroupBy: smithy_client_1._json,
|
|
1924
|
+
MaxResults: [],
|
|
1925
|
+
Metrics: smithy_client_1._json,
|
|
1926
|
+
NextPageToken: [],
|
|
1927
|
+
SortBy: smithy_client_1._json,
|
|
1928
|
+
TimePeriod: smithy_client_1._json,
|
|
1929
|
+
});
|
|
2225
1930
|
};
|
|
2226
1931
|
const se_GetReservationPurchaseRecommendationRequest = (input, context) => {
|
|
2227
|
-
return {
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
...(input.TermInYears != null && { TermInYears: input.TermInYears }),
|
|
2240
|
-
};
|
|
1932
|
+
return (0, smithy_client_1.take)(input, {
|
|
1933
|
+
AccountId: [],
|
|
1934
|
+
AccountScope: [],
|
|
1935
|
+
Filter: (_) => se_Expression(_, context),
|
|
1936
|
+
LookbackPeriodInDays: [],
|
|
1937
|
+
NextPageToken: [],
|
|
1938
|
+
PageSize: [],
|
|
1939
|
+
PaymentOption: [],
|
|
1940
|
+
Service: [],
|
|
1941
|
+
ServiceSpecification: smithy_client_1._json,
|
|
1942
|
+
TermInYears: [],
|
|
1943
|
+
});
|
|
2241
1944
|
};
|
|
2242
1945
|
const se_GetReservationUtilizationRequest = (input, context) => {
|
|
2243
|
-
return {
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
};
|
|
1946
|
+
return (0, smithy_client_1.take)(input, {
|
|
1947
|
+
Filter: (_) => se_Expression(_, context),
|
|
1948
|
+
Granularity: [],
|
|
1949
|
+
GroupBy: smithy_client_1._json,
|
|
1950
|
+
MaxResults: [],
|
|
1951
|
+
NextPageToken: [],
|
|
1952
|
+
SortBy: smithy_client_1._json,
|
|
1953
|
+
TimePeriod: smithy_client_1._json,
|
|
1954
|
+
});
|
|
2252
1955
|
};
|
|
2253
1956
|
const se_GetRightsizingRecommendationRequest = (input, context) => {
|
|
2254
|
-
return {
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
...(input.Service != null && { Service: input.Service }),
|
|
2262
|
-
};
|
|
1957
|
+
return (0, smithy_client_1.take)(input, {
|
|
1958
|
+
Configuration: smithy_client_1._json,
|
|
1959
|
+
Filter: (_) => se_Expression(_, context),
|
|
1960
|
+
NextPageToken: [],
|
|
1961
|
+
PageSize: [],
|
|
1962
|
+
Service: [],
|
|
1963
|
+
});
|
|
2263
1964
|
};
|
|
2264
1965
|
const se_GetSavingsPlansCoverageRequest = (input, context) => {
|
|
2265
|
-
return {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
};
|
|
1966
|
+
return (0, smithy_client_1.take)(input, {
|
|
1967
|
+
Filter: (_) => se_Expression(_, context),
|
|
1968
|
+
Granularity: [],
|
|
1969
|
+
GroupBy: smithy_client_1._json,
|
|
1970
|
+
MaxResults: [],
|
|
1971
|
+
Metrics: smithy_client_1._json,
|
|
1972
|
+
NextToken: [],
|
|
1973
|
+
SortBy: smithy_client_1._json,
|
|
1974
|
+
TimePeriod: smithy_client_1._json,
|
|
1975
|
+
});
|
|
2275
1976
|
};
|
|
2276
1977
|
const se_GetSavingsPlansPurchaseRecommendationRequest = (input, context) => {
|
|
2277
|
-
return {
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
};
|
|
1978
|
+
return (0, smithy_client_1.take)(input, {
|
|
1979
|
+
AccountScope: [],
|
|
1980
|
+
Filter: (_) => se_Expression(_, context),
|
|
1981
|
+
LookbackPeriodInDays: [],
|
|
1982
|
+
NextPageToken: [],
|
|
1983
|
+
PageSize: [],
|
|
1984
|
+
PaymentOption: [],
|
|
1985
|
+
SavingsPlansType: [],
|
|
1986
|
+
TermInYears: [],
|
|
1987
|
+
});
|
|
2287
1988
|
};
|
|
2288
1989
|
const se_GetSavingsPlansUtilizationDetailsRequest = (input, context) => {
|
|
2289
|
-
return {
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
};
|
|
1990
|
+
return (0, smithy_client_1.take)(input, {
|
|
1991
|
+
DataType: smithy_client_1._json,
|
|
1992
|
+
Filter: (_) => se_Expression(_, context),
|
|
1993
|
+
MaxResults: [],
|
|
1994
|
+
NextToken: [],
|
|
1995
|
+
SortBy: smithy_client_1._json,
|
|
1996
|
+
TimePeriod: smithy_client_1._json,
|
|
1997
|
+
});
|
|
2297
1998
|
};
|
|
2298
1999
|
const se_GetSavingsPlansUtilizationRequest = (input, context) => {
|
|
2299
|
-
return {
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
};
|
|
2000
|
+
return (0, smithy_client_1.take)(input, {
|
|
2001
|
+
Filter: (_) => se_Expression(_, context),
|
|
2002
|
+
Granularity: [],
|
|
2003
|
+
SortBy: smithy_client_1._json,
|
|
2004
|
+
TimePeriod: smithy_client_1._json,
|
|
2005
|
+
});
|
|
2305
2006
|
};
|
|
2306
2007
|
const se_GetTagsRequest = (input, context) => {
|
|
2307
|
-
return {
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
};
|
|
2008
|
+
return (0, smithy_client_1.take)(input, {
|
|
2009
|
+
Filter: (_) => se_Expression(_, context),
|
|
2010
|
+
MaxResults: [],
|
|
2011
|
+
NextPageToken: [],
|
|
2012
|
+
SearchString: [],
|
|
2013
|
+
SortBy: smithy_client_1._json,
|
|
2014
|
+
TagKey: [],
|
|
2015
|
+
TimePeriod: smithy_client_1._json,
|
|
2016
|
+
});
|
|
2316
2017
|
};
|
|
2317
2018
|
const se_GetUsageForecastRequest = (input, context) => {
|
|
2318
|
-
return {
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
};
|
|
2325
|
-
};
|
|
2326
|
-
const se_GroupDefinition = (input, context) => {
|
|
2327
|
-
return {
|
|
2328
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2329
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2330
|
-
};
|
|
2331
|
-
};
|
|
2332
|
-
const se_GroupDefinitions = (input, context) => {
|
|
2333
|
-
return input
|
|
2334
|
-
.filter((e) => e != null)
|
|
2335
|
-
.map((entry) => {
|
|
2336
|
-
return se_GroupDefinition(entry, context);
|
|
2019
|
+
return (0, smithy_client_1.take)(input, {
|
|
2020
|
+
Filter: (_) => se_Expression(_, context),
|
|
2021
|
+
Granularity: [],
|
|
2022
|
+
Metric: [],
|
|
2023
|
+
PredictionIntervalLevel: [],
|
|
2024
|
+
TimePeriod: smithy_client_1._json,
|
|
2337
2025
|
});
|
|
2338
2026
|
};
|
|
2339
|
-
const
|
|
2340
|
-
return {
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2346
|
-
};
|
|
2347
|
-
};
|
|
2348
|
-
const se_ListCostCategoryDefinitionsRequest = (input, context) => {
|
|
2349
|
-
return {
|
|
2350
|
-
...(input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }),
|
|
2351
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2352
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2353
|
-
};
|
|
2354
|
-
};
|
|
2355
|
-
const se_ListSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
|
|
2356
|
-
return {
|
|
2357
|
-
...(input.GenerationStatus != null && { GenerationStatus: input.GenerationStatus }),
|
|
2358
|
-
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2359
|
-
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
2360
|
-
...(input.RecommendationIds != null && {
|
|
2361
|
-
RecommendationIds: se_RecommendationIdList(input.RecommendationIds, context),
|
|
2362
|
-
}),
|
|
2363
|
-
};
|
|
2027
|
+
const se_TotalImpactFilter = (input, context) => {
|
|
2028
|
+
return (0, smithy_client_1.take)(input, {
|
|
2029
|
+
EndValue: smithy_client_1.serializeFloat,
|
|
2030
|
+
NumericOperator: [],
|
|
2031
|
+
StartValue: smithy_client_1.serializeFloat,
|
|
2032
|
+
});
|
|
2364
2033
|
};
|
|
2365
|
-
const
|
|
2366
|
-
return {
|
|
2367
|
-
|
|
2368
|
-
|
|
2034
|
+
const se_UpdateAnomalySubscriptionRequest = (input, context) => {
|
|
2035
|
+
return (0, smithy_client_1.take)(input, {
|
|
2036
|
+
Frequency: [],
|
|
2037
|
+
MonitorArnList: smithy_client_1._json,
|
|
2038
|
+
Subscribers: smithy_client_1._json,
|
|
2039
|
+
SubscriptionArn: [],
|
|
2040
|
+
SubscriptionName: [],
|
|
2041
|
+
Threshold: smithy_client_1.serializeFloat,
|
|
2042
|
+
ThresholdExpression: (_) => se_Expression(_, context),
|
|
2043
|
+
});
|
|
2369
2044
|
};
|
|
2370
|
-
const
|
|
2371
|
-
return input
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2045
|
+
const se_UpdateCostCategoryDefinitionRequest = (input, context) => {
|
|
2046
|
+
return (0, smithy_client_1.take)(input, {
|
|
2047
|
+
CostCategoryArn: [],
|
|
2048
|
+
DefaultValue: [],
|
|
2049
|
+
EffectiveStart: [],
|
|
2050
|
+
RuleVersion: [],
|
|
2051
|
+
Rules: (_) => se_CostCategoryRulesList(_, context),
|
|
2052
|
+
SplitChargeRules: smithy_client_1._json,
|
|
2375
2053
|
});
|
|
2376
2054
|
};
|
|
2377
|
-
const
|
|
2378
|
-
|
|
2055
|
+
const de_Anomalies = (output, context) => {
|
|
2056
|
+
const retVal = (output || [])
|
|
2379
2057
|
.filter((e) => e != null)
|
|
2380
2058
|
.map((entry) => {
|
|
2381
|
-
return entry;
|
|
2059
|
+
return de_Anomaly(entry, context);
|
|
2382
2060
|
});
|
|
2061
|
+
return retVal;
|
|
2383
2062
|
};
|
|
2384
|
-
const
|
|
2385
|
-
return
|
|
2386
|
-
.
|
|
2387
|
-
.
|
|
2388
|
-
|
|
2063
|
+
const de_Anomaly = (output, context) => {
|
|
2064
|
+
return (0, smithy_client_1.take)(output, {
|
|
2065
|
+
AnomalyEndDate: smithy_client_1.expectString,
|
|
2066
|
+
AnomalyId: smithy_client_1.expectString,
|
|
2067
|
+
AnomalyScore: (_) => de_AnomalyScore(_, context),
|
|
2068
|
+
AnomalyStartDate: smithy_client_1.expectString,
|
|
2069
|
+
DimensionValue: smithy_client_1.expectString,
|
|
2070
|
+
Feedback: smithy_client_1.expectString,
|
|
2071
|
+
Impact: (_) => de_Impact(_, context),
|
|
2072
|
+
MonitorArn: smithy_client_1.expectString,
|
|
2073
|
+
RootCauses: smithy_client_1._json,
|
|
2389
2074
|
});
|
|
2390
2075
|
};
|
|
2391
|
-
const
|
|
2392
|
-
return {
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2076
|
+
const de_AnomalyMonitor = (output, context) => {
|
|
2077
|
+
return (0, smithy_client_1.take)(output, {
|
|
2078
|
+
CreationDate: smithy_client_1.expectString,
|
|
2079
|
+
DimensionalValueCount: smithy_client_1.expectInt32,
|
|
2080
|
+
LastEvaluatedDate: smithy_client_1.expectString,
|
|
2081
|
+
LastUpdatedDate: smithy_client_1.expectString,
|
|
2082
|
+
MonitorArn: smithy_client_1.expectString,
|
|
2083
|
+
MonitorDimension: smithy_client_1.expectString,
|
|
2084
|
+
MonitorName: smithy_client_1.expectString,
|
|
2085
|
+
MonitorSpecification: (_) => de_Expression(_, context),
|
|
2086
|
+
MonitorType: smithy_client_1.expectString,
|
|
2087
|
+
});
|
|
2396
2088
|
};
|
|
2397
|
-
const
|
|
2398
|
-
|
|
2089
|
+
const de_AnomalyMonitors = (output, context) => {
|
|
2090
|
+
const retVal = (output || [])
|
|
2399
2091
|
.filter((e) => e != null)
|
|
2400
2092
|
.map((entry) => {
|
|
2401
|
-
return entry;
|
|
2402
|
-
});
|
|
2403
|
-
};
|
|
2404
|
-
const se_ResourceTag = (input, context) => {
|
|
2405
|
-
return {
|
|
2406
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2407
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2408
|
-
};
|
|
2409
|
-
};
|
|
2410
|
-
const se_ResourceTagKeyList = (input, context) => {
|
|
2411
|
-
return input
|
|
2412
|
-
.filter((e) => e != null)
|
|
2413
|
-
.map((entry) => {
|
|
2414
|
-
return entry;
|
|
2415
|
-
});
|
|
2416
|
-
};
|
|
2417
|
-
const se_ResourceTagList = (input, context) => {
|
|
2418
|
-
return input
|
|
2419
|
-
.filter((e) => e != null)
|
|
2420
|
-
.map((entry) => {
|
|
2421
|
-
return se_ResourceTag(entry, context);
|
|
2422
|
-
});
|
|
2423
|
-
};
|
|
2424
|
-
const se_RightsizingRecommendationConfiguration = (input, context) => {
|
|
2425
|
-
return {
|
|
2426
|
-
...(input.BenefitsConsidered != null && { BenefitsConsidered: input.BenefitsConsidered }),
|
|
2427
|
-
...(input.RecommendationTarget != null && { RecommendationTarget: input.RecommendationTarget }),
|
|
2428
|
-
};
|
|
2429
|
-
};
|
|
2430
|
-
const se_SavingsPlansDataTypes = (input, context) => {
|
|
2431
|
-
return input
|
|
2432
|
-
.filter((e) => e != null)
|
|
2433
|
-
.map((entry) => {
|
|
2434
|
-
return entry;
|
|
2435
|
-
});
|
|
2436
|
-
};
|
|
2437
|
-
const se_ServiceSpecification = (input, context) => {
|
|
2438
|
-
return {
|
|
2439
|
-
...(input.EC2Specification != null && { EC2Specification: se_EC2Specification(input.EC2Specification, context) }),
|
|
2440
|
-
};
|
|
2441
|
-
};
|
|
2442
|
-
const se_SortDefinition = (input, context) => {
|
|
2443
|
-
return {
|
|
2444
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2445
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
2446
|
-
};
|
|
2447
|
-
};
|
|
2448
|
-
const se_SortDefinitions = (input, context) => {
|
|
2449
|
-
return input
|
|
2450
|
-
.filter((e) => e != null)
|
|
2451
|
-
.map((entry) => {
|
|
2452
|
-
return se_SortDefinition(entry, context);
|
|
2453
|
-
});
|
|
2454
|
-
};
|
|
2455
|
-
const se_StartSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
|
|
2456
|
-
return {};
|
|
2457
|
-
};
|
|
2458
|
-
const se_Subscriber = (input, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
...(input.Address != null && { Address: input.Address }),
|
|
2461
|
-
...(input.Status != null && { Status: input.Status }),
|
|
2462
|
-
...(input.Type != null && { Type: input.Type }),
|
|
2463
|
-
};
|
|
2464
|
-
};
|
|
2465
|
-
const se_Subscribers = (input, context) => {
|
|
2466
|
-
return input
|
|
2467
|
-
.filter((e) => e != null)
|
|
2468
|
-
.map((entry) => {
|
|
2469
|
-
return se_Subscriber(entry, context);
|
|
2470
|
-
});
|
|
2471
|
-
};
|
|
2472
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2473
|
-
return {
|
|
2474
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2475
|
-
...(input.ResourceTags != null && { ResourceTags: se_ResourceTagList(input.ResourceTags, context) }),
|
|
2476
|
-
};
|
|
2477
|
-
};
|
|
2478
|
-
const se_TagValues = (input, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2481
|
-
...(input.MatchOptions != null && { MatchOptions: se_MatchOptions(input.MatchOptions, context) }),
|
|
2482
|
-
...(input.Values != null && { Values: se_Values(input.Values, context) }),
|
|
2483
|
-
};
|
|
2484
|
-
};
|
|
2485
|
-
const se_TotalImpactFilter = (input, context) => {
|
|
2486
|
-
return {
|
|
2487
|
-
...(input.EndValue != null && { EndValue: (0, smithy_client_1.serializeFloat)(input.EndValue) }),
|
|
2488
|
-
...(input.NumericOperator != null && { NumericOperator: input.NumericOperator }),
|
|
2489
|
-
...(input.StartValue != null && { StartValue: (0, smithy_client_1.serializeFloat)(input.StartValue) }),
|
|
2490
|
-
};
|
|
2491
|
-
};
|
|
2492
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2493
|
-
return {
|
|
2494
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
2495
|
-
...(input.ResourceTagKeys != null && { ResourceTagKeys: se_ResourceTagKeyList(input.ResourceTagKeys, context) }),
|
|
2496
|
-
};
|
|
2497
|
-
};
|
|
2498
|
-
const se_UpdateAnomalyMonitorRequest = (input, context) => {
|
|
2499
|
-
return {
|
|
2500
|
-
...(input.MonitorArn != null && { MonitorArn: input.MonitorArn }),
|
|
2501
|
-
...(input.MonitorName != null && { MonitorName: input.MonitorName }),
|
|
2502
|
-
};
|
|
2503
|
-
};
|
|
2504
|
-
const se_UpdateAnomalySubscriptionRequest = (input, context) => {
|
|
2505
|
-
return {
|
|
2506
|
-
...(input.Frequency != null && { Frequency: input.Frequency }),
|
|
2507
|
-
...(input.MonitorArnList != null && { MonitorArnList: se_MonitorArnList(input.MonitorArnList, context) }),
|
|
2508
|
-
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
2509
|
-
...(input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }),
|
|
2510
|
-
...(input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName }),
|
|
2511
|
-
...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
|
|
2512
|
-
...(input.ThresholdExpression != null && {
|
|
2513
|
-
ThresholdExpression: se_Expression(input.ThresholdExpression, context),
|
|
2514
|
-
}),
|
|
2515
|
-
};
|
|
2516
|
-
};
|
|
2517
|
-
const se_UpdateCostAllocationTagsStatusRequest = (input, context) => {
|
|
2518
|
-
return {
|
|
2519
|
-
...(input.CostAllocationTagsStatus != null && {
|
|
2520
|
-
CostAllocationTagsStatus: se_CostAllocationTagStatusList(input.CostAllocationTagsStatus, context),
|
|
2521
|
-
}),
|
|
2522
|
-
};
|
|
2523
|
-
};
|
|
2524
|
-
const se_UpdateCostCategoryDefinitionRequest = (input, context) => {
|
|
2525
|
-
return {
|
|
2526
|
-
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2527
|
-
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
|
|
2528
|
-
...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
|
|
2529
|
-
...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
|
|
2530
|
-
...(input.Rules != null && { Rules: se_CostCategoryRulesList(input.Rules, context) }),
|
|
2531
|
-
...(input.SplitChargeRules != null && {
|
|
2532
|
-
SplitChargeRules: se_CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2533
|
-
}),
|
|
2534
|
-
};
|
|
2535
|
-
};
|
|
2536
|
-
const se_Values = (input, context) => {
|
|
2537
|
-
return input
|
|
2538
|
-
.filter((e) => e != null)
|
|
2539
|
-
.map((entry) => {
|
|
2540
|
-
return entry;
|
|
2541
|
-
});
|
|
2542
|
-
};
|
|
2543
|
-
const de_Anomalies = (output, context) => {
|
|
2544
|
-
const retVal = (output || [])
|
|
2545
|
-
.filter((e) => e != null)
|
|
2546
|
-
.map((entry) => {
|
|
2547
|
-
if (entry === null) {
|
|
2548
|
-
return null;
|
|
2549
|
-
}
|
|
2550
|
-
return de_Anomaly(entry, context);
|
|
2551
|
-
});
|
|
2552
|
-
return retVal;
|
|
2553
|
-
};
|
|
2554
|
-
const de_Anomaly = (output, context) => {
|
|
2555
|
-
return {
|
|
2556
|
-
AnomalyEndDate: (0, smithy_client_1.expectString)(output.AnomalyEndDate),
|
|
2557
|
-
AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
|
|
2558
|
-
AnomalyScore: output.AnomalyScore != null ? de_AnomalyScore(output.AnomalyScore, context) : undefined,
|
|
2559
|
-
AnomalyStartDate: (0, smithy_client_1.expectString)(output.AnomalyStartDate),
|
|
2560
|
-
DimensionValue: (0, smithy_client_1.expectString)(output.DimensionValue),
|
|
2561
|
-
Feedback: (0, smithy_client_1.expectString)(output.Feedback),
|
|
2562
|
-
Impact: output.Impact != null ? de_Impact(output.Impact, context) : undefined,
|
|
2563
|
-
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
2564
|
-
RootCauses: output.RootCauses != null ? de_RootCauses(output.RootCauses, context) : undefined,
|
|
2565
|
-
};
|
|
2566
|
-
};
|
|
2567
|
-
const de_AnomalyMonitor = (output, context) => {
|
|
2568
|
-
return {
|
|
2569
|
-
CreationDate: (0, smithy_client_1.expectString)(output.CreationDate),
|
|
2570
|
-
DimensionalValueCount: (0, smithy_client_1.expectInt32)(output.DimensionalValueCount),
|
|
2571
|
-
LastEvaluatedDate: (0, smithy_client_1.expectString)(output.LastEvaluatedDate),
|
|
2572
|
-
LastUpdatedDate: (0, smithy_client_1.expectString)(output.LastUpdatedDate),
|
|
2573
|
-
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
2574
|
-
MonitorDimension: (0, smithy_client_1.expectString)(output.MonitorDimension),
|
|
2575
|
-
MonitorName: (0, smithy_client_1.expectString)(output.MonitorName),
|
|
2576
|
-
MonitorSpecification: output.MonitorSpecification != null ? de_Expression(output.MonitorSpecification, context) : undefined,
|
|
2577
|
-
MonitorType: (0, smithy_client_1.expectString)(output.MonitorType),
|
|
2578
|
-
};
|
|
2579
|
-
};
|
|
2580
|
-
const de_AnomalyMonitors = (output, context) => {
|
|
2581
|
-
const retVal = (output || [])
|
|
2582
|
-
.filter((e) => e != null)
|
|
2583
|
-
.map((entry) => {
|
|
2584
|
-
if (entry === null) {
|
|
2585
|
-
return null;
|
|
2586
|
-
}
|
|
2587
|
-
return de_AnomalyMonitor(entry, context);
|
|
2588
|
-
});
|
|
2589
|
-
return retVal;
|
|
2590
|
-
};
|
|
2591
|
-
const de_AnomalyScore = (output, context) => {
|
|
2592
|
-
return {
|
|
2593
|
-
CurrentScore: (0, smithy_client_1.limitedParseDouble)(output.CurrentScore),
|
|
2594
|
-
MaxScore: (0, smithy_client_1.limitedParseDouble)(output.MaxScore),
|
|
2595
|
-
};
|
|
2596
|
-
};
|
|
2597
|
-
const de_AnomalySubscription = (output, context) => {
|
|
2598
|
-
return {
|
|
2599
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2600
|
-
Frequency: (0, smithy_client_1.expectString)(output.Frequency),
|
|
2601
|
-
MonitorArnList: output.MonitorArnList != null ? de_MonitorArnList(output.MonitorArnList, context) : undefined,
|
|
2602
|
-
Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
|
|
2603
|
-
SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
|
|
2604
|
-
SubscriptionName: (0, smithy_client_1.expectString)(output.SubscriptionName),
|
|
2605
|
-
Threshold: (0, smithy_client_1.limitedParseDouble)(output.Threshold),
|
|
2606
|
-
ThresholdExpression: output.ThresholdExpression != null ? de_Expression(output.ThresholdExpression, context) : undefined,
|
|
2607
|
-
};
|
|
2608
|
-
};
|
|
2609
|
-
const de_AnomalySubscriptions = (output, context) => {
|
|
2610
|
-
const retVal = (output || [])
|
|
2611
|
-
.filter((e) => e != null)
|
|
2612
|
-
.map((entry) => {
|
|
2613
|
-
if (entry === null) {
|
|
2614
|
-
return null;
|
|
2615
|
-
}
|
|
2616
|
-
return de_AnomalySubscription(entry, context);
|
|
2617
|
-
});
|
|
2618
|
-
return retVal;
|
|
2619
|
-
};
|
|
2620
|
-
const de_Attributes = (output, context) => {
|
|
2621
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2622
|
-
if (value === null) {
|
|
2623
|
-
return acc;
|
|
2624
|
-
}
|
|
2625
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2626
|
-
return acc;
|
|
2627
|
-
}, {});
|
|
2628
|
-
};
|
|
2629
|
-
const de_BillExpirationException = (output, context) => {
|
|
2630
|
-
return {
|
|
2631
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2632
|
-
};
|
|
2633
|
-
};
|
|
2634
|
-
const de_CostAllocationTag = (output, context) => {
|
|
2635
|
-
return {
|
|
2636
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2637
|
-
TagKey: (0, smithy_client_1.expectString)(output.TagKey),
|
|
2638
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2639
|
-
};
|
|
2640
|
-
};
|
|
2641
|
-
const de_CostAllocationTagList = (output, context) => {
|
|
2642
|
-
const retVal = (output || [])
|
|
2643
|
-
.filter((e) => e != null)
|
|
2644
|
-
.map((entry) => {
|
|
2645
|
-
if (entry === null) {
|
|
2646
|
-
return null;
|
|
2647
|
-
}
|
|
2648
|
-
return de_CostAllocationTag(entry, context);
|
|
2649
|
-
});
|
|
2650
|
-
return retVal;
|
|
2651
|
-
};
|
|
2652
|
-
const de_CostCategory = (output, context) => {
|
|
2653
|
-
return {
|
|
2654
|
-
CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
|
|
2655
|
-
DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
|
|
2656
|
-
EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
|
|
2657
|
-
EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
|
|
2658
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2659
|
-
ProcessingStatus: output.ProcessingStatus != null
|
|
2660
|
-
? de_CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
2661
|
-
: undefined,
|
|
2662
|
-
RuleVersion: (0, smithy_client_1.expectString)(output.RuleVersion),
|
|
2663
|
-
Rules: output.Rules != null ? de_CostCategoryRulesList(output.Rules, context) : undefined,
|
|
2664
|
-
SplitChargeRules: output.SplitChargeRules != null
|
|
2665
|
-
? de_CostCategorySplitChargeRulesList(output.SplitChargeRules, context)
|
|
2666
|
-
: undefined,
|
|
2667
|
-
};
|
|
2668
|
-
};
|
|
2669
|
-
const de_CostCategoryInheritedValueDimension = (output, context) => {
|
|
2670
|
-
return {
|
|
2671
|
-
DimensionKey: (0, smithy_client_1.expectString)(output.DimensionKey),
|
|
2672
|
-
DimensionName: (0, smithy_client_1.expectString)(output.DimensionName),
|
|
2673
|
-
};
|
|
2674
|
-
};
|
|
2675
|
-
const de_CostCategoryNamesList = (output, context) => {
|
|
2676
|
-
const retVal = (output || [])
|
|
2677
|
-
.filter((e) => e != null)
|
|
2678
|
-
.map((entry) => {
|
|
2679
|
-
if (entry === null) {
|
|
2680
|
-
return null;
|
|
2681
|
-
}
|
|
2682
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2683
|
-
});
|
|
2684
|
-
return retVal;
|
|
2685
|
-
};
|
|
2686
|
-
const de_CostCategoryProcessingStatus = (output, context) => {
|
|
2687
|
-
return {
|
|
2688
|
-
Component: (0, smithy_client_1.expectString)(output.Component),
|
|
2689
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2690
|
-
};
|
|
2691
|
-
};
|
|
2692
|
-
const de_CostCategoryProcessingStatusList = (output, context) => {
|
|
2693
|
-
const retVal = (output || [])
|
|
2694
|
-
.filter((e) => e != null)
|
|
2695
|
-
.map((entry) => {
|
|
2696
|
-
if (entry === null) {
|
|
2697
|
-
return null;
|
|
2698
|
-
}
|
|
2699
|
-
return de_CostCategoryProcessingStatus(entry, context);
|
|
2700
|
-
});
|
|
2701
|
-
return retVal;
|
|
2702
|
-
};
|
|
2703
|
-
const de_CostCategoryReference = (output, context) => {
|
|
2704
|
-
return {
|
|
2705
|
-
CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
|
|
2706
|
-
DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
|
|
2707
|
-
EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
|
|
2708
|
-
EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
|
|
2709
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2710
|
-
NumberOfRules: (0, smithy_client_1.expectInt32)(output.NumberOfRules),
|
|
2711
|
-
ProcessingStatus: output.ProcessingStatus != null
|
|
2712
|
-
? de_CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
2713
|
-
: undefined,
|
|
2714
|
-
Values: output.Values != null ? de_CostCategoryValuesList(output.Values, context) : undefined,
|
|
2715
|
-
};
|
|
2716
|
-
};
|
|
2717
|
-
const de_CostCategoryReferencesList = (output, context) => {
|
|
2718
|
-
const retVal = (output || [])
|
|
2719
|
-
.filter((e) => e != null)
|
|
2720
|
-
.map((entry) => {
|
|
2721
|
-
if (entry === null) {
|
|
2722
|
-
return null;
|
|
2723
|
-
}
|
|
2724
|
-
return de_CostCategoryReference(entry, context);
|
|
2725
|
-
});
|
|
2726
|
-
return retVal;
|
|
2727
|
-
};
|
|
2728
|
-
const de_CostCategoryRule = (output, context) => {
|
|
2729
|
-
return {
|
|
2730
|
-
InheritedValue: output.InheritedValue != null
|
|
2731
|
-
? de_CostCategoryInheritedValueDimension(output.InheritedValue, context)
|
|
2732
|
-
: undefined,
|
|
2733
|
-
Rule: output.Rule != null ? de_Expression(output.Rule, context) : undefined,
|
|
2734
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2735
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2736
|
-
};
|
|
2737
|
-
};
|
|
2738
|
-
const de_CostCategoryRulesList = (output, context) => {
|
|
2739
|
-
const retVal = (output || [])
|
|
2740
|
-
.filter((e) => e != null)
|
|
2741
|
-
.map((entry) => {
|
|
2742
|
-
if (entry === null) {
|
|
2743
|
-
return null;
|
|
2744
|
-
}
|
|
2745
|
-
return de_CostCategoryRule(entry, context);
|
|
2746
|
-
});
|
|
2747
|
-
return retVal;
|
|
2748
|
-
};
|
|
2749
|
-
const de_CostCategorySplitChargeRule = (output, context) => {
|
|
2750
|
-
return {
|
|
2751
|
-
Method: (0, smithy_client_1.expectString)(output.Method),
|
|
2752
|
-
Parameters: output.Parameters != null ? de_CostCategorySplitChargeRuleParametersList(output.Parameters, context) : undefined,
|
|
2753
|
-
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
2754
|
-
Targets: output.Targets != null ? de_CostCategorySplitChargeRuleTargetsList(output.Targets, context) : undefined,
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const de_CostCategorySplitChargeRuleParameter = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2760
|
-
Values: output.Values != null ? de_CostCategorySplitChargeRuleParameterValuesList(output.Values, context) : undefined,
|
|
2761
|
-
};
|
|
2762
|
-
};
|
|
2763
|
-
const de_CostCategorySplitChargeRuleParametersList = (output, context) => {
|
|
2764
|
-
const retVal = (output || [])
|
|
2765
|
-
.filter((e) => e != null)
|
|
2766
|
-
.map((entry) => {
|
|
2767
|
-
if (entry === null) {
|
|
2768
|
-
return null;
|
|
2769
|
-
}
|
|
2770
|
-
return de_CostCategorySplitChargeRuleParameter(entry, context);
|
|
2771
|
-
});
|
|
2772
|
-
return retVal;
|
|
2773
|
-
};
|
|
2774
|
-
const de_CostCategorySplitChargeRuleParameterValuesList = (output, context) => {
|
|
2775
|
-
const retVal = (output || [])
|
|
2776
|
-
.filter((e) => e != null)
|
|
2777
|
-
.map((entry) => {
|
|
2778
|
-
if (entry === null) {
|
|
2779
|
-
return null;
|
|
2780
|
-
}
|
|
2781
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2782
|
-
});
|
|
2783
|
-
return retVal;
|
|
2784
|
-
};
|
|
2785
|
-
const de_CostCategorySplitChargeRulesList = (output, context) => {
|
|
2786
|
-
const retVal = (output || [])
|
|
2787
|
-
.filter((e) => e != null)
|
|
2788
|
-
.map((entry) => {
|
|
2789
|
-
if (entry === null) {
|
|
2790
|
-
return null;
|
|
2791
|
-
}
|
|
2792
|
-
return de_CostCategorySplitChargeRule(entry, context);
|
|
2793
|
-
});
|
|
2794
|
-
return retVal;
|
|
2795
|
-
};
|
|
2796
|
-
const de_CostCategorySplitChargeRuleTargetsList = (output, context) => {
|
|
2797
|
-
const retVal = (output || [])
|
|
2798
|
-
.filter((e) => e != null)
|
|
2799
|
-
.map((entry) => {
|
|
2800
|
-
if (entry === null) {
|
|
2801
|
-
return null;
|
|
2802
|
-
}
|
|
2803
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2804
|
-
});
|
|
2805
|
-
return retVal;
|
|
2806
|
-
};
|
|
2807
|
-
const de_CostCategoryValues = (output, context) => {
|
|
2808
|
-
return {
|
|
2809
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2810
|
-
MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
|
|
2811
|
-
Values: output.Values != null ? de_Values(output.Values, context) : undefined,
|
|
2812
|
-
};
|
|
2813
|
-
};
|
|
2814
|
-
const de_CostCategoryValuesList = (output, context) => {
|
|
2815
|
-
const retVal = (output || [])
|
|
2816
|
-
.filter((e) => e != null)
|
|
2817
|
-
.map((entry) => {
|
|
2818
|
-
if (entry === null) {
|
|
2819
|
-
return null;
|
|
2820
|
-
}
|
|
2821
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2822
|
-
});
|
|
2823
|
-
return retVal;
|
|
2824
|
-
};
|
|
2825
|
-
const de_Coverage = (output, context) => {
|
|
2826
|
-
return {
|
|
2827
|
-
CoverageCost: output.CoverageCost != null ? de_CoverageCost(output.CoverageCost, context) : undefined,
|
|
2828
|
-
CoverageHours: output.CoverageHours != null ? de_CoverageHours(output.CoverageHours, context) : undefined,
|
|
2829
|
-
CoverageNormalizedUnits: output.CoverageNormalizedUnits != null
|
|
2830
|
-
? de_CoverageNormalizedUnits(output.CoverageNormalizedUnits, context)
|
|
2831
|
-
: undefined,
|
|
2832
|
-
};
|
|
2833
|
-
};
|
|
2834
|
-
const de_CoverageByTime = (output, context) => {
|
|
2835
|
-
return {
|
|
2836
|
-
Groups: output.Groups != null ? de_ReservationCoverageGroups(output.Groups, context) : undefined,
|
|
2837
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
2838
|
-
Total: output.Total != null ? de_Coverage(output.Total, context) : undefined,
|
|
2839
|
-
};
|
|
2840
|
-
};
|
|
2841
|
-
const de_CoverageCost = (output, context) => {
|
|
2842
|
-
return {
|
|
2843
|
-
OnDemandCost: (0, smithy_client_1.expectString)(output.OnDemandCost),
|
|
2844
|
-
};
|
|
2845
|
-
};
|
|
2846
|
-
const de_CoverageHours = (output, context) => {
|
|
2847
|
-
return {
|
|
2848
|
-
CoverageHoursPercentage: (0, smithy_client_1.expectString)(output.CoverageHoursPercentage),
|
|
2849
|
-
OnDemandHours: (0, smithy_client_1.expectString)(output.OnDemandHours),
|
|
2850
|
-
ReservedHours: (0, smithy_client_1.expectString)(output.ReservedHours),
|
|
2851
|
-
TotalRunningHours: (0, smithy_client_1.expectString)(output.TotalRunningHours),
|
|
2852
|
-
};
|
|
2853
|
-
};
|
|
2854
|
-
const de_CoverageNormalizedUnits = (output, context) => {
|
|
2855
|
-
return {
|
|
2856
|
-
CoverageNormalizedUnitsPercentage: (0, smithy_client_1.expectString)(output.CoverageNormalizedUnitsPercentage),
|
|
2857
|
-
OnDemandNormalizedUnits: (0, smithy_client_1.expectString)(output.OnDemandNormalizedUnits),
|
|
2858
|
-
ReservedNormalizedUnits: (0, smithy_client_1.expectString)(output.ReservedNormalizedUnits),
|
|
2859
|
-
TotalRunningNormalizedUnits: (0, smithy_client_1.expectString)(output.TotalRunningNormalizedUnits),
|
|
2860
|
-
};
|
|
2861
|
-
};
|
|
2862
|
-
const de_CoveragesByTime = (output, context) => {
|
|
2863
|
-
const retVal = (output || [])
|
|
2864
|
-
.filter((e) => e != null)
|
|
2865
|
-
.map((entry) => {
|
|
2866
|
-
if (entry === null) {
|
|
2867
|
-
return null;
|
|
2868
|
-
}
|
|
2869
|
-
return de_CoverageByTime(entry, context);
|
|
2870
|
-
});
|
|
2871
|
-
return retVal;
|
|
2872
|
-
};
|
|
2873
|
-
const de_CreateAnomalyMonitorResponse = (output, context) => {
|
|
2874
|
-
return {
|
|
2875
|
-
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
2876
|
-
};
|
|
2877
|
-
};
|
|
2878
|
-
const de_CreateAnomalySubscriptionResponse = (output, context) => {
|
|
2879
|
-
return {
|
|
2880
|
-
SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
|
|
2881
|
-
};
|
|
2882
|
-
};
|
|
2883
|
-
const de_CreateCostCategoryDefinitionResponse = (output, context) => {
|
|
2884
|
-
return {
|
|
2885
|
-
CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
|
|
2886
|
-
EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
|
|
2887
|
-
};
|
|
2888
|
-
};
|
|
2889
|
-
const de_CurrentInstance = (output, context) => {
|
|
2890
|
-
return {
|
|
2891
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
2892
|
-
InstanceName: (0, smithy_client_1.expectString)(output.InstanceName),
|
|
2893
|
-
MonthlyCost: (0, smithy_client_1.expectString)(output.MonthlyCost),
|
|
2894
|
-
OnDemandHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.OnDemandHoursInLookbackPeriod),
|
|
2895
|
-
ReservationCoveredHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.ReservationCoveredHoursInLookbackPeriod),
|
|
2896
|
-
ResourceDetails: output.ResourceDetails != null ? de_ResourceDetails(output.ResourceDetails, context) : undefined,
|
|
2897
|
-
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
2898
|
-
ResourceUtilization: output.ResourceUtilization != null ? de_ResourceUtilization(output.ResourceUtilization, context) : undefined,
|
|
2899
|
-
SavingsPlansCoveredHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.SavingsPlansCoveredHoursInLookbackPeriod),
|
|
2900
|
-
Tags: output.Tags != null ? de_TagValuesList(output.Tags, context) : undefined,
|
|
2901
|
-
TotalRunningHoursInLookbackPeriod: (0, smithy_client_1.expectString)(output.TotalRunningHoursInLookbackPeriod),
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2904
|
-
const de_DataUnavailableException = (output, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2907
|
-
};
|
|
2908
|
-
};
|
|
2909
|
-
const de_DateInterval = (output, context) => {
|
|
2910
|
-
return {
|
|
2911
|
-
End: (0, smithy_client_1.expectString)(output.End),
|
|
2912
|
-
Start: (0, smithy_client_1.expectString)(output.Start),
|
|
2913
|
-
};
|
|
2914
|
-
};
|
|
2915
|
-
const de_DeleteAnomalyMonitorResponse = (output, context) => {
|
|
2916
|
-
return {};
|
|
2917
|
-
};
|
|
2918
|
-
const de_DeleteAnomalySubscriptionResponse = (output, context) => {
|
|
2919
|
-
return {};
|
|
2920
|
-
};
|
|
2921
|
-
const de_DeleteCostCategoryDefinitionResponse = (output, context) => {
|
|
2922
|
-
return {
|
|
2923
|
-
CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
|
|
2924
|
-
EffectiveEnd: (0, smithy_client_1.expectString)(output.EffectiveEnd),
|
|
2925
|
-
};
|
|
2926
|
-
};
|
|
2927
|
-
const de_DescribeCostCategoryDefinitionResponse = (output, context) => {
|
|
2928
|
-
return {
|
|
2929
|
-
CostCategory: output.CostCategory != null ? de_CostCategory(output.CostCategory, context) : undefined,
|
|
2930
|
-
};
|
|
2931
|
-
};
|
|
2932
|
-
const de_DimensionValues = (output, context) => {
|
|
2933
|
-
return {
|
|
2934
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2935
|
-
MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
|
|
2936
|
-
Values: output.Values != null ? de_Values(output.Values, context) : undefined,
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
const de_DimensionValuesWithAttributes = (output, context) => {
|
|
2940
|
-
return {
|
|
2941
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
2942
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2943
|
-
};
|
|
2944
|
-
};
|
|
2945
|
-
const de_DimensionValuesWithAttributesList = (output, context) => {
|
|
2946
|
-
const retVal = (output || [])
|
|
2947
|
-
.filter((e) => e != null)
|
|
2948
|
-
.map((entry) => {
|
|
2949
|
-
if (entry === null) {
|
|
2950
|
-
return null;
|
|
2951
|
-
}
|
|
2952
|
-
return de_DimensionValuesWithAttributes(entry, context);
|
|
2953
|
-
});
|
|
2954
|
-
return retVal;
|
|
2955
|
-
};
|
|
2956
|
-
const de_DiskResourceUtilization = (output, context) => {
|
|
2957
|
-
return {
|
|
2958
|
-
DiskReadBytesPerSecond: (0, smithy_client_1.expectString)(output.DiskReadBytesPerSecond),
|
|
2959
|
-
DiskReadOpsPerSecond: (0, smithy_client_1.expectString)(output.DiskReadOpsPerSecond),
|
|
2960
|
-
DiskWriteBytesPerSecond: (0, smithy_client_1.expectString)(output.DiskWriteBytesPerSecond),
|
|
2961
|
-
DiskWriteOpsPerSecond: (0, smithy_client_1.expectString)(output.DiskWriteOpsPerSecond),
|
|
2962
|
-
};
|
|
2963
|
-
};
|
|
2964
|
-
const de_EBSResourceUtilization = (output, context) => {
|
|
2965
|
-
return {
|
|
2966
|
-
EbsReadBytesPerSecond: (0, smithy_client_1.expectString)(output.EbsReadBytesPerSecond),
|
|
2967
|
-
EbsReadOpsPerSecond: (0, smithy_client_1.expectString)(output.EbsReadOpsPerSecond),
|
|
2968
|
-
EbsWriteBytesPerSecond: (0, smithy_client_1.expectString)(output.EbsWriteBytesPerSecond),
|
|
2969
|
-
EbsWriteOpsPerSecond: (0, smithy_client_1.expectString)(output.EbsWriteOpsPerSecond),
|
|
2970
|
-
};
|
|
2971
|
-
};
|
|
2972
|
-
const de_EC2InstanceDetails = (output, context) => {
|
|
2973
|
-
return {
|
|
2974
|
-
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
2975
|
-
CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
|
|
2976
|
-
Family: (0, smithy_client_1.expectString)(output.Family),
|
|
2977
|
-
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
2978
|
-
Platform: (0, smithy_client_1.expectString)(output.Platform),
|
|
2979
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
2980
|
-
SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
|
|
2981
|
-
Tenancy: (0, smithy_client_1.expectString)(output.Tenancy),
|
|
2982
|
-
};
|
|
2983
|
-
};
|
|
2984
|
-
const de_EC2ResourceDetails = (output, context) => {
|
|
2985
|
-
return {
|
|
2986
|
-
HourlyOnDemandRate: (0, smithy_client_1.expectString)(output.HourlyOnDemandRate),
|
|
2987
|
-
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
2988
|
-
Memory: (0, smithy_client_1.expectString)(output.Memory),
|
|
2989
|
-
NetworkPerformance: (0, smithy_client_1.expectString)(output.NetworkPerformance),
|
|
2990
|
-
Platform: (0, smithy_client_1.expectString)(output.Platform),
|
|
2991
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
2992
|
-
Sku: (0, smithy_client_1.expectString)(output.Sku),
|
|
2993
|
-
Storage: (0, smithy_client_1.expectString)(output.Storage),
|
|
2994
|
-
Vcpu: (0, smithy_client_1.expectString)(output.Vcpu),
|
|
2995
|
-
};
|
|
2996
|
-
};
|
|
2997
|
-
const de_EC2ResourceUtilization = (output, context) => {
|
|
2998
|
-
return {
|
|
2999
|
-
DiskResourceUtilization: output.DiskResourceUtilization != null
|
|
3000
|
-
? de_DiskResourceUtilization(output.DiskResourceUtilization, context)
|
|
3001
|
-
: undefined,
|
|
3002
|
-
EBSResourceUtilization: output.EBSResourceUtilization != null
|
|
3003
|
-
? de_EBSResourceUtilization(output.EBSResourceUtilization, context)
|
|
3004
|
-
: undefined,
|
|
3005
|
-
MaxCpuUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxCpuUtilizationPercentage),
|
|
3006
|
-
MaxMemoryUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxMemoryUtilizationPercentage),
|
|
3007
|
-
MaxStorageUtilizationPercentage: (0, smithy_client_1.expectString)(output.MaxStorageUtilizationPercentage),
|
|
3008
|
-
NetworkResourceUtilization: output.NetworkResourceUtilization != null
|
|
3009
|
-
? de_NetworkResourceUtilization(output.NetworkResourceUtilization, context)
|
|
3010
|
-
: undefined,
|
|
3011
|
-
};
|
|
3012
|
-
};
|
|
3013
|
-
const de_EC2Specification = (output, context) => {
|
|
3014
|
-
return {
|
|
3015
|
-
OfferingClass: (0, smithy_client_1.expectString)(output.OfferingClass),
|
|
3016
|
-
};
|
|
3017
|
-
};
|
|
3018
|
-
const de_ElastiCacheInstanceDetails = (output, context) => {
|
|
3019
|
-
return {
|
|
3020
|
-
CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
|
|
3021
|
-
Family: (0, smithy_client_1.expectString)(output.Family),
|
|
3022
|
-
NodeType: (0, smithy_client_1.expectString)(output.NodeType),
|
|
3023
|
-
ProductDescription: (0, smithy_client_1.expectString)(output.ProductDescription),
|
|
3024
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
3025
|
-
SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
|
|
3026
|
-
};
|
|
3027
|
-
};
|
|
3028
|
-
const de_ESInstanceDetails = (output, context) => {
|
|
3029
|
-
return {
|
|
3030
|
-
CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
|
|
3031
|
-
InstanceClass: (0, smithy_client_1.expectString)(output.InstanceClass),
|
|
3032
|
-
InstanceSize: (0, smithy_client_1.expectString)(output.InstanceSize),
|
|
3033
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
3034
|
-
SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
|
|
3035
|
-
};
|
|
3036
|
-
};
|
|
3037
|
-
const de_Expression = (output, context) => {
|
|
3038
|
-
return {
|
|
3039
|
-
And: output.And != null ? de_Expressions(output.And, context) : undefined,
|
|
3040
|
-
CostCategories: output.CostCategories != null ? de_CostCategoryValues(output.CostCategories, context) : undefined,
|
|
3041
|
-
Dimensions: output.Dimensions != null ? de_DimensionValues(output.Dimensions, context) : undefined,
|
|
3042
|
-
Not: output.Not != null ? de_Expression(output.Not, context) : undefined,
|
|
3043
|
-
Or: output.Or != null ? de_Expressions(output.Or, context) : undefined,
|
|
3044
|
-
Tags: output.Tags != null ? de_TagValues(output.Tags, context) : undefined,
|
|
3045
|
-
};
|
|
3046
|
-
};
|
|
3047
|
-
const de_Expressions = (output, context) => {
|
|
3048
|
-
const retVal = (output || [])
|
|
3049
|
-
.filter((e) => e != null)
|
|
3050
|
-
.map((entry) => {
|
|
3051
|
-
if (entry === null) {
|
|
3052
|
-
return null;
|
|
3053
|
-
}
|
|
3054
|
-
return de_Expression(entry, context);
|
|
3055
|
-
});
|
|
3056
|
-
return retVal;
|
|
3057
|
-
};
|
|
3058
|
-
const de_FindingReasonCodes = (output, context) => {
|
|
3059
|
-
const retVal = (output || [])
|
|
3060
|
-
.filter((e) => e != null)
|
|
3061
|
-
.map((entry) => {
|
|
3062
|
-
if (entry === null) {
|
|
3063
|
-
return null;
|
|
3064
|
-
}
|
|
3065
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3066
|
-
});
|
|
3067
|
-
return retVal;
|
|
3068
|
-
};
|
|
3069
|
-
const de_ForecastResult = (output, context) => {
|
|
3070
|
-
return {
|
|
3071
|
-
MeanValue: (0, smithy_client_1.expectString)(output.MeanValue),
|
|
3072
|
-
PredictionIntervalLowerBound: (0, smithy_client_1.expectString)(output.PredictionIntervalLowerBound),
|
|
3073
|
-
PredictionIntervalUpperBound: (0, smithy_client_1.expectString)(output.PredictionIntervalUpperBound),
|
|
3074
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3075
|
-
};
|
|
3076
|
-
};
|
|
3077
|
-
const de_ForecastResultsByTime = (output, context) => {
|
|
3078
|
-
const retVal = (output || [])
|
|
3079
|
-
.filter((e) => e != null)
|
|
3080
|
-
.map((entry) => {
|
|
3081
|
-
if (entry === null) {
|
|
3082
|
-
return null;
|
|
3083
|
-
}
|
|
3084
|
-
return de_ForecastResult(entry, context);
|
|
3085
|
-
});
|
|
3086
|
-
return retVal;
|
|
3087
|
-
};
|
|
3088
|
-
const de_GenerationExistsException = (output, context) => {
|
|
3089
|
-
return {
|
|
3090
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3091
|
-
};
|
|
3092
|
-
};
|
|
3093
|
-
const de_GenerationSummary = (output, context) => {
|
|
3094
|
-
return {
|
|
3095
|
-
EstimatedCompletionTime: (0, smithy_client_1.expectString)(output.EstimatedCompletionTime),
|
|
3096
|
-
GenerationCompletionTime: (0, smithy_client_1.expectString)(output.GenerationCompletionTime),
|
|
3097
|
-
GenerationStartedTime: (0, smithy_client_1.expectString)(output.GenerationStartedTime),
|
|
3098
|
-
GenerationStatus: (0, smithy_client_1.expectString)(output.GenerationStatus),
|
|
3099
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
3100
|
-
};
|
|
3101
|
-
};
|
|
3102
|
-
const de_GenerationSummaryList = (output, context) => {
|
|
3103
|
-
const retVal = (output || [])
|
|
3104
|
-
.filter((e) => e != null)
|
|
3105
|
-
.map((entry) => {
|
|
3106
|
-
if (entry === null) {
|
|
3107
|
-
return null;
|
|
3108
|
-
}
|
|
3109
|
-
return de_GenerationSummary(entry, context);
|
|
3110
|
-
});
|
|
3111
|
-
return retVal;
|
|
3112
|
-
};
|
|
3113
|
-
const de_GetAnomaliesResponse = (output, context) => {
|
|
3114
|
-
return {
|
|
3115
|
-
Anomalies: output.Anomalies != null ? de_Anomalies(output.Anomalies, context) : undefined,
|
|
3116
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3117
|
-
};
|
|
3118
|
-
};
|
|
3119
|
-
const de_GetAnomalyMonitorsResponse = (output, context) => {
|
|
3120
|
-
return {
|
|
3121
|
-
AnomalyMonitors: output.AnomalyMonitors != null ? de_AnomalyMonitors(output.AnomalyMonitors, context) : undefined,
|
|
3122
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
const de_GetAnomalySubscriptionsResponse = (output, context) => {
|
|
3126
|
-
return {
|
|
3127
|
-
AnomalySubscriptions: output.AnomalySubscriptions != null ? de_AnomalySubscriptions(output.AnomalySubscriptions, context) : undefined,
|
|
3128
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3129
|
-
};
|
|
3130
|
-
};
|
|
3131
|
-
const de_GetCostAndUsageResponse = (output, context) => {
|
|
3132
|
-
return {
|
|
3133
|
-
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
3134
|
-
? de_DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
3135
|
-
: undefined,
|
|
3136
|
-
GroupDefinitions: output.GroupDefinitions != null ? de_GroupDefinitions(output.GroupDefinitions, context) : undefined,
|
|
3137
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3138
|
-
ResultsByTime: output.ResultsByTime != null ? de_ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
3139
|
-
};
|
|
3140
|
-
};
|
|
3141
|
-
const de_GetCostAndUsageWithResourcesResponse = (output, context) => {
|
|
3142
|
-
return {
|
|
3143
|
-
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
3144
|
-
? de_DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
3145
|
-
: undefined,
|
|
3146
|
-
GroupDefinitions: output.GroupDefinitions != null ? de_GroupDefinitions(output.GroupDefinitions, context) : undefined,
|
|
3147
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3148
|
-
ResultsByTime: output.ResultsByTime != null ? de_ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
3149
|
-
};
|
|
3150
|
-
};
|
|
3151
|
-
const de_GetCostCategoriesResponse = (output, context) => {
|
|
3152
|
-
return {
|
|
3153
|
-
CostCategoryNames: output.CostCategoryNames != null ? de_CostCategoryNamesList(output.CostCategoryNames, context) : undefined,
|
|
3154
|
-
CostCategoryValues: output.CostCategoryValues != null ? de_CostCategoryValuesList(output.CostCategoryValues, context) : undefined,
|
|
3155
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3156
|
-
ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
|
|
3157
|
-
TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
|
|
3158
|
-
};
|
|
3159
|
-
};
|
|
3160
|
-
const de_GetCostForecastResponse = (output, context) => {
|
|
3161
|
-
return {
|
|
3162
|
-
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3163
|
-
? de_ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3164
|
-
: undefined,
|
|
3165
|
-
Total: output.Total != null ? de_MetricValue(output.Total, context) : undefined,
|
|
3166
|
-
};
|
|
3167
|
-
};
|
|
3168
|
-
const de_GetDimensionValuesResponse = (output, context) => {
|
|
3169
|
-
return {
|
|
3170
|
-
DimensionValues: output.DimensionValues != null
|
|
3171
|
-
? de_DimensionValuesWithAttributesList(output.DimensionValues, context)
|
|
3172
|
-
: undefined,
|
|
3173
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3174
|
-
ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
|
|
3175
|
-
TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
|
|
3176
|
-
};
|
|
3177
|
-
};
|
|
3178
|
-
const de_GetReservationCoverageResponse = (output, context) => {
|
|
3179
|
-
return {
|
|
3180
|
-
CoveragesByTime: output.CoveragesByTime != null ? de_CoveragesByTime(output.CoveragesByTime, context) : undefined,
|
|
3181
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3182
|
-
Total: output.Total != null ? de_Coverage(output.Total, context) : undefined,
|
|
3183
|
-
};
|
|
3184
|
-
};
|
|
3185
|
-
const de_GetReservationPurchaseRecommendationResponse = (output, context) => {
|
|
3186
|
-
return {
|
|
3187
|
-
Metadata: output.Metadata != null ? de_ReservationPurchaseRecommendationMetadata(output.Metadata, context) : undefined,
|
|
3188
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3189
|
-
Recommendations: output.Recommendations != null
|
|
3190
|
-
? de_ReservationPurchaseRecommendations(output.Recommendations, context)
|
|
3191
|
-
: undefined,
|
|
3192
|
-
};
|
|
3193
|
-
};
|
|
3194
|
-
const de_GetReservationUtilizationResponse = (output, context) => {
|
|
3195
|
-
return {
|
|
3196
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3197
|
-
Total: output.Total != null ? de_ReservationAggregates(output.Total, context) : undefined,
|
|
3198
|
-
UtilizationsByTime: output.UtilizationsByTime != null ? de_UtilizationsByTime(output.UtilizationsByTime, context) : undefined,
|
|
3199
|
-
};
|
|
3200
|
-
};
|
|
3201
|
-
const de_GetRightsizingRecommendationResponse = (output, context) => {
|
|
3202
|
-
return {
|
|
3203
|
-
Configuration: output.Configuration != null
|
|
3204
|
-
? de_RightsizingRecommendationConfiguration(output.Configuration, context)
|
|
3205
|
-
: undefined,
|
|
3206
|
-
Metadata: output.Metadata != null ? de_RightsizingRecommendationMetadata(output.Metadata, context) : undefined,
|
|
3207
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3208
|
-
RightsizingRecommendations: output.RightsizingRecommendations != null
|
|
3209
|
-
? de_RightsizingRecommendationList(output.RightsizingRecommendations, context)
|
|
3210
|
-
: undefined,
|
|
3211
|
-
Summary: output.Summary != null ? de_RightsizingRecommendationSummary(output.Summary, context) : undefined,
|
|
3212
|
-
};
|
|
3213
|
-
};
|
|
3214
|
-
const de_GetSavingsPlansCoverageResponse = (output, context) => {
|
|
3215
|
-
return {
|
|
3216
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3217
|
-
SavingsPlansCoverages: output.SavingsPlansCoverages != null
|
|
3218
|
-
? de_SavingsPlansCoverages(output.SavingsPlansCoverages, context)
|
|
3219
|
-
: undefined,
|
|
3220
|
-
};
|
|
3221
|
-
};
|
|
3222
|
-
const de_GetSavingsPlansPurchaseRecommendationResponse = (output, context) => {
|
|
3223
|
-
return {
|
|
3224
|
-
Metadata: output.Metadata != null ? de_SavingsPlansPurchaseRecommendationMetadata(output.Metadata, context) : undefined,
|
|
3225
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3226
|
-
SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation != null
|
|
3227
|
-
? de_SavingsPlansPurchaseRecommendation(output.SavingsPlansPurchaseRecommendation, context)
|
|
3228
|
-
: undefined,
|
|
3229
|
-
};
|
|
3230
|
-
};
|
|
3231
|
-
const de_GetSavingsPlansUtilizationDetailsResponse = (output, context) => {
|
|
3232
|
-
return {
|
|
3233
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3234
|
-
SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails != null
|
|
3235
|
-
? de_SavingsPlansUtilizationDetails(output.SavingsPlansUtilizationDetails, context)
|
|
3236
|
-
: undefined,
|
|
3237
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3238
|
-
Total: output.Total != null ? de_SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3239
|
-
};
|
|
3240
|
-
};
|
|
3241
|
-
const de_GetSavingsPlansUtilizationResponse = (output, context) => {
|
|
3242
|
-
return {
|
|
3243
|
-
SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime != null
|
|
3244
|
-
? de_SavingsPlansUtilizationsByTime(output.SavingsPlansUtilizationsByTime, context)
|
|
3245
|
-
: undefined,
|
|
3246
|
-
Total: output.Total != null ? de_SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3247
|
-
};
|
|
3248
|
-
};
|
|
3249
|
-
const de_GetTagsResponse = (output, context) => {
|
|
3250
|
-
return {
|
|
3251
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3252
|
-
ReturnSize: (0, smithy_client_1.expectInt32)(output.ReturnSize),
|
|
3253
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
3254
|
-
TotalSize: (0, smithy_client_1.expectInt32)(output.TotalSize),
|
|
3255
|
-
};
|
|
3256
|
-
};
|
|
3257
|
-
const de_GetUsageForecastResponse = (output, context) => {
|
|
3258
|
-
return {
|
|
3259
|
-
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3260
|
-
? de_ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3261
|
-
: undefined,
|
|
3262
|
-
Total: output.Total != null ? de_MetricValue(output.Total, context) : undefined,
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
const de_Group = (output, context) => {
|
|
3266
|
-
return {
|
|
3267
|
-
Keys: output.Keys != null ? de_Keys(output.Keys, context) : undefined,
|
|
3268
|
-
Metrics: output.Metrics != null ? de_Metrics(output.Metrics, context) : undefined,
|
|
3269
|
-
};
|
|
3270
|
-
};
|
|
3271
|
-
const de_GroupDefinition = (output, context) => {
|
|
3272
|
-
return {
|
|
3273
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3274
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3275
|
-
};
|
|
3276
|
-
};
|
|
3277
|
-
const de_GroupDefinitions = (output, context) => {
|
|
3278
|
-
const retVal = (output || [])
|
|
3279
|
-
.filter((e) => e != null)
|
|
3280
|
-
.map((entry) => {
|
|
3281
|
-
if (entry === null) {
|
|
3282
|
-
return null;
|
|
3283
|
-
}
|
|
3284
|
-
return de_GroupDefinition(entry, context);
|
|
3285
|
-
});
|
|
3286
|
-
return retVal;
|
|
3287
|
-
};
|
|
3288
|
-
const de_Groups = (output, context) => {
|
|
3289
|
-
const retVal = (output || [])
|
|
3290
|
-
.filter((e) => e != null)
|
|
3291
|
-
.map((entry) => {
|
|
3292
|
-
if (entry === null) {
|
|
3293
|
-
return null;
|
|
3294
|
-
}
|
|
3295
|
-
return de_Group(entry, context);
|
|
3296
|
-
});
|
|
3297
|
-
return retVal;
|
|
3298
|
-
};
|
|
3299
|
-
const de_Impact = (output, context) => {
|
|
3300
|
-
return {
|
|
3301
|
-
MaxImpact: (0, smithy_client_1.limitedParseDouble)(output.MaxImpact),
|
|
3302
|
-
TotalActualSpend: (0, smithy_client_1.limitedParseDouble)(output.TotalActualSpend),
|
|
3303
|
-
TotalExpectedSpend: (0, smithy_client_1.limitedParseDouble)(output.TotalExpectedSpend),
|
|
3304
|
-
TotalImpact: (0, smithy_client_1.limitedParseDouble)(output.TotalImpact),
|
|
3305
|
-
TotalImpactPercentage: (0, smithy_client_1.limitedParseDouble)(output.TotalImpactPercentage),
|
|
3306
|
-
};
|
|
3307
|
-
};
|
|
3308
|
-
const de_InstanceDetails = (output, context) => {
|
|
3309
|
-
return {
|
|
3310
|
-
EC2InstanceDetails: output.EC2InstanceDetails != null ? de_EC2InstanceDetails(output.EC2InstanceDetails, context) : undefined,
|
|
3311
|
-
ESInstanceDetails: output.ESInstanceDetails != null ? de_ESInstanceDetails(output.ESInstanceDetails, context) : undefined,
|
|
3312
|
-
ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails != null
|
|
3313
|
-
? de_ElastiCacheInstanceDetails(output.ElastiCacheInstanceDetails, context)
|
|
3314
|
-
: undefined,
|
|
3315
|
-
RDSInstanceDetails: output.RDSInstanceDetails != null ? de_RDSInstanceDetails(output.RDSInstanceDetails, context) : undefined,
|
|
3316
|
-
RedshiftInstanceDetails: output.RedshiftInstanceDetails != null
|
|
3317
|
-
? de_RedshiftInstanceDetails(output.RedshiftInstanceDetails, context)
|
|
3318
|
-
: undefined,
|
|
3319
|
-
};
|
|
3320
|
-
};
|
|
3321
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
3322
|
-
return {
|
|
3323
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3324
|
-
};
|
|
3325
|
-
};
|
|
3326
|
-
const de_Keys = (output, context) => {
|
|
3327
|
-
const retVal = (output || [])
|
|
3328
|
-
.filter((e) => e != null)
|
|
3329
|
-
.map((entry) => {
|
|
3330
|
-
if (entry === null) {
|
|
3331
|
-
return null;
|
|
3332
|
-
}
|
|
3333
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3334
|
-
});
|
|
3335
|
-
return retVal;
|
|
3336
|
-
};
|
|
3337
|
-
const de_LimitExceededException = (output, context) => {
|
|
3338
|
-
return {
|
|
3339
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3340
|
-
};
|
|
3341
|
-
};
|
|
3342
|
-
const de_ListCostAllocationTagsResponse = (output, context) => {
|
|
3343
|
-
return {
|
|
3344
|
-
CostAllocationTags: output.CostAllocationTags != null ? de_CostAllocationTagList(output.CostAllocationTags, context) : undefined,
|
|
3345
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3346
|
-
};
|
|
3347
|
-
};
|
|
3348
|
-
const de_ListCostCategoryDefinitionsResponse = (output, context) => {
|
|
3349
|
-
return {
|
|
3350
|
-
CostCategoryReferences: output.CostCategoryReferences != null
|
|
3351
|
-
? de_CostCategoryReferencesList(output.CostCategoryReferences, context)
|
|
3352
|
-
: undefined,
|
|
3353
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3354
|
-
};
|
|
3355
|
-
};
|
|
3356
|
-
const de_ListSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
|
|
3357
|
-
return {
|
|
3358
|
-
GenerationSummaryList: output.GenerationSummaryList != null
|
|
3359
|
-
? de_GenerationSummaryList(output.GenerationSummaryList, context)
|
|
3360
|
-
: undefined,
|
|
3361
|
-
NextPageToken: (0, smithy_client_1.expectString)(output.NextPageToken),
|
|
3362
|
-
};
|
|
3363
|
-
};
|
|
3364
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3365
|
-
return {
|
|
3366
|
-
ResourceTags: output.ResourceTags != null ? de_ResourceTagList(output.ResourceTags, context) : undefined,
|
|
3367
|
-
};
|
|
3368
|
-
};
|
|
3369
|
-
const de_MatchOptions = (output, context) => {
|
|
3370
|
-
const retVal = (output || [])
|
|
3371
|
-
.filter((e) => e != null)
|
|
3372
|
-
.map((entry) => {
|
|
3373
|
-
if (entry === null) {
|
|
3374
|
-
return null;
|
|
3375
|
-
}
|
|
3376
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3377
|
-
});
|
|
3378
|
-
return retVal;
|
|
3379
|
-
};
|
|
3380
|
-
const de_Metrics = (output, context) => {
|
|
3381
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3382
|
-
if (value === null) {
|
|
3383
|
-
return acc;
|
|
3384
|
-
}
|
|
3385
|
-
acc[key] = de_MetricValue(value, context);
|
|
3386
|
-
return acc;
|
|
3387
|
-
}, {});
|
|
3388
|
-
};
|
|
3389
|
-
const de_MetricValue = (output, context) => {
|
|
3390
|
-
return {
|
|
3391
|
-
Amount: (0, smithy_client_1.expectString)(output.Amount),
|
|
3392
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
3393
|
-
};
|
|
3394
|
-
};
|
|
3395
|
-
const de_ModifyRecommendationDetail = (output, context) => {
|
|
3396
|
-
return {
|
|
3397
|
-
TargetInstances: output.TargetInstances != null ? de_TargetInstancesList(output.TargetInstances, context) : undefined,
|
|
3398
|
-
};
|
|
3399
|
-
};
|
|
3400
|
-
const de_MonitorArnList = (output, context) => {
|
|
3401
|
-
const retVal = (output || [])
|
|
3402
|
-
.filter((e) => e != null)
|
|
3403
|
-
.map((entry) => {
|
|
3404
|
-
if (entry === null) {
|
|
3405
|
-
return null;
|
|
3406
|
-
}
|
|
3407
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3408
|
-
});
|
|
3409
|
-
return retVal;
|
|
3410
|
-
};
|
|
3411
|
-
const de_NetworkResourceUtilization = (output, context) => {
|
|
3412
|
-
return {
|
|
3413
|
-
NetworkInBytesPerSecond: (0, smithy_client_1.expectString)(output.NetworkInBytesPerSecond),
|
|
3414
|
-
NetworkOutBytesPerSecond: (0, smithy_client_1.expectString)(output.NetworkOutBytesPerSecond),
|
|
3415
|
-
NetworkPacketsInPerSecond: (0, smithy_client_1.expectString)(output.NetworkPacketsInPerSecond),
|
|
3416
|
-
NetworkPacketsOutPerSecond: (0, smithy_client_1.expectString)(output.NetworkPacketsOutPerSecond),
|
|
3417
|
-
};
|
|
3418
|
-
};
|
|
3419
|
-
const de_PlatformDifferences = (output, context) => {
|
|
3420
|
-
const retVal = (output || [])
|
|
3421
|
-
.filter((e) => e != null)
|
|
3422
|
-
.map((entry) => {
|
|
3423
|
-
if (entry === null) {
|
|
3424
|
-
return null;
|
|
3425
|
-
}
|
|
3426
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3427
|
-
});
|
|
3428
|
-
return retVal;
|
|
3429
|
-
};
|
|
3430
|
-
const de_ProvideAnomalyFeedbackResponse = (output, context) => {
|
|
3431
|
-
return {
|
|
3432
|
-
AnomalyId: (0, smithy_client_1.expectString)(output.AnomalyId),
|
|
3433
|
-
};
|
|
3434
|
-
};
|
|
3435
|
-
const de_RDSInstanceDetails = (output, context) => {
|
|
3436
|
-
return {
|
|
3437
|
-
CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
|
|
3438
|
-
DatabaseEdition: (0, smithy_client_1.expectString)(output.DatabaseEdition),
|
|
3439
|
-
DatabaseEngine: (0, smithy_client_1.expectString)(output.DatabaseEngine),
|
|
3440
|
-
DeploymentOption: (0, smithy_client_1.expectString)(output.DeploymentOption),
|
|
3441
|
-
Family: (0, smithy_client_1.expectString)(output.Family),
|
|
3442
|
-
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
3443
|
-
LicenseModel: (0, smithy_client_1.expectString)(output.LicenseModel),
|
|
3444
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
3445
|
-
SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
|
|
3446
|
-
};
|
|
3447
|
-
};
|
|
3448
|
-
const de_RedshiftInstanceDetails = (output, context) => {
|
|
3449
|
-
return {
|
|
3450
|
-
CurrentGeneration: (0, smithy_client_1.expectBoolean)(output.CurrentGeneration),
|
|
3451
|
-
Family: (0, smithy_client_1.expectString)(output.Family),
|
|
3452
|
-
NodeType: (0, smithy_client_1.expectString)(output.NodeType),
|
|
3453
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
3454
|
-
SizeFlexEligible: (0, smithy_client_1.expectBoolean)(output.SizeFlexEligible),
|
|
3455
|
-
};
|
|
3456
|
-
};
|
|
3457
|
-
const de_RequestChangedException = (output, context) => {
|
|
3458
|
-
return {
|
|
3459
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3460
|
-
};
|
|
3461
|
-
};
|
|
3462
|
-
const de_ReservationAggregates = (output, context) => {
|
|
3463
|
-
return {
|
|
3464
|
-
AmortizedRecurringFee: (0, smithy_client_1.expectString)(output.AmortizedRecurringFee),
|
|
3465
|
-
AmortizedUpfrontFee: (0, smithy_client_1.expectString)(output.AmortizedUpfrontFee),
|
|
3466
|
-
NetRISavings: (0, smithy_client_1.expectString)(output.NetRISavings),
|
|
3467
|
-
OnDemandCostOfRIHoursUsed: (0, smithy_client_1.expectString)(output.OnDemandCostOfRIHoursUsed),
|
|
3468
|
-
PurchasedHours: (0, smithy_client_1.expectString)(output.PurchasedHours),
|
|
3469
|
-
PurchasedUnits: (0, smithy_client_1.expectString)(output.PurchasedUnits),
|
|
3470
|
-
RICostForUnusedHours: (0, smithy_client_1.expectString)(output.RICostForUnusedHours),
|
|
3471
|
-
RealizedSavings: (0, smithy_client_1.expectString)(output.RealizedSavings),
|
|
3472
|
-
TotalActualHours: (0, smithy_client_1.expectString)(output.TotalActualHours),
|
|
3473
|
-
TotalActualUnits: (0, smithy_client_1.expectString)(output.TotalActualUnits),
|
|
3474
|
-
TotalAmortizedFee: (0, smithy_client_1.expectString)(output.TotalAmortizedFee),
|
|
3475
|
-
TotalPotentialRISavings: (0, smithy_client_1.expectString)(output.TotalPotentialRISavings),
|
|
3476
|
-
UnrealizedSavings: (0, smithy_client_1.expectString)(output.UnrealizedSavings),
|
|
3477
|
-
UnusedHours: (0, smithy_client_1.expectString)(output.UnusedHours),
|
|
3478
|
-
UnusedUnits: (0, smithy_client_1.expectString)(output.UnusedUnits),
|
|
3479
|
-
UtilizationPercentage: (0, smithy_client_1.expectString)(output.UtilizationPercentage),
|
|
3480
|
-
UtilizationPercentageInUnits: (0, smithy_client_1.expectString)(output.UtilizationPercentageInUnits),
|
|
3481
|
-
};
|
|
3482
|
-
};
|
|
3483
|
-
const de_ReservationCoverageGroup = (output, context) => {
|
|
3484
|
-
return {
|
|
3485
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3486
|
-
Coverage: output.Coverage != null ? de_Coverage(output.Coverage, context) : undefined,
|
|
3487
|
-
};
|
|
3488
|
-
};
|
|
3489
|
-
const de_ReservationCoverageGroups = (output, context) => {
|
|
3490
|
-
const retVal = (output || [])
|
|
3491
|
-
.filter((e) => e != null)
|
|
3492
|
-
.map((entry) => {
|
|
3493
|
-
if (entry === null) {
|
|
3494
|
-
return null;
|
|
3495
|
-
}
|
|
3496
|
-
return de_ReservationCoverageGroup(entry, context);
|
|
3497
|
-
});
|
|
3498
|
-
return retVal;
|
|
3499
|
-
};
|
|
3500
|
-
const de_ReservationPurchaseRecommendation = (output, context) => {
|
|
3501
|
-
return {
|
|
3502
|
-
AccountScope: (0, smithy_client_1.expectString)(output.AccountScope),
|
|
3503
|
-
LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
|
|
3504
|
-
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
3505
|
-
RecommendationDetails: output.RecommendationDetails != null
|
|
3506
|
-
? de_ReservationPurchaseRecommendationDetails(output.RecommendationDetails, context)
|
|
3507
|
-
: undefined,
|
|
3508
|
-
RecommendationSummary: output.RecommendationSummary != null
|
|
3509
|
-
? de_ReservationPurchaseRecommendationSummary(output.RecommendationSummary, context)
|
|
3510
|
-
: undefined,
|
|
3511
|
-
ServiceSpecification: output.ServiceSpecification != null ? de_ServiceSpecification(output.ServiceSpecification, context) : undefined,
|
|
3512
|
-
TermInYears: (0, smithy_client_1.expectString)(output.TermInYears),
|
|
3513
|
-
};
|
|
3514
|
-
};
|
|
3515
|
-
const de_ReservationPurchaseRecommendationDetail = (output, context) => {
|
|
3516
|
-
return {
|
|
3517
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
3518
|
-
AverageNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.AverageNormalizedUnitsUsedPerHour),
|
|
3519
|
-
AverageNumberOfInstancesUsedPerHour: (0, smithy_client_1.expectString)(output.AverageNumberOfInstancesUsedPerHour),
|
|
3520
|
-
AverageUtilization: (0, smithy_client_1.expectString)(output.AverageUtilization),
|
|
3521
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
3522
|
-
EstimatedBreakEvenInMonths: (0, smithy_client_1.expectString)(output.EstimatedBreakEvenInMonths),
|
|
3523
|
-
EstimatedMonthlyOnDemandCost: (0, smithy_client_1.expectString)(output.EstimatedMonthlyOnDemandCost),
|
|
3524
|
-
EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
|
|
3525
|
-
EstimatedMonthlySavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsPercentage),
|
|
3526
|
-
EstimatedReservationCostForLookbackPeriod: (0, smithy_client_1.expectString)(output.EstimatedReservationCostForLookbackPeriod),
|
|
3527
|
-
InstanceDetails: output.InstanceDetails != null ? de_InstanceDetails(output.InstanceDetails, context) : undefined,
|
|
3528
|
-
MaximumNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.MaximumNormalizedUnitsUsedPerHour),
|
|
3529
|
-
MaximumNumberOfInstancesUsedPerHour: (0, smithy_client_1.expectString)(output.MaximumNumberOfInstancesUsedPerHour),
|
|
3530
|
-
MinimumNormalizedUnitsUsedPerHour: (0, smithy_client_1.expectString)(output.MinimumNormalizedUnitsUsedPerHour),
|
|
3531
|
-
MinimumNumberOfInstancesUsedPerHour: (0, smithy_client_1.expectString)(output.MinimumNumberOfInstancesUsedPerHour),
|
|
3532
|
-
RecommendedNormalizedUnitsToPurchase: (0, smithy_client_1.expectString)(output.RecommendedNormalizedUnitsToPurchase),
|
|
3533
|
-
RecommendedNumberOfInstancesToPurchase: (0, smithy_client_1.expectString)(output.RecommendedNumberOfInstancesToPurchase),
|
|
3534
|
-
RecurringStandardMonthlyCost: (0, smithy_client_1.expectString)(output.RecurringStandardMonthlyCost),
|
|
3535
|
-
UpfrontCost: (0, smithy_client_1.expectString)(output.UpfrontCost),
|
|
3536
|
-
};
|
|
3537
|
-
};
|
|
3538
|
-
const de_ReservationPurchaseRecommendationDetails = (output, context) => {
|
|
3539
|
-
const retVal = (output || [])
|
|
3540
|
-
.filter((e) => e != null)
|
|
3541
|
-
.map((entry) => {
|
|
3542
|
-
if (entry === null) {
|
|
3543
|
-
return null;
|
|
3544
|
-
}
|
|
3545
|
-
return de_ReservationPurchaseRecommendationDetail(entry, context);
|
|
3546
|
-
});
|
|
3547
|
-
return retVal;
|
|
3548
|
-
};
|
|
3549
|
-
const de_ReservationPurchaseRecommendationMetadata = (output, context) => {
|
|
3550
|
-
return {
|
|
3551
|
-
GenerationTimestamp: (0, smithy_client_1.expectString)(output.GenerationTimestamp),
|
|
3552
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
3553
|
-
};
|
|
3554
|
-
};
|
|
3555
|
-
const de_ReservationPurchaseRecommendations = (output, context) => {
|
|
3556
|
-
const retVal = (output || [])
|
|
3557
|
-
.filter((e) => e != null)
|
|
3558
|
-
.map((entry) => {
|
|
3559
|
-
if (entry === null) {
|
|
3560
|
-
return null;
|
|
3561
|
-
}
|
|
3562
|
-
return de_ReservationPurchaseRecommendation(entry, context);
|
|
3563
|
-
});
|
|
3564
|
-
return retVal;
|
|
3565
|
-
};
|
|
3566
|
-
const de_ReservationPurchaseRecommendationSummary = (output, context) => {
|
|
3567
|
-
return {
|
|
3568
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
3569
|
-
TotalEstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.TotalEstimatedMonthlySavingsAmount),
|
|
3570
|
-
TotalEstimatedMonthlySavingsPercentage: (0, smithy_client_1.expectString)(output.TotalEstimatedMonthlySavingsPercentage),
|
|
3571
|
-
};
|
|
3572
|
-
};
|
|
3573
|
-
const de_ReservationUtilizationGroup = (output, context) => {
|
|
3574
|
-
return {
|
|
3575
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3576
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3577
|
-
Utilization: output.Utilization != null ? de_ReservationAggregates(output.Utilization, context) : undefined,
|
|
3578
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3579
|
-
};
|
|
3580
|
-
};
|
|
3581
|
-
const de_ReservationUtilizationGroups = (output, context) => {
|
|
3582
|
-
const retVal = (output || [])
|
|
3583
|
-
.filter((e) => e != null)
|
|
3584
|
-
.map((entry) => {
|
|
3585
|
-
if (entry === null) {
|
|
3586
|
-
return null;
|
|
3587
|
-
}
|
|
3588
|
-
return de_ReservationUtilizationGroup(entry, context);
|
|
3589
|
-
});
|
|
3590
|
-
return retVal;
|
|
3591
|
-
};
|
|
3592
|
-
const de_ResourceDetails = (output, context) => {
|
|
3593
|
-
return {
|
|
3594
|
-
EC2ResourceDetails: output.EC2ResourceDetails != null ? de_EC2ResourceDetails(output.EC2ResourceDetails, context) : undefined,
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
3598
|
-
return {
|
|
3599
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3600
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
3601
|
-
};
|
|
3602
|
-
};
|
|
3603
|
-
const de_ResourceTag = (output, context) => {
|
|
3604
|
-
return {
|
|
3605
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3606
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3607
|
-
};
|
|
3608
|
-
};
|
|
3609
|
-
const de_ResourceTagList = (output, context) => {
|
|
3610
|
-
const retVal = (output || [])
|
|
3611
|
-
.filter((e) => e != null)
|
|
3612
|
-
.map((entry) => {
|
|
3613
|
-
if (entry === null) {
|
|
3614
|
-
return null;
|
|
3615
|
-
}
|
|
3616
|
-
return de_ResourceTag(entry, context);
|
|
3617
|
-
});
|
|
3618
|
-
return retVal;
|
|
3619
|
-
};
|
|
3620
|
-
const de_ResourceUtilization = (output, context) => {
|
|
3621
|
-
return {
|
|
3622
|
-
EC2ResourceUtilization: output.EC2ResourceUtilization != null
|
|
3623
|
-
? de_EC2ResourceUtilization(output.EC2ResourceUtilization, context)
|
|
3624
|
-
: undefined,
|
|
3625
|
-
};
|
|
3626
|
-
};
|
|
3627
|
-
const de_ResultByTime = (output, context) => {
|
|
3628
|
-
return {
|
|
3629
|
-
Estimated: (0, smithy_client_1.expectBoolean)(output.Estimated),
|
|
3630
|
-
Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
|
|
3631
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3632
|
-
Total: output.Total != null ? de_Metrics(output.Total, context) : undefined,
|
|
3633
|
-
};
|
|
3634
|
-
};
|
|
3635
|
-
const de_ResultsByTime = (output, context) => {
|
|
3636
|
-
const retVal = (output || [])
|
|
3637
|
-
.filter((e) => e != null)
|
|
3638
|
-
.map((entry) => {
|
|
3639
|
-
if (entry === null) {
|
|
3640
|
-
return null;
|
|
3641
|
-
}
|
|
3642
|
-
return de_ResultByTime(entry, context);
|
|
2093
|
+
return de_AnomalyMonitor(entry, context);
|
|
3643
2094
|
});
|
|
3644
2095
|
return retVal;
|
|
3645
2096
|
};
|
|
3646
|
-
const
|
|
3647
|
-
return {
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
FindingReasonCodes: output.FindingReasonCodes != null ? de_FindingReasonCodes(output.FindingReasonCodes, context) : undefined,
|
|
3651
|
-
ModifyRecommendationDetail: output.ModifyRecommendationDetail != null
|
|
3652
|
-
? de_ModifyRecommendationDetail(output.ModifyRecommendationDetail, context)
|
|
3653
|
-
: undefined,
|
|
3654
|
-
RightsizingType: (0, smithy_client_1.expectString)(output.RightsizingType),
|
|
3655
|
-
TerminateRecommendationDetail: output.TerminateRecommendationDetail != null
|
|
3656
|
-
? de_TerminateRecommendationDetail(output.TerminateRecommendationDetail, context)
|
|
3657
|
-
: undefined,
|
|
3658
|
-
};
|
|
3659
|
-
};
|
|
3660
|
-
const de_RightsizingRecommendationConfiguration = (output, context) => {
|
|
3661
|
-
return {
|
|
3662
|
-
BenefitsConsidered: (0, smithy_client_1.expectBoolean)(output.BenefitsConsidered),
|
|
3663
|
-
RecommendationTarget: (0, smithy_client_1.expectString)(output.RecommendationTarget),
|
|
3664
|
-
};
|
|
3665
|
-
};
|
|
3666
|
-
const de_RightsizingRecommendationList = (output, context) => {
|
|
3667
|
-
const retVal = (output || [])
|
|
3668
|
-
.filter((e) => e != null)
|
|
3669
|
-
.map((entry) => {
|
|
3670
|
-
if (entry === null) {
|
|
3671
|
-
return null;
|
|
3672
|
-
}
|
|
3673
|
-
return de_RightsizingRecommendation(entry, context);
|
|
2097
|
+
const de_AnomalyScore = (output, context) => {
|
|
2098
|
+
return (0, smithy_client_1.take)(output, {
|
|
2099
|
+
CurrentScore: smithy_client_1.limitedParseDouble,
|
|
2100
|
+
MaxScore: smithy_client_1.limitedParseDouble,
|
|
3674
2101
|
});
|
|
3675
|
-
return retVal;
|
|
3676
|
-
};
|
|
3677
|
-
const de_RightsizingRecommendationMetadata = (output, context) => {
|
|
3678
|
-
return {
|
|
3679
|
-
AdditionalMetadata: (0, smithy_client_1.expectString)(output.AdditionalMetadata),
|
|
3680
|
-
GenerationTimestamp: (0, smithy_client_1.expectString)(output.GenerationTimestamp),
|
|
3681
|
-
LookbackPeriodInDays: (0, smithy_client_1.expectString)(output.LookbackPeriodInDays),
|
|
3682
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
3683
|
-
};
|
|
3684
|
-
};
|
|
3685
|
-
const de_RightsizingRecommendationSummary = (output, context) => {
|
|
3686
|
-
return {
|
|
3687
|
-
EstimatedTotalMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedTotalMonthlySavingsAmount),
|
|
3688
|
-
SavingsCurrencyCode: (0, smithy_client_1.expectString)(output.SavingsCurrencyCode),
|
|
3689
|
-
SavingsPercentage: (0, smithy_client_1.expectString)(output.SavingsPercentage),
|
|
3690
|
-
TotalRecommendationCount: (0, smithy_client_1.expectString)(output.TotalRecommendationCount),
|
|
3691
|
-
};
|
|
3692
|
-
};
|
|
3693
|
-
const de_RootCause = (output, context) => {
|
|
3694
|
-
return {
|
|
3695
|
-
LinkedAccount: (0, smithy_client_1.expectString)(output.LinkedAccount),
|
|
3696
|
-
LinkedAccountName: (0, smithy_client_1.expectString)(output.LinkedAccountName),
|
|
3697
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
3698
|
-
Service: (0, smithy_client_1.expectString)(output.Service),
|
|
3699
|
-
UsageType: (0, smithy_client_1.expectString)(output.UsageType),
|
|
3700
|
-
};
|
|
3701
2102
|
};
|
|
3702
|
-
const
|
|
3703
|
-
|
|
3704
|
-
.
|
|
3705
|
-
.
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
2103
|
+
const de_AnomalySubscription = (output, context) => {
|
|
2104
|
+
return (0, smithy_client_1.take)(output, {
|
|
2105
|
+
AccountId: smithy_client_1.expectString,
|
|
2106
|
+
Frequency: smithy_client_1.expectString,
|
|
2107
|
+
MonitorArnList: smithy_client_1._json,
|
|
2108
|
+
Subscribers: smithy_client_1._json,
|
|
2109
|
+
SubscriptionArn: smithy_client_1.expectString,
|
|
2110
|
+
SubscriptionName: smithy_client_1.expectString,
|
|
2111
|
+
Threshold: smithy_client_1.limitedParseDouble,
|
|
2112
|
+
ThresholdExpression: (_) => de_Expression(_, context),
|
|
3710
2113
|
});
|
|
3711
|
-
return retVal;
|
|
3712
|
-
};
|
|
3713
|
-
const de_SavingsPlansAmortizedCommitment = (output, context) => {
|
|
3714
|
-
return {
|
|
3715
|
-
AmortizedRecurringCommitment: (0, smithy_client_1.expectString)(output.AmortizedRecurringCommitment),
|
|
3716
|
-
AmortizedUpfrontCommitment: (0, smithy_client_1.expectString)(output.AmortizedUpfrontCommitment),
|
|
3717
|
-
TotalAmortizedCommitment: (0, smithy_client_1.expectString)(output.TotalAmortizedCommitment),
|
|
3718
|
-
};
|
|
3719
|
-
};
|
|
3720
|
-
const de_SavingsPlansCoverage = (output, context) => {
|
|
3721
|
-
return {
|
|
3722
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3723
|
-
Coverage: output.Coverage != null ? de_SavingsPlansCoverageData(output.Coverage, context) : undefined,
|
|
3724
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3725
|
-
};
|
|
3726
2114
|
};
|
|
3727
|
-
const
|
|
3728
|
-
return {
|
|
3729
|
-
CoveragePercentage: (0, smithy_client_1.expectString)(output.CoveragePercentage),
|
|
3730
|
-
OnDemandCost: (0, smithy_client_1.expectString)(output.OnDemandCost),
|
|
3731
|
-
SpendCoveredBySavingsPlans: (0, smithy_client_1.expectString)(output.SpendCoveredBySavingsPlans),
|
|
3732
|
-
TotalCost: (0, smithy_client_1.expectString)(output.TotalCost),
|
|
3733
|
-
};
|
|
3734
|
-
};
|
|
3735
|
-
const de_SavingsPlansCoverages = (output, context) => {
|
|
2115
|
+
const de_AnomalySubscriptions = (output, context) => {
|
|
3736
2116
|
const retVal = (output || [])
|
|
3737
2117
|
.filter((e) => e != null)
|
|
3738
2118
|
.map((entry) => {
|
|
3739
|
-
|
|
3740
|
-
return null;
|
|
3741
|
-
}
|
|
3742
|
-
return de_SavingsPlansCoverage(entry, context);
|
|
2119
|
+
return de_AnomalySubscription(entry, context);
|
|
3743
2120
|
});
|
|
3744
2121
|
return retVal;
|
|
3745
2122
|
};
|
|
3746
|
-
const
|
|
3747
|
-
return {
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
PaymentOption: (0, smithy_client_1.expectString)(output.PaymentOption),
|
|
3758
|
-
SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails != null
|
|
3759
|
-
? de_SavingsPlansPurchaseRecommendationDetailList(output.SavingsPlansPurchaseRecommendationDetails, context)
|
|
3760
|
-
: undefined,
|
|
3761
|
-
SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary != null
|
|
3762
|
-
? de_SavingsPlansPurchaseRecommendationSummary(output.SavingsPlansPurchaseRecommendationSummary, context)
|
|
3763
|
-
: undefined,
|
|
3764
|
-
SavingsPlansType: (0, smithy_client_1.expectString)(output.SavingsPlansType),
|
|
3765
|
-
TermInYears: (0, smithy_client_1.expectString)(output.TermInYears),
|
|
3766
|
-
};
|
|
3767
|
-
};
|
|
3768
|
-
const de_SavingsPlansPurchaseRecommendationDetail = (output, context) => {
|
|
3769
|
-
return {
|
|
3770
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
3771
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
3772
|
-
CurrentAverageHourlyOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentAverageHourlyOnDemandSpend),
|
|
3773
|
-
CurrentMaximumHourlyOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentMaximumHourlyOnDemandSpend),
|
|
3774
|
-
CurrentMinimumHourlyOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentMinimumHourlyOnDemandSpend),
|
|
3775
|
-
EstimatedAverageUtilization: (0, smithy_client_1.expectString)(output.EstimatedAverageUtilization),
|
|
3776
|
-
EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
|
|
3777
|
-
EstimatedOnDemandCost: (0, smithy_client_1.expectString)(output.EstimatedOnDemandCost),
|
|
3778
|
-
EstimatedOnDemandCostWithCurrentCommitment: (0, smithy_client_1.expectString)(output.EstimatedOnDemandCostWithCurrentCommitment),
|
|
3779
|
-
EstimatedROI: (0, smithy_client_1.expectString)(output.EstimatedROI),
|
|
3780
|
-
EstimatedSPCost: (0, smithy_client_1.expectString)(output.EstimatedSPCost),
|
|
3781
|
-
EstimatedSavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedSavingsAmount),
|
|
3782
|
-
EstimatedSavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedSavingsPercentage),
|
|
3783
|
-
HourlyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.HourlyCommitmentToPurchase),
|
|
3784
|
-
SavingsPlansDetails: output.SavingsPlansDetails != null ? de_SavingsPlansDetails(output.SavingsPlansDetails, context) : undefined,
|
|
3785
|
-
UpfrontCost: (0, smithy_client_1.expectString)(output.UpfrontCost),
|
|
3786
|
-
};
|
|
3787
|
-
};
|
|
3788
|
-
const de_SavingsPlansPurchaseRecommendationDetailList = (output, context) => {
|
|
3789
|
-
const retVal = (output || [])
|
|
3790
|
-
.filter((e) => e != null)
|
|
3791
|
-
.map((entry) => {
|
|
3792
|
-
if (entry === null) {
|
|
3793
|
-
return null;
|
|
3794
|
-
}
|
|
3795
|
-
return de_SavingsPlansPurchaseRecommendationDetail(entry, context);
|
|
2123
|
+
const de_CostCategory = (output, context) => {
|
|
2124
|
+
return (0, smithy_client_1.take)(output, {
|
|
2125
|
+
CostCategoryArn: smithy_client_1.expectString,
|
|
2126
|
+
DefaultValue: smithy_client_1.expectString,
|
|
2127
|
+
EffectiveEnd: smithy_client_1.expectString,
|
|
2128
|
+
EffectiveStart: smithy_client_1.expectString,
|
|
2129
|
+
Name: smithy_client_1.expectString,
|
|
2130
|
+
ProcessingStatus: smithy_client_1._json,
|
|
2131
|
+
RuleVersion: smithy_client_1.expectString,
|
|
2132
|
+
Rules: (_) => de_CostCategoryRulesList(_, context),
|
|
2133
|
+
SplitChargeRules: smithy_client_1._json,
|
|
3796
2134
|
});
|
|
3797
|
-
return retVal;
|
|
3798
|
-
};
|
|
3799
|
-
const de_SavingsPlansPurchaseRecommendationMetadata = (output, context) => {
|
|
3800
|
-
return {
|
|
3801
|
-
AdditionalMetadata: (0, smithy_client_1.expectString)(output.AdditionalMetadata),
|
|
3802
|
-
GenerationTimestamp: (0, smithy_client_1.expectString)(output.GenerationTimestamp),
|
|
3803
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
3804
|
-
};
|
|
3805
|
-
};
|
|
3806
|
-
const de_SavingsPlansPurchaseRecommendationSummary = (output, context) => {
|
|
3807
|
-
return {
|
|
3808
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
3809
|
-
CurrentOnDemandSpend: (0, smithy_client_1.expectString)(output.CurrentOnDemandSpend),
|
|
3810
|
-
DailyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.DailyCommitmentToPurchase),
|
|
3811
|
-
EstimatedMonthlySavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavingsAmount),
|
|
3812
|
-
EstimatedOnDemandCostWithCurrentCommitment: (0, smithy_client_1.expectString)(output.EstimatedOnDemandCostWithCurrentCommitment),
|
|
3813
|
-
EstimatedROI: (0, smithy_client_1.expectString)(output.EstimatedROI),
|
|
3814
|
-
EstimatedSavingsAmount: (0, smithy_client_1.expectString)(output.EstimatedSavingsAmount),
|
|
3815
|
-
EstimatedSavingsPercentage: (0, smithy_client_1.expectString)(output.EstimatedSavingsPercentage),
|
|
3816
|
-
EstimatedTotalCost: (0, smithy_client_1.expectString)(output.EstimatedTotalCost),
|
|
3817
|
-
HourlyCommitmentToPurchase: (0, smithy_client_1.expectString)(output.HourlyCommitmentToPurchase),
|
|
3818
|
-
TotalRecommendationCount: (0, smithy_client_1.expectString)(output.TotalRecommendationCount),
|
|
3819
|
-
};
|
|
3820
|
-
};
|
|
3821
|
-
const de_SavingsPlansSavings = (output, context) => {
|
|
3822
|
-
return {
|
|
3823
|
-
NetSavings: (0, smithy_client_1.expectString)(output.NetSavings),
|
|
3824
|
-
OnDemandCostEquivalent: (0, smithy_client_1.expectString)(output.OnDemandCostEquivalent),
|
|
3825
|
-
};
|
|
3826
|
-
};
|
|
3827
|
-
const de_SavingsPlansUtilization = (output, context) => {
|
|
3828
|
-
return {
|
|
3829
|
-
TotalCommitment: (0, smithy_client_1.expectString)(output.TotalCommitment),
|
|
3830
|
-
UnusedCommitment: (0, smithy_client_1.expectString)(output.UnusedCommitment),
|
|
3831
|
-
UsedCommitment: (0, smithy_client_1.expectString)(output.UsedCommitment),
|
|
3832
|
-
UtilizationPercentage: (0, smithy_client_1.expectString)(output.UtilizationPercentage),
|
|
3833
|
-
};
|
|
3834
|
-
};
|
|
3835
|
-
const de_SavingsPlansUtilizationAggregates = (output, context) => {
|
|
3836
|
-
return {
|
|
3837
|
-
AmortizedCommitment: output.AmortizedCommitment != null
|
|
3838
|
-
? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
3839
|
-
: undefined,
|
|
3840
|
-
Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3841
|
-
Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
|
|
3842
|
-
};
|
|
3843
2135
|
};
|
|
3844
|
-
const
|
|
3845
|
-
return {
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
3851
|
-
Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
|
|
3852
|
-
};
|
|
3853
|
-
};
|
|
3854
|
-
const de_SavingsPlansUtilizationDetail = (output, context) => {
|
|
3855
|
-
return {
|
|
3856
|
-
AmortizedCommitment: output.AmortizedCommitment != null
|
|
3857
|
-
? de_SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
3858
|
-
: undefined,
|
|
3859
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3860
|
-
Savings: output.Savings != null ? de_SavingsPlansSavings(output.Savings, context) : undefined,
|
|
3861
|
-
SavingsPlanArn: (0, smithy_client_1.expectString)(output.SavingsPlanArn),
|
|
3862
|
-
Utilization: output.Utilization != null ? de_SavingsPlansUtilization(output.Utilization, context) : undefined,
|
|
3863
|
-
};
|
|
3864
|
-
};
|
|
3865
|
-
const de_SavingsPlansUtilizationDetails = (output, context) => {
|
|
3866
|
-
const retVal = (output || [])
|
|
3867
|
-
.filter((e) => e != null)
|
|
3868
|
-
.map((entry) => {
|
|
3869
|
-
if (entry === null) {
|
|
3870
|
-
return null;
|
|
3871
|
-
}
|
|
3872
|
-
return de_SavingsPlansUtilizationDetail(entry, context);
|
|
2136
|
+
const de_CostCategoryRule = (output, context) => {
|
|
2137
|
+
return (0, smithy_client_1.take)(output, {
|
|
2138
|
+
InheritedValue: smithy_client_1._json,
|
|
2139
|
+
Rule: (_) => de_Expression(_, context),
|
|
2140
|
+
Type: smithy_client_1.expectString,
|
|
2141
|
+
Value: smithy_client_1.expectString,
|
|
3873
2142
|
});
|
|
3874
|
-
return retVal;
|
|
3875
2143
|
};
|
|
3876
|
-
const
|
|
2144
|
+
const de_CostCategoryRulesList = (output, context) => {
|
|
3877
2145
|
const retVal = (output || [])
|
|
3878
2146
|
.filter((e) => e != null)
|
|
3879
2147
|
.map((entry) => {
|
|
3880
|
-
|
|
3881
|
-
return null;
|
|
3882
|
-
}
|
|
3883
|
-
return de_SavingsPlansUtilizationByTime(entry, context);
|
|
2148
|
+
return de_CostCategoryRule(entry, context);
|
|
3884
2149
|
});
|
|
3885
2150
|
return retVal;
|
|
3886
2151
|
};
|
|
3887
|
-
const
|
|
3888
|
-
return {
|
|
3889
|
-
|
|
3890
|
-
};
|
|
3891
|
-
};
|
|
3892
|
-
const de_ServiceSpecification = (output, context) => {
|
|
3893
|
-
return {
|
|
3894
|
-
EC2Specification: output.EC2Specification != null ? de_EC2Specification(output.EC2Specification, context) : undefined,
|
|
3895
|
-
};
|
|
3896
|
-
};
|
|
3897
|
-
const de_StartSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
|
|
3898
|
-
return {
|
|
3899
|
-
EstimatedCompletionTime: (0, smithy_client_1.expectString)(output.EstimatedCompletionTime),
|
|
3900
|
-
GenerationStartedTime: (0, smithy_client_1.expectString)(output.GenerationStartedTime),
|
|
3901
|
-
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
3902
|
-
};
|
|
3903
|
-
};
|
|
3904
|
-
const de_Subscriber = (output, context) => {
|
|
3905
|
-
return {
|
|
3906
|
-
Address: (0, smithy_client_1.expectString)(output.Address),
|
|
3907
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3908
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3909
|
-
};
|
|
3910
|
-
};
|
|
3911
|
-
const de_Subscribers = (output, context) => {
|
|
3912
|
-
const retVal = (output || [])
|
|
3913
|
-
.filter((e) => e != null)
|
|
3914
|
-
.map((entry) => {
|
|
3915
|
-
if (entry === null) {
|
|
3916
|
-
return null;
|
|
3917
|
-
}
|
|
3918
|
-
return de_Subscriber(entry, context);
|
|
2152
|
+
const de_DescribeCostCategoryDefinitionResponse = (output, context) => {
|
|
2153
|
+
return (0, smithy_client_1.take)(output, {
|
|
2154
|
+
CostCategory: (_) => de_CostCategory(_, context),
|
|
3919
2155
|
});
|
|
3920
|
-
return retVal;
|
|
3921
2156
|
};
|
|
3922
|
-
const
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
.
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
2157
|
+
const de_Expression = (output, context) => {
|
|
2158
|
+
return (0, smithy_client_1.take)(output, {
|
|
2159
|
+
And: (_) => de_Expressions(_, context),
|
|
2160
|
+
CostCategories: smithy_client_1._json,
|
|
2161
|
+
Dimensions: smithy_client_1._json,
|
|
2162
|
+
Not: (_) => de_Expression(_, context),
|
|
2163
|
+
Or: (_) => de_Expressions(_, context),
|
|
2164
|
+
Tags: smithy_client_1._json,
|
|
3930
2165
|
});
|
|
3931
|
-
return retVal;
|
|
3932
|
-
};
|
|
3933
|
-
const de_TagResourceResponse = (output, context) => {
|
|
3934
|
-
return {};
|
|
3935
|
-
};
|
|
3936
|
-
const de_TagValues = (output, context) => {
|
|
3937
|
-
return {
|
|
3938
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3939
|
-
MatchOptions: output.MatchOptions != null ? de_MatchOptions(output.MatchOptions, context) : undefined,
|
|
3940
|
-
Values: output.Values != null ? de_Values(output.Values, context) : undefined,
|
|
3941
|
-
};
|
|
3942
2166
|
};
|
|
3943
|
-
const
|
|
2167
|
+
const de_Expressions = (output, context) => {
|
|
3944
2168
|
const retVal = (output || [])
|
|
3945
2169
|
.filter((e) => e != null)
|
|
3946
2170
|
.map((entry) => {
|
|
3947
|
-
|
|
3948
|
-
return null;
|
|
3949
|
-
}
|
|
3950
|
-
return de_TagValues(entry, context);
|
|
2171
|
+
return de_Expression(entry, context);
|
|
3951
2172
|
});
|
|
3952
2173
|
return retVal;
|
|
3953
2174
|
};
|
|
3954
|
-
const
|
|
3955
|
-
return {
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
EstimatedMonthlyCost: (0, smithy_client_1.expectString)(output.EstimatedMonthlyCost),
|
|
3959
|
-
EstimatedMonthlySavings: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavings),
|
|
3960
|
-
ExpectedResourceUtilization: output.ExpectedResourceUtilization != null
|
|
3961
|
-
? de_ResourceUtilization(output.ExpectedResourceUtilization, context)
|
|
3962
|
-
: undefined,
|
|
3963
|
-
PlatformDifferences: output.PlatformDifferences != null ? de_PlatformDifferences(output.PlatformDifferences, context) : undefined,
|
|
3964
|
-
ResourceDetails: output.ResourceDetails != null ? de_ResourceDetails(output.ResourceDetails, context) : undefined,
|
|
3965
|
-
};
|
|
3966
|
-
};
|
|
3967
|
-
const de_TargetInstancesList = (output, context) => {
|
|
3968
|
-
const retVal = (output || [])
|
|
3969
|
-
.filter((e) => e != null)
|
|
3970
|
-
.map((entry) => {
|
|
3971
|
-
if (entry === null) {
|
|
3972
|
-
return null;
|
|
3973
|
-
}
|
|
3974
|
-
return de_TargetInstance(entry, context);
|
|
2175
|
+
const de_GetAnomaliesResponse = (output, context) => {
|
|
2176
|
+
return (0, smithy_client_1.take)(output, {
|
|
2177
|
+
Anomalies: (_) => de_Anomalies(_, context),
|
|
2178
|
+
NextPageToken: smithy_client_1.expectString,
|
|
3975
2179
|
});
|
|
3976
|
-
return retVal;
|
|
3977
|
-
};
|
|
3978
|
-
const de_TerminateRecommendationDetail = (output, context) => {
|
|
3979
|
-
return {
|
|
3980
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
3981
|
-
EstimatedMonthlySavings: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavings),
|
|
3982
|
-
};
|
|
3983
|
-
};
|
|
3984
|
-
const de_TooManyTagsException = (output, context) => {
|
|
3985
|
-
return {
|
|
3986
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3987
|
-
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
3988
|
-
};
|
|
3989
|
-
};
|
|
3990
|
-
const de_UnknownMonitorException = (output, context) => {
|
|
3991
|
-
return {
|
|
3992
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3993
|
-
};
|
|
3994
|
-
};
|
|
3995
|
-
const de_UnknownSubscriptionException = (output, context) => {
|
|
3996
|
-
return {
|
|
3997
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3998
|
-
};
|
|
3999
|
-
};
|
|
4000
|
-
const de_UnresolvableUsageUnitException = (output, context) => {
|
|
4001
|
-
return {
|
|
4002
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4003
|
-
};
|
|
4004
|
-
};
|
|
4005
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
4006
|
-
return {};
|
|
4007
|
-
};
|
|
4008
|
-
const de_UpdateAnomalyMonitorResponse = (output, context) => {
|
|
4009
|
-
return {
|
|
4010
|
-
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
|
4011
|
-
};
|
|
4012
|
-
};
|
|
4013
|
-
const de_UpdateAnomalySubscriptionResponse = (output, context) => {
|
|
4014
|
-
return {
|
|
4015
|
-
SubscriptionArn: (0, smithy_client_1.expectString)(output.SubscriptionArn),
|
|
4016
|
-
};
|
|
4017
|
-
};
|
|
4018
|
-
const de_UpdateCostAllocationTagsStatusError = (output, context) => {
|
|
4019
|
-
return {
|
|
4020
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
4021
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4022
|
-
TagKey: (0, smithy_client_1.expectString)(output.TagKey),
|
|
4023
|
-
};
|
|
4024
2180
|
};
|
|
4025
|
-
const
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
.
|
|
4029
|
-
if (entry === null) {
|
|
4030
|
-
return null;
|
|
4031
|
-
}
|
|
4032
|
-
return de_UpdateCostAllocationTagsStatusError(entry, context);
|
|
2181
|
+
const de_GetAnomalyMonitorsResponse = (output, context) => {
|
|
2182
|
+
return (0, smithy_client_1.take)(output, {
|
|
2183
|
+
AnomalyMonitors: (_) => de_AnomalyMonitors(_, context),
|
|
2184
|
+
NextPageToken: smithy_client_1.expectString,
|
|
4033
2185
|
});
|
|
4034
|
-
return retVal;
|
|
4035
|
-
};
|
|
4036
|
-
const de_UpdateCostAllocationTagsStatusResponse = (output, context) => {
|
|
4037
|
-
return {
|
|
4038
|
-
Errors: output.Errors != null ? de_UpdateCostAllocationTagsStatusErrors(output.Errors, context) : undefined,
|
|
4039
|
-
};
|
|
4040
|
-
};
|
|
4041
|
-
const de_UpdateCostCategoryDefinitionResponse = (output, context) => {
|
|
4042
|
-
return {
|
|
4043
|
-
CostCategoryArn: (0, smithy_client_1.expectString)(output.CostCategoryArn),
|
|
4044
|
-
EffectiveStart: (0, smithy_client_1.expectString)(output.EffectiveStart),
|
|
4045
|
-
};
|
|
4046
|
-
};
|
|
4047
|
-
const de_UtilizationByTime = (output, context) => {
|
|
4048
|
-
return {
|
|
4049
|
-
Groups: output.Groups != null ? de_ReservationUtilizationGroups(output.Groups, context) : undefined,
|
|
4050
|
-
TimePeriod: output.TimePeriod != null ? de_DateInterval(output.TimePeriod, context) : undefined,
|
|
4051
|
-
Total: output.Total != null ? de_ReservationAggregates(output.Total, context) : undefined,
|
|
4052
|
-
};
|
|
4053
2186
|
};
|
|
4054
|
-
const
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
.
|
|
4058
|
-
if (entry === null) {
|
|
4059
|
-
return null;
|
|
4060
|
-
}
|
|
4061
|
-
return de_UtilizationByTime(entry, context);
|
|
2187
|
+
const de_GetAnomalySubscriptionsResponse = (output, context) => {
|
|
2188
|
+
return (0, smithy_client_1.take)(output, {
|
|
2189
|
+
AnomalySubscriptions: (_) => de_AnomalySubscriptions(_, context),
|
|
2190
|
+
NextPageToken: smithy_client_1.expectString,
|
|
4062
2191
|
});
|
|
4063
|
-
return retVal;
|
|
4064
2192
|
};
|
|
4065
|
-
const
|
|
4066
|
-
|
|
4067
|
-
.
|
|
4068
|
-
.
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2193
|
+
const de_Impact = (output, context) => {
|
|
2194
|
+
return (0, smithy_client_1.take)(output, {
|
|
2195
|
+
MaxImpact: smithy_client_1.limitedParseDouble,
|
|
2196
|
+
TotalActualSpend: smithy_client_1.limitedParseDouble,
|
|
2197
|
+
TotalExpectedSpend: smithy_client_1.limitedParseDouble,
|
|
2198
|
+
TotalImpact: smithy_client_1.limitedParseDouble,
|
|
2199
|
+
TotalImpactPercentage: smithy_client_1.limitedParseDouble,
|
|
4073
2200
|
});
|
|
4074
|
-
return retVal;
|
|
4075
2201
|
};
|
|
4076
2202
|
const deserializeMetadata = (output) => ({
|
|
4077
2203
|
httpStatusCode: output.statusCode,
|
|
@@ -4086,6 +2212,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4086
2212
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4087
2213
|
};
|
|
4088
2214
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2215
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CostExplorerServiceException_1.CostExplorerServiceException);
|
|
4089
2216
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4090
2217
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4091
2218
|
const contents = {
|
|
@@ -4104,6 +2231,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4104
2231
|
}
|
|
4105
2232
|
return new protocol_http_1.HttpRequest(contents);
|
|
4106
2233
|
};
|
|
2234
|
+
function sharedHeaders(operation) {
|
|
2235
|
+
return {
|
|
2236
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2237
|
+
"x-amz-target": `AWSInsightsIndexService.${operation}`,
|
|
2238
|
+
};
|
|
2239
|
+
}
|
|
4107
2240
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4108
2241
|
if (encoded.length) {
|
|
4109
2242
|
return JSON.parse(encoded);
|