@aws-sdk/client-pricing 3.1137.0 → 3.1139.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/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1136.0";
72
+ var version = "3.1138.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -318,10 +318,10 @@ const _mT = "mediaType";
318
318
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pricing";
319
319
  const _se = "server";
320
320
  const n0 = "com.amazonaws.pricing";
321
- const _s_registry = TypeRegistry.for(_s);
321
+ const _s_registry = new TypeRegistry(_s);
322
322
  var PricingServiceException$ = [-3, _s, "PricingServiceException", 0, [], []];
323
323
  _s_registry.registerError(PricingServiceException$, PricingServiceException);
324
- const n0_registry = TypeRegistry.for(n0);
324
+ const n0_registry = new TypeRegistry(n0);
325
325
  var AccessDeniedException$ = [-3, n0, _ADE,
326
326
  { [_e]: _c, [_hE]: 401 },
327
327
  [_M],
@@ -61,10 +61,10 @@ const n0 = "com.amazonaws.pricing";
61
61
  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
- const _s_registry = TypeRegistry.for(_s);
64
+ const _s_registry = new TypeRegistry(_s);
65
65
  export var PricingServiceException$ = [-3, _s, "PricingServiceException", 0, [], []];
66
66
  _s_registry.registerError(PricingServiceException$, PricingServiceException);
67
- const n0_registry = TypeRegistry.for(n0);
67
+ const n0_registry = new TypeRegistry(n0);
68
68
  export var AccessDeniedException$ = [-3, n0, _ADE,
69
69
  { [_e]: _c, [_hE]: 401 },
70
70
  [_M],
@@ -1,42 +1,48 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type DescribeServicesCommandInput, type DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
3
3
  import { type GetAttributeValuesCommandInput, type GetAttributeValuesCommandOutput } from "./commands/GetAttributeValuesCommand";
4
4
  import { type GetPriceListFileUrlCommandInput, type GetPriceListFileUrlCommandOutput } from "./commands/GetPriceListFileUrlCommand";
5
5
  import { type GetProductsCommandInput, type GetProductsCommandOutput } from "./commands/GetProductsCommand";
6
6
  import { type ListPriceListsCommandInput, type ListPriceListsCommandOutput } from "./commands/ListPriceListsCommand";
7
7
  import { PricingClient } from "./PricingClient";
8
+ /**
9
+ * @public
10
+ */
11
+ export interface PricingRequestOptions extends __HttpHandlerOptions {
12
+ metricsRecorder?: __MetricsRecorder<unknown>;
13
+ }
8
14
  export interface Pricing {
9
15
  /**
10
16
  * @see {@link DescribeServicesCommand}
11
17
  */
12
18
  describeServices(): Promise<DescribeServicesCommandOutput>;
13
- describeServices(args: DescribeServicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeServicesCommandOutput>;
19
+ describeServices(args: DescribeServicesCommandInput, options?: PricingRequestOptions): Promise<DescribeServicesCommandOutput>;
14
20
  describeServices(args: DescribeServicesCommandInput, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
15
- describeServices(args: DescribeServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
21
+ describeServices(args: DescribeServicesCommandInput, options: PricingRequestOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
16
22
  /**
17
23
  * @see {@link GetAttributeValuesCommand}
18
24
  */
19
- getAttributeValues(args: GetAttributeValuesCommandInput, options?: __HttpHandlerOptions): Promise<GetAttributeValuesCommandOutput>;
25
+ getAttributeValues(args: GetAttributeValuesCommandInput, options?: PricingRequestOptions): Promise<GetAttributeValuesCommandOutput>;
20
26
  getAttributeValues(args: GetAttributeValuesCommandInput, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
21
- getAttributeValues(args: GetAttributeValuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
27
+ getAttributeValues(args: GetAttributeValuesCommandInput, options: PricingRequestOptions, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
22
28
  /**
23
29
  * @see {@link GetPriceListFileUrlCommand}
24
30
  */
25
- getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetPriceListFileUrlCommandOutput>;
31
+ getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options?: PricingRequestOptions): Promise<GetPriceListFileUrlCommandOutput>;
26
32
  getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
27
- getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
33
+ getPriceListFileUrl(args: GetPriceListFileUrlCommandInput, options: PricingRequestOptions, cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void): void;
28
34
  /**
29
35
  * @see {@link GetProductsCommand}
30
36
  */
31
- getProducts(args: GetProductsCommandInput, options?: __HttpHandlerOptions): Promise<GetProductsCommandOutput>;
37
+ getProducts(args: GetProductsCommandInput, options?: PricingRequestOptions): Promise<GetProductsCommandOutput>;
32
38
  getProducts(args: GetProductsCommandInput, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
33
- getProducts(args: GetProductsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
39
+ getProducts(args: GetProductsCommandInput, options: PricingRequestOptions, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
34
40
  /**
35
41
  * @see {@link ListPriceListsCommand}
36
42
  */
37
- listPriceLists(args: ListPriceListsCommandInput, options?: __HttpHandlerOptions): Promise<ListPriceListsCommandOutput>;
43
+ listPriceLists(args: ListPriceListsCommandInput, options?: PricingRequestOptions): Promise<ListPriceListsCommandOutput>;
38
44
  listPriceLists(args: ListPriceListsCommandInput, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
39
- listPriceLists(args: ListPriceListsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
45
+ listPriceLists(args: ListPriceListsCommandInput, options: PricingRequestOptions, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
40
46
  /**
41
47
  * @see {@link DescribeServicesCommand}
42
48
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -21,11 +22,14 @@ import {
21
22
  ListPriceListsCommandOutput,
22
23
  } from "./commands/ListPriceListsCommand";
23
24
  import { PricingClient } from "./PricingClient";
25
+ export interface PricingRequestOptions extends __HttpHandlerOptions {
26
+ metricsRecorder?: __MetricsRecorder<unknown>;
27
+ }
24
28
  export interface Pricing {
25
29
  describeServices(): Promise<DescribeServicesCommandOutput>;
26
30
  describeServices(
27
31
  args: DescribeServicesCommandInput,
28
- options?: __HttpHandlerOptions,
32
+ options?: PricingRequestOptions,
29
33
  ): Promise<DescribeServicesCommandOutput>;
30
34
  describeServices(
31
35
  args: DescribeServicesCommandInput,
@@ -33,12 +37,12 @@ export interface Pricing {
33
37
  ): void;
34
38
  describeServices(
35
39
  args: DescribeServicesCommandInput,
36
- options: __HttpHandlerOptions,
40
+ options: PricingRequestOptions,
37
41
  cb: (err: any, data?: DescribeServicesCommandOutput) => void,
38
42
  ): void;
39
43
  getAttributeValues(
40
44
  args: GetAttributeValuesCommandInput,
41
- options?: __HttpHandlerOptions,
45
+ options?: PricingRequestOptions,
42
46
  ): Promise<GetAttributeValuesCommandOutput>;
43
47
  getAttributeValues(
44
48
  args: GetAttributeValuesCommandInput,
@@ -46,12 +50,12 @@ export interface Pricing {
46
50
  ): void;
47
51
  getAttributeValues(
48
52
  args: GetAttributeValuesCommandInput,
49
- options: __HttpHandlerOptions,
53
+ options: PricingRequestOptions,
50
54
  cb: (err: any, data?: GetAttributeValuesCommandOutput) => void,
51
55
  ): void;
52
56
  getPriceListFileUrl(
53
57
  args: GetPriceListFileUrlCommandInput,
54
- options?: __HttpHandlerOptions,
58
+ options?: PricingRequestOptions,
55
59
  ): Promise<GetPriceListFileUrlCommandOutput>;
56
60
  getPriceListFileUrl(
57
61
  args: GetPriceListFileUrlCommandInput,
@@ -59,12 +63,12 @@ export interface Pricing {
59
63
  ): void;
60
64
  getPriceListFileUrl(
61
65
  args: GetPriceListFileUrlCommandInput,
62
- options: __HttpHandlerOptions,
66
+ options: PricingRequestOptions,
63
67
  cb: (err: any, data?: GetPriceListFileUrlCommandOutput) => void,
64
68
  ): void;
65
69
  getProducts(
66
70
  args: GetProductsCommandInput,
67
- options?: __HttpHandlerOptions,
71
+ options?: PricingRequestOptions,
68
72
  ): Promise<GetProductsCommandOutput>;
69
73
  getProducts(
70
74
  args: GetProductsCommandInput,
@@ -72,12 +76,12 @@ export interface Pricing {
72
76
  ): void;
73
77
  getProducts(
74
78
  args: GetProductsCommandInput,
75
- options: __HttpHandlerOptions,
79
+ options: PricingRequestOptions,
76
80
  cb: (err: any, data?: GetProductsCommandOutput) => void,
77
81
  ): void;
78
82
  listPriceLists(
79
83
  args: ListPriceListsCommandInput,
80
- options?: __HttpHandlerOptions,
84
+ options?: PricingRequestOptions,
81
85
  ): Promise<ListPriceListsCommandOutput>;
82
86
  listPriceLists(
83
87
  args: ListPriceListsCommandInput,
@@ -85,7 +89,7 @@ export interface Pricing {
85
89
  ): void;
86
90
  listPriceLists(
87
91
  args: ListPriceListsCommandInput,
88
- options: __HttpHandlerOptions,
92
+ options: PricingRequestOptions,
89
93
  cb: (err: any, data?: ListPriceListsCommandOutput) => void,
90
94
  ): void;
91
95
  paginateDescribeServices(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pricing",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Pricing Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pricing",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {