@aws-sdk/client-pricing 3.131.0 → 3.142.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,39 @@
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.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
29
+
30
+
31
+ ### Features
32
+
33
+ * **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
34
+
35
+
36
+
37
+
38
+
6
39
  # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
7
40
 
8
41
  **Note:** Version bump only for package @aws-sdk/client-pricing
package/README.md CHANGED
@@ -188,7 +188,7 @@ try {
188
188
  const data = await client.send(command);
189
189
  // process data.
190
190
  } catch (error) {
191
- const { requestId, cfId, extendedRequestId } = error.$metadata;
191
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
192
192
  console.log({ requestId, cfId, extendedRequestId });
193
193
  /**
194
194
  * The keys within exceptions are also parsed.
@@ -20,8 +20,8 @@ class DescribeServicesCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DescribeServicesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.DescribeServicesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.DescribeServicesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeServicesResponseFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -20,8 +20,8 @@ class GetAttributeValuesCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetAttributeValuesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetAttributeValuesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.GetAttributeValuesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetAttributeValuesResponseFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -20,8 +20,8 @@ class GetProductsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.GetProductsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.GetProductsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.GetProductsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetProductsResponseFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,31 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetProductsResponse = exports.GetProductsRequest = exports.Filter = exports.FilterType = exports.GetAttributeValuesResponse = exports.GetAttributeValuesRequest = exports.NotFoundException = exports.InvalidParameterException = exports.InvalidNextTokenException = exports.InternalErrorException = exports.ExpiredNextTokenException = exports.DescribeServicesResponse = exports.Service = exports.DescribeServicesRequest = exports.AttributeValue = void 0;
3
+ exports.GetProductsResponseFilterSensitiveLog = exports.GetProductsRequestFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.GetAttributeValuesResponseFilterSensitiveLog = exports.GetAttributeValuesRequestFilterSensitiveLog = exports.DescribeServicesResponseFilterSensitiveLog = exports.ServiceFilterSensitiveLog = exports.DescribeServicesRequestFilterSensitiveLog = exports.AttributeValueFilterSensitiveLog = exports.FilterType = exports.NotFoundException = exports.InvalidParameterException = exports.InvalidNextTokenException = exports.InternalErrorException = exports.ExpiredNextTokenException = void 0;
4
4
  const PricingServiceException_1 = require("./PricingServiceException");
5
- var AttributeValue;
6
- (function (AttributeValue) {
7
- AttributeValue.filterSensitiveLog = (obj) => ({
8
- ...obj,
9
- });
10
- })(AttributeValue = exports.AttributeValue || (exports.AttributeValue = {}));
11
- var DescribeServicesRequest;
12
- (function (DescribeServicesRequest) {
13
- DescribeServicesRequest.filterSensitiveLog = (obj) => ({
14
- ...obj,
15
- });
16
- })(DescribeServicesRequest = exports.DescribeServicesRequest || (exports.DescribeServicesRequest = {}));
17
- var Service;
18
- (function (Service) {
19
- Service.filterSensitiveLog = (obj) => ({
20
- ...obj,
21
- });
22
- })(Service = exports.Service || (exports.Service = {}));
23
- var DescribeServicesResponse;
24
- (function (DescribeServicesResponse) {
25
- DescribeServicesResponse.filterSensitiveLog = (obj) => ({
26
- ...obj,
27
- });
28
- })(DescribeServicesResponse = exports.DescribeServicesResponse || (exports.DescribeServicesResponse = {}));
29
5
  class ExpiredNextTokenException extends PricingServiceException_1.PricingServiceException {
30
6
  constructor(opts) {
31
7
  super({
@@ -96,37 +72,43 @@ class NotFoundException extends PricingServiceException_1.PricingServiceExceptio
96
72
  }
97
73
  }
98
74
  exports.NotFoundException = NotFoundException;
99
- var GetAttributeValuesRequest;
100
- (function (GetAttributeValuesRequest) {
101
- GetAttributeValuesRequest.filterSensitiveLog = (obj) => ({
102
- ...obj,
103
- });
104
- })(GetAttributeValuesRequest = exports.GetAttributeValuesRequest || (exports.GetAttributeValuesRequest = {}));
105
- var GetAttributeValuesResponse;
106
- (function (GetAttributeValuesResponse) {
107
- GetAttributeValuesResponse.filterSensitiveLog = (obj) => ({
108
- ...obj,
109
- });
110
- })(GetAttributeValuesResponse = exports.GetAttributeValuesResponse || (exports.GetAttributeValuesResponse = {}));
111
75
  var FilterType;
112
76
  (function (FilterType) {
113
77
  FilterType["TERM_MATCH"] = "TERM_MATCH";
114
78
  })(FilterType = exports.FilterType || (exports.FilterType = {}));
115
- var Filter;
116
- (function (Filter) {
117
- Filter.filterSensitiveLog = (obj) => ({
118
- ...obj,
119
- });
120
- })(Filter = exports.Filter || (exports.Filter = {}));
121
- var GetProductsRequest;
122
- (function (GetProductsRequest) {
123
- GetProductsRequest.filterSensitiveLog = (obj) => ({
124
- ...obj,
125
- });
126
- })(GetProductsRequest = exports.GetProductsRequest || (exports.GetProductsRequest = {}));
127
- var GetProductsResponse;
128
- (function (GetProductsResponse) {
129
- GetProductsResponse.filterSensitiveLog = (obj) => ({
130
- ...obj,
131
- });
132
- })(GetProductsResponse = exports.GetProductsResponse || (exports.GetProductsResponse = {}));
79
+ const AttributeValueFilterSensitiveLog = (obj) => ({
80
+ ...obj,
81
+ });
82
+ exports.AttributeValueFilterSensitiveLog = AttributeValueFilterSensitiveLog;
83
+ const DescribeServicesRequestFilterSensitiveLog = (obj) => ({
84
+ ...obj,
85
+ });
86
+ exports.DescribeServicesRequestFilterSensitiveLog = DescribeServicesRequestFilterSensitiveLog;
87
+ const ServiceFilterSensitiveLog = (obj) => ({
88
+ ...obj,
89
+ });
90
+ exports.ServiceFilterSensitiveLog = ServiceFilterSensitiveLog;
91
+ const DescribeServicesResponseFilterSensitiveLog = (obj) => ({
92
+ ...obj,
93
+ });
94
+ exports.DescribeServicesResponseFilterSensitiveLog = DescribeServicesResponseFilterSensitiveLog;
95
+ const GetAttributeValuesRequestFilterSensitiveLog = (obj) => ({
96
+ ...obj,
97
+ });
98
+ exports.GetAttributeValuesRequestFilterSensitiveLog = GetAttributeValuesRequestFilterSensitiveLog;
99
+ const GetAttributeValuesResponseFilterSensitiveLog = (obj) => ({
100
+ ...obj,
101
+ });
102
+ exports.GetAttributeValuesResponseFilterSensitiveLog = GetAttributeValuesResponseFilterSensitiveLog;
103
+ const FilterFilterSensitiveLog = (obj) => ({
104
+ ...obj,
105
+ });
106
+ exports.FilterFilterSensitiveLog = FilterFilterSensitiveLog;
107
+ const GetProductsRequestFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ });
110
+ exports.GetProductsRequestFilterSensitiveLog = GetProductsRequestFilterSensitiveLog;
111
+ const GetProductsResponseFilterSensitiveLog = (obj) => ({
112
+ ...obj,
113
+ });
114
+ exports.GetProductsResponseFilterSensitiveLog = GetProductsResponseFilterSensitiveLog;
@@ -54,7 +54,6 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
54
54
  ...output,
55
55
  body: await parseBody(output.body, context),
56
56
  };
57
- let response;
58
57
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
59
58
  switch (errorCode) {
60
59
  case "ExpiredNextTokenException":
@@ -74,14 +73,12 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
74
73
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
75
74
  default:
76
75
  const parsedBody = parsedOutput.body;
77
- const $metadata = deserializeMetadata(output);
78
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
79
- response = new PricingServiceException_1.PricingServiceException({
80
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
81
- $fault: "client",
82
- $metadata,
76
+ (0, smithy_client_1.throwDefaultError)({
77
+ output,
78
+ parsedBody,
79
+ exceptionCtor: PricingServiceException_1.PricingServiceException,
80
+ errorCode,
83
81
  });
84
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
85
82
  }
86
83
  };
87
84
  const deserializeAws_json1_1GetAttributeValuesCommand = async (output, context) => {
@@ -103,7 +100,6 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
103
100
  ...output,
104
101
  body: await parseBody(output.body, context),
105
102
  };
106
- let response;
107
103
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
108
104
  switch (errorCode) {
109
105
  case "ExpiredNextTokenException":
@@ -123,14 +119,12 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
123
119
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
124
120
  default:
125
121
  const parsedBody = parsedOutput.body;
126
- const $metadata = deserializeMetadata(output);
127
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
128
- response = new PricingServiceException_1.PricingServiceException({
129
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
130
- $fault: "client",
131
- $metadata,
122
+ (0, smithy_client_1.throwDefaultError)({
123
+ output,
124
+ parsedBody,
125
+ exceptionCtor: PricingServiceException_1.PricingServiceException,
126
+ errorCode,
132
127
  });
133
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
134
128
  }
135
129
  };
136
130
  const deserializeAws_json1_1GetProductsCommand = async (output, context) => {
@@ -152,7 +146,6 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
152
146
  ...output,
153
147
  body: await parseBody(output.body, context),
154
148
  };
155
- let response;
156
149
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
157
150
  switch (errorCode) {
158
151
  case "ExpiredNextTokenException":
@@ -172,14 +165,12 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
172
165
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
173
166
  default:
174
167
  const parsedBody = parsedOutput.body;
175
- const $metadata = deserializeMetadata(output);
176
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
177
- response = new PricingServiceException_1.PricingServiceException({
178
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
179
- $fault: "client",
180
- $metadata,
168
+ (0, smithy_client_1.throwDefaultError)({
169
+ output,
170
+ parsedBody,
171
+ exceptionCtor: PricingServiceException_1.PricingServiceException,
172
+ errorCode,
181
173
  });
182
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
183
174
  }
184
175
  };
185
176
  const deserializeAws_json1_1ExpiredNextTokenExceptionResponse = async (parsedOutput, context) => {
@@ -246,9 +237,6 @@ const serializeAws_json1_1Filters = (input, context) => {
246
237
  return input
247
238
  .filter((e) => e != null)
248
239
  .map((entry) => {
249
- if (entry === null) {
250
- return null;
251
- }
252
240
  return serializeAws_json1_1Filter(entry, context);
253
241
  });
254
242
  };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_0";
4
+ import { DescribeServicesRequestFilterSensitiveLog, DescribeServicesResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1DescribeServicesCommand, serializeAws_json1_1DescribeServicesCommand, } from "../protocols/Aws_json1_1";
6
6
  var DescribeServicesCommand = (function (_super) {
7
7
  __extends(DescribeServicesCommand, _super);
@@ -20,8 +20,8 @@ var DescribeServicesCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: DescribeServicesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: DescribeServicesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: DescribeServicesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeServicesResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetAttributeValuesRequest, GetAttributeValuesResponse } from "../models/models_0";
4
+ import { GetAttributeValuesRequestFilterSensitiveLog, GetAttributeValuesResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1GetAttributeValuesCommand, serializeAws_json1_1GetAttributeValuesCommand, } from "../protocols/Aws_json1_1";
6
6
  var GetAttributeValuesCommand = (function (_super) {
7
7
  __extends(GetAttributeValuesCommand, _super);
@@ -20,8 +20,8 @@ var GetAttributeValuesCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetAttributeValuesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetAttributeValuesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetAttributeValuesRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetAttributeValuesResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { GetProductsRequest, GetProductsResponse } from "../models/models_0";
4
+ import { GetProductsRequestFilterSensitiveLog, GetProductsResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_json1_1GetProductsCommand, serializeAws_json1_1GetProductsCommand, } from "../protocols/Aws_json1_1";
6
6
  var GetProductsCommand = (function (_super) {
7
7
  __extends(GetProductsCommand, _super);
@@ -20,8 +20,8 @@ var GetProductsCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: GetProductsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: GetProductsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: GetProductsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetProductsResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -1,21 +1,5 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { PricingServiceException as __BaseException } from "./PricingServiceException";
3
- export var AttributeValue;
4
- (function (AttributeValue) {
5
- AttributeValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AttributeValue || (AttributeValue = {}));
7
- export var DescribeServicesRequest;
8
- (function (DescribeServicesRequest) {
9
- DescribeServicesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
- })(DescribeServicesRequest || (DescribeServicesRequest = {}));
11
- export var Service;
12
- (function (Service) {
13
- Service.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
- })(Service || (Service = {}));
15
- export var DescribeServicesResponse;
16
- (function (DescribeServicesResponse) {
17
- DescribeServicesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
- })(DescribeServicesResponse || (DescribeServicesResponse = {}));
19
3
  var ExpiredNextTokenException = (function (_super) {
20
4
  __extends(ExpiredNextTokenException, _super);
21
5
  function ExpiredNextTokenException(opts) {
@@ -81,27 +65,16 @@ var NotFoundException = (function (_super) {
81
65
  return NotFoundException;
82
66
  }(__BaseException));
83
67
  export { NotFoundException };
84
- export var GetAttributeValuesRequest;
85
- (function (GetAttributeValuesRequest) {
86
- GetAttributeValuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- })(GetAttributeValuesRequest || (GetAttributeValuesRequest = {}));
88
- export var GetAttributeValuesResponse;
89
- (function (GetAttributeValuesResponse) {
90
- GetAttributeValuesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
- })(GetAttributeValuesResponse || (GetAttributeValuesResponse = {}));
92
68
  export var FilterType;
93
69
  (function (FilterType) {
94
70
  FilterType["TERM_MATCH"] = "TERM_MATCH";
95
71
  })(FilterType || (FilterType = {}));
96
- export var Filter;
97
- (function (Filter) {
98
- Filter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
- })(Filter || (Filter = {}));
100
- export var GetProductsRequest;
101
- (function (GetProductsRequest) {
102
- GetProductsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
- })(GetProductsRequest || (GetProductsRequest = {}));
104
- export var GetProductsResponse;
105
- (function (GetProductsResponse) {
106
- GetProductsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
107
- })(GetProductsResponse || (GetProductsResponse = {}));
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)); };
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, } from "../models/models_0";
5
5
  import { PricingServiceException as __BaseException } from "../models/PricingServiceException";
6
6
  export var serializeAws_json1_1DescribeServicesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -55,7 +55,7 @@ export var deserializeAws_json1_1DescribeServicesCommand = function (output, con
55
55
  });
56
56
  }); };
57
57
  var deserializeAws_json1_1DescribeServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
58
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
58
+ var parsedOutput, _a, errorCode, _b, parsedBody;
59
59
  var _c;
60
60
  return __generator(this, function (_d) {
61
61
  switch (_d.label) {
@@ -92,14 +92,14 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
92
92
  case 11: throw _d.sent();
93
93
  case 12:
94
94
  parsedBody = parsedOutput.body;
95
- $metadata = deserializeMetadata(output);
96
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
97
- response = new __BaseException({
98
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
99
- $fault: "client",
100
- $metadata: $metadata,
95
+ throwDefaultError({
96
+ output: output,
97
+ parsedBody: parsedBody,
98
+ exceptionCtor: __BaseException,
99
+ errorCode: errorCode,
101
100
  });
102
- throw __decorateServiceException(response, parsedBody);
101
+ _d.label = 13;
102
+ case 13: return [2];
103
103
  }
104
104
  });
105
105
  }); };
@@ -122,7 +122,7 @@ export var deserializeAws_json1_1GetAttributeValuesCommand = function (output, c
122
122
  });
123
123
  }); };
124
124
  var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
125
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
125
+ var parsedOutput, _a, errorCode, _b, parsedBody;
126
126
  var _c;
127
127
  return __generator(this, function (_d) {
128
128
  switch (_d.label) {
@@ -159,14 +159,14 @@ var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, con
159
159
  case 11: throw _d.sent();
160
160
  case 12:
161
161
  parsedBody = parsedOutput.body;
162
- $metadata = deserializeMetadata(output);
163
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
164
- response = new __BaseException({
165
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
166
- $fault: "client",
167
- $metadata: $metadata,
162
+ throwDefaultError({
163
+ output: output,
164
+ parsedBody: parsedBody,
165
+ exceptionCtor: __BaseException,
166
+ errorCode: errorCode,
168
167
  });
169
- throw __decorateServiceException(response, parsedBody);
168
+ _d.label = 13;
169
+ case 13: return [2];
170
170
  }
171
171
  });
172
172
  }); };
@@ -189,7 +189,7 @@ export var deserializeAws_json1_1GetProductsCommand = function (output, context)
189
189
  });
190
190
  }); };
191
191
  var deserializeAws_json1_1GetProductsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
192
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
192
+ var parsedOutput, _a, errorCode, _b, parsedBody;
193
193
  var _c;
194
194
  return __generator(this, function (_d) {
195
195
  switch (_d.label) {
@@ -226,14 +226,14 @@ var deserializeAws_json1_1GetProductsCommandError = function (output, context) {
226
226
  case 11: throw _d.sent();
227
227
  case 12:
228
228
  parsedBody = parsedOutput.body;
229
- $metadata = deserializeMetadata(output);
230
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
231
- response = new __BaseException({
232
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
233
- $fault: "client",
234
- $metadata: $metadata,
229
+ throwDefaultError({
230
+ output: output,
231
+ parsedBody: parsedBody,
232
+ exceptionCtor: __BaseException,
233
+ errorCode: errorCode,
235
234
  });
236
- throw __decorateServiceException(response, parsedBody);
235
+ _d.label = 13;
236
+ case 13: return [2];
237
237
  }
238
238
  });
239
239
  }); };
@@ -292,9 +292,6 @@ var serializeAws_json1_1Filters = function (input, context) {
292
292
  return input
293
293
  .filter(function (e) { return e != null; })
294
294
  .map(function (entry) {
295
- if (entry === null) {
296
- return null;
297
- }
298
295
  return serializeAws_json1_1Filter(entry, context);
299
296
  });
300
297
  };
@@ -11,12 +11,6 @@ export interface AttributeValue {
11
11
  */
12
12
  Value?: string;
13
13
  }
14
- export declare namespace AttributeValue {
15
- /**
16
- * @internal
17
- */
18
- const filterSensitiveLog: (obj: AttributeValue) => any;
19
- }
20
14
  export interface DescribeServicesRequest {
21
15
  /**
22
16
  * <p>The code for the service whose information you want to retrieve, such as <code>AmazonEC2</code>.
@@ -40,12 +34,6 @@ export interface DescribeServicesRequest {
40
34
  */
41
35
  MaxResults?: number;
42
36
  }
43
- export declare namespace DescribeServicesRequest {
44
- /**
45
- * @internal
46
- */
47
- const filterSensitiveLog: (obj: DescribeServicesRequest) => any;
48
- }
49
37
  /**
50
38
  * <p>The metadata for a service, such as the service code and available attribute names.</p>
51
39
  */
@@ -59,12 +47,6 @@ export interface Service {
59
47
  */
60
48
  AttributeNames?: string[];
61
49
  }
62
- export declare namespace Service {
63
- /**
64
- * @internal
65
- */
66
- const filterSensitiveLog: (obj: Service) => any;
67
- }
68
50
  export interface DescribeServicesResponse {
69
51
  /**
70
52
  * <p>The service metadata for the service or services in the response.</p>
@@ -79,12 +61,6 @@ export interface DescribeServicesResponse {
79
61
  */
80
62
  NextToken?: string;
81
63
  }
82
- export declare namespace DescribeServicesResponse {
83
- /**
84
- * @internal
85
- */
86
- const filterSensitiveLog: (obj: DescribeServicesResponse) => any;
87
- }
88
64
  /**
89
65
  * <p>The pagination token expired. Try again without a pagination token.</p>
90
66
  */
@@ -164,12 +140,6 @@ export interface GetAttributeValuesRequest {
164
140
  */
165
141
  MaxResults?: number;
166
142
  }
167
- export declare namespace GetAttributeValuesRequest {
168
- /**
169
- * @internal
170
- */
171
- const filterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
172
- }
173
143
  export interface GetAttributeValuesResponse {
174
144
  /**
175
145
  * <p>The list of values for an attribute. For example, <code>Throughput Optimized HDD</code> and
@@ -182,12 +152,6 @@ export interface GetAttributeValuesResponse {
182
152
  */
183
153
  NextToken?: string;
184
154
  }
185
- export declare namespace GetAttributeValuesResponse {
186
- /**
187
- * @internal
188
- */
189
- const filterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
190
- }
191
155
  export declare enum FilterType {
192
156
  TERM_MATCH = "TERM_MATCH"
193
157
  }
@@ -220,12 +184,6 @@ export interface Filter {
220
184
  */
221
185
  Value: string | undefined;
222
186
  }
223
- export declare namespace Filter {
224
- /**
225
- * @internal
226
- */
227
- const filterSensitiveLog: (obj: Filter) => any;
228
- }
229
187
  export interface GetProductsRequest {
230
188
  /**
231
189
  * <p>The code for the service whose products you want to retrieve. </p>
@@ -251,12 +209,6 @@ export interface GetProductsRequest {
251
209
  */
252
210
  MaxResults?: number;
253
211
  }
254
- export declare namespace GetProductsRequest {
255
- /**
256
- * @internal
257
- */
258
- const filterSensitiveLog: (obj: GetProductsRequest) => any;
259
- }
260
212
  export interface GetProductsResponse {
261
213
  /**
262
214
  * <p>The format version of the response. For example, aws_v1.</p>
@@ -272,9 +224,39 @@ export interface GetProductsResponse {
272
224
  */
273
225
  NextToken?: string;
274
226
  }
275
- export declare namespace GetProductsResponse {
276
- /**
277
- * @internal
278
- */
279
- const filterSensitiveLog: (obj: GetProductsResponse) => any;
280
- }
227
+ /**
228
+ * @internal
229
+ */
230
+ export declare const AttributeValueFilterSensitiveLog: (obj: AttributeValue) => any;
231
+ /**
232
+ * @internal
233
+ */
234
+ export declare const DescribeServicesRequestFilterSensitiveLog: (obj: DescribeServicesRequest) => any;
235
+ /**
236
+ * @internal
237
+ */
238
+ export declare const ServiceFilterSensitiveLog: (obj: Service) => any;
239
+ /**
240
+ * @internal
241
+ */
242
+ export declare const DescribeServicesResponseFilterSensitiveLog: (obj: DescribeServicesResponse) => any;
243
+ /**
244
+ * @internal
245
+ */
246
+ export declare const GetAttributeValuesRequestFilterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
247
+ /**
248
+ * @internal
249
+ */
250
+ export declare const GetAttributeValuesResponseFilterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
251
+ /**
252
+ * @internal
253
+ */
254
+ export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
255
+ /**
256
+ * @internal
257
+ */
258
+ export declare const GetProductsRequestFilterSensitiveLog: (obj: GetProductsRequest) => any;
259
+ /**
260
+ * @internal
261
+ */
262
+ export declare const GetProductsResponseFilterSensitiveLog: (obj: GetProductsResponse) => any;
@@ -5,10 +5,6 @@ export interface AttributeValue {
5
5
 
6
6
  Value?: string;
7
7
  }
8
- export declare namespace AttributeValue {
9
-
10
- const filterSensitiveLog: (obj: AttributeValue) => any;
11
- }
12
8
  export interface DescribeServicesRequest {
13
9
 
14
10
  ServiceCode?: string;
@@ -19,10 +15,6 @@ export interface DescribeServicesRequest {
19
15
 
20
16
  MaxResults?: number;
21
17
  }
22
- export declare namespace DescribeServicesRequest {
23
-
24
- const filterSensitiveLog: (obj: DescribeServicesRequest) => any;
25
- }
26
18
 
27
19
  export interface Service {
28
20
 
@@ -30,10 +22,6 @@ export interface Service {
30
22
 
31
23
  AttributeNames?: string[];
32
24
  }
33
- export declare namespace Service {
34
-
35
- const filterSensitiveLog: (obj: Service) => any;
36
- }
37
25
  export interface DescribeServicesResponse {
38
26
 
39
27
  Services?: Service[];
@@ -42,10 +30,6 @@ export interface DescribeServicesResponse {
42
30
 
43
31
  NextToken?: string;
44
32
  }
45
- export declare namespace DescribeServicesResponse {
46
-
47
- const filterSensitiveLog: (obj: DescribeServicesResponse) => any;
48
- }
49
33
 
50
34
  export declare class ExpiredNextTokenException extends __BaseException {
51
35
  readonly name: "ExpiredNextTokenException";
@@ -96,20 +80,12 @@ export interface GetAttributeValuesRequest {
96
80
 
97
81
  MaxResults?: number;
98
82
  }
99
- export declare namespace GetAttributeValuesRequest {
100
-
101
- const filterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
102
- }
103
83
  export interface GetAttributeValuesResponse {
104
84
 
105
85
  AttributeValues?: AttributeValue[];
106
86
 
107
87
  NextToken?: string;
108
88
  }
109
- export declare namespace GetAttributeValuesResponse {
110
-
111
- const filterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
112
- }
113
89
  export declare enum FilterType {
114
90
  TERM_MATCH = "TERM_MATCH"
115
91
  }
@@ -122,10 +98,6 @@ export interface Filter {
122
98
 
123
99
  Value: string | undefined;
124
100
  }
125
- export declare namespace Filter {
126
-
127
- const filterSensitiveLog: (obj: Filter) => any;
128
- }
129
101
  export interface GetProductsRequest {
130
102
 
131
103
  ServiceCode: string | undefined;
@@ -138,10 +110,6 @@ export interface GetProductsRequest {
138
110
 
139
111
  MaxResults?: number;
140
112
  }
141
- export declare namespace GetProductsRequest {
142
-
143
- const filterSensitiveLog: (obj: GetProductsRequest) => any;
144
- }
145
113
  export interface GetProductsResponse {
146
114
 
147
115
  FormatVersion?: string;
@@ -150,7 +118,21 @@ export interface GetProductsResponse {
150
118
 
151
119
  NextToken?: string;
152
120
  }
153
- export declare namespace GetProductsResponse {
154
-
155
- const filterSensitiveLog: (obj: GetProductsResponse) => any;
156
- }
121
+
122
+ export declare const AttributeValueFilterSensitiveLog: (obj: AttributeValue) => any;
123
+
124
+ export declare const DescribeServicesRequestFilterSensitiveLog: (obj: DescribeServicesRequest) => any;
125
+
126
+ export declare const ServiceFilterSensitiveLog: (obj: Service) => any;
127
+
128
+ export declare const DescribeServicesResponseFilterSensitiveLog: (obj: DescribeServicesResponse) => any;
129
+
130
+ export declare const GetAttributeValuesRequestFilterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
131
+
132
+ export declare const GetAttributeValuesResponseFilterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
133
+
134
+ export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
135
+
136
+ export declare const GetProductsRequestFilterSensitiveLog: (obj: GetProductsRequest) => any;
137
+
138
+ export declare const GetProductsResponseFilterSensitiveLog: (obj: GetProductsResponse) => any;
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.131.0",
4
+ "version": "3.142.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,9 +18,9 @@
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.131.0",
21
+ "@aws-sdk/client-sts": "3.142.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.131.0",
23
+ "@aws-sdk/credential-provider-node": "3.142.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.142.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.130.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.142.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",