@aws-sdk/client-marketplace-metering 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
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 } = 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 { resolveHttpAuthSchemeConfig, defaultMarketplaceMeteringHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { BatchMeterUsage$, MeterUsage$, RegisterUsage$, ResolveCustomer$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { MarketplaceMeteringServiceException } = require("./models/MarketplaceMeteringServiceException");
18
- exports.MarketplaceMeteringServiceException = MarketplaceMeteringServiceException;
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, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultMarketplaceMeteringHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "aws-marketplace",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultMarketplaceMeteringHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,658 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const m = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [h]],
79
+ [c, l],
80
+ ["aws.partition", l, d],
81
+ [e, [{ [m]: "UseFIPS" }, b]],
82
+ [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
83
+ [e, [{ [m]: "UseDualStack" }, b]],
84
+ [g, [j, "aws-eusc"]],
85
+ [g, [j, "aws-cn"]],
86
+ [g, [j, "aws-us-gov"]],
87
+ [g, [j, "aws"]],
88
+ [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]]
89
+ ],
90
+ results: [
91
+ [a],
92
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
93
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
94
+ [h, k],
95
+ ["https://metering-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
96
+ ["https://metering-marketplace.{Region}.amazonaws.eu", k],
97
+ ["https://metering.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
98
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
99
+ ["https://metering.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", k],
100
+ [a, "FIPS is enabled but this partition does not support FIPS"],
101
+ ["https://metering.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
102
+ [a, "DualStack is enabled but this partition does not support DualStack"],
103
+ ["https://metering.marketplace.{Region}.{PartitionResult#dnsSuffix}", k],
104
+ [a, "Invalid Configuration: Missing Region"]
105
+ ]
106
+ };
107
+ const root = 2;
108
+ const r = 100_000_000;
109
+ const nodes = new Int32Array([
110
+ -1, 1, -1,
111
+ 0, 16, 3,
112
+ 1, 4, r + 13,
113
+ 2, 5, r + 13,
114
+ 3, 12, 6,
115
+ 5, 8, 7,
116
+ 6, r + 5, r + 12,
117
+ 7, r + 4, 9,
118
+ 8, r + 4, 10,
119
+ 9, r + 4, 11,
120
+ 10, r + 10, r + 11,
121
+ 4, 14, 13,
122
+ 5, r + 7, r + 9,
123
+ 5, 15, r + 8,
124
+ 10, r + 6, r + 7,
125
+ 3, r + 1, 17,
126
+ 5, r + 2, r + 3,
127
+ ]);
128
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
129
+
130
+ const cache = new EndpointCache({
131
+ size: 50,
132
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
133
+ });
134
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
135
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
136
+ endpointParams: endpointParams,
137
+ logger: context.logger,
138
+ }));
139
+ };
140
+ customEndpointFunctions.aws = awsEndpointFunctions;
141
+
142
+ class MarketplaceMeteringServiceException extends ServiceException {
143
+ constructor(options) {
144
+ super(options);
145
+ Object.setPrototypeOf(this, MarketplaceMeteringServiceException.prototype);
146
+ }
147
+ }
148
+
149
+ class DisabledApiException extends MarketplaceMeteringServiceException {
150
+ name = "DisabledApiException";
151
+ $fault = "client";
152
+ constructor(opts) {
153
+ super({
154
+ name: "DisabledApiException",
155
+ $fault: "client",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, DisabledApiException.prototype);
159
+ }
160
+ }
161
+ class InternalServiceErrorException extends MarketplaceMeteringServiceException {
162
+ name = "InternalServiceErrorException";
163
+ $fault = "server";
164
+ constructor(opts) {
165
+ super({
166
+ name: "InternalServiceErrorException",
167
+ $fault: "server",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
171
+ }
172
+ }
173
+ class InvalidCustomerIdentifierException extends MarketplaceMeteringServiceException {
174
+ name = "InvalidCustomerIdentifierException";
175
+ $fault = "client";
176
+ constructor(opts) {
177
+ super({
178
+ name: "InvalidCustomerIdentifierException",
179
+ $fault: "client",
180
+ ...opts,
181
+ });
182
+ Object.setPrototypeOf(this, InvalidCustomerIdentifierException.prototype);
183
+ }
184
+ }
185
+ class InvalidLicenseException extends MarketplaceMeteringServiceException {
186
+ name = "InvalidLicenseException";
187
+ $fault = "client";
188
+ constructor(opts) {
189
+ super({
190
+ name: "InvalidLicenseException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, InvalidLicenseException.prototype);
195
+ }
196
+ }
197
+ class InvalidProductCodeException extends MarketplaceMeteringServiceException {
198
+ name = "InvalidProductCodeException";
199
+ $fault = "client";
200
+ constructor(opts) {
201
+ super({
202
+ name: "InvalidProductCodeException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, InvalidProductCodeException.prototype);
207
+ }
208
+ }
209
+ class InvalidTagException extends MarketplaceMeteringServiceException {
210
+ name = "InvalidTagException";
211
+ $fault = "client";
212
+ constructor(opts) {
213
+ super({
214
+ name: "InvalidTagException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, InvalidTagException.prototype);
219
+ }
220
+ }
221
+ class InvalidUsageAllocationsException extends MarketplaceMeteringServiceException {
222
+ name = "InvalidUsageAllocationsException";
223
+ $fault = "client";
224
+ constructor(opts) {
225
+ super({
226
+ name: "InvalidUsageAllocationsException",
227
+ $fault: "client",
228
+ ...opts,
229
+ });
230
+ Object.setPrototypeOf(this, InvalidUsageAllocationsException.prototype);
231
+ }
232
+ }
233
+ class InvalidUsageDimensionException extends MarketplaceMeteringServiceException {
234
+ name = "InvalidUsageDimensionException";
235
+ $fault = "client";
236
+ constructor(opts) {
237
+ super({
238
+ name: "InvalidUsageDimensionException",
239
+ $fault: "client",
240
+ ...opts,
241
+ });
242
+ Object.setPrototypeOf(this, InvalidUsageDimensionException.prototype);
243
+ }
244
+ }
245
+ class ThrottlingException extends MarketplaceMeteringServiceException {
246
+ name = "ThrottlingException";
247
+ $fault = "client";
248
+ constructor(opts) {
249
+ super({
250
+ name: "ThrottlingException",
251
+ $fault: "client",
252
+ ...opts,
253
+ });
254
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
255
+ }
256
+ }
257
+ class TimestampOutOfBoundsException extends MarketplaceMeteringServiceException {
258
+ name = "TimestampOutOfBoundsException";
259
+ $fault = "client";
260
+ constructor(opts) {
261
+ super({
262
+ name: "TimestampOutOfBoundsException",
263
+ $fault: "client",
264
+ ...opts,
265
+ });
266
+ Object.setPrototypeOf(this, TimestampOutOfBoundsException.prototype);
267
+ }
268
+ }
269
+ class CustomerNotEntitledException extends MarketplaceMeteringServiceException {
270
+ name = "CustomerNotEntitledException";
271
+ $fault = "client";
272
+ constructor(opts) {
273
+ super({
274
+ name: "CustomerNotEntitledException",
275
+ $fault: "client",
276
+ ...opts,
277
+ });
278
+ Object.setPrototypeOf(this, CustomerNotEntitledException.prototype);
279
+ }
280
+ }
281
+ class DuplicateRequestException extends MarketplaceMeteringServiceException {
282
+ name = "DuplicateRequestException";
283
+ $fault = "client";
284
+ constructor(opts) {
285
+ super({
286
+ name: "DuplicateRequestException",
287
+ $fault: "client",
288
+ ...opts,
289
+ });
290
+ Object.setPrototypeOf(this, DuplicateRequestException.prototype);
291
+ }
292
+ }
293
+ class IdempotencyConflictException extends MarketplaceMeteringServiceException {
294
+ name = "IdempotencyConflictException";
295
+ $fault = "client";
296
+ constructor(opts) {
297
+ super({
298
+ name: "IdempotencyConflictException",
299
+ $fault: "client",
300
+ ...opts,
301
+ });
302
+ Object.setPrototypeOf(this, IdempotencyConflictException.prototype);
303
+ }
304
+ }
305
+ class InvalidEndpointRegionException extends MarketplaceMeteringServiceException {
306
+ name = "InvalidEndpointRegionException";
307
+ $fault = "client";
308
+ constructor(opts) {
309
+ super({
310
+ name: "InvalidEndpointRegionException",
311
+ $fault: "client",
312
+ ...opts,
313
+ });
314
+ Object.setPrototypeOf(this, InvalidEndpointRegionException.prototype);
315
+ }
316
+ }
317
+ class InvalidPublicKeyVersionException extends MarketplaceMeteringServiceException {
318
+ name = "InvalidPublicKeyVersionException";
319
+ $fault = "client";
320
+ constructor(opts) {
321
+ super({
322
+ name: "InvalidPublicKeyVersionException",
323
+ $fault: "client",
324
+ ...opts,
325
+ });
326
+ Object.setPrototypeOf(this, InvalidPublicKeyVersionException.prototype);
327
+ }
328
+ }
329
+ class InvalidRegionException extends MarketplaceMeteringServiceException {
330
+ name = "InvalidRegionException";
331
+ $fault = "client";
332
+ constructor(opts) {
333
+ super({
334
+ name: "InvalidRegionException",
335
+ $fault: "client",
336
+ ...opts,
337
+ });
338
+ Object.setPrototypeOf(this, InvalidRegionException.prototype);
339
+ }
340
+ }
341
+ class PlatformNotSupportedException extends MarketplaceMeteringServiceException {
342
+ name = "PlatformNotSupportedException";
343
+ $fault = "client";
344
+ constructor(opts) {
345
+ super({
346
+ name: "PlatformNotSupportedException",
347
+ $fault: "client",
348
+ ...opts,
349
+ });
350
+ Object.setPrototypeOf(this, PlatformNotSupportedException.prototype);
351
+ }
352
+ }
353
+ class ExpiredTokenException extends MarketplaceMeteringServiceException {
354
+ name = "ExpiredTokenException";
355
+ $fault = "client";
356
+ constructor(opts) {
357
+ super({
358
+ name: "ExpiredTokenException",
359
+ $fault: "client",
360
+ ...opts,
361
+ });
362
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
363
+ }
364
+ }
365
+ class InvalidTokenException extends MarketplaceMeteringServiceException {
366
+ name = "InvalidTokenException";
367
+ $fault = "client";
368
+ constructor(opts) {
369
+ super({
370
+ name: "InvalidTokenException",
371
+ $fault: "client",
372
+ ...opts,
373
+ });
374
+ Object.setPrototypeOf(this, InvalidTokenException.prototype);
375
+ }
376
+ }
377
+
378
+ const _AUQ = "AllocatedUsageQuantity";
379
+ const _BMU = "BatchMeterUsage";
380
+ const _BMUR = "BatchMeterUsageRequest";
381
+ const _BMURa = "BatchMeterUsageResult";
382
+ const _CAWSAI = "CustomerAWSAccountId";
383
+ const _CI = "CustomerIdentifier";
384
+ const _CNEE = "CustomerNotEntitledException";
385
+ const _CT = "ClientToken";
386
+ const _D = "Dimension";
387
+ const _DAE = "DisabledApiException";
388
+ const _DR = "DryRun";
389
+ const _DRE = "DuplicateRequestException";
390
+ const _ETE = "ExpiredTokenException";
391
+ const _ICE = "IdempotencyConflictException";
392
+ const _ICIE = "InvalidCustomerIdentifierException";
393
+ const _IERE = "InvalidEndpointRegionException";
394
+ const _ILE = "InvalidLicenseException";
395
+ const _IPCE = "InvalidProductCodeException";
396
+ const _IPKVE = "InvalidPublicKeyVersionException";
397
+ const _IRE = "InvalidRegionException";
398
+ const _ISEE = "InternalServiceErrorException";
399
+ const _ITE = "InvalidTagException";
400
+ const _ITEn = "InvalidTokenException";
401
+ const _IUAE = "InvalidUsageAllocationsException";
402
+ const _IUDE = "InvalidUsageDimensionException";
403
+ const _K = "Key";
404
+ const _LA = "LicenseArn";
405
+ const _MRI = "MeteringRecordId";
406
+ const _MU = "MeterUsage";
407
+ const _MUR = "MeterUsageRequest";
408
+ const _MURe = "MeterUsageResult";
409
+ const _N = "Nonce";
410
+ const _PC = "ProductCode";
411
+ const _PKRT = "PublicKeyRotationTimestamp";
412
+ const _PKV = "PublicKeyVersion";
413
+ const _PNSE = "PlatformNotSupportedException";
414
+ const _Q = "Quantity";
415
+ const _R = "Results";
416
+ const _RC = "ResolveCustomer";
417
+ const _RCR = "ResolveCustomerRequest";
418
+ const _RCRe = "ResolveCustomerResult";
419
+ const _RT = "RegistrationToken";
420
+ const _RU = "RegisterUsage";
421
+ const _RUR = "RegisterUsageRequest";
422
+ const _RURe = "RegisterUsageResult";
423
+ const _S = "Signature";
424
+ const _St = "Status";
425
+ const _T = "Timestamp";
426
+ const _TE = "ThrottlingException";
427
+ const _TL = "TagList";
428
+ const _TOOBE = "TimestampOutOfBoundsException";
429
+ const _Ta = "Tag";
430
+ const _Tag = "Tags";
431
+ const _UA = "UsageAllocations";
432
+ const _UAs = "UsageAllocation";
433
+ const _UD = "UsageDimension";
434
+ const _UQ = "UsageQuantity";
435
+ const _UR = "UsageRecords";
436
+ const _URL = "UsageRecordList";
437
+ const _URR = "UsageRecordResult";
438
+ const _URRL = "UsageRecordResultList";
439
+ const _URn = "UnprocessedRecords";
440
+ const _URs = "UsageRecord";
441
+ const _V = "Value";
442
+ const _c = "client";
443
+ const _e = "error";
444
+ const _hE = "httpError";
445
+ const _m = "message";
446
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacemetering";
447
+ const _se = "server";
448
+ const n0 = "com.amazonaws.marketplacemetering";
449
+ const _s_registry = TypeRegistry.for(_s);
450
+ var MarketplaceMeteringServiceException$ = [-3, _s, "MarketplaceMeteringServiceException", 0, [], []];
451
+ _s_registry.registerError(MarketplaceMeteringServiceException$, MarketplaceMeteringServiceException);
452
+ const n0_registry = TypeRegistry.for(n0);
453
+ var CustomerNotEntitledException$ = [-3, n0, _CNEE,
454
+ { [_e]: _c },
455
+ [_m],
456
+ [0]
457
+ ];
458
+ n0_registry.registerError(CustomerNotEntitledException$, CustomerNotEntitledException);
459
+ var DisabledApiException$ = [-3, n0, _DAE,
460
+ { [_e]: _c },
461
+ [_m],
462
+ [0]
463
+ ];
464
+ n0_registry.registerError(DisabledApiException$, DisabledApiException);
465
+ var DuplicateRequestException$ = [-3, n0, _DRE,
466
+ { [_e]: _c },
467
+ [_m],
468
+ [0]
469
+ ];
470
+ n0_registry.registerError(DuplicateRequestException$, DuplicateRequestException);
471
+ var ExpiredTokenException$ = [-3, n0, _ETE,
472
+ { [_e]: _c },
473
+ [_m],
474
+ [0]
475
+ ];
476
+ n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
477
+ var IdempotencyConflictException$ = [-3, n0, _ICE,
478
+ { [_e]: _c, [_hE]: 409 },
479
+ [_m],
480
+ [0]
481
+ ];
482
+ n0_registry.registerError(IdempotencyConflictException$, IdempotencyConflictException);
483
+ var InternalServiceErrorException$ = [-3, n0, _ISEE,
484
+ { [_e]: _se },
485
+ [_m],
486
+ [0]
487
+ ];
488
+ n0_registry.registerError(InternalServiceErrorException$, InternalServiceErrorException);
489
+ var InvalidCustomerIdentifierException$ = [-3, n0, _ICIE,
490
+ { [_e]: _c },
491
+ [_m],
492
+ [0]
493
+ ];
494
+ n0_registry.registerError(InvalidCustomerIdentifierException$, InvalidCustomerIdentifierException);
495
+ var InvalidEndpointRegionException$ = [-3, n0, _IERE,
496
+ { [_e]: _c },
497
+ [_m],
498
+ [0]
499
+ ];
500
+ n0_registry.registerError(InvalidEndpointRegionException$, InvalidEndpointRegionException);
501
+ var InvalidLicenseException$ = [-3, n0, _ILE,
502
+ { [_e]: _c },
503
+ [_m],
504
+ [0]
505
+ ];
506
+ n0_registry.registerError(InvalidLicenseException$, InvalidLicenseException);
507
+ var InvalidProductCodeException$ = [-3, n0, _IPCE,
508
+ { [_e]: _c },
509
+ [_m],
510
+ [0]
511
+ ];
512
+ n0_registry.registerError(InvalidProductCodeException$, InvalidProductCodeException);
513
+ var InvalidPublicKeyVersionException$ = [-3, n0, _IPKVE,
514
+ { [_e]: _c },
515
+ [_m],
516
+ [0]
517
+ ];
518
+ n0_registry.registerError(InvalidPublicKeyVersionException$, InvalidPublicKeyVersionException);
519
+ var InvalidRegionException$ = [-3, n0, _IRE,
520
+ { [_e]: _c },
521
+ [_m],
522
+ [0]
523
+ ];
524
+ n0_registry.registerError(InvalidRegionException$, InvalidRegionException);
525
+ var InvalidTagException$ = [-3, n0, _ITE,
526
+ { [_e]: _c },
527
+ [_m],
528
+ [0]
529
+ ];
530
+ n0_registry.registerError(InvalidTagException$, InvalidTagException);
531
+ var InvalidTokenException$ = [-3, n0, _ITEn,
532
+ { [_e]: _c },
533
+ [_m],
534
+ [0]
535
+ ];
536
+ n0_registry.registerError(InvalidTokenException$, InvalidTokenException);
537
+ var InvalidUsageAllocationsException$ = [-3, n0, _IUAE,
538
+ { [_e]: _c },
539
+ [_m],
540
+ [0]
541
+ ];
542
+ n0_registry.registerError(InvalidUsageAllocationsException$, InvalidUsageAllocationsException);
543
+ var InvalidUsageDimensionException$ = [-3, n0, _IUDE,
544
+ { [_e]: _c },
545
+ [_m],
546
+ [0]
547
+ ];
548
+ n0_registry.registerError(InvalidUsageDimensionException$, InvalidUsageDimensionException);
549
+ var PlatformNotSupportedException$ = [-3, n0, _PNSE,
550
+ { [_e]: _c },
551
+ [_m],
552
+ [0]
553
+ ];
554
+ n0_registry.registerError(PlatformNotSupportedException$, PlatformNotSupportedException);
555
+ var ThrottlingException$ = [-3, n0, _TE,
556
+ { [_e]: _c },
557
+ [_m],
558
+ [0]
559
+ ];
560
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
561
+ var TimestampOutOfBoundsException$ = [-3, n0, _TOOBE,
562
+ { [_e]: _c },
563
+ [_m],
564
+ [0]
565
+ ];
566
+ n0_registry.registerError(TimestampOutOfBoundsException$, TimestampOutOfBoundsException);
567
+ const errorTypeRegistries = [
568
+ _s_registry,
569
+ n0_registry,
570
+ ];
571
+ var BatchMeterUsageRequest$ = [3, n0, _BMUR,
572
+ 0,
573
+ [_UR, _PC],
574
+ [() => UsageRecordList, 0], 1
575
+ ];
576
+ var BatchMeterUsageResult$ = [3, n0, _BMURa,
577
+ 0,
578
+ [_R, _URn],
579
+ [() => UsageRecordResultList, () => UsageRecordList]
580
+ ];
581
+ var MeterUsageRequest$ = [3, n0, _MUR,
582
+ 0,
583
+ [_PC, _T, _UD, _UQ, _DR, _UA, _CT],
584
+ [0, 4, 0, 1, 2, () => UsageAllocations, [0, 4]], 3
585
+ ];
586
+ var MeterUsageResult$ = [3, n0, _MURe,
587
+ 0,
588
+ [_MRI],
589
+ [0]
590
+ ];
591
+ var RegisterUsageRequest$ = [3, n0, _RUR,
592
+ 0,
593
+ [_PC, _PKV, _N],
594
+ [0, 1, 0], 2
595
+ ];
596
+ var RegisterUsageResult$ = [3, n0, _RURe,
597
+ 0,
598
+ [_PKRT, _S],
599
+ [4, 0]
600
+ ];
601
+ var ResolveCustomerRequest$ = [3, n0, _RCR,
602
+ 0,
603
+ [_RT],
604
+ [0], 1
605
+ ];
606
+ var ResolveCustomerResult$ = [3, n0, _RCRe,
607
+ 0,
608
+ [_CI, _PC, _CAWSAI, _LA],
609
+ [0, 0, 0, 0]
610
+ ];
611
+ var Tag$ = [3, n0, _Ta,
612
+ 0,
613
+ [_K, _V],
614
+ [0, 0], 2
615
+ ];
616
+ var UsageAllocation$ = [3, n0, _UAs,
617
+ 0,
618
+ [_AUQ, _Tag],
619
+ [1, () => TagList], 1
620
+ ];
621
+ var UsageRecord$ = [3, n0, _URs,
622
+ 0,
623
+ [_T, _D, _CI, _Q, _UA, _CAWSAI, _LA],
624
+ [4, 0, 0, 1, () => UsageAllocations, 0, 0], 2
625
+ ];
626
+ var UsageRecordResult$ = [3, n0, _URR,
627
+ 0,
628
+ [_URs, _MRI, _St],
629
+ [() => UsageRecord$, 0, 0]
630
+ ];
631
+ var TagList = [1, n0, _TL,
632
+ 0, () => Tag$
633
+ ];
634
+ var UsageAllocations = [1, n0, _UA,
635
+ 0, () => UsageAllocation$
636
+ ];
637
+ var UsageRecordList = [1, n0, _URL,
638
+ 0, () => UsageRecord$
639
+ ];
640
+ var UsageRecordResultList = [1, n0, _URRL,
641
+ 0, () => UsageRecordResult$
642
+ ];
643
+ var BatchMeterUsage$ = [9, n0, _BMU,
644
+ 0, () => BatchMeterUsageRequest$, () => BatchMeterUsageResult$
645
+ ];
646
+ var MeterUsage$ = [9, n0, _MU,
647
+ 0, () => MeterUsageRequest$, () => MeterUsageResult$
648
+ ];
649
+ var RegisterUsage$ = [9, n0, _RU,
650
+ 0, () => RegisterUsageRequest$, () => RegisterUsageResult$
651
+ ];
652
+ var ResolveCustomer$ = [9, n0, _RC,
653
+ 0, () => ResolveCustomerRequest$, () => ResolveCustomerResult$
654
+ ];
655
+
656
+ const getRuntimeConfig$1 = (config) => {
657
+ return {
658
+ apiVersion: "2016-01-14",
659
+ base64Decoder: config?.base64Decoder ?? fromBase64,
660
+ base64Encoder: config?.base64Encoder ?? toBase64,
661
+ disableHostPrefix: config?.disableHostPrefix ?? false,
662
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
663
+ extensions: config?.extensions ?? [],
664
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMarketplaceMeteringHttpAuthSchemeProvider,
665
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
666
+ {
667
+ schemeId: "aws.auth#sigv4",
668
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
669
+ signer: new AwsSdkSigV4Signer(),
670
+ },
671
+ ],
672
+ logger: config?.logger ?? new NoOpLogger(),
673
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
674
+ protocolSettings: config?.protocolSettings ?? {
675
+ defaultNamespace: "com.amazonaws.marketplacemetering",
676
+ errorTypeRegistries,
677
+ version: "2016-01-14",
678
+ serviceTarget: "AWSMPMeteringService",
679
+ },
680
+ serviceId: config?.serviceId ?? "Marketplace Metering",
681
+ urlParser: config?.urlParser ?? parseUrl,
682
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
683
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
684
+ };
685
+ };
686
+
687
+ const getRuntimeConfig = (config) => {
688
+ emitWarningIfUnsupportedVersion(process.version);
689
+ const defaultsMode = resolveDefaultsModeConfig(config);
690
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
691
+ const clientSharedValues = getRuntimeConfig$1(config);
692
+ emitWarningIfUnsupportedVersion$1(process.version);
693
+ const loaderConfig = {
694
+ profile: config?.profile,
695
+ logger: clientSharedValues.logger,
696
+ };
697
+ return {
698
+ ...clientSharedValues,
699
+ ...config,
700
+ runtime: "node",
701
+ defaultsMode,
702
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
703
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
704
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
705
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
706
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
707
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
708
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
709
+ retryMode: config?.retryMode ??
710
+ loadConfig({
711
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
712
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
713
+ }, config),
714
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
715
+ streamCollector: config?.streamCollector ?? streamCollector,
716
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
717
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
718
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
719
+ };
720
+ };
721
+
34
722
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
723
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
724
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -175,10 +863,67 @@ const UsageRecordResultStatus = {
175
863
  SUCCESS: "Success",
176
864
  };
177
865
 
866
+ exports.BatchMeterUsage$ = BatchMeterUsage$;
178
867
  exports.BatchMeterUsageCommand = BatchMeterUsageCommand;
868
+ exports.BatchMeterUsageRequest$ = BatchMeterUsageRequest$;
869
+ exports.BatchMeterUsageResult$ = BatchMeterUsageResult$;
870
+ exports.CustomerNotEntitledException = CustomerNotEntitledException;
871
+ exports.CustomerNotEntitledException$ = CustomerNotEntitledException$;
872
+ exports.DisabledApiException = DisabledApiException;
873
+ exports.DisabledApiException$ = DisabledApiException$;
874
+ exports.DuplicateRequestException = DuplicateRequestException;
875
+ exports.DuplicateRequestException$ = DuplicateRequestException$;
876
+ exports.ExpiredTokenException = ExpiredTokenException;
877
+ exports.ExpiredTokenException$ = ExpiredTokenException$;
878
+ exports.IdempotencyConflictException = IdempotencyConflictException;
879
+ exports.IdempotencyConflictException$ = IdempotencyConflictException$;
880
+ exports.InternalServiceErrorException = InternalServiceErrorException;
881
+ exports.InternalServiceErrorException$ = InternalServiceErrorException$;
882
+ exports.InvalidCustomerIdentifierException = InvalidCustomerIdentifierException;
883
+ exports.InvalidCustomerIdentifierException$ = InvalidCustomerIdentifierException$;
884
+ exports.InvalidEndpointRegionException = InvalidEndpointRegionException;
885
+ exports.InvalidEndpointRegionException$ = InvalidEndpointRegionException$;
886
+ exports.InvalidLicenseException = InvalidLicenseException;
887
+ exports.InvalidLicenseException$ = InvalidLicenseException$;
888
+ exports.InvalidProductCodeException = InvalidProductCodeException;
889
+ exports.InvalidProductCodeException$ = InvalidProductCodeException$;
890
+ exports.InvalidPublicKeyVersionException = InvalidPublicKeyVersionException;
891
+ exports.InvalidPublicKeyVersionException$ = InvalidPublicKeyVersionException$;
892
+ exports.InvalidRegionException = InvalidRegionException;
893
+ exports.InvalidRegionException$ = InvalidRegionException$;
894
+ exports.InvalidTagException = InvalidTagException;
895
+ exports.InvalidTagException$ = InvalidTagException$;
896
+ exports.InvalidTokenException = InvalidTokenException;
897
+ exports.InvalidTokenException$ = InvalidTokenException$;
898
+ exports.InvalidUsageAllocationsException = InvalidUsageAllocationsException;
899
+ exports.InvalidUsageAllocationsException$ = InvalidUsageAllocationsException$;
900
+ exports.InvalidUsageDimensionException = InvalidUsageDimensionException;
901
+ exports.InvalidUsageDimensionException$ = InvalidUsageDimensionException$;
179
902
  exports.MarketplaceMetering = MarketplaceMetering;
180
903
  exports.MarketplaceMeteringClient = MarketplaceMeteringClient;
904
+ exports.MarketplaceMeteringServiceException = MarketplaceMeteringServiceException;
905
+ exports.MarketplaceMeteringServiceException$ = MarketplaceMeteringServiceException$;
906
+ exports.MeterUsage$ = MeterUsage$;
181
907
  exports.MeterUsageCommand = MeterUsageCommand;
908
+ exports.MeterUsageRequest$ = MeterUsageRequest$;
909
+ exports.MeterUsageResult$ = MeterUsageResult$;
910
+ exports.PlatformNotSupportedException = PlatformNotSupportedException;
911
+ exports.PlatformNotSupportedException$ = PlatformNotSupportedException$;
912
+ exports.RegisterUsage$ = RegisterUsage$;
182
913
  exports.RegisterUsageCommand = RegisterUsageCommand;
914
+ exports.RegisterUsageRequest$ = RegisterUsageRequest$;
915
+ exports.RegisterUsageResult$ = RegisterUsageResult$;
916
+ exports.ResolveCustomer$ = ResolveCustomer$;
183
917
  exports.ResolveCustomerCommand = ResolveCustomerCommand;
918
+ exports.ResolveCustomerRequest$ = ResolveCustomerRequest$;
919
+ exports.ResolveCustomerResult$ = ResolveCustomerResult$;
920
+ exports.Tag$ = Tag$;
921
+ exports.ThrottlingException = ThrottlingException;
922
+ exports.ThrottlingException$ = ThrottlingException$;
923
+ exports.TimestampOutOfBoundsException = TimestampOutOfBoundsException;
924
+ exports.TimestampOutOfBoundsException$ = TimestampOutOfBoundsException$;
925
+ exports.UsageAllocation$ = UsageAllocation$;
926
+ exports.UsageRecord$ = UsageRecord$;
927
+ exports.UsageRecordResult$ = UsageRecordResult$;
184
928
  exports.UsageRecordResultStatus = UsageRecordResultStatus;
929
+ exports.errorTypeRegistries = errorTypeRegistries;