@aws-sdk/client-pricing 3.180.0 → 3.183.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,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-pricing
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-pricing
@@ -52,7 +52,7 @@ exports.deserializeAws_json1_1DescribeServicesCommand = deserializeAws_json1_1De
52
52
  const deserializeAws_json1_1DescribeServicesCommandError = async (output, context) => {
53
53
  const parsedOutput = {
54
54
  ...output,
55
- body: await parseBody(output.body, context),
55
+ body: await parseErrorBody(output.body, context),
56
56
  };
57
57
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
58
58
  switch (errorCode) {
@@ -98,7 +98,7 @@ exports.deserializeAws_json1_1GetAttributeValuesCommand = deserializeAws_json1_1
98
98
  const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, context) => {
99
99
  const parsedOutput = {
100
100
  ...output,
101
- body: await parseBody(output.body, context),
101
+ body: await parseErrorBody(output.body, context),
102
102
  };
103
103
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
104
104
  switch (errorCode) {
@@ -144,7 +144,7 @@ exports.deserializeAws_json1_1GetProductsCommand = deserializeAws_json1_1GetProd
144
144
  const deserializeAws_json1_1GetProductsCommandError = async (output, context) => {
145
145
  const parsedOutput = {
146
146
  ...output,
147
- body: await parseBody(output.body, context),
147
+ body: await parseErrorBody(output.body, context),
148
148
  };
149
149
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
150
150
  switch (errorCode) {
@@ -401,6 +401,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
401
401
  }
402
402
  return {};
403
403
  });
404
+ const parseErrorBody = async (errorBody, context) => {
405
+ var _a;
406
+ const value = await parseBody(errorBody, context);
407
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
408
+ return value;
409
+ };
404
410
  const loadRestJsonErrorCode = (output, data) => {
405
411
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
406
412
  const sanitizeErrorCode = (rawValue) => {
@@ -1,55 +1,48 @@
1
- import { __extends } from "tslib";
2
1
  import { DescribeServicesCommand, } from "./commands/DescribeServicesCommand";
3
2
  import { GetAttributeValuesCommand, } from "./commands/GetAttributeValuesCommand";
4
3
  import { GetProductsCommand } from "./commands/GetProductsCommand";
5
4
  import { PricingClient } from "./PricingClient";
6
- var Pricing = (function (_super) {
7
- __extends(Pricing, _super);
8
- function Pricing() {
9
- return _super !== null && _super.apply(this, arguments) || this;
10
- }
11
- Pricing.prototype.describeServices = function (args, optionsOrCb, cb) {
12
- var command = new DescribeServicesCommand(args);
5
+ export class Pricing extends PricingClient {
6
+ describeServices(args, optionsOrCb, cb) {
7
+ const command = new DescribeServicesCommand(args);
13
8
  if (typeof optionsOrCb === "function") {
14
9
  this.send(command, optionsOrCb);
15
10
  }
16
11
  else if (typeof cb === "function") {
17
12
  if (typeof optionsOrCb !== "object")
18
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
13
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
19
14
  this.send(command, optionsOrCb || {}, cb);
20
15
  }
21
16
  else {
22
17
  return this.send(command, optionsOrCb);
23
18
  }
24
- };
25
- Pricing.prototype.getAttributeValues = function (args, optionsOrCb, cb) {
26
- var command = new GetAttributeValuesCommand(args);
19
+ }
20
+ getAttributeValues(args, optionsOrCb, cb) {
21
+ const command = new GetAttributeValuesCommand(args);
27
22
  if (typeof optionsOrCb === "function") {
28
23
  this.send(command, optionsOrCb);
29
24
  }
30
25
  else if (typeof cb === "function") {
31
26
  if (typeof optionsOrCb !== "object")
32
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
27
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
33
28
  this.send(command, optionsOrCb || {}, cb);
34
29
  }
35
30
  else {
36
31
  return this.send(command, optionsOrCb);
37
32
  }
38
- };
39
- Pricing.prototype.getProducts = function (args, optionsOrCb, cb) {
40
- var command = new GetProductsCommand(args);
33
+ }
34
+ getProducts(args, optionsOrCb, cb) {
35
+ const command = new GetProductsCommand(args);
41
36
  if (typeof optionsOrCb === "function") {
42
37
  this.send(command, optionsOrCb);
43
38
  }
44
39
  else if (typeof cb === "function") {
45
40
  if (typeof optionsOrCb !== "object")
46
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
42
  this.send(command, optionsOrCb || {}, cb);
48
43
  }
49
44
  else {
50
45
  return this.send(command, optionsOrCb);
51
46
  }
52
- };
53
- return Pricing;
54
- }(PricingClient));
55
- export { Pricing };
47
+ }
48
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var PricingClient = (function (_super) {
13
- __extends(PricingClient, _super);
14
- function PricingClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class PricingClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- PricingClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return PricingClient;
38
- }(__Client));
39
- export { PricingClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeServicesRequestFilterSensitiveLog, DescribeServicesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeServicesCommand, serializeAws_json1_1DescribeServicesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeServicesCommand = (function (_super) {
7
- __extends(DescribeServicesCommand, _super);
8
- function DescribeServicesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeServicesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeServicesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PricingClient";
18
- var commandName = "DescribeServicesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PricingClient";
15
+ const commandName = "DescribeServicesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeServicesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeServicesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeServicesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeServicesCommand(input, context);
33
- };
34
- DescribeServicesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeServicesCommand(output, context);
36
- };
37
- return DescribeServicesCommand;
38
- }($Command));
39
- export { DescribeServicesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetAttributeValuesRequestFilterSensitiveLog, GetAttributeValuesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetAttributeValuesCommand, serializeAws_json1_1GetAttributeValuesCommand, } from "../protocols/Aws_json1_1";
6
- var GetAttributeValuesCommand = (function (_super) {
7
- __extends(GetAttributeValuesCommand, _super);
8
- function GetAttributeValuesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAttributeValuesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAttributeValuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PricingClient";
18
- var commandName = "GetAttributeValuesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PricingClient";
15
+ const commandName = "GetAttributeValuesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAttributeValuesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAttributeValuesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAttributeValuesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetAttributeValuesCommand(input, context);
33
- };
34
- GetAttributeValuesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetAttributeValuesCommand(output, context);
36
- };
37
- return GetAttributeValuesCommand;
38
- }($Command));
39
- export { GetAttributeValuesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetProductsRequestFilterSensitiveLog, GetProductsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetProductsCommand, serializeAws_json1_1GetProductsCommand, } from "../protocols/Aws_json1_1";
6
- var GetProductsCommand = (function (_super) {
7
- __extends(GetProductsCommand, _super);
8
- function GetProductsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetProductsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetProductsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "PricingClient";
18
- var commandName = "GetProductsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "PricingClient";
15
+ const commandName = "GetProductsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetProductsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetProductsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetProductsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetProductsCommand(input, context);
33
- };
34
- GetProductsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetProductsCommand(output, context);
36
- };
37
- return GetProductsCommand;
38
- }($Command));
39
- export { GetProductsCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
124
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
- return __generator(this, function (_a) {
126
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "pricing", regionHash: regionHash, partitionHash: partitionHash }))];
127
- });
128
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "pricing",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var PricingServiceException = (function (_super) {
4
- __extends(PricingServiceException, _super);
5
- function PricingServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, PricingServiceException.prototype);
8
- return _this;
2
+ export class PricingServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, PricingServiceException.prototype);
9
6
  }
10
- return PricingServiceException;
11
- }(__ServiceException));
12
- export { PricingServiceException };
7
+ }
@@ -1,80 +1,97 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { PricingServiceException as __BaseException } from "./PricingServiceException";
3
- var ExpiredNextTokenException = (function (_super) {
4
- __extends(ExpiredNextTokenException, _super);
5
- function ExpiredNextTokenException(opts) {
6
- var _this = _super.call(this, __assign({ name: "ExpiredNextTokenException", $fault: "client" }, opts)) || this;
7
- _this.name = "ExpiredNextTokenException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, ExpiredNextTokenException.prototype);
10
- _this.Message = opts.Message;
11
- return _this;
2
+ export class ExpiredNextTokenException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "ExpiredNextTokenException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "ExpiredNextTokenException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
12
+ this.Message = opts.Message;
12
13
  }
13
- return ExpiredNextTokenException;
14
- }(__BaseException));
15
- export { ExpiredNextTokenException };
16
- var InternalErrorException = (function (_super) {
17
- __extends(InternalErrorException, _super);
18
- function InternalErrorException(opts) {
19
- var _this = _super.call(this, __assign({ name: "InternalErrorException", $fault: "server" }, opts)) || this;
20
- _this.name = "InternalErrorException";
21
- _this.$fault = "server";
22
- Object.setPrototypeOf(_this, InternalErrorException.prototype);
23
- _this.Message = opts.Message;
24
- return _this;
14
+ }
15
+ export class InternalErrorException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "InternalErrorException",
19
+ $fault: "server",
20
+ ...opts,
21
+ });
22
+ this.name = "InternalErrorException";
23
+ this.$fault = "server";
24
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
25
+ this.Message = opts.Message;
25
26
  }
26
- return InternalErrorException;
27
- }(__BaseException));
28
- export { InternalErrorException };
29
- var InvalidNextTokenException = (function (_super) {
30
- __extends(InvalidNextTokenException, _super);
31
- function InvalidNextTokenException(opts) {
32
- var _this = _super.call(this, __assign({ name: "InvalidNextTokenException", $fault: "client" }, opts)) || this;
33
- _this.name = "InvalidNextTokenException";
34
- _this.$fault = "client";
35
- Object.setPrototypeOf(_this, InvalidNextTokenException.prototype);
36
- _this.Message = opts.Message;
37
- return _this;
27
+ }
28
+ export class InvalidNextTokenException extends __BaseException {
29
+ constructor(opts) {
30
+ super({
31
+ name: "InvalidNextTokenException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ this.name = "InvalidNextTokenException";
36
+ this.$fault = "client";
37
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
38
+ this.Message = opts.Message;
38
39
  }
39
- return InvalidNextTokenException;
40
- }(__BaseException));
41
- export { InvalidNextTokenException };
42
- var InvalidParameterException = (function (_super) {
43
- __extends(InvalidParameterException, _super);
44
- function InvalidParameterException(opts) {
45
- var _this = _super.call(this, __assign({ name: "InvalidParameterException", $fault: "client" }, opts)) || this;
46
- _this.name = "InvalidParameterException";
47
- _this.$fault = "client";
48
- Object.setPrototypeOf(_this, InvalidParameterException.prototype);
49
- _this.Message = opts.Message;
50
- return _this;
40
+ }
41
+ export class InvalidParameterException extends __BaseException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "InvalidParameterException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ this.name = "InvalidParameterException";
49
+ this.$fault = "client";
50
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
51
+ this.Message = opts.Message;
51
52
  }
52
- return InvalidParameterException;
53
- }(__BaseException));
54
- export { InvalidParameterException };
55
- var NotFoundException = (function (_super) {
56
- __extends(NotFoundException, _super);
57
- function NotFoundException(opts) {
58
- var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
59
- _this.name = "NotFoundException";
60
- _this.$fault = "client";
61
- Object.setPrototypeOf(_this, NotFoundException.prototype);
62
- _this.Message = opts.Message;
63
- return _this;
53
+ }
54
+ export class NotFoundException extends __BaseException {
55
+ constructor(opts) {
56
+ super({
57
+ name: "NotFoundException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ this.name = "NotFoundException";
62
+ this.$fault = "client";
63
+ Object.setPrototypeOf(this, NotFoundException.prototype);
64
+ this.Message = opts.Message;
64
65
  }
65
- return NotFoundException;
66
- }(__BaseException));
67
- export { NotFoundException };
66
+ }
68
67
  export var FilterType;
69
68
  (function (FilterType) {
70
69
  FilterType["TERM_MATCH"] = "TERM_MATCH";
71
70
  })(FilterType || (FilterType = {}));
72
- export var AttributeValueFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
- export var DescribeServicesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
- export var ServiceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- export var DescribeServicesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
- export var GetAttributeValuesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- export var GetAttributeValuesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
- export var FilterFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
- export var GetProductsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
- export var GetProductsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
+ export const AttributeValueFilterSensitiveLog = (obj) => ({
72
+ ...obj,
73
+ });
74
+ export const DescribeServicesRequestFilterSensitiveLog = (obj) => ({
75
+ ...obj,
76
+ });
77
+ export const ServiceFilterSensitiveLog = (obj) => ({
78
+ ...obj,
79
+ });
80
+ export const DescribeServicesResponseFilterSensitiveLog = (obj) => ({
81
+ ...obj,
82
+ });
83
+ export const GetAttributeValuesRequestFilterSensitiveLog = (obj) => ({
84
+ ...obj,
85
+ });
86
+ export const GetAttributeValuesResponseFilterSensitiveLog = (obj) => ({
87
+ ...obj,
88
+ });
89
+ export const FilterFilterSensitiveLog = (obj) => ({
90
+ ...obj,
91
+ });
92
+ export const GetProductsRequestFilterSensitiveLog = (obj) => ({
93
+ ...obj,
94
+ });
95
+ export const GetProductsResponseFilterSensitiveLog = (obj) => ({
96
+ ...obj,
97
+ });