@aws-sdk/client-pricing 3.535.0 → 3.540.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
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
+ ResourceNotFoundException: () => ResourceNotFoundException,
39
40
  ThrottlingException: () => ThrottlingException,
40
41
  __Client: () => import_smithy_client.Client,
41
42
  paginateDescribeServices: () => paginateDescribeServices,
@@ -347,6 +348,24 @@ var _ThrottlingException = class _ThrottlingException extends PricingServiceExce
347
348
  };
348
349
  __name(_ThrottlingException, "ThrottlingException");
349
350
  var ThrottlingException = _ThrottlingException;
351
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends PricingServiceException {
352
+ /**
353
+ * @internal
354
+ */
355
+ constructor(opts) {
356
+ super({
357
+ name: "ResourceNotFoundException",
358
+ $fault: "client",
359
+ ...opts
360
+ });
361
+ this.name = "ResourceNotFoundException";
362
+ this.$fault = "client";
363
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
364
+ this.Message = opts.Message;
365
+ }
366
+ };
367
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
368
+ var ResourceNotFoundException = _ResourceNotFoundException;
350
369
  var FilterType = {
351
370
  TERM_MATCH: "TERM_MATCH"
352
371
  };
@@ -475,6 +494,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
475
494
  case "AccessDeniedException":
476
495
  case "com.amazonaws.pricing#AccessDeniedException":
477
496
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
497
+ case "ResourceNotFoundException":
498
+ case "com.amazonaws.pricing#ResourceNotFoundException":
499
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
478
500
  default:
479
501
  const parsedBody = parsedOutput.body;
480
502
  return throwDefaultError({
@@ -538,6 +560,15 @@ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
538
560
  });
539
561
  return (0, import_smithy_client.decorateServiceException)(exception, body);
540
562
  }, "de_NotFoundExceptionRes");
563
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
564
+ const body = parsedOutput.body;
565
+ const deserialized = (0, import_smithy_client._json)(body);
566
+ const exception = new ResourceNotFoundException({
567
+ $metadata: deserializeMetadata(parsedOutput),
568
+ ...deserialized
569
+ });
570
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
571
+ }, "de_ResourceNotFoundExceptionRes");
541
572
  var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
542
573
  const body = parsedOutput.body;
543
574
  const deserialized = (0, import_smithy_client._json)(body);
@@ -713,9 +744,6 @@ var paginateGetProducts = (0, import_core.createPaginator)(PricingClient, GetPro
713
744
  // src/pagination/ListPriceListsPaginator.ts
714
745
 
715
746
  var paginateListPriceLists = (0, import_core.createPaginator)(PricingClient, ListPriceListsCommand, "NextToken", "NextToken", "MaxResults");
716
-
717
- // src/index.ts
718
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
719
747
  // Annotate the CommonJS export names for ESM import in node:
720
748
 
721
749
  0 && (module.exports = {
@@ -740,6 +768,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
740
768
  InvalidParameterException,
741
769
  NotFoundException,
742
770
  ThrottlingException,
771
+ ResourceNotFoundException,
743
772
  FilterType
744
773
  });
745
774
 
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./Pricing";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { PricingServiceException } from "./models/PricingServiceException";
@@ -94,6 +94,19 @@ export class ThrottlingException extends __BaseException {
94
94
  this.Message = opts.Message;
95
95
  }
96
96
  }
97
+ export class ResourceNotFoundException extends __BaseException {
98
+ constructor(opts) {
99
+ super({
100
+ name: "ResourceNotFoundException",
101
+ $fault: "client",
102
+ ...opts,
103
+ });
104
+ this.name = "ResourceNotFoundException";
105
+ this.$fault = "client";
106
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
107
+ this.Message = opts.Message;
108
+ }
109
+ }
97
110
  export const FilterType = {
98
111
  TERM_MATCH: "TERM_MATCH",
99
112
  };
@@ -1,7 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ThrottlingException, } from "../models/models_0";
4
+ import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
5
5
  import { PricingServiceException as __BaseException } from "../models/PricingServiceException";
6
6
  export const se_DescribeServicesCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("DescribeServices");
@@ -126,6 +126,9 @@ const de_CommandError = async (output, context) => {
126
126
  case "AccessDeniedException":
127
127
  case "com.amazonaws.pricing#AccessDeniedException":
128
128
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
129
+ case "ResourceNotFoundException":
130
+ case "com.amazonaws.pricing#ResourceNotFoundException":
131
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
129
132
  default:
130
133
  const parsedBody = parsedOutput.body;
131
134
  return throwDefaultError({
@@ -189,6 +192,15 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
189
192
  });
190
193
  return __decorateServiceException(exception, body);
191
194
  };
195
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
196
+ const body = parsedOutput.body;
197
+ const deserialized = _json(body);
198
+ const exception = new ResourceNotFoundException({
199
+ $metadata: deserializeMetadata(parsedOutput),
200
+ ...deserialized,
201
+ });
202
+ return __decorateServiceException(exception, body);
203
+ };
192
204
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
193
205
  const body = parsedOutput.body;
194
206
  const deserialized = _json(body);
@@ -70,6 +70,9 @@ 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 ResourceNotFoundException} (client fault)
74
+ * <p>The requested resource can't be found.</p>
75
+ *
73
76
  * @throws {@link ThrottlingException} (client fault)
74
77
  * <p>You've made too many requests exceeding service quotas.
75
78
  * </p>
@@ -94,6 +94,9 @@ 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 ResourceNotFoundException} (client fault)
98
+ * <p>The requested resource can't be found.</p>
99
+ *
97
100
  * @throws {@link ThrottlingException} (client fault)
98
101
  * <p>You've made too many requests exceeding service quotas.
99
102
  * </p>
@@ -39,5 +39,4 @@ export { PricingExtensionConfiguration } from "./extensionConfiguration";
39
39
  export * from "./commands";
40
40
  export * from "./pagination";
41
41
  export * from "./models";
42
- import "@aws-sdk/util-endpoints";
43
42
  export { PricingServiceException } from "./models/PricingServiceException";
@@ -245,6 +245,19 @@ export interface GetPriceListFileUrlResponse {
245
245
  */
246
246
  Url?: string;
247
247
  }
248
+ /**
249
+ * <p>The requested resource can't be found.</p>
250
+ * @public
251
+ */
252
+ export declare class ResourceNotFoundException extends __BaseException {
253
+ readonly name: "ResourceNotFoundException";
254
+ readonly $fault: "client";
255
+ Message?: string;
256
+ /**
257
+ * @internal
258
+ */
259
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
260
+ }
248
261
  /**
249
262
  * @public
250
263
  * @enum
@@ -6,5 +6,4 @@ export { PricingExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./models";
9
- import "@aws-sdk/util-endpoints";
10
9
  export { PricingServiceException } from "./models/PricingServiceException";
@@ -96,6 +96,14 @@ export interface GetPriceListFileUrlRequest {
96
96
  export interface GetPriceListFileUrlResponse {
97
97
  Url?: string;
98
98
  }
99
+ export declare class ResourceNotFoundException extends __BaseException {
100
+ readonly name: "ResourceNotFoundException";
101
+ readonly $fault: "client";
102
+ Message?: string;
103
+ constructor(
104
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
105
+ );
106
+ }
99
107
  export declare const FilterType: {
100
108
  readonly TERM_MATCH: "TERM_MATCH";
101
109
  };
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.535.0",
4
+ "version": "3.540.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,16 +20,16 @@
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.535.0",
23
+ "@aws-sdk/client-sts": "3.540.0",
24
24
  "@aws-sdk/core": "3.535.0",
25
- "@aws-sdk/credential-provider-node": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
- "@aws-sdk/middleware-user-agent": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
30
  "@aws-sdk/region-config-resolver": "3.535.0",
31
31
  "@aws-sdk/types": "3.535.0",
32
- "@aws-sdk/util-endpoints": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.535.0",
34
34
  "@aws-sdk/util-user-agent-node": "3.535.0",
35
35
  "@smithy/config-resolver": "^2.2.0",