@aws-sdk/client-pricing 3.956.0 → 3.958.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/README.md +1 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +124 -78
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/pagination/index.js +1 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +124 -78
- package/dist-types/pagination/index.d.ts +1 -1
- package/dist-types/ts3.4/pagination/index.d.ts +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -37,10 +37,8 @@ Amazon Web Services Price List API</a> in the <i>Billing User
|
|
|
37
37
|
Guide</i>.</p>
|
|
38
38
|
|
|
39
39
|
## Installing
|
|
40
|
-
|
|
41
40
|
To install this package, simply type add or install @aws-sdk/client-pricing
|
|
42
41
|
using your favorite package manager:
|
|
43
|
-
|
|
44
42
|
- `npm install @aws-sdk/client-pricing`
|
|
45
43
|
- `yarn add @aws-sdk/client-pricing`
|
|
46
44
|
- `pnpm add @aws-sdk/client-pricing`
|
|
@@ -76,9 +74,7 @@ To send a request, you:
|
|
|
76
74
|
// a client can be shared by different commands.
|
|
77
75
|
const client = new PricingClient({ region: "REGION" });
|
|
78
76
|
|
|
79
|
-
const params = {
|
|
80
|
-
/** input parameters */
|
|
81
|
-
};
|
|
77
|
+
const params = { /** input parameters */ };
|
|
82
78
|
const command = new ListPriceListsCommand(params);
|
|
83
79
|
```
|
|
84
80
|
|
|
@@ -237,7 +233,6 @@ DescribeServices
|
|
|
237
233
|
</summary>
|
|
238
234
|
|
|
239
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pricing/command/DescribeServicesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/DescribeServicesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/DescribeServicesCommandOutput/)
|
|
240
|
-
|
|
241
236
|
</details>
|
|
242
237
|
<details>
|
|
243
238
|
<summary>
|
|
@@ -245,7 +240,6 @@ GetAttributeValues
|
|
|
245
240
|
</summary>
|
|
246
241
|
|
|
247
242
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pricing/command/GetAttributeValuesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/GetAttributeValuesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/GetAttributeValuesCommandOutput/)
|
|
248
|
-
|
|
249
243
|
</details>
|
|
250
244
|
<details>
|
|
251
245
|
<summary>
|
|
@@ -253,7 +247,6 @@ GetPriceListFileUrl
|
|
|
253
247
|
</summary>
|
|
254
248
|
|
|
255
249
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pricing/command/GetPriceListFileUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/GetPriceListFileUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/GetPriceListFileUrlCommandOutput/)
|
|
256
|
-
|
|
257
250
|
</details>
|
|
258
251
|
<details>
|
|
259
252
|
<summary>
|
|
@@ -261,7 +254,6 @@ GetProducts
|
|
|
261
254
|
</summary>
|
|
262
255
|
|
|
263
256
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pricing/command/GetProductsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/GetProductsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/GetProductsCommandOutput/)
|
|
264
|
-
|
|
265
257
|
</details>
|
|
266
258
|
<details>
|
|
267
259
|
<summary>
|
|
@@ -269,5 +261,4 @@ ListPriceLists
|
|
|
269
261
|
</summary>
|
|
270
262
|
|
|
271
263
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/pricing/command/ListPriceListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/ListPriceListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-pricing/Interface/ListPriceListsCommandOutput/)
|
|
272
|
-
|
|
273
264
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultPricingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultPricingHttpAuthSchemeParametersProvider = defaultPricingHttpAuthSchemeParametersProvider;
|
package/dist-cjs/index.js
CHANGED
|
@@ -295,110 +295,156 @@ const _s = "server";
|
|
|
295
295
|
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pricing";
|
|
296
296
|
const n0 = "com.amazonaws.pricing";
|
|
297
297
|
var SynthesizedJsonPriceListJsonItem = [0, n0, _SJPLJI, { [_mT]: _a }, 0];
|
|
298
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
298
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
299
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
300
|
+
[_M],
|
|
301
|
+
[0]
|
|
302
|
+
];
|
|
299
303
|
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
300
|
-
var AttributeValue$ = [3, n0, _AV,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
304
|
+
var AttributeValue$ = [3, n0, _AV,
|
|
305
|
+
0,
|
|
306
|
+
[_V],
|
|
307
|
+
[0]
|
|
308
|
+
];
|
|
309
|
+
var DescribeServicesRequest$ = [3, n0, _DSR,
|
|
310
|
+
0,
|
|
311
|
+
[_SC, _FV, _NT, _MR],
|
|
312
|
+
[0, 0, 0, 1]
|
|
313
|
+
];
|
|
314
|
+
var DescribeServicesResponse$ = [3, n0, _DSRe,
|
|
306
315
|
0,
|
|
307
316
|
[_S, _FV, _NT],
|
|
308
|
-
[() => ServiceList, 0, 0]
|
|
317
|
+
[() => ServiceList, 0, 0]
|
|
318
|
+
];
|
|
319
|
+
var ExpiredNextTokenException$ = [-3, n0, _ENTE,
|
|
320
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
321
|
+
[_M],
|
|
322
|
+
[0]
|
|
309
323
|
];
|
|
310
|
-
var ExpiredNextTokenException$ = [-3, n0, _ENTE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
|
|
311
324
|
schema.TypeRegistry.for(n0).registerError(ExpiredNextTokenException$, ExpiredNextTokenException);
|
|
312
|
-
var Filter$ = [3, n0, _F,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
325
|
+
var Filter$ = [3, n0, _F,
|
|
326
|
+
0,
|
|
327
|
+
[_T, _Fi, _V],
|
|
328
|
+
[0, 0, 0]
|
|
329
|
+
];
|
|
330
|
+
var GetAttributeValuesRequest$ = [3, n0, _GAVR,
|
|
331
|
+
0,
|
|
332
|
+
[_SC, _AN, _NT, _MR],
|
|
333
|
+
[0, 0, 0, 1]
|
|
334
|
+
];
|
|
335
|
+
var GetAttributeValuesResponse$ = [3, n0, _GAVRe,
|
|
318
336
|
0,
|
|
319
337
|
[_AVt, _NT],
|
|
320
|
-
[() => AttributeValueList, 0]
|
|
321
|
-
];
|
|
322
|
-
var GetPriceListFileUrlRequest$ = [3, n0, _GPLFUR,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
338
|
+
[() => AttributeValueList, 0]
|
|
339
|
+
];
|
|
340
|
+
var GetPriceListFileUrlRequest$ = [3, n0, _GPLFUR,
|
|
341
|
+
0,
|
|
342
|
+
[_PLA, _FF],
|
|
343
|
+
[0, 0]
|
|
344
|
+
];
|
|
345
|
+
var GetPriceListFileUrlResponse$ = [3, n0, _GPLFURe,
|
|
346
|
+
0,
|
|
347
|
+
[_U],
|
|
348
|
+
[0]
|
|
349
|
+
];
|
|
350
|
+
var GetProductsRequest$ = [3, n0, _GPR,
|
|
328
351
|
0,
|
|
329
352
|
[_SC, _Fil, _FV, _NT, _MR],
|
|
330
|
-
[0, () => Filters, 0, 0, 1]
|
|
353
|
+
[0, () => Filters, 0, 0, 1]
|
|
331
354
|
];
|
|
332
|
-
var GetProductsResponse$ = [
|
|
333
|
-
3,
|
|
334
|
-
n0,
|
|
335
|
-
_GPRe,
|
|
355
|
+
var GetProductsResponse$ = [3, n0, _GPRe,
|
|
336
356
|
0,
|
|
337
357
|
[_FV, _PL, _NT],
|
|
338
|
-
[0, [() => PriceListJsonItems, 0], 0]
|
|
358
|
+
[0, [() => PriceListJsonItems, 0], 0]
|
|
359
|
+
];
|
|
360
|
+
var InternalErrorException$ = [-3, n0, _IEE,
|
|
361
|
+
{ [_e]: _s, [_hE]: 500 },
|
|
362
|
+
[_M],
|
|
363
|
+
[0]
|
|
339
364
|
];
|
|
340
|
-
var InternalErrorException$ = [-3, n0, _IEE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
|
|
341
365
|
schema.TypeRegistry.for(n0).registerError(InternalErrorException$, InternalErrorException);
|
|
342
|
-
var InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
366
|
+
var InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
367
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
368
|
+
[_M],
|
|
369
|
+
[0]
|
|
370
|
+
];
|
|
343
371
|
schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException$, InvalidNextTokenException);
|
|
344
|
-
var InvalidParameterException$ = [-3, n0, _IPE,
|
|
372
|
+
var InvalidParameterException$ = [-3, n0, _IPE,
|
|
373
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
374
|
+
[_M],
|
|
375
|
+
[0]
|
|
376
|
+
];
|
|
345
377
|
schema.TypeRegistry.for(n0).registerError(InvalidParameterException$, InvalidParameterException);
|
|
346
|
-
var ListPriceListsRequest$ = [
|
|
347
|
-
3,
|
|
348
|
-
n0,
|
|
349
|
-
_LPLR,
|
|
378
|
+
var ListPriceListsRequest$ = [3, n0, _LPLR,
|
|
350
379
|
0,
|
|
351
380
|
[_SC, _ED, _RC, _CC, _NT, _MR],
|
|
352
|
-
[0, 4, 0, 0, 0, 1]
|
|
381
|
+
[0, 4, 0, 0, 0, 1]
|
|
382
|
+
];
|
|
383
|
+
var ListPriceListsResponse$ = [3, n0, _LPLRi,
|
|
384
|
+
0,
|
|
385
|
+
[_PLr, _NT],
|
|
386
|
+
[() => PriceLists, 0]
|
|
387
|
+
];
|
|
388
|
+
var NotFoundException$ = [-3, n0, _NFE,
|
|
389
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
390
|
+
[_M],
|
|
391
|
+
[0]
|
|
353
392
|
];
|
|
354
|
-
var ListPriceListsResponse$ = [3, n0, _LPLRi, 0, [_PLr, _NT], [() => PriceLists, 0]];
|
|
355
|
-
var NotFoundException$ = [-3, n0, _NFE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
|
|
356
393
|
schema.TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
|
|
357
|
-
var PriceList$ = [3, n0, _PL,
|
|
358
|
-
|
|
394
|
+
var PriceList$ = [3, n0, _PL,
|
|
395
|
+
0,
|
|
396
|
+
[_PLA, _RC, _CC, _FFi],
|
|
397
|
+
[0, 0, 0, 64 | 0]
|
|
398
|
+
];
|
|
399
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
400
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
401
|
+
[_M],
|
|
402
|
+
[0]
|
|
403
|
+
];
|
|
359
404
|
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
360
|
-
var Service$ = [3, n0, _Se,
|
|
361
|
-
|
|
405
|
+
var Service$ = [3, n0, _Se,
|
|
406
|
+
0,
|
|
407
|
+
[_SC, _ANt],
|
|
408
|
+
[0, 64 | 0]
|
|
409
|
+
];
|
|
410
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
411
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
412
|
+
[_M],
|
|
413
|
+
[0]
|
|
414
|
+
];
|
|
362
415
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
363
416
|
var PricingServiceException$ = [-3, _sm, "PricingServiceException", 0, [], []];
|
|
364
417
|
schema.TypeRegistry.for(_sm).registerError(PricingServiceException$, PricingServiceException);
|
|
365
|
-
var AttributeValueList = [1, n0, _AVL,
|
|
366
|
-
|
|
367
|
-
var PriceListJsonItems = [1, n0, _PLJI, 0, [() => SynthesizedJsonPriceListJsonItem, 0]];
|
|
368
|
-
var PriceLists = [1, n0, _PLr, 0, () => PriceList$];
|
|
369
|
-
var ServiceList = [1, n0, _SL, 0, () => Service$];
|
|
370
|
-
var DescribeServices$ = [
|
|
371
|
-
9,
|
|
372
|
-
n0,
|
|
373
|
-
_DS,
|
|
374
|
-
0,
|
|
375
|
-
() => DescribeServicesRequest$,
|
|
376
|
-
() => DescribeServicesResponse$,
|
|
418
|
+
var AttributeValueList = [1, n0, _AVL,
|
|
419
|
+
0, () => AttributeValue$
|
|
377
420
|
];
|
|
378
|
-
var
|
|
379
|
-
|
|
380
|
-
n0,
|
|
381
|
-
_GAV,
|
|
382
|
-
0,
|
|
383
|
-
() => GetAttributeValuesRequest$,
|
|
384
|
-
() => GetAttributeValuesResponse$,
|
|
421
|
+
var Filters = [1, n0, _Fil,
|
|
422
|
+
0, () => Filter$
|
|
385
423
|
];
|
|
386
|
-
var
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
() =>
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
() =>
|
|
401
|
-
|
|
424
|
+
var PriceListJsonItems = [1, n0, _PLJI,
|
|
425
|
+
0, [() => SynthesizedJsonPriceListJsonItem,
|
|
426
|
+
0]
|
|
427
|
+
];
|
|
428
|
+
var PriceLists = [1, n0, _PLr,
|
|
429
|
+
0, () => PriceList$
|
|
430
|
+
];
|
|
431
|
+
var ServiceList = [1, n0, _SL,
|
|
432
|
+
0, () => Service$
|
|
433
|
+
];
|
|
434
|
+
var DescribeServices$ = [9, n0, _DS,
|
|
435
|
+
0, () => DescribeServicesRequest$, () => DescribeServicesResponse$
|
|
436
|
+
];
|
|
437
|
+
var GetAttributeValues$ = [9, n0, _GAV,
|
|
438
|
+
0, () => GetAttributeValuesRequest$, () => GetAttributeValuesResponse$
|
|
439
|
+
];
|
|
440
|
+
var GetPriceListFileUrl$ = [9, n0, _GPLFU,
|
|
441
|
+
0, () => GetPriceListFileUrlRequest$, () => GetPriceListFileUrlResponse$
|
|
442
|
+
];
|
|
443
|
+
var GetProducts$ = [9, n0, _GP,
|
|
444
|
+
0, () => GetProductsRequest$, () => GetProductsResponse$
|
|
445
|
+
];
|
|
446
|
+
var ListPriceLists$ = [9, n0, _LPL,
|
|
447
|
+
0, () => ListPriceListsRequest$, () => ListPriceListsResponse$
|
|
402
448
|
];
|
|
403
449
|
|
|
404
450
|
class DescribeServicesCommand extends smithyClient.Command
|
|
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
defaultsMode,
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
26
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
28
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
29
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
30
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
|
|
|
34
34
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
35
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
36
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
38
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
39
38
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
40
|
-
region: config?.region ??
|
|
41
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
39
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
42
40
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
43
41
|
retryMode: config?.retryMode ??
|
|
44
42
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultPricingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
20
|
defaultsMode,
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
22
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
23
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
24
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
23
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
25
24
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
26
25
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
27
26
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import {
|
|
4
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
30
30
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
31
31
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
32
32
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
35
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
36
|
-
region: config?.region ??
|
|
37
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
35
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
38
36
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
39
37
|
retryMode: config?.retryMode ??
|
|
40
38
|
loadNodeConfig({
|
|
@@ -62,110 +62,156 @@ import { TypeRegistry } from "@smithy/core/schema";
|
|
|
62
62
|
import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceNotFoundException, ThrottlingException, } from "../models/errors";
|
|
63
63
|
import { PricingServiceException } from "../models/PricingServiceException";
|
|
64
64
|
var SynthesizedJsonPriceListJsonItem = [0, n0, _SJPLJI, { [_mT]: _a }, 0];
|
|
65
|
-
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
65
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
66
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
67
|
+
[_M],
|
|
68
|
+
[0]
|
|
69
|
+
];
|
|
66
70
|
TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
67
|
-
export var AttributeValue$ = [3, n0, _AV,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
export var AttributeValue$ = [3, n0, _AV,
|
|
72
|
+
0,
|
|
73
|
+
[_V],
|
|
74
|
+
[0]
|
|
75
|
+
];
|
|
76
|
+
export var DescribeServicesRequest$ = [3, n0, _DSR,
|
|
77
|
+
0,
|
|
78
|
+
[_SC, _FV, _NT, _MR],
|
|
79
|
+
[0, 0, 0, 1]
|
|
80
|
+
];
|
|
81
|
+
export var DescribeServicesResponse$ = [3, n0, _DSRe,
|
|
73
82
|
0,
|
|
74
83
|
[_S, _FV, _NT],
|
|
75
|
-
[() => ServiceList, 0, 0]
|
|
84
|
+
[() => ServiceList, 0, 0]
|
|
85
|
+
];
|
|
86
|
+
export var ExpiredNextTokenException$ = [-3, n0, _ENTE,
|
|
87
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
88
|
+
[_M],
|
|
89
|
+
[0]
|
|
76
90
|
];
|
|
77
|
-
export var ExpiredNextTokenException$ = [-3, n0, _ENTE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
|
|
78
91
|
TypeRegistry.for(n0).registerError(ExpiredNextTokenException$, ExpiredNextTokenException);
|
|
79
|
-
export var Filter$ = [3, n0, _F,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
export var Filter$ = [3, n0, _F,
|
|
93
|
+
0,
|
|
94
|
+
[_T, _Fi, _V],
|
|
95
|
+
[0, 0, 0]
|
|
96
|
+
];
|
|
97
|
+
export var GetAttributeValuesRequest$ = [3, n0, _GAVR,
|
|
98
|
+
0,
|
|
99
|
+
[_SC, _AN, _NT, _MR],
|
|
100
|
+
[0, 0, 0, 1]
|
|
101
|
+
];
|
|
102
|
+
export var GetAttributeValuesResponse$ = [3, n0, _GAVRe,
|
|
85
103
|
0,
|
|
86
104
|
[_AVt, _NT],
|
|
87
|
-
[() => AttributeValueList, 0]
|
|
88
|
-
];
|
|
89
|
-
export var GetPriceListFileUrlRequest$ = [3, n0, _GPLFUR,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
[() => AttributeValueList, 0]
|
|
106
|
+
];
|
|
107
|
+
export var GetPriceListFileUrlRequest$ = [3, n0, _GPLFUR,
|
|
108
|
+
0,
|
|
109
|
+
[_PLA, _FF],
|
|
110
|
+
[0, 0]
|
|
111
|
+
];
|
|
112
|
+
export var GetPriceListFileUrlResponse$ = [3, n0, _GPLFURe,
|
|
113
|
+
0,
|
|
114
|
+
[_U],
|
|
115
|
+
[0]
|
|
116
|
+
];
|
|
117
|
+
export var GetProductsRequest$ = [3, n0, _GPR,
|
|
95
118
|
0,
|
|
96
119
|
[_SC, _Fil, _FV, _NT, _MR],
|
|
97
|
-
[0, () => Filters, 0, 0, 1]
|
|
120
|
+
[0, () => Filters, 0, 0, 1]
|
|
98
121
|
];
|
|
99
|
-
export var GetProductsResponse$ = [
|
|
100
|
-
3,
|
|
101
|
-
n0,
|
|
102
|
-
_GPRe,
|
|
122
|
+
export var GetProductsResponse$ = [3, n0, _GPRe,
|
|
103
123
|
0,
|
|
104
124
|
[_FV, _PL, _NT],
|
|
105
|
-
[0, [() => PriceListJsonItems, 0], 0]
|
|
125
|
+
[0, [() => PriceListJsonItems, 0], 0]
|
|
126
|
+
];
|
|
127
|
+
export var InternalErrorException$ = [-3, n0, _IEE,
|
|
128
|
+
{ [_e]: _s, [_hE]: 500 },
|
|
129
|
+
[_M],
|
|
130
|
+
[0]
|
|
106
131
|
];
|
|
107
|
-
export var InternalErrorException$ = [-3, n0, _IEE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
|
|
108
132
|
TypeRegistry.for(n0).registerError(InternalErrorException$, InternalErrorException);
|
|
109
|
-
export var InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
133
|
+
export var InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
134
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
135
|
+
[_M],
|
|
136
|
+
[0]
|
|
137
|
+
];
|
|
110
138
|
TypeRegistry.for(n0).registerError(InvalidNextTokenException$, InvalidNextTokenException);
|
|
111
|
-
export var InvalidParameterException$ = [-3, n0, _IPE,
|
|
139
|
+
export var InvalidParameterException$ = [-3, n0, _IPE,
|
|
140
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
141
|
+
[_M],
|
|
142
|
+
[0]
|
|
143
|
+
];
|
|
112
144
|
TypeRegistry.for(n0).registerError(InvalidParameterException$, InvalidParameterException);
|
|
113
|
-
export var ListPriceListsRequest$ = [
|
|
114
|
-
3,
|
|
115
|
-
n0,
|
|
116
|
-
_LPLR,
|
|
145
|
+
export var ListPriceListsRequest$ = [3, n0, _LPLR,
|
|
117
146
|
0,
|
|
118
147
|
[_SC, _ED, _RC, _CC, _NT, _MR],
|
|
119
|
-
[0, 4, 0, 0, 0, 1]
|
|
148
|
+
[0, 4, 0, 0, 0, 1]
|
|
149
|
+
];
|
|
150
|
+
export var ListPriceListsResponse$ = [3, n0, _LPLRi,
|
|
151
|
+
0,
|
|
152
|
+
[_PLr, _NT],
|
|
153
|
+
[() => PriceLists, 0]
|
|
154
|
+
];
|
|
155
|
+
export var NotFoundException$ = [-3, n0, _NFE,
|
|
156
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
157
|
+
[_M],
|
|
158
|
+
[0]
|
|
120
159
|
];
|
|
121
|
-
export var ListPriceListsResponse$ = [3, n0, _LPLRi, 0, [_PLr, _NT], [() => PriceLists, 0]];
|
|
122
|
-
export var NotFoundException$ = [-3, n0, _NFE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
|
|
123
160
|
TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
|
|
124
|
-
export var PriceList$ = [3, n0, _PL,
|
|
125
|
-
|
|
161
|
+
export var PriceList$ = [3, n0, _PL,
|
|
162
|
+
0,
|
|
163
|
+
[_PLA, _RC, _CC, _FFi],
|
|
164
|
+
[0, 0, 0, 64 | 0]
|
|
165
|
+
];
|
|
166
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
167
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
168
|
+
[_M],
|
|
169
|
+
[0]
|
|
170
|
+
];
|
|
126
171
|
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
127
|
-
export var Service$ = [3, n0, _Se,
|
|
128
|
-
|
|
172
|
+
export var Service$ = [3, n0, _Se,
|
|
173
|
+
0,
|
|
174
|
+
[_SC, _ANt],
|
|
175
|
+
[0, 64 | 0]
|
|
176
|
+
];
|
|
177
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
178
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
179
|
+
[_M],
|
|
180
|
+
[0]
|
|
181
|
+
];
|
|
129
182
|
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
130
183
|
export var PricingServiceException$ = [-3, _sm, "PricingServiceException", 0, [], []];
|
|
131
184
|
TypeRegistry.for(_sm).registerError(PricingServiceException$, PricingServiceException);
|
|
132
185
|
var AttributeNameList = 64 | 0;
|
|
133
|
-
var AttributeValueList = [1, n0, _AVL,
|
|
186
|
+
var AttributeValueList = [1, n0, _AVL,
|
|
187
|
+
0, () => AttributeValue$
|
|
188
|
+
];
|
|
134
189
|
var FileFormats = 64 | 0;
|
|
135
|
-
var Filters = [1, n0, _Fil,
|
|
136
|
-
|
|
137
|
-
var PriceLists = [1, n0, _PLr, 0, () => PriceList$];
|
|
138
|
-
var ServiceList = [1, n0, _SL, 0, () => Service$];
|
|
139
|
-
export var DescribeServices$ = [
|
|
140
|
-
9,
|
|
141
|
-
n0,
|
|
142
|
-
_DS,
|
|
143
|
-
0,
|
|
144
|
-
() => DescribeServicesRequest$,
|
|
145
|
-
() => DescribeServicesResponse$,
|
|
190
|
+
var Filters = [1, n0, _Fil,
|
|
191
|
+
0, () => Filter$
|
|
146
192
|
];
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
_GAV,
|
|
151
|
-
0,
|
|
152
|
-
() => GetAttributeValuesRequest$,
|
|
153
|
-
() => GetAttributeValuesResponse$,
|
|
193
|
+
var PriceListJsonItems = [1, n0, _PLJI,
|
|
194
|
+
0, [() => SynthesizedJsonPriceListJsonItem,
|
|
195
|
+
0]
|
|
154
196
|
];
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
0,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
export var
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
0,
|
|
169
|
-
|
|
170
|
-
|
|
197
|
+
var PriceLists = [1, n0, _PLr,
|
|
198
|
+
0, () => PriceList$
|
|
199
|
+
];
|
|
200
|
+
var ServiceList = [1, n0, _SL,
|
|
201
|
+
0, () => Service$
|
|
202
|
+
];
|
|
203
|
+
export var DescribeServices$ = [9, n0, _DS,
|
|
204
|
+
0, () => DescribeServicesRequest$, () => DescribeServicesResponse$
|
|
205
|
+
];
|
|
206
|
+
export var GetAttributeValues$ = [9, n0, _GAV,
|
|
207
|
+
0, () => GetAttributeValuesRequest$, () => GetAttributeValuesResponse$
|
|
208
|
+
];
|
|
209
|
+
export var GetPriceListFileUrl$ = [9, n0, _GPLFU,
|
|
210
|
+
0, () => GetPriceListFileUrlRequest$, () => GetPriceListFileUrlResponse$
|
|
211
|
+
];
|
|
212
|
+
export var GetProducts$ = [9, n0, _GP,
|
|
213
|
+
0, () => GetProductsRequest$, () => GetProductsResponse$
|
|
214
|
+
];
|
|
215
|
+
export var ListPriceLists$ = [9, n0, _LPL,
|
|
216
|
+
0, () => ListPriceListsRequest$, () => ListPriceListsResponse$
|
|
171
217
|
];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-pricing",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
-
"build:include:deps": "
|
|
9
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/core": "3.957.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.957.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.957.0",
|
|
31
|
+
"@aws-sdk/types": "3.957.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.957.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.957.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.957.0",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.5",
|
|
36
36
|
"@smithy/core": "^3.20.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.8",
|