@aws-sdk/client-cost-explorer 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/CostExplorerClient.js +13 -13
- package/dist/cjs/CostExplorerClient.js.map +1 -1
- package/dist/cjs/commands/CreateAnomalyMonitorCommand.js +3 -3
- package/dist/cjs/commands/CreateAnomalyMonitorCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAnomalySubscriptionCommand.js +3 -3
- package/dist/cjs/commands/CreateAnomalySubscriptionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateCostCategoryDefinitionCommand.js +3 -3
- package/dist/cjs/commands/CreateCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAnomalyMonitorCommand.js +3 -3
- package/dist/cjs/commands/DeleteAnomalyMonitorCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAnomalySubscriptionCommand.js +3 -3
- package/dist/cjs/commands/DeleteAnomalySubscriptionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCostCategoryDefinitionCommand.js +3 -3
- package/dist/cjs/commands/DeleteCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeCostCategoryDefinitionCommand.js +3 -3
- package/dist/cjs/commands/DescribeCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/cjs/commands/GetAnomaliesCommand.js +3 -3
- package/dist/cjs/commands/GetAnomaliesCommand.js.map +1 -1
- package/dist/cjs/commands/GetAnomalyMonitorsCommand.js +3 -3
- package/dist/cjs/commands/GetAnomalyMonitorsCommand.js.map +1 -1
- package/dist/cjs/commands/GetAnomalySubscriptionsCommand.js +3 -3
- package/dist/cjs/commands/GetAnomalySubscriptionsCommand.js.map +1 -1
- package/dist/cjs/commands/GetCostAndUsageCommand.js +3 -3
- package/dist/cjs/commands/GetCostAndUsageCommand.js.map +1 -1
- package/dist/cjs/commands/GetCostAndUsageWithResourcesCommand.js +3 -3
- package/dist/cjs/commands/GetCostAndUsageWithResourcesCommand.js.map +1 -1
- package/dist/cjs/commands/GetCostCategoriesCommand.js +3 -3
- package/dist/cjs/commands/GetCostCategoriesCommand.js.map +1 -1
- package/dist/cjs/commands/GetCostForecastCommand.js +3 -3
- package/dist/cjs/commands/GetCostForecastCommand.js.map +1 -1
- package/dist/cjs/commands/GetDimensionValuesCommand.js +3 -3
- package/dist/cjs/commands/GetDimensionValuesCommand.js.map +1 -1
- package/dist/cjs/commands/GetReservationCoverageCommand.js +3 -3
- package/dist/cjs/commands/GetReservationCoverageCommand.js.map +1 -1
- package/dist/cjs/commands/GetReservationPurchaseRecommendationCommand.js +3 -3
- package/dist/cjs/commands/GetReservationPurchaseRecommendationCommand.js.map +1 -1
- package/dist/cjs/commands/GetReservationUtilizationCommand.js +3 -3
- package/dist/cjs/commands/GetReservationUtilizationCommand.js.map +1 -1
- package/dist/cjs/commands/GetRightsizingRecommendationCommand.js +3 -3
- package/dist/cjs/commands/GetRightsizingRecommendationCommand.js.map +1 -1
- package/dist/cjs/commands/GetSavingsPlansCoverageCommand.js +3 -3
- package/dist/cjs/commands/GetSavingsPlansCoverageCommand.js.map +1 -1
- package/dist/cjs/commands/GetSavingsPlansPurchaseRecommendationCommand.js +3 -3
- package/dist/cjs/commands/GetSavingsPlansPurchaseRecommendationCommand.js.map +1 -1
- package/dist/cjs/commands/GetSavingsPlansUtilizationCommand.js +3 -3
- package/dist/cjs/commands/GetSavingsPlansUtilizationCommand.js.map +1 -1
- package/dist/cjs/commands/GetSavingsPlansUtilizationDetailsCommand.js +3 -3
- package/dist/cjs/commands/GetSavingsPlansUtilizationDetailsCommand.js.map +1 -1
- package/dist/cjs/commands/GetTagsCommand.js +3 -3
- package/dist/cjs/commands/GetTagsCommand.js.map +1 -1
- package/dist/cjs/commands/GetUsageForecastCommand.js +3 -3
- package/dist/cjs/commands/GetUsageForecastCommand.js.map +1 -1
- package/dist/cjs/commands/ListCostCategoryDefinitionsCommand.js +3 -3
- package/dist/cjs/commands/ListCostCategoryDefinitionsCommand.js.map +1 -1
- package/dist/cjs/commands/ProvideAnomalyFeedbackCommand.js +3 -3
- package/dist/cjs/commands/ProvideAnomalyFeedbackCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAnomalyMonitorCommand.js +3 -3
- package/dist/cjs/commands/UpdateAnomalyMonitorCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAnomalySubscriptionCommand.js +3 -3
- package/dist/cjs/commands/UpdateAnomalySubscriptionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateCostCategoryDefinitionCommand.js +3 -3
- package/dist/cjs/commands/UpdateCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +37 -37
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +314 -314
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/CostExplorer.js +1 -19
- package/dist/es/CostExplorer.js.map +1 -1
- package/dist/es/CostExplorerClient.js +1 -24
- package/dist/es/CostExplorerClient.js.map +1 -1
- package/dist/es/commands/CreateAnomalyMonitorCommand.js +2 -28
- package/dist/es/commands/CreateAnomalyMonitorCommand.js.map +1 -1
- package/dist/es/commands/CreateAnomalySubscriptionCommand.js +2 -29
- package/dist/es/commands/CreateAnomalySubscriptionCommand.js.map +1 -1
- package/dist/es/commands/CreateCostCategoryDefinitionCommand.js +2 -27
- package/dist/es/commands/CreateCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/es/commands/DeleteAnomalyMonitorCommand.js +2 -27
- package/dist/es/commands/DeleteAnomalyMonitorCommand.js.map +1 -1
- package/dist/es/commands/DeleteAnomalySubscriptionCommand.js +2 -27
- package/dist/es/commands/DeleteAnomalySubscriptionCommand.js.map +1 -1
- package/dist/es/commands/DeleteCostCategoryDefinitionCommand.js +2 -27
- package/dist/es/commands/DeleteCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/es/commands/DescribeCostCategoryDefinitionCommand.js +2 -28
- package/dist/es/commands/DescribeCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/es/commands/GetAnomaliesCommand.js +2 -28
- package/dist/es/commands/GetAnomaliesCommand.js.map +1 -1
- package/dist/es/commands/GetAnomalyMonitorsCommand.js +2 -28
- package/dist/es/commands/GetAnomalyMonitorsCommand.js.map +1 -1
- package/dist/es/commands/GetAnomalySubscriptionsCommand.js +2 -28
- package/dist/es/commands/GetAnomalySubscriptionsCommand.js.map +1 -1
- package/dist/es/commands/GetCostAndUsageCommand.js +2 -32
- package/dist/es/commands/GetCostAndUsageCommand.js.map +1 -1
- package/dist/es/commands/GetCostAndUsageWithResourcesCommand.js +2 -34
- package/dist/es/commands/GetCostAndUsageWithResourcesCommand.js.map +1 -1
- package/dist/es/commands/GetCostCategoriesCommand.js +2 -30
- package/dist/es/commands/GetCostCategoriesCommand.js.map +1 -1
- package/dist/es/commands/GetCostForecastCommand.js +2 -27
- package/dist/es/commands/GetCostForecastCommand.js.map +1 -1
- package/dist/es/commands/GetDimensionValuesCommand.js +2 -27
- package/dist/es/commands/GetDimensionValuesCommand.js.map +1 -1
- package/dist/es/commands/GetReservationCoverageCommand.js +2 -68
- package/dist/es/commands/GetReservationCoverageCommand.js.map +1 -1
- package/dist/es/commands/GetReservationPurchaseRecommendationCommand.js +2 -36
- package/dist/es/commands/GetReservationPurchaseRecommendationCommand.js.map +1 -1
- package/dist/es/commands/GetReservationUtilizationCommand.js +2 -29
- package/dist/es/commands/GetReservationUtilizationCommand.js.map +1 -1
- package/dist/es/commands/GetRightsizingRecommendationCommand.js +2 -36
- package/dist/es/commands/GetRightsizingRecommendationCommand.js.map +1 -1
- package/dist/es/commands/GetSavingsPlansCoverageCommand.js +2 -50
- package/dist/es/commands/GetSavingsPlansCoverageCommand.js.map +1 -1
- package/dist/es/commands/GetSavingsPlansPurchaseRecommendationCommand.js +2 -27
- package/dist/es/commands/GetSavingsPlansPurchaseRecommendationCommand.js.map +1 -1
- package/dist/es/commands/GetSavingsPlansUtilizationCommand.js +2 -30
- package/dist/es/commands/GetSavingsPlansUtilizationCommand.js.map +1 -1
- package/dist/es/commands/GetSavingsPlansUtilizationDetailsCommand.js +2 -31
- package/dist/es/commands/GetSavingsPlansUtilizationDetailsCommand.js.map +1 -1
- package/dist/es/commands/GetTagsCommand.js +2 -27
- package/dist/es/commands/GetTagsCommand.js.map +1 -1
- package/dist/es/commands/GetUsageForecastCommand.js +2 -27
- package/dist/es/commands/GetUsageForecastCommand.js.map +1 -1
- package/dist/es/commands/ListCostCategoryDefinitionsCommand.js +2 -27
- package/dist/es/commands/ListCostCategoryDefinitionsCommand.js.map +1 -1
- package/dist/es/commands/ProvideAnomalyFeedbackCommand.js +2 -27
- package/dist/es/commands/ProvideAnomalyFeedbackCommand.js.map +1 -1
- package/dist/es/commands/UpdateAnomalyMonitorCommand.js +2 -28
- package/dist/es/commands/UpdateAnomalyMonitorCommand.js.map +1 -1
- package/dist/es/commands/UpdateAnomalySubscriptionCommand.js +2 -27
- package/dist/es/commands/UpdateAnomalySubscriptionCommand.js.map +1 -1
- package/dist/es/commands/UpdateCostCategoryDefinitionCommand.js +2 -27
- package/dist/es/commands/UpdateCostCategoryDefinitionCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -441
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/GetSavingsPlansCoveragePaginator.js +16 -28
- package/dist/es/pagination/GetSavingsPlansCoveragePaginator.js.map +1 -1
- package/dist/es/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +16 -28
- package/dist/es/pagination/GetSavingsPlansUtilizationDetailsPaginator.js.map +1 -1
- package/dist/es/pagination/ListCostCategoryDefinitionsPaginator.js +16 -28
- package/dist/es/pagination/ListCostCategoryDefinitionsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +550 -555
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1CreateAnomalyMonitorCommand = function (input, co
|
|
|
9
9
|
"x-amz-target": "AWSInsightsIndexService.CreateAnomalyMonitor",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CreateAnomalyMonitorRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateAnomalySubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateAnomalySubscriptionCommand = function (inpu
|
|
|
20
20
|
"x-amz-target": "AWSInsightsIndexService.CreateAnomalySubscription",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateAnomalySubscriptionRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateCostCategoryDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateCostCategoryDefinitionCommand = function (i
|
|
|
31
31
|
"x-amz-target": "AWSInsightsIndexService.CreateCostCategoryDefinition",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateCostCategoryDefinitionRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DeleteAnomalyMonitorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DeleteAnomalyMonitorCommand = function (input, co
|
|
|
42
42
|
"x-amz-target": "AWSInsightsIndexService.DeleteAnomalyMonitor",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DeleteAnomalyMonitorRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeleteAnomalySubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteAnomalySubscriptionCommand = function (inpu
|
|
|
53
53
|
"x-amz-target": "AWSInsightsIndexService.DeleteAnomalySubscription",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeleteAnomalySubscriptionRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteCostCategoryDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteCostCategoryDefinitionCommand = function (i
|
|
|
64
64
|
"x-amz-target": "AWSInsightsIndexService.DeleteCostCategoryDefinition",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteCostCategoryDefinitionRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DescribeCostCategoryDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DescribeCostCategoryDefinitionCommand = function
|
|
|
75
75
|
"x-amz-target": "AWSInsightsIndexService.DescribeCostCategoryDefinition",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DescribeCostCategoryDefinitionRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1GetAnomaliesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1GetAnomaliesCommand = function (input, context) {
|
|
|
86
86
|
"x-amz-target": "AWSInsightsIndexService.GetAnomalies",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1GetAnomaliesRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1GetAnomalyMonitorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1GetAnomalyMonitorsCommand = function (input, cont
|
|
|
97
97
|
"x-amz-target": "AWSInsightsIndexService.GetAnomalyMonitors",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1GetAnomalyMonitorsRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1GetAnomalySubscriptionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1GetAnomalySubscriptionsCommand = function (input,
|
|
|
108
108
|
"x-amz-target": "AWSInsightsIndexService.GetAnomalySubscriptions",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1GetAnomalySubscriptionsRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1GetCostAndUsageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1GetCostAndUsageCommand = function (input, context
|
|
|
119
119
|
"x-amz-target": "AWSInsightsIndexService.GetCostAndUsage",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1GetCostAndUsageRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1GetCostAndUsageWithResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1GetCostAndUsageWithResourcesCommand = function (i
|
|
|
130
130
|
"x-amz-target": "AWSInsightsIndexService.GetCostAndUsageWithResources",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1GetCostAndUsageWithResourcesRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1GetCostCategoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1GetCostCategoriesCommand = function (input, conte
|
|
|
141
141
|
"x-amz-target": "AWSInsightsIndexService.GetCostCategories",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1GetCostCategoriesRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1GetCostForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1GetCostForecastCommand = function (input, context
|
|
|
152
152
|
"x-amz-target": "AWSInsightsIndexService.GetCostForecast",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1GetCostForecastRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1GetDimensionValuesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1GetDimensionValuesCommand = function (input, cont
|
|
|
163
163
|
"x-amz-target": "AWSInsightsIndexService.GetDimensionValues",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1GetDimensionValuesRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1GetReservationCoverageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1GetReservationCoverageCommand = function (input,
|
|
|
174
174
|
"x-amz-target": "AWSInsightsIndexService.GetReservationCoverage",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1GetReservationCoverageRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1GetReservationPurchaseRecommendationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1GetReservationPurchaseRecommendationCommand = fun
|
|
|
185
185
|
"x-amz-target": "AWSInsightsIndexService.GetReservationPurchaseRecommendation",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1GetReservationPurchaseRecommendationRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1GetReservationUtilizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1GetReservationUtilizationCommand = function (inpu
|
|
|
196
196
|
"x-amz-target": "AWSInsightsIndexService.GetReservationUtilization",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1GetReservationUtilizationRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1GetRightsizingRecommendationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1GetRightsizingRecommendationCommand = function (i
|
|
|
207
207
|
"x-amz-target": "AWSInsightsIndexService.GetRightsizingRecommendation",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1GetRightsizingRecommendationRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1GetSavingsPlansCoverageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1GetSavingsPlansCoverageCommand = function (input,
|
|
|
218
218
|
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansCoverage",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1GetSavingsPlansCoverageRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = fu
|
|
|
229
229
|
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansPurchaseRecommendation",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1GetSavingsPlansPurchaseRecommendationRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1GetSavingsPlansUtilizationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1GetSavingsPlansUtilizationCommand = function (inp
|
|
|
240
240
|
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansUtilization",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1GetSavingsPlansUtilizationRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = functi
|
|
|
251
251
|
"x-amz-target": "AWSInsightsIndexService.GetSavingsPlansUtilizationDetails",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1GetSavingsPlansUtilizationDetailsRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1GetTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1GetTagsCommand = function (input, context) { retu
|
|
|
262
262
|
"x-amz-target": "AWSInsightsIndexService.GetTags",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1GetTagsRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1GetUsageForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1GetUsageForecastCommand = function (input, contex
|
|
|
273
273
|
"x-amz-target": "AWSInsightsIndexService.GetUsageForecast",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1GetUsageForecastRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1ListCostCategoryDefinitionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1ListCostCategoryDefinitionsCommand = function (in
|
|
|
284
284
|
"x-amz-target": "AWSInsightsIndexService.ListCostCategoryDefinitions",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1ListCostCategoryDefinitionsRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1ProvideAnomalyFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1ProvideAnomalyFeedbackCommand = function (input,
|
|
|
295
295
|
"x-amz-target": "AWSInsightsIndexService.ProvideAnomalyFeedback",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1ProvideAnomalyFeedbackRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1UpdateAnomalyMonitorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1UpdateAnomalyMonitorCommand = function (input, co
|
|
|
306
306
|
"x-amz-target": "AWSInsightsIndexService.UpdateAnomalyMonitor",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1UpdateAnomalyMonitorRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_1UpdateAnomalySubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_1UpdateAnomalySubscriptionCommand = function (inpu
|
|
|
317
317
|
"x-amz-target": "AWSInsightsIndexService.UpdateAnomalySubscription",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_1UpdateAnomalySubscriptionRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var serializeAws_json1_1UpdateCostCategoryDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_json1_1UpdateCostCategoryDefinitionCommand = function (i
|
|
|
328
328
|
"x-amz-target": "AWSInsightsIndexService.UpdateCostCategoryDefinition",
|
|
329
329
|
};
|
|
330
330
|
body = JSON.stringify(serializeAws_json1_1UpdateCostCategoryDefinitionRequest(input, context));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
334
334
|
export var deserializeAws_json1_1CreateAnomalyMonitorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -337,15 +337,15 @@ export var deserializeAws_json1_1CreateAnomalyMonitorCommand = function (output,
|
|
|
337
337
|
switch (_a.label) {
|
|
338
338
|
case 0:
|
|
339
339
|
if (output.statusCode >= 300) {
|
|
340
|
-
return [2
|
|
340
|
+
return [2, deserializeAws_json1_1CreateAnomalyMonitorCommandError(output, context)];
|
|
341
341
|
}
|
|
342
|
-
return [4
|
|
342
|
+
return [4, parseBody(output.body, context)];
|
|
343
343
|
case 1:
|
|
344
344
|
data = _a.sent();
|
|
345
345
|
contents = {};
|
|
346
346
|
contents = deserializeAws_json1_1CreateAnomalyMonitorResponse(data, context);
|
|
347
347
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
348
|
-
return [2
|
|
348
|
+
return [2, Promise.resolve(response)];
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
}); };
|
|
@@ -357,23 +357,23 @@ var deserializeAws_json1_1CreateAnomalyMonitorCommandError = function (output, c
|
|
|
357
357
|
case 0:
|
|
358
358
|
_a = [__assign({}, output)];
|
|
359
359
|
_d = {};
|
|
360
|
-
return [4
|
|
360
|
+
return [4, parseBody(output.body, context)];
|
|
361
361
|
case 1:
|
|
362
362
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
363
363
|
errorCode = "UnknownError";
|
|
364
364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
365
|
_b = errorCode;
|
|
366
366
|
switch (_b) {
|
|
367
|
-
case "LimitExceededException": return [3
|
|
368
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
367
|
+
case "LimitExceededException": return [3, 2];
|
|
368
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
369
369
|
}
|
|
370
|
-
return [3
|
|
370
|
+
return [3, 4];
|
|
371
371
|
case 2:
|
|
372
372
|
_c = [{}];
|
|
373
|
-
return [4
|
|
373
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
374
374
|
case 3:
|
|
375
375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
376
|
-
return [3
|
|
376
|
+
return [3, 5];
|
|
377
377
|
case 4:
|
|
378
378
|
parsedBody = parsedOutput.body;
|
|
379
379
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -383,7 +383,7 @@ var deserializeAws_json1_1CreateAnomalyMonitorCommandError = function (output, c
|
|
|
383
383
|
message = response.message || response.Message || errorCode;
|
|
384
384
|
response.message = message;
|
|
385
385
|
delete response.Message;
|
|
386
|
-
return [2
|
|
386
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
389
|
}); };
|
|
@@ -393,15 +393,15 @@ export var deserializeAws_json1_1CreateAnomalySubscriptionCommand = function (ou
|
|
|
393
393
|
switch (_a.label) {
|
|
394
394
|
case 0:
|
|
395
395
|
if (output.statusCode >= 300) {
|
|
396
|
-
return [2
|
|
396
|
+
return [2, deserializeAws_json1_1CreateAnomalySubscriptionCommandError(output, context)];
|
|
397
397
|
}
|
|
398
|
-
return [4
|
|
398
|
+
return [4, parseBody(output.body, context)];
|
|
399
399
|
case 1:
|
|
400
400
|
data = _a.sent();
|
|
401
401
|
contents = {};
|
|
402
402
|
contents = deserializeAws_json1_1CreateAnomalySubscriptionResponse(data, context);
|
|
403
403
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
404
|
-
return [2
|
|
404
|
+
return [2, Promise.resolve(response)];
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
407
|
}); };
|
|
@@ -413,31 +413,31 @@ var deserializeAws_json1_1CreateAnomalySubscriptionCommandError = function (outp
|
|
|
413
413
|
case 0:
|
|
414
414
|
_a = [__assign({}, output)];
|
|
415
415
|
_e = {};
|
|
416
|
-
return [4
|
|
416
|
+
return [4, parseBody(output.body, context)];
|
|
417
417
|
case 1:
|
|
418
418
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
419
419
|
errorCode = "UnknownError";
|
|
420
420
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
421
|
_b = errorCode;
|
|
422
422
|
switch (_b) {
|
|
423
|
-
case "LimitExceededException": return [3
|
|
424
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
425
|
-
case "UnknownMonitorException": return [3
|
|
426
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3
|
|
423
|
+
case "LimitExceededException": return [3, 2];
|
|
424
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
425
|
+
case "UnknownMonitorException": return [3, 4];
|
|
426
|
+
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3, 4];
|
|
427
427
|
}
|
|
428
|
-
return [3
|
|
428
|
+
return [3, 6];
|
|
429
429
|
case 2:
|
|
430
430
|
_c = [{}];
|
|
431
|
-
return [4
|
|
431
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
432
432
|
case 3:
|
|
433
433
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
434
|
-
return [3
|
|
434
|
+
return [3, 7];
|
|
435
435
|
case 4:
|
|
436
436
|
_d = [{}];
|
|
437
|
-
return [4
|
|
437
|
+
return [4, deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)];
|
|
438
438
|
case 5:
|
|
439
439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
440
|
-
return [3
|
|
440
|
+
return [3, 7];
|
|
441
441
|
case 6:
|
|
442
442
|
parsedBody = parsedOutput.body;
|
|
443
443
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -447,7 +447,7 @@ var deserializeAws_json1_1CreateAnomalySubscriptionCommandError = function (outp
|
|
|
447
447
|
message = response.message || response.Message || errorCode;
|
|
448
448
|
response.message = message;
|
|
449
449
|
delete response.Message;
|
|
450
|
-
return [2
|
|
450
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
}); };
|
|
@@ -457,15 +457,15 @@ export var deserializeAws_json1_1CreateCostCategoryDefinitionCommand = function
|
|
|
457
457
|
switch (_a.label) {
|
|
458
458
|
case 0:
|
|
459
459
|
if (output.statusCode >= 300) {
|
|
460
|
-
return [2
|
|
460
|
+
return [2, deserializeAws_json1_1CreateCostCategoryDefinitionCommandError(output, context)];
|
|
461
461
|
}
|
|
462
|
-
return [4
|
|
462
|
+
return [4, parseBody(output.body, context)];
|
|
463
463
|
case 1:
|
|
464
464
|
data = _a.sent();
|
|
465
465
|
contents = {};
|
|
466
466
|
contents = deserializeAws_json1_1CreateCostCategoryDefinitionResponse(data, context);
|
|
467
467
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
468
|
-
return [2
|
|
468
|
+
return [2, Promise.resolve(response)];
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
}); };
|
|
@@ -477,31 +477,31 @@ var deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = function (o
|
|
|
477
477
|
case 0:
|
|
478
478
|
_a = [__assign({}, output)];
|
|
479
479
|
_e = {};
|
|
480
|
-
return [4
|
|
480
|
+
return [4, parseBody(output.body, context)];
|
|
481
481
|
case 1:
|
|
482
482
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
483
483
|
errorCode = "UnknownError";
|
|
484
484
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
485
|
_b = errorCode;
|
|
486
486
|
switch (_b) {
|
|
487
|
-
case "LimitExceededException": return [3
|
|
488
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
489
|
-
case "ServiceQuotaExceededException": return [3
|
|
490
|
-
case "com.amazonaws.costexplorer#ServiceQuotaExceededException": return [3
|
|
487
|
+
case "LimitExceededException": return [3, 2];
|
|
488
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
489
|
+
case "ServiceQuotaExceededException": return [3, 4];
|
|
490
|
+
case "com.amazonaws.costexplorer#ServiceQuotaExceededException": return [3, 4];
|
|
491
491
|
}
|
|
492
|
-
return [3
|
|
492
|
+
return [3, 6];
|
|
493
493
|
case 2:
|
|
494
494
|
_c = [{}];
|
|
495
|
-
return [4
|
|
495
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
496
496
|
case 3:
|
|
497
497
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
498
|
-
return [3
|
|
498
|
+
return [3, 7];
|
|
499
499
|
case 4:
|
|
500
500
|
_d = [{}];
|
|
501
|
-
return [4
|
|
501
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
502
502
|
case 5:
|
|
503
503
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
504
|
-
return [3
|
|
504
|
+
return [3, 7];
|
|
505
505
|
case 6:
|
|
506
506
|
parsedBody = parsedOutput.body;
|
|
507
507
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -511,7 +511,7 @@ var deserializeAws_json1_1CreateCostCategoryDefinitionCommandError = function (o
|
|
|
511
511
|
message = response.message || response.Message || errorCode;
|
|
512
512
|
response.message = message;
|
|
513
513
|
delete response.Message;
|
|
514
|
-
return [2
|
|
514
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
517
|
}); };
|
|
@@ -521,15 +521,15 @@ export var deserializeAws_json1_1DeleteAnomalyMonitorCommand = function (output,
|
|
|
521
521
|
switch (_a.label) {
|
|
522
522
|
case 0:
|
|
523
523
|
if (output.statusCode >= 300) {
|
|
524
|
-
return [2
|
|
524
|
+
return [2, deserializeAws_json1_1DeleteAnomalyMonitorCommandError(output, context)];
|
|
525
525
|
}
|
|
526
|
-
return [4
|
|
526
|
+
return [4, parseBody(output.body, context)];
|
|
527
527
|
case 1:
|
|
528
528
|
data = _a.sent();
|
|
529
529
|
contents = {};
|
|
530
530
|
contents = deserializeAws_json1_1DeleteAnomalyMonitorResponse(data, context);
|
|
531
531
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
532
|
-
return [2
|
|
532
|
+
return [2, Promise.resolve(response)];
|
|
533
533
|
}
|
|
534
534
|
});
|
|
535
535
|
}); };
|
|
@@ -541,31 +541,31 @@ var deserializeAws_json1_1DeleteAnomalyMonitorCommandError = function (output, c
|
|
|
541
541
|
case 0:
|
|
542
542
|
_a = [__assign({}, output)];
|
|
543
543
|
_e = {};
|
|
544
|
-
return [4
|
|
544
|
+
return [4, parseBody(output.body, context)];
|
|
545
545
|
case 1:
|
|
546
546
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
547
547
|
errorCode = "UnknownError";
|
|
548
548
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
549
549
|
_b = errorCode;
|
|
550
550
|
switch (_b) {
|
|
551
|
-
case "LimitExceededException": return [3
|
|
552
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
553
|
-
case "UnknownMonitorException": return [3
|
|
554
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3
|
|
551
|
+
case "LimitExceededException": return [3, 2];
|
|
552
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
553
|
+
case "UnknownMonitorException": return [3, 4];
|
|
554
|
+
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3, 4];
|
|
555
555
|
}
|
|
556
|
-
return [3
|
|
556
|
+
return [3, 6];
|
|
557
557
|
case 2:
|
|
558
558
|
_c = [{}];
|
|
559
|
-
return [4
|
|
559
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
560
560
|
case 3:
|
|
561
561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
562
|
-
return [3
|
|
562
|
+
return [3, 7];
|
|
563
563
|
case 4:
|
|
564
564
|
_d = [{}];
|
|
565
|
-
return [4
|
|
565
|
+
return [4, deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)];
|
|
566
566
|
case 5:
|
|
567
567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3
|
|
568
|
+
return [3, 7];
|
|
569
569
|
case 6:
|
|
570
570
|
parsedBody = parsedOutput.body;
|
|
571
571
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -575,7 +575,7 @@ var deserializeAws_json1_1DeleteAnomalyMonitorCommandError = function (output, c
|
|
|
575
575
|
message = response.message || response.Message || errorCode;
|
|
576
576
|
response.message = message;
|
|
577
577
|
delete response.Message;
|
|
578
|
-
return [2
|
|
578
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
579
579
|
}
|
|
580
580
|
});
|
|
581
581
|
}); };
|
|
@@ -585,15 +585,15 @@ export var deserializeAws_json1_1DeleteAnomalySubscriptionCommand = function (ou
|
|
|
585
585
|
switch (_a.label) {
|
|
586
586
|
case 0:
|
|
587
587
|
if (output.statusCode >= 300) {
|
|
588
|
-
return [2
|
|
588
|
+
return [2, deserializeAws_json1_1DeleteAnomalySubscriptionCommandError(output, context)];
|
|
589
589
|
}
|
|
590
|
-
return [4
|
|
590
|
+
return [4, parseBody(output.body, context)];
|
|
591
591
|
case 1:
|
|
592
592
|
data = _a.sent();
|
|
593
593
|
contents = {};
|
|
594
594
|
contents = deserializeAws_json1_1DeleteAnomalySubscriptionResponse(data, context);
|
|
595
595
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
596
|
-
return [2
|
|
596
|
+
return [2, Promise.resolve(response)];
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
}); };
|
|
@@ -605,31 +605,31 @@ var deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = function (outp
|
|
|
605
605
|
case 0:
|
|
606
606
|
_a = [__assign({}, output)];
|
|
607
607
|
_e = {};
|
|
608
|
-
return [4
|
|
608
|
+
return [4, parseBody(output.body, context)];
|
|
609
609
|
case 1:
|
|
610
610
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
611
611
|
errorCode = "UnknownError";
|
|
612
612
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
613
|
_b = errorCode;
|
|
614
614
|
switch (_b) {
|
|
615
|
-
case "LimitExceededException": return [3
|
|
616
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
617
|
-
case "UnknownSubscriptionException": return [3
|
|
618
|
-
case "com.amazonaws.costexplorer#UnknownSubscriptionException": return [3
|
|
615
|
+
case "LimitExceededException": return [3, 2];
|
|
616
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
617
|
+
case "UnknownSubscriptionException": return [3, 4];
|
|
618
|
+
case "com.amazonaws.costexplorer#UnknownSubscriptionException": return [3, 4];
|
|
619
619
|
}
|
|
620
|
-
return [3
|
|
620
|
+
return [3, 6];
|
|
621
621
|
case 2:
|
|
622
622
|
_c = [{}];
|
|
623
|
-
return [4
|
|
623
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
624
624
|
case 3:
|
|
625
625
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
626
|
-
return [3
|
|
626
|
+
return [3, 7];
|
|
627
627
|
case 4:
|
|
628
628
|
_d = [{}];
|
|
629
|
-
return [4
|
|
629
|
+
return [4, deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context)];
|
|
630
630
|
case 5:
|
|
631
631
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
632
|
-
return [3
|
|
632
|
+
return [3, 7];
|
|
633
633
|
case 6:
|
|
634
634
|
parsedBody = parsedOutput.body;
|
|
635
635
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -639,7 +639,7 @@ var deserializeAws_json1_1DeleteAnomalySubscriptionCommandError = function (outp
|
|
|
639
639
|
message = response.message || response.Message || errorCode;
|
|
640
640
|
response.message = message;
|
|
641
641
|
delete response.Message;
|
|
642
|
-
return [2
|
|
642
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
643
643
|
}
|
|
644
644
|
});
|
|
645
645
|
}); };
|
|
@@ -649,15 +649,15 @@ export var deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = function
|
|
|
649
649
|
switch (_a.label) {
|
|
650
650
|
case 0:
|
|
651
651
|
if (output.statusCode >= 300) {
|
|
652
|
-
return [2
|
|
652
|
+
return [2, deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError(output, context)];
|
|
653
653
|
}
|
|
654
|
-
return [4
|
|
654
|
+
return [4, parseBody(output.body, context)];
|
|
655
655
|
case 1:
|
|
656
656
|
data = _a.sent();
|
|
657
657
|
contents = {};
|
|
658
658
|
contents = deserializeAws_json1_1DeleteCostCategoryDefinitionResponse(data, context);
|
|
659
659
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
660
|
-
return [2
|
|
660
|
+
return [2, Promise.resolve(response)];
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
663
|
}); };
|
|
@@ -669,31 +669,31 @@ var deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = function (o
|
|
|
669
669
|
case 0:
|
|
670
670
|
_a = [__assign({}, output)];
|
|
671
671
|
_e = {};
|
|
672
|
-
return [4
|
|
672
|
+
return [4, parseBody(output.body, context)];
|
|
673
673
|
case 1:
|
|
674
674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
675
675
|
errorCode = "UnknownError";
|
|
676
676
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
677
|
_b = errorCode;
|
|
678
678
|
switch (_b) {
|
|
679
|
-
case "LimitExceededException": return [3
|
|
680
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
681
|
-
case "ResourceNotFoundException": return [3
|
|
682
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException": return [3
|
|
679
|
+
case "LimitExceededException": return [3, 2];
|
|
680
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
681
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
682
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException": return [3, 4];
|
|
683
683
|
}
|
|
684
|
-
return [3
|
|
684
|
+
return [3, 6];
|
|
685
685
|
case 2:
|
|
686
686
|
_c = [{}];
|
|
687
|
-
return [4
|
|
687
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
688
688
|
case 3:
|
|
689
689
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
690
|
-
return [3
|
|
690
|
+
return [3, 7];
|
|
691
691
|
case 4:
|
|
692
692
|
_d = [{}];
|
|
693
|
-
return [4
|
|
693
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
694
694
|
case 5:
|
|
695
695
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
696
|
-
return [3
|
|
696
|
+
return [3, 7];
|
|
697
697
|
case 6:
|
|
698
698
|
parsedBody = parsedOutput.body;
|
|
699
699
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -703,7 +703,7 @@ var deserializeAws_json1_1DeleteCostCategoryDefinitionCommandError = function (o
|
|
|
703
703
|
message = response.message || response.Message || errorCode;
|
|
704
704
|
response.message = message;
|
|
705
705
|
delete response.Message;
|
|
706
|
-
return [2
|
|
706
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
707
707
|
}
|
|
708
708
|
});
|
|
709
709
|
}); };
|
|
@@ -713,15 +713,15 @@ export var deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = functio
|
|
|
713
713
|
switch (_a.label) {
|
|
714
714
|
case 0:
|
|
715
715
|
if (output.statusCode >= 300) {
|
|
716
|
-
return [2
|
|
716
|
+
return [2, deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError(output, context)];
|
|
717
717
|
}
|
|
718
|
-
return [4
|
|
718
|
+
return [4, parseBody(output.body, context)];
|
|
719
719
|
case 1:
|
|
720
720
|
data = _a.sent();
|
|
721
721
|
contents = {};
|
|
722
722
|
contents = deserializeAws_json1_1DescribeCostCategoryDefinitionResponse(data, context);
|
|
723
723
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
724
|
-
return [2
|
|
724
|
+
return [2, Promise.resolve(response)];
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
}); };
|
|
@@ -733,31 +733,31 @@ var deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = function
|
|
|
733
733
|
case 0:
|
|
734
734
|
_a = [__assign({}, output)];
|
|
735
735
|
_e = {};
|
|
736
|
-
return [4
|
|
736
|
+
return [4, parseBody(output.body, context)];
|
|
737
737
|
case 1:
|
|
738
738
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
739
739
|
errorCode = "UnknownError";
|
|
740
740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
741
|
_b = errorCode;
|
|
742
742
|
switch (_b) {
|
|
743
|
-
case "LimitExceededException": return [3
|
|
744
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
745
|
-
case "ResourceNotFoundException": return [3
|
|
746
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException": return [3
|
|
743
|
+
case "LimitExceededException": return [3, 2];
|
|
744
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
745
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
746
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException": return [3, 4];
|
|
747
747
|
}
|
|
748
|
-
return [3
|
|
748
|
+
return [3, 6];
|
|
749
749
|
case 2:
|
|
750
750
|
_c = [{}];
|
|
751
|
-
return [4
|
|
751
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
752
752
|
case 3:
|
|
753
753
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
754
|
-
return [3
|
|
754
|
+
return [3, 7];
|
|
755
755
|
case 4:
|
|
756
756
|
_d = [{}];
|
|
757
|
-
return [4
|
|
757
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
758
758
|
case 5:
|
|
759
759
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
760
|
-
return [3
|
|
760
|
+
return [3, 7];
|
|
761
761
|
case 6:
|
|
762
762
|
parsedBody = parsedOutput.body;
|
|
763
763
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -767,7 +767,7 @@ var deserializeAws_json1_1DescribeCostCategoryDefinitionCommandError = function
|
|
|
767
767
|
message = response.message || response.Message || errorCode;
|
|
768
768
|
response.message = message;
|
|
769
769
|
delete response.Message;
|
|
770
|
-
return [2
|
|
770
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
773
|
}); };
|
|
@@ -777,15 +777,15 @@ export var deserializeAws_json1_1GetAnomaliesCommand = function (output, context
|
|
|
777
777
|
switch (_a.label) {
|
|
778
778
|
case 0:
|
|
779
779
|
if (output.statusCode >= 300) {
|
|
780
|
-
return [2
|
|
780
|
+
return [2, deserializeAws_json1_1GetAnomaliesCommandError(output, context)];
|
|
781
781
|
}
|
|
782
|
-
return [4
|
|
782
|
+
return [4, parseBody(output.body, context)];
|
|
783
783
|
case 1:
|
|
784
784
|
data = _a.sent();
|
|
785
785
|
contents = {};
|
|
786
786
|
contents = deserializeAws_json1_1GetAnomaliesResponse(data, context);
|
|
787
787
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
788
|
-
return [2
|
|
788
|
+
return [2, Promise.resolve(response)];
|
|
789
789
|
}
|
|
790
790
|
});
|
|
791
791
|
}); };
|
|
@@ -797,31 +797,31 @@ var deserializeAws_json1_1GetAnomaliesCommandError = function (output, context)
|
|
|
797
797
|
case 0:
|
|
798
798
|
_a = [__assign({}, output)];
|
|
799
799
|
_e = {};
|
|
800
|
-
return [4
|
|
800
|
+
return [4, parseBody(output.body, context)];
|
|
801
801
|
case 1:
|
|
802
802
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
803
803
|
errorCode = "UnknownError";
|
|
804
804
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
805
|
_b = errorCode;
|
|
806
806
|
switch (_b) {
|
|
807
|
-
case "InvalidNextTokenException": return [3
|
|
808
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
809
|
-
case "LimitExceededException": return [3
|
|
810
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
807
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
808
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 2];
|
|
809
|
+
case "LimitExceededException": return [3, 4];
|
|
810
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
811
811
|
}
|
|
812
|
-
return [3
|
|
812
|
+
return [3, 6];
|
|
813
813
|
case 2:
|
|
814
814
|
_c = [{}];
|
|
815
|
-
return [4
|
|
815
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
816
816
|
case 3:
|
|
817
817
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
818
|
-
return [3
|
|
818
|
+
return [3, 7];
|
|
819
819
|
case 4:
|
|
820
820
|
_d = [{}];
|
|
821
|
-
return [4
|
|
821
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
822
822
|
case 5:
|
|
823
823
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
824
|
-
return [3
|
|
824
|
+
return [3, 7];
|
|
825
825
|
case 6:
|
|
826
826
|
parsedBody = parsedOutput.body;
|
|
827
827
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -831,7 +831,7 @@ var deserializeAws_json1_1GetAnomaliesCommandError = function (output, context)
|
|
|
831
831
|
message = response.message || response.Message || errorCode;
|
|
832
832
|
response.message = message;
|
|
833
833
|
delete response.Message;
|
|
834
|
-
return [2
|
|
834
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
835
835
|
}
|
|
836
836
|
});
|
|
837
837
|
}); };
|
|
@@ -841,15 +841,15 @@ export var deserializeAws_json1_1GetAnomalyMonitorsCommand = function (output, c
|
|
|
841
841
|
switch (_a.label) {
|
|
842
842
|
case 0:
|
|
843
843
|
if (output.statusCode >= 300) {
|
|
844
|
-
return [2
|
|
844
|
+
return [2, deserializeAws_json1_1GetAnomalyMonitorsCommandError(output, context)];
|
|
845
845
|
}
|
|
846
|
-
return [4
|
|
846
|
+
return [4, parseBody(output.body, context)];
|
|
847
847
|
case 1:
|
|
848
848
|
data = _a.sent();
|
|
849
849
|
contents = {};
|
|
850
850
|
contents = deserializeAws_json1_1GetAnomalyMonitorsResponse(data, context);
|
|
851
851
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
852
|
-
return [2
|
|
852
|
+
return [2, Promise.resolve(response)];
|
|
853
853
|
}
|
|
854
854
|
});
|
|
855
855
|
}); };
|
|
@@ -861,39 +861,39 @@ var deserializeAws_json1_1GetAnomalyMonitorsCommandError = function (output, con
|
|
|
861
861
|
case 0:
|
|
862
862
|
_a = [__assign({}, output)];
|
|
863
863
|
_f = {};
|
|
864
|
-
return [4
|
|
864
|
+
return [4, parseBody(output.body, context)];
|
|
865
865
|
case 1:
|
|
866
866
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
867
867
|
errorCode = "UnknownError";
|
|
868
868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
869
|
_b = errorCode;
|
|
870
870
|
switch (_b) {
|
|
871
|
-
case "InvalidNextTokenException": return [3
|
|
872
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
873
|
-
case "LimitExceededException": return [3
|
|
874
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
875
|
-
case "UnknownMonitorException": return [3
|
|
876
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3
|
|
871
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
872
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 2];
|
|
873
|
+
case "LimitExceededException": return [3, 4];
|
|
874
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
875
|
+
case "UnknownMonitorException": return [3, 6];
|
|
876
|
+
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3, 6];
|
|
877
877
|
}
|
|
878
|
-
return [3
|
|
878
|
+
return [3, 8];
|
|
879
879
|
case 2:
|
|
880
880
|
_c = [{}];
|
|
881
|
-
return [4
|
|
881
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
882
882
|
case 3:
|
|
883
883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
-
return [3
|
|
884
|
+
return [3, 9];
|
|
885
885
|
case 4:
|
|
886
886
|
_d = [{}];
|
|
887
|
-
return [4
|
|
887
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
888
888
|
case 5:
|
|
889
889
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
890
|
-
return [3
|
|
890
|
+
return [3, 9];
|
|
891
891
|
case 6:
|
|
892
892
|
_e = [{}];
|
|
893
|
-
return [4
|
|
893
|
+
return [4, deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)];
|
|
894
894
|
case 7:
|
|
895
895
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
896
|
-
return [3
|
|
896
|
+
return [3, 9];
|
|
897
897
|
case 8:
|
|
898
898
|
parsedBody = parsedOutput.body;
|
|
899
899
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -903,7 +903,7 @@ var deserializeAws_json1_1GetAnomalyMonitorsCommandError = function (output, con
|
|
|
903
903
|
message = response.message || response.Message || errorCode;
|
|
904
904
|
response.message = message;
|
|
905
905
|
delete response.Message;
|
|
906
|
-
return [2
|
|
906
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
907
907
|
}
|
|
908
908
|
});
|
|
909
909
|
}); };
|
|
@@ -913,15 +913,15 @@ export var deserializeAws_json1_1GetAnomalySubscriptionsCommand = function (outp
|
|
|
913
913
|
switch (_a.label) {
|
|
914
914
|
case 0:
|
|
915
915
|
if (output.statusCode >= 300) {
|
|
916
|
-
return [2
|
|
916
|
+
return [2, deserializeAws_json1_1GetAnomalySubscriptionsCommandError(output, context)];
|
|
917
917
|
}
|
|
918
|
-
return [4
|
|
918
|
+
return [4, parseBody(output.body, context)];
|
|
919
919
|
case 1:
|
|
920
920
|
data = _a.sent();
|
|
921
921
|
contents = {};
|
|
922
922
|
contents = deserializeAws_json1_1GetAnomalySubscriptionsResponse(data, context);
|
|
923
923
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
924
|
-
return [2
|
|
924
|
+
return [2, Promise.resolve(response)];
|
|
925
925
|
}
|
|
926
926
|
});
|
|
927
927
|
}); };
|
|
@@ -933,39 +933,39 @@ var deserializeAws_json1_1GetAnomalySubscriptionsCommandError = function (output
|
|
|
933
933
|
case 0:
|
|
934
934
|
_a = [__assign({}, output)];
|
|
935
935
|
_f = {};
|
|
936
|
-
return [4
|
|
936
|
+
return [4, parseBody(output.body, context)];
|
|
937
937
|
case 1:
|
|
938
938
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
939
939
|
errorCode = "UnknownError";
|
|
940
940
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
941
|
_b = errorCode;
|
|
942
942
|
switch (_b) {
|
|
943
|
-
case "InvalidNextTokenException": return [3
|
|
944
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
945
|
-
case "LimitExceededException": return [3
|
|
946
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
947
|
-
case "UnknownSubscriptionException": return [3
|
|
948
|
-
case "com.amazonaws.costexplorer#UnknownSubscriptionException": return [3
|
|
943
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
944
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 2];
|
|
945
|
+
case "LimitExceededException": return [3, 4];
|
|
946
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
947
|
+
case "UnknownSubscriptionException": return [3, 6];
|
|
948
|
+
case "com.amazonaws.costexplorer#UnknownSubscriptionException": return [3, 6];
|
|
949
949
|
}
|
|
950
|
-
return [3
|
|
950
|
+
return [3, 8];
|
|
951
951
|
case 2:
|
|
952
952
|
_c = [{}];
|
|
953
|
-
return [4
|
|
953
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
954
954
|
case 3:
|
|
955
955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
956
|
-
return [3
|
|
956
|
+
return [3, 9];
|
|
957
957
|
case 4:
|
|
958
958
|
_d = [{}];
|
|
959
|
-
return [4
|
|
959
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
960
960
|
case 5:
|
|
961
961
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
962
|
-
return [3
|
|
962
|
+
return [3, 9];
|
|
963
963
|
case 6:
|
|
964
964
|
_e = [{}];
|
|
965
|
-
return [4
|
|
965
|
+
return [4, deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context)];
|
|
966
966
|
case 7:
|
|
967
967
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
968
|
-
return [3
|
|
968
|
+
return [3, 9];
|
|
969
969
|
case 8:
|
|
970
970
|
parsedBody = parsedOutput.body;
|
|
971
971
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -975,7 +975,7 @@ var deserializeAws_json1_1GetAnomalySubscriptionsCommandError = function (output
|
|
|
975
975
|
message = response.message || response.Message || errorCode;
|
|
976
976
|
response.message = message;
|
|
977
977
|
delete response.Message;
|
|
978
|
-
return [2
|
|
978
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
979
979
|
}
|
|
980
980
|
});
|
|
981
981
|
}); };
|
|
@@ -985,15 +985,15 @@ export var deserializeAws_json1_1GetCostAndUsageCommand = function (output, cont
|
|
|
985
985
|
switch (_a.label) {
|
|
986
986
|
case 0:
|
|
987
987
|
if (output.statusCode >= 300) {
|
|
988
|
-
return [2
|
|
988
|
+
return [2, deserializeAws_json1_1GetCostAndUsageCommandError(output, context)];
|
|
989
989
|
}
|
|
990
|
-
return [4
|
|
990
|
+
return [4, parseBody(output.body, context)];
|
|
991
991
|
case 1:
|
|
992
992
|
data = _a.sent();
|
|
993
993
|
contents = {};
|
|
994
994
|
contents = deserializeAws_json1_1GetCostAndUsageResponse(data, context);
|
|
995
995
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
996
|
-
return [2
|
|
996
|
+
return [2, Promise.resolve(response)];
|
|
997
997
|
}
|
|
998
998
|
});
|
|
999
999
|
}); };
|
|
@@ -1005,55 +1005,55 @@ var deserializeAws_json1_1GetCostAndUsageCommandError = function (output, contex
|
|
|
1005
1005
|
case 0:
|
|
1006
1006
|
_a = [__assign({}, output)];
|
|
1007
1007
|
_h = {};
|
|
1008
|
-
return [4
|
|
1008
|
+
return [4, parseBody(output.body, context)];
|
|
1009
1009
|
case 1:
|
|
1010
1010
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1011
1011
|
errorCode = "UnknownError";
|
|
1012
1012
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1013
|
_b = errorCode;
|
|
1014
1014
|
switch (_b) {
|
|
1015
|
-
case "BillExpirationException": return [3
|
|
1016
|
-
case "com.amazonaws.costexplorer#BillExpirationException": return [3
|
|
1017
|
-
case "DataUnavailableException": return [3
|
|
1018
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1019
|
-
case "InvalidNextTokenException": return [3
|
|
1020
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1021
|
-
case "LimitExceededException": return [3
|
|
1022
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1023
|
-
case "RequestChangedException": return [3
|
|
1024
|
-
case "com.amazonaws.costexplorer#RequestChangedException": return [3
|
|
1015
|
+
case "BillExpirationException": return [3, 2];
|
|
1016
|
+
case "com.amazonaws.costexplorer#BillExpirationException": return [3, 2];
|
|
1017
|
+
case "DataUnavailableException": return [3, 4];
|
|
1018
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 4];
|
|
1019
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1020
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 6];
|
|
1021
|
+
case "LimitExceededException": return [3, 8];
|
|
1022
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 8];
|
|
1023
|
+
case "RequestChangedException": return [3, 10];
|
|
1024
|
+
case "com.amazonaws.costexplorer#RequestChangedException": return [3, 10];
|
|
1025
1025
|
}
|
|
1026
|
-
return [3
|
|
1026
|
+
return [3, 12];
|
|
1027
1027
|
case 2:
|
|
1028
1028
|
_c = [{}];
|
|
1029
|
-
return [4
|
|
1029
|
+
return [4, deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)];
|
|
1030
1030
|
case 3:
|
|
1031
1031
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1032
|
-
return [3
|
|
1032
|
+
return [3, 13];
|
|
1033
1033
|
case 4:
|
|
1034
1034
|
_d = [{}];
|
|
1035
|
-
return [4
|
|
1035
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1036
1036
|
case 5:
|
|
1037
1037
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1038
|
-
return [3
|
|
1038
|
+
return [3, 13];
|
|
1039
1039
|
case 6:
|
|
1040
1040
|
_e = [{}];
|
|
1041
|
-
return [4
|
|
1041
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1042
1042
|
case 7:
|
|
1043
1043
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1044
|
-
return [3
|
|
1044
|
+
return [3, 13];
|
|
1045
1045
|
case 8:
|
|
1046
1046
|
_f = [{}];
|
|
1047
|
-
return [4
|
|
1047
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1048
1048
|
case 9:
|
|
1049
1049
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1050
|
-
return [3
|
|
1050
|
+
return [3, 13];
|
|
1051
1051
|
case 10:
|
|
1052
1052
|
_g = [{}];
|
|
1053
|
-
return [4
|
|
1053
|
+
return [4, deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)];
|
|
1054
1054
|
case 11:
|
|
1055
1055
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1056
|
-
return [3
|
|
1056
|
+
return [3, 13];
|
|
1057
1057
|
case 12:
|
|
1058
1058
|
parsedBody = parsedOutput.body;
|
|
1059
1059
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1063,7 +1063,7 @@ var deserializeAws_json1_1GetCostAndUsageCommandError = function (output, contex
|
|
|
1063
1063
|
message = response.message || response.Message || errorCode;
|
|
1064
1064
|
response.message = message;
|
|
1065
1065
|
delete response.Message;
|
|
1066
|
-
return [2
|
|
1066
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1067
1067
|
}
|
|
1068
1068
|
});
|
|
1069
1069
|
}); };
|
|
@@ -1073,15 +1073,15 @@ export var deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = function
|
|
|
1073
1073
|
switch (_a.label) {
|
|
1074
1074
|
case 0:
|
|
1075
1075
|
if (output.statusCode >= 300) {
|
|
1076
|
-
return [2
|
|
1076
|
+
return [2, deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError(output, context)];
|
|
1077
1077
|
}
|
|
1078
|
-
return [4
|
|
1078
|
+
return [4, parseBody(output.body, context)];
|
|
1079
1079
|
case 1:
|
|
1080
1080
|
data = _a.sent();
|
|
1081
1081
|
contents = {};
|
|
1082
1082
|
contents = deserializeAws_json1_1GetCostAndUsageWithResourcesResponse(data, context);
|
|
1083
1083
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1084
|
-
return [2
|
|
1084
|
+
return [2, Promise.resolve(response)];
|
|
1085
1085
|
}
|
|
1086
1086
|
});
|
|
1087
1087
|
}); };
|
|
@@ -1093,55 +1093,55 @@ var deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = function (o
|
|
|
1093
1093
|
case 0:
|
|
1094
1094
|
_a = [__assign({}, output)];
|
|
1095
1095
|
_h = {};
|
|
1096
|
-
return [4
|
|
1096
|
+
return [4, parseBody(output.body, context)];
|
|
1097
1097
|
case 1:
|
|
1098
1098
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1099
1099
|
errorCode = "UnknownError";
|
|
1100
1100
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
1101
|
_b = errorCode;
|
|
1102
1102
|
switch (_b) {
|
|
1103
|
-
case "BillExpirationException": return [3
|
|
1104
|
-
case "com.amazonaws.costexplorer#BillExpirationException": return [3
|
|
1105
|
-
case "DataUnavailableException": return [3
|
|
1106
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1107
|
-
case "InvalidNextTokenException": return [3
|
|
1108
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1109
|
-
case "LimitExceededException": return [3
|
|
1110
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1111
|
-
case "RequestChangedException": return [3
|
|
1112
|
-
case "com.amazonaws.costexplorer#RequestChangedException": return [3
|
|
1103
|
+
case "BillExpirationException": return [3, 2];
|
|
1104
|
+
case "com.amazonaws.costexplorer#BillExpirationException": return [3, 2];
|
|
1105
|
+
case "DataUnavailableException": return [3, 4];
|
|
1106
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 4];
|
|
1107
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1108
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 6];
|
|
1109
|
+
case "LimitExceededException": return [3, 8];
|
|
1110
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 8];
|
|
1111
|
+
case "RequestChangedException": return [3, 10];
|
|
1112
|
+
case "com.amazonaws.costexplorer#RequestChangedException": return [3, 10];
|
|
1113
1113
|
}
|
|
1114
|
-
return [3
|
|
1114
|
+
return [3, 12];
|
|
1115
1115
|
case 2:
|
|
1116
1116
|
_c = [{}];
|
|
1117
|
-
return [4
|
|
1117
|
+
return [4, deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)];
|
|
1118
1118
|
case 3:
|
|
1119
1119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1120
|
-
return [3
|
|
1120
|
+
return [3, 13];
|
|
1121
1121
|
case 4:
|
|
1122
1122
|
_d = [{}];
|
|
1123
|
-
return [4
|
|
1123
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1124
1124
|
case 5:
|
|
1125
1125
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1126
|
-
return [3
|
|
1126
|
+
return [3, 13];
|
|
1127
1127
|
case 6:
|
|
1128
1128
|
_e = [{}];
|
|
1129
|
-
return [4
|
|
1129
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1130
1130
|
case 7:
|
|
1131
1131
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1132
|
-
return [3
|
|
1132
|
+
return [3, 13];
|
|
1133
1133
|
case 8:
|
|
1134
1134
|
_f = [{}];
|
|
1135
|
-
return [4
|
|
1135
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1136
1136
|
case 9:
|
|
1137
1137
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1138
|
-
return [3
|
|
1138
|
+
return [3, 13];
|
|
1139
1139
|
case 10:
|
|
1140
1140
|
_g = [{}];
|
|
1141
|
-
return [4
|
|
1141
|
+
return [4, deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)];
|
|
1142
1142
|
case 11:
|
|
1143
1143
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1144
|
-
return [3
|
|
1144
|
+
return [3, 13];
|
|
1145
1145
|
case 12:
|
|
1146
1146
|
parsedBody = parsedOutput.body;
|
|
1147
1147
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1151,7 +1151,7 @@ var deserializeAws_json1_1GetCostAndUsageWithResourcesCommandError = function (o
|
|
|
1151
1151
|
message = response.message || response.Message || errorCode;
|
|
1152
1152
|
response.message = message;
|
|
1153
1153
|
delete response.Message;
|
|
1154
|
-
return [2
|
|
1154
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1155
1155
|
}
|
|
1156
1156
|
});
|
|
1157
1157
|
}); };
|
|
@@ -1161,15 +1161,15 @@ export var deserializeAws_json1_1GetCostCategoriesCommand = function (output, co
|
|
|
1161
1161
|
switch (_a.label) {
|
|
1162
1162
|
case 0:
|
|
1163
1163
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return [2
|
|
1164
|
+
return [2, deserializeAws_json1_1GetCostCategoriesCommandError(output, context)];
|
|
1165
1165
|
}
|
|
1166
|
-
return [4
|
|
1166
|
+
return [4, parseBody(output.body, context)];
|
|
1167
1167
|
case 1:
|
|
1168
1168
|
data = _a.sent();
|
|
1169
1169
|
contents = {};
|
|
1170
1170
|
contents = deserializeAws_json1_1GetCostCategoriesResponse(data, context);
|
|
1171
1171
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1172
|
-
return [2
|
|
1172
|
+
return [2, Promise.resolve(response)];
|
|
1173
1173
|
}
|
|
1174
1174
|
});
|
|
1175
1175
|
}); };
|
|
@@ -1181,55 +1181,55 @@ var deserializeAws_json1_1GetCostCategoriesCommandError = function (output, cont
|
|
|
1181
1181
|
case 0:
|
|
1182
1182
|
_a = [__assign({}, output)];
|
|
1183
1183
|
_h = {};
|
|
1184
|
-
return [4
|
|
1184
|
+
return [4, parseBody(output.body, context)];
|
|
1185
1185
|
case 1:
|
|
1186
1186
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1187
1187
|
errorCode = "UnknownError";
|
|
1188
1188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
1189
|
_b = errorCode;
|
|
1190
1190
|
switch (_b) {
|
|
1191
|
-
case "BillExpirationException": return [3
|
|
1192
|
-
case "com.amazonaws.costexplorer#BillExpirationException": return [3
|
|
1193
|
-
case "DataUnavailableException": return [3
|
|
1194
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1195
|
-
case "InvalidNextTokenException": return [3
|
|
1196
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1197
|
-
case "LimitExceededException": return [3
|
|
1198
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1199
|
-
case "RequestChangedException": return [3
|
|
1200
|
-
case "com.amazonaws.costexplorer#RequestChangedException": return [3
|
|
1191
|
+
case "BillExpirationException": return [3, 2];
|
|
1192
|
+
case "com.amazonaws.costexplorer#BillExpirationException": return [3, 2];
|
|
1193
|
+
case "DataUnavailableException": return [3, 4];
|
|
1194
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 4];
|
|
1195
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1196
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 6];
|
|
1197
|
+
case "LimitExceededException": return [3, 8];
|
|
1198
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 8];
|
|
1199
|
+
case "RequestChangedException": return [3, 10];
|
|
1200
|
+
case "com.amazonaws.costexplorer#RequestChangedException": return [3, 10];
|
|
1201
1201
|
}
|
|
1202
|
-
return [3
|
|
1202
|
+
return [3, 12];
|
|
1203
1203
|
case 2:
|
|
1204
1204
|
_c = [{}];
|
|
1205
|
-
return [4
|
|
1205
|
+
return [4, deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)];
|
|
1206
1206
|
case 3:
|
|
1207
1207
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1208
|
-
return [3
|
|
1208
|
+
return [3, 13];
|
|
1209
1209
|
case 4:
|
|
1210
1210
|
_d = [{}];
|
|
1211
|
-
return [4
|
|
1211
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1212
1212
|
case 5:
|
|
1213
1213
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1214
|
-
return [3
|
|
1214
|
+
return [3, 13];
|
|
1215
1215
|
case 6:
|
|
1216
1216
|
_e = [{}];
|
|
1217
|
-
return [4
|
|
1217
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1218
1218
|
case 7:
|
|
1219
1219
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1220
|
-
return [3
|
|
1220
|
+
return [3, 13];
|
|
1221
1221
|
case 8:
|
|
1222
1222
|
_f = [{}];
|
|
1223
|
-
return [4
|
|
1223
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1224
1224
|
case 9:
|
|
1225
1225
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1226
|
-
return [3
|
|
1226
|
+
return [3, 13];
|
|
1227
1227
|
case 10:
|
|
1228
1228
|
_g = [{}];
|
|
1229
|
-
return [4
|
|
1229
|
+
return [4, deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)];
|
|
1230
1230
|
case 11:
|
|
1231
1231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1232
|
-
return [3
|
|
1232
|
+
return [3, 13];
|
|
1233
1233
|
case 12:
|
|
1234
1234
|
parsedBody = parsedOutput.body;
|
|
1235
1235
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1239,7 +1239,7 @@ var deserializeAws_json1_1GetCostCategoriesCommandError = function (output, cont
|
|
|
1239
1239
|
message = response.message || response.Message || errorCode;
|
|
1240
1240
|
response.message = message;
|
|
1241
1241
|
delete response.Message;
|
|
1242
|
-
return [2
|
|
1242
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1243
1243
|
}
|
|
1244
1244
|
});
|
|
1245
1245
|
}); };
|
|
@@ -1249,15 +1249,15 @@ export var deserializeAws_json1_1GetCostForecastCommand = function (output, cont
|
|
|
1249
1249
|
switch (_a.label) {
|
|
1250
1250
|
case 0:
|
|
1251
1251
|
if (output.statusCode >= 300) {
|
|
1252
|
-
return [2
|
|
1252
|
+
return [2, deserializeAws_json1_1GetCostForecastCommandError(output, context)];
|
|
1253
1253
|
}
|
|
1254
|
-
return [4
|
|
1254
|
+
return [4, parseBody(output.body, context)];
|
|
1255
1255
|
case 1:
|
|
1256
1256
|
data = _a.sent();
|
|
1257
1257
|
contents = {};
|
|
1258
1258
|
contents = deserializeAws_json1_1GetCostForecastResponse(data, context);
|
|
1259
1259
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1260
|
-
return [2
|
|
1260
|
+
return [2, Promise.resolve(response)];
|
|
1261
1261
|
}
|
|
1262
1262
|
});
|
|
1263
1263
|
}); };
|
|
@@ -1269,31 +1269,31 @@ var deserializeAws_json1_1GetCostForecastCommandError = function (output, contex
|
|
|
1269
1269
|
case 0:
|
|
1270
1270
|
_a = [__assign({}, output)];
|
|
1271
1271
|
_e = {};
|
|
1272
|
-
return [4
|
|
1272
|
+
return [4, parseBody(output.body, context)];
|
|
1273
1273
|
case 1:
|
|
1274
1274
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1275
1275
|
errorCode = "UnknownError";
|
|
1276
1276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
1277
|
_b = errorCode;
|
|
1278
1278
|
switch (_b) {
|
|
1279
|
-
case "DataUnavailableException": return [3
|
|
1280
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1281
|
-
case "LimitExceededException": return [3
|
|
1282
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1279
|
+
case "DataUnavailableException": return [3, 2];
|
|
1280
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1281
|
+
case "LimitExceededException": return [3, 4];
|
|
1282
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
1283
1283
|
}
|
|
1284
|
-
return [3
|
|
1284
|
+
return [3, 6];
|
|
1285
1285
|
case 2:
|
|
1286
1286
|
_c = [{}];
|
|
1287
|
-
return [4
|
|
1287
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1288
1288
|
case 3:
|
|
1289
1289
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1290
|
-
return [3
|
|
1290
|
+
return [3, 7];
|
|
1291
1291
|
case 4:
|
|
1292
1292
|
_d = [{}];
|
|
1293
|
-
return [4
|
|
1293
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1294
1294
|
case 5:
|
|
1295
1295
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1296
|
-
return [3
|
|
1296
|
+
return [3, 7];
|
|
1297
1297
|
case 6:
|
|
1298
1298
|
parsedBody = parsedOutput.body;
|
|
1299
1299
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1303,7 +1303,7 @@ var deserializeAws_json1_1GetCostForecastCommandError = function (output, contex
|
|
|
1303
1303
|
message = response.message || response.Message || errorCode;
|
|
1304
1304
|
response.message = message;
|
|
1305
1305
|
delete response.Message;
|
|
1306
|
-
return [2
|
|
1306
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1307
1307
|
}
|
|
1308
1308
|
});
|
|
1309
1309
|
}); };
|
|
@@ -1313,15 +1313,15 @@ export var deserializeAws_json1_1GetDimensionValuesCommand = function (output, c
|
|
|
1313
1313
|
switch (_a.label) {
|
|
1314
1314
|
case 0:
|
|
1315
1315
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return [2
|
|
1316
|
+
return [2, deserializeAws_json1_1GetDimensionValuesCommandError(output, context)];
|
|
1317
1317
|
}
|
|
1318
|
-
return [4
|
|
1318
|
+
return [4, parseBody(output.body, context)];
|
|
1319
1319
|
case 1:
|
|
1320
1320
|
data = _a.sent();
|
|
1321
1321
|
contents = {};
|
|
1322
1322
|
contents = deserializeAws_json1_1GetDimensionValuesResponse(data, context);
|
|
1323
1323
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1324
|
-
return [2
|
|
1324
|
+
return [2, Promise.resolve(response)];
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
1327
1327
|
}); };
|
|
@@ -1333,55 +1333,55 @@ var deserializeAws_json1_1GetDimensionValuesCommandError = function (output, con
|
|
|
1333
1333
|
case 0:
|
|
1334
1334
|
_a = [__assign({}, output)];
|
|
1335
1335
|
_h = {};
|
|
1336
|
-
return [4
|
|
1336
|
+
return [4, parseBody(output.body, context)];
|
|
1337
1337
|
case 1:
|
|
1338
1338
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1339
1339
|
errorCode = "UnknownError";
|
|
1340
1340
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1341
|
_b = errorCode;
|
|
1342
1342
|
switch (_b) {
|
|
1343
|
-
case "BillExpirationException": return [3
|
|
1344
|
-
case "com.amazonaws.costexplorer#BillExpirationException": return [3
|
|
1345
|
-
case "DataUnavailableException": return [3
|
|
1346
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1347
|
-
case "InvalidNextTokenException": return [3
|
|
1348
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1349
|
-
case "LimitExceededException": return [3
|
|
1350
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1351
|
-
case "RequestChangedException": return [3
|
|
1352
|
-
case "com.amazonaws.costexplorer#RequestChangedException": return [3
|
|
1343
|
+
case "BillExpirationException": return [3, 2];
|
|
1344
|
+
case "com.amazonaws.costexplorer#BillExpirationException": return [3, 2];
|
|
1345
|
+
case "DataUnavailableException": return [3, 4];
|
|
1346
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 4];
|
|
1347
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1348
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 6];
|
|
1349
|
+
case "LimitExceededException": return [3, 8];
|
|
1350
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 8];
|
|
1351
|
+
case "RequestChangedException": return [3, 10];
|
|
1352
|
+
case "com.amazonaws.costexplorer#RequestChangedException": return [3, 10];
|
|
1353
1353
|
}
|
|
1354
|
-
return [3
|
|
1354
|
+
return [3, 12];
|
|
1355
1355
|
case 2:
|
|
1356
1356
|
_c = [{}];
|
|
1357
|
-
return [4
|
|
1357
|
+
return [4, deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)];
|
|
1358
1358
|
case 3:
|
|
1359
1359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1360
|
-
return [3
|
|
1360
|
+
return [3, 13];
|
|
1361
1361
|
case 4:
|
|
1362
1362
|
_d = [{}];
|
|
1363
|
-
return [4
|
|
1363
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1364
1364
|
case 5:
|
|
1365
1365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1366
|
-
return [3
|
|
1366
|
+
return [3, 13];
|
|
1367
1367
|
case 6:
|
|
1368
1368
|
_e = [{}];
|
|
1369
|
-
return [4
|
|
1369
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1370
1370
|
case 7:
|
|
1371
1371
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1372
|
-
return [3
|
|
1372
|
+
return [3, 13];
|
|
1373
1373
|
case 8:
|
|
1374
1374
|
_f = [{}];
|
|
1375
|
-
return [4
|
|
1375
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1376
1376
|
case 9:
|
|
1377
1377
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1378
|
-
return [3
|
|
1378
|
+
return [3, 13];
|
|
1379
1379
|
case 10:
|
|
1380
1380
|
_g = [{}];
|
|
1381
|
-
return [4
|
|
1381
|
+
return [4, deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)];
|
|
1382
1382
|
case 11:
|
|
1383
1383
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1384
|
-
return [3
|
|
1384
|
+
return [3, 13];
|
|
1385
1385
|
case 12:
|
|
1386
1386
|
parsedBody = parsedOutput.body;
|
|
1387
1387
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1391,7 +1391,7 @@ var deserializeAws_json1_1GetDimensionValuesCommandError = function (output, con
|
|
|
1391
1391
|
message = response.message || response.Message || errorCode;
|
|
1392
1392
|
response.message = message;
|
|
1393
1393
|
delete response.Message;
|
|
1394
|
-
return [2
|
|
1394
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
}); };
|
|
@@ -1401,15 +1401,15 @@ export var deserializeAws_json1_1GetReservationCoverageCommand = function (outpu
|
|
|
1401
1401
|
switch (_a.label) {
|
|
1402
1402
|
case 0:
|
|
1403
1403
|
if (output.statusCode >= 300) {
|
|
1404
|
-
return [2
|
|
1404
|
+
return [2, deserializeAws_json1_1GetReservationCoverageCommandError(output, context)];
|
|
1405
1405
|
}
|
|
1406
|
-
return [4
|
|
1406
|
+
return [4, parseBody(output.body, context)];
|
|
1407
1407
|
case 1:
|
|
1408
1408
|
data = _a.sent();
|
|
1409
1409
|
contents = {};
|
|
1410
1410
|
contents = deserializeAws_json1_1GetReservationCoverageResponse(data, context);
|
|
1411
1411
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1412
|
-
return [2
|
|
1412
|
+
return [2, Promise.resolve(response)];
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
1415
1415
|
}); };
|
|
@@ -1421,39 +1421,39 @@ var deserializeAws_json1_1GetReservationCoverageCommandError = function (output,
|
|
|
1421
1421
|
case 0:
|
|
1422
1422
|
_a = [__assign({}, output)];
|
|
1423
1423
|
_f = {};
|
|
1424
|
-
return [4
|
|
1424
|
+
return [4, parseBody(output.body, context)];
|
|
1425
1425
|
case 1:
|
|
1426
1426
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1427
1427
|
errorCode = "UnknownError";
|
|
1428
1428
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
1429
|
_b = errorCode;
|
|
1430
1430
|
switch (_b) {
|
|
1431
|
-
case "DataUnavailableException": return [3
|
|
1432
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1433
|
-
case "InvalidNextTokenException": return [3
|
|
1434
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1435
|
-
case "LimitExceededException": return [3
|
|
1436
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1431
|
+
case "DataUnavailableException": return [3, 2];
|
|
1432
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1433
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1434
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 4];
|
|
1435
|
+
case "LimitExceededException": return [3, 6];
|
|
1436
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 6];
|
|
1437
1437
|
}
|
|
1438
|
-
return [3
|
|
1438
|
+
return [3, 8];
|
|
1439
1439
|
case 2:
|
|
1440
1440
|
_c = [{}];
|
|
1441
|
-
return [4
|
|
1441
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1442
1442
|
case 3:
|
|
1443
1443
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1444
|
-
return [3
|
|
1444
|
+
return [3, 9];
|
|
1445
1445
|
case 4:
|
|
1446
1446
|
_d = [{}];
|
|
1447
|
-
return [4
|
|
1447
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1448
1448
|
case 5:
|
|
1449
1449
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1450
|
-
return [3
|
|
1450
|
+
return [3, 9];
|
|
1451
1451
|
case 6:
|
|
1452
1452
|
_e = [{}];
|
|
1453
|
-
return [4
|
|
1453
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1454
1454
|
case 7:
|
|
1455
1455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1456
|
-
return [3
|
|
1456
|
+
return [3, 9];
|
|
1457
1457
|
case 8:
|
|
1458
1458
|
parsedBody = parsedOutput.body;
|
|
1459
1459
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1463,7 +1463,7 @@ var deserializeAws_json1_1GetReservationCoverageCommandError = function (output,
|
|
|
1463
1463
|
message = response.message || response.Message || errorCode;
|
|
1464
1464
|
response.message = message;
|
|
1465
1465
|
delete response.Message;
|
|
1466
|
-
return [2
|
|
1466
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1467
1467
|
}
|
|
1468
1468
|
});
|
|
1469
1469
|
}); };
|
|
@@ -1473,15 +1473,15 @@ export var deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = f
|
|
|
1473
1473
|
switch (_a.label) {
|
|
1474
1474
|
case 0:
|
|
1475
1475
|
if (output.statusCode >= 300) {
|
|
1476
|
-
return [2
|
|
1476
|
+
return [2, deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError(output, context)];
|
|
1477
1477
|
}
|
|
1478
|
-
return [4
|
|
1478
|
+
return [4, parseBody(output.body, context)];
|
|
1479
1479
|
case 1:
|
|
1480
1480
|
data = _a.sent();
|
|
1481
1481
|
contents = {};
|
|
1482
1482
|
contents = deserializeAws_json1_1GetReservationPurchaseRecommendationResponse(data, context);
|
|
1483
1483
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1484
|
-
return [2
|
|
1484
|
+
return [2, Promise.resolve(response)];
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
}); };
|
|
@@ -1493,39 +1493,39 @@ var deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = fun
|
|
|
1493
1493
|
case 0:
|
|
1494
1494
|
_a = [__assign({}, output)];
|
|
1495
1495
|
_f = {};
|
|
1496
|
-
return [4
|
|
1496
|
+
return [4, parseBody(output.body, context)];
|
|
1497
1497
|
case 1:
|
|
1498
1498
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1499
1499
|
errorCode = "UnknownError";
|
|
1500
1500
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
1501
|
_b = errorCode;
|
|
1502
1502
|
switch (_b) {
|
|
1503
|
-
case "DataUnavailableException": return [3
|
|
1504
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1505
|
-
case "InvalidNextTokenException": return [3
|
|
1506
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1507
|
-
case "LimitExceededException": return [3
|
|
1508
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1503
|
+
case "DataUnavailableException": return [3, 2];
|
|
1504
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1505
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1506
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 4];
|
|
1507
|
+
case "LimitExceededException": return [3, 6];
|
|
1508
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 6];
|
|
1509
1509
|
}
|
|
1510
|
-
return [3
|
|
1510
|
+
return [3, 8];
|
|
1511
1511
|
case 2:
|
|
1512
1512
|
_c = [{}];
|
|
1513
|
-
return [4
|
|
1513
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1514
1514
|
case 3:
|
|
1515
1515
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1516
|
-
return [3
|
|
1516
|
+
return [3, 9];
|
|
1517
1517
|
case 4:
|
|
1518
1518
|
_d = [{}];
|
|
1519
|
-
return [4
|
|
1519
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1520
1520
|
case 5:
|
|
1521
1521
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1522
|
-
return [3
|
|
1522
|
+
return [3, 9];
|
|
1523
1523
|
case 6:
|
|
1524
1524
|
_e = [{}];
|
|
1525
|
-
return [4
|
|
1525
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1526
1526
|
case 7:
|
|
1527
1527
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1528
|
-
return [3
|
|
1528
|
+
return [3, 9];
|
|
1529
1529
|
case 8:
|
|
1530
1530
|
parsedBody = parsedOutput.body;
|
|
1531
1531
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1535,7 +1535,7 @@ var deserializeAws_json1_1GetReservationPurchaseRecommendationCommandError = fun
|
|
|
1535
1535
|
message = response.message || response.Message || errorCode;
|
|
1536
1536
|
response.message = message;
|
|
1537
1537
|
delete response.Message;
|
|
1538
|
-
return [2
|
|
1538
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1539
1539
|
}
|
|
1540
1540
|
});
|
|
1541
1541
|
}); };
|
|
@@ -1545,15 +1545,15 @@ export var deserializeAws_json1_1GetReservationUtilizationCommand = function (ou
|
|
|
1545
1545
|
switch (_a.label) {
|
|
1546
1546
|
case 0:
|
|
1547
1547
|
if (output.statusCode >= 300) {
|
|
1548
|
-
return [2
|
|
1548
|
+
return [2, deserializeAws_json1_1GetReservationUtilizationCommandError(output, context)];
|
|
1549
1549
|
}
|
|
1550
|
-
return [4
|
|
1550
|
+
return [4, parseBody(output.body, context)];
|
|
1551
1551
|
case 1:
|
|
1552
1552
|
data = _a.sent();
|
|
1553
1553
|
contents = {};
|
|
1554
1554
|
contents = deserializeAws_json1_1GetReservationUtilizationResponse(data, context);
|
|
1555
1555
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1556
|
-
return [2
|
|
1556
|
+
return [2, Promise.resolve(response)];
|
|
1557
1557
|
}
|
|
1558
1558
|
});
|
|
1559
1559
|
}); };
|
|
@@ -1565,39 +1565,39 @@ var deserializeAws_json1_1GetReservationUtilizationCommandError = function (outp
|
|
|
1565
1565
|
case 0:
|
|
1566
1566
|
_a = [__assign({}, output)];
|
|
1567
1567
|
_f = {};
|
|
1568
|
-
return [4
|
|
1568
|
+
return [4, parseBody(output.body, context)];
|
|
1569
1569
|
case 1:
|
|
1570
1570
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1571
1571
|
errorCode = "UnknownError";
|
|
1572
1572
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
1573
|
_b = errorCode;
|
|
1574
1574
|
switch (_b) {
|
|
1575
|
-
case "DataUnavailableException": return [3
|
|
1576
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1577
|
-
case "InvalidNextTokenException": return [3
|
|
1578
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1579
|
-
case "LimitExceededException": return [3
|
|
1580
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1575
|
+
case "DataUnavailableException": return [3, 2];
|
|
1576
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1577
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1578
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 4];
|
|
1579
|
+
case "LimitExceededException": return [3, 6];
|
|
1580
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 6];
|
|
1581
1581
|
}
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 8];
|
|
1583
1583
|
case 2:
|
|
1584
1584
|
_c = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 3:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 9];
|
|
1589
1589
|
case 4:
|
|
1590
1590
|
_d = [{}];
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1592
1592
|
case 5:
|
|
1593
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3
|
|
1594
|
+
return [3, 9];
|
|
1595
1595
|
case 6:
|
|
1596
1596
|
_e = [{}];
|
|
1597
|
-
return [4
|
|
1597
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1598
1598
|
case 7:
|
|
1599
1599
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
-
return [3
|
|
1600
|
+
return [3, 9];
|
|
1601
1601
|
case 8:
|
|
1602
1602
|
parsedBody = parsedOutput.body;
|
|
1603
1603
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1607,7 +1607,7 @@ var deserializeAws_json1_1GetReservationUtilizationCommandError = function (outp
|
|
|
1607
1607
|
message = response.message || response.Message || errorCode;
|
|
1608
1608
|
response.message = message;
|
|
1609
1609
|
delete response.Message;
|
|
1610
|
-
return [2
|
|
1610
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1611
1611
|
}
|
|
1612
1612
|
});
|
|
1613
1613
|
}); };
|
|
@@ -1617,15 +1617,15 @@ export var deserializeAws_json1_1GetRightsizingRecommendationCommand = function
|
|
|
1617
1617
|
switch (_a.label) {
|
|
1618
1618
|
case 0:
|
|
1619
1619
|
if (output.statusCode >= 300) {
|
|
1620
|
-
return [2
|
|
1620
|
+
return [2, deserializeAws_json1_1GetRightsizingRecommendationCommandError(output, context)];
|
|
1621
1621
|
}
|
|
1622
|
-
return [4
|
|
1622
|
+
return [4, parseBody(output.body, context)];
|
|
1623
1623
|
case 1:
|
|
1624
1624
|
data = _a.sent();
|
|
1625
1625
|
contents = {};
|
|
1626
1626
|
contents = deserializeAws_json1_1GetRightsizingRecommendationResponse(data, context);
|
|
1627
1627
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1628
|
-
return [2
|
|
1628
|
+
return [2, Promise.resolve(response)];
|
|
1629
1629
|
}
|
|
1630
1630
|
});
|
|
1631
1631
|
}); };
|
|
@@ -1637,31 +1637,31 @@ var deserializeAws_json1_1GetRightsizingRecommendationCommandError = function (o
|
|
|
1637
1637
|
case 0:
|
|
1638
1638
|
_a = [__assign({}, output)];
|
|
1639
1639
|
_e = {};
|
|
1640
|
-
return [4
|
|
1640
|
+
return [4, parseBody(output.body, context)];
|
|
1641
1641
|
case 1:
|
|
1642
1642
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1643
1643
|
errorCode = "UnknownError";
|
|
1644
1644
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1645
1645
|
_b = errorCode;
|
|
1646
1646
|
switch (_b) {
|
|
1647
|
-
case "InvalidNextTokenException": return [3
|
|
1648
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1649
|
-
case "LimitExceededException": return [3
|
|
1650
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1647
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1648
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 2];
|
|
1649
|
+
case "LimitExceededException": return [3, 4];
|
|
1650
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
1651
1651
|
}
|
|
1652
|
-
return [3
|
|
1652
|
+
return [3, 6];
|
|
1653
1653
|
case 2:
|
|
1654
1654
|
_c = [{}];
|
|
1655
|
-
return [4
|
|
1655
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1656
1656
|
case 3:
|
|
1657
1657
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1658
|
-
return [3
|
|
1658
|
+
return [3, 7];
|
|
1659
1659
|
case 4:
|
|
1660
1660
|
_d = [{}];
|
|
1661
|
-
return [4
|
|
1661
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1662
1662
|
case 5:
|
|
1663
1663
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1664
|
-
return [3
|
|
1664
|
+
return [3, 7];
|
|
1665
1665
|
case 6:
|
|
1666
1666
|
parsedBody = parsedOutput.body;
|
|
1667
1667
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1671,7 +1671,7 @@ var deserializeAws_json1_1GetRightsizingRecommendationCommandError = function (o
|
|
|
1671
1671
|
message = response.message || response.Message || errorCode;
|
|
1672
1672
|
response.message = message;
|
|
1673
1673
|
delete response.Message;
|
|
1674
|
-
return [2
|
|
1674
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1675
1675
|
}
|
|
1676
1676
|
});
|
|
1677
1677
|
}); };
|
|
@@ -1681,15 +1681,15 @@ export var deserializeAws_json1_1GetSavingsPlansCoverageCommand = function (outp
|
|
|
1681
1681
|
switch (_a.label) {
|
|
1682
1682
|
case 0:
|
|
1683
1683
|
if (output.statusCode >= 300) {
|
|
1684
|
-
return [2
|
|
1684
|
+
return [2, deserializeAws_json1_1GetSavingsPlansCoverageCommandError(output, context)];
|
|
1685
1685
|
}
|
|
1686
|
-
return [4
|
|
1686
|
+
return [4, parseBody(output.body, context)];
|
|
1687
1687
|
case 1:
|
|
1688
1688
|
data = _a.sent();
|
|
1689
1689
|
contents = {};
|
|
1690
1690
|
contents = deserializeAws_json1_1GetSavingsPlansCoverageResponse(data, context);
|
|
1691
1691
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1692
|
-
return [2
|
|
1692
|
+
return [2, Promise.resolve(response)];
|
|
1693
1693
|
}
|
|
1694
1694
|
});
|
|
1695
1695
|
}); };
|
|
@@ -1701,39 +1701,39 @@ var deserializeAws_json1_1GetSavingsPlansCoverageCommandError = function (output
|
|
|
1701
1701
|
case 0:
|
|
1702
1702
|
_a = [__assign({}, output)];
|
|
1703
1703
|
_f = {};
|
|
1704
|
-
return [4
|
|
1704
|
+
return [4, parseBody(output.body, context)];
|
|
1705
1705
|
case 1:
|
|
1706
1706
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1707
1707
|
errorCode = "UnknownError";
|
|
1708
1708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1709
|
_b = errorCode;
|
|
1710
1710
|
switch (_b) {
|
|
1711
|
-
case "DataUnavailableException": return [3
|
|
1712
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1713
|
-
case "InvalidNextTokenException": return [3
|
|
1714
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1715
|
-
case "LimitExceededException": return [3
|
|
1716
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1711
|
+
case "DataUnavailableException": return [3, 2];
|
|
1712
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1713
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1714
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 4];
|
|
1715
|
+
case "LimitExceededException": return [3, 6];
|
|
1716
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 6];
|
|
1717
1717
|
}
|
|
1718
|
-
return [3
|
|
1718
|
+
return [3, 8];
|
|
1719
1719
|
case 2:
|
|
1720
1720
|
_c = [{}];
|
|
1721
|
-
return [4
|
|
1721
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1722
1722
|
case 3:
|
|
1723
1723
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1724
|
-
return [3
|
|
1724
|
+
return [3, 9];
|
|
1725
1725
|
case 4:
|
|
1726
1726
|
_d = [{}];
|
|
1727
|
-
return [4
|
|
1727
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1728
1728
|
case 5:
|
|
1729
1729
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1730
|
-
return [3
|
|
1730
|
+
return [3, 9];
|
|
1731
1731
|
case 6:
|
|
1732
1732
|
_e = [{}];
|
|
1733
|
-
return [4
|
|
1733
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1734
1734
|
case 7:
|
|
1735
1735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1736
|
-
return [3
|
|
1736
|
+
return [3, 9];
|
|
1737
1737
|
case 8:
|
|
1738
1738
|
parsedBody = parsedOutput.body;
|
|
1739
1739
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1743,7 +1743,7 @@ var deserializeAws_json1_1GetSavingsPlansCoverageCommandError = function (output
|
|
|
1743
1743
|
message = response.message || response.Message || errorCode;
|
|
1744
1744
|
response.message = message;
|
|
1745
1745
|
delete response.Message;
|
|
1746
|
-
return [2
|
|
1746
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1747
1747
|
}
|
|
1748
1748
|
});
|
|
1749
1749
|
}); };
|
|
@@ -1753,15 +1753,15 @@ export var deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand =
|
|
|
1753
1753
|
switch (_a.label) {
|
|
1754
1754
|
case 0:
|
|
1755
1755
|
if (output.statusCode >= 300) {
|
|
1756
|
-
return [2
|
|
1756
|
+
return [2, deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError(output, context)];
|
|
1757
1757
|
}
|
|
1758
|
-
return [4
|
|
1758
|
+
return [4, parseBody(output.body, context)];
|
|
1759
1759
|
case 1:
|
|
1760
1760
|
data = _a.sent();
|
|
1761
1761
|
contents = {};
|
|
1762
1762
|
contents = deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationResponse(data, context);
|
|
1763
1763
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1764
|
-
return [2
|
|
1764
|
+
return [2, Promise.resolve(response)];
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
1767
1767
|
}); };
|
|
@@ -1773,31 +1773,31 @@ var deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError = fu
|
|
|
1773
1773
|
case 0:
|
|
1774
1774
|
_a = [__assign({}, output)];
|
|
1775
1775
|
_e = {};
|
|
1776
|
-
return [4
|
|
1776
|
+
return [4, parseBody(output.body, context)];
|
|
1777
1777
|
case 1:
|
|
1778
1778
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1779
1779
|
errorCode = "UnknownError";
|
|
1780
1780
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
1781
|
_b = errorCode;
|
|
1782
1782
|
switch (_b) {
|
|
1783
|
-
case "InvalidNextTokenException": return [3
|
|
1784
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1785
|
-
case "LimitExceededException": return [3
|
|
1786
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1783
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1784
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 2];
|
|
1785
|
+
case "LimitExceededException": return [3, 4];
|
|
1786
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
1787
1787
|
}
|
|
1788
|
-
return [3
|
|
1788
|
+
return [3, 6];
|
|
1789
1789
|
case 2:
|
|
1790
1790
|
_c = [{}];
|
|
1791
|
-
return [4
|
|
1791
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1792
1792
|
case 3:
|
|
1793
1793
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1794
|
-
return [3
|
|
1794
|
+
return [3, 7];
|
|
1795
1795
|
case 4:
|
|
1796
1796
|
_d = [{}];
|
|
1797
|
-
return [4
|
|
1797
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1798
1798
|
case 5:
|
|
1799
1799
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1800
|
-
return [3
|
|
1800
|
+
return [3, 7];
|
|
1801
1801
|
case 6:
|
|
1802
1802
|
parsedBody = parsedOutput.body;
|
|
1803
1803
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1807,7 +1807,7 @@ var deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommandError = fu
|
|
|
1807
1807
|
message = response.message || response.Message || errorCode;
|
|
1808
1808
|
response.message = message;
|
|
1809
1809
|
delete response.Message;
|
|
1810
|
-
return [2
|
|
1810
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1811
1811
|
}
|
|
1812
1812
|
});
|
|
1813
1813
|
}); };
|
|
@@ -1817,15 +1817,15 @@ export var deserializeAws_json1_1GetSavingsPlansUtilizationCommand = function (o
|
|
|
1817
1817
|
switch (_a.label) {
|
|
1818
1818
|
case 0:
|
|
1819
1819
|
if (output.statusCode >= 300) {
|
|
1820
|
-
return [2
|
|
1820
|
+
return [2, deserializeAws_json1_1GetSavingsPlansUtilizationCommandError(output, context)];
|
|
1821
1821
|
}
|
|
1822
|
-
return [4
|
|
1822
|
+
return [4, parseBody(output.body, context)];
|
|
1823
1823
|
case 1:
|
|
1824
1824
|
data = _a.sent();
|
|
1825
1825
|
contents = {};
|
|
1826
1826
|
contents = deserializeAws_json1_1GetSavingsPlansUtilizationResponse(data, context);
|
|
1827
1827
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1828
|
-
return [2
|
|
1828
|
+
return [2, Promise.resolve(response)];
|
|
1829
1829
|
}
|
|
1830
1830
|
});
|
|
1831
1831
|
}); };
|
|
@@ -1837,31 +1837,31 @@ var deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = function (out
|
|
|
1837
1837
|
case 0:
|
|
1838
1838
|
_a = [__assign({}, output)];
|
|
1839
1839
|
_e = {};
|
|
1840
|
-
return [4
|
|
1840
|
+
return [4, parseBody(output.body, context)];
|
|
1841
1841
|
case 1:
|
|
1842
1842
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1843
1843
|
errorCode = "UnknownError";
|
|
1844
1844
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
1845
|
_b = errorCode;
|
|
1846
1846
|
switch (_b) {
|
|
1847
|
-
case "DataUnavailableException": return [3
|
|
1848
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1849
|
-
case "LimitExceededException": return [3
|
|
1850
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1847
|
+
case "DataUnavailableException": return [3, 2];
|
|
1848
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1849
|
+
case "LimitExceededException": return [3, 4];
|
|
1850
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
1851
1851
|
}
|
|
1852
|
-
return [3
|
|
1852
|
+
return [3, 6];
|
|
1853
1853
|
case 2:
|
|
1854
1854
|
_c = [{}];
|
|
1855
|
-
return [4
|
|
1855
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1856
1856
|
case 3:
|
|
1857
1857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1858
|
-
return [3
|
|
1858
|
+
return [3, 7];
|
|
1859
1859
|
case 4:
|
|
1860
1860
|
_d = [{}];
|
|
1861
|
-
return [4
|
|
1861
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1862
1862
|
case 5:
|
|
1863
1863
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1864
|
-
return [3
|
|
1864
|
+
return [3, 7];
|
|
1865
1865
|
case 6:
|
|
1866
1866
|
parsedBody = parsedOutput.body;
|
|
1867
1867
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1871,7 +1871,7 @@ var deserializeAws_json1_1GetSavingsPlansUtilizationCommandError = function (out
|
|
|
1871
1871
|
message = response.message || response.Message || errorCode;
|
|
1872
1872
|
response.message = message;
|
|
1873
1873
|
delete response.Message;
|
|
1874
|
-
return [2
|
|
1874
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1875
1875
|
}
|
|
1876
1876
|
});
|
|
1877
1877
|
}); };
|
|
@@ -1881,15 +1881,15 @@ export var deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = func
|
|
|
1881
1881
|
switch (_a.label) {
|
|
1882
1882
|
case 0:
|
|
1883
1883
|
if (output.statusCode >= 300) {
|
|
1884
|
-
return [2
|
|
1884
|
+
return [2, deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError(output, context)];
|
|
1885
1885
|
}
|
|
1886
|
-
return [4
|
|
1886
|
+
return [4, parseBody(output.body, context)];
|
|
1887
1887
|
case 1:
|
|
1888
1888
|
data = _a.sent();
|
|
1889
1889
|
contents = {};
|
|
1890
1890
|
contents = deserializeAws_json1_1GetSavingsPlansUtilizationDetailsResponse(data, context);
|
|
1891
1891
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1892
|
-
return [2
|
|
1892
|
+
return [2, Promise.resolve(response)];
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
}); };
|
|
@@ -1901,39 +1901,39 @@ var deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = functi
|
|
|
1901
1901
|
case 0:
|
|
1902
1902
|
_a = [__assign({}, output)];
|
|
1903
1903
|
_f = {};
|
|
1904
|
-
return [4
|
|
1904
|
+
return [4, parseBody(output.body, context)];
|
|
1905
1905
|
case 1:
|
|
1906
1906
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1907
1907
|
errorCode = "UnknownError";
|
|
1908
1908
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
1909
|
_b = errorCode;
|
|
1910
1910
|
switch (_b) {
|
|
1911
|
-
case "DataUnavailableException": return [3
|
|
1912
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1913
|
-
case "InvalidNextTokenException": return [3
|
|
1914
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1915
|
-
case "LimitExceededException": return [3
|
|
1916
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1911
|
+
case "DataUnavailableException": return [3, 2];
|
|
1912
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
1913
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
1914
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 4];
|
|
1915
|
+
case "LimitExceededException": return [3, 6];
|
|
1916
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 6];
|
|
1917
1917
|
}
|
|
1918
|
-
return [3
|
|
1918
|
+
return [3, 8];
|
|
1919
1919
|
case 2:
|
|
1920
1920
|
_c = [{}];
|
|
1921
|
-
return [4
|
|
1921
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
1922
1922
|
case 3:
|
|
1923
1923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1924
|
-
return [3
|
|
1924
|
+
return [3, 9];
|
|
1925
1925
|
case 4:
|
|
1926
1926
|
_d = [{}];
|
|
1927
|
-
return [4
|
|
1927
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1928
1928
|
case 5:
|
|
1929
1929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1930
|
-
return [3
|
|
1930
|
+
return [3, 9];
|
|
1931
1931
|
case 6:
|
|
1932
1932
|
_e = [{}];
|
|
1933
|
-
return [4
|
|
1933
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1934
1934
|
case 7:
|
|
1935
1935
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1936
|
-
return [3
|
|
1936
|
+
return [3, 9];
|
|
1937
1937
|
case 8:
|
|
1938
1938
|
parsedBody = parsedOutput.body;
|
|
1939
1939
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1943,7 +1943,7 @@ var deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommandError = functi
|
|
|
1943
1943
|
message = response.message || response.Message || errorCode;
|
|
1944
1944
|
response.message = message;
|
|
1945
1945
|
delete response.Message;
|
|
1946
|
-
return [2
|
|
1946
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1947
1947
|
}
|
|
1948
1948
|
});
|
|
1949
1949
|
}); };
|
|
@@ -1953,15 +1953,15 @@ export var deserializeAws_json1_1GetTagsCommand = function (output, context) { r
|
|
|
1953
1953
|
switch (_a.label) {
|
|
1954
1954
|
case 0:
|
|
1955
1955
|
if (output.statusCode >= 300) {
|
|
1956
|
-
return [2
|
|
1956
|
+
return [2, deserializeAws_json1_1GetTagsCommandError(output, context)];
|
|
1957
1957
|
}
|
|
1958
|
-
return [4
|
|
1958
|
+
return [4, parseBody(output.body, context)];
|
|
1959
1959
|
case 1:
|
|
1960
1960
|
data = _a.sent();
|
|
1961
1961
|
contents = {};
|
|
1962
1962
|
contents = deserializeAws_json1_1GetTagsResponse(data, context);
|
|
1963
1963
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1964
|
-
return [2
|
|
1964
|
+
return [2, Promise.resolve(response)];
|
|
1965
1965
|
}
|
|
1966
1966
|
});
|
|
1967
1967
|
}); };
|
|
@@ -1973,55 +1973,55 @@ var deserializeAws_json1_1GetTagsCommandError = function (output, context) { ret
|
|
|
1973
1973
|
case 0:
|
|
1974
1974
|
_a = [__assign({}, output)];
|
|
1975
1975
|
_h = {};
|
|
1976
|
-
return [4
|
|
1976
|
+
return [4, parseBody(output.body, context)];
|
|
1977
1977
|
case 1:
|
|
1978
1978
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1979
1979
|
errorCode = "UnknownError";
|
|
1980
1980
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
1981
|
_b = errorCode;
|
|
1982
1982
|
switch (_b) {
|
|
1983
|
-
case "BillExpirationException": return [3
|
|
1984
|
-
case "com.amazonaws.costexplorer#BillExpirationException": return [3
|
|
1985
|
-
case "DataUnavailableException": return [3
|
|
1986
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
1987
|
-
case "InvalidNextTokenException": return [3
|
|
1988
|
-
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3
|
|
1989
|
-
case "LimitExceededException": return [3
|
|
1990
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
1991
|
-
case "RequestChangedException": return [3
|
|
1992
|
-
case "com.amazonaws.costexplorer#RequestChangedException": return [3
|
|
1983
|
+
case "BillExpirationException": return [3, 2];
|
|
1984
|
+
case "com.amazonaws.costexplorer#BillExpirationException": return [3, 2];
|
|
1985
|
+
case "DataUnavailableException": return [3, 4];
|
|
1986
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 4];
|
|
1987
|
+
case "InvalidNextTokenException": return [3, 6];
|
|
1988
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException": return [3, 6];
|
|
1989
|
+
case "LimitExceededException": return [3, 8];
|
|
1990
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 8];
|
|
1991
|
+
case "RequestChangedException": return [3, 10];
|
|
1992
|
+
case "com.amazonaws.costexplorer#RequestChangedException": return [3, 10];
|
|
1993
1993
|
}
|
|
1994
|
-
return [3
|
|
1994
|
+
return [3, 12];
|
|
1995
1995
|
case 2:
|
|
1996
1996
|
_c = [{}];
|
|
1997
|
-
return [4
|
|
1997
|
+
return [4, deserializeAws_json1_1BillExpirationExceptionResponse(parsedOutput, context)];
|
|
1998
1998
|
case 3:
|
|
1999
1999
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2000
|
-
return [3
|
|
2000
|
+
return [3, 13];
|
|
2001
2001
|
case 4:
|
|
2002
2002
|
_d = [{}];
|
|
2003
|
-
return [4
|
|
2003
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
2004
2004
|
case 5:
|
|
2005
2005
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2006
|
-
return [3
|
|
2006
|
+
return [3, 13];
|
|
2007
2007
|
case 6:
|
|
2008
2008
|
_e = [{}];
|
|
2009
|
-
return [4
|
|
2009
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
2010
2010
|
case 7:
|
|
2011
2011
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2012
|
-
return [3
|
|
2012
|
+
return [3, 13];
|
|
2013
2013
|
case 8:
|
|
2014
2014
|
_f = [{}];
|
|
2015
|
-
return [4
|
|
2015
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2016
2016
|
case 9:
|
|
2017
2017
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2018
|
-
return [3
|
|
2018
|
+
return [3, 13];
|
|
2019
2019
|
case 10:
|
|
2020
2020
|
_g = [{}];
|
|
2021
|
-
return [4
|
|
2021
|
+
return [4, deserializeAws_json1_1RequestChangedExceptionResponse(parsedOutput, context)];
|
|
2022
2022
|
case 11:
|
|
2023
2023
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2024
|
-
return [3
|
|
2024
|
+
return [3, 13];
|
|
2025
2025
|
case 12:
|
|
2026
2026
|
parsedBody = parsedOutput.body;
|
|
2027
2027
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2031,7 +2031,7 @@ var deserializeAws_json1_1GetTagsCommandError = function (output, context) { ret
|
|
|
2031
2031
|
message = response.message || response.Message || errorCode;
|
|
2032
2032
|
response.message = message;
|
|
2033
2033
|
delete response.Message;
|
|
2034
|
-
return [2
|
|
2034
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2035
2035
|
}
|
|
2036
2036
|
});
|
|
2037
2037
|
}); };
|
|
@@ -2041,15 +2041,15 @@ export var deserializeAws_json1_1GetUsageForecastCommand = function (output, con
|
|
|
2041
2041
|
switch (_a.label) {
|
|
2042
2042
|
case 0:
|
|
2043
2043
|
if (output.statusCode >= 300) {
|
|
2044
|
-
return [2
|
|
2044
|
+
return [2, deserializeAws_json1_1GetUsageForecastCommandError(output, context)];
|
|
2045
2045
|
}
|
|
2046
|
-
return [4
|
|
2046
|
+
return [4, parseBody(output.body, context)];
|
|
2047
2047
|
case 1:
|
|
2048
2048
|
data = _a.sent();
|
|
2049
2049
|
contents = {};
|
|
2050
2050
|
contents = deserializeAws_json1_1GetUsageForecastResponse(data, context);
|
|
2051
2051
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2052
|
-
return [2
|
|
2052
|
+
return [2, Promise.resolve(response)];
|
|
2053
2053
|
}
|
|
2054
2054
|
});
|
|
2055
2055
|
}); };
|
|
@@ -2061,39 +2061,39 @@ var deserializeAws_json1_1GetUsageForecastCommandError = function (output, conte
|
|
|
2061
2061
|
case 0:
|
|
2062
2062
|
_a = [__assign({}, output)];
|
|
2063
2063
|
_f = {};
|
|
2064
|
-
return [4
|
|
2064
|
+
return [4, parseBody(output.body, context)];
|
|
2065
2065
|
case 1:
|
|
2066
2066
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2067
2067
|
errorCode = "UnknownError";
|
|
2068
2068
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
2069
|
_b = errorCode;
|
|
2070
2070
|
switch (_b) {
|
|
2071
|
-
case "DataUnavailableException": return [3
|
|
2072
|
-
case "com.amazonaws.costexplorer#DataUnavailableException": return [3
|
|
2073
|
-
case "LimitExceededException": return [3
|
|
2074
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
2075
|
-
case "UnresolvableUsageUnitException": return [3
|
|
2076
|
-
case "com.amazonaws.costexplorer#UnresolvableUsageUnitException": return [3
|
|
2071
|
+
case "DataUnavailableException": return [3, 2];
|
|
2072
|
+
case "com.amazonaws.costexplorer#DataUnavailableException": return [3, 2];
|
|
2073
|
+
case "LimitExceededException": return [3, 4];
|
|
2074
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 4];
|
|
2075
|
+
case "UnresolvableUsageUnitException": return [3, 6];
|
|
2076
|
+
case "com.amazonaws.costexplorer#UnresolvableUsageUnitException": return [3, 6];
|
|
2077
2077
|
}
|
|
2078
|
-
return [3
|
|
2078
|
+
return [3, 8];
|
|
2079
2079
|
case 2:
|
|
2080
2080
|
_c = [{}];
|
|
2081
|
-
return [4
|
|
2081
|
+
return [4, deserializeAws_json1_1DataUnavailableExceptionResponse(parsedOutput, context)];
|
|
2082
2082
|
case 3:
|
|
2083
2083
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2084
|
-
return [3
|
|
2084
|
+
return [3, 9];
|
|
2085
2085
|
case 4:
|
|
2086
2086
|
_d = [{}];
|
|
2087
|
-
return [4
|
|
2087
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2088
2088
|
case 5:
|
|
2089
2089
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2090
|
-
return [3
|
|
2090
|
+
return [3, 9];
|
|
2091
2091
|
case 6:
|
|
2092
2092
|
_e = [{}];
|
|
2093
|
-
return [4
|
|
2093
|
+
return [4, deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse(parsedOutput, context)];
|
|
2094
2094
|
case 7:
|
|
2095
2095
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2096
|
-
return [3
|
|
2096
|
+
return [3, 9];
|
|
2097
2097
|
case 8:
|
|
2098
2098
|
parsedBody = parsedOutput.body;
|
|
2099
2099
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2103,7 +2103,7 @@ var deserializeAws_json1_1GetUsageForecastCommandError = function (output, conte
|
|
|
2103
2103
|
message = response.message || response.Message || errorCode;
|
|
2104
2104
|
response.message = message;
|
|
2105
2105
|
delete response.Message;
|
|
2106
|
-
return [2
|
|
2106
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2107
2107
|
}
|
|
2108
2108
|
});
|
|
2109
2109
|
}); };
|
|
@@ -2113,15 +2113,15 @@ export var deserializeAws_json1_1ListCostCategoryDefinitionsCommand = function (
|
|
|
2113
2113
|
switch (_a.label) {
|
|
2114
2114
|
case 0:
|
|
2115
2115
|
if (output.statusCode >= 300) {
|
|
2116
|
-
return [2
|
|
2116
|
+
return [2, deserializeAws_json1_1ListCostCategoryDefinitionsCommandError(output, context)];
|
|
2117
2117
|
}
|
|
2118
|
-
return [4
|
|
2118
|
+
return [4, parseBody(output.body, context)];
|
|
2119
2119
|
case 1:
|
|
2120
2120
|
data = _a.sent();
|
|
2121
2121
|
contents = {};
|
|
2122
2122
|
contents = deserializeAws_json1_1ListCostCategoryDefinitionsResponse(data, context);
|
|
2123
2123
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2124
|
-
return [2
|
|
2124
|
+
return [2, Promise.resolve(response)];
|
|
2125
2125
|
}
|
|
2126
2126
|
});
|
|
2127
2127
|
}); };
|
|
@@ -2133,23 +2133,23 @@ var deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = function (ou
|
|
|
2133
2133
|
case 0:
|
|
2134
2134
|
_a = [__assign({}, output)];
|
|
2135
2135
|
_d = {};
|
|
2136
|
-
return [4
|
|
2136
|
+
return [4, parseBody(output.body, context)];
|
|
2137
2137
|
case 1:
|
|
2138
2138
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
2139
2139
|
errorCode = "UnknownError";
|
|
2140
2140
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
2141
|
_b = errorCode;
|
|
2142
2142
|
switch (_b) {
|
|
2143
|
-
case "LimitExceededException": return [3
|
|
2144
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
2143
|
+
case "LimitExceededException": return [3, 2];
|
|
2144
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
2145
2145
|
}
|
|
2146
|
-
return [3
|
|
2146
|
+
return [3, 4];
|
|
2147
2147
|
case 2:
|
|
2148
2148
|
_c = [{}];
|
|
2149
|
-
return [4
|
|
2149
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2150
2150
|
case 3:
|
|
2151
2151
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2152
|
-
return [3
|
|
2152
|
+
return [3, 5];
|
|
2153
2153
|
case 4:
|
|
2154
2154
|
parsedBody = parsedOutput.body;
|
|
2155
2155
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2159,7 +2159,7 @@ var deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = function (ou
|
|
|
2159
2159
|
message = response.message || response.Message || errorCode;
|
|
2160
2160
|
response.message = message;
|
|
2161
2161
|
delete response.Message;
|
|
2162
|
-
return [2
|
|
2162
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2163
2163
|
}
|
|
2164
2164
|
});
|
|
2165
2165
|
}); };
|
|
@@ -2169,15 +2169,15 @@ export var deserializeAws_json1_1ProvideAnomalyFeedbackCommand = function (outpu
|
|
|
2169
2169
|
switch (_a.label) {
|
|
2170
2170
|
case 0:
|
|
2171
2171
|
if (output.statusCode >= 300) {
|
|
2172
|
-
return [2
|
|
2172
|
+
return [2, deserializeAws_json1_1ProvideAnomalyFeedbackCommandError(output, context)];
|
|
2173
2173
|
}
|
|
2174
|
-
return [4
|
|
2174
|
+
return [4, parseBody(output.body, context)];
|
|
2175
2175
|
case 1:
|
|
2176
2176
|
data = _a.sent();
|
|
2177
2177
|
contents = {};
|
|
2178
2178
|
contents = deserializeAws_json1_1ProvideAnomalyFeedbackResponse(data, context);
|
|
2179
2179
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2180
|
-
return [2
|
|
2180
|
+
return [2, Promise.resolve(response)];
|
|
2181
2181
|
}
|
|
2182
2182
|
});
|
|
2183
2183
|
}); };
|
|
@@ -2189,23 +2189,23 @@ var deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = function (output,
|
|
|
2189
2189
|
case 0:
|
|
2190
2190
|
_a = [__assign({}, output)];
|
|
2191
2191
|
_d = {};
|
|
2192
|
-
return [4
|
|
2192
|
+
return [4, parseBody(output.body, context)];
|
|
2193
2193
|
case 1:
|
|
2194
2194
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
2195
2195
|
errorCode = "UnknownError";
|
|
2196
2196
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
2197
|
_b = errorCode;
|
|
2198
2198
|
switch (_b) {
|
|
2199
|
-
case "LimitExceededException": return [3
|
|
2200
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
2199
|
+
case "LimitExceededException": return [3, 2];
|
|
2200
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
2201
2201
|
}
|
|
2202
|
-
return [3
|
|
2202
|
+
return [3, 4];
|
|
2203
2203
|
case 2:
|
|
2204
2204
|
_c = [{}];
|
|
2205
|
-
return [4
|
|
2205
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2206
2206
|
case 3:
|
|
2207
2207
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2208
|
-
return [3
|
|
2208
|
+
return [3, 5];
|
|
2209
2209
|
case 4:
|
|
2210
2210
|
parsedBody = parsedOutput.body;
|
|
2211
2211
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2215,7 +2215,7 @@ var deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = function (output,
|
|
|
2215
2215
|
message = response.message || response.Message || errorCode;
|
|
2216
2216
|
response.message = message;
|
|
2217
2217
|
delete response.Message;
|
|
2218
|
-
return [2
|
|
2218
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2219
2219
|
}
|
|
2220
2220
|
});
|
|
2221
2221
|
}); };
|
|
@@ -2225,15 +2225,15 @@ export var deserializeAws_json1_1UpdateAnomalyMonitorCommand = function (output,
|
|
|
2225
2225
|
switch (_a.label) {
|
|
2226
2226
|
case 0:
|
|
2227
2227
|
if (output.statusCode >= 300) {
|
|
2228
|
-
return [2
|
|
2228
|
+
return [2, deserializeAws_json1_1UpdateAnomalyMonitorCommandError(output, context)];
|
|
2229
2229
|
}
|
|
2230
|
-
return [4
|
|
2230
|
+
return [4, parseBody(output.body, context)];
|
|
2231
2231
|
case 1:
|
|
2232
2232
|
data = _a.sent();
|
|
2233
2233
|
contents = {};
|
|
2234
2234
|
contents = deserializeAws_json1_1UpdateAnomalyMonitorResponse(data, context);
|
|
2235
2235
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2236
|
-
return [2
|
|
2236
|
+
return [2, Promise.resolve(response)];
|
|
2237
2237
|
}
|
|
2238
2238
|
});
|
|
2239
2239
|
}); };
|
|
@@ -2245,31 +2245,31 @@ var deserializeAws_json1_1UpdateAnomalyMonitorCommandError = function (output, c
|
|
|
2245
2245
|
case 0:
|
|
2246
2246
|
_a = [__assign({}, output)];
|
|
2247
2247
|
_e = {};
|
|
2248
|
-
return [4
|
|
2248
|
+
return [4, parseBody(output.body, context)];
|
|
2249
2249
|
case 1:
|
|
2250
2250
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2251
2251
|
errorCode = "UnknownError";
|
|
2252
2252
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
2253
|
_b = errorCode;
|
|
2254
2254
|
switch (_b) {
|
|
2255
|
-
case "LimitExceededException": return [3
|
|
2256
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
2257
|
-
case "UnknownMonitorException": return [3
|
|
2258
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3
|
|
2255
|
+
case "LimitExceededException": return [3, 2];
|
|
2256
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
2257
|
+
case "UnknownMonitorException": return [3, 4];
|
|
2258
|
+
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3, 4];
|
|
2259
2259
|
}
|
|
2260
|
-
return [3
|
|
2260
|
+
return [3, 6];
|
|
2261
2261
|
case 2:
|
|
2262
2262
|
_c = [{}];
|
|
2263
|
-
return [4
|
|
2263
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2264
2264
|
case 3:
|
|
2265
2265
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2266
|
-
return [3
|
|
2266
|
+
return [3, 7];
|
|
2267
2267
|
case 4:
|
|
2268
2268
|
_d = [{}];
|
|
2269
|
-
return [4
|
|
2269
|
+
return [4, deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)];
|
|
2270
2270
|
case 5:
|
|
2271
2271
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2272
|
-
return [3
|
|
2272
|
+
return [3, 7];
|
|
2273
2273
|
case 6:
|
|
2274
2274
|
parsedBody = parsedOutput.body;
|
|
2275
2275
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2279,7 +2279,7 @@ var deserializeAws_json1_1UpdateAnomalyMonitorCommandError = function (output, c
|
|
|
2279
2279
|
message = response.message || response.Message || errorCode;
|
|
2280
2280
|
response.message = message;
|
|
2281
2281
|
delete response.Message;
|
|
2282
|
-
return [2
|
|
2282
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2283
2283
|
}
|
|
2284
2284
|
});
|
|
2285
2285
|
}); };
|
|
@@ -2289,15 +2289,15 @@ export var deserializeAws_json1_1UpdateAnomalySubscriptionCommand = function (ou
|
|
|
2289
2289
|
switch (_a.label) {
|
|
2290
2290
|
case 0:
|
|
2291
2291
|
if (output.statusCode >= 300) {
|
|
2292
|
-
return [2
|
|
2292
|
+
return [2, deserializeAws_json1_1UpdateAnomalySubscriptionCommandError(output, context)];
|
|
2293
2293
|
}
|
|
2294
|
-
return [4
|
|
2294
|
+
return [4, parseBody(output.body, context)];
|
|
2295
2295
|
case 1:
|
|
2296
2296
|
data = _a.sent();
|
|
2297
2297
|
contents = {};
|
|
2298
2298
|
contents = deserializeAws_json1_1UpdateAnomalySubscriptionResponse(data, context);
|
|
2299
2299
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2300
|
-
return [2
|
|
2300
|
+
return [2, Promise.resolve(response)];
|
|
2301
2301
|
}
|
|
2302
2302
|
});
|
|
2303
2303
|
}); };
|
|
@@ -2309,39 +2309,39 @@ var deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = function (outp
|
|
|
2309
2309
|
case 0:
|
|
2310
2310
|
_a = [__assign({}, output)];
|
|
2311
2311
|
_f = {};
|
|
2312
|
-
return [4
|
|
2312
|
+
return [4, parseBody(output.body, context)];
|
|
2313
2313
|
case 1:
|
|
2314
2314
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2315
2315
|
errorCode = "UnknownError";
|
|
2316
2316
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
2317
|
_b = errorCode;
|
|
2318
2318
|
switch (_b) {
|
|
2319
|
-
case "LimitExceededException": return [3
|
|
2320
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
2321
|
-
case "UnknownMonitorException": return [3
|
|
2322
|
-
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3
|
|
2323
|
-
case "UnknownSubscriptionException": return [3
|
|
2324
|
-
case "com.amazonaws.costexplorer#UnknownSubscriptionException": return [3
|
|
2319
|
+
case "LimitExceededException": return [3, 2];
|
|
2320
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
2321
|
+
case "UnknownMonitorException": return [3, 4];
|
|
2322
|
+
case "com.amazonaws.costexplorer#UnknownMonitorException": return [3, 4];
|
|
2323
|
+
case "UnknownSubscriptionException": return [3, 6];
|
|
2324
|
+
case "com.amazonaws.costexplorer#UnknownSubscriptionException": return [3, 6];
|
|
2325
2325
|
}
|
|
2326
|
-
return [3
|
|
2326
|
+
return [3, 8];
|
|
2327
2327
|
case 2:
|
|
2328
2328
|
_c = [{}];
|
|
2329
|
-
return [4
|
|
2329
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2330
2330
|
case 3:
|
|
2331
2331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2332
|
-
return [3
|
|
2332
|
+
return [3, 9];
|
|
2333
2333
|
case 4:
|
|
2334
2334
|
_d = [{}];
|
|
2335
|
-
return [4
|
|
2335
|
+
return [4, deserializeAws_json1_1UnknownMonitorExceptionResponse(parsedOutput, context)];
|
|
2336
2336
|
case 5:
|
|
2337
2337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2338
|
-
return [3
|
|
2338
|
+
return [3, 9];
|
|
2339
2339
|
case 6:
|
|
2340
2340
|
_e = [{}];
|
|
2341
|
-
return [4
|
|
2341
|
+
return [4, deserializeAws_json1_1UnknownSubscriptionExceptionResponse(parsedOutput, context)];
|
|
2342
2342
|
case 7:
|
|
2343
2343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2344
|
-
return [3
|
|
2344
|
+
return [3, 9];
|
|
2345
2345
|
case 8:
|
|
2346
2346
|
parsedBody = parsedOutput.body;
|
|
2347
2347
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2351,7 +2351,7 @@ var deserializeAws_json1_1UpdateAnomalySubscriptionCommandError = function (outp
|
|
|
2351
2351
|
message = response.message || response.Message || errorCode;
|
|
2352
2352
|
response.message = message;
|
|
2353
2353
|
delete response.Message;
|
|
2354
|
-
return [2
|
|
2354
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2355
2355
|
}
|
|
2356
2356
|
});
|
|
2357
2357
|
}); };
|
|
@@ -2361,15 +2361,15 @@ export var deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = function
|
|
|
2361
2361
|
switch (_a.label) {
|
|
2362
2362
|
case 0:
|
|
2363
2363
|
if (output.statusCode >= 300) {
|
|
2364
|
-
return [2
|
|
2364
|
+
return [2, deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError(output, context)];
|
|
2365
2365
|
}
|
|
2366
|
-
return [4
|
|
2366
|
+
return [4, parseBody(output.body, context)];
|
|
2367
2367
|
case 1:
|
|
2368
2368
|
data = _a.sent();
|
|
2369
2369
|
contents = {};
|
|
2370
2370
|
contents = deserializeAws_json1_1UpdateCostCategoryDefinitionResponse(data, context);
|
|
2371
2371
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2372
|
-
return [2
|
|
2372
|
+
return [2, Promise.resolve(response)];
|
|
2373
2373
|
}
|
|
2374
2374
|
});
|
|
2375
2375
|
}); };
|
|
@@ -2381,39 +2381,39 @@ var deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = function (o
|
|
|
2381
2381
|
case 0:
|
|
2382
2382
|
_a = [__assign({}, output)];
|
|
2383
2383
|
_f = {};
|
|
2384
|
-
return [4
|
|
2384
|
+
return [4, parseBody(output.body, context)];
|
|
2385
2385
|
case 1:
|
|
2386
2386
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2387
2387
|
errorCode = "UnknownError";
|
|
2388
2388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2389
2389
|
_b = errorCode;
|
|
2390
2390
|
switch (_b) {
|
|
2391
|
-
case "LimitExceededException": return [3
|
|
2392
|
-
case "com.amazonaws.costexplorer#LimitExceededException": return [3
|
|
2393
|
-
case "ResourceNotFoundException": return [3
|
|
2394
|
-
case "com.amazonaws.costexplorer#ResourceNotFoundException": return [3
|
|
2395
|
-
case "ServiceQuotaExceededException": return [3
|
|
2396
|
-
case "com.amazonaws.costexplorer#ServiceQuotaExceededException": return [3
|
|
2391
|
+
case "LimitExceededException": return [3, 2];
|
|
2392
|
+
case "com.amazonaws.costexplorer#LimitExceededException": return [3, 2];
|
|
2393
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2394
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException": return [3, 4];
|
|
2395
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
2396
|
+
case "com.amazonaws.costexplorer#ServiceQuotaExceededException": return [3, 6];
|
|
2397
2397
|
}
|
|
2398
|
-
return [3
|
|
2398
|
+
return [3, 8];
|
|
2399
2399
|
case 2:
|
|
2400
2400
|
_c = [{}];
|
|
2401
|
-
return [4
|
|
2401
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2402
2402
|
case 3:
|
|
2403
2403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2404
|
-
return [3
|
|
2404
|
+
return [3, 9];
|
|
2405
2405
|
case 4:
|
|
2406
2406
|
_d = [{}];
|
|
2407
|
-
return [4
|
|
2407
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2408
2408
|
case 5:
|
|
2409
2409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2410
|
-
return [3
|
|
2410
|
+
return [3, 9];
|
|
2411
2411
|
case 6:
|
|
2412
2412
|
_e = [{}];
|
|
2413
|
-
return [4
|
|
2413
|
+
return [4, deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2414
2414
|
case 7:
|
|
2415
2415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2416
|
-
return [3
|
|
2416
|
+
return [3, 9];
|
|
2417
2417
|
case 8:
|
|
2418
2418
|
parsedBody = parsedOutput.body;
|
|
2419
2419
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2423,7 +2423,7 @@ var deserializeAws_json1_1UpdateCostCategoryDefinitionCommandError = function (o
|
|
|
2423
2423
|
message = response.message || response.Message || errorCode;
|
|
2424
2424
|
response.message = message;
|
|
2425
2425
|
delete response.Message;
|
|
2426
|
-
return [2
|
|
2426
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2427
2427
|
}
|
|
2428
2428
|
});
|
|
2429
2429
|
}); };
|
|
@@ -2433,7 +2433,7 @@ var deserializeAws_json1_1BillExpirationExceptionResponse = function (parsedOutp
|
|
|
2433
2433
|
body = parsedOutput.body;
|
|
2434
2434
|
deserialized = deserializeAws_json1_1BillExpirationException(body, context);
|
|
2435
2435
|
contents = __assign({ name: "BillExpirationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2436
|
-
return [2
|
|
2436
|
+
return [2, contents];
|
|
2437
2437
|
});
|
|
2438
2438
|
}); };
|
|
2439
2439
|
var deserializeAws_json1_1DataUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2442,7 +2442,7 @@ var deserializeAws_json1_1DataUnavailableExceptionResponse = function (parsedOut
|
|
|
2442
2442
|
body = parsedOutput.body;
|
|
2443
2443
|
deserialized = deserializeAws_json1_1DataUnavailableException(body, context);
|
|
2444
2444
|
contents = __assign({ name: "DataUnavailableException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2445
|
-
return [2
|
|
2445
|
+
return [2, contents];
|
|
2446
2446
|
});
|
|
2447
2447
|
}); };
|
|
2448
2448
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2451,7 +2451,7 @@ var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOu
|
|
|
2451
2451
|
body = parsedOutput.body;
|
|
2452
2452
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2453
2453
|
contents = __assign({ name: "InvalidNextTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2454
|
-
return [2
|
|
2454
|
+
return [2, contents];
|
|
2455
2455
|
});
|
|
2456
2456
|
}); };
|
|
2457
2457
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2460,7 +2460,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
2460
2460
|
body = parsedOutput.body;
|
|
2461
2461
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2462
2462
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2463
|
-
return [2
|
|
2463
|
+
return [2, contents];
|
|
2464
2464
|
});
|
|
2465
2465
|
}); };
|
|
2466
2466
|
var deserializeAws_json1_1RequestChangedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2469,7 +2469,7 @@ var deserializeAws_json1_1RequestChangedExceptionResponse = function (parsedOutp
|
|
|
2469
2469
|
body = parsedOutput.body;
|
|
2470
2470
|
deserialized = deserializeAws_json1_1RequestChangedException(body, context);
|
|
2471
2471
|
contents = __assign({ name: "RequestChangedException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2472
|
-
return [2
|
|
2472
|
+
return [2, contents];
|
|
2473
2473
|
});
|
|
2474
2474
|
}); };
|
|
2475
2475
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2478,7 +2478,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
2478
2478
|
body = parsedOutput.body;
|
|
2479
2479
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2480
2480
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2481
|
-
return [2
|
|
2481
|
+
return [2, contents];
|
|
2482
2482
|
});
|
|
2483
2483
|
}); };
|
|
2484
2484
|
var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2487,7 +2487,7 @@ var deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = function (pars
|
|
|
2487
2487
|
body = parsedOutput.body;
|
|
2488
2488
|
deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
2489
2489
|
contents = __assign({ name: "ServiceQuotaExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2490
|
-
return [2
|
|
2490
|
+
return [2, contents];
|
|
2491
2491
|
});
|
|
2492
2492
|
}); };
|
|
2493
2493
|
var deserializeAws_json1_1UnknownMonitorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2496,7 +2496,7 @@ var deserializeAws_json1_1UnknownMonitorExceptionResponse = function (parsedOutp
|
|
|
2496
2496
|
body = parsedOutput.body;
|
|
2497
2497
|
deserialized = deserializeAws_json1_1UnknownMonitorException(body, context);
|
|
2498
2498
|
contents = __assign({ name: "UnknownMonitorException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2499
|
-
return [2
|
|
2499
|
+
return [2, contents];
|
|
2500
2500
|
});
|
|
2501
2501
|
}); };
|
|
2502
2502
|
var deserializeAws_json1_1UnknownSubscriptionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2505,7 +2505,7 @@ var deserializeAws_json1_1UnknownSubscriptionExceptionResponse = function (parse
|
|
|
2505
2505
|
body = parsedOutput.body;
|
|
2506
2506
|
deserialized = deserializeAws_json1_1UnknownSubscriptionException(body, context);
|
|
2507
2507
|
contents = __assign({ name: "UnknownSubscriptionException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2508
|
-
return [2
|
|
2508
|
+
return [2, contents];
|
|
2509
2509
|
});
|
|
2510
2510
|
}); };
|
|
2511
2511
|
var deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2514,7 +2514,7 @@ var deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse = function (par
|
|
|
2514
2514
|
body = parsedOutput.body;
|
|
2515
2515
|
deserialized = deserializeAws_json1_1UnresolvableUsageUnitException(body, context);
|
|
2516
2516
|
contents = __assign({ name: "UnresolvableUsageUnitException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2517
|
-
return [2
|
|
2517
|
+
return [2, contents];
|
|
2518
2518
|
});
|
|
2519
2519
|
}); };
|
|
2520
2520
|
var serializeAws_json1_1AnomalyDateInterval = function (input, context) {
|
|
@@ -4500,7 +4500,6 @@ var deserializeMetadata = function (output) {
|
|
|
4500
4500
|
cfId: output.headers["x-amz-cf-id"],
|
|
4501
4501
|
});
|
|
4502
4502
|
};
|
|
4503
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4504
4503
|
var collectBody = function (streamBody, context) {
|
|
4505
4504
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4506
4505
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4508,7 +4507,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4508
4507
|
}
|
|
4509
4508
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4510
4509
|
};
|
|
4511
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4512
4510
|
var collectBodyString = function (streamBody, context) {
|
|
4513
4511
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4514
4512
|
};
|
|
@@ -4516,7 +4514,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4516
4514
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
4517
4515
|
return __generator(this, function (_c) {
|
|
4518
4516
|
switch (_c.label) {
|
|
4519
|
-
case 0: return [4
|
|
4517
|
+
case 0: return [4, context.endpoint()];
|
|
4520
4518
|
case 1:
|
|
4521
4519
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4522
4520
|
contents = {
|
|
@@ -4533,7 +4531,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4533
4531
|
if (body !== undefined) {
|
|
4534
4532
|
contents.body = body;
|
|
4535
4533
|
}
|
|
4536
|
-
return [2
|
|
4534
|
+
return [2, new __HttpRequest(contents)];
|
|
4537
4535
|
}
|
|
4538
4536
|
});
|
|
4539
4537
|
}); };
|
|
@@ -4545,9 +4543,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4545
4543
|
return {};
|
|
4546
4544
|
});
|
|
4547
4545
|
};
|
|
4548
|
-
/**
|
|
4549
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4550
|
-
*/
|
|
4551
4546
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4552
4547
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4553
4548
|
var sanitizeErrorCode = function (rawValue) {
|