@aws-sdk/client-pricing 3.507.0 → 3.511.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
@@ -36,6 +36,7 @@ __export(src_exports, {
36
36
  Pricing: () => Pricing,
37
37
  PricingClient: () => PricingClient,
38
38
  PricingServiceException: () => PricingServiceException,
39
+ ThrottlingException: () => ThrottlingException,
39
40
  __Client: () => import_smithy_client.Client,
40
41
  paginateDescribeServices: () => paginateDescribeServices,
41
42
  paginateGetAttributeValues: () => paginateGetAttributeValues,
@@ -205,6 +206,7 @@ var _InternalErrorException = class _InternalErrorException extends PricingServi
205
206
  });
206
207
  this.name = "InternalErrorException";
207
208
  this.$fault = "server";
209
+ this.$retryable = {};
208
210
  Object.setPrototypeOf(this, _InternalErrorException.prototype);
209
211
  this.Message = opts.Message;
210
212
  }
@@ -265,6 +267,27 @@ var _NotFoundException = class _NotFoundException extends PricingServiceExceptio
265
267
  };
266
268
  __name(_NotFoundException, "NotFoundException");
267
269
  var NotFoundException = _NotFoundException;
270
+ var _ThrottlingException = class _ThrottlingException extends PricingServiceException {
271
+ /**
272
+ * @internal
273
+ */
274
+ constructor(opts) {
275
+ super({
276
+ name: "ThrottlingException",
277
+ $fault: "client",
278
+ ...opts
279
+ });
280
+ this.name = "ThrottlingException";
281
+ this.$fault = "client";
282
+ this.$retryable = {
283
+ throttling: true
284
+ };
285
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
286
+ this.Message = opts.Message;
287
+ }
288
+ };
289
+ __name(_ThrottlingException, "ThrottlingException");
290
+ var ThrottlingException = _ThrottlingException;
268
291
  var FilterType = {
269
292
  TERM_MATCH: "TERM_MATCH"
270
293
  };
@@ -387,6 +410,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
387
410
  case "NotFoundException":
388
411
  case "com.amazonaws.pricing#NotFoundException":
389
412
  throw await de_NotFoundExceptionRes(parsedOutput, context);
413
+ case "ThrottlingException":
414
+ case "com.amazonaws.pricing#ThrottlingException":
415
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
390
416
  case "AccessDeniedException":
391
417
  case "com.amazonaws.pricing#AccessDeniedException":
392
418
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
@@ -453,6 +479,15 @@ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
453
479
  });
454
480
  return (0, import_smithy_client.decorateServiceException)(exception, body);
455
481
  }, "de_NotFoundExceptionRes");
482
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
483
+ const body = parsedOutput.body;
484
+ const deserialized = (0, import_smithy_client._json)(body);
485
+ const exception = new ThrottlingException({
486
+ $metadata: deserializeMetadata(parsedOutput),
487
+ ...deserialized
488
+ });
489
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
490
+ }, "de_ThrottlingExceptionRes");
456
491
  var se_ListPriceListsRequest = /* @__PURE__ */ __name((input, context) => {
457
492
  return (0, import_smithy_client.take)(input, {
458
493
  CurrencyCode: [],
@@ -686,6 +721,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
686
721
  InvalidNextTokenException,
687
722
  InvalidParameterException,
688
723
  NotFoundException,
724
+ ThrottlingException,
689
725
  FilterType
690
726
  });
691
727
 
@@ -34,6 +34,7 @@ export class InternalErrorException extends __BaseException {
34
34
  });
35
35
  this.name = "InternalErrorException";
36
36
  this.$fault = "server";
37
+ this.$retryable = {};
37
38
  Object.setPrototypeOf(this, InternalErrorException.prototype);
38
39
  this.Message = opts.Message;
39
40
  }
@@ -77,6 +78,22 @@ export class NotFoundException extends __BaseException {
77
78
  this.Message = opts.Message;
78
79
  }
79
80
  }
81
+ export class ThrottlingException extends __BaseException {
82
+ constructor(opts) {
83
+ super({
84
+ name: "ThrottlingException",
85
+ $fault: "client",
86
+ ...opts,
87
+ });
88
+ this.name = "ThrottlingException";
89
+ this.$fault = "client";
90
+ this.$retryable = {
91
+ throttling: true,
92
+ };
93
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
94
+ this.Message = opts.Message;
95
+ }
96
+ }
80
97
  export const FilterType = {
81
98
  TERM_MATCH: "TERM_MATCH",
82
99
  };
@@ -1,6 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, take, withBaseException, } from "@smithy/smithy-client";
3
- import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, } from "../models/models_0";
3
+ import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ThrottlingException, } 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");
@@ -119,6 +119,9 @@ const de_CommandError = async (output, context) => {
119
119
  case "NotFoundException":
120
120
  case "com.amazonaws.pricing#NotFoundException":
121
121
  throw await de_NotFoundExceptionRes(parsedOutput, context);
122
+ case "ThrottlingException":
123
+ case "com.amazonaws.pricing#ThrottlingException":
124
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
122
125
  case "AccessDeniedException":
123
126
  case "com.amazonaws.pricing#AccessDeniedException":
124
127
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
@@ -185,6 +188,15 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
185
188
  });
186
189
  return __decorateServiceException(exception, body);
187
190
  };
191
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
192
+ const body = parsedOutput.body;
193
+ const deserialized = _json(body);
194
+ const exception = new ThrottlingException({
195
+ $metadata: deserializeMetadata(parsedOutput),
196
+ ...deserialized,
197
+ });
198
+ return __decorateServiceException(exception, body);
199
+ };
188
200
  const se_ListPriceListsRequest = (input, context) => {
189
201
  return take(input, {
190
202
  CurrencyCode: [],
@@ -66,7 +66,7 @@ export interface Pricing {
66
66
  * an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
67
67
  * <code>volumeType</code>.</p>
68
68
  * <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html">Using the
69
- * Amazon Web Services Price List API</a> in the <i>Billing User
69
+ * Amazon Web Services Price List API</a> in the <i>Billing User
70
70
  * Guide</i>.</p>
71
71
  */
72
72
  export declare class Pricing extends PricingClient implements Pricing {
@@ -184,7 +184,7 @@ export interface PricingClientResolvedConfig extends PricingClientResolvedConfig
184
184
  * an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
185
185
  * <code>volumeType</code>.</p>
186
186
  * <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html">Using the
187
- * Amazon Web Services Price List API</a> in the <i>Billing User
187
+ * Amazon Web Services Price List API</a> in the <i>Billing User
188
188
  * Guide</i>.</p>
189
189
  */
190
190
  export declare class PricingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PricingClientResolvedConfig> {
@@ -83,6 +83,10 @@ declare const DescribeServicesCommand_base: {
83
83
  * @throws {@link NotFoundException} (client fault)
84
84
  * <p>The requested resource can't be found.</p>
85
85
  *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>You've made too many requests exceeding service quotas.
88
+ * </p>
89
+ *
86
90
  * @throws {@link PricingServiceException}
87
91
  * <p>Base exception class for all service exceptions from Pricing service.</p>
88
92
  *
@@ -76,6 +76,10 @@ declare const GetAttributeValuesCommand_base: {
76
76
  * @throws {@link NotFoundException} (client fault)
77
77
  * <p>The requested resource can't be found.</p>
78
78
  *
79
+ * @throws {@link ThrottlingException} (client fault)
80
+ * <p>You've made too many requests exceeding service quotas.
81
+ * </p>
82
+ *
79
83
  * @throws {@link PricingServiceException}
80
84
  * <p>Base exception class for all service exceptions from Pricing service.</p>
81
85
  *
@@ -70,6 +70,10 @@ declare const GetPriceListFileUrlCommand_base: {
70
70
  * @throws {@link NotFoundException} (client fault)
71
71
  * <p>The requested resource can't be found.</p>
72
72
  *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>You've made too many requests exceeding service quotas.
75
+ * </p>
76
+ *
73
77
  * @throws {@link PricingServiceException}
74
78
  * <p>Base exception class for all service exceptions from Pricing service.</p>
75
79
  *
@@ -79,6 +79,10 @@ declare const GetProductsCommand_base: {
79
79
  * @throws {@link NotFoundException} (client fault)
80
80
  * <p>The requested resource can't be found.</p>
81
81
  *
82
+ * @throws {@link ThrottlingException} (client fault)
83
+ * <p>You've made too many requests exceeding service quotas.
84
+ * </p>
85
+ *
82
86
  * @throws {@link PricingServiceException}
83
87
  * <p>Base exception class for all service exceptions from Pricing service.</p>
84
88
  *
@@ -94,6 +94,10 @@ declare const ListPriceListsCommand_base: {
94
94
  * @throws {@link NotFoundException} (client fault)
95
95
  * <p>The requested resource can't be found.</p>
96
96
  *
97
+ * @throws {@link ThrottlingException} (client fault)
98
+ * <p>You've made too many requests exceeding service quotas.
99
+ * </p>
100
+ *
97
101
  * @throws {@link PricingServiceException}
98
102
  * <p>Base exception class for all service exceptions from Pricing service.</p>
99
103
  *
@@ -26,7 +26,7 @@
26
26
  * an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
27
27
  * <code>volumeType</code>.</p>
28
28
  * <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html">Using the
29
- * Amazon Web Services Price List API</a> in the <i>Billing User
29
+ * Amazon Web Services Price List API</a> in the <i>Billing User
30
30
  * Guide</i>.</p>
31
31
  *
32
32
  * @packageDocumentation
@@ -112,6 +112,7 @@ export declare class ExpiredNextTokenException extends __BaseException {
112
112
  export declare class InternalErrorException extends __BaseException {
113
113
  readonly name: "InternalErrorException";
114
114
  readonly $fault: "server";
115
+ $retryable: {};
115
116
  Message?: string;
116
117
  /**
117
118
  * @internal
@@ -157,6 +158,23 @@ export declare class NotFoundException extends __BaseException {
157
158
  */
158
159
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
159
160
  }
161
+ /**
162
+ * @public
163
+ * <p>You've made too many requests exceeding service quotas.
164
+ * </p>
165
+ */
166
+ export declare class ThrottlingException extends __BaseException {
167
+ readonly name: "ThrottlingException";
168
+ readonly $fault: "client";
169
+ $retryable: {
170
+ throttling: boolean;
171
+ };
172
+ Message?: string;
173
+ /**
174
+ * @internal
175
+ */
176
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
177
+ }
160
178
  /**
161
179
  * @public
162
180
  */
@@ -40,6 +40,7 @@ export declare class ExpiredNextTokenException extends __BaseException {
40
40
  export declare class InternalErrorException extends __BaseException {
41
41
  readonly name: "InternalErrorException";
42
42
  readonly $fault: "server";
43
+ $retryable: {};
43
44
  Message?: string;
44
45
  constructor(
45
46
  opts: __ExceptionOptionType<InternalErrorException, __BaseException>
@@ -67,6 +68,17 @@ export declare class NotFoundException extends __BaseException {
67
68
  Message?: string;
68
69
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
69
70
  }
71
+ export declare class ThrottlingException extends __BaseException {
72
+ readonly name: "ThrottlingException";
73
+ readonly $fault: "client";
74
+ $retryable: {
75
+ throttling: boolean;
76
+ };
77
+ Message?: string;
78
+ constructor(
79
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
80
+ );
81
+ }
70
82
  export interface GetAttributeValuesRequest {
71
83
  ServiceCode: string | undefined;
72
84
  AttributeName: string | undefined;
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.507.0",
4
+ "version": "3.511.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pricing",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.507.0",
24
- "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.507.0",
26
- "@aws-sdk/middleware-host-header": "3.502.0",
27
- "@aws-sdk/middleware-logger": "3.502.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.502.0",
29
- "@aws-sdk/middleware-signing": "3.502.0",
30
- "@aws-sdk/middleware-user-agent": "3.502.0",
31
- "@aws-sdk/region-config-resolver": "3.502.0",
32
- "@aws-sdk/types": "3.502.0",
33
- "@aws-sdk/util-endpoints": "3.502.0",
34
- "@aws-sdk/util-user-agent-browser": "3.502.0",
35
- "@aws-sdk/util-user-agent-node": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.511.0",
24
+ "@aws-sdk/core": "3.511.0",
25
+ "@aws-sdk/credential-provider-node": "3.511.0",
26
+ "@aws-sdk/middleware-host-header": "3.511.0",
27
+ "@aws-sdk/middleware-logger": "3.511.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.511.0",
29
+ "@aws-sdk/middleware-signing": "3.511.0",
30
+ "@aws-sdk/middleware-user-agent": "3.511.0",
31
+ "@aws-sdk/region-config-resolver": "3.511.0",
32
+ "@aws-sdk/types": "3.511.0",
33
+ "@aws-sdk/util-endpoints": "3.511.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.511.0",
35
+ "@aws-sdk/util-user-agent-node": "3.511.0",
36
36
  "@smithy/config-resolver": "^2.1.1",
37
37
  "@smithy/core": "^1.3.1",
38
38
  "@smithy/fetch-http-handler": "^2.4.1",