@aws-sdk/client-cost-and-usage-report-service 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +41 -45
- package/dist-es/protocols/Aws_json1_1.js +31 -35
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-cost-and-usage-report-service
|
|
@@ -65,8 +65,7 @@ const deserializeAws_json1_1DeleteReportDefinitionCommandError = async (output,
|
|
|
65
65
|
body: await parseBody(output.body, context),
|
|
66
66
|
};
|
|
67
67
|
let response;
|
|
68
|
-
|
|
69
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
70
69
|
switch (errorCode) {
|
|
71
70
|
case "InternalErrorException":
|
|
72
71
|
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
@@ -76,10 +75,12 @@ const deserializeAws_json1_1DeleteReportDefinitionCommandError = async (output,
|
|
|
76
75
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
77
76
|
default:
|
|
78
77
|
const parsedBody = parsedOutput.body;
|
|
78
|
+
const $metadata = deserializeMetadata(output);
|
|
79
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
79
80
|
response = new CostAndUsageReportServiceServiceException_1.CostAndUsageReportServiceServiceException({
|
|
80
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
81
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
81
82
|
$fault: "client",
|
|
82
|
-
$metadata
|
|
83
|
+
$metadata,
|
|
83
84
|
});
|
|
84
85
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
85
86
|
}
|
|
@@ -104,18 +105,19 @@ const deserializeAws_json1_1DescribeReportDefinitionsCommandError = async (outpu
|
|
|
104
105
|
body: await parseBody(output.body, context),
|
|
105
106
|
};
|
|
106
107
|
let response;
|
|
107
|
-
|
|
108
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
109
109
|
switch (errorCode) {
|
|
110
110
|
case "InternalErrorException":
|
|
111
111
|
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
112
112
|
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
113
113
|
default:
|
|
114
114
|
const parsedBody = parsedOutput.body;
|
|
115
|
+
const $metadata = deserializeMetadata(output);
|
|
116
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
115
117
|
response = new CostAndUsageReportServiceServiceException_1.CostAndUsageReportServiceServiceException({
|
|
116
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
118
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
117
119
|
$fault: "client",
|
|
118
|
-
$metadata
|
|
120
|
+
$metadata,
|
|
119
121
|
});
|
|
120
122
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
121
123
|
}
|
|
@@ -140,8 +142,7 @@ const deserializeAws_json1_1ModifyReportDefinitionCommandError = async (output,
|
|
|
140
142
|
body: await parseBody(output.body, context),
|
|
141
143
|
};
|
|
142
144
|
let response;
|
|
143
|
-
|
|
144
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
145
146
|
switch (errorCode) {
|
|
146
147
|
case "InternalErrorException":
|
|
147
148
|
case "com.amazonaws.costandusagereportservice#InternalErrorException":
|
|
@@ -151,10 +152,12 @@ const deserializeAws_json1_1ModifyReportDefinitionCommandError = async (output,
|
|
|
151
152
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
152
153
|
default:
|
|
153
154
|
const parsedBody = parsedOutput.body;
|
|
155
|
+
const $metadata = deserializeMetadata(output);
|
|
156
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
154
157
|
response = new CostAndUsageReportServiceServiceException_1.CostAndUsageReportServiceServiceException({
|
|
155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
158
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
156
159
|
$fault: "client",
|
|
157
|
-
$metadata
|
|
160
|
+
$metadata,
|
|
158
161
|
});
|
|
159
162
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
160
163
|
}
|
|
@@ -179,8 +182,7 @@ const deserializeAws_json1_1PutReportDefinitionCommandError = async (output, con
|
|
|
179
182
|
body: await parseBody(output.body, context),
|
|
180
183
|
};
|
|
181
184
|
let response;
|
|
182
|
-
|
|
183
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
184
186
|
switch (errorCode) {
|
|
185
187
|
case "DuplicateReportNameException":
|
|
186
188
|
case "com.amazonaws.costandusagereportservice#DuplicateReportNameException":
|
|
@@ -196,10 +198,12 @@ const deserializeAws_json1_1PutReportDefinitionCommandError = async (output, con
|
|
|
196
198
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
197
199
|
default:
|
|
198
200
|
const parsedBody = parsedOutput.body;
|
|
201
|
+
const $metadata = deserializeMetadata(output);
|
|
202
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
199
203
|
response = new CostAndUsageReportServiceServiceException_1.CostAndUsageReportServiceServiceException({
|
|
200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
204
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
201
205
|
$fault: "client",
|
|
202
|
-
$metadata
|
|
206
|
+
$metadata,
|
|
203
207
|
});
|
|
204
208
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
205
209
|
}
|
|
@@ -252,55 +256,48 @@ const serializeAws_json1_1AdditionalArtifactList = (input, context) => {
|
|
|
252
256
|
};
|
|
253
257
|
const serializeAws_json1_1DeleteReportDefinitionRequest = (input, context) => {
|
|
254
258
|
return {
|
|
255
|
-
...(input.ReportName
|
|
259
|
+
...(input.ReportName != null && { ReportName: input.ReportName }),
|
|
256
260
|
};
|
|
257
261
|
};
|
|
258
262
|
const serializeAws_json1_1DescribeReportDefinitionsRequest = (input, context) => {
|
|
259
263
|
return {
|
|
260
|
-
...(input.MaxResults
|
|
261
|
-
...(input.NextToken
|
|
264
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
265
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
262
266
|
};
|
|
263
267
|
};
|
|
264
268
|
const serializeAws_json1_1ModifyReportDefinitionRequest = (input, context) => {
|
|
265
269
|
return {
|
|
266
|
-
...(input.ReportDefinition
|
|
267
|
-
input.ReportDefinition !== null && {
|
|
270
|
+
...(input.ReportDefinition != null && {
|
|
268
271
|
ReportDefinition: serializeAws_json1_1ReportDefinition(input.ReportDefinition, context),
|
|
269
272
|
}),
|
|
270
|
-
...(input.ReportName
|
|
273
|
+
...(input.ReportName != null && { ReportName: input.ReportName }),
|
|
271
274
|
};
|
|
272
275
|
};
|
|
273
276
|
const serializeAws_json1_1PutReportDefinitionRequest = (input, context) => {
|
|
274
277
|
return {
|
|
275
|
-
...(input.ReportDefinition
|
|
276
|
-
input.ReportDefinition !== null && {
|
|
278
|
+
...(input.ReportDefinition != null && {
|
|
277
279
|
ReportDefinition: serializeAws_json1_1ReportDefinition(input.ReportDefinition, context),
|
|
278
280
|
}),
|
|
279
281
|
};
|
|
280
282
|
};
|
|
281
283
|
const serializeAws_json1_1ReportDefinition = (input, context) => {
|
|
282
284
|
return {
|
|
283
|
-
...(input.AdditionalArtifacts
|
|
284
|
-
input.AdditionalArtifacts !== null && {
|
|
285
|
+
...(input.AdditionalArtifacts != null && {
|
|
285
286
|
AdditionalArtifacts: serializeAws_json1_1AdditionalArtifactList(input.AdditionalArtifacts, context),
|
|
286
287
|
}),
|
|
287
|
-
...(input.AdditionalSchemaElements
|
|
288
|
-
input.AdditionalSchemaElements !== null && {
|
|
288
|
+
...(input.AdditionalSchemaElements != null && {
|
|
289
289
|
AdditionalSchemaElements: serializeAws_json1_1SchemaElementList(input.AdditionalSchemaElements, context),
|
|
290
290
|
}),
|
|
291
|
-
...(input.BillingViewArn
|
|
292
|
-
|
|
293
|
-
...(input.
|
|
294
|
-
...(input.
|
|
295
|
-
...(input.
|
|
296
|
-
|
|
297
|
-
...(input.
|
|
298
|
-
...(input.
|
|
299
|
-
|
|
300
|
-
...(input.
|
|
301
|
-
...(input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }),
|
|
302
|
-
...(input.S3Region !== undefined && input.S3Region !== null && { S3Region: input.S3Region }),
|
|
303
|
-
...(input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit }),
|
|
291
|
+
...(input.BillingViewArn != null && { BillingViewArn: input.BillingViewArn }),
|
|
292
|
+
...(input.Compression != null && { Compression: input.Compression }),
|
|
293
|
+
...(input.Format != null && { Format: input.Format }),
|
|
294
|
+
...(input.RefreshClosedReports != null && { RefreshClosedReports: input.RefreshClosedReports }),
|
|
295
|
+
...(input.ReportName != null && { ReportName: input.ReportName }),
|
|
296
|
+
...(input.ReportVersioning != null && { ReportVersioning: input.ReportVersioning }),
|
|
297
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
298
|
+
...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
|
|
299
|
+
...(input.S3Region != null && { S3Region: input.S3Region }),
|
|
300
|
+
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
304
301
|
};
|
|
305
302
|
};
|
|
306
303
|
const serializeAws_json1_1SchemaElementList = (input, context) => {
|
|
@@ -332,7 +329,7 @@ const deserializeAws_json1_1DeleteReportDefinitionResponse = (output, context) =
|
|
|
332
329
|
const deserializeAws_json1_1DescribeReportDefinitionsResponse = (output, context) => {
|
|
333
330
|
return {
|
|
334
331
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
335
|
-
ReportDefinitions: output.ReportDefinitions
|
|
332
|
+
ReportDefinitions: output.ReportDefinitions != null
|
|
336
333
|
? deserializeAws_json1_1ReportDefinitionList(output.ReportDefinitions, context)
|
|
337
334
|
: undefined,
|
|
338
335
|
};
|
|
@@ -355,10 +352,10 @@ const deserializeAws_json1_1PutReportDefinitionResponse = (output, context) => {
|
|
|
355
352
|
};
|
|
356
353
|
const deserializeAws_json1_1ReportDefinition = (output, context) => {
|
|
357
354
|
return {
|
|
358
|
-
AdditionalArtifacts: output.AdditionalArtifacts
|
|
355
|
+
AdditionalArtifacts: output.AdditionalArtifacts != null
|
|
359
356
|
? deserializeAws_json1_1AdditionalArtifactList(output.AdditionalArtifacts, context)
|
|
360
357
|
: undefined,
|
|
361
|
-
AdditionalSchemaElements: output.AdditionalSchemaElements
|
|
358
|
+
AdditionalSchemaElements: output.AdditionalSchemaElements != null
|
|
362
359
|
? deserializeAws_json1_1SchemaElementList(output.AdditionalSchemaElements, context)
|
|
363
360
|
: undefined,
|
|
364
361
|
BillingViewArn: (0, smithy_client_1.expectString)(output.BillingViewArn),
|
|
@@ -467,5 +464,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
467
464
|
if (data["__type"] !== undefined) {
|
|
468
465
|
return sanitizeErrorCode(data["__type"]);
|
|
469
466
|
}
|
|
470
|
-
return "";
|
|
471
467
|
};
|
|
@@ -66,7 +66,7 @@ export var deserializeAws_json1_1DeleteReportDefinitionCommand = function (outpu
|
|
|
66
66
|
});
|
|
67
67
|
}); };
|
|
68
68
|
var deserializeAws_json1_1DeleteReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
69
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
70
70
|
var _c;
|
|
71
71
|
return __generator(this, function (_d) {
|
|
72
72
|
switch (_d.label) {
|
|
@@ -76,7 +76,6 @@ var deserializeAws_json1_1DeleteReportDefinitionCommandError = function (output,
|
|
|
76
76
|
return [4, parseBody(output.body, context)];
|
|
77
77
|
case 1:
|
|
78
78
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
79
|
-
errorCode = "UnknownError";
|
|
80
79
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
81
80
|
_b = errorCode;
|
|
82
81
|
switch (_b) {
|
|
@@ -92,10 +91,12 @@ var deserializeAws_json1_1DeleteReportDefinitionCommandError = function (output,
|
|
|
92
91
|
case 5: throw _d.sent();
|
|
93
92
|
case 6:
|
|
94
93
|
parsedBody = parsedOutput.body;
|
|
94
|
+
$metadata = deserializeMetadata(output);
|
|
95
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
95
96
|
response = new __BaseException({
|
|
96
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
97
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
97
98
|
$fault: "client",
|
|
98
|
-
$metadata:
|
|
99
|
+
$metadata: $metadata,
|
|
99
100
|
});
|
|
100
101
|
throw __decorateServiceException(response, parsedBody);
|
|
101
102
|
}
|
|
@@ -120,7 +121,7 @@ export var deserializeAws_json1_1DescribeReportDefinitionsCommand = function (ou
|
|
|
120
121
|
});
|
|
121
122
|
}); };
|
|
122
123
|
var deserializeAws_json1_1DescribeReportDefinitionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
123
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
124
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
124
125
|
var _c;
|
|
125
126
|
return __generator(this, function (_d) {
|
|
126
127
|
switch (_d.label) {
|
|
@@ -130,7 +131,6 @@ var deserializeAws_json1_1DescribeReportDefinitionsCommandError = function (outp
|
|
|
130
131
|
return [4, parseBody(output.body, context)];
|
|
131
132
|
case 1:
|
|
132
133
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
133
|
-
errorCode = "UnknownError";
|
|
134
134
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
135
135
|
_b = errorCode;
|
|
136
136
|
switch (_b) {
|
|
@@ -142,10 +142,12 @@ var deserializeAws_json1_1DescribeReportDefinitionsCommandError = function (outp
|
|
|
142
142
|
case 3: throw _d.sent();
|
|
143
143
|
case 4:
|
|
144
144
|
parsedBody = parsedOutput.body;
|
|
145
|
+
$metadata = deserializeMetadata(output);
|
|
146
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
145
147
|
response = new __BaseException({
|
|
146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
147
149
|
$fault: "client",
|
|
148
|
-
$metadata:
|
|
150
|
+
$metadata: $metadata,
|
|
149
151
|
});
|
|
150
152
|
throw __decorateServiceException(response, parsedBody);
|
|
151
153
|
}
|
|
@@ -170,7 +172,7 @@ export var deserializeAws_json1_1ModifyReportDefinitionCommand = function (outpu
|
|
|
170
172
|
});
|
|
171
173
|
}); };
|
|
172
174
|
var deserializeAws_json1_1ModifyReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
173
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
175
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
174
176
|
var _c;
|
|
175
177
|
return __generator(this, function (_d) {
|
|
176
178
|
switch (_d.label) {
|
|
@@ -180,7 +182,6 @@ var deserializeAws_json1_1ModifyReportDefinitionCommandError = function (output,
|
|
|
180
182
|
return [4, parseBody(output.body, context)];
|
|
181
183
|
case 1:
|
|
182
184
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
183
|
-
errorCode = "UnknownError";
|
|
184
185
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
185
186
|
_b = errorCode;
|
|
186
187
|
switch (_b) {
|
|
@@ -196,10 +197,12 @@ var deserializeAws_json1_1ModifyReportDefinitionCommandError = function (output,
|
|
|
196
197
|
case 5: throw _d.sent();
|
|
197
198
|
case 6:
|
|
198
199
|
parsedBody = parsedOutput.body;
|
|
200
|
+
$metadata = deserializeMetadata(output);
|
|
201
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
199
202
|
response = new __BaseException({
|
|
200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
203
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
201
204
|
$fault: "client",
|
|
202
|
-
$metadata:
|
|
205
|
+
$metadata: $metadata,
|
|
203
206
|
});
|
|
204
207
|
throw __decorateServiceException(response, parsedBody);
|
|
205
208
|
}
|
|
@@ -224,7 +227,7 @@ export var deserializeAws_json1_1PutReportDefinitionCommand = function (output,
|
|
|
224
227
|
});
|
|
225
228
|
}); };
|
|
226
229
|
var deserializeAws_json1_1PutReportDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
230
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
228
231
|
var _c;
|
|
229
232
|
return __generator(this, function (_d) {
|
|
230
233
|
switch (_d.label) {
|
|
@@ -234,7 +237,6 @@ var deserializeAws_json1_1PutReportDefinitionCommandError = function (output, co
|
|
|
234
237
|
return [4, parseBody(output.body, context)];
|
|
235
238
|
case 1:
|
|
236
239
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
237
|
-
errorCode = "UnknownError";
|
|
238
240
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
239
241
|
_b = errorCode;
|
|
240
242
|
switch (_b) {
|
|
@@ -258,10 +260,12 @@ var deserializeAws_json1_1PutReportDefinitionCommandError = function (output, co
|
|
|
258
260
|
case 9: throw _d.sent();
|
|
259
261
|
case 10:
|
|
260
262
|
parsedBody = parsedOutput.body;
|
|
263
|
+
$metadata = deserializeMetadata(output);
|
|
264
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
261
265
|
response = new __BaseException({
|
|
262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
263
267
|
$fault: "client",
|
|
264
|
-
$metadata:
|
|
268
|
+
$metadata: $metadata,
|
|
265
269
|
});
|
|
266
270
|
throw __decorateServiceException(response, parsedBody);
|
|
267
271
|
}
|
|
@@ -314,34 +318,27 @@ var serializeAws_json1_1AdditionalArtifactList = function (input, context) {
|
|
|
314
318
|
});
|
|
315
319
|
};
|
|
316
320
|
var serializeAws_json1_1DeleteReportDefinitionRequest = function (input, context) {
|
|
317
|
-
return __assign({}, (input.ReportName
|
|
321
|
+
return __assign({}, (input.ReportName != null && { ReportName: input.ReportName }));
|
|
318
322
|
};
|
|
319
323
|
var serializeAws_json1_1DescribeReportDefinitionsRequest = function (input, context) {
|
|
320
|
-
return __assign(__assign({}, (input.MaxResults
|
|
324
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
321
325
|
};
|
|
322
326
|
var serializeAws_json1_1ModifyReportDefinitionRequest = function (input, context) {
|
|
323
|
-
return __assign(__assign({}, (input.ReportDefinition
|
|
324
|
-
input.ReportDefinition !== null && {
|
|
327
|
+
return __assign(__assign({}, (input.ReportDefinition != null && {
|
|
325
328
|
ReportDefinition: serializeAws_json1_1ReportDefinition(input.ReportDefinition, context),
|
|
326
|
-
})), (input.ReportName
|
|
329
|
+
})), (input.ReportName != null && { ReportName: input.ReportName }));
|
|
327
330
|
};
|
|
328
331
|
var serializeAws_json1_1PutReportDefinitionRequest = function (input, context) {
|
|
329
|
-
return __assign({}, (input.ReportDefinition
|
|
330
|
-
input.ReportDefinition !== null && {
|
|
332
|
+
return __assign({}, (input.ReportDefinition != null && {
|
|
331
333
|
ReportDefinition: serializeAws_json1_1ReportDefinition(input.ReportDefinition, context),
|
|
332
334
|
}));
|
|
333
335
|
};
|
|
334
336
|
var serializeAws_json1_1ReportDefinition = function (input, context) {
|
|
335
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalArtifacts
|
|
336
|
-
input.AdditionalArtifacts !== null && {
|
|
337
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalArtifacts != null && {
|
|
337
338
|
AdditionalArtifacts: serializeAws_json1_1AdditionalArtifactList(input.AdditionalArtifacts, context),
|
|
338
|
-
})), (input.AdditionalSchemaElements
|
|
339
|
-
input.AdditionalSchemaElements !== null && {
|
|
339
|
+
})), (input.AdditionalSchemaElements != null && {
|
|
340
340
|
AdditionalSchemaElements: serializeAws_json1_1SchemaElementList(input.AdditionalSchemaElements, context),
|
|
341
|
-
})), (input.BillingViewArn
|
|
342
|
-
input.BillingViewArn !== null && { BillingViewArn: input.BillingViewArn })), (input.Compression !== undefined && input.Compression !== null && { Compression: input.Compression })), (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.RefreshClosedReports !== undefined &&
|
|
343
|
-
input.RefreshClosedReports !== null && { RefreshClosedReports: input.RefreshClosedReports })), (input.ReportName !== undefined && input.ReportName !== null && { ReportName: input.ReportName })), (input.ReportVersioning !== undefined &&
|
|
344
|
-
input.ReportVersioning !== null && { ReportVersioning: input.ReportVersioning })), (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix })), (input.S3Region !== undefined && input.S3Region !== null && { S3Region: input.S3Region })), (input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit }));
|
|
341
|
+
})), (input.BillingViewArn != null && { BillingViewArn: input.BillingViewArn })), (input.Compression != null && { Compression: input.Compression })), (input.Format != null && { Format: input.Format })), (input.RefreshClosedReports != null && { RefreshClosedReports: input.RefreshClosedReports })), (input.ReportName != null && { ReportName: input.ReportName })), (input.ReportVersioning != null && { ReportVersioning: input.ReportVersioning })), (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Prefix != null && { S3Prefix: input.S3Prefix })), (input.S3Region != null && { S3Region: input.S3Region })), (input.TimeUnit != null && { TimeUnit: input.TimeUnit }));
|
|
345
342
|
};
|
|
346
343
|
var serializeAws_json1_1SchemaElementList = function (input, context) {
|
|
347
344
|
return input
|
|
@@ -372,7 +369,7 @@ var deserializeAws_json1_1DeleteReportDefinitionResponse = function (output, con
|
|
|
372
369
|
var deserializeAws_json1_1DescribeReportDefinitionsResponse = function (output, context) {
|
|
373
370
|
return {
|
|
374
371
|
NextToken: __expectString(output.NextToken),
|
|
375
|
-
ReportDefinitions: output.ReportDefinitions
|
|
372
|
+
ReportDefinitions: output.ReportDefinitions != null
|
|
376
373
|
? deserializeAws_json1_1ReportDefinitionList(output.ReportDefinitions, context)
|
|
377
374
|
: undefined,
|
|
378
375
|
};
|
|
@@ -395,10 +392,10 @@ var deserializeAws_json1_1PutReportDefinitionResponse = function (output, contex
|
|
|
395
392
|
};
|
|
396
393
|
var deserializeAws_json1_1ReportDefinition = function (output, context) {
|
|
397
394
|
return {
|
|
398
|
-
AdditionalArtifacts: output.AdditionalArtifacts
|
|
395
|
+
AdditionalArtifacts: output.AdditionalArtifacts != null
|
|
399
396
|
? deserializeAws_json1_1AdditionalArtifactList(output.AdditionalArtifacts, context)
|
|
400
397
|
: undefined,
|
|
401
|
-
AdditionalSchemaElements: output.AdditionalSchemaElements
|
|
398
|
+
AdditionalSchemaElements: output.AdditionalSchemaElements != null
|
|
402
399
|
? deserializeAws_json1_1SchemaElementList(output.AdditionalSchemaElements, context)
|
|
403
400
|
: undefined,
|
|
404
401
|
BillingViewArn: __expectString(output.BillingViewArn),
|
|
@@ -519,5 +516,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
519
516
|
if (data["__type"] !== undefined) {
|
|
520
517
|
return sanitizeErrorCode(data["__type"]);
|
|
521
518
|
}
|
|
522
|
-
return "";
|
|
523
519
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-and-usage-report-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost And Usage Report Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.128.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.128.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.128.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.128.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.128.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|