@aws-sdk/client-pricing 3.74.0 → 3.78.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-pricing
20
+
21
+
22
+
23
+
24
+
25
+ # [3.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-pricing
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-pricing
package/README.md CHANGED
@@ -15,7 +15,7 @@ level. You can use the Amazon Web Services Price List Service to build cost cont
15
15
  billing data, forecast future spend for budgeting purposes, and provide cost benefit
16
16
  analysis that compare your internal workloads with Amazon Web Services.</p>
17
17
  <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
18
- <code>GetServices</code> with a service code to retreive the attribute names for
18
+ <code>GetServices</code> with a service code to retrieve the attribute names for
19
19
  that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
20
20
  to see what values are available for an attribute. With the service code and an attribute name and value,
21
21
  you can use <code>GetProducts</code> to find specific products that you're interested in, such as
@@ -27,8 +27,9 @@ async function* paginateDescribeServices(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected Pricing | PricingClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateGetAttributeValues(config, input, ...additionalArguments
27
27
  throw new Error("Invalid client, expected Pricing | PricingClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateGetProducts(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected Pricing | PricingClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -36,7 +36,7 @@ export function paginateDescribeServices(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeServices_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeServices(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetAttributeValues(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetAttributeValues_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetAttributeValues(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetProducts(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetProducts_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetProducts(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -12,7 +12,7 @@ import { PricingClient } from "./PricingClient";
12
12
  * billing data, forecast future spend for budgeting purposes, and provide cost benefit
13
13
  * analysis that compare your internal workloads with Amazon Web Services.</p>
14
14
  * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
15
- * <code>GetServices</code> with a service code to retreive the attribute names for
15
+ * <code>GetServices</code> with a service code to retrieve the attribute names for
16
16
  * that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
17
17
  * to see what values are available for an attribute. With the service code and an attribute name and value,
18
18
  * you can use <code>GetProducts</code> to find specific products that you're interested in, such as
@@ -43,7 +43,7 @@ export declare class Pricing extends PricingClient {
43
43
  describeServices(args: DescribeServicesCommandInput, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
44
44
  describeServices(args: DescribeServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
45
45
  /**
46
- * <p>Returns a list of attribute values. Attibutes are similar to the details
46
+ * <p>Returns a list of attribute values. Attributes are similar to the details
47
47
  * in a Price List API offer file. For a list of available attributes, see
48
48
  * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
49
49
  * in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Amazon Web Services Billing and Cost Management User Guide</a>.</p>
@@ -137,7 +137,7 @@ export interface PricingClientResolvedConfig extends PricingClientResolvedConfig
137
137
  * billing data, forecast future spend for budgeting purposes, and provide cost benefit
138
138
  * analysis that compare your internal workloads with Amazon Web Services.</p>
139
139
  * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
140
- * <code>GetServices</code> with a service code to retreive the attribute names for
140
+ * <code>GetServices</code> with a service code to retrieve the attribute names for
141
141
  * that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
142
142
  * to see what values are available for an attribute. With the service code and an attribute name and value,
143
143
  * you can use <code>GetProducts</code> to find specific products that you're interested in, such as
@@ -7,7 +7,7 @@ export interface GetAttributeValuesCommandInput extends GetAttributeValuesReques
7
7
  export interface GetAttributeValuesCommandOutput extends GetAttributeValuesResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns a list of attribute values. Attibutes are similar to the details
10
+ * <p>Returns a list of attribute values. Attributes are similar to the details
11
11
  * in a Price List API offer file. For a list of available attributes, see
12
12
  * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
13
13
  * in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Amazon Web Services Billing and Cost Management User Guide</a>.</p>
@@ -75,7 +75,7 @@ export interface DescribeServicesResponse {
75
75
  */
76
76
  FormatVersion?: string;
77
77
  /**
78
- * <p>The pagination token for the next set of retreivable results.</p>
78
+ * <p>The pagination token for the next set of retrievable results.</p>
79
79
  */
80
80
  NextToken?: string;
81
81
  }
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.74.0",
4
+ "version": "3.78.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.74.0",
22
- "@aws-sdk/config-resolver": "3.58.0",
23
- "@aws-sdk/credential-provider-node": "3.74.0",
24
- "@aws-sdk/fetch-http-handler": "3.58.0",
25
- "@aws-sdk/hash-node": "3.55.0",
26
- "@aws-sdk/invalid-dependency": "3.55.0",
27
- "@aws-sdk/middleware-content-length": "3.58.0",
28
- "@aws-sdk/middleware-host-header": "3.58.0",
29
- "@aws-sdk/middleware-logger": "3.55.0",
30
- "@aws-sdk/middleware-retry": "3.58.0",
31
- "@aws-sdk/middleware-serde": "3.55.0",
32
- "@aws-sdk/middleware-signing": "3.58.0",
33
- "@aws-sdk/middleware-stack": "3.55.0",
34
- "@aws-sdk/middleware-user-agent": "3.58.0",
35
- "@aws-sdk/node-config-provider": "3.58.0",
36
- "@aws-sdk/node-http-handler": "3.74.0",
37
- "@aws-sdk/protocol-http": "3.58.0",
38
- "@aws-sdk/smithy-client": "3.72.0",
39
- "@aws-sdk/types": "3.55.0",
40
- "@aws-sdk/url-parser": "3.55.0",
21
+ "@aws-sdk/client-sts": "3.78.0",
22
+ "@aws-sdk/config-resolver": "3.78.0",
23
+ "@aws-sdk/credential-provider-node": "3.78.0",
24
+ "@aws-sdk/fetch-http-handler": "3.78.0",
25
+ "@aws-sdk/hash-node": "3.78.0",
26
+ "@aws-sdk/invalid-dependency": "3.78.0",
27
+ "@aws-sdk/middleware-content-length": "3.78.0",
28
+ "@aws-sdk/middleware-host-header": "3.78.0",
29
+ "@aws-sdk/middleware-logger": "3.78.0",
30
+ "@aws-sdk/middleware-retry": "3.78.0",
31
+ "@aws-sdk/middleware-serde": "3.78.0",
32
+ "@aws-sdk/middleware-signing": "3.78.0",
33
+ "@aws-sdk/middleware-stack": "3.78.0",
34
+ "@aws-sdk/middleware-user-agent": "3.78.0",
35
+ "@aws-sdk/node-config-provider": "3.78.0",
36
+ "@aws-sdk/node-http-handler": "3.78.0",
37
+ "@aws-sdk/protocol-http": "3.78.0",
38
+ "@aws-sdk/smithy-client": "3.78.0",
39
+ "@aws-sdk/types": "3.78.0",
40
+ "@aws-sdk/url-parser": "3.78.0",
41
41
  "@aws-sdk/util-base64-browser": "3.58.0",
42
42
  "@aws-sdk/util-base64-node": "3.55.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.55.0",
44
44
  "@aws-sdk/util-body-length-node": "3.55.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.72.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.72.0",
47
- "@aws-sdk/util-user-agent-browser": "3.58.0",
48
- "@aws-sdk/util-user-agent-node": "3.58.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.78.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.78.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.78.0",
48
+ "@aws-sdk/util-user-agent-node": "3.78.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.55.0",
50
50
  "@aws-sdk/util-utf8-node": "3.55.0",
51
51
  "tslib": "^2.3.1"