@aws-sdk/client-applicationcostprofiler 3.31.0 → 3.35.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 +39 -0
- package/{dist/cjs → dist-cjs}/ApplicationCostProfiler.js +0 -0
- package/dist-cjs/ApplicationCostProfiler.js.map +1 -0
- package/{dist/cjs → dist-cjs}/ApplicationCostProfilerClient.js +14 -14
- package/dist-cjs/ApplicationCostProfilerClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteReportDefinitionCommand.js +5 -5
- package/dist-cjs/commands/DeleteReportDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetReportDefinitionCommand.js +5 -5
- package/dist-cjs/commands/GetReportDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ImportApplicationUsageCommand.js +5 -5
- package/dist-cjs/commands/ImportApplicationUsageCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListReportDefinitionsCommand.js +5 -5
- package/dist-cjs/commands/ListReportDefinitionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/PutReportDefinitionCommand.js +5 -5
- package/dist-cjs/commands/PutReportDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateReportDefinitionCommand.js +5 -5
- package/dist-cjs/commands/UpdateReportDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +15 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListReportDefinitionsPaginator.js +0 -0
- package/dist-cjs/pagination/ListReportDefinitionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +36 -36
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/ApplicationCostProfiler.js +1 -9
- package/dist-es/ApplicationCostProfiler.js.map +1 -0
- package/{dist/es → dist-es}/ApplicationCostProfilerClient.js +2 -15
- package/dist-es/ApplicationCostProfilerClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteReportDefinitionCommand.js +4 -30
- package/dist-es/commands/DeleteReportDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetReportDefinitionCommand.js +4 -29
- package/dist-es/commands/GetReportDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ImportApplicationUsageCommand.js +4 -32
- package/dist-es/commands/ImportApplicationUsageCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListReportDefinitionsCommand.js +4 -30
- package/dist-es/commands/ListReportDefinitionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/PutReportDefinitionCommand.js +4 -29
- package/dist-es/commands/PutReportDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateReportDefinitionCommand.js +4 -29
- package/dist-es/commands/UpdateReportDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -60
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListReportDefinitionsPaginator.js +16 -28
- package/dist-es/pagination/ListReportDefinitionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +153 -158
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/ApplicationCostProfiler.d.ts +1 -1
- package/{dist/types → dist-types}/ApplicationCostProfilerClient.d.ts +7 -7
- package/{dist/types → dist-types}/commands/DeleteReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ImportApplicationUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListReportDefinitionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListReportDefinitionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ApplicationCostProfiler.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/ApplicationCostProfilerClient.d.ts +7 -7
- package/{dist/types → dist-types}/ts3.4/commands/DeleteReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ImportApplicationUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListReportDefinitionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateReportDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListReportDefinitionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{ApplicationCostProfiler.ts → src/ApplicationCostProfiler.ts} +2 -1
- package/{ApplicationCostProfilerClient.ts → src/ApplicationCostProfilerClient.ts} +39 -38
- package/{commands → src/commands}/DeleteReportDefinitionCommand.ts +12 -11
- package/{commands → src/commands}/GetReportDefinitionCommand.ts +12 -11
- package/{commands → src/commands}/ImportApplicationUsageCommand.ts +12 -11
- package/{commands → src/commands}/ListReportDefinitionsCommand.ts +12 -11
- package/{commands → src/commands}/PutReportDefinitionCommand.ts +12 -11
- package/{commands → src/commands}/UpdateReportDefinitionCommand.ts +12 -11
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListReportDefinitionsPaginator.ts +2 -1
- package/{protocols → src/protocols}/Aws_restJson1.ts +27 -25
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/ApplicationCostProfiler.js.map +0 -1
- package/dist/cjs/ApplicationCostProfilerClient.js.map +0 -1
- package/dist/cjs/commands/DeleteReportDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/GetReportDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/ImportApplicationUsageCommand.js.map +0 -1
- package/dist/cjs/commands/ListReportDefinitionsCommand.js.map +0 -1
- package/dist/cjs/commands/PutReportDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateReportDefinitionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -15
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/ListReportDefinitionsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ApplicationCostProfiler.js.map +0 -1
- package/dist/es/ApplicationCostProfilerClient.js.map +0 -1
- package/dist/es/commands/DeleteReportDefinitionCommand.js.map +0 -1
- package/dist/es/commands/GetReportDefinitionCommand.js.map +0 -1
- package/dist/es/commands/ImportApplicationUsageCommand.js.map +0 -1
- package/dist/es/commands/ListReportDefinitionsCommand.js.map +0 -1
- package/dist/es/commands/PutReportDefinitionCommand.js.map +0 -1
- package/dist/es/commands/UpdateReportDefinitionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/ListReportDefinitionsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1DeleteReportDefinitionCommand = function (input
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {};
|
|
@@ -20,7 +20,7 @@ export var serializeAws_restJson1DeleteReportDefinitionCommand = function (input
|
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: reportId.");
|
|
22
22
|
}
|
|
23
|
-
return [2
|
|
23
|
+
return [2, new __HttpRequest({
|
|
24
24
|
protocol: protocol,
|
|
25
25
|
hostname: hostname,
|
|
26
26
|
port: port,
|
|
@@ -36,7 +36,7 @@ export var serializeAws_restJson1GetReportDefinitionCommand = function (input, c
|
|
|
36
36
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
37
37
|
return __generator(this, function (_c) {
|
|
38
38
|
switch (_c.label) {
|
|
39
|
-
case 0: return [4
|
|
39
|
+
case 0: return [4, context.endpoint()];
|
|
40
40
|
case 1:
|
|
41
41
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
42
|
headers = {};
|
|
@@ -51,7 +51,7 @@ export var serializeAws_restJson1GetReportDefinitionCommand = function (input, c
|
|
|
51
51
|
else {
|
|
52
52
|
throw new Error("No value provided for input HTTP label: reportId.");
|
|
53
53
|
}
|
|
54
|
-
return [2
|
|
54
|
+
return [2, new __HttpRequest({
|
|
55
55
|
protocol: protocol,
|
|
56
56
|
hostname: hostname,
|
|
57
57
|
port: port,
|
|
@@ -67,7 +67,7 @@ export var serializeAws_restJson1ImportApplicationUsageCommand = function (input
|
|
|
67
67
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
68
68
|
return __generator(this, function (_c) {
|
|
69
69
|
switch (_c.label) {
|
|
70
|
-
case 0: return [4
|
|
70
|
+
case 0: return [4, context.endpoint()];
|
|
71
71
|
case 1:
|
|
72
72
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
73
73
|
headers = {
|
|
@@ -78,7 +78,7 @@ export var serializeAws_restJson1ImportApplicationUsageCommand = function (input
|
|
|
78
78
|
input.sourceS3Location !== null && {
|
|
79
79
|
sourceS3Location: serializeAws_restJson1SourceS3Location(input.sourceS3Location, context),
|
|
80
80
|
})));
|
|
81
|
-
return [2
|
|
81
|
+
return [2, new __HttpRequest({
|
|
82
82
|
protocol: protocol,
|
|
83
83
|
hostname: hostname,
|
|
84
84
|
port: port,
|
|
@@ -94,13 +94,13 @@ export var serializeAws_restJson1ListReportDefinitionsCommand = function (input,
|
|
|
94
94
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
95
95
|
return __generator(this, function (_c) {
|
|
96
96
|
switch (_c.label) {
|
|
97
|
-
case 0: return [4
|
|
97
|
+
case 0: return [4, context.endpoint()];
|
|
98
98
|
case 1:
|
|
99
99
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
100
100
|
headers = {};
|
|
101
101
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reportDefinition";
|
|
102
102
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
103
|
-
return [2
|
|
103
|
+
return [2, new __HttpRequest({
|
|
104
104
|
protocol: protocol,
|
|
105
105
|
hostname: hostname,
|
|
106
106
|
port: port,
|
|
@@ -117,7 +117,7 @@ export var serializeAws_restJson1PutReportDefinitionCommand = function (input, c
|
|
|
117
117
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
118
118
|
return __generator(this, function (_c) {
|
|
119
119
|
switch (_c.label) {
|
|
120
|
-
case 0: return [4
|
|
120
|
+
case 0: return [4, context.endpoint()];
|
|
121
121
|
case 1:
|
|
122
122
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
123
123
|
headers = {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_restJson1PutReportDefinitionCommand = function (input, c
|
|
|
130
130
|
})), (input.format !== undefined && input.format !== null && { format: input.format })), (input.reportDescription !== undefined &&
|
|
131
131
|
input.reportDescription !== null && { reportDescription: input.reportDescription })), (input.reportFrequency !== undefined &&
|
|
132
132
|
input.reportFrequency !== null && { reportFrequency: input.reportFrequency })), (input.reportId !== undefined && input.reportId !== null && { reportId: input.reportId })));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, new __HttpRequest({
|
|
134
134
|
protocol: protocol,
|
|
135
135
|
hostname: hostname,
|
|
136
136
|
port: port,
|
|
@@ -146,7 +146,7 @@ export var serializeAws_restJson1UpdateReportDefinitionCommand = function (input
|
|
|
146
146
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
147
147
|
return __generator(this, function (_c) {
|
|
148
148
|
switch (_c.label) {
|
|
149
|
-
case 0: return [4
|
|
149
|
+
case 0: return [4, context.endpoint()];
|
|
150
150
|
case 1:
|
|
151
151
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
152
152
|
headers = {
|
|
@@ -169,7 +169,7 @@ export var serializeAws_restJson1UpdateReportDefinitionCommand = function (input
|
|
|
169
169
|
})), (input.format !== undefined && input.format !== null && { format: input.format })), (input.reportDescription !== undefined &&
|
|
170
170
|
input.reportDescription !== null && { reportDescription: input.reportDescription })), (input.reportFrequency !== undefined &&
|
|
171
171
|
input.reportFrequency !== null && { reportFrequency: input.reportFrequency })));
|
|
172
|
-
return [2
|
|
172
|
+
return [2, new __HttpRequest({
|
|
173
173
|
protocol: protocol,
|
|
174
174
|
hostname: hostname,
|
|
175
175
|
port: port,
|
|
@@ -187,7 +187,7 @@ export var deserializeAws_restJson1DeleteReportDefinitionCommand = function (out
|
|
|
187
187
|
switch (_c.label) {
|
|
188
188
|
case 0:
|
|
189
189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
190
|
-
return [2
|
|
190
|
+
return [2, deserializeAws_restJson1DeleteReportDefinitionCommandError(output, context)];
|
|
191
191
|
}
|
|
192
192
|
contents = {
|
|
193
193
|
$metadata: deserializeMetadata(output),
|
|
@@ -195,13 +195,13 @@ export var deserializeAws_restJson1DeleteReportDefinitionCommand = function (out
|
|
|
195
195
|
};
|
|
196
196
|
_a = __expectNonNull;
|
|
197
197
|
_b = __expectObject;
|
|
198
|
-
return [4
|
|
198
|
+
return [4, parseBody(output.body, context)];
|
|
199
199
|
case 1:
|
|
200
200
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
201
201
|
if (data.reportId !== undefined && data.reportId !== null) {
|
|
202
202
|
contents.reportId = __expectString(data.reportId);
|
|
203
203
|
}
|
|
204
|
-
return [2
|
|
204
|
+
return [2, Promise.resolve(contents)];
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
}); };
|
|
@@ -213,47 +213,47 @@ var deserializeAws_restJson1DeleteReportDefinitionCommandError = function (outpu
|
|
|
213
213
|
case 0:
|
|
214
214
|
_a = [__assign({}, output)];
|
|
215
215
|
_g = {};
|
|
216
|
-
return [4
|
|
216
|
+
return [4, parseBody(output.body, context)];
|
|
217
217
|
case 1:
|
|
218
218
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
219
219
|
errorCode = "UnknownError";
|
|
220
220
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
221
221
|
_b = errorCode;
|
|
222
222
|
switch (_b) {
|
|
223
|
-
case "AccessDeniedException": return [3
|
|
224
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3
|
|
225
|
-
case "InternalServerException": return [3
|
|
226
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3
|
|
227
|
-
case "ThrottlingException": return [3
|
|
228
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3
|
|
229
|
-
case "ValidationException": return [3
|
|
230
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3
|
|
223
|
+
case "AccessDeniedException": return [3, 2];
|
|
224
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3, 2];
|
|
225
|
+
case "InternalServerException": return [3, 4];
|
|
226
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3, 4];
|
|
227
|
+
case "ThrottlingException": return [3, 6];
|
|
228
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3, 6];
|
|
229
|
+
case "ValidationException": return [3, 8];
|
|
230
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3, 8];
|
|
231
231
|
}
|
|
232
|
-
return [3
|
|
232
|
+
return [3, 10];
|
|
233
233
|
case 2:
|
|
234
234
|
_c = [{}];
|
|
235
|
-
return [4
|
|
235
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
236
236
|
case 3:
|
|
237
237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
238
|
-
return [3
|
|
238
|
+
return [3, 11];
|
|
239
239
|
case 4:
|
|
240
240
|
_d = [{}];
|
|
241
|
-
return [4
|
|
241
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
242
242
|
case 5:
|
|
243
243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
244
|
-
return [3
|
|
244
|
+
return [3, 11];
|
|
245
245
|
case 6:
|
|
246
246
|
_e = [{}];
|
|
247
|
-
return [4
|
|
247
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
248
248
|
case 7:
|
|
249
249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
250
|
-
return [3
|
|
250
|
+
return [3, 11];
|
|
251
251
|
case 8:
|
|
252
252
|
_f = [{}];
|
|
253
|
-
return [4
|
|
253
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
254
254
|
case 9:
|
|
255
255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
256
|
-
return [3
|
|
256
|
+
return [3, 11];
|
|
257
257
|
case 10:
|
|
258
258
|
parsedBody = parsedOutput.body;
|
|
259
259
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -263,7 +263,7 @@ var deserializeAws_restJson1DeleteReportDefinitionCommandError = function (outpu
|
|
|
263
263
|
message = response.message || response.Message || errorCode;
|
|
264
264
|
response.message = message;
|
|
265
265
|
delete response.Message;
|
|
266
|
-
return [2
|
|
266
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
}); };
|
|
@@ -273,7 +273,7 @@ export var deserializeAws_restJson1GetReportDefinitionCommand = function (output
|
|
|
273
273
|
switch (_c.label) {
|
|
274
274
|
case 0:
|
|
275
275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
276
|
-
return [2
|
|
276
|
+
return [2, deserializeAws_restJson1GetReportDefinitionCommandError(output, context)];
|
|
277
277
|
}
|
|
278
278
|
contents = {
|
|
279
279
|
$metadata: deserializeMetadata(output),
|
|
@@ -287,7 +287,7 @@ export var deserializeAws_restJson1GetReportDefinitionCommand = function (output
|
|
|
287
287
|
};
|
|
288
288
|
_a = __expectNonNull;
|
|
289
289
|
_b = __expectObject;
|
|
290
|
-
return [4
|
|
290
|
+
return [4, parseBody(output.body, context)];
|
|
291
291
|
case 1:
|
|
292
292
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
293
293
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
@@ -311,7 +311,7 @@ export var deserializeAws_restJson1GetReportDefinitionCommand = function (output
|
|
|
311
311
|
if (data.reportId !== undefined && data.reportId !== null) {
|
|
312
312
|
contents.reportId = __expectString(data.reportId);
|
|
313
313
|
}
|
|
314
|
-
return [2
|
|
314
|
+
return [2, Promise.resolve(contents)];
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
}); };
|
|
@@ -323,47 +323,47 @@ var deserializeAws_restJson1GetReportDefinitionCommandError = function (output,
|
|
|
323
323
|
case 0:
|
|
324
324
|
_a = [__assign({}, output)];
|
|
325
325
|
_g = {};
|
|
326
|
-
return [4
|
|
326
|
+
return [4, parseBody(output.body, context)];
|
|
327
327
|
case 1:
|
|
328
328
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
329
329
|
errorCode = "UnknownError";
|
|
330
330
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
331
|
_b = errorCode;
|
|
332
332
|
switch (_b) {
|
|
333
|
-
case "AccessDeniedException": return [3
|
|
334
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3
|
|
335
|
-
case "InternalServerException": return [3
|
|
336
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3
|
|
337
|
-
case "ThrottlingException": return [3
|
|
338
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3
|
|
339
|
-
case "ValidationException": return [3
|
|
340
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3
|
|
333
|
+
case "AccessDeniedException": return [3, 2];
|
|
334
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3, 2];
|
|
335
|
+
case "InternalServerException": return [3, 4];
|
|
336
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3, 4];
|
|
337
|
+
case "ThrottlingException": return [3, 6];
|
|
338
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3, 6];
|
|
339
|
+
case "ValidationException": return [3, 8];
|
|
340
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3, 8];
|
|
341
341
|
}
|
|
342
|
-
return [3
|
|
342
|
+
return [3, 10];
|
|
343
343
|
case 2:
|
|
344
344
|
_c = [{}];
|
|
345
|
-
return [4
|
|
345
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
346
346
|
case 3:
|
|
347
347
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
348
|
-
return [3
|
|
348
|
+
return [3, 11];
|
|
349
349
|
case 4:
|
|
350
350
|
_d = [{}];
|
|
351
|
-
return [4
|
|
351
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
352
352
|
case 5:
|
|
353
353
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
354
|
-
return [3
|
|
354
|
+
return [3, 11];
|
|
355
355
|
case 6:
|
|
356
356
|
_e = [{}];
|
|
357
|
-
return [4
|
|
357
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
358
358
|
case 7:
|
|
359
359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
360
|
-
return [3
|
|
360
|
+
return [3, 11];
|
|
361
361
|
case 8:
|
|
362
362
|
_f = [{}];
|
|
363
|
-
return [4
|
|
363
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
364
364
|
case 9:
|
|
365
365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
366
|
-
return [3
|
|
366
|
+
return [3, 11];
|
|
367
367
|
case 10:
|
|
368
368
|
parsedBody = parsedOutput.body;
|
|
369
369
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -373,7 +373,7 @@ var deserializeAws_restJson1GetReportDefinitionCommandError = function (output,
|
|
|
373
373
|
message = response.message || response.Message || errorCode;
|
|
374
374
|
response.message = message;
|
|
375
375
|
delete response.Message;
|
|
376
|
-
return [2
|
|
376
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
}); };
|
|
@@ -383,7 +383,7 @@ export var deserializeAws_restJson1ImportApplicationUsageCommand = function (out
|
|
|
383
383
|
switch (_c.label) {
|
|
384
384
|
case 0:
|
|
385
385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
386
|
-
return [2
|
|
386
|
+
return [2, deserializeAws_restJson1ImportApplicationUsageCommandError(output, context)];
|
|
387
387
|
}
|
|
388
388
|
contents = {
|
|
389
389
|
$metadata: deserializeMetadata(output),
|
|
@@ -391,13 +391,13 @@ export var deserializeAws_restJson1ImportApplicationUsageCommand = function (out
|
|
|
391
391
|
};
|
|
392
392
|
_a = __expectNonNull;
|
|
393
393
|
_b = __expectObject;
|
|
394
|
-
return [4
|
|
394
|
+
return [4, parseBody(output.body, context)];
|
|
395
395
|
case 1:
|
|
396
396
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
397
397
|
if (data.importId !== undefined && data.importId !== null) {
|
|
398
398
|
contents.importId = __expectString(data.importId);
|
|
399
399
|
}
|
|
400
|
-
return [2
|
|
400
|
+
return [2, Promise.resolve(contents)];
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
}); };
|
|
@@ -409,47 +409,47 @@ var deserializeAws_restJson1ImportApplicationUsageCommandError = function (outpu
|
|
|
409
409
|
case 0:
|
|
410
410
|
_a = [__assign({}, output)];
|
|
411
411
|
_g = {};
|
|
412
|
-
return [4
|
|
412
|
+
return [4, parseBody(output.body, context)];
|
|
413
413
|
case 1:
|
|
414
414
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
415
415
|
errorCode = "UnknownError";
|
|
416
416
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
417
|
_b = errorCode;
|
|
418
418
|
switch (_b) {
|
|
419
|
-
case "AccessDeniedException": return [3
|
|
420
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3
|
|
421
|
-
case "InternalServerException": return [3
|
|
422
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3
|
|
423
|
-
case "ThrottlingException": return [3
|
|
424
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3
|
|
425
|
-
case "ValidationException": return [3
|
|
426
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3
|
|
419
|
+
case "AccessDeniedException": return [3, 2];
|
|
420
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3, 2];
|
|
421
|
+
case "InternalServerException": return [3, 4];
|
|
422
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3, 4];
|
|
423
|
+
case "ThrottlingException": return [3, 6];
|
|
424
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3, 6];
|
|
425
|
+
case "ValidationException": return [3, 8];
|
|
426
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3, 8];
|
|
427
427
|
}
|
|
428
|
-
return [3
|
|
428
|
+
return [3, 10];
|
|
429
429
|
case 2:
|
|
430
430
|
_c = [{}];
|
|
431
|
-
return [4
|
|
431
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
432
432
|
case 3:
|
|
433
433
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
434
|
-
return [3
|
|
434
|
+
return [3, 11];
|
|
435
435
|
case 4:
|
|
436
436
|
_d = [{}];
|
|
437
|
-
return [4
|
|
437
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
438
438
|
case 5:
|
|
439
439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
440
|
-
return [3
|
|
440
|
+
return [3, 11];
|
|
441
441
|
case 6:
|
|
442
442
|
_e = [{}];
|
|
443
|
-
return [4
|
|
443
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
444
444
|
case 7:
|
|
445
445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
446
|
-
return [3
|
|
446
|
+
return [3, 11];
|
|
447
447
|
case 8:
|
|
448
448
|
_f = [{}];
|
|
449
|
-
return [4
|
|
449
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
450
450
|
case 9:
|
|
451
451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
452
|
-
return [3
|
|
452
|
+
return [3, 11];
|
|
453
453
|
case 10:
|
|
454
454
|
parsedBody = parsedOutput.body;
|
|
455
455
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -459,7 +459,7 @@ var deserializeAws_restJson1ImportApplicationUsageCommandError = function (outpu
|
|
|
459
459
|
message = response.message || response.Message || errorCode;
|
|
460
460
|
response.message = message;
|
|
461
461
|
delete response.Message;
|
|
462
|
-
return [2
|
|
462
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
}); };
|
|
@@ -469,7 +469,7 @@ export var deserializeAws_restJson1ListReportDefinitionsCommand = function (outp
|
|
|
469
469
|
switch (_c.label) {
|
|
470
470
|
case 0:
|
|
471
471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
-
return [2
|
|
472
|
+
return [2, deserializeAws_restJson1ListReportDefinitionsCommandError(output, context)];
|
|
473
473
|
}
|
|
474
474
|
contents = {
|
|
475
475
|
$metadata: deserializeMetadata(output),
|
|
@@ -478,7 +478,7 @@ export var deserializeAws_restJson1ListReportDefinitionsCommand = function (outp
|
|
|
478
478
|
};
|
|
479
479
|
_a = __expectNonNull;
|
|
480
480
|
_b = __expectObject;
|
|
481
|
-
return [4
|
|
481
|
+
return [4, parseBody(output.body, context)];
|
|
482
482
|
case 1:
|
|
483
483
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
484
484
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -487,7 +487,7 @@ export var deserializeAws_restJson1ListReportDefinitionsCommand = function (outp
|
|
|
487
487
|
if (data.reportDefinitions !== undefined && data.reportDefinitions !== null) {
|
|
488
488
|
contents.reportDefinitions = deserializeAws_restJson1ReportDefinitionList(data.reportDefinitions, context);
|
|
489
489
|
}
|
|
490
|
-
return [2
|
|
490
|
+
return [2, Promise.resolve(contents)];
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
493
|
}); };
|
|
@@ -499,47 +499,47 @@ var deserializeAws_restJson1ListReportDefinitionsCommandError = function (output
|
|
|
499
499
|
case 0:
|
|
500
500
|
_a = [__assign({}, output)];
|
|
501
501
|
_g = {};
|
|
502
|
-
return [4
|
|
502
|
+
return [4, parseBody(output.body, context)];
|
|
503
503
|
case 1:
|
|
504
504
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
505
505
|
errorCode = "UnknownError";
|
|
506
506
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
507
|
_b = errorCode;
|
|
508
508
|
switch (_b) {
|
|
509
|
-
case "AccessDeniedException": return [3
|
|
510
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3
|
|
511
|
-
case "InternalServerException": return [3
|
|
512
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3
|
|
513
|
-
case "ThrottlingException": return [3
|
|
514
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3
|
|
515
|
-
case "ValidationException": return [3
|
|
516
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3
|
|
509
|
+
case "AccessDeniedException": return [3, 2];
|
|
510
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3, 2];
|
|
511
|
+
case "InternalServerException": return [3, 4];
|
|
512
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3, 4];
|
|
513
|
+
case "ThrottlingException": return [3, 6];
|
|
514
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3, 6];
|
|
515
|
+
case "ValidationException": return [3, 8];
|
|
516
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3, 8];
|
|
517
517
|
}
|
|
518
|
-
return [3
|
|
518
|
+
return [3, 10];
|
|
519
519
|
case 2:
|
|
520
520
|
_c = [{}];
|
|
521
|
-
return [4
|
|
521
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
522
522
|
case 3:
|
|
523
523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
524
|
-
return [3
|
|
524
|
+
return [3, 11];
|
|
525
525
|
case 4:
|
|
526
526
|
_d = [{}];
|
|
527
|
-
return [4
|
|
527
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
528
528
|
case 5:
|
|
529
529
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
530
|
-
return [3
|
|
530
|
+
return [3, 11];
|
|
531
531
|
case 6:
|
|
532
532
|
_e = [{}];
|
|
533
|
-
return [4
|
|
533
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
534
534
|
case 7:
|
|
535
535
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
536
|
-
return [3
|
|
536
|
+
return [3, 11];
|
|
537
537
|
case 8:
|
|
538
538
|
_f = [{}];
|
|
539
|
-
return [4
|
|
539
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
540
540
|
case 9:
|
|
541
541
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
542
|
-
return [3
|
|
542
|
+
return [3, 11];
|
|
543
543
|
case 10:
|
|
544
544
|
parsedBody = parsedOutput.body;
|
|
545
545
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -549,7 +549,7 @@ var deserializeAws_restJson1ListReportDefinitionsCommandError = function (output
|
|
|
549
549
|
message = response.message || response.Message || errorCode;
|
|
550
550
|
response.message = message;
|
|
551
551
|
delete response.Message;
|
|
552
|
-
return [2
|
|
552
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
}); };
|
|
@@ -559,7 +559,7 @@ export var deserializeAws_restJson1PutReportDefinitionCommand = function (output
|
|
|
559
559
|
switch (_c.label) {
|
|
560
560
|
case 0:
|
|
561
561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
|
-
return [2
|
|
562
|
+
return [2, deserializeAws_restJson1PutReportDefinitionCommandError(output, context)];
|
|
563
563
|
}
|
|
564
564
|
contents = {
|
|
565
565
|
$metadata: deserializeMetadata(output),
|
|
@@ -567,13 +567,13 @@ export var deserializeAws_restJson1PutReportDefinitionCommand = function (output
|
|
|
567
567
|
};
|
|
568
568
|
_a = __expectNonNull;
|
|
569
569
|
_b = __expectObject;
|
|
570
|
-
return [4
|
|
570
|
+
return [4, parseBody(output.body, context)];
|
|
571
571
|
case 1:
|
|
572
572
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
573
573
|
if (data.reportId !== undefined && data.reportId !== null) {
|
|
574
574
|
contents.reportId = __expectString(data.reportId);
|
|
575
575
|
}
|
|
576
|
-
return [2
|
|
576
|
+
return [2, Promise.resolve(contents)];
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
579
|
}); };
|
|
@@ -585,55 +585,55 @@ var deserializeAws_restJson1PutReportDefinitionCommandError = function (output,
|
|
|
585
585
|
case 0:
|
|
586
586
|
_a = [__assign({}, output)];
|
|
587
587
|
_h = {};
|
|
588
|
-
return [4
|
|
588
|
+
return [4, parseBody(output.body, context)];
|
|
589
589
|
case 1:
|
|
590
590
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
591
591
|
errorCode = "UnknownError";
|
|
592
592
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
593
|
_b = errorCode;
|
|
594
594
|
switch (_b) {
|
|
595
|
-
case "AccessDeniedException": return [3
|
|
596
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3
|
|
597
|
-
case "InternalServerException": return [3
|
|
598
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3
|
|
599
|
-
case "ServiceQuotaExceededException": return [3
|
|
600
|
-
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException": return [3
|
|
601
|
-
case "ThrottlingException": return [3
|
|
602
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3
|
|
603
|
-
case "ValidationException": return [3
|
|
604
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3
|
|
595
|
+
case "AccessDeniedException": return [3, 2];
|
|
596
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3, 2];
|
|
597
|
+
case "InternalServerException": return [3, 4];
|
|
598
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3, 4];
|
|
599
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
600
|
+
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException": return [3, 6];
|
|
601
|
+
case "ThrottlingException": return [3, 8];
|
|
602
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3, 8];
|
|
603
|
+
case "ValidationException": return [3, 10];
|
|
604
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3, 10];
|
|
605
605
|
}
|
|
606
|
-
return [3
|
|
606
|
+
return [3, 12];
|
|
607
607
|
case 2:
|
|
608
608
|
_c = [{}];
|
|
609
|
-
return [4
|
|
609
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
610
610
|
case 3:
|
|
611
611
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
612
|
-
return [3
|
|
612
|
+
return [3, 13];
|
|
613
613
|
case 4:
|
|
614
614
|
_d = [{}];
|
|
615
|
-
return [4
|
|
615
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
616
616
|
case 5:
|
|
617
617
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
618
|
-
return [3
|
|
618
|
+
return [3, 13];
|
|
619
619
|
case 6:
|
|
620
620
|
_e = [{}];
|
|
621
|
-
return [4
|
|
621
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
622
622
|
case 7:
|
|
623
623
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
624
|
-
return [3
|
|
624
|
+
return [3, 13];
|
|
625
625
|
case 8:
|
|
626
626
|
_f = [{}];
|
|
627
|
-
return [4
|
|
627
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
628
628
|
case 9:
|
|
629
629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
630
|
-
return [3
|
|
630
|
+
return [3, 13];
|
|
631
631
|
case 10:
|
|
632
632
|
_g = [{}];
|
|
633
|
-
return [4
|
|
633
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
634
634
|
case 11:
|
|
635
635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
636
|
-
return [3
|
|
636
|
+
return [3, 13];
|
|
637
637
|
case 12:
|
|
638
638
|
parsedBody = parsedOutput.body;
|
|
639
639
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -643,7 +643,7 @@ var deserializeAws_restJson1PutReportDefinitionCommandError = function (output,
|
|
|
643
643
|
message = response.message || response.Message || errorCode;
|
|
644
644
|
response.message = message;
|
|
645
645
|
delete response.Message;
|
|
646
|
-
return [2
|
|
646
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
649
|
}); };
|
|
@@ -653,7 +653,7 @@ export var deserializeAws_restJson1UpdateReportDefinitionCommand = function (out
|
|
|
653
653
|
switch (_c.label) {
|
|
654
654
|
case 0:
|
|
655
655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
|
-
return [2
|
|
656
|
+
return [2, deserializeAws_restJson1UpdateReportDefinitionCommandError(output, context)];
|
|
657
657
|
}
|
|
658
658
|
contents = {
|
|
659
659
|
$metadata: deserializeMetadata(output),
|
|
@@ -661,13 +661,13 @@ export var deserializeAws_restJson1UpdateReportDefinitionCommand = function (out
|
|
|
661
661
|
};
|
|
662
662
|
_a = __expectNonNull;
|
|
663
663
|
_b = __expectObject;
|
|
664
|
-
return [4
|
|
664
|
+
return [4, parseBody(output.body, context)];
|
|
665
665
|
case 1:
|
|
666
666
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
667
667
|
if (data.reportId !== undefined && data.reportId !== null) {
|
|
668
668
|
contents.reportId = __expectString(data.reportId);
|
|
669
669
|
}
|
|
670
|
-
return [2
|
|
670
|
+
return [2, Promise.resolve(contents)];
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}); };
|
|
@@ -679,47 +679,47 @@ var deserializeAws_restJson1UpdateReportDefinitionCommandError = function (outpu
|
|
|
679
679
|
case 0:
|
|
680
680
|
_a = [__assign({}, output)];
|
|
681
681
|
_g = {};
|
|
682
|
-
return [4
|
|
682
|
+
return [4, parseBody(output.body, context)];
|
|
683
683
|
case 1:
|
|
684
684
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
685
685
|
errorCode = "UnknownError";
|
|
686
686
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
687
|
_b = errorCode;
|
|
688
688
|
switch (_b) {
|
|
689
|
-
case "AccessDeniedException": return [3
|
|
690
|
-
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3
|
|
691
|
-
case "InternalServerException": return [3
|
|
692
|
-
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3
|
|
693
|
-
case "ThrottlingException": return [3
|
|
694
|
-
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3
|
|
695
|
-
case "ValidationException": return [3
|
|
696
|
-
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3
|
|
689
|
+
case "AccessDeniedException": return [3, 2];
|
|
690
|
+
case "com.amazonaws.applicationcostprofiler#AccessDeniedException": return [3, 2];
|
|
691
|
+
case "InternalServerException": return [3, 4];
|
|
692
|
+
case "com.amazonaws.applicationcostprofiler#InternalServerException": return [3, 4];
|
|
693
|
+
case "ThrottlingException": return [3, 6];
|
|
694
|
+
case "com.amazonaws.applicationcostprofiler#ThrottlingException": return [3, 6];
|
|
695
|
+
case "ValidationException": return [3, 8];
|
|
696
|
+
case "com.amazonaws.applicationcostprofiler#ValidationException": return [3, 8];
|
|
697
697
|
}
|
|
698
|
-
return [3
|
|
698
|
+
return [3, 10];
|
|
699
699
|
case 2:
|
|
700
700
|
_c = [{}];
|
|
701
|
-
return [4
|
|
701
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
702
702
|
case 3:
|
|
703
703
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
704
|
-
return [3
|
|
704
|
+
return [3, 11];
|
|
705
705
|
case 4:
|
|
706
706
|
_d = [{}];
|
|
707
|
-
return [4
|
|
707
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
708
708
|
case 5:
|
|
709
709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
710
|
-
return [3
|
|
710
|
+
return [3, 11];
|
|
711
711
|
case 6:
|
|
712
712
|
_e = [{}];
|
|
713
|
-
return [4
|
|
713
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
714
714
|
case 7:
|
|
715
715
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
716
|
-
return [3
|
|
716
|
+
return [3, 11];
|
|
717
717
|
case 8:
|
|
718
718
|
_f = [{}];
|
|
719
|
-
return [4
|
|
719
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
720
720
|
case 9:
|
|
721
721
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
722
|
-
return [3
|
|
722
|
+
return [3, 11];
|
|
723
723
|
case 10:
|
|
724
724
|
parsedBody = parsedOutput.body;
|
|
725
725
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -729,7 +729,7 @@ var deserializeAws_restJson1UpdateReportDefinitionCommandError = function (outpu
|
|
|
729
729
|
message = response.message || response.Message || errorCode;
|
|
730
730
|
response.message = message;
|
|
731
731
|
delete response.Message;
|
|
732
|
-
return [2
|
|
732
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
}); };
|
|
@@ -746,7 +746,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
746
746
|
if (data.message !== undefined && data.message !== null) {
|
|
747
747
|
contents.message = __expectString(data.message);
|
|
748
748
|
}
|
|
749
|
-
return [2
|
|
749
|
+
return [2, contents];
|
|
750
750
|
});
|
|
751
751
|
}); };
|
|
752
752
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -762,7 +762,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
762
762
|
if (data.message !== undefined && data.message !== null) {
|
|
763
763
|
contents.message = __expectString(data.message);
|
|
764
764
|
}
|
|
765
|
-
return [2
|
|
765
|
+
return [2, contents];
|
|
766
766
|
});
|
|
767
767
|
}); };
|
|
768
768
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -778,7 +778,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
778
778
|
if (data.message !== undefined && data.message !== null) {
|
|
779
779
|
contents.message = __expectString(data.message);
|
|
780
780
|
}
|
|
781
|
-
return [2
|
|
781
|
+
return [2, contents];
|
|
782
782
|
});
|
|
783
783
|
}); };
|
|
784
784
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -794,7 +794,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
794
794
|
if (data.message !== undefined && data.message !== null) {
|
|
795
795
|
contents.message = __expectString(data.message);
|
|
796
796
|
}
|
|
797
|
-
return [2
|
|
797
|
+
return [2, contents];
|
|
798
798
|
});
|
|
799
799
|
}); };
|
|
800
800
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -810,7 +810,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
810
810
|
if (data.message !== undefined && data.message !== null) {
|
|
811
811
|
contents.message = __expectString(data.message);
|
|
812
812
|
}
|
|
813
|
-
return [2
|
|
813
|
+
return [2, contents];
|
|
814
814
|
});
|
|
815
815
|
}); };
|
|
816
816
|
var serializeAws_restJson1S3Location = function (input, context) {
|
|
@@ -861,7 +861,6 @@ var deserializeMetadata = function (output) {
|
|
|
861
861
|
cfId: output.headers["x-amz-cf-id"],
|
|
862
862
|
});
|
|
863
863
|
};
|
|
864
|
-
// Collect low-level response body stream to Uint8Array.
|
|
865
864
|
var collectBody = function (streamBody, context) {
|
|
866
865
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
867
866
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -869,7 +868,6 @@ var collectBody = function (streamBody, context) {
|
|
|
869
868
|
}
|
|
870
869
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
871
870
|
};
|
|
872
|
-
// Encode Uint8Array data into string with utf-8.
|
|
873
871
|
var collectBodyString = function (streamBody, context) {
|
|
874
872
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
875
873
|
};
|
|
@@ -888,9 +886,6 @@ var parseBody = function (streamBody, context) {
|
|
|
888
886
|
return {};
|
|
889
887
|
});
|
|
890
888
|
};
|
|
891
|
-
/**
|
|
892
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
893
|
-
*/
|
|
894
889
|
var loadRestJsonErrorCode = function (output, data) {
|
|
895
890
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
896
891
|
var sanitizeErrorCode = function (rawValue) {
|