@aws-sdk/client-pricing 3.52.0 → 3.54.1
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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/PricingServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +72 -1
- package/dist-cjs/protocols/Aws_json1_1.js +52 -149
- package/dist-es/index.js +1 -0
- package/dist-es/models/PricingServiceException.js +12 -0
- package/dist-es/models/models_0.js +67 -1
- package/dist-es/protocols/Aws_json1_1.js +92 -152
- package/dist-types/PricingClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/PricingServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -17
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/PricingClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/PricingServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -17
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-pricing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-pricing
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-pricing
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Pricing"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./PricingClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var PricingServiceException_1 = require("./models/PricingServiceException");
|
|
11
|
+
Object.defineProperty(exports, "PricingServiceException", { enumerable: true, get: function () { return PricingServiceException_1.PricingServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class PricingServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, PricingServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PricingServiceException = PricingServiceException;
|
|
@@ -1,6 +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.DescribeServicesResponse = exports.Service = exports.DescribeServicesRequest = exports.AttributeValue = void 0;
|
|
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;
|
|
4
|
+
const PricingServiceException_1 = require("./PricingServiceException");
|
|
4
5
|
var AttributeValue;
|
|
5
6
|
(function (AttributeValue) {
|
|
6
7
|
AttributeValue.filterSensitiveLog = (obj) => ({
|
|
@@ -25,6 +26,76 @@ var DescribeServicesResponse;
|
|
|
25
26
|
...obj,
|
|
26
27
|
});
|
|
27
28
|
})(DescribeServicesResponse = exports.DescribeServicesResponse || (exports.DescribeServicesResponse = {}));
|
|
29
|
+
class ExpiredNextTokenException extends PricingServiceException_1.PricingServiceException {
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "ExpiredNextTokenException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
this.name = "ExpiredNextTokenException";
|
|
37
|
+
this.$fault = "client";
|
|
38
|
+
Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
|
|
39
|
+
this.Message = opts.Message;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.ExpiredNextTokenException = ExpiredNextTokenException;
|
|
43
|
+
class InternalErrorException extends PricingServiceException_1.PricingServiceException {
|
|
44
|
+
constructor(opts) {
|
|
45
|
+
super({
|
|
46
|
+
name: "InternalErrorException",
|
|
47
|
+
$fault: "server",
|
|
48
|
+
...opts,
|
|
49
|
+
});
|
|
50
|
+
this.name = "InternalErrorException";
|
|
51
|
+
this.$fault = "server";
|
|
52
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
53
|
+
this.Message = opts.Message;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.InternalErrorException = InternalErrorException;
|
|
57
|
+
class InvalidNextTokenException extends PricingServiceException_1.PricingServiceException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "InvalidNextTokenException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "InvalidNextTokenException";
|
|
65
|
+
this.$fault = "client";
|
|
66
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
67
|
+
this.Message = opts.Message;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
71
|
+
class InvalidParameterException extends PricingServiceException_1.PricingServiceException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "InvalidParameterException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "InvalidParameterException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
81
|
+
this.Message = opts.Message;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
85
|
+
class NotFoundException extends PricingServiceException_1.PricingServiceException {
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "NotFoundException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
this.name = "NotFoundException";
|
|
93
|
+
this.$fault = "client";
|
|
94
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
95
|
+
this.Message = opts.Message;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.NotFoundException = NotFoundException;
|
|
28
99
|
var GetAttributeValuesRequest;
|
|
29
100
|
(function (GetAttributeValuesRequest) {
|
|
30
101
|
GetAttributeValuesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1GetProductsCommand = exports.deserializeAws_json1_1GetAttributeValuesCommand = exports.deserializeAws_json1_1DescribeServicesCommand = exports.serializeAws_json1_1GetProductsCommand = exports.serializeAws_json1_1GetAttributeValuesCommand = exports.serializeAws_json1_1DescribeServicesCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const PricingServiceException_1 = require("../models/PricingServiceException");
|
|
6
8
|
const serializeAws_json1_1DescribeServicesCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -58,59 +60,28 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
58
60
|
switch (errorCode) {
|
|
59
61
|
case "ExpiredNextTokenException":
|
|
60
62
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
61
|
-
|
|
62
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
63
|
-
name: errorCode,
|
|
64
|
-
$metadata: deserializeMetadata(output),
|
|
65
|
-
};
|
|
66
|
-
break;
|
|
63
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
67
64
|
case "InternalErrorException":
|
|
68
65
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
69
|
-
|
|
70
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
71
|
-
name: errorCode,
|
|
72
|
-
$metadata: deserializeMetadata(output),
|
|
73
|
-
};
|
|
74
|
-
break;
|
|
66
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
75
67
|
case "InvalidNextTokenException":
|
|
76
68
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
77
|
-
|
|
78
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
79
|
-
name: errorCode,
|
|
80
|
-
$metadata: deserializeMetadata(output),
|
|
81
|
-
};
|
|
82
|
-
break;
|
|
69
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
83
70
|
case "InvalidParameterException":
|
|
84
71
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
85
|
-
|
|
86
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
87
|
-
name: errorCode,
|
|
88
|
-
$metadata: deserializeMetadata(output),
|
|
89
|
-
};
|
|
90
|
-
break;
|
|
72
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
91
73
|
case "NotFoundException":
|
|
92
74
|
case "com.amazonaws.pricing#NotFoundException":
|
|
93
|
-
|
|
94
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
95
|
-
name: errorCode,
|
|
96
|
-
$metadata: deserializeMetadata(output),
|
|
97
|
-
};
|
|
98
|
-
break;
|
|
75
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
99
76
|
default:
|
|
100
77
|
const parsedBody = parsedOutput.body;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
...parsedBody,
|
|
104
|
-
name: `${errorCode}`,
|
|
105
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
78
|
+
response = new PricingServiceException_1.PricingServiceException({
|
|
79
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
106
80
|
$fault: "client",
|
|
107
81
|
$metadata: deserializeMetadata(output),
|
|
108
|
-
};
|
|
82
|
+
});
|
|
83
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
109
84
|
}
|
|
110
|
-
const message = response.message || response.Message || errorCode;
|
|
111
|
-
response.message = message;
|
|
112
|
-
delete response.Message;
|
|
113
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
114
85
|
};
|
|
115
86
|
const deserializeAws_json1_1GetAttributeValuesCommand = async (output, context) => {
|
|
116
87
|
if (output.statusCode >= 300) {
|
|
@@ -137,59 +108,28 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
|
|
|
137
108
|
switch (errorCode) {
|
|
138
109
|
case "ExpiredNextTokenException":
|
|
139
110
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
140
|
-
|
|
141
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
142
|
-
name: errorCode,
|
|
143
|
-
$metadata: deserializeMetadata(output),
|
|
144
|
-
};
|
|
145
|
-
break;
|
|
111
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
146
112
|
case "InternalErrorException":
|
|
147
113
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
148
|
-
|
|
149
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
150
|
-
name: errorCode,
|
|
151
|
-
$metadata: deserializeMetadata(output),
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
114
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
154
115
|
case "InvalidNextTokenException":
|
|
155
116
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
156
|
-
|
|
157
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
158
|
-
name: errorCode,
|
|
159
|
-
$metadata: deserializeMetadata(output),
|
|
160
|
-
};
|
|
161
|
-
break;
|
|
117
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
162
118
|
case "InvalidParameterException":
|
|
163
119
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
164
|
-
|
|
165
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
166
|
-
name: errorCode,
|
|
167
|
-
$metadata: deserializeMetadata(output),
|
|
168
|
-
};
|
|
169
|
-
break;
|
|
120
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
170
121
|
case "NotFoundException":
|
|
171
122
|
case "com.amazonaws.pricing#NotFoundException":
|
|
172
|
-
|
|
173
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
174
|
-
name: errorCode,
|
|
175
|
-
$metadata: deserializeMetadata(output),
|
|
176
|
-
};
|
|
177
|
-
break;
|
|
123
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
178
124
|
default:
|
|
179
125
|
const parsedBody = parsedOutput.body;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
...parsedBody,
|
|
183
|
-
name: `${errorCode}`,
|
|
184
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
126
|
+
response = new PricingServiceException_1.PricingServiceException({
|
|
127
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
185
128
|
$fault: "client",
|
|
186
129
|
$metadata: deserializeMetadata(output),
|
|
187
|
-
};
|
|
130
|
+
});
|
|
131
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
188
132
|
}
|
|
189
|
-
const message = response.message || response.Message || errorCode;
|
|
190
|
-
response.message = message;
|
|
191
|
-
delete response.Message;
|
|
192
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
193
133
|
};
|
|
194
134
|
const deserializeAws_json1_1GetProductsCommand = async (output, context) => {
|
|
195
135
|
if (output.statusCode >= 300) {
|
|
@@ -216,114 +156,73 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
|
|
|
216
156
|
switch (errorCode) {
|
|
217
157
|
case "ExpiredNextTokenException":
|
|
218
158
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
219
|
-
|
|
220
|
-
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
221
|
-
name: errorCode,
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
};
|
|
224
|
-
break;
|
|
159
|
+
throw await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context);
|
|
225
160
|
case "InternalErrorException":
|
|
226
161
|
case "com.amazonaws.pricing#InternalErrorException":
|
|
227
|
-
|
|
228
|
-
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
229
|
-
name: errorCode,
|
|
230
|
-
$metadata: deserializeMetadata(output),
|
|
231
|
-
};
|
|
232
|
-
break;
|
|
162
|
+
throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
|
|
233
163
|
case "InvalidNextTokenException":
|
|
234
164
|
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
235
|
-
|
|
236
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
237
|
-
name: errorCode,
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
};
|
|
240
|
-
break;
|
|
165
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
241
166
|
case "InvalidParameterException":
|
|
242
167
|
case "com.amazonaws.pricing#InvalidParameterException":
|
|
243
|
-
|
|
244
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
245
|
-
name: errorCode,
|
|
246
|
-
$metadata: deserializeMetadata(output),
|
|
247
|
-
};
|
|
248
|
-
break;
|
|
168
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
249
169
|
case "NotFoundException":
|
|
250
170
|
case "com.amazonaws.pricing#NotFoundException":
|
|
251
|
-
|
|
252
|
-
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
253
|
-
name: errorCode,
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
};
|
|
256
|
-
break;
|
|
171
|
+
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
257
172
|
default:
|
|
258
173
|
const parsedBody = parsedOutput.body;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
...parsedBody,
|
|
262
|
-
name: `${errorCode}`,
|
|
263
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
174
|
+
response = new PricingServiceException_1.PricingServiceException({
|
|
175
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
264
176
|
$fault: "client",
|
|
265
177
|
$metadata: deserializeMetadata(output),
|
|
266
|
-
};
|
|
178
|
+
});
|
|
179
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
267
180
|
}
|
|
268
|
-
const message = response.message || response.Message || errorCode;
|
|
269
|
-
response.message = message;
|
|
270
|
-
delete response.Message;
|
|
271
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
272
181
|
};
|
|
273
182
|
const deserializeAws_json1_1ExpiredNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
274
183
|
const body = parsedOutput.body;
|
|
275
184
|
const deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
|
|
276
|
-
const
|
|
277
|
-
name: "ExpiredNextTokenException",
|
|
278
|
-
$fault: "client",
|
|
185
|
+
const exception = new models_0_1.ExpiredNextTokenException({
|
|
279
186
|
$metadata: deserializeMetadata(parsedOutput),
|
|
280
187
|
...deserialized,
|
|
281
|
-
};
|
|
282
|
-
return
|
|
188
|
+
});
|
|
189
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
283
190
|
};
|
|
284
191
|
const deserializeAws_json1_1InternalErrorExceptionResponse = async (parsedOutput, context) => {
|
|
285
192
|
const body = parsedOutput.body;
|
|
286
193
|
const deserialized = deserializeAws_json1_1InternalErrorException(body, context);
|
|
287
|
-
const
|
|
288
|
-
name: "InternalErrorException",
|
|
289
|
-
$fault: "server",
|
|
194
|
+
const exception = new models_0_1.InternalErrorException({
|
|
290
195
|
$metadata: deserializeMetadata(parsedOutput),
|
|
291
196
|
...deserialized,
|
|
292
|
-
};
|
|
293
|
-
return
|
|
197
|
+
});
|
|
198
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
294
199
|
};
|
|
295
200
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
296
201
|
const body = parsedOutput.body;
|
|
297
202
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
298
|
-
const
|
|
299
|
-
name: "InvalidNextTokenException",
|
|
300
|
-
$fault: "client",
|
|
203
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
301
204
|
$metadata: deserializeMetadata(parsedOutput),
|
|
302
205
|
...deserialized,
|
|
303
|
-
};
|
|
304
|
-
return
|
|
206
|
+
});
|
|
207
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
305
208
|
};
|
|
306
209
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
307
210
|
const body = parsedOutput.body;
|
|
308
211
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
309
|
-
const
|
|
310
|
-
name: "InvalidParameterException",
|
|
311
|
-
$fault: "client",
|
|
212
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
312
213
|
$metadata: deserializeMetadata(parsedOutput),
|
|
313
214
|
...deserialized,
|
|
314
|
-
};
|
|
315
|
-
return
|
|
215
|
+
});
|
|
216
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
316
217
|
};
|
|
317
218
|
const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
318
219
|
const body = parsedOutput.body;
|
|
319
220
|
const deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
320
|
-
const
|
|
321
|
-
name: "NotFoundException",
|
|
322
|
-
$fault: "client",
|
|
221
|
+
const exception = new models_0_1.NotFoundException({
|
|
323
222
|
$metadata: deserializeMetadata(parsedOutput),
|
|
324
223
|
...deserialized,
|
|
325
|
-
};
|
|
326
|
-
return
|
|
224
|
+
});
|
|
225
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
327
226
|
};
|
|
328
227
|
const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
|
|
329
228
|
return {
|
|
@@ -369,7 +268,7 @@ const serializeAws_json1_1GetProductsRequest = (input, context) => {
|
|
|
369
268
|
};
|
|
370
269
|
};
|
|
371
270
|
const deserializeAws_json1_1AttributeNameList = (output, context) => {
|
|
372
|
-
|
|
271
|
+
const retVal = (output || [])
|
|
373
272
|
.filter((e) => e != null)
|
|
374
273
|
.map((entry) => {
|
|
375
274
|
if (entry === null) {
|
|
@@ -377,6 +276,7 @@ const deserializeAws_json1_1AttributeNameList = (output, context) => {
|
|
|
377
276
|
}
|
|
378
277
|
return smithy_client_1.expectString(entry);
|
|
379
278
|
});
|
|
279
|
+
return retVal;
|
|
380
280
|
};
|
|
381
281
|
const deserializeAws_json1_1AttributeValue = (output, context) => {
|
|
382
282
|
return {
|
|
@@ -384,7 +284,7 @@ const deserializeAws_json1_1AttributeValue = (output, context) => {
|
|
|
384
284
|
};
|
|
385
285
|
};
|
|
386
286
|
const deserializeAws_json1_1AttributeValueList = (output, context) => {
|
|
387
|
-
|
|
287
|
+
const retVal = (output || [])
|
|
388
288
|
.filter((e) => e != null)
|
|
389
289
|
.map((entry) => {
|
|
390
290
|
if (entry === null) {
|
|
@@ -392,6 +292,7 @@ const deserializeAws_json1_1AttributeValueList = (output, context) => {
|
|
|
392
292
|
}
|
|
393
293
|
return deserializeAws_json1_1AttributeValue(entry, context);
|
|
394
294
|
});
|
|
295
|
+
return retVal;
|
|
395
296
|
};
|
|
396
297
|
const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
|
|
397
298
|
return {
|
|
@@ -445,7 +346,7 @@ const deserializeAws_json1_1NotFoundException = (output, context) => {
|
|
|
445
346
|
};
|
|
446
347
|
};
|
|
447
348
|
const deserializeAws_json1_1PriceList = (output, context) => {
|
|
448
|
-
|
|
349
|
+
const retVal = (output || [])
|
|
449
350
|
.filter((e) => e != null)
|
|
450
351
|
.map((entry) => {
|
|
451
352
|
if (entry === null) {
|
|
@@ -453,6 +354,7 @@ const deserializeAws_json1_1PriceList = (output, context) => {
|
|
|
453
354
|
}
|
|
454
355
|
return new smithy_client_1.LazyJsonString(entry);
|
|
455
356
|
});
|
|
357
|
+
return retVal;
|
|
456
358
|
};
|
|
457
359
|
const deserializeAws_json1_1Service = (output, context) => {
|
|
458
360
|
return {
|
|
@@ -463,7 +365,7 @@ const deserializeAws_json1_1Service = (output, context) => {
|
|
|
463
365
|
};
|
|
464
366
|
};
|
|
465
367
|
const deserializeAws_json1_1ServiceList = (output, context) => {
|
|
466
|
-
|
|
368
|
+
const retVal = (output || [])
|
|
467
369
|
.filter((e) => e != null)
|
|
468
370
|
.map((entry) => {
|
|
469
371
|
if (entry === null) {
|
|
@@ -471,6 +373,7 @@ const deserializeAws_json1_1ServiceList = (output, context) => {
|
|
|
471
373
|
}
|
|
472
374
|
return deserializeAws_json1_1Service(entry, context);
|
|
473
375
|
});
|
|
376
|
+
return retVal;
|
|
474
377
|
};
|
|
475
378
|
const deserializeMetadata = (output) => {
|
|
476
379
|
var _a;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
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;
|
|
9
|
+
}
|
|
10
|
+
return PricingServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { PricingServiceException };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { PricingServiceException as __BaseException } from "./PricingServiceException";
|
|
2
3
|
export var AttributeValue;
|
|
3
4
|
(function (AttributeValue) {
|
|
4
5
|
AttributeValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -15,6 +16,71 @@ export var DescribeServicesResponse;
|
|
|
15
16
|
(function (DescribeServicesResponse) {
|
|
16
17
|
DescribeServicesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
18
|
})(DescribeServicesResponse || (DescribeServicesResponse = {}));
|
|
19
|
+
var ExpiredNextTokenException = (function (_super) {
|
|
20
|
+
__extends(ExpiredNextTokenException, _super);
|
|
21
|
+
function ExpiredNextTokenException(opts) {
|
|
22
|
+
var _this = _super.call(this, __assign({ name: "ExpiredNextTokenException", $fault: "client" }, opts)) || this;
|
|
23
|
+
_this.name = "ExpiredNextTokenException";
|
|
24
|
+
_this.$fault = "client";
|
|
25
|
+
Object.setPrototypeOf(_this, ExpiredNextTokenException.prototype);
|
|
26
|
+
_this.Message = opts.Message;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return ExpiredNextTokenException;
|
|
30
|
+
}(__BaseException));
|
|
31
|
+
export { ExpiredNextTokenException };
|
|
32
|
+
var InternalErrorException = (function (_super) {
|
|
33
|
+
__extends(InternalErrorException, _super);
|
|
34
|
+
function InternalErrorException(opts) {
|
|
35
|
+
var _this = _super.call(this, __assign({ name: "InternalErrorException", $fault: "server" }, opts)) || this;
|
|
36
|
+
_this.name = "InternalErrorException";
|
|
37
|
+
_this.$fault = "server";
|
|
38
|
+
Object.setPrototypeOf(_this, InternalErrorException.prototype);
|
|
39
|
+
_this.Message = opts.Message;
|
|
40
|
+
return _this;
|
|
41
|
+
}
|
|
42
|
+
return InternalErrorException;
|
|
43
|
+
}(__BaseException));
|
|
44
|
+
export { InternalErrorException };
|
|
45
|
+
var InvalidNextTokenException = (function (_super) {
|
|
46
|
+
__extends(InvalidNextTokenException, _super);
|
|
47
|
+
function InvalidNextTokenException(opts) {
|
|
48
|
+
var _this = _super.call(this, __assign({ name: "InvalidNextTokenException", $fault: "client" }, opts)) || this;
|
|
49
|
+
_this.name = "InvalidNextTokenException";
|
|
50
|
+
_this.$fault = "client";
|
|
51
|
+
Object.setPrototypeOf(_this, InvalidNextTokenException.prototype);
|
|
52
|
+
_this.Message = opts.Message;
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
return InvalidNextTokenException;
|
|
56
|
+
}(__BaseException));
|
|
57
|
+
export { InvalidNextTokenException };
|
|
58
|
+
var InvalidParameterException = (function (_super) {
|
|
59
|
+
__extends(InvalidParameterException, _super);
|
|
60
|
+
function InvalidParameterException(opts) {
|
|
61
|
+
var _this = _super.call(this, __assign({ name: "InvalidParameterException", $fault: "client" }, opts)) || this;
|
|
62
|
+
_this.name = "InvalidParameterException";
|
|
63
|
+
_this.$fault = "client";
|
|
64
|
+
Object.setPrototypeOf(_this, InvalidParameterException.prototype);
|
|
65
|
+
_this.Message = opts.Message;
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
return InvalidParameterException;
|
|
69
|
+
}(__BaseException));
|
|
70
|
+
export { InvalidParameterException };
|
|
71
|
+
var NotFoundException = (function (_super) {
|
|
72
|
+
__extends(NotFoundException, _super);
|
|
73
|
+
function NotFoundException(opts) {
|
|
74
|
+
var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
|
|
75
|
+
_this.name = "NotFoundException";
|
|
76
|
+
_this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(_this, NotFoundException.prototype);
|
|
78
|
+
_this.Message = opts.Message;
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
return NotFoundException;
|
|
82
|
+
}(__BaseException));
|
|
83
|
+
export { NotFoundException };
|
|
18
84
|
export var GetAttributeValuesRequest;
|
|
19
85
|
(function (GetAttributeValuesRequest) {
|
|
20
86
|
GetAttributeValuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|