@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.
- package/dist-cjs/commands/DescribeServicesCommand.js +2 -2
- package/dist-cjs/commands/GetAttributeValuesCommand.js +2 -2
- package/dist-cjs/commands/GetPriceListFileUrlCommand.js +2 -2
- package/dist-cjs/commands/GetProductsCommand.js +2 -2
- package/dist-cjs/commands/ListPriceListsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +116 -120
- package/dist-es/commands/DescribeServicesCommand.js +3 -3
- package/dist-es/commands/GetAttributeValuesCommand.js +3 -3
- package/dist-es/commands/GetPriceListFileUrlCommand.js +3 -3
- package/dist-es/commands/GetProductsCommand.js +3 -3
- package/dist-es/commands/ListPriceListsCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +105 -109
- package/dist-types/protocols/Aws_json1_1.d.ts +40 -10
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +10 -10
- package/package.json +29 -29
|
@@ -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
|
|
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(
|
|
11
|
+
body = JSON.stringify(se_DescribeServicesRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
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(
|
|
20
|
+
body = JSON.stringify(se_GetAttributeValuesRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
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(
|
|
29
|
+
body = JSON.stringify(se_GetPriceListFileUrlRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
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(
|
|
38
|
+
body = JSON.stringify(se_GetProductsRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
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(
|
|
47
|
+
body = JSON.stringify(se_ListPriceListsRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const de_DescribeServicesCommand = async (output, context) => {
|
|
51
51
|
if (output.statusCode >= 300) {
|
|
52
|
-
return
|
|
52
|
+
return de_DescribeServicesCommandError(output, context);
|
|
53
53
|
}
|
|
54
54
|
const data = await parseBody(output.body, context);
|
|
55
55
|
let contents = {};
|
|
56
|
-
contents =
|
|
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
|
|
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
|
|
72
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
73
73
|
case "InternalErrorException":
|
|
74
74
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
75
|
-
throw await
|
|
75
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
76
76
|
case "InvalidNextTokenException":
|
|
77
77
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
78
|
-
throw await
|
|
78
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
79
79
|
case "InvalidParameterException":
|
|
80
80
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
81
|
-
throw await
|
|
81
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
82
82
|
case "NotFoundException":
|
|
83
83
|
case "com.amazonaws.pricing#NotFoundException":
|
|
84
|
-
throw await
|
|
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
|
|
95
|
+
export const de_GetAttributeValuesCommand = async (output, context) => {
|
|
96
96
|
if (output.statusCode >= 300) {
|
|
97
|
-
return
|
|
97
|
+
return de_GetAttributeValuesCommandError(output, context);
|
|
98
98
|
}
|
|
99
99
|
const data = await parseBody(output.body, context);
|
|
100
100
|
let contents = {};
|
|
101
|
-
contents =
|
|
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
|
|
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
|
|
117
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
118
118
|
case "InternalErrorException":
|
|
119
119
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
121
121
|
case "InvalidNextTokenException":
|
|
122
122
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
123
|
-
throw await
|
|
123
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
124
124
|
case "InvalidParameterException":
|
|
125
125
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
126
|
-
throw await
|
|
126
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
127
127
|
case "NotFoundException":
|
|
128
128
|
case "com.amazonaws.pricing#NotFoundException":
|
|
129
|
-
throw await
|
|
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
|
|
140
|
+
export const de_GetPriceListFileUrlCommand = async (output, context) => {
|
|
141
141
|
if (output.statusCode >= 300) {
|
|
142
|
-
return
|
|
142
|
+
return de_GetPriceListFileUrlCommandError(output, context);
|
|
143
143
|
}
|
|
144
144
|
const data = await parseBody(output.body, context);
|
|
145
145
|
let contents = {};
|
|
146
|
-
contents =
|
|
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
|
|
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
|
|
162
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
163
163
|
case "InternalErrorException":
|
|
164
164
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
166
166
|
case "InvalidParameterException":
|
|
167
167
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
168
|
-
throw await
|
|
168
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
169
169
|
case "NotFoundException":
|
|
170
170
|
case "com.amazonaws.pricing#NotFoundException":
|
|
171
|
-
throw await
|
|
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
|
|
182
|
+
export const de_GetProductsCommand = async (output, context) => {
|
|
183
183
|
if (output.statusCode >= 300) {
|
|
184
|
-
return
|
|
184
|
+
return de_GetProductsCommandError(output, context);
|
|
185
185
|
}
|
|
186
186
|
const data = await parseBody(output.body, context);
|
|
187
187
|
let contents = {};
|
|
188
|
-
contents =
|
|
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
|
|
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
|
|
204
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
205
205
|
case "InternalErrorException":
|
|
206
206
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
208
208
|
case "InvalidNextTokenException":
|
|
209
209
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
211
211
|
case "InvalidParameterException":
|
|
212
212
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
214
214
|
case "NotFoundException":
|
|
215
215
|
case "com.amazonaws.pricing#NotFoundException":
|
|
216
|
-
throw await
|
|
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
|
|
227
|
+
export const de_ListPriceListsCommand = async (output, context) => {
|
|
228
228
|
if (output.statusCode >= 300) {
|
|
229
|
-
return
|
|
229
|
+
return de_ListPriceListsCommandError(output, context);
|
|
230
230
|
}
|
|
231
231
|
const data = await parseBody(output.body, context);
|
|
232
232
|
let contents = {};
|
|
233
|
-
contents =
|
|
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
|
|
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
|
|
249
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
250
250
|
case "ExpiredNextTokenException":
|
|
251
251
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
252
|
-
throw await
|
|
252
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
253
253
|
case "InternalErrorException":
|
|
254
254
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
255
|
-
throw await
|
|
255
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
256
256
|
case "InvalidNextTokenException":
|
|
257
257
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
258
|
-
throw await
|
|
258
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
259
259
|
case "InvalidParameterException":
|
|
260
260
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
261
|
-
throw await
|
|
261
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
262
262
|
case "NotFoundException":
|
|
263
263
|
case "com.amazonaws.pricing#NotFoundException":
|
|
264
|
-
throw await
|
|
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
|
|
275
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
276
276
|
const body = parsedOutput.body;
|
|
277
|
-
const deserialized =
|
|
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
|
|
284
|
+
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
285
285
|
const body = parsedOutput.body;
|
|
286
|
-
const deserialized =
|
|
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
|
|
293
|
+
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
294
294
|
const body = parsedOutput.body;
|
|
295
|
-
const deserialized =
|
|
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
|
|
302
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
303
303
|
const body = parsedOutput.body;
|
|
304
|
-
const deserialized =
|
|
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
|
|
311
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
312
312
|
const body = parsedOutput.body;
|
|
313
|
-
const deserialized =
|
|
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
|
|
320
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
321
321
|
const body = parsedOutput.body;
|
|
322
|
-
const deserialized =
|
|
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
|
|
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
|
|
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
|
|
344
|
+
const se_Filters = (input, context) => {
|
|
345
345
|
return input
|
|
346
346
|
.filter((e) => e != null)
|
|
347
347
|
.map((entry) => {
|
|
348
|
-
return
|
|
348
|
+
return se_Filter(entry, context);
|
|
349
349
|
});
|
|
350
350
|
};
|
|
351
|
-
const
|
|
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
|
|
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
|
|
365
|
+
const se_GetProductsRequest = (input, context) => {
|
|
366
366
|
return {
|
|
367
|
-
...(input.Filters != null && { Filters:
|
|
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
|
|
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
|
|
384
|
+
const de_AccessDeniedException = (output, context) => {
|
|
385
385
|
return {
|
|
386
386
|
Message: __expectString(output.Message),
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
|
-
const
|
|
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
|
|
400
|
+
const de_AttributeValue = (output, context) => {
|
|
401
401
|
return {
|
|
402
402
|
Value: __expectString(output.Value),
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
|
-
const
|
|
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
|
|
412
|
+
return de_AttributeValue(entry, context);
|
|
413
413
|
});
|
|
414
414
|
return retVal;
|
|
415
415
|
};
|
|
416
|
-
const
|
|
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 ?
|
|
420
|
+
Services: output.Services != null ? de_ServiceList(output.Services, context) : undefined,
|
|
421
421
|
};
|
|
422
422
|
};
|
|
423
|
-
const
|
|
423
|
+
const de_ExpiredNextTokenException = (output, context) => {
|
|
424
424
|
return {
|
|
425
425
|
Message: __expectString(output.Message),
|
|
426
426
|
};
|
|
427
427
|
};
|
|
428
|
-
const
|
|
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
|
|
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
|
|
445
|
+
const de_GetPriceListFileUrlResponse = (output, context) => {
|
|
448
446
|
return {
|
|
449
447
|
Url: __expectString(output.Url),
|
|
450
448
|
};
|
|
451
449
|
};
|
|
452
|
-
const
|
|
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 ?
|
|
454
|
+
PriceList: output.PriceList != null ? de_PriceListJsonItems(output.PriceList, context) : undefined,
|
|
457
455
|
};
|
|
458
456
|
};
|
|
459
|
-
const
|
|
457
|
+
const de_InternalErrorException = (output, context) => {
|
|
460
458
|
return {
|
|
461
459
|
Message: __expectString(output.Message),
|
|
462
460
|
};
|
|
463
461
|
};
|
|
464
|
-
const
|
|
462
|
+
const de_InvalidNextTokenException = (output, context) => {
|
|
465
463
|
return {
|
|
466
464
|
Message: __expectString(output.Message),
|
|
467
465
|
};
|
|
468
466
|
};
|
|
469
|
-
const
|
|
467
|
+
const de_InvalidParameterException = (output, context) => {
|
|
470
468
|
return {
|
|
471
469
|
Message: __expectString(output.Message),
|
|
472
470
|
};
|
|
473
471
|
};
|
|
474
|
-
const
|
|
472
|
+
const de_ListPriceListsResponse = (output, context) => {
|
|
475
473
|
return {
|
|
476
474
|
NextToken: __expectString(output.NextToken),
|
|
477
|
-
PriceLists: output.PriceLists != null ?
|
|
475
|
+
PriceLists: output.PriceLists != null ? de_PriceLists(output.PriceLists, context) : undefined,
|
|
478
476
|
};
|
|
479
477
|
};
|
|
480
|
-
const
|
|
478
|
+
const de_NotFoundException = (output, context) => {
|
|
481
479
|
return {
|
|
482
480
|
Message: __expectString(output.Message),
|
|
483
481
|
};
|
|
484
482
|
};
|
|
485
|
-
const
|
|
483
|
+
const de_PriceList = (output, context) => {
|
|
486
484
|
return {
|
|
487
485
|
CurrencyCode: __expectString(output.CurrencyCode),
|
|
488
|
-
FileFormats: output.FileFormats != null ?
|
|
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
|
|
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
|
|
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
|
|
509
|
+
return de_PriceList(entry, context);
|
|
512
510
|
});
|
|
513
511
|
return retVal;
|
|
514
512
|
};
|
|
515
|
-
const
|
|
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
|
|
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
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
|
|
17
|
-
|
|
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>;
|