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