@aws-sdk/client-pricing 3.312.0 → 3.316.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/Pricing.js +9 -70
- package/dist-cjs/protocols/Aws_json1_1.js +37 -217
- package/dist-es/Pricing.js +9 -70
- package/dist-es/protocols/Aws_json1_1.js +38 -218
- package/dist-types/Pricing.d.ts +33 -65
- package/dist-types/ts3.4/Pricing.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/Pricing.js
CHANGED
|
@@ -1,82 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Pricing = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const DescribeServicesCommand_1 = require("./commands/DescribeServicesCommand");
|
|
5
6
|
const GetAttributeValuesCommand_1 = require("./commands/GetAttributeValuesCommand");
|
|
6
7
|
const GetPriceListFileUrlCommand_1 = require("./commands/GetPriceListFileUrlCommand");
|
|
7
8
|
const GetProductsCommand_1 = require("./commands/GetProductsCommand");
|
|
8
9
|
const ListPriceListsCommand_1 = require("./commands/ListPriceListsCommand");
|
|
9
10
|
const PricingClient_1 = require("./PricingClient");
|
|
11
|
+
const commands = {
|
|
12
|
+
DescribeServicesCommand: DescribeServicesCommand_1.DescribeServicesCommand,
|
|
13
|
+
GetAttributeValuesCommand: GetAttributeValuesCommand_1.GetAttributeValuesCommand,
|
|
14
|
+
GetPriceListFileUrlCommand: GetPriceListFileUrlCommand_1.GetPriceListFileUrlCommand,
|
|
15
|
+
GetProductsCommand: GetProductsCommand_1.GetProductsCommand,
|
|
16
|
+
ListPriceListsCommand: ListPriceListsCommand_1.ListPriceListsCommand,
|
|
17
|
+
};
|
|
10
18
|
class Pricing extends PricingClient_1.PricingClient {
|
|
11
|
-
describeServices(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new DescribeServicesCommand_1.DescribeServicesCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
getAttributeValues(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new GetAttributeValuesCommand_1.GetAttributeValuesCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
getPriceListFileUrl(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new GetPriceListFileUrlCommand_1.GetPriceListFileUrlCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
getProducts(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new GetProductsCommand_1.GetProductsCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
listPriceLists(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new ListPriceListsCommand_1.ListPriceListsCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
19
|
}
|
|
82
20
|
exports.Pricing = Pricing;
|
|
21
|
+
(0, smithy_client_1.createAggregatedClient)(commands, Pricing);
|
|
@@ -8,28 +8,28 @@ const PricingServiceException_1 = require("../models/PricingServiceException");
|
|
|
8
8
|
const se_DescribeServicesCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("DescribeServices");
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
14
|
exports.se_DescribeServicesCommand = se_DescribeServicesCommand;
|
|
15
15
|
const se_GetAttributeValuesCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("GetAttributeValues");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_GetAttributeValuesCommand = se_GetAttributeValuesCommand;
|
|
22
22
|
const se_GetPriceListFileUrlCommand = async (input, context) => {
|
|
23
23
|
const headers = sharedHeaders("GetPriceListFileUrl");
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.se_GetPriceListFileUrlCommand = se_GetPriceListFileUrlCommand;
|
|
29
29
|
const se_GetProductsCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("GetProducts");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_GetProductsCommand = se_GetProductsCommand;
|
|
@@ -46,12 +46,12 @@ const de_DescribeServicesCommand = async (output, context) => {
|
|
|
46
46
|
}
|
|
47
47
|
const data = await parseBody(output.body, context);
|
|
48
48
|
let contents = {};
|
|
49
|
-
contents =
|
|
49
|
+
contents = (0, smithy_client_1._json)(data);
|
|
50
50
|
const response = {
|
|
51
51
|
$metadata: deserializeMetadata(output),
|
|
52
52
|
...contents,
|
|
53
53
|
};
|
|
54
|
-
return
|
|
54
|
+
return response;
|
|
55
55
|
};
|
|
56
56
|
exports.de_DescribeServicesCommand = de_DescribeServicesCommand;
|
|
57
57
|
const de_DescribeServicesCommandError = async (output, context) => {
|
|
@@ -78,10 +78,9 @@ const de_DescribeServicesCommandError = async (output, context) => {
|
|
|
78
78
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
79
79
|
default:
|
|
80
80
|
const parsedBody = parsedOutput.body;
|
|
81
|
-
|
|
81
|
+
return throwDefaultError({
|
|
82
82
|
output,
|
|
83
83
|
parsedBody,
|
|
84
|
-
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
85
84
|
errorCode,
|
|
86
85
|
});
|
|
87
86
|
}
|
|
@@ -92,12 +91,12 @@ const de_GetAttributeValuesCommand = async (output, context) => {
|
|
|
92
91
|
}
|
|
93
92
|
const data = await parseBody(output.body, context);
|
|
94
93
|
let contents = {};
|
|
95
|
-
contents =
|
|
94
|
+
contents = (0, smithy_client_1._json)(data);
|
|
96
95
|
const response = {
|
|
97
96
|
$metadata: deserializeMetadata(output),
|
|
98
97
|
...contents,
|
|
99
98
|
};
|
|
100
|
-
return
|
|
99
|
+
return response;
|
|
101
100
|
};
|
|
102
101
|
exports.de_GetAttributeValuesCommand = de_GetAttributeValuesCommand;
|
|
103
102
|
const de_GetAttributeValuesCommandError = async (output, context) => {
|
|
@@ -124,10 +123,9 @@ const de_GetAttributeValuesCommandError = async (output, context) => {
|
|
|
124
123
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
125
124
|
default:
|
|
126
125
|
const parsedBody = parsedOutput.body;
|
|
127
|
-
|
|
126
|
+
return throwDefaultError({
|
|
128
127
|
output,
|
|
129
128
|
parsedBody,
|
|
130
|
-
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
131
129
|
errorCode,
|
|
132
130
|
});
|
|
133
131
|
}
|
|
@@ -138,12 +136,12 @@ const de_GetPriceListFileUrlCommand = async (output, context) => {
|
|
|
138
136
|
}
|
|
139
137
|
const data = await parseBody(output.body, context);
|
|
140
138
|
let contents = {};
|
|
141
|
-
contents =
|
|
139
|
+
contents = (0, smithy_client_1._json)(data);
|
|
142
140
|
const response = {
|
|
143
141
|
$metadata: deserializeMetadata(output),
|
|
144
142
|
...contents,
|
|
145
143
|
};
|
|
146
|
-
return
|
|
144
|
+
return response;
|
|
147
145
|
};
|
|
148
146
|
exports.de_GetPriceListFileUrlCommand = de_GetPriceListFileUrlCommand;
|
|
149
147
|
const de_GetPriceListFileUrlCommandError = async (output, context) => {
|
|
@@ -167,10 +165,9 @@ const de_GetPriceListFileUrlCommandError = async (output, context) => {
|
|
|
167
165
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
168
166
|
default:
|
|
169
167
|
const parsedBody = parsedOutput.body;
|
|
170
|
-
|
|
168
|
+
return throwDefaultError({
|
|
171
169
|
output,
|
|
172
170
|
parsedBody,
|
|
173
|
-
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
174
171
|
errorCode,
|
|
175
172
|
});
|
|
176
173
|
}
|
|
@@ -186,7 +183,7 @@ const de_GetProductsCommand = async (output, context) => {
|
|
|
186
183
|
$metadata: deserializeMetadata(output),
|
|
187
184
|
...contents,
|
|
188
185
|
};
|
|
189
|
-
return
|
|
186
|
+
return response;
|
|
190
187
|
};
|
|
191
188
|
exports.de_GetProductsCommand = de_GetProductsCommand;
|
|
192
189
|
const de_GetProductsCommandError = async (output, context) => {
|
|
@@ -213,10 +210,9 @@ const de_GetProductsCommandError = async (output, context) => {
|
|
|
213
210
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
214
211
|
default:
|
|
215
212
|
const parsedBody = parsedOutput.body;
|
|
216
|
-
|
|
213
|
+
return throwDefaultError({
|
|
217
214
|
output,
|
|
218
215
|
parsedBody,
|
|
219
|
-
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
220
216
|
errorCode,
|
|
221
217
|
});
|
|
222
218
|
}
|
|
@@ -227,12 +223,12 @@ const de_ListPriceListsCommand = async (output, context) => {
|
|
|
227
223
|
}
|
|
228
224
|
const data = await parseBody(output.body, context);
|
|
229
225
|
let contents = {};
|
|
230
|
-
contents =
|
|
226
|
+
contents = (0, smithy_client_1._json)(data);
|
|
231
227
|
const response = {
|
|
232
228
|
$metadata: deserializeMetadata(output),
|
|
233
229
|
...contents,
|
|
234
230
|
};
|
|
235
|
-
return
|
|
231
|
+
return response;
|
|
236
232
|
};
|
|
237
233
|
exports.de_ListPriceListsCommand = de_ListPriceListsCommand;
|
|
238
234
|
const de_ListPriceListsCommandError = async (output, context) => {
|
|
@@ -262,17 +258,16 @@ const de_ListPriceListsCommandError = async (output, context) => {
|
|
|
262
258
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
263
259
|
default:
|
|
264
260
|
const parsedBody = parsedOutput.body;
|
|
265
|
-
|
|
261
|
+
return throwDefaultError({
|
|
266
262
|
output,
|
|
267
263
|
parsedBody,
|
|
268
|
-
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
269
264
|
errorCode,
|
|
270
265
|
});
|
|
271
266
|
}
|
|
272
267
|
};
|
|
273
268
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
274
269
|
const body = parsedOutput.body;
|
|
275
|
-
const deserialized =
|
|
270
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
276
271
|
const exception = new models_0_1.AccessDeniedException({
|
|
277
272
|
$metadata: deserializeMetadata(parsedOutput),
|
|
278
273
|
...deserialized,
|
|
@@ -281,7 +276,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
281
276
|
};
|
|
282
277
|
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
283
278
|
const body = parsedOutput.body;
|
|
284
|
-
const deserialized =
|
|
279
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
285
280
|
const exception = new models_0_1.ExpiredNextTokenException({
|
|
286
281
|
$metadata: deserializeMetadata(parsedOutput),
|
|
287
282
|
...deserialized,
|
|
@@ -290,7 +285,7 @@ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
290
285
|
};
|
|
291
286
|
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
292
287
|
const body = parsedOutput.body;
|
|
293
|
-
const deserialized =
|
|
288
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
294
289
|
const exception = new models_0_1.InternalErrorException({
|
|
295
290
|
$metadata: deserializeMetadata(parsedOutput),
|
|
296
291
|
...deserialized,
|
|
@@ -299,7 +294,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
299
294
|
};
|
|
300
295
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
301
296
|
const body = parsedOutput.body;
|
|
302
|
-
const deserialized =
|
|
297
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
303
298
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
304
299
|
$metadata: deserializeMetadata(parsedOutput),
|
|
305
300
|
...deserialized,
|
|
@@ -308,7 +303,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
308
303
|
};
|
|
309
304
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
310
305
|
const body = parsedOutput.body;
|
|
311
|
-
const deserialized =
|
|
306
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
312
307
|
const exception = new models_0_1.InvalidParameterException({
|
|
313
308
|
$metadata: deserializeMetadata(parsedOutput),
|
|
314
309
|
...deserialized,
|
|
@@ -317,214 +312,38 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
317
312
|
};
|
|
318
313
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
319
314
|
const body = parsedOutput.body;
|
|
320
|
-
const deserialized =
|
|
315
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
321
316
|
const exception = new models_0_1.NotFoundException({
|
|
322
317
|
$metadata: deserializeMetadata(parsedOutput),
|
|
323
318
|
...deserialized,
|
|
324
319
|
});
|
|
325
320
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
326
321
|
};
|
|
327
|
-
const se_DescribeServicesRequest = (input, context) => {
|
|
328
|
-
return {
|
|
329
|
-
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
330
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
331
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
332
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
const se_Filter = (input, context) => {
|
|
336
|
-
return {
|
|
337
|
-
...(input.Field != null && { Field: input.Field }),
|
|
338
|
-
...(input.Type != null && { Type: input.Type }),
|
|
339
|
-
...(input.Value != null && { Value: input.Value }),
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
const se_Filters = (input, context) => {
|
|
343
|
-
return input
|
|
344
|
-
.filter((e) => e != null)
|
|
345
|
-
.map((entry) => {
|
|
346
|
-
return se_Filter(entry, context);
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
const se_GetAttributeValuesRequest = (input, context) => {
|
|
350
|
-
return {
|
|
351
|
-
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
352
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
353
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
354
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
const se_GetPriceListFileUrlRequest = (input, context) => {
|
|
358
|
-
return {
|
|
359
|
-
...(input.FileFormat != null && { FileFormat: input.FileFormat }),
|
|
360
|
-
...(input.PriceListArn != null && { PriceListArn: input.PriceListArn }),
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
const se_GetProductsRequest = (input, context) => {
|
|
364
|
-
return {
|
|
365
|
-
...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
|
|
366
|
-
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
367
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
368
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
369
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
322
|
const se_ListPriceListsRequest = (input, context) => {
|
|
373
|
-
return {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
const de_AccessDeniedException = (output, context) => {
|
|
383
|
-
return {
|
|
384
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
const de_AttributeNameList = (output, context) => {
|
|
388
|
-
const retVal = (output || [])
|
|
389
|
-
.filter((e) => e != null)
|
|
390
|
-
.map((entry) => {
|
|
391
|
-
if (entry === null) {
|
|
392
|
-
return null;
|
|
393
|
-
}
|
|
394
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
395
|
-
});
|
|
396
|
-
return retVal;
|
|
397
|
-
};
|
|
398
|
-
const de_AttributeValue = (output, context) => {
|
|
399
|
-
return {
|
|
400
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
const de_AttributeValueList = (output, context) => {
|
|
404
|
-
const retVal = (output || [])
|
|
405
|
-
.filter((e) => e != null)
|
|
406
|
-
.map((entry) => {
|
|
407
|
-
if (entry === null) {
|
|
408
|
-
return null;
|
|
409
|
-
}
|
|
410
|
-
return de_AttributeValue(entry, context);
|
|
411
|
-
});
|
|
412
|
-
return retVal;
|
|
413
|
-
};
|
|
414
|
-
const de_DescribeServicesResponse = (output, context) => {
|
|
415
|
-
return {
|
|
416
|
-
FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
|
|
417
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
418
|
-
Services: output.Services != null ? de_ServiceList(output.Services, context) : undefined,
|
|
419
|
-
};
|
|
420
|
-
};
|
|
421
|
-
const de_ExpiredNextTokenException = (output, context) => {
|
|
422
|
-
return {
|
|
423
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
const de_FileFormats = (output, context) => {
|
|
427
|
-
const retVal = (output || [])
|
|
428
|
-
.filter((e) => e != null)
|
|
429
|
-
.map((entry) => {
|
|
430
|
-
if (entry === null) {
|
|
431
|
-
return null;
|
|
432
|
-
}
|
|
433
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
323
|
+
return (0, smithy_client_1.take)(input, {
|
|
324
|
+
CurrencyCode: [],
|
|
325
|
+
EffectiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
326
|
+
MaxResults: [],
|
|
327
|
+
NextToken: [],
|
|
328
|
+
RegionCode: [],
|
|
329
|
+
ServiceCode: [],
|
|
434
330
|
});
|
|
435
|
-
return retVal;
|
|
436
|
-
};
|
|
437
|
-
const de_GetAttributeValuesResponse = (output, context) => {
|
|
438
|
-
return {
|
|
439
|
-
AttributeValues: output.AttributeValues != null ? de_AttributeValueList(output.AttributeValues, context) : undefined,
|
|
440
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
const de_GetPriceListFileUrlResponse = (output, context) => {
|
|
444
|
-
return {
|
|
445
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
446
|
-
};
|
|
447
331
|
};
|
|
448
332
|
const de_GetProductsResponse = (output, context) => {
|
|
449
|
-
return {
|
|
450
|
-
FormatVersion:
|
|
451
|
-
NextToken:
|
|
452
|
-
PriceList:
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
const de_InternalErrorException = (output, context) => {
|
|
456
|
-
return {
|
|
457
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
458
|
-
};
|
|
459
|
-
};
|
|
460
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
461
|
-
return {
|
|
462
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
const de_InvalidParameterException = (output, context) => {
|
|
466
|
-
return {
|
|
467
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
const de_ListPriceListsResponse = (output, context) => {
|
|
471
|
-
return {
|
|
472
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
473
|
-
PriceLists: output.PriceLists != null ? de_PriceLists(output.PriceLists, context) : undefined,
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
const de_NotFoundException = (output, context) => {
|
|
477
|
-
return {
|
|
478
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
const de_PriceList = (output, context) => {
|
|
482
|
-
return {
|
|
483
|
-
CurrencyCode: (0, smithy_client_1.expectString)(output.CurrencyCode),
|
|
484
|
-
FileFormats: output.FileFormats != null ? de_FileFormats(output.FileFormats, context) : undefined,
|
|
485
|
-
PriceListArn: (0, smithy_client_1.expectString)(output.PriceListArn),
|
|
486
|
-
RegionCode: (0, smithy_client_1.expectString)(output.RegionCode),
|
|
487
|
-
};
|
|
333
|
+
return (0, smithy_client_1.take)(output, {
|
|
334
|
+
FormatVersion: smithy_client_1.expectString,
|
|
335
|
+
NextToken: smithy_client_1.expectString,
|
|
336
|
+
PriceList: (_) => de_PriceListJsonItems(_, context),
|
|
337
|
+
});
|
|
488
338
|
};
|
|
489
339
|
const de_PriceListJsonItems = (output, context) => {
|
|
490
340
|
const retVal = (output || [])
|
|
491
341
|
.filter((e) => e != null)
|
|
492
342
|
.map((entry) => {
|
|
493
|
-
if (entry === null) {
|
|
494
|
-
return null;
|
|
495
|
-
}
|
|
496
343
|
return new smithy_client_1.LazyJsonString(entry);
|
|
497
344
|
});
|
|
498
345
|
return retVal;
|
|
499
346
|
};
|
|
500
|
-
const de_PriceLists = (output, context) => {
|
|
501
|
-
const retVal = (output || [])
|
|
502
|
-
.filter((e) => e != null)
|
|
503
|
-
.map((entry) => {
|
|
504
|
-
if (entry === null) {
|
|
505
|
-
return null;
|
|
506
|
-
}
|
|
507
|
-
return de_PriceList(entry, context);
|
|
508
|
-
});
|
|
509
|
-
return retVal;
|
|
510
|
-
};
|
|
511
|
-
const de_Service = (output, context) => {
|
|
512
|
-
return {
|
|
513
|
-
AttributeNames: output.AttributeNames != null ? de_AttributeNameList(output.AttributeNames, context) : undefined,
|
|
514
|
-
ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
const de_ServiceList = (output, context) => {
|
|
518
|
-
const retVal = (output || [])
|
|
519
|
-
.filter((e) => e != null)
|
|
520
|
-
.map((entry) => {
|
|
521
|
-
if (entry === null) {
|
|
522
|
-
return null;
|
|
523
|
-
}
|
|
524
|
-
return de_Service(entry, context);
|
|
525
|
-
});
|
|
526
|
-
return retVal;
|
|
527
|
-
};
|
|
528
347
|
const deserializeMetadata = (output) => ({
|
|
529
348
|
httpStatusCode: output.statusCode,
|
|
530
349
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -538,6 +357,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
538
357
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
539
358
|
};
|
|
540
359
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
360
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(PricingServiceException_1.PricingServiceException);
|
|
541
361
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
542
362
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
543
363
|
const contents = {
|
package/dist-es/Pricing.js
CHANGED
|
@@ -1,78 +1,17 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { DescribeServicesCommand, } from "./commands/DescribeServicesCommand";
|
|
2
3
|
import { GetAttributeValuesCommand, } from "./commands/GetAttributeValuesCommand";
|
|
3
4
|
import { GetPriceListFileUrlCommand, } from "./commands/GetPriceListFileUrlCommand";
|
|
4
5
|
import { GetProductsCommand } from "./commands/GetProductsCommand";
|
|
5
6
|
import { ListPriceListsCommand, } from "./commands/ListPriceListsCommand";
|
|
6
7
|
import { PricingClient } from "./PricingClient";
|
|
8
|
+
const commands = {
|
|
9
|
+
DescribeServicesCommand,
|
|
10
|
+
GetAttributeValuesCommand,
|
|
11
|
+
GetPriceListFileUrlCommand,
|
|
12
|
+
GetProductsCommand,
|
|
13
|
+
ListPriceListsCommand,
|
|
14
|
+
};
|
|
7
15
|
export class Pricing extends PricingClient {
|
|
8
|
-
describeServices(args, optionsOrCb, cb) {
|
|
9
|
-
const command = new DescribeServicesCommand(args);
|
|
10
|
-
if (typeof optionsOrCb === "function") {
|
|
11
|
-
this.send(command, optionsOrCb);
|
|
12
|
-
}
|
|
13
|
-
else if (typeof cb === "function") {
|
|
14
|
-
if (typeof optionsOrCb !== "object")
|
|
15
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
16
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
getAttributeValues(args, optionsOrCb, cb) {
|
|
23
|
-
const command = new GetAttributeValuesCommand(args);
|
|
24
|
-
if (typeof optionsOrCb === "function") {
|
|
25
|
-
this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
else if (typeof cb === "function") {
|
|
28
|
-
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
getPriceListFileUrl(args, optionsOrCb, cb) {
|
|
37
|
-
const command = new GetPriceListFileUrlCommand(args);
|
|
38
|
-
if (typeof optionsOrCb === "function") {
|
|
39
|
-
this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
else if (typeof cb === "function") {
|
|
42
|
-
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
getProducts(args, optionsOrCb, cb) {
|
|
51
|
-
const command = new GetProductsCommand(args);
|
|
52
|
-
if (typeof optionsOrCb === "function") {
|
|
53
|
-
this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
else if (typeof cb === "function") {
|
|
56
|
-
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
listPriceLists(args, optionsOrCb, cb) {
|
|
65
|
-
const command = new ListPriceListsCommand(args);
|
|
66
|
-
if (typeof optionsOrCb === "function") {
|
|
67
|
-
this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
16
|
}
|
|
17
|
+
createAggregatedClient(commands, Pricing);
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, take, withBaseException, } 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
5
|
export const se_DescribeServicesCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("DescribeServices");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_GetAttributeValuesCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("GetAttributeValues");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_GetPriceListFileUrlCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("GetPriceListFileUrl");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_GetProductsCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("GetProducts");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_ListPriceListsCommand = async (input, context) => {
|
|
@@ -38,12 +38,12 @@ export const de_DescribeServicesCommand = async (output, context) => {
|
|
|
38
38
|
}
|
|
39
39
|
const data = await parseBody(output.body, context);
|
|
40
40
|
let contents = {};
|
|
41
|
-
contents =
|
|
41
|
+
contents = _json(data);
|
|
42
42
|
const response = {
|
|
43
43
|
$metadata: deserializeMetadata(output),
|
|
44
44
|
...contents,
|
|
45
45
|
};
|
|
46
|
-
return
|
|
46
|
+
return response;
|
|
47
47
|
};
|
|
48
48
|
const de_DescribeServicesCommandError = async (output, context) => {
|
|
49
49
|
const parsedOutput = {
|
|
@@ -69,10 +69,9 @@ const de_DescribeServicesCommandError = async (output, context) => {
|
|
|
69
69
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
70
70
|
default:
|
|
71
71
|
const parsedBody = parsedOutput.body;
|
|
72
|
-
throwDefaultError({
|
|
72
|
+
return throwDefaultError({
|
|
73
73
|
output,
|
|
74
74
|
parsedBody,
|
|
75
|
-
exceptionCtor: __BaseException,
|
|
76
75
|
errorCode,
|
|
77
76
|
});
|
|
78
77
|
}
|
|
@@ -83,12 +82,12 @@ export const de_GetAttributeValuesCommand = async (output, context) => {
|
|
|
83
82
|
}
|
|
84
83
|
const data = await parseBody(output.body, context);
|
|
85
84
|
let contents = {};
|
|
86
|
-
contents =
|
|
85
|
+
contents = _json(data);
|
|
87
86
|
const response = {
|
|
88
87
|
$metadata: deserializeMetadata(output),
|
|
89
88
|
...contents,
|
|
90
89
|
};
|
|
91
|
-
return
|
|
90
|
+
return response;
|
|
92
91
|
};
|
|
93
92
|
const de_GetAttributeValuesCommandError = async (output, context) => {
|
|
94
93
|
const parsedOutput = {
|
|
@@ -114,10 +113,9 @@ const de_GetAttributeValuesCommandError = async (output, context) => {
|
|
|
114
113
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
115
114
|
default:
|
|
116
115
|
const parsedBody = parsedOutput.body;
|
|
117
|
-
throwDefaultError({
|
|
116
|
+
return throwDefaultError({
|
|
118
117
|
output,
|
|
119
118
|
parsedBody,
|
|
120
|
-
exceptionCtor: __BaseException,
|
|
121
119
|
errorCode,
|
|
122
120
|
});
|
|
123
121
|
}
|
|
@@ -128,12 +126,12 @@ export const de_GetPriceListFileUrlCommand = async (output, context) => {
|
|
|
128
126
|
}
|
|
129
127
|
const data = await parseBody(output.body, context);
|
|
130
128
|
let contents = {};
|
|
131
|
-
contents =
|
|
129
|
+
contents = _json(data);
|
|
132
130
|
const response = {
|
|
133
131
|
$metadata: deserializeMetadata(output),
|
|
134
132
|
...contents,
|
|
135
133
|
};
|
|
136
|
-
return
|
|
134
|
+
return response;
|
|
137
135
|
};
|
|
138
136
|
const de_GetPriceListFileUrlCommandError = async (output, context) => {
|
|
139
137
|
const parsedOutput = {
|
|
@@ -156,10 +154,9 @@ const de_GetPriceListFileUrlCommandError = async (output, context) => {
|
|
|
156
154
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
157
155
|
default:
|
|
158
156
|
const parsedBody = parsedOutput.body;
|
|
159
|
-
throwDefaultError({
|
|
157
|
+
return throwDefaultError({
|
|
160
158
|
output,
|
|
161
159
|
parsedBody,
|
|
162
|
-
exceptionCtor: __BaseException,
|
|
163
160
|
errorCode,
|
|
164
161
|
});
|
|
165
162
|
}
|
|
@@ -175,7 +172,7 @@ export const de_GetProductsCommand = async (output, context) => {
|
|
|
175
172
|
$metadata: deserializeMetadata(output),
|
|
176
173
|
...contents,
|
|
177
174
|
};
|
|
178
|
-
return
|
|
175
|
+
return response;
|
|
179
176
|
};
|
|
180
177
|
const de_GetProductsCommandError = async (output, context) => {
|
|
181
178
|
const parsedOutput = {
|
|
@@ -201,10 +198,9 @@ const de_GetProductsCommandError = async (output, context) => {
|
|
|
201
198
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
202
199
|
default:
|
|
203
200
|
const parsedBody = parsedOutput.body;
|
|
204
|
-
throwDefaultError({
|
|
201
|
+
return throwDefaultError({
|
|
205
202
|
output,
|
|
206
203
|
parsedBody,
|
|
207
|
-
exceptionCtor: __BaseException,
|
|
208
204
|
errorCode,
|
|
209
205
|
});
|
|
210
206
|
}
|
|
@@ -215,12 +211,12 @@ export const de_ListPriceListsCommand = async (output, context) => {
|
|
|
215
211
|
}
|
|
216
212
|
const data = await parseBody(output.body, context);
|
|
217
213
|
let contents = {};
|
|
218
|
-
contents =
|
|
214
|
+
contents = _json(data);
|
|
219
215
|
const response = {
|
|
220
216
|
$metadata: deserializeMetadata(output),
|
|
221
217
|
...contents,
|
|
222
218
|
};
|
|
223
|
-
return
|
|
219
|
+
return response;
|
|
224
220
|
};
|
|
225
221
|
const de_ListPriceListsCommandError = async (output, context) => {
|
|
226
222
|
const parsedOutput = {
|
|
@@ -249,17 +245,16 @@ const de_ListPriceListsCommandError = async (output, context) => {
|
|
|
249
245
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
250
246
|
default:
|
|
251
247
|
const parsedBody = parsedOutput.body;
|
|
252
|
-
throwDefaultError({
|
|
248
|
+
return throwDefaultError({
|
|
253
249
|
output,
|
|
254
250
|
parsedBody,
|
|
255
|
-
exceptionCtor: __BaseException,
|
|
256
251
|
errorCode,
|
|
257
252
|
});
|
|
258
253
|
}
|
|
259
254
|
};
|
|
260
255
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
261
256
|
const body = parsedOutput.body;
|
|
262
|
-
const deserialized =
|
|
257
|
+
const deserialized = _json(body);
|
|
263
258
|
const exception = new AccessDeniedException({
|
|
264
259
|
$metadata: deserializeMetadata(parsedOutput),
|
|
265
260
|
...deserialized,
|
|
@@ -268,7 +263,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
268
263
|
};
|
|
269
264
|
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
270
265
|
const body = parsedOutput.body;
|
|
271
|
-
const deserialized =
|
|
266
|
+
const deserialized = _json(body);
|
|
272
267
|
const exception = new ExpiredNextTokenException({
|
|
273
268
|
$metadata: deserializeMetadata(parsedOutput),
|
|
274
269
|
...deserialized,
|
|
@@ -277,7 +272,7 @@ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
277
272
|
};
|
|
278
273
|
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
279
274
|
const body = parsedOutput.body;
|
|
280
|
-
const deserialized =
|
|
275
|
+
const deserialized = _json(body);
|
|
281
276
|
const exception = new InternalErrorException({
|
|
282
277
|
$metadata: deserializeMetadata(parsedOutput),
|
|
283
278
|
...deserialized,
|
|
@@ -286,7 +281,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
286
281
|
};
|
|
287
282
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
288
283
|
const body = parsedOutput.body;
|
|
289
|
-
const deserialized =
|
|
284
|
+
const deserialized = _json(body);
|
|
290
285
|
const exception = new InvalidNextTokenException({
|
|
291
286
|
$metadata: deserializeMetadata(parsedOutput),
|
|
292
287
|
...deserialized,
|
|
@@ -295,7 +290,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
295
290
|
};
|
|
296
291
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
297
292
|
const body = parsedOutput.body;
|
|
298
|
-
const deserialized =
|
|
293
|
+
const deserialized = _json(body);
|
|
299
294
|
const exception = new InvalidParameterException({
|
|
300
295
|
$metadata: deserializeMetadata(parsedOutput),
|
|
301
296
|
...deserialized,
|
|
@@ -304,214 +299,38 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
304
299
|
};
|
|
305
300
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
306
301
|
const body = parsedOutput.body;
|
|
307
|
-
const deserialized =
|
|
302
|
+
const deserialized = _json(body);
|
|
308
303
|
const exception = new NotFoundException({
|
|
309
304
|
$metadata: deserializeMetadata(parsedOutput),
|
|
310
305
|
...deserialized,
|
|
311
306
|
});
|
|
312
307
|
return __decorateServiceException(exception, body);
|
|
313
308
|
};
|
|
314
|
-
const se_DescribeServicesRequest = (input, context) => {
|
|
315
|
-
return {
|
|
316
|
-
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
317
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
318
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
319
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
const se_Filter = (input, context) => {
|
|
323
|
-
return {
|
|
324
|
-
...(input.Field != null && { Field: input.Field }),
|
|
325
|
-
...(input.Type != null && { Type: input.Type }),
|
|
326
|
-
...(input.Value != null && { Value: input.Value }),
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
const se_Filters = (input, context) => {
|
|
330
|
-
return input
|
|
331
|
-
.filter((e) => e != null)
|
|
332
|
-
.map((entry) => {
|
|
333
|
-
return se_Filter(entry, context);
|
|
334
|
-
});
|
|
335
|
-
};
|
|
336
|
-
const se_GetAttributeValuesRequest = (input, context) => {
|
|
337
|
-
return {
|
|
338
|
-
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
339
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
340
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
341
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
const se_GetPriceListFileUrlRequest = (input, context) => {
|
|
345
|
-
return {
|
|
346
|
-
...(input.FileFormat != null && { FileFormat: input.FileFormat }),
|
|
347
|
-
...(input.PriceListArn != null && { PriceListArn: input.PriceListArn }),
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
const se_GetProductsRequest = (input, context) => {
|
|
351
|
-
return {
|
|
352
|
-
...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
|
|
353
|
-
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
354
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
355
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
356
|
-
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
309
|
const se_ListPriceListsRequest = (input, context) => {
|
|
360
|
-
return {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
const de_AccessDeniedException = (output, context) => {
|
|
370
|
-
return {
|
|
371
|
-
Message: __expectString(output.Message),
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
const de_AttributeNameList = (output, context) => {
|
|
375
|
-
const retVal = (output || [])
|
|
376
|
-
.filter((e) => e != null)
|
|
377
|
-
.map((entry) => {
|
|
378
|
-
if (entry === null) {
|
|
379
|
-
return null;
|
|
380
|
-
}
|
|
381
|
-
return __expectString(entry);
|
|
382
|
-
});
|
|
383
|
-
return retVal;
|
|
384
|
-
};
|
|
385
|
-
const de_AttributeValue = (output, context) => {
|
|
386
|
-
return {
|
|
387
|
-
Value: __expectString(output.Value),
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
const de_AttributeValueList = (output, context) => {
|
|
391
|
-
const retVal = (output || [])
|
|
392
|
-
.filter((e) => e != null)
|
|
393
|
-
.map((entry) => {
|
|
394
|
-
if (entry === null) {
|
|
395
|
-
return null;
|
|
396
|
-
}
|
|
397
|
-
return de_AttributeValue(entry, context);
|
|
398
|
-
});
|
|
399
|
-
return retVal;
|
|
400
|
-
};
|
|
401
|
-
const de_DescribeServicesResponse = (output, context) => {
|
|
402
|
-
return {
|
|
403
|
-
FormatVersion: __expectString(output.FormatVersion),
|
|
404
|
-
NextToken: __expectString(output.NextToken),
|
|
405
|
-
Services: output.Services != null ? de_ServiceList(output.Services, context) : undefined,
|
|
406
|
-
};
|
|
407
|
-
};
|
|
408
|
-
const de_ExpiredNextTokenException = (output, context) => {
|
|
409
|
-
return {
|
|
410
|
-
Message: __expectString(output.Message),
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
const de_FileFormats = (output, context) => {
|
|
414
|
-
const retVal = (output || [])
|
|
415
|
-
.filter((e) => e != null)
|
|
416
|
-
.map((entry) => {
|
|
417
|
-
if (entry === null) {
|
|
418
|
-
return null;
|
|
419
|
-
}
|
|
420
|
-
return __expectString(entry);
|
|
310
|
+
return take(input, {
|
|
311
|
+
CurrencyCode: [],
|
|
312
|
+
EffectiveDate: (_) => Math.round(_.getTime() / 1000),
|
|
313
|
+
MaxResults: [],
|
|
314
|
+
NextToken: [],
|
|
315
|
+
RegionCode: [],
|
|
316
|
+
ServiceCode: [],
|
|
421
317
|
});
|
|
422
|
-
return retVal;
|
|
423
|
-
};
|
|
424
|
-
const de_GetAttributeValuesResponse = (output, context) => {
|
|
425
|
-
return {
|
|
426
|
-
AttributeValues: output.AttributeValues != null ? de_AttributeValueList(output.AttributeValues, context) : undefined,
|
|
427
|
-
NextToken: __expectString(output.NextToken),
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
const de_GetPriceListFileUrlResponse = (output, context) => {
|
|
431
|
-
return {
|
|
432
|
-
Url: __expectString(output.Url),
|
|
433
|
-
};
|
|
434
318
|
};
|
|
435
319
|
const de_GetProductsResponse = (output, context) => {
|
|
436
|
-
return {
|
|
437
|
-
FormatVersion: __expectString
|
|
438
|
-
NextToken: __expectString
|
|
439
|
-
PriceList:
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
const de_InternalErrorException = (output, context) => {
|
|
443
|
-
return {
|
|
444
|
-
Message: __expectString(output.Message),
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
448
|
-
return {
|
|
449
|
-
Message: __expectString(output.Message),
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
const de_InvalidParameterException = (output, context) => {
|
|
453
|
-
return {
|
|
454
|
-
Message: __expectString(output.Message),
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
const de_ListPriceListsResponse = (output, context) => {
|
|
458
|
-
return {
|
|
459
|
-
NextToken: __expectString(output.NextToken),
|
|
460
|
-
PriceLists: output.PriceLists != null ? de_PriceLists(output.PriceLists, context) : undefined,
|
|
461
|
-
};
|
|
462
|
-
};
|
|
463
|
-
const de_NotFoundException = (output, context) => {
|
|
464
|
-
return {
|
|
465
|
-
Message: __expectString(output.Message),
|
|
466
|
-
};
|
|
467
|
-
};
|
|
468
|
-
const de_PriceList = (output, context) => {
|
|
469
|
-
return {
|
|
470
|
-
CurrencyCode: __expectString(output.CurrencyCode),
|
|
471
|
-
FileFormats: output.FileFormats != null ? de_FileFormats(output.FileFormats, context) : undefined,
|
|
472
|
-
PriceListArn: __expectString(output.PriceListArn),
|
|
473
|
-
RegionCode: __expectString(output.RegionCode),
|
|
474
|
-
};
|
|
320
|
+
return take(output, {
|
|
321
|
+
FormatVersion: __expectString,
|
|
322
|
+
NextToken: __expectString,
|
|
323
|
+
PriceList: (_) => de_PriceListJsonItems(_, context),
|
|
324
|
+
});
|
|
475
325
|
};
|
|
476
326
|
const de_PriceListJsonItems = (output, context) => {
|
|
477
327
|
const retVal = (output || [])
|
|
478
328
|
.filter((e) => e != null)
|
|
479
329
|
.map((entry) => {
|
|
480
|
-
if (entry === null) {
|
|
481
|
-
return null;
|
|
482
|
-
}
|
|
483
330
|
return new __LazyJsonString(entry);
|
|
484
331
|
});
|
|
485
332
|
return retVal;
|
|
486
333
|
};
|
|
487
|
-
const de_PriceLists = (output, context) => {
|
|
488
|
-
const retVal = (output || [])
|
|
489
|
-
.filter((e) => e != null)
|
|
490
|
-
.map((entry) => {
|
|
491
|
-
if (entry === null) {
|
|
492
|
-
return null;
|
|
493
|
-
}
|
|
494
|
-
return de_PriceList(entry, context);
|
|
495
|
-
});
|
|
496
|
-
return retVal;
|
|
497
|
-
};
|
|
498
|
-
const de_Service = (output, context) => {
|
|
499
|
-
return {
|
|
500
|
-
AttributeNames: output.AttributeNames != null ? de_AttributeNameList(output.AttributeNames, context) : undefined,
|
|
501
|
-
ServiceCode: __expectString(output.ServiceCode),
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
const de_ServiceList = (output, context) => {
|
|
505
|
-
const retVal = (output || [])
|
|
506
|
-
.filter((e) => e != null)
|
|
507
|
-
.map((entry) => {
|
|
508
|
-
if (entry === null) {
|
|
509
|
-
return null;
|
|
510
|
-
}
|
|
511
|
-
return de_Service(entry, context);
|
|
512
|
-
});
|
|
513
|
-
return retVal;
|
|
514
|
-
};
|
|
515
334
|
const deserializeMetadata = (output) => ({
|
|
516
335
|
httpStatusCode: output.statusCode,
|
|
517
336
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -525,6 +344,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
525
344
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
526
345
|
};
|
|
527
346
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
347
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
528
348
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
529
349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
530
350
|
const contents = {
|
package/dist-types/Pricing.d.ts
CHANGED
|
@@ -5,6 +5,38 @@ import { GetPriceListFileUrlCommandInput, GetPriceListFileUrlCommandOutput } fro
|
|
|
5
5
|
import { GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
|
|
6
6
|
import { ListPriceListsCommandInput, ListPriceListsCommandOutput } from "./commands/ListPriceListsCommand";
|
|
7
7
|
import { PricingClient } from "./PricingClient";
|
|
8
|
+
export interface Pricing {
|
|
9
|
+
/**
|
|
10
|
+
* @see {@link DescribeServicesCommand}
|
|
11
|
+
*/
|
|
12
|
+
describeServices(args: DescribeServicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeServicesCommandOutput>;
|
|
13
|
+
describeServices(args: DescribeServicesCommandInput, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
|
|
14
|
+
describeServices(args: DescribeServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link GetAttributeValuesCommand}
|
|
17
|
+
*/
|
|
18
|
+
getAttributeValues(args: GetAttributeValuesCommandInput, options?: __HttpHandlerOptions): Promise<GetAttributeValuesCommandOutput>;
|
|
19
|
+
getAttributeValues(args: GetAttributeValuesCommandInput, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
|
|
20
|
+
getAttributeValues(args: GetAttributeValuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link GetPriceListFileUrlCommand}
|
|
23
|
+
*/
|
|
24
|
+
getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetPriceListFileUrlCommandOutput>;
|
|
25
|
+
getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
|
|
26
|
+
getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link GetProductsCommand}
|
|
29
|
+
*/
|
|
30
|
+
getProducts(args: GetProductsCommandInput, options?: __HttpHandlerOptions): Promise<GetProductsCommandOutput>;
|
|
31
|
+
getProducts(args: GetProductsCommandInput, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
|
|
32
|
+
getProducts(args: GetProductsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link ListPriceListsCommand}
|
|
35
|
+
*/
|
|
36
|
+
listPriceLists(args: ListPriceListsCommandInput, options?: __HttpHandlerOptions): Promise<ListPriceListsCommandOutput>;
|
|
37
|
+
listPriceLists(args: ListPriceListsCommandInput, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
|
|
38
|
+
listPriceLists(args: ListPriceListsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
|
|
39
|
+
}
|
|
8
40
|
/**
|
|
9
41
|
* @public
|
|
10
42
|
* <p>Amazon Web Services Price List API is a centralized and convenient way to
|
|
@@ -32,69 +64,5 @@ import { PricingClient } from "./PricingClient";
|
|
|
32
64
|
* </li>
|
|
33
65
|
* </ul>
|
|
34
66
|
*/
|
|
35
|
-
export declare class Pricing extends PricingClient {
|
|
36
|
-
/**
|
|
37
|
-
* @public
|
|
38
|
-
* <p>Returns the metadata for one service or a list of the metadata for all services. Use
|
|
39
|
-
* this without a service code to get the service codes for all services.
|
|
40
|
-
* Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
|
|
41
|
-
* that service, such as the attribute
|
|
42
|
-
* names available for that service. For example, some of the attribute names available for EC2 are
|
|
43
|
-
* <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
|
|
44
|
-
* <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
|
|
45
|
-
*/
|
|
46
|
-
describeServices(args: DescribeServicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeServicesCommandOutput>;
|
|
47
|
-
describeServices(args: DescribeServicesCommandInput, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
|
|
48
|
-
describeServices(args: DescribeServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
|
|
49
|
-
/**
|
|
50
|
-
* @public
|
|
51
|
-
* <p>Returns a list of attribute values. Attributes are similar to the details
|
|
52
|
-
* in a Price List API offer file. For a list of available attributes, see
|
|
53
|
-
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
|
|
54
|
-
* in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Billing and Cost Management User Guide</a>.</p>
|
|
55
|
-
*/
|
|
56
|
-
getAttributeValues(args: GetAttributeValuesCommandInput, options?: __HttpHandlerOptions): Promise<GetAttributeValuesCommandOutput>;
|
|
57
|
-
getAttributeValues(args: GetAttributeValuesCommandInput, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
|
|
58
|
-
getAttributeValues(args: GetAttributeValuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
|
|
59
|
-
/**
|
|
60
|
-
* @public
|
|
61
|
-
* <p>
|
|
62
|
-
* <i>
|
|
63
|
-
* <b>This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the <a href="https://aws.amazon.com/service-terms/">Amazon Web Services Service Terms</a> (Section 1.10).</b>
|
|
64
|
-
* </i>
|
|
65
|
-
* </p>
|
|
66
|
-
* <p>This returns the URL that you can retrieve your Price List file from. This URL is based on
|
|
67
|
-
* the <code>PriceListArn</code> and <code>FileFormat</code> that you retrieve from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">
|
|
68
|
-
* <code>ListPriceLists</code>
|
|
69
|
-
* </a> response. </p>
|
|
70
|
-
*/
|
|
71
|
-
getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetPriceListFileUrlCommandOutput>;
|
|
72
|
-
getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
|
|
73
|
-
getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
|
|
74
|
-
/**
|
|
75
|
-
* @public
|
|
76
|
-
* <p>Returns a list of all products that match the filter criteria.</p>
|
|
77
|
-
*/
|
|
78
|
-
getProducts(args: GetProductsCommandInput, options?: __HttpHandlerOptions): Promise<GetProductsCommandOutput>;
|
|
79
|
-
getProducts(args: GetProductsCommandInput, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
|
|
80
|
-
getProducts(args: GetProductsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
|
|
81
|
-
/**
|
|
82
|
-
* @public
|
|
83
|
-
* <p>
|
|
84
|
-
* <i>
|
|
85
|
-
* <b>This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the <a href="https://aws.amazon.com/service-terms/">Amazon Web Services Service Terms</a> (Section 1.10).</b>
|
|
86
|
-
* </i>
|
|
87
|
-
* </p>
|
|
88
|
-
* <p>This returns a list of Price List references that the requester if authorized to view, given a <code>ServiceCode</code>, <code>CurrencyCode</code>, and an <code>EffectiveDate</code>.
|
|
89
|
-
* Use without a <code>RegionCode</code> filter to list Price List references from all
|
|
90
|
-
* available Amazon Web Services Regions. Use with a <code>RegionCode</code> filter to get the
|
|
91
|
-
* Price List reference that's specific to a specific Amazon Web Services Region. You can use
|
|
92
|
-
* the <code>PriceListArn</code> from the response to get your preferred Price List files
|
|
93
|
-
* through the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_GetPriceListFileUrl.html">
|
|
94
|
-
* <code>GetPriceListFileUrl</code>
|
|
95
|
-
* </a> API.</p>
|
|
96
|
-
*/
|
|
97
|
-
listPriceLists(args: ListPriceListsCommandInput, options?: __HttpHandlerOptions): Promise<ListPriceListsCommandOutput>;
|
|
98
|
-
listPriceLists(args: ListPriceListsCommandInput, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
|
|
99
|
-
listPriceLists(args: ListPriceListsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
|
|
67
|
+
export declare class Pricing extends PricingClient implements Pricing {
|
|
100
68
|
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ListPriceListsCommandOutput,
|
|
21
21
|
} from "./commands/ListPriceListsCommand";
|
|
22
22
|
import { PricingClient } from "./PricingClient";
|
|
23
|
-
export
|
|
23
|
+
export interface Pricing {
|
|
24
24
|
describeServices(
|
|
25
25
|
args: DescribeServicesCommandInput,
|
|
26
26
|
options?: __HttpHandlerOptions
|
|
@@ -87,3 +87,4 @@ export declare class Pricing extends PricingClient {
|
|
|
87
87
|
cb: (err: any, data?: ListPriceListsCommandOutput) => void
|
|
88
88
|
): void;
|
|
89
89
|
}
|
|
90
|
+
export declare class Pricing extends PricingClient implements Pricing {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pricing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pricing Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|