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