@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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectString as __expectString, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, } from "../models/models_0";
|
|
5
|
+
import { PricingServiceException as __BaseException } from "../models/PricingServiceException";
|
|
4
6
|
export var serializeAws_json1_1DescribeServicesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -53,16 +55,16 @@ export var deserializeAws_json1_1DescribeServicesCommand = function (output, con
|
|
|
53
55
|
});
|
|
54
56
|
}); };
|
|
55
57
|
var deserializeAws_json1_1DescribeServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
57
|
-
var
|
|
58
|
-
return __generator(this, function (
|
|
59
|
-
switch (
|
|
58
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
59
|
+
var _c;
|
|
60
|
+
return __generator(this, function (_d) {
|
|
61
|
+
switch (_d.label) {
|
|
60
62
|
case 0:
|
|
61
63
|
_a = [__assign({}, output)];
|
|
62
|
-
|
|
64
|
+
_c = {};
|
|
63
65
|
return [4, parseBody(output.body, context)];
|
|
64
66
|
case 1:
|
|
65
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
67
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
66
68
|
errorCode = "UnknownError";
|
|
67
69
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
70
|
_b = errorCode;
|
|
@@ -79,46 +81,24 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
|
|
|
79
81
|
case "com.amazonaws.pricing#NotFoundException": return [3, 10];
|
|
80
82
|
}
|
|
81
83
|
return [3, 12];
|
|
82
|
-
case 2:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
case
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
case 4
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
case
|
|
92
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
93
|
-
return [3, 13];
|
|
94
|
-
case 6:
|
|
95
|
-
_e = [{}];
|
|
96
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
97
|
-
case 7:
|
|
98
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
99
|
-
return [3, 13];
|
|
100
|
-
case 8:
|
|
101
|
-
_f = [{}];
|
|
102
|
-
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
103
|
-
case 9:
|
|
104
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
105
|
-
return [3, 13];
|
|
106
|
-
case 10:
|
|
107
|
-
_g = [{}];
|
|
108
|
-
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
109
|
-
case 11:
|
|
110
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
111
|
-
return [3, 13];
|
|
84
|
+
case 2: return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
85
|
+
case 3: throw _d.sent();
|
|
86
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
87
|
+
case 5: throw _d.sent();
|
|
88
|
+
case 6: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
89
|
+
case 7: throw _d.sent();
|
|
90
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
91
|
+
case 9: throw _d.sent();
|
|
92
|
+
case 10: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
93
|
+
case 11: throw _d.sent();
|
|
112
94
|
case 12:
|
|
113
95
|
parsedBody = parsedOutput.body;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
response
|
|
120
|
-
delete response.Message;
|
|
121
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
96
|
+
response = new __BaseException({
|
|
97
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
98
|
+
$fault: "client",
|
|
99
|
+
$metadata: deserializeMetadata(output),
|
|
100
|
+
});
|
|
101
|
+
throw __decorateServiceException(response, parsedBody);
|
|
122
102
|
}
|
|
123
103
|
});
|
|
124
104
|
}); };
|
|
@@ -141,16 +121,16 @@ export var deserializeAws_json1_1GetAttributeValuesCommand = function (output, c
|
|
|
141
121
|
});
|
|
142
122
|
}); };
|
|
143
123
|
var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
145
|
-
var
|
|
146
|
-
return __generator(this, function (
|
|
147
|
-
switch (
|
|
124
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
125
|
+
var _c;
|
|
126
|
+
return __generator(this, function (_d) {
|
|
127
|
+
switch (_d.label) {
|
|
148
128
|
case 0:
|
|
149
129
|
_a = [__assign({}, output)];
|
|
150
|
-
|
|
130
|
+
_c = {};
|
|
151
131
|
return [4, parseBody(output.body, context)];
|
|
152
132
|
case 1:
|
|
153
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
133
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
154
134
|
errorCode = "UnknownError";
|
|
155
135
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
156
136
|
_b = errorCode;
|
|
@@ -167,46 +147,24 @@ var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, con
|
|
|
167
147
|
case "com.amazonaws.pricing#NotFoundException": return [3, 10];
|
|
168
148
|
}
|
|
169
149
|
return [3, 12];
|
|
170
|
-
case 2:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
case
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
case 4
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
case
|
|
180
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
181
|
-
return [3, 13];
|
|
182
|
-
case 6:
|
|
183
|
-
_e = [{}];
|
|
184
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
185
|
-
case 7:
|
|
186
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
187
|
-
return [3, 13];
|
|
188
|
-
case 8:
|
|
189
|
-
_f = [{}];
|
|
190
|
-
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
191
|
-
case 9:
|
|
192
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
193
|
-
return [3, 13];
|
|
194
|
-
case 10:
|
|
195
|
-
_g = [{}];
|
|
196
|
-
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
197
|
-
case 11:
|
|
198
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
199
|
-
return [3, 13];
|
|
150
|
+
case 2: return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
151
|
+
case 3: throw _d.sent();
|
|
152
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
153
|
+
case 5: throw _d.sent();
|
|
154
|
+
case 6: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
155
|
+
case 7: throw _d.sent();
|
|
156
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
157
|
+
case 9: throw _d.sent();
|
|
158
|
+
case 10: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
159
|
+
case 11: throw _d.sent();
|
|
200
160
|
case 12:
|
|
201
161
|
parsedBody = parsedOutput.body;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
response
|
|
208
|
-
delete response.Message;
|
|
209
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
162
|
+
response = new __BaseException({
|
|
163
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
164
|
+
$fault: "client",
|
|
165
|
+
$metadata: deserializeMetadata(output),
|
|
166
|
+
});
|
|
167
|
+
throw __decorateServiceException(response, parsedBody);
|
|
210
168
|
}
|
|
211
169
|
});
|
|
212
170
|
}); };
|
|
@@ -229,16 +187,16 @@ export var deserializeAws_json1_1GetProductsCommand = function (output, context)
|
|
|
229
187
|
});
|
|
230
188
|
}); };
|
|
231
189
|
var deserializeAws_json1_1GetProductsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
232
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
233
|
-
var
|
|
234
|
-
return __generator(this, function (
|
|
235
|
-
switch (
|
|
190
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
191
|
+
var _c;
|
|
192
|
+
return __generator(this, function (_d) {
|
|
193
|
+
switch (_d.label) {
|
|
236
194
|
case 0:
|
|
237
195
|
_a = [__assign({}, output)];
|
|
238
|
-
|
|
196
|
+
_c = {};
|
|
239
197
|
return [4, parseBody(output.body, context)];
|
|
240
198
|
case 1:
|
|
241
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
199
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
242
200
|
errorCode = "UnknownError";
|
|
243
201
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
244
202
|
_b = errorCode;
|
|
@@ -255,92 +213,70 @@ var deserializeAws_json1_1GetProductsCommandError = function (output, context) {
|
|
|
255
213
|
case "com.amazonaws.pricing#NotFoundException": return [3, 10];
|
|
256
214
|
}
|
|
257
215
|
return [3, 12];
|
|
258
|
-
case 2:
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
case
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
case 4
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
case
|
|
268
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
269
|
-
return [3, 13];
|
|
270
|
-
case 6:
|
|
271
|
-
_e = [{}];
|
|
272
|
-
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
273
|
-
case 7:
|
|
274
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
275
|
-
return [3, 13];
|
|
276
|
-
case 8:
|
|
277
|
-
_f = [{}];
|
|
278
|
-
return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
279
|
-
case 9:
|
|
280
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
281
|
-
return [3, 13];
|
|
282
|
-
case 10:
|
|
283
|
-
_g = [{}];
|
|
284
|
-
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
285
|
-
case 11:
|
|
286
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
287
|
-
return [3, 13];
|
|
216
|
+
case 2: return [4, deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)];
|
|
217
|
+
case 3: throw _d.sent();
|
|
218
|
+
case 4: return [4, deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)];
|
|
219
|
+
case 5: throw _d.sent();
|
|
220
|
+
case 6: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
221
|
+
case 7: throw _d.sent();
|
|
222
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
223
|
+
case 9: throw _d.sent();
|
|
224
|
+
case 10: return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
225
|
+
case 11: throw _d.sent();
|
|
288
226
|
case 12:
|
|
289
227
|
parsedBody = parsedOutput.body;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
response
|
|
296
|
-
delete response.Message;
|
|
297
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
228
|
+
response = new __BaseException({
|
|
229
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
230
|
+
$fault: "client",
|
|
231
|
+
$metadata: deserializeMetadata(output),
|
|
232
|
+
});
|
|
233
|
+
throw __decorateServiceException(response, parsedBody);
|
|
298
234
|
}
|
|
299
235
|
});
|
|
300
236
|
}); };
|
|
301
237
|
var deserializeAws_json1_1ExpiredNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
302
|
-
var body, deserialized,
|
|
238
|
+
var body, deserialized, exception;
|
|
303
239
|
return __generator(this, function (_a) {
|
|
304
240
|
body = parsedOutput.body;
|
|
305
241
|
deserialized = deserializeAws_json1_1ExpiredNextTokenException(body, context);
|
|
306
|
-
|
|
307
|
-
return [2,
|
|
242
|
+
exception = new ExpiredNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
243
|
+
return [2, __decorateServiceException(exception, body)];
|
|
308
244
|
});
|
|
309
245
|
}); };
|
|
310
246
|
var deserializeAws_json1_1InternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
311
|
-
var body, deserialized,
|
|
247
|
+
var body, deserialized, exception;
|
|
312
248
|
return __generator(this, function (_a) {
|
|
313
249
|
body = parsedOutput.body;
|
|
314
250
|
deserialized = deserializeAws_json1_1InternalErrorException(body, context);
|
|
315
|
-
|
|
316
|
-
return [2,
|
|
251
|
+
exception = new InternalErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
252
|
+
return [2, __decorateServiceException(exception, body)];
|
|
317
253
|
});
|
|
318
254
|
}); };
|
|
319
255
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
320
|
-
var body, deserialized,
|
|
256
|
+
var body, deserialized, exception;
|
|
321
257
|
return __generator(this, function (_a) {
|
|
322
258
|
body = parsedOutput.body;
|
|
323
259
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
324
|
-
|
|
325
|
-
return [2,
|
|
260
|
+
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
261
|
+
return [2, __decorateServiceException(exception, body)];
|
|
326
262
|
});
|
|
327
263
|
}); };
|
|
328
264
|
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
329
|
-
var body, deserialized,
|
|
265
|
+
var body, deserialized, exception;
|
|
330
266
|
return __generator(this, function (_a) {
|
|
331
267
|
body = parsedOutput.body;
|
|
332
268
|
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
333
|
-
|
|
334
|
-
return [2,
|
|
269
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
270
|
+
return [2, __decorateServiceException(exception, body)];
|
|
335
271
|
});
|
|
336
272
|
}); };
|
|
337
273
|
var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
338
|
-
var body, deserialized,
|
|
274
|
+
var body, deserialized, exception;
|
|
339
275
|
return __generator(this, function (_a) {
|
|
340
276
|
body = parsedOutput.body;
|
|
341
277
|
deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
342
|
-
|
|
343
|
-
return [2,
|
|
278
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
279
|
+
return [2, __decorateServiceException(exception, body)];
|
|
344
280
|
});
|
|
345
281
|
}); };
|
|
346
282
|
var serializeAws_json1_1DescribeServicesRequest = function (input, context) {
|
|
@@ -367,7 +303,7 @@ var serializeAws_json1_1GetProductsRequest = function (input, context) {
|
|
|
367
303
|
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.FormatVersion !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }));
|
|
368
304
|
};
|
|
369
305
|
var deserializeAws_json1_1AttributeNameList = function (output, context) {
|
|
370
|
-
|
|
306
|
+
var retVal = (output || [])
|
|
371
307
|
.filter(function (e) { return e != null; })
|
|
372
308
|
.map(function (entry) {
|
|
373
309
|
if (entry === null) {
|
|
@@ -375,6 +311,7 @@ var deserializeAws_json1_1AttributeNameList = function (output, context) {
|
|
|
375
311
|
}
|
|
376
312
|
return __expectString(entry);
|
|
377
313
|
});
|
|
314
|
+
return retVal;
|
|
378
315
|
};
|
|
379
316
|
var deserializeAws_json1_1AttributeValue = function (output, context) {
|
|
380
317
|
return {
|
|
@@ -382,7 +319,7 @@ var deserializeAws_json1_1AttributeValue = function (output, context) {
|
|
|
382
319
|
};
|
|
383
320
|
};
|
|
384
321
|
var deserializeAws_json1_1AttributeValueList = function (output, context) {
|
|
385
|
-
|
|
322
|
+
var retVal = (output || [])
|
|
386
323
|
.filter(function (e) { return e != null; })
|
|
387
324
|
.map(function (entry) {
|
|
388
325
|
if (entry === null) {
|
|
@@ -390,6 +327,7 @@ var deserializeAws_json1_1AttributeValueList = function (output, context) {
|
|
|
390
327
|
}
|
|
391
328
|
return deserializeAws_json1_1AttributeValue(entry, context);
|
|
392
329
|
});
|
|
330
|
+
return retVal;
|
|
393
331
|
};
|
|
394
332
|
var deserializeAws_json1_1DescribeServicesResponse = function (output, context) {
|
|
395
333
|
return {
|
|
@@ -443,7 +381,7 @@ var deserializeAws_json1_1NotFoundException = function (output, context) {
|
|
|
443
381
|
};
|
|
444
382
|
};
|
|
445
383
|
var deserializeAws_json1_1PriceList = function (output, context) {
|
|
446
|
-
|
|
384
|
+
var retVal = (output || [])
|
|
447
385
|
.filter(function (e) { return e != null; })
|
|
448
386
|
.map(function (entry) {
|
|
449
387
|
if (entry === null) {
|
|
@@ -451,6 +389,7 @@ var deserializeAws_json1_1PriceList = function (output, context) {
|
|
|
451
389
|
}
|
|
452
390
|
return new __LazyJsonString(entry);
|
|
453
391
|
});
|
|
392
|
+
return retVal;
|
|
454
393
|
};
|
|
455
394
|
var deserializeAws_json1_1Service = function (output, context) {
|
|
456
395
|
return {
|
|
@@ -461,7 +400,7 @@ var deserializeAws_json1_1Service = function (output, context) {
|
|
|
461
400
|
};
|
|
462
401
|
};
|
|
463
402
|
var deserializeAws_json1_1ServiceList = function (output, context) {
|
|
464
|
-
|
|
403
|
+
var retVal = (output || [])
|
|
465
404
|
.filter(function (e) { return e != null; })
|
|
466
405
|
.map(function (entry) {
|
|
467
406
|
if (entry === null) {
|
|
@@ -469,6 +408,7 @@ var deserializeAws_json1_1ServiceList = function (output, context) {
|
|
|
469
408
|
}
|
|
470
409
|
return deserializeAws_json1_1Service(entry, context);
|
|
471
410
|
});
|
|
411
|
+
return retVal;
|
|
472
412
|
};
|
|
473
413
|
var deserializeMetadata = function (output) {
|
|
474
414
|
var _a;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
|
|
10
10
|
import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "./commands/GetAttributeValuesCommand";
|
|
11
11
|
import { GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
|
|
@@ -31,7 +31,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
31
31
|
* A function that can calculate the length of a request body.
|
|
32
32
|
* @internal
|
|
33
33
|
*/
|
|
34
|
-
bodyLengthChecker?:
|
|
34
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
35
35
|
/**
|
|
36
36
|
* A function that converts a stream into an array of bytes.
|
|
37
37
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from Pricing service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PricingServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { PricingServiceException as __BaseException } from "./PricingServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* <p>The values of a given attribute, such as <code>Throughput Optimized HDD</code> or <code>Provisioned
|
|
5
5
|
* IOPS</code> for the <code>Amazon EC2</code>
|
|
@@ -88,42 +88,62 @@ export declare namespace DescribeServicesResponse {
|
|
|
88
88
|
/**
|
|
89
89
|
* <p>The pagination token expired. Try again without a pagination token.</p>
|
|
90
90
|
*/
|
|
91
|
-
export
|
|
92
|
-
name: "ExpiredNextTokenException";
|
|
93
|
-
$fault: "client";
|
|
91
|
+
export declare class ExpiredNextTokenException extends __BaseException {
|
|
92
|
+
readonly name: "ExpiredNextTokenException";
|
|
93
|
+
readonly $fault: "client";
|
|
94
94
|
Message?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
constructor(opts: __ExceptionOptionType<ExpiredNextTokenException, __BaseException>);
|
|
95
99
|
}
|
|
96
100
|
/**
|
|
97
101
|
* <p>An error on the server occurred during the processing of your request. Try again later.</p>
|
|
98
102
|
*/
|
|
99
|
-
export
|
|
100
|
-
name: "InternalErrorException";
|
|
101
|
-
$fault: "server";
|
|
103
|
+
export declare class InternalErrorException extends __BaseException {
|
|
104
|
+
readonly name: "InternalErrorException";
|
|
105
|
+
readonly $fault: "server";
|
|
102
106
|
Message?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
|
|
103
111
|
}
|
|
104
112
|
/**
|
|
105
113
|
* <p>The pagination token is invalid. Try again without a pagination token.</p>
|
|
106
114
|
*/
|
|
107
|
-
export
|
|
108
|
-
name: "InvalidNextTokenException";
|
|
109
|
-
$fault: "client";
|
|
115
|
+
export declare class InvalidNextTokenException extends __BaseException {
|
|
116
|
+
readonly name: "InvalidNextTokenException";
|
|
117
|
+
readonly $fault: "client";
|
|
110
118
|
Message?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
|
|
111
123
|
}
|
|
112
124
|
/**
|
|
113
125
|
* <p>One or more parameters had an invalid value.</p>
|
|
114
126
|
*/
|
|
115
|
-
export
|
|
116
|
-
name: "InvalidParameterException";
|
|
117
|
-
$fault: "client";
|
|
127
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
128
|
+
readonly name: "InvalidParameterException";
|
|
129
|
+
readonly $fault: "client";
|
|
118
130
|
Message?: string;
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
119
135
|
}
|
|
120
136
|
/**
|
|
121
137
|
* <p>The requested resource can't be found.</p>
|
|
122
138
|
*/
|
|
123
|
-
export
|
|
124
|
-
name: "NotFoundException";
|
|
125
|
-
$fault: "client";
|
|
139
|
+
export declare class NotFoundException extends __BaseException {
|
|
140
|
+
readonly name: "NotFoundException";
|
|
141
|
+
readonly $fault: "client";
|
|
126
142
|
Message?: string;
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
127
147
|
}
|
|
128
148
|
export interface GetAttributeValuesRequest {
|
|
129
149
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
|
|
10
10
|
import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "./commands/GetAttributeValuesCommand";
|
|
11
11
|
import { GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
|
|
@@ -19,7 +19,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
19
19
|
|
|
20
20
|
urlParser?: __UrlParser;
|
|
21
21
|
|
|
22
|
-
bodyLengthChecker?:
|
|
22
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
23
23
|
|
|
24
24
|
streamCollector?: __StreamCollector;
|
|
25
25
|
|