@aws-sdk/client-applicationcostprofiler 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/DeleteReportDefinitionCommand.js +2 -2
- package/dist-cjs/commands/GetReportDefinitionCommand.js +2 -2
- package/dist-cjs/commands/ImportApplicationUsageCommand.js +2 -2
- package/dist-cjs/commands/ListReportDefinitionsCommand.js +2 -2
- package/dist-cjs/commands/PutReportDefinitionCommand.js +2 -2
- package/dist-cjs/commands/UpdateReportDefinitionCommand.js +2 -2
- package/dist-cjs/models/models_0.js +61 -91
- package/dist-cjs/protocols/Aws_restJson1.js +79 -136
- package/dist-es/commands/DeleteReportDefinitionCommand.js +3 -3
- package/dist-es/commands/GetReportDefinitionCommand.js +3 -3
- package/dist-es/commands/ImportApplicationUsageCommand.js +3 -3
- package/dist-es/commands/ListReportDefinitionsCommand.js +3 -3
- package/dist-es/commands/PutReportDefinitionCommand.js +3 -3
- package/dist-es/commands/UpdateReportDefinitionCommand.js +3 -3
- package/dist-es/models/models_0.js +15 -60
- package/dist-es/protocols/Aws_restJson1.js +101 -137
- package/dist-types/models/models_0.d.ts +60 -90
- package/dist-types/ts3.4/models/models_0.d.ts +30 -60
- package/package.json +6 -6
|
@@ -12,14 +12,6 @@ var AccessDeniedException = (function (_super) {
|
|
|
12
12
|
return AccessDeniedException;
|
|
13
13
|
}(__BaseException));
|
|
14
14
|
export { AccessDeniedException };
|
|
15
|
-
export var DeleteReportDefinitionRequest;
|
|
16
|
-
(function (DeleteReportDefinitionRequest) {
|
|
17
|
-
DeleteReportDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
18
|
-
})(DeleteReportDefinitionRequest || (DeleteReportDefinitionRequest = {}));
|
|
19
|
-
export var DeleteReportDefinitionResult;
|
|
20
|
-
(function (DeleteReportDefinitionResult) {
|
|
21
|
-
DeleteReportDefinitionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
|
-
})(DeleteReportDefinitionResult || (DeleteReportDefinitionResult = {}));
|
|
23
15
|
var InternalServerException = (function (_super) {
|
|
24
16
|
__extends(InternalServerException, _super);
|
|
25
17
|
function InternalServerException(opts) {
|
|
@@ -56,14 +48,6 @@ var ValidationException = (function (_super) {
|
|
|
56
48
|
return ValidationException;
|
|
57
49
|
}(__BaseException));
|
|
58
50
|
export { ValidationException };
|
|
59
|
-
export var GetReportDefinitionRequest;
|
|
60
|
-
(function (GetReportDefinitionRequest) {
|
|
61
|
-
GetReportDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
62
|
-
})(GetReportDefinitionRequest || (GetReportDefinitionRequest = {}));
|
|
63
|
-
export var S3Location;
|
|
64
|
-
(function (S3Location) {
|
|
65
|
-
S3Location.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
66
|
-
})(S3Location || (S3Location = {}));
|
|
67
51
|
export var Format;
|
|
68
52
|
(function (Format) {
|
|
69
53
|
Format["CSV"] = "CSV";
|
|
@@ -75,10 +59,6 @@ export var ReportFrequency;
|
|
|
75
59
|
ReportFrequency["DAILY"] = "DAILY";
|
|
76
60
|
ReportFrequency["MONTHLY"] = "MONTHLY";
|
|
77
61
|
})(ReportFrequency || (ReportFrequency = {}));
|
|
78
|
-
export var GetReportDefinitionResult;
|
|
79
|
-
(function (GetReportDefinitionResult) {
|
|
80
|
-
GetReportDefinitionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
81
|
-
})(GetReportDefinitionResult || (GetReportDefinitionResult = {}));
|
|
82
62
|
export var S3BucketRegion;
|
|
83
63
|
(function (S3BucketRegion) {
|
|
84
64
|
S3BucketRegion["AF_SOUTH_1"] = "af-south-1";
|
|
@@ -86,38 +66,6 @@ export var S3BucketRegion;
|
|
|
86
66
|
S3BucketRegion["EU_SOUTH_1"] = "eu-south-1";
|
|
87
67
|
S3BucketRegion["ME_SOUTH_1"] = "me-south-1";
|
|
88
68
|
})(S3BucketRegion || (S3BucketRegion = {}));
|
|
89
|
-
export var SourceS3Location;
|
|
90
|
-
(function (SourceS3Location) {
|
|
91
|
-
SourceS3Location.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
92
|
-
})(SourceS3Location || (SourceS3Location = {}));
|
|
93
|
-
export var ImportApplicationUsageRequest;
|
|
94
|
-
(function (ImportApplicationUsageRequest) {
|
|
95
|
-
ImportApplicationUsageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
96
|
-
})(ImportApplicationUsageRequest || (ImportApplicationUsageRequest = {}));
|
|
97
|
-
export var ImportApplicationUsageResult;
|
|
98
|
-
(function (ImportApplicationUsageResult) {
|
|
99
|
-
ImportApplicationUsageResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
100
|
-
})(ImportApplicationUsageResult || (ImportApplicationUsageResult = {}));
|
|
101
|
-
export var ListReportDefinitionsRequest;
|
|
102
|
-
(function (ListReportDefinitionsRequest) {
|
|
103
|
-
ListReportDefinitionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
104
|
-
})(ListReportDefinitionsRequest || (ListReportDefinitionsRequest = {}));
|
|
105
|
-
export var ReportDefinition;
|
|
106
|
-
(function (ReportDefinition) {
|
|
107
|
-
ReportDefinition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
108
|
-
})(ReportDefinition || (ReportDefinition = {}));
|
|
109
|
-
export var ListReportDefinitionsResult;
|
|
110
|
-
(function (ListReportDefinitionsResult) {
|
|
111
|
-
ListReportDefinitionsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
112
|
-
})(ListReportDefinitionsResult || (ListReportDefinitionsResult = {}));
|
|
113
|
-
export var PutReportDefinitionRequest;
|
|
114
|
-
(function (PutReportDefinitionRequest) {
|
|
115
|
-
PutReportDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
|
-
})(PutReportDefinitionRequest || (PutReportDefinitionRequest = {}));
|
|
117
|
-
export var PutReportDefinitionResult;
|
|
118
|
-
(function (PutReportDefinitionResult) {
|
|
119
|
-
PutReportDefinitionResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
120
|
-
})(PutReportDefinitionResult || (PutReportDefinitionResult = {}));
|
|
121
69
|
var ServiceQuotaExceededException = (function (_super) {
|
|
122
70
|
__extends(ServiceQuotaExceededException, _super);
|
|
123
71
|
function ServiceQuotaExceededException(opts) {
|
|
@@ -130,11 +78,18 @@ var ServiceQuotaExceededException = (function (_super) {
|
|
|
130
78
|
return ServiceQuotaExceededException;
|
|
131
79
|
}(__BaseException));
|
|
132
80
|
export { ServiceQuotaExceededException };
|
|
133
|
-
export var
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
export var
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
81
|
+
export var DeleteReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
|
+
export var DeleteReportDefinitionResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
83
|
+
export var GetReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
84
|
+
export var S3LocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
85
|
+
export var GetReportDefinitionResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
86
|
+
export var SourceS3LocationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
|
+
export var ImportApplicationUsageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
88
|
+
export var ImportApplicationUsageResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
89
|
+
export var ListReportDefinitionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
|
+
export var ReportDefinitionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
91
|
+
export var ListReportDefinitionsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
92
|
+
export var PutReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
93
|
+
export var PutReportDefinitionResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
|
+
export var UpdateReportDefinitionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
|
+
export var UpdateReportDefinitionResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ApplicationCostProfilerServiceException as __BaseException } from "../models/ApplicationCostProfilerServiceException";
|
|
5
5
|
import { AccessDeniedException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1DeleteReportDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -12,16 +12,7 @@ export var serializeAws_restJson1DeleteReportDefinitionCommand = function (input
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reportDefinition/{reportId}";
|
|
15
|
-
|
|
16
|
-
labelValue = input.reportId;
|
|
17
|
-
if (labelValue.length <= 0) {
|
|
18
|
-
throw new Error("Empty value provided for input HTTP label: reportId.");
|
|
19
|
-
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{reportId}", __extendedEncodeURIComponent(labelValue));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: reportId.");
|
|
24
|
-
}
|
|
15
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "reportId", function () { return input.reportId; }, "{reportId}", false);
|
|
25
16
|
return [2, new __HttpRequest({
|
|
26
17
|
protocol: protocol,
|
|
27
18
|
hostname: hostname,
|
|
@@ -35,7 +26,7 @@ export var serializeAws_restJson1DeleteReportDefinitionCommand = function (input
|
|
|
35
26
|
});
|
|
36
27
|
}); };
|
|
37
28
|
export var serializeAws_restJson1GetReportDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
38
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
29
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
39
30
|
return __generator(this, function (_c) {
|
|
40
31
|
switch (_c.label) {
|
|
41
32
|
case 0: return [4, context.endpoint()];
|
|
@@ -43,16 +34,7 @@ export var serializeAws_restJson1GetReportDefinitionCommand = function (input, c
|
|
|
43
34
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
44
35
|
headers = {};
|
|
45
36
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reportDefinition/{reportId}";
|
|
46
|
-
|
|
47
|
-
labelValue = input.reportId;
|
|
48
|
-
if (labelValue.length <= 0) {
|
|
49
|
-
throw new Error("Empty value provided for input HTTP label: reportId.");
|
|
50
|
-
}
|
|
51
|
-
resolvedPath = resolvedPath.replace("{reportId}", __extendedEncodeURIComponent(labelValue));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
throw new Error("No value provided for input HTTP label: reportId.");
|
|
55
|
-
}
|
|
37
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "reportId", function () { return input.reportId; }, "{reportId}", false);
|
|
56
38
|
return [2, new __HttpRequest({
|
|
57
39
|
protocol: protocol,
|
|
58
40
|
hostname: hostname,
|
|
@@ -100,7 +82,10 @@ export var serializeAws_restJson1ListReportDefinitionsCommand = function (input,
|
|
|
100
82
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
101
83
|
headers = {};
|
|
102
84
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reportDefinition";
|
|
103
|
-
query =
|
|
85
|
+
query = map({
|
|
86
|
+
nextToken: [, input.nextToken],
|
|
87
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
88
|
+
});
|
|
104
89
|
return [2, new __HttpRequest({
|
|
105
90
|
protocol: protocol,
|
|
106
91
|
hostname: hostname,
|
|
@@ -141,7 +126,7 @@ export var serializeAws_restJson1PutReportDefinitionCommand = function (input, c
|
|
|
141
126
|
});
|
|
142
127
|
}); };
|
|
143
128
|
export var serializeAws_restJson1UpdateReportDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
129
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
145
130
|
return __generator(this, function (_c) {
|
|
146
131
|
switch (_c.label) {
|
|
147
132
|
case 0: return [4, context.endpoint()];
|
|
@@ -151,16 +136,7 @@ export var serializeAws_restJson1UpdateReportDefinitionCommand = function (input
|
|
|
151
136
|
"content-type": "application/json",
|
|
152
137
|
};
|
|
153
138
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/reportDefinition/{reportId}";
|
|
154
|
-
|
|
155
|
-
labelValue = input.reportId;
|
|
156
|
-
if (labelValue.length <= 0) {
|
|
157
|
-
throw new Error("Empty value provided for input HTTP label: reportId.");
|
|
158
|
-
}
|
|
159
|
-
resolvedPath = resolvedPath.replace("{reportId}", __extendedEncodeURIComponent(labelValue));
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
throw new Error("No value provided for input HTTP label: reportId.");
|
|
163
|
-
}
|
|
139
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "reportId", function () { return input.reportId; }, "{reportId}", false);
|
|
164
140
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.destinationS3Location != null && {
|
|
165
141
|
destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
|
|
166
142
|
})), (input.format != null && { format: input.format })), (input.reportDescription != null && { reportDescription: input.reportDescription })), (input.reportFrequency != null && { reportFrequency: input.reportFrequency })));
|
|
@@ -184,24 +160,23 @@ export var deserializeAws_restJson1DeleteReportDefinitionCommand = function (out
|
|
|
184
160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
185
161
|
return [2, deserializeAws_restJson1DeleteReportDefinitionCommandError(output, context)];
|
|
186
162
|
}
|
|
187
|
-
contents = {
|
|
163
|
+
contents = map({
|
|
188
164
|
$metadata: deserializeMetadata(output),
|
|
189
|
-
|
|
190
|
-
};
|
|
165
|
+
});
|
|
191
166
|
_a = __expectNonNull;
|
|
192
167
|
_b = __expectObject;
|
|
193
168
|
return [4, parseBody(output.body, context)];
|
|
194
169
|
case 1:
|
|
195
170
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
196
|
-
if (data.reportId
|
|
171
|
+
if (data.reportId != null) {
|
|
197
172
|
contents.reportId = __expectString(data.reportId);
|
|
198
173
|
}
|
|
199
|
-
return [2,
|
|
174
|
+
return [2, contents];
|
|
200
175
|
}
|
|
201
176
|
});
|
|
202
177
|
}); };
|
|
203
178
|
var deserializeAws_restJson1DeleteReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
204
|
-
var parsedOutput, _a,
|
|
179
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
205
180
|
var _c;
|
|
206
181
|
return __generator(this, function (_d) {
|
|
207
182
|
switch (_d.label) {
|
|
@@ -234,14 +209,14 @@ var deserializeAws_restJson1DeleteReportDefinitionCommandError = function (outpu
|
|
|
234
209
|
case 9: throw _d.sent();
|
|
235
210
|
case 10:
|
|
236
211
|
parsedBody = parsedOutput.body;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
$metadata: $metadata,
|
|
212
|
+
throwDefaultError({
|
|
213
|
+
output: output,
|
|
214
|
+
parsedBody: parsedBody,
|
|
215
|
+
exceptionCtor: __BaseException,
|
|
216
|
+
errorCode: errorCode,
|
|
243
217
|
});
|
|
244
|
-
|
|
218
|
+
_d.label = 11;
|
|
219
|
+
case 11: return [2];
|
|
245
220
|
}
|
|
246
221
|
});
|
|
247
222
|
}); };
|
|
@@ -253,48 +228,41 @@ export var deserializeAws_restJson1GetReportDefinitionCommand = function (output
|
|
|
253
228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
229
|
return [2, deserializeAws_restJson1GetReportDefinitionCommandError(output, context)];
|
|
255
230
|
}
|
|
256
|
-
contents = {
|
|
231
|
+
contents = map({
|
|
257
232
|
$metadata: deserializeMetadata(output),
|
|
258
|
-
|
|
259
|
-
destinationS3Location: undefined,
|
|
260
|
-
format: undefined,
|
|
261
|
-
lastUpdated: undefined,
|
|
262
|
-
reportDescription: undefined,
|
|
263
|
-
reportFrequency: undefined,
|
|
264
|
-
reportId: undefined,
|
|
265
|
-
};
|
|
233
|
+
});
|
|
266
234
|
_a = __expectNonNull;
|
|
267
235
|
_b = __expectObject;
|
|
268
236
|
return [4, parseBody(output.body, context)];
|
|
269
237
|
case 1:
|
|
270
238
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
271
|
-
if (data.createdAt
|
|
239
|
+
if (data.createdAt != null) {
|
|
272
240
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
273
241
|
}
|
|
274
|
-
if (data.destinationS3Location
|
|
242
|
+
if (data.destinationS3Location != null) {
|
|
275
243
|
contents.destinationS3Location = deserializeAws_restJson1S3Location(data.destinationS3Location, context);
|
|
276
244
|
}
|
|
277
|
-
if (data.format
|
|
245
|
+
if (data.format != null) {
|
|
278
246
|
contents.format = __expectString(data.format);
|
|
279
247
|
}
|
|
280
|
-
if (data.lastUpdated
|
|
248
|
+
if (data.lastUpdated != null) {
|
|
281
249
|
contents.lastUpdated = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdated)));
|
|
282
250
|
}
|
|
283
|
-
if (data.reportDescription
|
|
251
|
+
if (data.reportDescription != null) {
|
|
284
252
|
contents.reportDescription = __expectString(data.reportDescription);
|
|
285
253
|
}
|
|
286
|
-
if (data.reportFrequency
|
|
254
|
+
if (data.reportFrequency != null) {
|
|
287
255
|
contents.reportFrequency = __expectString(data.reportFrequency);
|
|
288
256
|
}
|
|
289
|
-
if (data.reportId
|
|
257
|
+
if (data.reportId != null) {
|
|
290
258
|
contents.reportId = __expectString(data.reportId);
|
|
291
259
|
}
|
|
292
|
-
return [2,
|
|
260
|
+
return [2, contents];
|
|
293
261
|
}
|
|
294
262
|
});
|
|
295
263
|
}); };
|
|
296
264
|
var deserializeAws_restJson1GetReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
|
-
var parsedOutput, _a,
|
|
265
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
298
266
|
var _c;
|
|
299
267
|
return __generator(this, function (_d) {
|
|
300
268
|
switch (_d.label) {
|
|
@@ -327,14 +295,14 @@ var deserializeAws_restJson1GetReportDefinitionCommandError = function (output,
|
|
|
327
295
|
case 9: throw _d.sent();
|
|
328
296
|
case 10:
|
|
329
297
|
parsedBody = parsedOutput.body;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
$metadata: $metadata,
|
|
298
|
+
throwDefaultError({
|
|
299
|
+
output: output,
|
|
300
|
+
parsedBody: parsedBody,
|
|
301
|
+
exceptionCtor: __BaseException,
|
|
302
|
+
errorCode: errorCode,
|
|
336
303
|
});
|
|
337
|
-
|
|
304
|
+
_d.label = 11;
|
|
305
|
+
case 11: return [2];
|
|
338
306
|
}
|
|
339
307
|
});
|
|
340
308
|
}); };
|
|
@@ -346,24 +314,23 @@ export var deserializeAws_restJson1ImportApplicationUsageCommand = function (out
|
|
|
346
314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
315
|
return [2, deserializeAws_restJson1ImportApplicationUsageCommandError(output, context)];
|
|
348
316
|
}
|
|
349
|
-
contents = {
|
|
317
|
+
contents = map({
|
|
350
318
|
$metadata: deserializeMetadata(output),
|
|
351
|
-
|
|
352
|
-
};
|
|
319
|
+
});
|
|
353
320
|
_a = __expectNonNull;
|
|
354
321
|
_b = __expectObject;
|
|
355
322
|
return [4, parseBody(output.body, context)];
|
|
356
323
|
case 1:
|
|
357
324
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
358
|
-
if (data.importId
|
|
325
|
+
if (data.importId != null) {
|
|
359
326
|
contents.importId = __expectString(data.importId);
|
|
360
327
|
}
|
|
361
|
-
return [2,
|
|
328
|
+
return [2, contents];
|
|
362
329
|
}
|
|
363
330
|
});
|
|
364
331
|
}); };
|
|
365
332
|
var deserializeAws_restJson1ImportApplicationUsageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
366
|
-
var parsedOutput, _a,
|
|
333
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
367
334
|
var _c;
|
|
368
335
|
return __generator(this, function (_d) {
|
|
369
336
|
switch (_d.label) {
|
|
@@ -396,14 +363,14 @@ var deserializeAws_restJson1ImportApplicationUsageCommandError = function (outpu
|
|
|
396
363
|
case 9: throw _d.sent();
|
|
397
364
|
case 10:
|
|
398
365
|
parsedBody = parsedOutput.body;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
$metadata: $metadata,
|
|
366
|
+
throwDefaultError({
|
|
367
|
+
output: output,
|
|
368
|
+
parsedBody: parsedBody,
|
|
369
|
+
exceptionCtor: __BaseException,
|
|
370
|
+
errorCode: errorCode,
|
|
405
371
|
});
|
|
406
|
-
|
|
372
|
+
_d.label = 11;
|
|
373
|
+
case 11: return [2];
|
|
407
374
|
}
|
|
408
375
|
});
|
|
409
376
|
}); };
|
|
@@ -415,28 +382,26 @@ export var deserializeAws_restJson1ListReportDefinitionsCommand = function (outp
|
|
|
415
382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
383
|
return [2, deserializeAws_restJson1ListReportDefinitionsCommandError(output, context)];
|
|
417
384
|
}
|
|
418
|
-
contents = {
|
|
385
|
+
contents = map({
|
|
419
386
|
$metadata: deserializeMetadata(output),
|
|
420
|
-
|
|
421
|
-
reportDefinitions: undefined,
|
|
422
|
-
};
|
|
387
|
+
});
|
|
423
388
|
_a = __expectNonNull;
|
|
424
389
|
_b = __expectObject;
|
|
425
390
|
return [4, parseBody(output.body, context)];
|
|
426
391
|
case 1:
|
|
427
392
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
428
|
-
if (data.nextToken
|
|
393
|
+
if (data.nextToken != null) {
|
|
429
394
|
contents.nextToken = __expectString(data.nextToken);
|
|
430
395
|
}
|
|
431
|
-
if (data.reportDefinitions
|
|
396
|
+
if (data.reportDefinitions != null) {
|
|
432
397
|
contents.reportDefinitions = deserializeAws_restJson1ReportDefinitionList(data.reportDefinitions, context);
|
|
433
398
|
}
|
|
434
|
-
return [2,
|
|
399
|
+
return [2, contents];
|
|
435
400
|
}
|
|
436
401
|
});
|
|
437
402
|
}); };
|
|
438
403
|
var deserializeAws_restJson1ListReportDefinitionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
439
|
-
var parsedOutput, _a,
|
|
404
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
440
405
|
var _c;
|
|
441
406
|
return __generator(this, function (_d) {
|
|
442
407
|
switch (_d.label) {
|
|
@@ -469,14 +434,14 @@ var deserializeAws_restJson1ListReportDefinitionsCommandError = function (output
|
|
|
469
434
|
case 9: throw _d.sent();
|
|
470
435
|
case 10:
|
|
471
436
|
parsedBody = parsedOutput.body;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
$metadata: $metadata,
|
|
437
|
+
throwDefaultError({
|
|
438
|
+
output: output,
|
|
439
|
+
parsedBody: parsedBody,
|
|
440
|
+
exceptionCtor: __BaseException,
|
|
441
|
+
errorCode: errorCode,
|
|
478
442
|
});
|
|
479
|
-
|
|
443
|
+
_d.label = 11;
|
|
444
|
+
case 11: return [2];
|
|
480
445
|
}
|
|
481
446
|
});
|
|
482
447
|
}); };
|
|
@@ -488,24 +453,23 @@ export var deserializeAws_restJson1PutReportDefinitionCommand = function (output
|
|
|
488
453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
489
454
|
return [2, deserializeAws_restJson1PutReportDefinitionCommandError(output, context)];
|
|
490
455
|
}
|
|
491
|
-
contents = {
|
|
456
|
+
contents = map({
|
|
492
457
|
$metadata: deserializeMetadata(output),
|
|
493
|
-
|
|
494
|
-
};
|
|
458
|
+
});
|
|
495
459
|
_a = __expectNonNull;
|
|
496
460
|
_b = __expectObject;
|
|
497
461
|
return [4, parseBody(output.body, context)];
|
|
498
462
|
case 1:
|
|
499
463
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
500
|
-
if (data.reportId
|
|
464
|
+
if (data.reportId != null) {
|
|
501
465
|
contents.reportId = __expectString(data.reportId);
|
|
502
466
|
}
|
|
503
|
-
return [2,
|
|
467
|
+
return [2, contents];
|
|
504
468
|
}
|
|
505
469
|
});
|
|
506
470
|
}); };
|
|
507
471
|
var deserializeAws_restJson1PutReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
508
|
-
var parsedOutput, _a,
|
|
472
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
509
473
|
var _c;
|
|
510
474
|
return __generator(this, function (_d) {
|
|
511
475
|
switch (_d.label) {
|
|
@@ -542,14 +506,14 @@ var deserializeAws_restJson1PutReportDefinitionCommandError = function (output,
|
|
|
542
506
|
case 11: throw _d.sent();
|
|
543
507
|
case 12:
|
|
544
508
|
parsedBody = parsedOutput.body;
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
$metadata: $metadata,
|
|
509
|
+
throwDefaultError({
|
|
510
|
+
output: output,
|
|
511
|
+
parsedBody: parsedBody,
|
|
512
|
+
exceptionCtor: __BaseException,
|
|
513
|
+
errorCode: errorCode,
|
|
551
514
|
});
|
|
552
|
-
|
|
515
|
+
_d.label = 13;
|
|
516
|
+
case 13: return [2];
|
|
553
517
|
}
|
|
554
518
|
});
|
|
555
519
|
}); };
|
|
@@ -561,24 +525,23 @@ export var deserializeAws_restJson1UpdateReportDefinitionCommand = function (out
|
|
|
561
525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
526
|
return [2, deserializeAws_restJson1UpdateReportDefinitionCommandError(output, context)];
|
|
563
527
|
}
|
|
564
|
-
contents = {
|
|
528
|
+
contents = map({
|
|
565
529
|
$metadata: deserializeMetadata(output),
|
|
566
|
-
|
|
567
|
-
};
|
|
530
|
+
});
|
|
568
531
|
_a = __expectNonNull;
|
|
569
532
|
_b = __expectObject;
|
|
570
533
|
return [4, parseBody(output.body, context)];
|
|
571
534
|
case 1:
|
|
572
535
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
573
|
-
if (data.reportId
|
|
536
|
+
if (data.reportId != null) {
|
|
574
537
|
contents.reportId = __expectString(data.reportId);
|
|
575
538
|
}
|
|
576
|
-
return [2,
|
|
539
|
+
return [2, contents];
|
|
577
540
|
}
|
|
578
541
|
});
|
|
579
542
|
}); };
|
|
580
543
|
var deserializeAws_restJson1UpdateReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
581
|
-
var parsedOutput, _a,
|
|
544
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
582
545
|
var _c;
|
|
583
546
|
return __generator(this, function (_d) {
|
|
584
547
|
switch (_d.label) {
|
|
@@ -611,23 +574,24 @@ var deserializeAws_restJson1UpdateReportDefinitionCommandError = function (outpu
|
|
|
611
574
|
case 9: throw _d.sent();
|
|
612
575
|
case 10:
|
|
613
576
|
parsedBody = parsedOutput.body;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
$metadata: $metadata,
|
|
577
|
+
throwDefaultError({
|
|
578
|
+
output: output,
|
|
579
|
+
parsedBody: parsedBody,
|
|
580
|
+
exceptionCtor: __BaseException,
|
|
581
|
+
errorCode: errorCode,
|
|
620
582
|
});
|
|
621
|
-
|
|
583
|
+
_d.label = 11;
|
|
584
|
+
case 11: return [2];
|
|
622
585
|
}
|
|
623
586
|
});
|
|
624
587
|
}); };
|
|
588
|
+
var map = __map;
|
|
625
589
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
626
590
|
var contents, data, exception;
|
|
627
591
|
return __generator(this, function (_a) {
|
|
628
|
-
contents = {};
|
|
592
|
+
contents = map({});
|
|
629
593
|
data = parsedOutput.body;
|
|
630
|
-
if (data.message
|
|
594
|
+
if (data.message != null) {
|
|
631
595
|
contents.message = __expectString(data.message);
|
|
632
596
|
}
|
|
633
597
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -637,9 +601,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
637
601
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
638
602
|
var contents, data, exception;
|
|
639
603
|
return __generator(this, function (_a) {
|
|
640
|
-
contents = {};
|
|
604
|
+
contents = map({});
|
|
641
605
|
data = parsedOutput.body;
|
|
642
|
-
if (data.message
|
|
606
|
+
if (data.message != null) {
|
|
643
607
|
contents.message = __expectString(data.message);
|
|
644
608
|
}
|
|
645
609
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -649,9 +613,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
649
613
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
650
614
|
var contents, data, exception;
|
|
651
615
|
return __generator(this, function (_a) {
|
|
652
|
-
contents = {};
|
|
616
|
+
contents = map({});
|
|
653
617
|
data = parsedOutput.body;
|
|
654
|
-
if (data.message
|
|
618
|
+
if (data.message != null) {
|
|
655
619
|
contents.message = __expectString(data.message);
|
|
656
620
|
}
|
|
657
621
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -661,9 +625,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
661
625
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
662
626
|
var contents, data, exception;
|
|
663
627
|
return __generator(this, function (_a) {
|
|
664
|
-
contents = {};
|
|
628
|
+
contents = map({});
|
|
665
629
|
data = parsedOutput.body;
|
|
666
|
-
if (data.message
|
|
630
|
+
if (data.message != null) {
|
|
667
631
|
contents.message = __expectString(data.message);
|
|
668
632
|
}
|
|
669
633
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -673,9 +637,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
673
637
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
674
638
|
var contents, data, exception;
|
|
675
639
|
return __generator(this, function (_a) {
|
|
676
|
-
contents = {};
|
|
640
|
+
contents = map({});
|
|
677
641
|
data = parsedOutput.body;
|
|
678
|
-
if (data.message
|
|
642
|
+
if (data.message != null) {
|
|
679
643
|
contents.message = __expectString(data.message);
|
|
680
644
|
}
|
|
681
645
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|