@aws-sdk/client-pricing 3.489.0 → 3.495.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/dist-cjs/Pricing.js +1 -21
- package/dist-cjs/PricingClient.js +1 -43
- package/dist-cjs/commands/DescribeServicesCommand.js +1 -28
- package/dist-cjs/commands/GetAttributeValuesCommand.js +1 -28
- package/dist-cjs/commands/GetPriceListFileUrlCommand.js +1 -28
- package/dist-cjs/commands/GetProductsCommand.js +1 -28
- package/dist-cjs/commands/ListPriceListsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -8
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +808 -11
- package/dist-cjs/models/PricingServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -91
- package/dist-cjs/pagination/DescribeServicesPaginator.js +1 -7
- package/dist-cjs/pagination/GetAttributeValuesPaginator.js +1 -7
- package/dist-cjs/pagination/GetProductsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListPriceListsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -418
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,809 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
DescribeServicesCommand: () => DescribeServicesCommand,
|
|
26
|
+
ExpiredNextTokenException: () => ExpiredNextTokenException,
|
|
27
|
+
FilterType: () => FilterType,
|
|
28
|
+
GetAttributeValuesCommand: () => GetAttributeValuesCommand,
|
|
29
|
+
GetPriceListFileUrlCommand: () => GetPriceListFileUrlCommand,
|
|
30
|
+
GetProductsCommand: () => GetProductsCommand,
|
|
31
|
+
InternalErrorException: () => InternalErrorException,
|
|
32
|
+
InvalidNextTokenException: () => InvalidNextTokenException,
|
|
33
|
+
InvalidParameterException: () => InvalidParameterException,
|
|
34
|
+
ListPriceListsCommand: () => ListPriceListsCommand,
|
|
35
|
+
NotFoundException: () => NotFoundException,
|
|
36
|
+
Pricing: () => Pricing,
|
|
37
|
+
PricingClient: () => PricingClient,
|
|
38
|
+
PricingServiceException: () => PricingServiceException,
|
|
39
|
+
__Client: () => import_smithy_client.Client,
|
|
40
|
+
paginateDescribeServices: () => paginateDescribeServices,
|
|
41
|
+
paginateGetAttributeValues: () => paginateGetAttributeValues,
|
|
42
|
+
paginateGetProducts: () => paginateGetProducts,
|
|
43
|
+
paginateListPriceLists: () => paginateListPriceLists
|
|
44
|
+
});
|
|
45
|
+
module.exports = __toCommonJS(src_exports);
|
|
46
|
+
|
|
47
|
+
// src/PricingClient.ts
|
|
48
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
49
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
50
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
51
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
52
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
53
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
54
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
55
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
56
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// src/endpoint/EndpointParameters.ts
|
|
60
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
61
|
+
return {
|
|
62
|
+
...options,
|
|
63
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
64
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
65
|
+
defaultSigningName: "pricing"
|
|
66
|
+
};
|
|
67
|
+
}, "resolveClientEndpointParameters");
|
|
68
|
+
var commonParams = {
|
|
69
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
70
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
71
|
+
Region: { type: "builtInParams", name: "region" },
|
|
72
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/PricingClient.ts
|
|
76
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
77
|
+
|
|
78
|
+
// src/runtimeExtensions.ts
|
|
79
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
80
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
81
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
82
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
83
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
84
|
+
const extensionConfiguration = {
|
|
85
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
86
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
87
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
88
|
+
};
|
|
89
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
90
|
+
return {
|
|
91
|
+
...runtimeConfig,
|
|
92
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
93
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
94
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
95
|
+
};
|
|
96
|
+
}, "resolveRuntimeExtensions");
|
|
97
|
+
|
|
98
|
+
// src/PricingClient.ts
|
|
99
|
+
var _PricingClient = class _PricingClient extends import_smithy_client.Client {
|
|
100
|
+
constructor(...[configuration]) {
|
|
101
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
102
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
103
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
104
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
105
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
106
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
107
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
108
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
109
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
110
|
+
super(_config_8);
|
|
111
|
+
this.config = _config_8;
|
|
112
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
113
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
114
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
118
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
122
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
123
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
124
|
+
*/
|
|
125
|
+
destroy() {
|
|
126
|
+
super.destroy();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
__name(_PricingClient, "PricingClient");
|
|
130
|
+
var PricingClient = _PricingClient;
|
|
131
|
+
|
|
132
|
+
// src/Pricing.ts
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
// src/commands/DescribeServicesCommand.ts
|
|
136
|
+
|
|
137
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
138
|
+
|
|
139
|
+
var import_types = require("@smithy/types");
|
|
140
|
+
|
|
141
|
+
// src/protocols/Aws_json1_1.ts
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
// src/models/PricingServiceException.ts
|
|
146
|
+
|
|
147
|
+
var _PricingServiceException = class _PricingServiceException extends import_smithy_client.ServiceException {
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
constructor(options) {
|
|
152
|
+
super(options);
|
|
153
|
+
Object.setPrototypeOf(this, _PricingServiceException.prototype);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
__name(_PricingServiceException, "PricingServiceException");
|
|
157
|
+
var PricingServiceException = _PricingServiceException;
|
|
158
|
+
|
|
159
|
+
// src/models/models_0.ts
|
|
160
|
+
var _AccessDeniedException = class _AccessDeniedException extends PricingServiceException {
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "AccessDeniedException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts
|
|
169
|
+
});
|
|
170
|
+
this.name = "AccessDeniedException";
|
|
171
|
+
this.$fault = "client";
|
|
172
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
173
|
+
this.Message = opts.Message;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
177
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
178
|
+
var _ExpiredNextTokenException = class _ExpiredNextTokenException extends PricingServiceException {
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "ExpiredNextTokenException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts
|
|
187
|
+
});
|
|
188
|
+
this.name = "ExpiredNextTokenException";
|
|
189
|
+
this.$fault = "client";
|
|
190
|
+
Object.setPrototypeOf(this, _ExpiredNextTokenException.prototype);
|
|
191
|
+
this.Message = opts.Message;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
__name(_ExpiredNextTokenException, "ExpiredNextTokenException");
|
|
195
|
+
var ExpiredNextTokenException = _ExpiredNextTokenException;
|
|
196
|
+
var _InternalErrorException = class _InternalErrorException extends PricingServiceException {
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "InternalErrorException",
|
|
203
|
+
$fault: "server",
|
|
204
|
+
...opts
|
|
205
|
+
});
|
|
206
|
+
this.name = "InternalErrorException";
|
|
207
|
+
this.$fault = "server";
|
|
208
|
+
Object.setPrototypeOf(this, _InternalErrorException.prototype);
|
|
209
|
+
this.Message = opts.Message;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
__name(_InternalErrorException, "InternalErrorException");
|
|
213
|
+
var InternalErrorException = _InternalErrorException;
|
|
214
|
+
var _InvalidNextTokenException = class _InvalidNextTokenException extends PricingServiceException {
|
|
215
|
+
/**
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "InvalidNextTokenException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts
|
|
223
|
+
});
|
|
224
|
+
this.name = "InvalidNextTokenException";
|
|
225
|
+
this.$fault = "client";
|
|
226
|
+
Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
|
|
227
|
+
this.Message = opts.Message;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
__name(_InvalidNextTokenException, "InvalidNextTokenException");
|
|
231
|
+
var InvalidNextTokenException = _InvalidNextTokenException;
|
|
232
|
+
var _InvalidParameterException = class _InvalidParameterException extends PricingServiceException {
|
|
233
|
+
/**
|
|
234
|
+
* @internal
|
|
235
|
+
*/
|
|
236
|
+
constructor(opts) {
|
|
237
|
+
super({
|
|
238
|
+
name: "InvalidParameterException",
|
|
239
|
+
$fault: "client",
|
|
240
|
+
...opts
|
|
241
|
+
});
|
|
242
|
+
this.name = "InvalidParameterException";
|
|
243
|
+
this.$fault = "client";
|
|
244
|
+
Object.setPrototypeOf(this, _InvalidParameterException.prototype);
|
|
245
|
+
this.Message = opts.Message;
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
__name(_InvalidParameterException, "InvalidParameterException");
|
|
249
|
+
var InvalidParameterException = _InvalidParameterException;
|
|
250
|
+
var _NotFoundException = class _NotFoundException extends PricingServiceException {
|
|
251
|
+
/**
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
constructor(opts) {
|
|
255
|
+
super({
|
|
256
|
+
name: "NotFoundException",
|
|
257
|
+
$fault: "client",
|
|
258
|
+
...opts
|
|
259
|
+
});
|
|
260
|
+
this.name = "NotFoundException";
|
|
261
|
+
this.$fault = "client";
|
|
262
|
+
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
263
|
+
this.Message = opts.Message;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
__name(_NotFoundException, "NotFoundException");
|
|
267
|
+
var NotFoundException = _NotFoundException;
|
|
268
|
+
var FilterType = {
|
|
269
|
+
TERM_MATCH: "TERM_MATCH"
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
// src/protocols/Aws_json1_1.ts
|
|
273
|
+
var se_DescribeServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
274
|
+
const headers = sharedHeaders("DescribeServices");
|
|
275
|
+
let body;
|
|
276
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
277
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
278
|
+
}, "se_DescribeServicesCommand");
|
|
279
|
+
var se_GetAttributeValuesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
280
|
+
const headers = sharedHeaders("GetAttributeValues");
|
|
281
|
+
let body;
|
|
282
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
283
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
284
|
+
}, "se_GetAttributeValuesCommand");
|
|
285
|
+
var se_GetPriceListFileUrlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
286
|
+
const headers = sharedHeaders("GetPriceListFileUrl");
|
|
287
|
+
let body;
|
|
288
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
289
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
290
|
+
}, "se_GetPriceListFileUrlCommand");
|
|
291
|
+
var se_GetProductsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
292
|
+
const headers = sharedHeaders("GetProducts");
|
|
293
|
+
let body;
|
|
294
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
295
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
296
|
+
}, "se_GetProductsCommand");
|
|
297
|
+
var se_ListPriceListsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
298
|
+
const headers = sharedHeaders("ListPriceLists");
|
|
299
|
+
let body;
|
|
300
|
+
body = JSON.stringify(se_ListPriceListsRequest(input, context));
|
|
301
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
302
|
+
}, "se_ListPriceListsCommand");
|
|
303
|
+
var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
304
|
+
if (output.statusCode >= 300) {
|
|
305
|
+
return de_DescribeServicesCommandError(output, context);
|
|
306
|
+
}
|
|
307
|
+
const data = await parseBody(output.body, context);
|
|
308
|
+
let contents = {};
|
|
309
|
+
contents = (0, import_smithy_client._json)(data);
|
|
310
|
+
const response = {
|
|
311
|
+
$metadata: deserializeMetadata(output),
|
|
312
|
+
...contents
|
|
313
|
+
};
|
|
314
|
+
return response;
|
|
315
|
+
}, "de_DescribeServicesCommand");
|
|
316
|
+
var de_DescribeServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
317
|
+
const parsedOutput = {
|
|
318
|
+
...output,
|
|
319
|
+
body: await parseErrorBody(output.body, context)
|
|
320
|
+
};
|
|
321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
322
|
+
switch (errorCode) {
|
|
323
|
+
case "ExpiredNextTokenException":
|
|
324
|
+
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
325
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
326
|
+
case "InternalErrorException":
|
|
327
|
+
case "com.amazonaws.pricing#InternalErrorException":
|
|
328
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
329
|
+
case "InvalidNextTokenException":
|
|
330
|
+
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
331
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
332
|
+
case "InvalidParameterException":
|
|
333
|
+
case "com.amazonaws.pricing#InvalidParameterException":
|
|
334
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
335
|
+
case "NotFoundException":
|
|
336
|
+
case "com.amazonaws.pricing#NotFoundException":
|
|
337
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
338
|
+
default:
|
|
339
|
+
const parsedBody = parsedOutput.body;
|
|
340
|
+
return throwDefaultError({
|
|
341
|
+
output,
|
|
342
|
+
parsedBody,
|
|
343
|
+
errorCode
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}, "de_DescribeServicesCommandError");
|
|
347
|
+
var de_GetAttributeValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
348
|
+
if (output.statusCode >= 300) {
|
|
349
|
+
return de_GetAttributeValuesCommandError(output, context);
|
|
350
|
+
}
|
|
351
|
+
const data = await parseBody(output.body, context);
|
|
352
|
+
let contents = {};
|
|
353
|
+
contents = (0, import_smithy_client._json)(data);
|
|
354
|
+
const response = {
|
|
355
|
+
$metadata: deserializeMetadata(output),
|
|
356
|
+
...contents
|
|
357
|
+
};
|
|
358
|
+
return response;
|
|
359
|
+
}, "de_GetAttributeValuesCommand");
|
|
360
|
+
var de_GetAttributeValuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
361
|
+
const parsedOutput = {
|
|
362
|
+
...output,
|
|
363
|
+
body: await parseErrorBody(output.body, context)
|
|
364
|
+
};
|
|
365
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
366
|
+
switch (errorCode) {
|
|
367
|
+
case "ExpiredNextTokenException":
|
|
368
|
+
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
369
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
370
|
+
case "InternalErrorException":
|
|
371
|
+
case "com.amazonaws.pricing#InternalErrorException":
|
|
372
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
373
|
+
case "InvalidNextTokenException":
|
|
374
|
+
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
375
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
376
|
+
case "InvalidParameterException":
|
|
377
|
+
case "com.amazonaws.pricing#InvalidParameterException":
|
|
378
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
379
|
+
case "NotFoundException":
|
|
380
|
+
case "com.amazonaws.pricing#NotFoundException":
|
|
381
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
382
|
+
default:
|
|
383
|
+
const parsedBody = parsedOutput.body;
|
|
384
|
+
return throwDefaultError({
|
|
385
|
+
output,
|
|
386
|
+
parsedBody,
|
|
387
|
+
errorCode
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
}, "de_GetAttributeValuesCommandError");
|
|
391
|
+
var de_GetPriceListFileUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
392
|
+
if (output.statusCode >= 300) {
|
|
393
|
+
return de_GetPriceListFileUrlCommandError(output, context);
|
|
394
|
+
}
|
|
395
|
+
const data = await parseBody(output.body, context);
|
|
396
|
+
let contents = {};
|
|
397
|
+
contents = (0, import_smithy_client._json)(data);
|
|
398
|
+
const response = {
|
|
399
|
+
$metadata: deserializeMetadata(output),
|
|
400
|
+
...contents
|
|
401
|
+
};
|
|
402
|
+
return response;
|
|
403
|
+
}, "de_GetPriceListFileUrlCommand");
|
|
404
|
+
var de_GetPriceListFileUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
405
|
+
const parsedOutput = {
|
|
406
|
+
...output,
|
|
407
|
+
body: await parseErrorBody(output.body, context)
|
|
408
|
+
};
|
|
409
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
|
+
switch (errorCode) {
|
|
411
|
+
case "AccessDeniedException":
|
|
412
|
+
case "com.amazonaws.pricing#AccessDeniedException":
|
|
413
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
414
|
+
case "InternalErrorException":
|
|
415
|
+
case "com.amazonaws.pricing#InternalErrorException":
|
|
416
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
417
|
+
case "InvalidParameterException":
|
|
418
|
+
case "com.amazonaws.pricing#InvalidParameterException":
|
|
419
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
420
|
+
case "NotFoundException":
|
|
421
|
+
case "com.amazonaws.pricing#NotFoundException":
|
|
422
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
423
|
+
default:
|
|
424
|
+
const parsedBody = parsedOutput.body;
|
|
425
|
+
return throwDefaultError({
|
|
426
|
+
output,
|
|
427
|
+
parsedBody,
|
|
428
|
+
errorCode
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
}, "de_GetPriceListFileUrlCommandError");
|
|
432
|
+
var de_GetProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
433
|
+
if (output.statusCode >= 300) {
|
|
434
|
+
return de_GetProductsCommandError(output, context);
|
|
435
|
+
}
|
|
436
|
+
const data = await parseBody(output.body, context);
|
|
437
|
+
let contents = {};
|
|
438
|
+
contents = de_GetProductsResponse(data, context);
|
|
439
|
+
const response = {
|
|
440
|
+
$metadata: deserializeMetadata(output),
|
|
441
|
+
...contents
|
|
442
|
+
};
|
|
443
|
+
return response;
|
|
444
|
+
}, "de_GetProductsCommand");
|
|
445
|
+
var de_GetProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
446
|
+
const parsedOutput = {
|
|
447
|
+
...output,
|
|
448
|
+
body: await parseErrorBody(output.body, context)
|
|
449
|
+
};
|
|
450
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
|
+
switch (errorCode) {
|
|
452
|
+
case "ExpiredNextTokenException":
|
|
453
|
+
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
454
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
455
|
+
case "InternalErrorException":
|
|
456
|
+
case "com.amazonaws.pricing#InternalErrorException":
|
|
457
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
458
|
+
case "InvalidNextTokenException":
|
|
459
|
+
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
460
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
461
|
+
case "InvalidParameterException":
|
|
462
|
+
case "com.amazonaws.pricing#InvalidParameterException":
|
|
463
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
464
|
+
case "NotFoundException":
|
|
465
|
+
case "com.amazonaws.pricing#NotFoundException":
|
|
466
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
467
|
+
default:
|
|
468
|
+
const parsedBody = parsedOutput.body;
|
|
469
|
+
return throwDefaultError({
|
|
470
|
+
output,
|
|
471
|
+
parsedBody,
|
|
472
|
+
errorCode
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}, "de_GetProductsCommandError");
|
|
476
|
+
var de_ListPriceListsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
477
|
+
if (output.statusCode >= 300) {
|
|
478
|
+
return de_ListPriceListsCommandError(output, context);
|
|
479
|
+
}
|
|
480
|
+
const data = await parseBody(output.body, context);
|
|
481
|
+
let contents = {};
|
|
482
|
+
contents = (0, import_smithy_client._json)(data);
|
|
483
|
+
const response = {
|
|
484
|
+
$metadata: deserializeMetadata(output),
|
|
485
|
+
...contents
|
|
486
|
+
};
|
|
487
|
+
return response;
|
|
488
|
+
}, "de_ListPriceListsCommand");
|
|
489
|
+
var de_ListPriceListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
490
|
+
const parsedOutput = {
|
|
491
|
+
...output,
|
|
492
|
+
body: await parseErrorBody(output.body, context)
|
|
493
|
+
};
|
|
494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
|
+
switch (errorCode) {
|
|
496
|
+
case "AccessDeniedException":
|
|
497
|
+
case "com.amazonaws.pricing#AccessDeniedException":
|
|
498
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
499
|
+
case "ExpiredNextTokenException":
|
|
500
|
+
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
501
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
502
|
+
case "InternalErrorException":
|
|
503
|
+
case "com.amazonaws.pricing#InternalErrorException":
|
|
504
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
505
|
+
case "InvalidNextTokenException":
|
|
506
|
+
case "com.amazonaws.pricing#InvalidNextTokenException":
|
|
507
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
508
|
+
case "InvalidParameterException":
|
|
509
|
+
case "com.amazonaws.pricing#InvalidParameterException":
|
|
510
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
511
|
+
case "NotFoundException":
|
|
512
|
+
case "com.amazonaws.pricing#NotFoundException":
|
|
513
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
514
|
+
default:
|
|
515
|
+
const parsedBody = parsedOutput.body;
|
|
516
|
+
return throwDefaultError({
|
|
517
|
+
output,
|
|
518
|
+
parsedBody,
|
|
519
|
+
errorCode
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
}, "de_ListPriceListsCommandError");
|
|
523
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
524
|
+
const body = parsedOutput.body;
|
|
525
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
526
|
+
const exception = new AccessDeniedException({
|
|
527
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
528
|
+
...deserialized
|
|
529
|
+
});
|
|
530
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
531
|
+
}, "de_AccessDeniedExceptionRes");
|
|
532
|
+
var de_ExpiredNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
533
|
+
const body = parsedOutput.body;
|
|
534
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
535
|
+
const exception = new ExpiredNextTokenException({
|
|
536
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
537
|
+
...deserialized
|
|
538
|
+
});
|
|
539
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
540
|
+
}, "de_ExpiredNextTokenExceptionRes");
|
|
541
|
+
var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
542
|
+
const body = parsedOutput.body;
|
|
543
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
544
|
+
const exception = new InternalErrorException({
|
|
545
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
546
|
+
...deserialized
|
|
547
|
+
});
|
|
548
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
549
|
+
}, "de_InternalErrorExceptionRes");
|
|
550
|
+
var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
551
|
+
const body = parsedOutput.body;
|
|
552
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
553
|
+
const exception = new InvalidNextTokenException({
|
|
554
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
555
|
+
...deserialized
|
|
556
|
+
});
|
|
557
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
558
|
+
}, "de_InvalidNextTokenExceptionRes");
|
|
559
|
+
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
560
|
+
const body = parsedOutput.body;
|
|
561
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
562
|
+
const exception = new InvalidParameterException({
|
|
563
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
+
...deserialized
|
|
565
|
+
});
|
|
566
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
567
|
+
}, "de_InvalidParameterExceptionRes");
|
|
568
|
+
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
569
|
+
const body = parsedOutput.body;
|
|
570
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
571
|
+
const exception = new NotFoundException({
|
|
572
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
573
|
+
...deserialized
|
|
574
|
+
});
|
|
575
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
576
|
+
}, "de_NotFoundExceptionRes");
|
|
577
|
+
var se_ListPriceListsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
578
|
+
return (0, import_smithy_client.take)(input, {
|
|
579
|
+
CurrencyCode: [],
|
|
580
|
+
EffectiveDate: (_) => Math.round(_.getTime() / 1e3),
|
|
581
|
+
MaxResults: [],
|
|
582
|
+
NextToken: [],
|
|
583
|
+
RegionCode: [],
|
|
584
|
+
ServiceCode: []
|
|
585
|
+
});
|
|
586
|
+
}, "se_ListPriceListsRequest");
|
|
587
|
+
var de_GetProductsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
588
|
+
return (0, import_smithy_client.take)(output, {
|
|
589
|
+
FormatVersion: import_smithy_client.expectString,
|
|
590
|
+
NextToken: import_smithy_client.expectString,
|
|
591
|
+
PriceList: (_) => de_PriceListJsonItems(_, context)
|
|
592
|
+
});
|
|
593
|
+
}, "de_GetProductsResponse");
|
|
594
|
+
var de_PriceListJsonItems = /* @__PURE__ */ __name((output, context) => {
|
|
595
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
596
|
+
return new import_smithy_client.LazyJsonString(entry);
|
|
597
|
+
});
|
|
598
|
+
return retVal;
|
|
599
|
+
}, "de_PriceListJsonItems");
|
|
600
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
601
|
+
httpStatusCode: output.statusCode,
|
|
602
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
603
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
604
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
605
|
+
}), "deserializeMetadata");
|
|
606
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
607
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(PricingServiceException);
|
|
608
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
609
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
610
|
+
const contents = {
|
|
611
|
+
protocol,
|
|
612
|
+
hostname,
|
|
613
|
+
port,
|
|
614
|
+
method: "POST",
|
|
615
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
616
|
+
headers
|
|
617
|
+
};
|
|
618
|
+
if (resolvedHostname !== void 0) {
|
|
619
|
+
contents.hostname = resolvedHostname;
|
|
620
|
+
}
|
|
621
|
+
if (body !== void 0) {
|
|
622
|
+
contents.body = body;
|
|
623
|
+
}
|
|
624
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
625
|
+
}, "buildHttpRpcRequest");
|
|
626
|
+
function sharedHeaders(operation) {
|
|
627
|
+
return {
|
|
628
|
+
"content-type": "application/x-amz-json-1.1",
|
|
629
|
+
"x-amz-target": `AWSPriceListService.${operation}`
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
633
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
634
|
+
if (encoded.length) {
|
|
635
|
+
return JSON.parse(encoded);
|
|
636
|
+
}
|
|
637
|
+
return {};
|
|
638
|
+
}), "parseBody");
|
|
639
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
640
|
+
const value = await parseBody(errorBody, context);
|
|
641
|
+
value.message = value.message ?? value.Message;
|
|
642
|
+
return value;
|
|
643
|
+
}, "parseErrorBody");
|
|
644
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
645
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
646
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
647
|
+
let cleanValue = rawValue;
|
|
648
|
+
if (typeof cleanValue === "number") {
|
|
649
|
+
cleanValue = cleanValue.toString();
|
|
650
|
+
}
|
|
651
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
652
|
+
cleanValue = cleanValue.split(",")[0];
|
|
653
|
+
}
|
|
654
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
655
|
+
cleanValue = cleanValue.split(":")[0];
|
|
656
|
+
}
|
|
657
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
658
|
+
cleanValue = cleanValue.split("#")[1];
|
|
659
|
+
}
|
|
660
|
+
return cleanValue;
|
|
661
|
+
}, "sanitizeErrorCode");
|
|
662
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
663
|
+
if (headerKey !== void 0) {
|
|
664
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
665
|
+
}
|
|
666
|
+
if (data.code !== void 0) {
|
|
667
|
+
return sanitizeErrorCode(data.code);
|
|
668
|
+
}
|
|
669
|
+
if (data["__type"] !== void 0) {
|
|
670
|
+
return sanitizeErrorCode(data["__type"]);
|
|
671
|
+
}
|
|
672
|
+
}, "loadRestJsonErrorCode");
|
|
673
|
+
|
|
674
|
+
// src/commands/DescribeServicesCommand.ts
|
|
675
|
+
var _DescribeServicesCommand = class _DescribeServicesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
676
|
+
...commonParams
|
|
677
|
+
}).m(function(Command, cs, config, o) {
|
|
678
|
+
return [
|
|
679
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
680
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
681
|
+
];
|
|
682
|
+
}).s("AWSPriceListService", "DescribeServices", {}).n("PricingClient", "DescribeServicesCommand").f(void 0, void 0).ser(se_DescribeServicesCommand).de(de_DescribeServicesCommand).build() {
|
|
683
|
+
};
|
|
684
|
+
__name(_DescribeServicesCommand, "DescribeServicesCommand");
|
|
685
|
+
var DescribeServicesCommand = _DescribeServicesCommand;
|
|
686
|
+
|
|
687
|
+
// src/commands/GetAttributeValuesCommand.ts
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
var _GetAttributeValuesCommand = class _GetAttributeValuesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
693
|
+
...commonParams
|
|
694
|
+
}).m(function(Command, cs, config, o) {
|
|
695
|
+
return [
|
|
696
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
697
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
698
|
+
];
|
|
699
|
+
}).s("AWSPriceListService", "GetAttributeValues", {}).n("PricingClient", "GetAttributeValuesCommand").f(void 0, void 0).ser(se_GetAttributeValuesCommand).de(de_GetAttributeValuesCommand).build() {
|
|
700
|
+
};
|
|
701
|
+
__name(_GetAttributeValuesCommand, "GetAttributeValuesCommand");
|
|
702
|
+
var GetAttributeValuesCommand = _GetAttributeValuesCommand;
|
|
703
|
+
|
|
704
|
+
// src/commands/GetPriceListFileUrlCommand.ts
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
var _GetPriceListFileUrlCommand = class _GetPriceListFileUrlCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
710
|
+
...commonParams
|
|
711
|
+
}).m(function(Command, cs, config, o) {
|
|
712
|
+
return [
|
|
713
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
714
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
715
|
+
];
|
|
716
|
+
}).s("AWSPriceListService", "GetPriceListFileUrl", {}).n("PricingClient", "GetPriceListFileUrlCommand").f(void 0, void 0).ser(se_GetPriceListFileUrlCommand).de(de_GetPriceListFileUrlCommand).build() {
|
|
717
|
+
};
|
|
718
|
+
__name(_GetPriceListFileUrlCommand, "GetPriceListFileUrlCommand");
|
|
719
|
+
var GetPriceListFileUrlCommand = _GetPriceListFileUrlCommand;
|
|
720
|
+
|
|
721
|
+
// src/commands/GetProductsCommand.ts
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
var _GetProductsCommand = class _GetProductsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
727
|
+
...commonParams
|
|
728
|
+
}).m(function(Command, cs, config, o) {
|
|
729
|
+
return [
|
|
730
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
731
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
732
|
+
];
|
|
733
|
+
}).s("AWSPriceListService", "GetProducts", {}).n("PricingClient", "GetProductsCommand").f(void 0, void 0).ser(se_GetProductsCommand).de(de_GetProductsCommand).build() {
|
|
734
|
+
};
|
|
735
|
+
__name(_GetProductsCommand, "GetProductsCommand");
|
|
736
|
+
var GetProductsCommand = _GetProductsCommand;
|
|
737
|
+
|
|
738
|
+
// src/commands/ListPriceListsCommand.ts
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
var _ListPriceListsCommand = class _ListPriceListsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
744
|
+
...commonParams
|
|
745
|
+
}).m(function(Command, cs, config, o) {
|
|
746
|
+
return [
|
|
747
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
748
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
749
|
+
];
|
|
750
|
+
}).s("AWSPriceListService", "ListPriceLists", {}).n("PricingClient", "ListPriceListsCommand").f(void 0, void 0).ser(se_ListPriceListsCommand).de(de_ListPriceListsCommand).build() {
|
|
751
|
+
};
|
|
752
|
+
__name(_ListPriceListsCommand, "ListPriceListsCommand");
|
|
753
|
+
var ListPriceListsCommand = _ListPriceListsCommand;
|
|
754
|
+
|
|
755
|
+
// src/Pricing.ts
|
|
756
|
+
var commands = {
|
|
757
|
+
DescribeServicesCommand,
|
|
758
|
+
GetAttributeValuesCommand,
|
|
759
|
+
GetPriceListFileUrlCommand,
|
|
760
|
+
GetProductsCommand,
|
|
761
|
+
ListPriceListsCommand
|
|
762
|
+
};
|
|
763
|
+
var _Pricing = class _Pricing extends PricingClient {
|
|
764
|
+
};
|
|
765
|
+
__name(_Pricing, "Pricing");
|
|
766
|
+
var Pricing = _Pricing;
|
|
767
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Pricing);
|
|
768
|
+
|
|
769
|
+
// src/pagination/DescribeServicesPaginator.ts
|
|
770
|
+
var import_core = require("@smithy/core");
|
|
771
|
+
var paginateDescribeServices = (0, import_core.createPaginator)(PricingClient, DescribeServicesCommand, "NextToken", "NextToken", "MaxResults");
|
|
772
|
+
|
|
773
|
+
// src/pagination/GetAttributeValuesPaginator.ts
|
|
774
|
+
|
|
775
|
+
var paginateGetAttributeValues = (0, import_core.createPaginator)(PricingClient, GetAttributeValuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
776
|
+
|
|
777
|
+
// src/pagination/GetProductsPaginator.ts
|
|
778
|
+
|
|
779
|
+
var paginateGetProducts = (0, import_core.createPaginator)(PricingClient, GetProductsCommand, "NextToken", "NextToken", "MaxResults");
|
|
780
|
+
|
|
781
|
+
// src/pagination/ListPriceListsPaginator.ts
|
|
782
|
+
|
|
783
|
+
var paginateListPriceLists = (0, import_core.createPaginator)(PricingClient, ListPriceListsCommand, "NextToken", "NextToken", "MaxResults");
|
|
784
|
+
|
|
785
|
+
// src/index.ts
|
|
786
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
787
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
788
|
+
0 && (module.exports = {
|
|
789
|
+
AccessDeniedException,
|
|
790
|
+
DescribeServicesCommand,
|
|
791
|
+
ExpiredNextTokenException,
|
|
792
|
+
FilterType,
|
|
793
|
+
GetAttributeValuesCommand,
|
|
794
|
+
GetPriceListFileUrlCommand,
|
|
795
|
+
GetProductsCommand,
|
|
796
|
+
InternalErrorException,
|
|
797
|
+
InvalidNextTokenException,
|
|
798
|
+
InvalidParameterException,
|
|
799
|
+
ListPriceListsCommand,
|
|
800
|
+
NotFoundException,
|
|
801
|
+
Pricing,
|
|
802
|
+
PricingClient,
|
|
803
|
+
PricingServiceException,
|
|
804
|
+
__Client,
|
|
805
|
+
paginateDescribeServices,
|
|
806
|
+
paginateGetAttributeValues,
|
|
807
|
+
paginateGetProducts,
|
|
808
|
+
paginateListPriceLists
|
|
809
|
+
});
|