@aws-sdk/client-pricing 3.974.0 → 3.978.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
@@ -507,6 +507,14 @@ class ListPriceListsCommand extends smithyClient.Command
507
507
  .build() {
508
508
  }
509
509
 
510
+ const paginateDescribeServices = core.createPaginator(PricingClient, DescribeServicesCommand, "NextToken", "NextToken", "MaxResults");
511
+
512
+ const paginateGetAttributeValues = core.createPaginator(PricingClient, GetAttributeValuesCommand, "NextToken", "NextToken", "MaxResults");
513
+
514
+ const paginateGetProducts = core.createPaginator(PricingClient, GetProductsCommand, "NextToken", "NextToken", "MaxResults");
515
+
516
+ const paginateListPriceLists = core.createPaginator(PricingClient, ListPriceListsCommand, "NextToken", "NextToken", "MaxResults");
517
+
510
518
  const commands = {
511
519
  DescribeServicesCommand,
512
520
  GetAttributeValuesCommand,
@@ -514,17 +522,15 @@ const commands = {
514
522
  GetProductsCommand,
515
523
  ListPriceListsCommand,
516
524
  };
525
+ const paginators = {
526
+ paginateDescribeServices,
527
+ paginateGetAttributeValues,
528
+ paginateGetProducts,
529
+ paginateListPriceLists,
530
+ };
517
531
  class Pricing extends PricingClient {
518
532
  }
519
- smithyClient.createAggregatedClient(commands, Pricing);
520
-
521
- const paginateDescribeServices = core.createPaginator(PricingClient, DescribeServicesCommand, "NextToken", "NextToken", "MaxResults");
522
-
523
- const paginateGetAttributeValues = core.createPaginator(PricingClient, GetAttributeValuesCommand, "NextToken", "NextToken", "MaxResults");
524
-
525
- const paginateGetProducts = core.createPaginator(PricingClient, GetProductsCommand, "NextToken", "NextToken", "MaxResults");
526
-
527
- const paginateListPriceLists = core.createPaginator(PricingClient, ListPriceListsCommand, "NextToken", "NextToken", "MaxResults");
533
+ smithyClient.createAggregatedClient(commands, Pricing, { paginators });
528
534
 
529
535
  const FilterType = {
530
536
  ANY_OF: "ANY_OF",
@@ -4,6 +4,10 @@ import { GetAttributeValuesCommand, } from "./commands/GetAttributeValuesCommand
4
4
  import { GetPriceListFileUrlCommand, } from "./commands/GetPriceListFileUrlCommand";
5
5
  import { GetProductsCommand } from "./commands/GetProductsCommand";
6
6
  import { ListPriceListsCommand, } from "./commands/ListPriceListsCommand";
7
+ import { paginateDescribeServices } from "./pagination/DescribeServicesPaginator";
8
+ import { paginateGetAttributeValues } from "./pagination/GetAttributeValuesPaginator";
9
+ import { paginateGetProducts } from "./pagination/GetProductsPaginator";
10
+ import { paginateListPriceLists } from "./pagination/ListPriceListsPaginator";
7
11
  import { PricingClient } from "./PricingClient";
8
12
  const commands = {
9
13
  DescribeServicesCommand,
@@ -12,6 +16,12 @@ const commands = {
12
16
  GetProductsCommand,
13
17
  ListPriceListsCommand,
14
18
  };
19
+ const paginators = {
20
+ paginateDescribeServices,
21
+ paginateGetAttributeValues,
22
+ paginateGetProducts,
23
+ paginateListPriceLists,
24
+ };
15
25
  export class Pricing extends PricingClient {
16
26
  }
17
- createAggregatedClient(commands, Pricing);
27
+ createAggregatedClient(commands, Pricing, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
3
3
  import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "./commands/GetAttributeValuesCommand";
4
4
  import { GetPriceListFileUrlCommandInput, GetPriceListFileUrlCommandOutput } from "./commands/GetPriceListFileUrlCommand";
@@ -37,6 +37,34 @@ export interface Pricing {
37
37
  listPriceLists(args: ListPriceListsCommandInput, options?: __HttpHandlerOptions): Promise<ListPriceListsCommandOutput>;
38
38
  listPriceLists(args: ListPriceListsCommandInput, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
39
39
  listPriceLists(args: ListPriceListsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
40
+ /**
41
+ * @see {@link DescribeServicesCommand}
42
+ * @param args - command input.
43
+ * @param paginationConfig - optional pagination config.
44
+ * @returns AsyncIterable of {@link DescribeServicesCommandOutput}.
45
+ */
46
+ paginateDescribeServices(args?: DescribeServicesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeServicesCommandOutput>;
47
+ /**
48
+ * @see {@link GetAttributeValuesCommand}
49
+ * @param args - command input.
50
+ * @param paginationConfig - optional pagination config.
51
+ * @returns AsyncIterable of {@link GetAttributeValuesCommandOutput}.
52
+ */
53
+ paginateGetAttributeValues(args: GetAttributeValuesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetAttributeValuesCommandOutput>;
54
+ /**
55
+ * @see {@link GetProductsCommand}
56
+ * @param args - command input.
57
+ * @param paginationConfig - optional pagination config.
58
+ * @returns AsyncIterable of {@link GetProductsCommandOutput}.
59
+ */
60
+ paginateGetProducts(args: GetProductsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetProductsCommandOutput>;
61
+ /**
62
+ * @see {@link ListPriceListsCommand}
63
+ * @param args - command input.
64
+ * @param paginationConfig - optional pagination config.
65
+ * @returns AsyncIterable of {@link ListPriceListsCommandOutput}.
66
+ */
67
+ paginateListPriceLists(args: ListPriceListsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPriceListsCommandOutput>;
40
68
  }
41
69
  /**
42
70
  * <p>The Amazon Web Services Price List API is a centralized and convenient way to programmatically
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  DescribeServicesCommandInput,
4
8
  DescribeServicesCommandOutput,
@@ -87,5 +91,33 @@ export interface Pricing {
87
91
  options: __HttpHandlerOptions,
88
92
  cb: (err: any, data?: ListPriceListsCommandOutput) => void
89
93
  ): void;
94
+ paginateDescribeServices(
95
+ args?: DescribeServicesCommandInput,
96
+ paginationConfig?: Pick<
97
+ PaginationConfiguration,
98
+ Exclude<keyof PaginationConfiguration, "client">
99
+ >
100
+ ): Paginator<DescribeServicesCommandOutput>;
101
+ paginateGetAttributeValues(
102
+ args: GetAttributeValuesCommandInput,
103
+ paginationConfig?: Pick<
104
+ PaginationConfiguration,
105
+ Exclude<keyof PaginationConfiguration, "client">
106
+ >
107
+ ): Paginator<GetAttributeValuesCommandOutput>;
108
+ paginateGetProducts(
109
+ args: GetProductsCommandInput,
110
+ paginationConfig?: Pick<
111
+ PaginationConfiguration,
112
+ Exclude<keyof PaginationConfiguration, "client">
113
+ >
114
+ ): Paginator<GetProductsCommandOutput>;
115
+ paginateListPriceLists(
116
+ args: ListPriceListsCommandInput,
117
+ paginationConfig?: Pick<
118
+ PaginationConfiguration,
119
+ Exclude<keyof PaginationConfiguration, "client">
120
+ >
121
+ ): Paginator<ListPriceListsCommandOutput>;
90
122
  }
91
123
  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.974.0",
4
+ "version": "3.978.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",
@@ -21,38 +21,38 @@
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.973.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.1",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.0",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.10",
42
- "@smithy/middleware-retry": "^4.4.26",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.11",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",