@aws-sdk/client-pricing 3.1075.0 → 3.1077.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 +564 -15
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -49
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/PricingServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -117
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -246
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
17
|
+
|
|
18
|
+
const defaultPricingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
19
|
+
return {
|
|
20
|
+
operation: getSmithyContext(context).operation,
|
|
21
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
22
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
23
|
+
})(),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
+
return {
|
|
28
|
+
schemeId: "aws.auth#sigv4",
|
|
29
|
+
signingProperties: {
|
|
30
|
+
name: "pricing",
|
|
31
|
+
region: authParameters.region,
|
|
32
|
+
},
|
|
33
|
+
propertiesExtractor: (config, context) => ({
|
|
34
|
+
signingProperties: {
|
|
35
|
+
config,
|
|
36
|
+
context,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const defaultPricingHttpAuthSchemeProvider = (authParameters) => {
|
|
42
|
+
const options = [];
|
|
43
|
+
switch (authParameters.operation) {
|
|
44
|
+
default: {
|
|
45
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
};
|
|
50
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
52
|
+
return Object.assign(config_0, {
|
|
53
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
54
|
+
});
|
|
55
|
+
};
|
|
19
56
|
|
|
20
57
|
const resolveClientEndpointParameters = (options) => {
|
|
21
58
|
return Object.assign(options, {
|
|
@@ -31,6 +68,480 @@ const commonParams = {
|
|
|
31
68
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
69
|
};
|
|
33
70
|
|
|
71
|
+
var version = "3.1076.0";
|
|
72
|
+
var packageInfo = {
|
|
73
|
+
version: version};
|
|
74
|
+
|
|
75
|
+
const k = "ref";
|
|
76
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
77
|
+
const _data = {
|
|
78
|
+
conditions: [
|
|
79
|
+
[c, [g]],
|
|
80
|
+
[c, j],
|
|
81
|
+
["aws.partition", j, d],
|
|
82
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
83
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
85
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
86
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws"]]
|
|
87
|
+
],
|
|
88
|
+
results: [
|
|
89
|
+
[a],
|
|
90
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
91
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
92
|
+
[g, i],
|
|
93
|
+
["https://api.pricing-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
94
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
95
|
+
["https://api.pricing-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
96
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
97
|
+
["https://api.pricing.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
98
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
99
|
+
["https://api.pricing.{Region}.amazonaws.com", i],
|
|
100
|
+
["https://api.pricing.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
101
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
102
|
+
]
|
|
103
|
+
};
|
|
104
|
+
const root = 2;
|
|
105
|
+
const r = 100_000_000;
|
|
106
|
+
const nodes = new Int32Array([
|
|
107
|
+
-1, 1, -1,
|
|
108
|
+
0, 13, 3,
|
|
109
|
+
1, 4, r + 12,
|
|
110
|
+
2, 5, r + 12,
|
|
111
|
+
3, 9, 6,
|
|
112
|
+
4, 8, 7,
|
|
113
|
+
7, r + 10, r + 11,
|
|
114
|
+
5, r + 8, r + 9,
|
|
115
|
+
4, 11, 10,
|
|
116
|
+
6, r + 6, r + 7,
|
|
117
|
+
5, 12, r + 5,
|
|
118
|
+
6, r + 4, r + 5,
|
|
119
|
+
3, r + 1, 14,
|
|
120
|
+
4, r + 2, r + 3,
|
|
121
|
+
]);
|
|
122
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
123
|
+
|
|
124
|
+
const cache = new EndpointCache({
|
|
125
|
+
size: 50,
|
|
126
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
127
|
+
});
|
|
128
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
129
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
130
|
+
endpointParams: endpointParams,
|
|
131
|
+
logger: context.logger,
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
134
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
135
|
+
|
|
136
|
+
class PricingServiceException extends ServiceException {
|
|
137
|
+
constructor(options) {
|
|
138
|
+
super(options);
|
|
139
|
+
Object.setPrototypeOf(this, PricingServiceException.prototype);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
class AccessDeniedException extends PricingServiceException {
|
|
144
|
+
name = "AccessDeniedException";
|
|
145
|
+
$fault = "client";
|
|
146
|
+
Message;
|
|
147
|
+
constructor(opts) {
|
|
148
|
+
super({
|
|
149
|
+
name: "AccessDeniedException",
|
|
150
|
+
$fault: "client",
|
|
151
|
+
...opts,
|
|
152
|
+
});
|
|
153
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
154
|
+
this.Message = opts.Message;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
class ExpiredNextTokenException extends PricingServiceException {
|
|
158
|
+
name = "ExpiredNextTokenException";
|
|
159
|
+
$fault = "client";
|
|
160
|
+
Message;
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "ExpiredNextTokenException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
|
|
168
|
+
this.Message = opts.Message;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
class InternalErrorException extends PricingServiceException {
|
|
172
|
+
name = "InternalErrorException";
|
|
173
|
+
$fault = "server";
|
|
174
|
+
$retryable = {};
|
|
175
|
+
Message;
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "InternalErrorException",
|
|
179
|
+
$fault: "server",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
183
|
+
this.Message = opts.Message;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
class InvalidNextTokenException extends PricingServiceException {
|
|
187
|
+
name = "InvalidNextTokenException";
|
|
188
|
+
$fault = "client";
|
|
189
|
+
Message;
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "InvalidNextTokenException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
197
|
+
this.Message = opts.Message;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class InvalidParameterException extends PricingServiceException {
|
|
201
|
+
name = "InvalidParameterException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
Message;
|
|
204
|
+
constructor(opts) {
|
|
205
|
+
super({
|
|
206
|
+
name: "InvalidParameterException",
|
|
207
|
+
$fault: "client",
|
|
208
|
+
...opts,
|
|
209
|
+
});
|
|
210
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
211
|
+
this.Message = opts.Message;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
class NotFoundException extends PricingServiceException {
|
|
215
|
+
name = "NotFoundException";
|
|
216
|
+
$fault = "client";
|
|
217
|
+
Message;
|
|
218
|
+
constructor(opts) {
|
|
219
|
+
super({
|
|
220
|
+
name: "NotFoundException",
|
|
221
|
+
$fault: "client",
|
|
222
|
+
...opts,
|
|
223
|
+
});
|
|
224
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
225
|
+
this.Message = opts.Message;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
class ThrottlingException extends PricingServiceException {
|
|
229
|
+
name = "ThrottlingException";
|
|
230
|
+
$fault = "client";
|
|
231
|
+
$retryable = {
|
|
232
|
+
throttling: true,
|
|
233
|
+
};
|
|
234
|
+
Message;
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ThrottlingException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts,
|
|
240
|
+
});
|
|
241
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
242
|
+
this.Message = opts.Message;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
class ResourceNotFoundException extends PricingServiceException {
|
|
246
|
+
name = "ResourceNotFoundException";
|
|
247
|
+
$fault = "client";
|
|
248
|
+
Message;
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "ResourceNotFoundException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
256
|
+
this.Message = opts.Message;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const _ADE = "AccessDeniedException";
|
|
261
|
+
const _AN = "AttributeName";
|
|
262
|
+
const _ANt = "AttributeNames";
|
|
263
|
+
const _AV = "AttributeValue";
|
|
264
|
+
const _AVL = "AttributeValueList";
|
|
265
|
+
const _AVt = "AttributeValues";
|
|
266
|
+
const _CC = "CurrencyCode";
|
|
267
|
+
const _DS = "DescribeServices";
|
|
268
|
+
const _DSR = "DescribeServicesRequest";
|
|
269
|
+
const _DSRe = "DescribeServicesResponse";
|
|
270
|
+
const _ED = "EffectiveDate";
|
|
271
|
+
const _ENTE = "ExpiredNextTokenException";
|
|
272
|
+
const _F = "Filter";
|
|
273
|
+
const _FF = "FileFormat";
|
|
274
|
+
const _FFi = "FileFormats";
|
|
275
|
+
const _FV = "FormatVersion";
|
|
276
|
+
const _Fi = "Field";
|
|
277
|
+
const _Fil = "Filters";
|
|
278
|
+
const _GAV = "GetAttributeValues";
|
|
279
|
+
const _GAVR = "GetAttributeValuesRequest";
|
|
280
|
+
const _GAVRe = "GetAttributeValuesResponse";
|
|
281
|
+
const _GP = "GetProducts";
|
|
282
|
+
const _GPLFU = "GetPriceListFileUrl";
|
|
283
|
+
const _GPLFUR = "GetPriceListFileUrlRequest";
|
|
284
|
+
const _GPLFURe = "GetPriceListFileUrlResponse";
|
|
285
|
+
const _GPR = "GetProductsRequest";
|
|
286
|
+
const _GPRe = "GetProductsResponse";
|
|
287
|
+
const _IEE = "InternalErrorException";
|
|
288
|
+
const _INTE = "InvalidNextTokenException";
|
|
289
|
+
const _IPE = "InvalidParameterException";
|
|
290
|
+
const _LPL = "ListPriceLists";
|
|
291
|
+
const _LPLR = "ListPriceListsRequest";
|
|
292
|
+
const _LPLRi = "ListPriceListsResponse";
|
|
293
|
+
const _M = "Message";
|
|
294
|
+
const _MR = "MaxResults";
|
|
295
|
+
const _NFE = "NotFoundException";
|
|
296
|
+
const _NT = "NextToken";
|
|
297
|
+
const _PL = "PriceList";
|
|
298
|
+
const _PLA = "PriceListArn";
|
|
299
|
+
const _PLJI = "PriceListJsonItems";
|
|
300
|
+
const _PLr = "PriceLists";
|
|
301
|
+
const _RC = "RegionCode";
|
|
302
|
+
const _RNFE = "ResourceNotFoundException";
|
|
303
|
+
const _S = "Services";
|
|
304
|
+
const _SC = "ServiceCode";
|
|
305
|
+
const _SJPLJI = "SynthesizedJsonPriceListJsonItem";
|
|
306
|
+
const _SL = "ServiceList";
|
|
307
|
+
const _Se = "Service";
|
|
308
|
+
const _T = "Type";
|
|
309
|
+
const _TE = "ThrottlingException";
|
|
310
|
+
const _U = "Url";
|
|
311
|
+
const _V = "Value";
|
|
312
|
+
const _a = "application/json";
|
|
313
|
+
const _c = "client";
|
|
314
|
+
const _e = "error";
|
|
315
|
+
const _hE = "httpError";
|
|
316
|
+
const _mT = "mediaType";
|
|
317
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.pricing";
|
|
318
|
+
const _se = "server";
|
|
319
|
+
const n0 = "com.amazonaws.pricing";
|
|
320
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
321
|
+
var PricingServiceException$ = [-3, _s, "PricingServiceException", 0, [], []];
|
|
322
|
+
_s_registry.registerError(PricingServiceException$, PricingServiceException);
|
|
323
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
324
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
325
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
326
|
+
[_M],
|
|
327
|
+
[0]
|
|
328
|
+
];
|
|
329
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
330
|
+
var ExpiredNextTokenException$ = [-3, n0, _ENTE,
|
|
331
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
332
|
+
[_M],
|
|
333
|
+
[0]
|
|
334
|
+
];
|
|
335
|
+
n0_registry.registerError(ExpiredNextTokenException$, ExpiredNextTokenException);
|
|
336
|
+
var InternalErrorException$ = [-3, n0, _IEE,
|
|
337
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
338
|
+
[_M],
|
|
339
|
+
[0]
|
|
340
|
+
];
|
|
341
|
+
n0_registry.registerError(InternalErrorException$, InternalErrorException);
|
|
342
|
+
var InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
343
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
344
|
+
[_M],
|
|
345
|
+
[0]
|
|
346
|
+
];
|
|
347
|
+
n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
|
|
348
|
+
var InvalidParameterException$ = [-3, n0, _IPE,
|
|
349
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
350
|
+
[_M],
|
|
351
|
+
[0]
|
|
352
|
+
];
|
|
353
|
+
n0_registry.registerError(InvalidParameterException$, InvalidParameterException);
|
|
354
|
+
var NotFoundException$ = [-3, n0, _NFE,
|
|
355
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
356
|
+
[_M],
|
|
357
|
+
[0]
|
|
358
|
+
];
|
|
359
|
+
n0_registry.registerError(NotFoundException$, NotFoundException);
|
|
360
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
361
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
362
|
+
[_M],
|
|
363
|
+
[0]
|
|
364
|
+
];
|
|
365
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
366
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
367
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
368
|
+
[_M],
|
|
369
|
+
[0]
|
|
370
|
+
];
|
|
371
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
372
|
+
const errorTypeRegistries = [
|
|
373
|
+
_s_registry,
|
|
374
|
+
n0_registry,
|
|
375
|
+
];
|
|
376
|
+
var SynthesizedJsonPriceListJsonItem = [0, n0, _SJPLJI, { [_mT]: _a }, 0];
|
|
377
|
+
var AttributeValue$ = [3, n0, _AV,
|
|
378
|
+
0,
|
|
379
|
+
[_V],
|
|
380
|
+
[0]
|
|
381
|
+
];
|
|
382
|
+
var DescribeServicesRequest$ = [3, n0, _DSR,
|
|
383
|
+
0,
|
|
384
|
+
[_SC, _FV, _NT, _MR],
|
|
385
|
+
[0, 0, 0, 1]
|
|
386
|
+
];
|
|
387
|
+
var DescribeServicesResponse$ = [3, n0, _DSRe,
|
|
388
|
+
0,
|
|
389
|
+
[_S, _FV, _NT],
|
|
390
|
+
[() => ServiceList, 0, 0]
|
|
391
|
+
];
|
|
392
|
+
var Filter$ = [3, n0, _F,
|
|
393
|
+
0,
|
|
394
|
+
[_T, _Fi, _V],
|
|
395
|
+
[0, 0, 0], 3
|
|
396
|
+
];
|
|
397
|
+
var GetAttributeValuesRequest$ = [3, n0, _GAVR,
|
|
398
|
+
0,
|
|
399
|
+
[_SC, _AN, _NT, _MR],
|
|
400
|
+
[0, 0, 0, 1], 2
|
|
401
|
+
];
|
|
402
|
+
var GetAttributeValuesResponse$ = [3, n0, _GAVRe,
|
|
403
|
+
0,
|
|
404
|
+
[_AVt, _NT],
|
|
405
|
+
[() => AttributeValueList, 0]
|
|
406
|
+
];
|
|
407
|
+
var GetPriceListFileUrlRequest$ = [3, n0, _GPLFUR,
|
|
408
|
+
0,
|
|
409
|
+
[_PLA, _FF],
|
|
410
|
+
[0, 0], 2
|
|
411
|
+
];
|
|
412
|
+
var GetPriceListFileUrlResponse$ = [3, n0, _GPLFURe,
|
|
413
|
+
0,
|
|
414
|
+
[_U],
|
|
415
|
+
[0]
|
|
416
|
+
];
|
|
417
|
+
var GetProductsRequest$ = [3, n0, _GPR,
|
|
418
|
+
0,
|
|
419
|
+
[_SC, _Fil, _FV, _NT, _MR],
|
|
420
|
+
[0, () => Filters, 0, 0, 1], 1
|
|
421
|
+
];
|
|
422
|
+
var GetProductsResponse$ = [3, n0, _GPRe,
|
|
423
|
+
0,
|
|
424
|
+
[_FV, _PL, _NT],
|
|
425
|
+
[0, [() => PriceListJsonItems, 0], 0]
|
|
426
|
+
];
|
|
427
|
+
var ListPriceListsRequest$ = [3, n0, _LPLR,
|
|
428
|
+
0,
|
|
429
|
+
[_SC, _ED, _CC, _RC, _NT, _MR],
|
|
430
|
+
[0, 4, 0, 0, 0, 1], 3
|
|
431
|
+
];
|
|
432
|
+
var ListPriceListsResponse$ = [3, n0, _LPLRi,
|
|
433
|
+
0,
|
|
434
|
+
[_PLr, _NT],
|
|
435
|
+
[() => PriceLists, 0]
|
|
436
|
+
];
|
|
437
|
+
var PriceList$ = [3, n0, _PL,
|
|
438
|
+
0,
|
|
439
|
+
[_PLA, _RC, _CC, _FFi],
|
|
440
|
+
[0, 0, 0, 64 | 0]
|
|
441
|
+
];
|
|
442
|
+
var Service$ = [3, n0, _Se,
|
|
443
|
+
0,
|
|
444
|
+
[_SC, _ANt],
|
|
445
|
+
[0, 64 | 0], 1
|
|
446
|
+
];
|
|
447
|
+
var AttributeValueList = [1, n0, _AVL,
|
|
448
|
+
0, () => AttributeValue$
|
|
449
|
+
];
|
|
450
|
+
var Filters = [1, n0, _Fil,
|
|
451
|
+
0, () => Filter$
|
|
452
|
+
];
|
|
453
|
+
var PriceListJsonItems = [1, n0, _PLJI,
|
|
454
|
+
0, [() => SynthesizedJsonPriceListJsonItem,
|
|
455
|
+
0]
|
|
456
|
+
];
|
|
457
|
+
var PriceLists = [1, n0, _PLr,
|
|
458
|
+
0, () => PriceList$
|
|
459
|
+
];
|
|
460
|
+
var ServiceList = [1, n0, _SL,
|
|
461
|
+
0, () => Service$
|
|
462
|
+
];
|
|
463
|
+
var DescribeServices$ = [9, n0, _DS,
|
|
464
|
+
0, () => DescribeServicesRequest$, () => DescribeServicesResponse$
|
|
465
|
+
];
|
|
466
|
+
var GetAttributeValues$ = [9, n0, _GAV,
|
|
467
|
+
0, () => GetAttributeValuesRequest$, () => GetAttributeValuesResponse$
|
|
468
|
+
];
|
|
469
|
+
var GetPriceListFileUrl$ = [9, n0, _GPLFU,
|
|
470
|
+
0, () => GetPriceListFileUrlRequest$, () => GetPriceListFileUrlResponse$
|
|
471
|
+
];
|
|
472
|
+
var GetProducts$ = [9, n0, _GP,
|
|
473
|
+
0, () => GetProductsRequest$, () => GetProductsResponse$
|
|
474
|
+
];
|
|
475
|
+
var ListPriceLists$ = [9, n0, _LPL,
|
|
476
|
+
0, () => ListPriceListsRequest$, () => ListPriceListsResponse$
|
|
477
|
+
];
|
|
478
|
+
|
|
479
|
+
const getRuntimeConfig$1 = (config) => {
|
|
480
|
+
return {
|
|
481
|
+
apiVersion: "2017-10-15",
|
|
482
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
483
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
484
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
485
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
486
|
+
extensions: config?.extensions ?? [],
|
|
487
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPricingHttpAuthSchemeProvider,
|
|
488
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
489
|
+
{
|
|
490
|
+
schemeId: "aws.auth#sigv4",
|
|
491
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
492
|
+
signer: new AwsSdkSigV4Signer(),
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
496
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
497
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
498
|
+
defaultNamespace: "com.amazonaws.pricing",
|
|
499
|
+
errorTypeRegistries,
|
|
500
|
+
version: "2017-10-15",
|
|
501
|
+
serviceTarget: "AWSPriceListService",
|
|
502
|
+
},
|
|
503
|
+
serviceId: config?.serviceId ?? "Pricing",
|
|
504
|
+
sha256: config?.sha256 ?? Sha256,
|
|
505
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
506
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
507
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
const getRuntimeConfig = (config) => {
|
|
512
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
513
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
514
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
515
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
516
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
517
|
+
const loaderConfig = {
|
|
518
|
+
profile: config?.profile,
|
|
519
|
+
logger: clientSharedValues.logger,
|
|
520
|
+
};
|
|
521
|
+
return {
|
|
522
|
+
...clientSharedValues,
|
|
523
|
+
...config,
|
|
524
|
+
runtime: "node",
|
|
525
|
+
defaultsMode,
|
|
526
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
527
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
528
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
529
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
530
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
531
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
532
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
533
|
+
retryMode: config?.retryMode ??
|
|
534
|
+
loadConfig({
|
|
535
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
536
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
537
|
+
}, config),
|
|
538
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
539
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
540
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
541
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
|
|
34
545
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
546
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
547
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -204,14 +715,52 @@ const FilterType = {
|
|
|
204
715
|
TERM_MATCH: "TERM_MATCH",
|
|
205
716
|
};
|
|
206
717
|
|
|
718
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
719
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
720
|
+
exports.AttributeValue$ = AttributeValue$;
|
|
721
|
+
exports.DescribeServices$ = DescribeServices$;
|
|
207
722
|
exports.DescribeServicesCommand = DescribeServicesCommand;
|
|
723
|
+
exports.DescribeServicesRequest$ = DescribeServicesRequest$;
|
|
724
|
+
exports.DescribeServicesResponse$ = DescribeServicesResponse$;
|
|
725
|
+
exports.ExpiredNextTokenException = ExpiredNextTokenException;
|
|
726
|
+
exports.ExpiredNextTokenException$ = ExpiredNextTokenException$;
|
|
727
|
+
exports.Filter$ = Filter$;
|
|
208
728
|
exports.FilterType = FilterType;
|
|
729
|
+
exports.GetAttributeValues$ = GetAttributeValues$;
|
|
209
730
|
exports.GetAttributeValuesCommand = GetAttributeValuesCommand;
|
|
731
|
+
exports.GetAttributeValuesRequest$ = GetAttributeValuesRequest$;
|
|
732
|
+
exports.GetAttributeValuesResponse$ = GetAttributeValuesResponse$;
|
|
733
|
+
exports.GetPriceListFileUrl$ = GetPriceListFileUrl$;
|
|
210
734
|
exports.GetPriceListFileUrlCommand = GetPriceListFileUrlCommand;
|
|
735
|
+
exports.GetPriceListFileUrlRequest$ = GetPriceListFileUrlRequest$;
|
|
736
|
+
exports.GetPriceListFileUrlResponse$ = GetPriceListFileUrlResponse$;
|
|
737
|
+
exports.GetProducts$ = GetProducts$;
|
|
211
738
|
exports.GetProductsCommand = GetProductsCommand;
|
|
739
|
+
exports.GetProductsRequest$ = GetProductsRequest$;
|
|
740
|
+
exports.GetProductsResponse$ = GetProductsResponse$;
|
|
741
|
+
exports.InternalErrorException = InternalErrorException;
|
|
742
|
+
exports.InternalErrorException$ = InternalErrorException$;
|
|
743
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
744
|
+
exports.InvalidNextTokenException$ = InvalidNextTokenException$;
|
|
745
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
746
|
+
exports.InvalidParameterException$ = InvalidParameterException$;
|
|
747
|
+
exports.ListPriceLists$ = ListPriceLists$;
|
|
212
748
|
exports.ListPriceListsCommand = ListPriceListsCommand;
|
|
749
|
+
exports.ListPriceListsRequest$ = ListPriceListsRequest$;
|
|
750
|
+
exports.ListPriceListsResponse$ = ListPriceListsResponse$;
|
|
751
|
+
exports.NotFoundException = NotFoundException;
|
|
752
|
+
exports.NotFoundException$ = NotFoundException$;
|
|
753
|
+
exports.PriceList$ = PriceList$;
|
|
213
754
|
exports.Pricing = Pricing;
|
|
214
755
|
exports.PricingClient = PricingClient;
|
|
756
|
+
exports.PricingServiceException = PricingServiceException;
|
|
757
|
+
exports.PricingServiceException$ = PricingServiceException$;
|
|
758
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
759
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
760
|
+
exports.Service$ = Service$;
|
|
761
|
+
exports.ThrottlingException = ThrottlingException;
|
|
762
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
763
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
215
764
|
exports.paginateDescribeServices = paginateDescribeServices;
|
|
216
765
|
exports.paginateGetAttributeValues = paginateGetAttributeValues;
|
|
217
766
|
exports.paginateGetProducts = paginateGetProducts;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
5
|
...browserDefaults,
|
|
7
6
|
...config,
|
|
8
7
|
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
3
4
|
import { NoOpLogger } from "@smithy/core/client";
|
|
4
5
|
import { parseUrl } from "@smithy/core/protocols";
|
|
5
6
|
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
|
|
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
31
32
|
serviceTarget: "AWSPriceListService",
|
|
32
33
|
},
|
|
33
34
|
serviceId: config?.serviceId ?? "Pricing",
|
|
35
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
36
|
urlParser: config?.urlParser ?? parseUrl,
|
|
35
37
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
38
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -13,8 +13,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
|
-
|
|
17
|
-
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
17
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
18
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
|
24
23
|
[setting: string]: unknown;
|
|
25
24
|
};
|
|
26
25
|
apiVersion: string;
|
|
26
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
27
27
|
urlParser: import("@smithy/types").UrlParser;
|
|
28
28
|
base64Decoder: import("@smithy/types").Decoder;
|
|
29
29
|
base64Encoder: (_input: Uint8Array | string) => string;
|