@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.
@@ -36,10 +36,10 @@ class DeleteReportDefinitionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1DeleteReportDefinitionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_DeleteReportDefinitionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteReportDefinitionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_DeleteReportDefinitionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.DeleteReportDefinitionCommand = DeleteReportDefinitionCommand;
@@ -36,10 +36,10 @@ class GetReportDefinitionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1GetReportDefinitionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_GetReportDefinitionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1GetReportDefinitionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_GetReportDefinitionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.GetReportDefinitionCommand = GetReportDefinitionCommand;
@@ -36,10 +36,10 @@ class ImportApplicationUsageCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ImportApplicationUsageCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ImportApplicationUsageCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ImportApplicationUsageCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ImportApplicationUsageCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ImportApplicationUsageCommand = ImportApplicationUsageCommand;
@@ -36,10 +36,10 @@ class ListReportDefinitionsCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1ListReportDefinitionsCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_ListReportDefinitionsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1ListReportDefinitionsCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_ListReportDefinitionsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.ListReportDefinitionsCommand = ListReportDefinitionsCommand;
@@ -36,10 +36,10 @@ class PutReportDefinitionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1PutReportDefinitionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_PutReportDefinitionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1PutReportDefinitionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_PutReportDefinitionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.PutReportDefinitionCommand = PutReportDefinitionCommand;
@@ -36,10 +36,10 @@ class UpdateReportDefinitionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1UpdateReportDefinitionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_UpdateReportDefinitionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateReportDefinitionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_UpdateReportDefinitionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.UpdateReportDefinitionCommand = UpdateReportDefinitionCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateReportDefinitionCommand = exports.deserializeAws_restJson1PutReportDefinitionCommand = exports.deserializeAws_restJson1ListReportDefinitionsCommand = exports.deserializeAws_restJson1ImportApplicationUsageCommand = exports.deserializeAws_restJson1GetReportDefinitionCommand = exports.deserializeAws_restJson1DeleteReportDefinitionCommand = exports.serializeAws_restJson1UpdateReportDefinitionCommand = exports.serializeAws_restJson1PutReportDefinitionCommand = exports.serializeAws_restJson1ListReportDefinitionsCommand = exports.serializeAws_restJson1ImportApplicationUsageCommand = exports.serializeAws_restJson1GetReportDefinitionCommand = exports.serializeAws_restJson1DeleteReportDefinitionCommand = void 0;
3
+ exports.de_UpdateReportDefinitionCommand = exports.de_PutReportDefinitionCommand = exports.de_ListReportDefinitionsCommand = exports.de_ImportApplicationUsageCommand = exports.de_GetReportDefinitionCommand = exports.de_DeleteReportDefinitionCommand = exports.se_UpdateReportDefinitionCommand = exports.se_PutReportDefinitionCommand = exports.se_ListReportDefinitionsCommand = exports.se_ImportApplicationUsageCommand = exports.se_GetReportDefinitionCommand = exports.se_DeleteReportDefinitionCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ApplicationCostProfilerServiceException_1 = require("../models/ApplicationCostProfilerServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1DeleteReportDefinitionCommand = async (input, context) => {
8
+ const se_DeleteReportDefinitionCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {};
11
11
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}";
@@ -21,8 +21,8 @@ const serializeAws_restJson1DeleteReportDefinitionCommand = async (input, contex
21
21
  body,
22
22
  });
23
23
  };
24
- exports.serializeAws_restJson1DeleteReportDefinitionCommand = serializeAws_restJson1DeleteReportDefinitionCommand;
25
- const serializeAws_restJson1GetReportDefinitionCommand = async (input, context) => {
24
+ exports.se_DeleteReportDefinitionCommand = se_DeleteReportDefinitionCommand;
25
+ const se_GetReportDefinitionCommand = async (input, context) => {
26
26
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
27
  const headers = {};
28
28
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition/{reportId}";
@@ -38,8 +38,8 @@ const serializeAws_restJson1GetReportDefinitionCommand = async (input, context)
38
38
  body,
39
39
  });
40
40
  };
41
- exports.serializeAws_restJson1GetReportDefinitionCommand = serializeAws_restJson1GetReportDefinitionCommand;
42
- const serializeAws_restJson1ImportApplicationUsageCommand = async (input, context) => {
41
+ exports.se_GetReportDefinitionCommand = se_GetReportDefinitionCommand;
42
+ const se_ImportApplicationUsageCommand = async (input, context) => {
43
43
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
44
  const headers = {
45
45
  "content-type": "application/json",
@@ -47,9 +47,7 @@ const serializeAws_restJson1ImportApplicationUsageCommand = async (input, contex
47
47
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/importApplicationUsage";
48
48
  let body;
49
49
  body = JSON.stringify({
50
- ...(input.sourceS3Location != null && {
51
- sourceS3Location: serializeAws_restJson1SourceS3Location(input.sourceS3Location, context),
52
- }),
50
+ ...(input.sourceS3Location != null && { sourceS3Location: se_SourceS3Location(input.sourceS3Location, context) }),
53
51
  });
54
52
  return new protocol_http_1.HttpRequest({
55
53
  protocol,
@@ -61,8 +59,8 @@ const serializeAws_restJson1ImportApplicationUsageCommand = async (input, contex
61
59
  body,
62
60
  });
63
61
  };
64
- exports.serializeAws_restJson1ImportApplicationUsageCommand = serializeAws_restJson1ImportApplicationUsageCommand;
65
- const serializeAws_restJson1ListReportDefinitionsCommand = async (input, context) => {
62
+ exports.se_ImportApplicationUsageCommand = se_ImportApplicationUsageCommand;
63
+ const se_ListReportDefinitionsCommand = async (input, context) => {
66
64
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
65
  const headers = {};
68
66
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reportDefinition";
@@ -82,8 +80,8 @@ const serializeAws_restJson1ListReportDefinitionsCommand = async (input, context
82
80
  body,
83
81
  });
84
82
  };
85
- exports.serializeAws_restJson1ListReportDefinitionsCommand = serializeAws_restJson1ListReportDefinitionsCommand;
86
- const serializeAws_restJson1PutReportDefinitionCommand = async (input, context) => {
83
+ exports.se_ListReportDefinitionsCommand = se_ListReportDefinitionsCommand;
84
+ const se_PutReportDefinitionCommand = async (input, context) => {
87
85
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
88
86
  const headers = {
89
87
  "content-type": "application/json",
@@ -92,7 +90,7 @@ const serializeAws_restJson1PutReportDefinitionCommand = async (input, context)
92
90
  let body;
93
91
  body = JSON.stringify({
94
92
  ...(input.destinationS3Location != null && {
95
- destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
93
+ destinationS3Location: se_S3Location(input.destinationS3Location, context),
96
94
  }),
97
95
  ...(input.format != null && { format: input.format }),
98
96
  ...(input.reportDescription != null && { reportDescription: input.reportDescription }),
@@ -109,8 +107,8 @@ const serializeAws_restJson1PutReportDefinitionCommand = async (input, context)
109
107
  body,
110
108
  });
111
109
  };
112
- exports.serializeAws_restJson1PutReportDefinitionCommand = serializeAws_restJson1PutReportDefinitionCommand;
113
- const serializeAws_restJson1UpdateReportDefinitionCommand = async (input, context) => {
110
+ exports.se_PutReportDefinitionCommand = se_PutReportDefinitionCommand;
111
+ const se_UpdateReportDefinitionCommand = async (input, context) => {
114
112
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
113
  const headers = {
116
114
  "content-type": "application/json",
@@ -120,7 +118,7 @@ const serializeAws_restJson1UpdateReportDefinitionCommand = async (input, contex
120
118
  let body;
121
119
  body = JSON.stringify({
122
120
  ...(input.destinationS3Location != null && {
123
- destinationS3Location: serializeAws_restJson1S3Location(input.destinationS3Location, context),
121
+ destinationS3Location: se_S3Location(input.destinationS3Location, context),
124
122
  }),
125
123
  ...(input.format != null && { format: input.format }),
126
124
  ...(input.reportDescription != null && { reportDescription: input.reportDescription }),
@@ -136,10 +134,10 @@ const serializeAws_restJson1UpdateReportDefinitionCommand = async (input, contex
136
134
  body,
137
135
  });
138
136
  };
139
- exports.serializeAws_restJson1UpdateReportDefinitionCommand = serializeAws_restJson1UpdateReportDefinitionCommand;
140
- const deserializeAws_restJson1DeleteReportDefinitionCommand = async (output, context) => {
137
+ exports.se_UpdateReportDefinitionCommand = se_UpdateReportDefinitionCommand;
138
+ const de_DeleteReportDefinitionCommand = async (output, context) => {
141
139
  if (output.statusCode !== 200 && output.statusCode >= 300) {
142
- return deserializeAws_restJson1DeleteReportDefinitionCommandError(output, context);
140
+ return de_DeleteReportDefinitionCommandError(output, context);
143
141
  }
144
142
  const contents = map({
145
143
  $metadata: deserializeMetadata(output),
@@ -150,8 +148,8 @@ const deserializeAws_restJson1DeleteReportDefinitionCommand = async (output, con
150
148
  }
151
149
  return contents;
152
150
  };
153
- exports.deserializeAws_restJson1DeleteReportDefinitionCommand = deserializeAws_restJson1DeleteReportDefinitionCommand;
154
- const deserializeAws_restJson1DeleteReportDefinitionCommandError = async (output, context) => {
151
+ exports.de_DeleteReportDefinitionCommand = de_DeleteReportDefinitionCommand;
152
+ const de_DeleteReportDefinitionCommandError = async (output, context) => {
155
153
  const parsedOutput = {
156
154
  ...output,
157
155
  body: await parseErrorBody(output.body, context),
@@ -160,16 +158,16 @@ const deserializeAws_restJson1DeleteReportDefinitionCommandError = async (output
160
158
  switch (errorCode) {
161
159
  case "AccessDeniedException":
162
160
  case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
163
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
161
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
164
162
  case "InternalServerException":
165
163
  case "com.amazonaws.applicationcostprofiler#InternalServerException":
166
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
164
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
167
165
  case "ThrottlingException":
168
166
  case "com.amazonaws.applicationcostprofiler#ThrottlingException":
169
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
167
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
170
168
  case "ValidationException":
171
169
  case "com.amazonaws.applicationcostprofiler#ValidationException":
172
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
170
+ throw await de_ValidationExceptionRes(parsedOutput, context);
173
171
  default:
174
172
  const parsedBody = parsedOutput.body;
175
173
  (0, smithy_client_1.throwDefaultError)({
@@ -180,9 +178,9 @@ const deserializeAws_restJson1DeleteReportDefinitionCommandError = async (output
180
178
  });
181
179
  }
182
180
  };
183
- const deserializeAws_restJson1GetReportDefinitionCommand = async (output, context) => {
181
+ const de_GetReportDefinitionCommand = async (output, context) => {
184
182
  if (output.statusCode !== 200 && output.statusCode >= 300) {
185
- return deserializeAws_restJson1GetReportDefinitionCommandError(output, context);
183
+ return de_GetReportDefinitionCommandError(output, context);
186
184
  }
187
185
  const contents = map({
188
186
  $metadata: deserializeMetadata(output),
@@ -192,7 +190,7 @@ const deserializeAws_restJson1GetReportDefinitionCommand = async (output, contex
192
190
  contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.createdAt)));
193
191
  }
194
192
  if (data.destinationS3Location != null) {
195
- contents.destinationS3Location = deserializeAws_restJson1S3Location(data.destinationS3Location, context);
193
+ contents.destinationS3Location = de_S3Location(data.destinationS3Location, context);
196
194
  }
197
195
  if (data.format != null) {
198
196
  contents.format = (0, smithy_client_1.expectString)(data.format);
@@ -211,8 +209,8 @@ const deserializeAws_restJson1GetReportDefinitionCommand = async (output, contex
211
209
  }
212
210
  return contents;
213
211
  };
214
- exports.deserializeAws_restJson1GetReportDefinitionCommand = deserializeAws_restJson1GetReportDefinitionCommand;
215
- const deserializeAws_restJson1GetReportDefinitionCommandError = async (output, context) => {
212
+ exports.de_GetReportDefinitionCommand = de_GetReportDefinitionCommand;
213
+ const de_GetReportDefinitionCommandError = async (output, context) => {
216
214
  const parsedOutput = {
217
215
  ...output,
218
216
  body: await parseErrorBody(output.body, context),
@@ -221,16 +219,16 @@ const deserializeAws_restJson1GetReportDefinitionCommandError = async (output, c
221
219
  switch (errorCode) {
222
220
  case "AccessDeniedException":
223
221
  case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
224
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
222
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
225
223
  case "InternalServerException":
226
224
  case "com.amazonaws.applicationcostprofiler#InternalServerException":
227
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
225
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
228
226
  case "ThrottlingException":
229
227
  case "com.amazonaws.applicationcostprofiler#ThrottlingException":
230
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
228
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
231
229
  case "ValidationException":
232
230
  case "com.amazonaws.applicationcostprofiler#ValidationException":
233
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
231
+ throw await de_ValidationExceptionRes(parsedOutput, context);
234
232
  default:
235
233
  const parsedBody = parsedOutput.body;
236
234
  (0, smithy_client_1.throwDefaultError)({
@@ -241,9 +239,9 @@ const deserializeAws_restJson1GetReportDefinitionCommandError = async (output, c
241
239
  });
242
240
  }
243
241
  };
244
- const deserializeAws_restJson1ImportApplicationUsageCommand = async (output, context) => {
242
+ const de_ImportApplicationUsageCommand = async (output, context) => {
245
243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
246
- return deserializeAws_restJson1ImportApplicationUsageCommandError(output, context);
244
+ return de_ImportApplicationUsageCommandError(output, context);
247
245
  }
248
246
  const contents = map({
249
247
  $metadata: deserializeMetadata(output),
@@ -254,8 +252,8 @@ const deserializeAws_restJson1ImportApplicationUsageCommand = async (output, con
254
252
  }
255
253
  return contents;
256
254
  };
257
- exports.deserializeAws_restJson1ImportApplicationUsageCommand = deserializeAws_restJson1ImportApplicationUsageCommand;
258
- const deserializeAws_restJson1ImportApplicationUsageCommandError = async (output, context) => {
255
+ exports.de_ImportApplicationUsageCommand = de_ImportApplicationUsageCommand;
256
+ const de_ImportApplicationUsageCommandError = async (output, context) => {
259
257
  const parsedOutput = {
260
258
  ...output,
261
259
  body: await parseErrorBody(output.body, context),
@@ -264,16 +262,16 @@ const deserializeAws_restJson1ImportApplicationUsageCommandError = async (output
264
262
  switch (errorCode) {
265
263
  case "AccessDeniedException":
266
264
  case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
267
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
265
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
268
266
  case "InternalServerException":
269
267
  case "com.amazonaws.applicationcostprofiler#InternalServerException":
270
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
268
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
271
269
  case "ThrottlingException":
272
270
  case "com.amazonaws.applicationcostprofiler#ThrottlingException":
273
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
271
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
274
272
  case "ValidationException":
275
273
  case "com.amazonaws.applicationcostprofiler#ValidationException":
276
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
274
+ throw await de_ValidationExceptionRes(parsedOutput, context);
277
275
  default:
278
276
  const parsedBody = parsedOutput.body;
279
277
  (0, smithy_client_1.throwDefaultError)({
@@ -284,9 +282,9 @@ const deserializeAws_restJson1ImportApplicationUsageCommandError = async (output
284
282
  });
285
283
  }
286
284
  };
287
- const deserializeAws_restJson1ListReportDefinitionsCommand = async (output, context) => {
285
+ const de_ListReportDefinitionsCommand = async (output, context) => {
288
286
  if (output.statusCode !== 200 && output.statusCode >= 300) {
289
- return deserializeAws_restJson1ListReportDefinitionsCommandError(output, context);
287
+ return de_ListReportDefinitionsCommandError(output, context);
290
288
  }
291
289
  const contents = map({
292
290
  $metadata: deserializeMetadata(output),
@@ -296,12 +294,12 @@ const deserializeAws_restJson1ListReportDefinitionsCommand = async (output, cont
296
294
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
297
295
  }
298
296
  if (data.reportDefinitions != null) {
299
- contents.reportDefinitions = deserializeAws_restJson1ReportDefinitionList(data.reportDefinitions, context);
297
+ contents.reportDefinitions = de_ReportDefinitionList(data.reportDefinitions, context);
300
298
  }
301
299
  return contents;
302
300
  };
303
- exports.deserializeAws_restJson1ListReportDefinitionsCommand = deserializeAws_restJson1ListReportDefinitionsCommand;
304
- const deserializeAws_restJson1ListReportDefinitionsCommandError = async (output, context) => {
301
+ exports.de_ListReportDefinitionsCommand = de_ListReportDefinitionsCommand;
302
+ const de_ListReportDefinitionsCommandError = async (output, context) => {
305
303
  const parsedOutput = {
306
304
  ...output,
307
305
  body: await parseErrorBody(output.body, context),
@@ -310,16 +308,16 @@ const deserializeAws_restJson1ListReportDefinitionsCommandError = async (output,
310
308
  switch (errorCode) {
311
309
  case "AccessDeniedException":
312
310
  case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
313
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
311
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
314
312
  case "InternalServerException":
315
313
  case "com.amazonaws.applicationcostprofiler#InternalServerException":
316
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
314
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
317
315
  case "ThrottlingException":
318
316
  case "com.amazonaws.applicationcostprofiler#ThrottlingException":
319
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
317
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
320
318
  case "ValidationException":
321
319
  case "com.amazonaws.applicationcostprofiler#ValidationException":
322
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
320
+ throw await de_ValidationExceptionRes(parsedOutput, context);
323
321
  default:
324
322
  const parsedBody = parsedOutput.body;
325
323
  (0, smithy_client_1.throwDefaultError)({
@@ -330,9 +328,9 @@ const deserializeAws_restJson1ListReportDefinitionsCommandError = async (output,
330
328
  });
331
329
  }
332
330
  };
333
- const deserializeAws_restJson1PutReportDefinitionCommand = async (output, context) => {
331
+ const de_PutReportDefinitionCommand = async (output, context) => {
334
332
  if (output.statusCode !== 200 && output.statusCode >= 300) {
335
- return deserializeAws_restJson1PutReportDefinitionCommandError(output, context);
333
+ return de_PutReportDefinitionCommandError(output, context);
336
334
  }
337
335
  const contents = map({
338
336
  $metadata: deserializeMetadata(output),
@@ -343,8 +341,8 @@ const deserializeAws_restJson1PutReportDefinitionCommand = async (output, contex
343
341
  }
344
342
  return contents;
345
343
  };
346
- exports.deserializeAws_restJson1PutReportDefinitionCommand = deserializeAws_restJson1PutReportDefinitionCommand;
347
- const deserializeAws_restJson1PutReportDefinitionCommandError = async (output, context) => {
344
+ exports.de_PutReportDefinitionCommand = de_PutReportDefinitionCommand;
345
+ const de_PutReportDefinitionCommandError = async (output, context) => {
348
346
  const parsedOutput = {
349
347
  ...output,
350
348
  body: await parseErrorBody(output.body, context),
@@ -353,19 +351,19 @@ const deserializeAws_restJson1PutReportDefinitionCommandError = async (output, c
353
351
  switch (errorCode) {
354
352
  case "AccessDeniedException":
355
353
  case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
356
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
354
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
357
355
  case "InternalServerException":
358
356
  case "com.amazonaws.applicationcostprofiler#InternalServerException":
359
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
357
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
360
358
  case "ServiceQuotaExceededException":
361
359
  case "com.amazonaws.applicationcostprofiler#ServiceQuotaExceededException":
362
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
360
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
363
361
  case "ThrottlingException":
364
362
  case "com.amazonaws.applicationcostprofiler#ThrottlingException":
365
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
363
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
366
364
  case "ValidationException":
367
365
  case "com.amazonaws.applicationcostprofiler#ValidationException":
368
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
366
+ throw await de_ValidationExceptionRes(parsedOutput, context);
369
367
  default:
370
368
  const parsedBody = parsedOutput.body;
371
369
  (0, smithy_client_1.throwDefaultError)({
@@ -376,9 +374,9 @@ const deserializeAws_restJson1PutReportDefinitionCommandError = async (output, c
376
374
  });
377
375
  }
378
376
  };
379
- const deserializeAws_restJson1UpdateReportDefinitionCommand = async (output, context) => {
377
+ const de_UpdateReportDefinitionCommand = async (output, context) => {
380
378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
381
- return deserializeAws_restJson1UpdateReportDefinitionCommandError(output, context);
379
+ return de_UpdateReportDefinitionCommandError(output, context);
382
380
  }
383
381
  const contents = map({
384
382
  $metadata: deserializeMetadata(output),
@@ -389,8 +387,8 @@ const deserializeAws_restJson1UpdateReportDefinitionCommand = async (output, con
389
387
  }
390
388
  return contents;
391
389
  };
392
- exports.deserializeAws_restJson1UpdateReportDefinitionCommand = deserializeAws_restJson1UpdateReportDefinitionCommand;
393
- const deserializeAws_restJson1UpdateReportDefinitionCommandError = async (output, context) => {
390
+ exports.de_UpdateReportDefinitionCommand = de_UpdateReportDefinitionCommand;
391
+ const de_UpdateReportDefinitionCommandError = async (output, context) => {
394
392
  const parsedOutput = {
395
393
  ...output,
396
394
  body: await parseErrorBody(output.body, context),
@@ -399,16 +397,16 @@ const deserializeAws_restJson1UpdateReportDefinitionCommandError = async (output
399
397
  switch (errorCode) {
400
398
  case "AccessDeniedException":
401
399
  case "com.amazonaws.applicationcostprofiler#AccessDeniedException":
402
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
400
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
403
401
  case "InternalServerException":
404
402
  case "com.amazonaws.applicationcostprofiler#InternalServerException":
405
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
403
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
406
404
  case "ThrottlingException":
407
405
  case "com.amazonaws.applicationcostprofiler#ThrottlingException":
408
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
406
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
409
407
  case "ValidationException":
410
408
  case "com.amazonaws.applicationcostprofiler#ValidationException":
411
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
409
+ throw await de_ValidationExceptionRes(parsedOutput, context);
412
410
  default:
413
411
  const parsedBody = parsedOutput.body;
414
412
  (0, smithy_client_1.throwDefaultError)({
@@ -420,7 +418,7 @@ const deserializeAws_restJson1UpdateReportDefinitionCommandError = async (output
420
418
  }
421
419
  };
422
420
  const map = smithy_client_1.map;
423
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
421
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
424
422
  const contents = map({});
425
423
  const data = parsedOutput.body;
426
424
  if (data.message != null) {
@@ -432,7 +430,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
432
430
  });
433
431
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
434
432
  };
435
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
433
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
436
434
  const contents = map({});
437
435
  const data = parsedOutput.body;
438
436
  if (data.message != null) {
@@ -444,7 +442,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
444
442
  });
445
443
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
446
444
  };
447
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
445
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
448
446
  const contents = map({});
449
447
  const data = parsedOutput.body;
450
448
  if (data.message != null) {
@@ -456,7 +454,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
456
454
  });
457
455
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
458
456
  };
459
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
457
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
460
458
  const contents = map({});
461
459
  const data = parsedOutput.body;
462
460
  if (data.message != null) {
@@ -468,7 +466,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
468
466
  });
469
467
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
470
468
  };
471
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
469
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
472
470
  const contents = map({});
473
471
  const data = parsedOutput.body;
474
472
  if (data.message != null) {
@@ -480,25 +478,23 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
480
478
  });
481
479
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
482
480
  };
483
- const serializeAws_restJson1S3Location = (input, context) => {
481
+ const se_S3Location = (input, context) => {
484
482
  return {
485
483
  ...(input.bucket != null && { bucket: input.bucket }),
486
484
  ...(input.prefix != null && { prefix: input.prefix }),
487
485
  };
488
486
  };
489
- const serializeAws_restJson1SourceS3Location = (input, context) => {
487
+ const se_SourceS3Location = (input, context) => {
490
488
  return {
491
489
  ...(input.bucket != null && { bucket: input.bucket }),
492
490
  ...(input.key != null && { key: input.key }),
493
491
  ...(input.region != null && { region: input.region }),
494
492
  };
495
493
  };
496
- const deserializeAws_restJson1ReportDefinition = (output, context) => {
494
+ const de_ReportDefinition = (output, context) => {
497
495
  return {
498
496
  createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
499
- destinationS3Location: output.destinationS3Location != null
500
- ? deserializeAws_restJson1S3Location(output.destinationS3Location, context)
501
- : undefined,
497
+ destinationS3Location: output.destinationS3Location != null ? de_S3Location(output.destinationS3Location, context) : undefined,
502
498
  format: (0, smithy_client_1.expectString)(output.format),
503
499
  lastUpdatedAt: output.lastUpdatedAt != null
504
500
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
@@ -508,18 +504,18 @@ const deserializeAws_restJson1ReportDefinition = (output, context) => {
508
504
  reportId: (0, smithy_client_1.expectString)(output.reportId),
509
505
  };
510
506
  };
511
- const deserializeAws_restJson1ReportDefinitionList = (output, context) => {
507
+ const de_ReportDefinitionList = (output, context) => {
512
508
  const retVal = (output || [])
513
509
  .filter((e) => e != null)
514
510
  .map((entry) => {
515
511
  if (entry === null) {
516
512
  return null;
517
513
  }
518
- return deserializeAws_restJson1ReportDefinition(entry, context);
514
+ return de_ReportDefinition(entry, context);
519
515
  });
520
516
  return retVal;
521
517
  };
522
- const deserializeAws_restJson1S3Location = (output, context) => {
518
+ const de_S3Location = (output, context) => {
523
519
  return {
524
520
  bucket: (0, smithy_client_1.expectString)(output.bucket),
525
521
  prefix: (0, smithy_client_1.expectString)(output.prefix),
@@ -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 { deserializeAws_restJson1DeleteReportDefinitionCommand, serializeAws_restJson1DeleteReportDefinitionCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_DeleteReportDefinitionCommand, se_DeleteReportDefinitionCommand } from "../protocols/Aws_restJson1";
5
5
  export class DeleteReportDefinitionCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class DeleteReportDefinitionCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1DeleteReportDefinitionCommand(input, context);
36
+ return se_DeleteReportDefinitionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1DeleteReportDefinitionCommand(output, context);
39
+ return de_DeleteReportDefinitionCommand(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 { deserializeAws_restJson1GetReportDefinitionCommand, serializeAws_restJson1GetReportDefinitionCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_GetReportDefinitionCommand, se_GetReportDefinitionCommand } from "../protocols/Aws_restJson1";
5
5
  export class GetReportDefinitionCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class GetReportDefinitionCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1GetReportDefinitionCommand(input, context);
36
+ return se_GetReportDefinitionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1GetReportDefinitionCommand(output, context);
39
+ return de_GetReportDefinitionCommand(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 { deserializeAws_restJson1ImportApplicationUsageCommand, serializeAws_restJson1ImportApplicationUsageCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_ImportApplicationUsageCommand, se_ImportApplicationUsageCommand } from "../protocols/Aws_restJson1";
5
5
  export class ImportApplicationUsageCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class ImportApplicationUsageCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1ImportApplicationUsageCommand(input, context);
36
+ return se_ImportApplicationUsageCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1ImportApplicationUsageCommand(output, context);
39
+ return de_ImportApplicationUsageCommand(output, context);
40
40
  }
41
41
  }