@aws-sdk/client-pricing 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.
@@ -1,75 +1,75 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1ListPriceListsCommand = exports.deserializeAws_json1_1GetProductsCommand = exports.deserializeAws_json1_1GetPriceListFileUrlCommand = exports.deserializeAws_json1_1GetAttributeValuesCommand = exports.deserializeAws_json1_1DescribeServicesCommand = exports.serializeAws_json1_1ListPriceListsCommand = exports.serializeAws_json1_1GetProductsCommand = exports.serializeAws_json1_1GetPriceListFileUrlCommand = exports.serializeAws_json1_1GetAttributeValuesCommand = exports.serializeAws_json1_1DescribeServicesCommand = void 0;
3
+ exports.de_ListPriceListsCommand = exports.de_GetProductsCommand = exports.de_GetPriceListFileUrlCommand = exports.de_GetAttributeValuesCommand = exports.de_DescribeServicesCommand = exports.se_ListPriceListsCommand = exports.se_GetProductsCommand = exports.se_GetPriceListFileUrlCommand = exports.se_GetAttributeValuesCommand = exports.se_DescribeServicesCommand = 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 models_0_1 = require("../models/models_0");
7
7
  const PricingServiceException_1 = require("../models/PricingServiceException");
8
- const serializeAws_json1_1DescribeServicesCommand = async (input, context) => {
8
+ const se_DescribeServicesCommand = async (input, context) => {
9
9
  const headers = {
10
10
  "content-type": "application/x-amz-json-1.1",
11
11
  "x-amz-target": "AWSPriceListService.DescribeServices",
12
12
  };
13
13
  let body;
14
- body = JSON.stringify(serializeAws_json1_1DescribeServicesRequest(input, context));
14
+ body = JSON.stringify(se_DescribeServicesRequest(input, context));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
- exports.serializeAws_json1_1DescribeServicesCommand = serializeAws_json1_1DescribeServicesCommand;
18
- const serializeAws_json1_1GetAttributeValuesCommand = async (input, context) => {
17
+ exports.se_DescribeServicesCommand = se_DescribeServicesCommand;
18
+ const se_GetAttributeValuesCommand = async (input, context) => {
19
19
  const headers = {
20
20
  "content-type": "application/x-amz-json-1.1",
21
21
  "x-amz-target": "AWSPriceListService.GetAttributeValues",
22
22
  };
23
23
  let body;
24
- body = JSON.stringify(serializeAws_json1_1GetAttributeValuesRequest(input, context));
24
+ body = JSON.stringify(se_GetAttributeValuesRequest(input, context));
25
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
26
  };
27
- exports.serializeAws_json1_1GetAttributeValuesCommand = serializeAws_json1_1GetAttributeValuesCommand;
28
- const serializeAws_json1_1GetPriceListFileUrlCommand = async (input, context) => {
27
+ exports.se_GetAttributeValuesCommand = se_GetAttributeValuesCommand;
28
+ const se_GetPriceListFileUrlCommand = async (input, context) => {
29
29
  const headers = {
30
30
  "content-type": "application/x-amz-json-1.1",
31
31
  "x-amz-target": "AWSPriceListService.GetPriceListFileUrl",
32
32
  };
33
33
  let body;
34
- body = JSON.stringify(serializeAws_json1_1GetPriceListFileUrlRequest(input, context));
34
+ body = JSON.stringify(se_GetPriceListFileUrlRequest(input, context));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
- exports.serializeAws_json1_1GetPriceListFileUrlCommand = serializeAws_json1_1GetPriceListFileUrlCommand;
38
- const serializeAws_json1_1GetProductsCommand = async (input, context) => {
37
+ exports.se_GetPriceListFileUrlCommand = se_GetPriceListFileUrlCommand;
38
+ const se_GetProductsCommand = async (input, context) => {
39
39
  const headers = {
40
40
  "content-type": "application/x-amz-json-1.1",
41
41
  "x-amz-target": "AWSPriceListService.GetProducts",
42
42
  };
43
43
  let body;
44
- body = JSON.stringify(serializeAws_json1_1GetProductsRequest(input, context));
44
+ body = JSON.stringify(se_GetProductsRequest(input, context));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
- exports.serializeAws_json1_1GetProductsCommand = serializeAws_json1_1GetProductsCommand;
48
- const serializeAws_json1_1ListPriceListsCommand = async (input, context) => {
47
+ exports.se_GetProductsCommand = se_GetProductsCommand;
48
+ const se_ListPriceListsCommand = async (input, context) => {
49
49
  const headers = {
50
50
  "content-type": "application/x-amz-json-1.1",
51
51
  "x-amz-target": "AWSPriceListService.ListPriceLists",
52
52
  };
53
53
  let body;
54
- body = JSON.stringify(serializeAws_json1_1ListPriceListsRequest(input, context));
54
+ body = JSON.stringify(se_ListPriceListsRequest(input, context));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
- exports.serializeAws_json1_1ListPriceListsCommand = serializeAws_json1_1ListPriceListsCommand;
58
- const deserializeAws_json1_1DescribeServicesCommand = async (output, context) => {
57
+ exports.se_ListPriceListsCommand = se_ListPriceListsCommand;
58
+ const de_DescribeServicesCommand = async (output, context) => {
59
59
  if (output.statusCode >= 300) {
60
- return deserializeAws_json1_1DescribeServicesCommandError(output, context);
60
+ return de_DescribeServicesCommandError(output, context);
61
61
  }
62
62
  const data = await parseBody(output.body, context);
63
63
  let contents = {};
64
- contents = deserializeAws_json1_1DescribeServicesResponse(data, context);
64
+ contents = de_DescribeServicesResponse(data, context);
65
65
  const response = {
66
66
  $metadata: deserializeMetadata(output),
67
67
  ...contents,
68
68
  };
69
69
  return Promise.resolve(response);
70
70
  };
71
- exports.deserializeAws_json1_1DescribeServicesCommand = deserializeAws_json1_1DescribeServicesCommand;
72
- const deserializeAws_json1_1DescribeServicesCommandError = async (output, context) => {
71
+ exports.de_DescribeServicesCommand = de_DescribeServicesCommand;
72
+ const de_DescribeServicesCommandError = async (output, context) => {
73
73
  const parsedOutput = {
74
74
  ...output,
75
75
  body: await parseErrorBody(output.body, context),
@@ -78,19 +78,19 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
78
78
  switch (errorCode) {
79
79
  case "ExpiredNextTokenException":
80
80
  case "com.amazonaws.pricing#ExpiredNextTokenException":
81
- throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
81
+ throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
82
82
  case "InternalErrorException":
83
83
  case "com.amazonaws.pricing#InternalErrorException":
84
- throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
84
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
85
85
  case "InvalidNextTokenException":
86
86
  case "com.amazonaws.pricing#InvalidNextTokenException":
87
- throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
87
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
88
88
  case "InvalidParameterException":
89
89
  case "com.amazonaws.pricing#InvalidParameterException":
90
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
90
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
91
91
  case "NotFoundException":
92
92
  case "com.amazonaws.pricing#NotFoundException":
93
- throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
93
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
94
94
  default:
95
95
  const parsedBody = parsedOutput.body;
96
96
  (0, smithy_client_1.throwDefaultError)({
@@ -101,21 +101,21 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
101
101
  });
102
102
  }
103
103
  };
104
- const deserializeAws_json1_1GetAttributeValuesCommand = async (output, context) => {
104
+ const de_GetAttributeValuesCommand = async (output, context) => {
105
105
  if (output.statusCode >= 300) {
106
- return deserializeAws_json1_1GetAttributeValuesCommandError(output, context);
106
+ return de_GetAttributeValuesCommandError(output, context);
107
107
  }
108
108
  const data = await parseBody(output.body, context);
109
109
  let contents = {};
110
- contents = deserializeAws_json1_1GetAttributeValuesResponse(data, context);
110
+ contents = de_GetAttributeValuesResponse(data, context);
111
111
  const response = {
112
112
  $metadata: deserializeMetadata(output),
113
113
  ...contents,
114
114
  };
115
115
  return Promise.resolve(response);
116
116
  };
117
- exports.deserializeAws_json1_1GetAttributeValuesCommand = deserializeAws_json1_1GetAttributeValuesCommand;
118
- const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, context) => {
117
+ exports.de_GetAttributeValuesCommand = de_GetAttributeValuesCommand;
118
+ const de_GetAttributeValuesCommandError = async (output, context) => {
119
119
  const parsedOutput = {
120
120
  ...output,
121
121
  body: await parseErrorBody(output.body, context),
@@ -124,19 +124,19 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
124
124
  switch (errorCode) {
125
125
  case "ExpiredNextTokenException":
126
126
  case "com.amazonaws.pricing#ExpiredNextTokenException":
127
- throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
127
+ throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
128
128
  case "InternalErrorException":
129
129
  case "com.amazonaws.pricing#InternalErrorException":
130
- throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
130
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
131
131
  case "InvalidNextTokenException":
132
132
  case "com.amazonaws.pricing#InvalidNextTokenException":
133
- throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
133
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
134
134
  case "InvalidParameterException":
135
135
  case "com.amazonaws.pricing#InvalidParameterException":
136
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
136
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
137
137
  case "NotFoundException":
138
138
  case "com.amazonaws.pricing#NotFoundException":
139
- throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
139
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
140
140
  default:
141
141
  const parsedBody = parsedOutput.body;
142
142
  (0, smithy_client_1.throwDefaultError)({
@@ -147,21 +147,21 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
147
147
  });
148
148
  }
149
149
  };
150
- const deserializeAws_json1_1GetPriceListFileUrlCommand = async (output, context) => {
150
+ const de_GetPriceListFileUrlCommand = async (output, context) => {
151
151
  if (output.statusCode >= 300) {
152
- return deserializeAws_json1_1GetPriceListFileUrlCommandError(output, context);
152
+ return de_GetPriceListFileUrlCommandError(output, context);
153
153
  }
154
154
  const data = await parseBody(output.body, context);
155
155
  let contents = {};
156
- contents = deserializeAws_json1_1GetPriceListFileUrlResponse(data, context);
156
+ contents = de_GetPriceListFileUrlResponse(data, context);
157
157
  const response = {
158
158
  $metadata: deserializeMetadata(output),
159
159
  ...contents,
160
160
  };
161
161
  return Promise.resolve(response);
162
162
  };
163
- exports.deserializeAws_json1_1GetPriceListFileUrlCommand = deserializeAws_json1_1GetPriceListFileUrlCommand;
164
- const deserializeAws_json1_1GetPriceListFileUrlCommandError = async (output, context) => {
163
+ exports.de_GetPriceListFileUrlCommand = de_GetPriceListFileUrlCommand;
164
+ const de_GetPriceListFileUrlCommandError = async (output, context) => {
165
165
  const parsedOutput = {
166
166
  ...output,
167
167
  body: await parseErrorBody(output.body, context),
@@ -170,16 +170,16 @@ const deserializeAws_json1_1GetPriceListFileUrlCommandError = async (output, con
170
170
  switch (errorCode) {
171
171
  case "AccessDeniedException":
172
172
  case "com.amazonaws.pricing#AccessDeniedException":
173
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
173
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
174
174
  case "InternalErrorException":
175
175
  case "com.amazonaws.pricing#InternalErrorException":
176
- throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
176
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
177
177
  case "InvalidParameterException":
178
178
  case "com.amazonaws.pricing#InvalidParameterException":
179
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
179
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
180
180
  case "NotFoundException":
181
181
  case "com.amazonaws.pricing#NotFoundException":
182
- throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
182
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
183
183
  default:
184
184
  const parsedBody = parsedOutput.body;
185
185
  (0, smithy_client_1.throwDefaultError)({
@@ -190,21 +190,21 @@ const deserializeAws_json1_1GetPriceListFileUrlCommandError = async (output, con
190
190
  });
191
191
  }
192
192
  };
193
- const deserializeAws_json1_1GetProductsCommand = async (output, context) => {
193
+ const de_GetProductsCommand = async (output, context) => {
194
194
  if (output.statusCode >= 300) {
195
- return deserializeAws_json1_1GetProductsCommandError(output, context);
195
+ return de_GetProductsCommandError(output, context);
196
196
  }
197
197
  const data = await parseBody(output.body, context);
198
198
  let contents = {};
199
- contents = deserializeAws_json1_1GetProductsResponse(data, context);
199
+ contents = de_GetProductsResponse(data, context);
200
200
  const response = {
201
201
  $metadata: deserializeMetadata(output),
202
202
  ...contents,
203
203
  };
204
204
  return Promise.resolve(response);
205
205
  };
206
- exports.deserializeAws_json1_1GetProductsCommand = deserializeAws_json1_1GetProductsCommand;
207
- const deserializeAws_json1_1GetProductsCommandError = async (output, context) => {
206
+ exports.de_GetProductsCommand = de_GetProductsCommand;
207
+ const de_GetProductsCommandError = async (output, context) => {
208
208
  const parsedOutput = {
209
209
  ...output,
210
210
  body: await parseErrorBody(output.body, context),
@@ -213,19 +213,19 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
213
213
  switch (errorCode) {
214
214
  case "ExpiredNextTokenException":
215
215
  case "com.amazonaws.pricing#ExpiredNextTokenException":
216
- throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
216
+ throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
217
217
  case "InternalErrorException":
218
218
  case "com.amazonaws.pricing#InternalErrorException":
219
- throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
219
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
220
220
  case "InvalidNextTokenException":
221
221
  case "com.amazonaws.pricing#InvalidNextTokenException":
222
- throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
222
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
223
223
  case "InvalidParameterException":
224
224
  case "com.amazonaws.pricing#InvalidParameterException":
225
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
225
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
226
226
  case "NotFoundException":
227
227
  case "com.amazonaws.pricing#NotFoundException":
228
- throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
228
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
229
229
  default:
230
230
  const parsedBody = parsedOutput.body;
231
231
  (0, smithy_client_1.throwDefaultError)({
@@ -236,21 +236,21 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
236
236
  });
237
237
  }
238
238
  };
239
- const deserializeAws_json1_1ListPriceListsCommand = async (output, context) => {
239
+ const de_ListPriceListsCommand = async (output, context) => {
240
240
  if (output.statusCode >= 300) {
241
- return deserializeAws_json1_1ListPriceListsCommandError(output, context);
241
+ return de_ListPriceListsCommandError(output, context);
242
242
  }
243
243
  const data = await parseBody(output.body, context);
244
244
  let contents = {};
245
- contents = deserializeAws_json1_1ListPriceListsResponse(data, context);
245
+ contents = de_ListPriceListsResponse(data, context);
246
246
  const response = {
247
247
  $metadata: deserializeMetadata(output),
248
248
  ...contents,
249
249
  };
250
250
  return Promise.resolve(response);
251
251
  };
252
- exports.deserializeAws_json1_1ListPriceListsCommand = deserializeAws_json1_1ListPriceListsCommand;
253
- const deserializeAws_json1_1ListPriceListsCommandError = async (output, context) => {
252
+ exports.de_ListPriceListsCommand = de_ListPriceListsCommand;
253
+ const de_ListPriceListsCommandError = async (output, context) => {
254
254
  const parsedOutput = {
255
255
  ...output,
256
256
  body: await parseErrorBody(output.body, context),
@@ -259,22 +259,22 @@ const deserializeAws_json1_1ListPriceListsCommandError = async (output, context)
259
259
  switch (errorCode) {
260
260
  case "AccessDeniedException":
261
261
  case "com.amazonaws.pricing#AccessDeniedException":
262
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
262
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
263
263
  case "ExpiredNextTokenException":
264
264
  case "com.amazonaws.pricing#ExpiredNextTokenException":
265
- throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
265
+ throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
266
266
  case "InternalErrorException":
267
267
  case "com.amazonaws.pricing#InternalErrorException":
268
- throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
268
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
269
269
  case "InvalidNextTokenException":
270
270
  case "com.amazonaws.pricing#InvalidNextTokenException":
271
- throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
271
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
272
272
  case "InvalidParameterException":
273
273
  case "com.amazonaws.pricing#InvalidParameterException":
274
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
274
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
275
275
  case "NotFoundException":
276
276
  case "com.amazonaws.pricing#NotFoundException":
277
- throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
277
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
278
278
  default:
279
279
  const parsedBody = parsedOutput.body;
280
280
  (0, smithy_client_1.throwDefaultError)({
@@ -285,61 +285,61 @@ const deserializeAws_json1_1ListPriceListsCommandError = async (output, context)
285
285
  });
286
286
  }
287
287
  };
288
- const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
288
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
289
289
  const body = parsedOutput.body;
290
- const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
290
+ const deserialized = de_AccessDeniedException(body, context);
291
291
  const exception = new models_0_1.AccessDeniedException({
292
292
  $metadata: deserializeMetadata(parsedOutput),
293
293
  ...deserialized,
294
294
  });
295
295
  return (0, smithy_client_1.decorateServiceException)(exception, body);
296
296
  };
297
- const deserializeAws_json1_1ExpiredNextTokenExceptionResponse = async (parsedOutput, context) => {
297
+ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
298
298
  const body = parsedOutput.body;
299
- const deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
299
+ const deserialized = de_ExpiredNextTokenException(body, context);
300
300
  const exception = new models_0_1.ExpiredNextTokenException({
301
301
  $metadata: deserializeMetadata(parsedOutput),
302
302
  ...deserialized,
303
303
  });
304
304
  return (0, smithy_client_1.decorateServiceException)(exception, body);
305
305
  };
306
- const deserializeAws_json1_1InternalErrorExceptionResponse = async (parsedOutput, context) => {
306
+ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
307
307
  const body = parsedOutput.body;
308
- const deserialized = deserializeAws_json1_1InternalErrorException(body, context);
308
+ const deserialized = de_InternalErrorException(body, context);
309
309
  const exception = new models_0_1.InternalErrorException({
310
310
  $metadata: deserializeMetadata(parsedOutput),
311
311
  ...deserialized,
312
312
  });
313
313
  return (0, smithy_client_1.decorateServiceException)(exception, body);
314
314
  };
315
- const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
315
+ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
316
316
  const body = parsedOutput.body;
317
- const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
317
+ const deserialized = de_InvalidNextTokenException(body, context);
318
318
  const exception = new models_0_1.InvalidNextTokenException({
319
319
  $metadata: deserializeMetadata(parsedOutput),
320
320
  ...deserialized,
321
321
  });
322
322
  return (0, smithy_client_1.decorateServiceException)(exception, body);
323
323
  };
324
- const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
324
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
325
325
  const body = parsedOutput.body;
326
- const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
326
+ const deserialized = de_InvalidParameterException(body, context);
327
327
  const exception = new models_0_1.InvalidParameterException({
328
328
  $metadata: deserializeMetadata(parsedOutput),
329
329
  ...deserialized,
330
330
  });
331
331
  return (0, smithy_client_1.decorateServiceException)(exception, body);
332
332
  };
333
- const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, context) => {
333
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
334
334
  const body = parsedOutput.body;
335
- const deserialized = deserializeAws_json1_1NotFoundException(body, context);
335
+ const deserialized = de_NotFoundException(body, context);
336
336
  const exception = new models_0_1.NotFoundException({
337
337
  $metadata: deserializeMetadata(parsedOutput),
338
338
  ...deserialized,
339
339
  });
340
340
  return (0, smithy_client_1.decorateServiceException)(exception, body);
341
341
  };
342
- const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
342
+ const se_DescribeServicesRequest = (input, context) => {
343
343
  return {
344
344
  ...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
345
345
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -347,21 +347,21 @@ const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
347
347
  ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
348
348
  };
349
349
  };
350
- const serializeAws_json1_1Filter = (input, context) => {
350
+ const se_Filter = (input, context) => {
351
351
  return {
352
352
  ...(input.Field != null && { Field: input.Field }),
353
353
  ...(input.Type != null && { Type: input.Type }),
354
354
  ...(input.Value != null && { Value: input.Value }),
355
355
  };
356
356
  };
357
- const serializeAws_json1_1Filters = (input, context) => {
357
+ const se_Filters = (input, context) => {
358
358
  return input
359
359
  .filter((e) => e != null)
360
360
  .map((entry) => {
361
- return serializeAws_json1_1Filter(entry, context);
361
+ return se_Filter(entry, context);
362
362
  });
363
363
  };
364
- const serializeAws_json1_1GetAttributeValuesRequest = (input, context) => {
364
+ const se_GetAttributeValuesRequest = (input, context) => {
365
365
  return {
366
366
  ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
367
367
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -369,22 +369,22 @@ const serializeAws_json1_1GetAttributeValuesRequest = (input, context) => {
369
369
  ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
370
370
  };
371
371
  };
372
- const serializeAws_json1_1GetPriceListFileUrlRequest = (input, context) => {
372
+ const se_GetPriceListFileUrlRequest = (input, context) => {
373
373
  return {
374
374
  ...(input.FileFormat != null && { FileFormat: input.FileFormat }),
375
375
  ...(input.PriceListArn != null && { PriceListArn: input.PriceListArn }),
376
376
  };
377
377
  };
378
- const serializeAws_json1_1GetProductsRequest = (input, context) => {
378
+ const se_GetProductsRequest = (input, context) => {
379
379
  return {
380
- ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
380
+ ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
381
381
  ...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
382
382
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
383
383
  ...(input.NextToken != null && { NextToken: input.NextToken }),
384
384
  ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
385
385
  };
386
386
  };
387
- const serializeAws_json1_1ListPriceListsRequest = (input, context) => {
387
+ const se_ListPriceListsRequest = (input, context) => {
388
388
  return {
389
389
  ...(input.CurrencyCode != null && { CurrencyCode: input.CurrencyCode }),
390
390
  ...(input.EffectiveDate != null && { EffectiveDate: Math.round(input.EffectiveDate.getTime() / 1000) }),
@@ -394,12 +394,12 @@ const serializeAws_json1_1ListPriceListsRequest = (input, context) => {
394
394
  ...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
395
395
  };
396
396
  };
397
- const deserializeAws_json1_1AccessDeniedException = (output, context) => {
397
+ const de_AccessDeniedException = (output, context) => {
398
398
  return {
399
399
  Message: (0, smithy_client_1.expectString)(output.Message),
400
400
  };
401
401
  };
402
- const deserializeAws_json1_1AttributeNameList = (output, context) => {
402
+ const de_AttributeNameList = (output, context) => {
403
403
  const retVal = (output || [])
404
404
  .filter((e) => e != null)
405
405
  .map((entry) => {
@@ -410,35 +410,35 @@ const deserializeAws_json1_1AttributeNameList = (output, context) => {
410
410
  });
411
411
  return retVal;
412
412
  };
413
- const deserializeAws_json1_1AttributeValue = (output, context) => {
413
+ const de_AttributeValue = (output, context) => {
414
414
  return {
415
415
  Value: (0, smithy_client_1.expectString)(output.Value),
416
416
  };
417
417
  };
418
- const deserializeAws_json1_1AttributeValueList = (output, context) => {
418
+ const de_AttributeValueList = (output, context) => {
419
419
  const retVal = (output || [])
420
420
  .filter((e) => e != null)
421
421
  .map((entry) => {
422
422
  if (entry === null) {
423
423
  return null;
424
424
  }
425
- return deserializeAws_json1_1AttributeValue(entry, context);
425
+ return de_AttributeValue(entry, context);
426
426
  });
427
427
  return retVal;
428
428
  };
429
- const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
429
+ const de_DescribeServicesResponse = (output, context) => {
430
430
  return {
431
431
  FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
432
432
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
433
- Services: output.Services != null ? deserializeAws_json1_1ServiceList(output.Services, context) : undefined,
433
+ Services: output.Services != null ? de_ServiceList(output.Services, context) : undefined,
434
434
  };
435
435
  };
436
- const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
436
+ const de_ExpiredNextTokenException = (output, context) => {
437
437
  return {
438
438
  Message: (0, smithy_client_1.expectString)(output.Message),
439
439
  };
440
440
  };
441
- const deserializeAws_json1_1FileFormats = (output, context) => {
441
+ const de_FileFormats = (output, context) => {
442
442
  const retVal = (output || [])
443
443
  .filter((e) => e != null)
444
444
  .map((entry) => {
@@ -449,61 +449,59 @@ const deserializeAws_json1_1FileFormats = (output, context) => {
449
449
  });
450
450
  return retVal;
451
451
  };
452
- const deserializeAws_json1_1GetAttributeValuesResponse = (output, context) => {
452
+ const de_GetAttributeValuesResponse = (output, context) => {
453
453
  return {
454
- AttributeValues: output.AttributeValues != null
455
- ? deserializeAws_json1_1AttributeValueList(output.AttributeValues, context)
456
- : undefined,
454
+ AttributeValues: output.AttributeValues != null ? de_AttributeValueList(output.AttributeValues, context) : undefined,
457
455
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
458
456
  };
459
457
  };
460
- const deserializeAws_json1_1GetPriceListFileUrlResponse = (output, context) => {
458
+ const de_GetPriceListFileUrlResponse = (output, context) => {
461
459
  return {
462
460
  Url: (0, smithy_client_1.expectString)(output.Url),
463
461
  };
464
462
  };
465
- const deserializeAws_json1_1GetProductsResponse = (output, context) => {
463
+ const de_GetProductsResponse = (output, context) => {
466
464
  return {
467
465
  FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
468
466
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
469
- PriceList: output.PriceList != null ? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context) : undefined,
467
+ PriceList: output.PriceList != null ? de_PriceListJsonItems(output.PriceList, context) : undefined,
470
468
  };
471
469
  };
472
- const deserializeAws_json1_1InternalErrorException = (output, context) => {
470
+ const de_InternalErrorException = (output, context) => {
473
471
  return {
474
472
  Message: (0, smithy_client_1.expectString)(output.Message),
475
473
  };
476
474
  };
477
- const deserializeAws_json1_1InvalidNextTokenException = (output, context) => {
475
+ const de_InvalidNextTokenException = (output, context) => {
478
476
  return {
479
477
  Message: (0, smithy_client_1.expectString)(output.Message),
480
478
  };
481
479
  };
482
- const deserializeAws_json1_1InvalidParameterException = (output, context) => {
480
+ const de_InvalidParameterException = (output, context) => {
483
481
  return {
484
482
  Message: (0, smithy_client_1.expectString)(output.Message),
485
483
  };
486
484
  };
487
- const deserializeAws_json1_1ListPriceListsResponse = (output, context) => {
485
+ const de_ListPriceListsResponse = (output, context) => {
488
486
  return {
489
487
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
490
- PriceLists: output.PriceLists != null ? deserializeAws_json1_1PriceLists(output.PriceLists, context) : undefined,
488
+ PriceLists: output.PriceLists != null ? de_PriceLists(output.PriceLists, context) : undefined,
491
489
  };
492
490
  };
493
- const deserializeAws_json1_1NotFoundException = (output, context) => {
491
+ const de_NotFoundException = (output, context) => {
494
492
  return {
495
493
  Message: (0, smithy_client_1.expectString)(output.Message),
496
494
  };
497
495
  };
498
- const deserializeAws_json1_1PriceList = (output, context) => {
496
+ const de_PriceList = (output, context) => {
499
497
  return {
500
498
  CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
501
- FileFormats: output.FileFormats != null ? deserializeAws_json1_1FileFormats(output.FileFormats, context) : undefined,
499
+ FileFormats: output.FileFormats != null ? de_FileFormats(output.FileFormats, context) : undefined,
502
500
  PriceListArn: (0, smithy_client_1.expectString)(output.PriceListArn),
503
501
  RegionCode: (0, smithy_client_1.expectString)(output.RegionCode),
504
502
  };
505
503
  };
506
- const deserializeAws_json1_1PriceListJsonItems = (output, context) => {
504
+ const de_PriceListJsonItems = (output, context) => {
507
505
  const retVal = (output || [])
508
506
  .filter((e) => e != null)
509
507
  .map((entry) => {
@@ -514,33 +512,31 @@ const deserializeAws_json1_1PriceListJsonItems = (output, context) => {
514
512
  });
515
513
  return retVal;
516
514
  };
517
- const deserializeAws_json1_1PriceLists = (output, context) => {
515
+ const de_PriceLists = (output, context) => {
518
516
  const retVal = (output || [])
519
517
  .filter((e) => e != null)
520
518
  .map((entry) => {
521
519
  if (entry === null) {
522
520
  return null;
523
521
  }
524
- return deserializeAws_json1_1PriceList(entry, context);
522
+ return de_PriceList(entry, context);
525
523
  });
526
524
  return retVal;
527
525
  };
528
- const deserializeAws_json1_1Service = (output, context) => {
526
+ const de_Service = (output, context) => {
529
527
  return {
530
- AttributeNames: output.AttributeNames != null
531
- ? deserializeAws_json1_1AttributeNameList(output.AttributeNames, context)
532
- : undefined,
528
+ AttributeNames: output.AttributeNames != null ? de_AttributeNameList(output.AttributeNames, context) : undefined,
533
529
  ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
534
530
  };
535
531
  };
536
- const deserializeAws_json1_1ServiceList = (output, context) => {
532
+ const de_ServiceList = (output, context) => {
537
533
  const retVal = (output || [])
538
534
  .filter((e) => e != null)
539
535
  .map((entry) => {
540
536
  if (entry === null) {
541
537
  return null;
542
538
  }
543
- return deserializeAws_json1_1Service(entry, context);
539
+ return de_Service(entry, context);
544
540
  });
545
541
  return retVal;
546
542
  };
@@ -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_json1_1DescribeServicesCommand, serializeAws_json1_1DescribeServicesCommand, } from "../protocols/Aws_json1_1";
4
+ import { de_DescribeServicesCommand, se_DescribeServicesCommand } from "../protocols/Aws_json1_1";
5
5
  export class DescribeServicesCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class DescribeServicesCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_json1_1DescribeServicesCommand(input, context);
36
+ return se_DescribeServicesCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_json1_1DescribeServicesCommand(output, context);
39
+ return de_DescribeServicesCommand(output, context);
40
40
  }
41
41
  }