@aws-sdk/client-applicationcostprofiler 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/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/protocols/Aws_restJson1.js +79 -83
- 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/protocols/Aws_restJson1.js +66 -70
- package/dist-types/protocols/Aws_restJson1.d.ts +48 -12
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -12
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_ListReportDefinitionsCommand, se_ListReportDefinitionsCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class ListReportDefinitionsCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class ListReportDefinitionsCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_ListReportDefinitionsCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_ListReportDefinitionsCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_PutReportDefinitionCommand, se_PutReportDefinitionCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class PutReportDefinitionCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class PutReportDefinitionCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_PutReportDefinitionCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_PutReportDefinitionCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_UpdateReportDefinitionCommand, se_UpdateReportDefinitionCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class UpdateReportDefinitionCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class UpdateReportDefinitionCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_UpdateReportDefinitionCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_UpdateReportDefinitionCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
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";
|
|
3
3
|
import { ApplicationCostProfilerServiceException as __BaseException } from "../models/ApplicationCostProfilerServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_DeleteReportDefinitionCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}";
|
|
@@ -18,7 +18,7 @@ export const serializeAws_restJson1DeleteReportDefinitionCommand = async (input,
|
|
|
18
18
|
body,
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const se_GetReportDefinitionCommand = async (input, context) => {
|
|
22
22
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
23
23
|
const headers = {};
|
|
24
24
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}";
|
|
@@ -34,7 +34,7 @@ export const serializeAws_restJson1GetReportDefinitionCommand = async (input, co
|
|
|
34
34
|
body,
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
export const
|
|
37
|
+
export const se_ImportApplicationUsageCommand = async (input, context) => {
|
|
38
38
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/json",
|
|
@@ -42,9 +42,7 @@ export const serializeAws_restJson1ImportApplicationUsageCommand = async (input,
|
|
|
42
42
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importApplicationUsage";
|
|
43
43
|
let body;
|
|
44
44
|
body = JSON.stringify({
|
|
45
|
-
...(input.sourceS3Location != null && {
|
|
46
|
-
sourceS3Location: serializeAws_restJson1SourceS3Location(input.sourceS3Location, context),
|
|
47
|
-
}),
|
|
45
|
+
...(input.sourceS3Location != null && { sourceS3Location: se_SourceS3Location(input.sourceS3Location, context) }),
|
|
48
46
|
});
|
|
49
47
|
return new __HttpRequest({
|
|
50
48
|
protocol,
|
|
@@ -56,7 +54,7 @@ export const serializeAws_restJson1ImportApplicationUsageCommand = async (input,
|
|
|
56
54
|
body,
|
|
57
55
|
});
|
|
58
56
|
};
|
|
59
|
-
export const
|
|
57
|
+
export const se_ListReportDefinitionsCommand = async (input, context) => {
|
|
60
58
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
59
|
const headers = {};
|
|
62
60
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition";
|
|
@@ -76,7 +74,7 @@ export const serializeAws_restJson1ListReportDefinitionsCommand = async (input,
|
|
|
76
74
|
body,
|
|
77
75
|
});
|
|
78
76
|
};
|
|
79
|
-
export const
|
|
77
|
+
export const se_PutReportDefinitionCommand = async (input, context) => {
|
|
80
78
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
81
79
|
const headers = {
|
|
82
80
|
"content-type": "application/json",
|
|
@@ -85,7 +83,7 @@ export const serializeAws_restJson1PutReportDefinitionCommand = async (input, co
|
|
|
85
83
|
let body;
|
|
86
84
|
body = JSON.stringify({
|
|
87
85
|
...(input.destinationS3Location != null && {
|
|
88
|
-
destinationS3Location:
|
|
86
|
+
destinationS3Location: se_S3Location(input.destinationS3Location, context),
|
|
89
87
|
}),
|
|
90
88
|
...(input.format != null && { format: input.format }),
|
|
91
89
|
...(input.reportDescription != null && { reportDescription: input.reportDescription }),
|
|
@@ -102,7 +100,7 @@ export const serializeAws_restJson1PutReportDefinitionCommand = async (input, co
|
|
|
102
100
|
body,
|
|
103
101
|
});
|
|
104
102
|
};
|
|
105
|
-
export const
|
|
103
|
+
export const se_UpdateReportDefinitionCommand = async (input, context) => {
|
|
106
104
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
105
|
const headers = {
|
|
108
106
|
"content-type": "application/json",
|
|
@@ -112,7 +110,7 @@ export const serializeAws_restJson1UpdateReportDefinitionCommand = async (input,
|
|
|
112
110
|
let body;
|
|
113
111
|
body = JSON.stringify({
|
|
114
112
|
...(input.destinationS3Location != null && {
|
|
115
|
-
destinationS3Location:
|
|
113
|
+
destinationS3Location: se_S3Location(input.destinationS3Location, context),
|
|
116
114
|
}),
|
|
117
115
|
...(input.format != null && { format: input.format }),
|
|
118
116
|
...(input.reportDescription != null && { reportDescription: input.reportDescription }),
|
|
@@ -128,9 +126,9 @@ export const serializeAws_restJson1UpdateReportDefinitionCommand = async (input,
|
|
|
128
126
|
body,
|
|
129
127
|
});
|
|
130
128
|
};
|
|
131
|
-
export const
|
|
129
|
+
export const de_DeleteReportDefinitionCommand = async (output, context) => {
|
|
132
130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
133
|
-
return
|
|
131
|
+
return de_DeleteReportDefinitionCommandError(output, context);
|
|
134
132
|
}
|
|
135
133
|
const contents = map({
|
|
136
134
|
$metadata: deserializeMetadata(output),
|
|
@@ -141,7 +139,7 @@ export const deserializeAws_restJson1DeleteReportDefinitionCommand = async (outp
|
|
|
141
139
|
}
|
|
142
140
|
return contents;
|
|
143
141
|
};
|
|
144
|
-
const
|
|
142
|
+
const de_DeleteReportDefinitionCommandError = async (output, context) => {
|
|
145
143
|
const parsedOutput = {
|
|
146
144
|
...output,
|
|
147
145
|
body: await parseErrorBody(output.body, context),
|
|
@@ -150,16 +148,16 @@ const deserializeAws_restJson1DeleteReportDefinitionCommandError = async (output
|
|
|
150
148
|
switch (errorCode) {
|
|
151
149
|
case "AccessDeniedException":
|
|
152
150
|
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
153
|
-
throw await
|
|
151
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
154
152
|
case "InternalServerException":
|
|
155
153
|
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
156
|
-
throw await
|
|
154
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
157
155
|
case "ThrottlingException":
|
|
158
156
|
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
159
|
-
throw await
|
|
157
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
160
158
|
case "ValidationException":
|
|
161
159
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
162
|
-
throw await
|
|
160
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
163
161
|
default:
|
|
164
162
|
const parsedBody = parsedOutput.body;
|
|
165
163
|
throwDefaultError({
|
|
@@ -170,9 +168,9 @@ const deserializeAws_restJson1DeleteReportDefinitionCommandError = async (output
|
|
|
170
168
|
});
|
|
171
169
|
}
|
|
172
170
|
};
|
|
173
|
-
export const
|
|
171
|
+
export const de_GetReportDefinitionCommand = async (output, context) => {
|
|
174
172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
175
|
-
return
|
|
173
|
+
return de_GetReportDefinitionCommandError(output, context);
|
|
176
174
|
}
|
|
177
175
|
const contents = map({
|
|
178
176
|
$metadata: deserializeMetadata(output),
|
|
@@ -182,7 +180,7 @@ export const deserializeAws_restJson1GetReportDefinitionCommand = async (output,
|
|
|
182
180
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
183
181
|
}
|
|
184
182
|
if (data.destinationS3Location != null) {
|
|
185
|
-
contents.destinationS3Location =
|
|
183
|
+
contents.destinationS3Location = de_S3Location(data.destinationS3Location, context);
|
|
186
184
|
}
|
|
187
185
|
if (data.format != null) {
|
|
188
186
|
contents.format = __expectString(data.format);
|
|
@@ -201,7 +199,7 @@ export const deserializeAws_restJson1GetReportDefinitionCommand = async (output,
|
|
|
201
199
|
}
|
|
202
200
|
return contents;
|
|
203
201
|
};
|
|
204
|
-
const
|
|
202
|
+
const de_GetReportDefinitionCommandError = async (output, context) => {
|
|
205
203
|
const parsedOutput = {
|
|
206
204
|
...output,
|
|
207
205
|
body: await parseErrorBody(output.body, context),
|
|
@@ -210,16 +208,16 @@ const deserializeAws_restJson1GetReportDefinitionCommandError = async (output, c
|
|
|
210
208
|
switch (errorCode) {
|
|
211
209
|
case "AccessDeniedException":
|
|
212
210
|
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
213
|
-
throw await
|
|
211
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
214
212
|
case "InternalServerException":
|
|
215
213
|
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
216
|
-
throw await
|
|
214
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
217
215
|
case "ThrottlingException":
|
|
218
216
|
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
219
|
-
throw await
|
|
217
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
220
218
|
case "ValidationException":
|
|
221
219
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
222
|
-
throw await
|
|
220
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
223
221
|
default:
|
|
224
222
|
const parsedBody = parsedOutput.body;
|
|
225
223
|
throwDefaultError({
|
|
@@ -230,9 +228,9 @@ const deserializeAws_restJson1GetReportDefinitionCommandError = async (output, c
|
|
|
230
228
|
});
|
|
231
229
|
}
|
|
232
230
|
};
|
|
233
|
-
export const
|
|
231
|
+
export const de_ImportApplicationUsageCommand = async (output, context) => {
|
|
234
232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
235
|
-
return
|
|
233
|
+
return de_ImportApplicationUsageCommandError(output, context);
|
|
236
234
|
}
|
|
237
235
|
const contents = map({
|
|
238
236
|
$metadata: deserializeMetadata(output),
|
|
@@ -243,7 +241,7 @@ export const deserializeAws_restJson1ImportApplicationUsageCommand = async (outp
|
|
|
243
241
|
}
|
|
244
242
|
return contents;
|
|
245
243
|
};
|
|
246
|
-
const
|
|
244
|
+
const de_ImportApplicationUsageCommandError = async (output, context) => {
|
|
247
245
|
const parsedOutput = {
|
|
248
246
|
...output,
|
|
249
247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -252,16 +250,16 @@ const deserializeAws_restJson1ImportApplicationUsageCommandError = async (output
|
|
|
252
250
|
switch (errorCode) {
|
|
253
251
|
case "AccessDeniedException":
|
|
254
252
|
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
255
|
-
throw await
|
|
253
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
256
254
|
case "InternalServerException":
|
|
257
255
|
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
258
|
-
throw await
|
|
256
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
259
257
|
case "ThrottlingException":
|
|
260
258
|
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
261
|
-
throw await
|
|
259
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
262
260
|
case "ValidationException":
|
|
263
261
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
264
|
-
throw await
|
|
262
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
265
263
|
default:
|
|
266
264
|
const parsedBody = parsedOutput.body;
|
|
267
265
|
throwDefaultError({
|
|
@@ -272,9 +270,9 @@ const deserializeAws_restJson1ImportApplicationUsageCommandError = async (output
|
|
|
272
270
|
});
|
|
273
271
|
}
|
|
274
272
|
};
|
|
275
|
-
export const
|
|
273
|
+
export const de_ListReportDefinitionsCommand = async (output, context) => {
|
|
276
274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return
|
|
275
|
+
return de_ListReportDefinitionsCommandError(output, context);
|
|
278
276
|
}
|
|
279
277
|
const contents = map({
|
|
280
278
|
$metadata: deserializeMetadata(output),
|
|
@@ -284,11 +282,11 @@ export const deserializeAws_restJson1ListReportDefinitionsCommand = async (outpu
|
|
|
284
282
|
contents.nextToken = __expectString(data.nextToken);
|
|
285
283
|
}
|
|
286
284
|
if (data.reportDefinitions != null) {
|
|
287
|
-
contents.reportDefinitions =
|
|
285
|
+
contents.reportDefinitions = de_ReportDefinitionList(data.reportDefinitions, context);
|
|
288
286
|
}
|
|
289
287
|
return contents;
|
|
290
288
|
};
|
|
291
|
-
const
|
|
289
|
+
const de_ListReportDefinitionsCommandError = async (output, context) => {
|
|
292
290
|
const parsedOutput = {
|
|
293
291
|
...output,
|
|
294
292
|
body: await parseErrorBody(output.body, context),
|
|
@@ -297,16 +295,16 @@ const deserializeAws_restJson1ListReportDefinitionsCommandError = async (output,
|
|
|
297
295
|
switch (errorCode) {
|
|
298
296
|
case "AccessDeniedException":
|
|
299
297
|
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
300
|
-
throw await
|
|
298
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
301
299
|
case "InternalServerException":
|
|
302
300
|
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
303
|
-
throw await
|
|
301
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
304
302
|
case "ThrottlingException":
|
|
305
303
|
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
306
|
-
throw await
|
|
304
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
307
305
|
case "ValidationException":
|
|
308
306
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
309
|
-
throw await
|
|
307
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
310
308
|
default:
|
|
311
309
|
const parsedBody = parsedOutput.body;
|
|
312
310
|
throwDefaultError({
|
|
@@ -317,9 +315,9 @@ const deserializeAws_restJson1ListReportDefinitionsCommandError = async (output,
|
|
|
317
315
|
});
|
|
318
316
|
}
|
|
319
317
|
};
|
|
320
|
-
export const
|
|
318
|
+
export const de_PutReportDefinitionCommand = async (output, context) => {
|
|
321
319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
322
|
-
return
|
|
320
|
+
return de_PutReportDefinitionCommandError(output, context);
|
|
323
321
|
}
|
|
324
322
|
const contents = map({
|
|
325
323
|
$metadata: deserializeMetadata(output),
|
|
@@ -330,7 +328,7 @@ export const deserializeAws_restJson1PutReportDefinitionCommand = async (output,
|
|
|
330
328
|
}
|
|
331
329
|
return contents;
|
|
332
330
|
};
|
|
333
|
-
const
|
|
331
|
+
const de_PutReportDefinitionCommandError = async (output, context) => {
|
|
334
332
|
const parsedOutput = {
|
|
335
333
|
...output,
|
|
336
334
|
body: await parseErrorBody(output.body, context),
|
|
@@ -339,19 +337,19 @@ const deserializeAws_restJson1PutReportDefinitionCommandError = async (output, c
|
|
|
339
337
|
switch (errorCode) {
|
|
340
338
|
case "AccessDeniedException":
|
|
341
339
|
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
342
|
-
throw await
|
|
340
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
343
341
|
case "InternalServerException":
|
|
344
342
|
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
345
|
-
throw await
|
|
343
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
346
344
|
case "ServiceQuotaExceededException":
|
|
347
345
|
case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
|
|
348
|
-
throw await
|
|
346
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
349
347
|
case "ThrottlingException":
|
|
350
348
|
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
351
|
-
throw await
|
|
349
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
352
350
|
case "ValidationException":
|
|
353
351
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
354
|
-
throw await
|
|
352
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
355
353
|
default:
|
|
356
354
|
const parsedBody = parsedOutput.body;
|
|
357
355
|
throwDefaultError({
|
|
@@ -362,9 +360,9 @@ const deserializeAws_restJson1PutReportDefinitionCommandError = async (output, c
|
|
|
362
360
|
});
|
|
363
361
|
}
|
|
364
362
|
};
|
|
365
|
-
export const
|
|
363
|
+
export const de_UpdateReportDefinitionCommand = async (output, context) => {
|
|
366
364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
|
-
return
|
|
365
|
+
return de_UpdateReportDefinitionCommandError(output, context);
|
|
368
366
|
}
|
|
369
367
|
const contents = map({
|
|
370
368
|
$metadata: deserializeMetadata(output),
|
|
@@ -375,7 +373,7 @@ export const deserializeAws_restJson1UpdateReportDefinitionCommand = async (outp
|
|
|
375
373
|
}
|
|
376
374
|
return contents;
|
|
377
375
|
};
|
|
378
|
-
const
|
|
376
|
+
const de_UpdateReportDefinitionCommandError = async (output, context) => {
|
|
379
377
|
const parsedOutput = {
|
|
380
378
|
...output,
|
|
381
379
|
body: await parseErrorBody(output.body, context),
|
|
@@ -384,16 +382,16 @@ const deserializeAws_restJson1UpdateReportDefinitionCommandError = async (output
|
|
|
384
382
|
switch (errorCode) {
|
|
385
383
|
case "AccessDeniedException":
|
|
386
384
|
case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
|
|
387
|
-
throw await
|
|
385
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
388
386
|
case "InternalServerException":
|
|
389
387
|
case "com.amazonaws.applicationcostprofiler#InternalServerException":
|
|
390
|
-
throw await
|
|
388
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
391
389
|
case "ThrottlingException":
|
|
392
390
|
case "com.amazonaws.applicationcostprofiler#ThrottlingException":
|
|
393
|
-
throw await
|
|
391
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
394
392
|
case "ValidationException":
|
|
395
393
|
case "com.amazonaws.applicationcostprofiler#ValidationException":
|
|
396
|
-
throw await
|
|
394
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
397
395
|
default:
|
|
398
396
|
const parsedBody = parsedOutput.body;
|
|
399
397
|
throwDefaultError({
|
|
@@ -405,7 +403,7 @@ const deserializeAws_restJson1UpdateReportDefinitionCommandError = async (output
|
|
|
405
403
|
}
|
|
406
404
|
};
|
|
407
405
|
const map = __map;
|
|
408
|
-
const
|
|
406
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
409
407
|
const contents = map({});
|
|
410
408
|
const data = parsedOutput.body;
|
|
411
409
|
if (data.message != null) {
|
|
@@ -417,7 +415,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
417
415
|
});
|
|
418
416
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
419
417
|
};
|
|
420
|
-
const
|
|
418
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
421
419
|
const contents = map({});
|
|
422
420
|
const data = parsedOutput.body;
|
|
423
421
|
if (data.message != null) {
|
|
@@ -429,7 +427,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
429
427
|
});
|
|
430
428
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
431
429
|
};
|
|
432
|
-
const
|
|
430
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
433
431
|
const contents = map({});
|
|
434
432
|
const data = parsedOutput.body;
|
|
435
433
|
if (data.message != null) {
|
|
@@ -441,7 +439,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
441
439
|
});
|
|
442
440
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
443
441
|
};
|
|
444
|
-
const
|
|
442
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
445
443
|
const contents = map({});
|
|
446
444
|
const data = parsedOutput.body;
|
|
447
445
|
if (data.message != null) {
|
|
@@ -453,7 +451,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
453
451
|
});
|
|
454
452
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
455
453
|
};
|
|
456
|
-
const
|
|
454
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
457
455
|
const contents = map({});
|
|
458
456
|
const data = parsedOutput.body;
|
|
459
457
|
if (data.message != null) {
|
|
@@ -465,25 +463,23 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
465
463
|
});
|
|
466
464
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
467
465
|
};
|
|
468
|
-
const
|
|
466
|
+
const se_S3Location = (input, context) => {
|
|
469
467
|
return {
|
|
470
468
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
471
469
|
...(input.prefix != null && { prefix: input.prefix }),
|
|
472
470
|
};
|
|
473
471
|
};
|
|
474
|
-
const
|
|
472
|
+
const se_SourceS3Location = (input, context) => {
|
|
475
473
|
return {
|
|
476
474
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
477
475
|
...(input.key != null && { key: input.key }),
|
|
478
476
|
...(input.region != null && { region: input.region }),
|
|
479
477
|
};
|
|
480
478
|
};
|
|
481
|
-
const
|
|
479
|
+
const de_ReportDefinition = (output, context) => {
|
|
482
480
|
return {
|
|
483
481
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
484
|
-
destinationS3Location: output.destinationS3Location != null
|
|
485
|
-
? deserializeAws_restJson1S3Location(output.destinationS3Location, context)
|
|
486
|
-
: undefined,
|
|
482
|
+
destinationS3Location: output.destinationS3Location != null ? de_S3Location(output.destinationS3Location, context) : undefined,
|
|
487
483
|
format: __expectString(output.format),
|
|
488
484
|
lastUpdatedAt: output.lastUpdatedAt != null
|
|
489
485
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
@@ -493,18 +489,18 @@ const deserializeAws_restJson1ReportDefinition = (output, context) => {
|
|
|
493
489
|
reportId: __expectString(output.reportId),
|
|
494
490
|
};
|
|
495
491
|
};
|
|
496
|
-
const
|
|
492
|
+
const de_ReportDefinitionList = (output, context) => {
|
|
497
493
|
const retVal = (output || [])
|
|
498
494
|
.filter((e) => e != null)
|
|
499
495
|
.map((entry) => {
|
|
500
496
|
if (entry === null) {
|
|
501
497
|
return null;
|
|
502
498
|
}
|
|
503
|
-
return
|
|
499
|
+
return de_ReportDefinition(entry, context);
|
|
504
500
|
});
|
|
505
501
|
return retVal;
|
|
506
502
|
};
|
|
507
|
-
const
|
|
503
|
+
const de_S3Location = (output, context) => {
|
|
508
504
|
return {
|
|
509
505
|
bucket: __expectString(output.bucket),
|
|
510
506
|
prefix: __expectString(output.prefix),
|
|
@@ -6,15 +6,51 @@ import { ImportApplicationUsageCommandInput, ImportApplicationUsageCommandOutput
|
|
|
6
6
|
import { ListReportDefinitionsCommandInput, ListReportDefinitionsCommandOutput } from "../commands/ListReportDefinitionsCommand";
|
|
7
7
|
import { PutReportDefinitionCommandInput, PutReportDefinitionCommandOutput } from "../commands/PutReportDefinitionCommand";
|
|
8
8
|
import { UpdateReportDefinitionCommandInput, UpdateReportDefinitionCommandOutput } from "../commands/UpdateReportDefinitionCommand";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const
|
|
9
|
+
/**
|
|
10
|
+
* serializeAws_restJson1DeleteReportDefinitionCommand
|
|
11
|
+
*/
|
|
12
|
+
export declare const se_DeleteReportDefinitionCommand: (input: DeleteReportDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
+
/**
|
|
14
|
+
* serializeAws_restJson1GetReportDefinitionCommand
|
|
15
|
+
*/
|
|
16
|
+
export declare const se_GetReportDefinitionCommand: (input: GetReportDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
|
+
/**
|
|
18
|
+
* serializeAws_restJson1ImportApplicationUsageCommand
|
|
19
|
+
*/
|
|
20
|
+
export declare const se_ImportApplicationUsageCommand: (input: ImportApplicationUsageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* serializeAws_restJson1ListReportDefinitionsCommand
|
|
23
|
+
*/
|
|
24
|
+
export declare const se_ListReportDefinitionsCommand: (input: ListReportDefinitionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
|
+
/**
|
|
26
|
+
* serializeAws_restJson1PutReportDefinitionCommand
|
|
27
|
+
*/
|
|
28
|
+
export declare const se_PutReportDefinitionCommand: (input: PutReportDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
29
|
+
/**
|
|
30
|
+
* serializeAws_restJson1UpdateReportDefinitionCommand
|
|
31
|
+
*/
|
|
32
|
+
export declare const se_UpdateReportDefinitionCommand: (input: UpdateReportDefinitionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* deserializeAws_restJson1DeleteReportDefinitionCommand
|
|
35
|
+
*/
|
|
36
|
+
export declare const de_DeleteReportDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteReportDefinitionCommandOutput>;
|
|
37
|
+
/**
|
|
38
|
+
* deserializeAws_restJson1GetReportDefinitionCommand
|
|
39
|
+
*/
|
|
40
|
+
export declare const de_GetReportDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetReportDefinitionCommandOutput>;
|
|
41
|
+
/**
|
|
42
|
+
* deserializeAws_restJson1ImportApplicationUsageCommand
|
|
43
|
+
*/
|
|
44
|
+
export declare const de_ImportApplicationUsageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ImportApplicationUsageCommandOutput>;
|
|
45
|
+
/**
|
|
46
|
+
* deserializeAws_restJson1ListReportDefinitionsCommand
|
|
47
|
+
*/
|
|
48
|
+
export declare const de_ListReportDefinitionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListReportDefinitionsCommandOutput>;
|
|
49
|
+
/**
|
|
50
|
+
* deserializeAws_restJson1PutReportDefinitionCommand
|
|
51
|
+
*/
|
|
52
|
+
export declare const de_PutReportDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutReportDefinitionCommandOutput>;
|
|
53
|
+
/**
|
|
54
|
+
* deserializeAws_restJson1UpdateReportDefinitionCommand
|
|
55
|
+
*/
|
|
56
|
+
export declare const de_UpdateReportDefinitionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateReportDefinitionCommandOutput>;
|
|
@@ -27,51 +27,51 @@ import {
|
|
|
27
27
|
UpdateReportDefinitionCommandInput,
|
|
28
28
|
UpdateReportDefinitionCommandOutput,
|
|
29
29
|
} from "../commands/UpdateReportDefinitionCommand";
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const se_DeleteReportDefinitionCommand: (
|
|
31
31
|
input: DeleteReportDefinitionCommandInput,
|
|
32
32
|
context: __SerdeContext
|
|
33
33
|
) => Promise<__HttpRequest>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const se_GetReportDefinitionCommand: (
|
|
35
35
|
input: GetReportDefinitionCommandInput,
|
|
36
36
|
context: __SerdeContext
|
|
37
37
|
) => Promise<__HttpRequest>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const se_ImportApplicationUsageCommand: (
|
|
39
39
|
input: ImportApplicationUsageCommandInput,
|
|
40
40
|
context: __SerdeContext
|
|
41
41
|
) => Promise<__HttpRequest>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const se_ListReportDefinitionsCommand: (
|
|
43
43
|
input: ListReportDefinitionsCommandInput,
|
|
44
44
|
context: __SerdeContext
|
|
45
45
|
) => Promise<__HttpRequest>;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const se_PutReportDefinitionCommand: (
|
|
47
47
|
input: PutReportDefinitionCommandInput,
|
|
48
48
|
context: __SerdeContext
|
|
49
49
|
) => Promise<__HttpRequest>;
|
|
50
|
-
export declare const
|
|
50
|
+
export declare const se_UpdateReportDefinitionCommand: (
|
|
51
51
|
input: UpdateReportDefinitionCommandInput,
|
|
52
52
|
context: __SerdeContext
|
|
53
53
|
) => Promise<__HttpRequest>;
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const de_DeleteReportDefinitionCommand: (
|
|
55
55
|
output: __HttpResponse,
|
|
56
56
|
context: __SerdeContext
|
|
57
57
|
) => Promise<DeleteReportDefinitionCommandOutput>;
|
|
58
|
-
export declare const
|
|
58
|
+
export declare const de_GetReportDefinitionCommand: (
|
|
59
59
|
output: __HttpResponse,
|
|
60
60
|
context: __SerdeContext
|
|
61
61
|
) => Promise<GetReportDefinitionCommandOutput>;
|
|
62
|
-
export declare const
|
|
62
|
+
export declare const de_ImportApplicationUsageCommand: (
|
|
63
63
|
output: __HttpResponse,
|
|
64
64
|
context: __SerdeContext
|
|
65
65
|
) => Promise<ImportApplicationUsageCommandOutput>;
|
|
66
|
-
export declare const
|
|
66
|
+
export declare const de_ListReportDefinitionsCommand: (
|
|
67
67
|
output: __HttpResponse,
|
|
68
68
|
context: __SerdeContext
|
|
69
69
|
) => Promise<ListReportDefinitionsCommandOutput>;
|
|
70
|
-
export declare const
|
|
70
|
+
export declare const de_PutReportDefinitionCommand: (
|
|
71
71
|
output: __HttpResponse,
|
|
72
72
|
context: __SerdeContext
|
|
73
73
|
) => Promise<PutReportDefinitionCommandOutput>;
|
|
74
|
-
export declare const
|
|
74
|
+
export declare const de_UpdateReportDefinitionCommand: (
|
|
75
75
|
output: __HttpResponse,
|
|
76
76
|
context: __SerdeContext
|
|
77
77
|
) => Promise<UpdateReportDefinitionCommandOutput>;
|