@aws-sdk/client-marketplace-metering 3.927.0 → 3.928.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 +406 -503
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/MarketplaceMeteringClient.js +2 -0
- package/dist-es/commands/BatchMeterUsageCommand.js +3 -9
- package/dist-es/commands/MeterUsageCommand.js +3 -9
- package/dist-es/commands/RegisterUsageCommand.js +3 -9
- package/dist-es/commands/ResolveCustomerCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +343 -0
- package/dist-types/MarketplaceMeteringClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +41 -0
- package/dist-types/ts3.4/MarketplaceMeteringClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +46 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -425
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -38
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -53
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
|
-
var uuid = require('@smithy/uuid');
|
|
20
18
|
|
|
21
19
|
const resolveClientEndpointParameters = (options) => {
|
|
22
20
|
return Object.assign(options, {
|
|
@@ -92,6 +90,7 @@ class MarketplaceMeteringClient extends smithyClient.Client {
|
|
|
92
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
95
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -111,19 +110,19 @@ class MarketplaceMeteringClient extends smithyClient.Client {
|
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
|
|
114
|
-
class MarketplaceMeteringServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let MarketplaceMeteringServiceException$1 = class MarketplaceMeteringServiceException extends smithyClient.ServiceException {
|
|
115
114
|
constructor(options) {
|
|
116
115
|
super(options);
|
|
117
116
|
Object.setPrototypeOf(this, MarketplaceMeteringServiceException.prototype);
|
|
118
117
|
}
|
|
119
|
-
}
|
|
118
|
+
};
|
|
120
119
|
|
|
121
120
|
const UsageRecordResultStatus = {
|
|
122
121
|
CUSTOMER_NOT_SUBSCRIBED: "CustomerNotSubscribed",
|
|
123
122
|
DUPLICATE_RECORD: "DuplicateRecord",
|
|
124
123
|
SUCCESS: "Success",
|
|
125
124
|
};
|
|
126
|
-
class DisabledApiException extends MarketplaceMeteringServiceException {
|
|
125
|
+
let DisabledApiException$1 = class DisabledApiException extends MarketplaceMeteringServiceException$1 {
|
|
127
126
|
name = "DisabledApiException";
|
|
128
127
|
$fault = "client";
|
|
129
128
|
constructor(opts) {
|
|
@@ -134,8 +133,8 @@ class DisabledApiException extends MarketplaceMeteringServiceException {
|
|
|
134
133
|
});
|
|
135
134
|
Object.setPrototypeOf(this, DisabledApiException.prototype);
|
|
136
135
|
}
|
|
137
|
-
}
|
|
138
|
-
class InternalServiceErrorException extends MarketplaceMeteringServiceException {
|
|
136
|
+
};
|
|
137
|
+
let InternalServiceErrorException$1 = class InternalServiceErrorException extends MarketplaceMeteringServiceException$1 {
|
|
139
138
|
name = "InternalServiceErrorException";
|
|
140
139
|
$fault = "server";
|
|
141
140
|
constructor(opts) {
|
|
@@ -146,8 +145,8 @@ class InternalServiceErrorException extends MarketplaceMeteringServiceException
|
|
|
146
145
|
});
|
|
147
146
|
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
148
147
|
}
|
|
149
|
-
}
|
|
150
|
-
class InvalidCustomerIdentifierException extends MarketplaceMeteringServiceException {
|
|
148
|
+
};
|
|
149
|
+
let InvalidCustomerIdentifierException$1 = class InvalidCustomerIdentifierException extends MarketplaceMeteringServiceException$1 {
|
|
151
150
|
name = "InvalidCustomerIdentifierException";
|
|
152
151
|
$fault = "client";
|
|
153
152
|
constructor(opts) {
|
|
@@ -158,8 +157,8 @@ class InvalidCustomerIdentifierException extends MarketplaceMeteringServiceExcep
|
|
|
158
157
|
});
|
|
159
158
|
Object.setPrototypeOf(this, InvalidCustomerIdentifierException.prototype);
|
|
160
159
|
}
|
|
161
|
-
}
|
|
162
|
-
class InvalidProductCodeException extends MarketplaceMeteringServiceException {
|
|
160
|
+
};
|
|
161
|
+
let InvalidProductCodeException$1 = class InvalidProductCodeException extends MarketplaceMeteringServiceException$1 {
|
|
163
162
|
name = "InvalidProductCodeException";
|
|
164
163
|
$fault = "client";
|
|
165
164
|
constructor(opts) {
|
|
@@ -170,8 +169,8 @@ class InvalidProductCodeException extends MarketplaceMeteringServiceException {
|
|
|
170
169
|
});
|
|
171
170
|
Object.setPrototypeOf(this, InvalidProductCodeException.prototype);
|
|
172
171
|
}
|
|
173
|
-
}
|
|
174
|
-
class InvalidTagException extends MarketplaceMeteringServiceException {
|
|
172
|
+
};
|
|
173
|
+
let InvalidTagException$1 = class InvalidTagException extends MarketplaceMeteringServiceException$1 {
|
|
175
174
|
name = "InvalidTagException";
|
|
176
175
|
$fault = "client";
|
|
177
176
|
constructor(opts) {
|
|
@@ -182,8 +181,8 @@ class InvalidTagException extends MarketplaceMeteringServiceException {
|
|
|
182
181
|
});
|
|
183
182
|
Object.setPrototypeOf(this, InvalidTagException.prototype);
|
|
184
183
|
}
|
|
185
|
-
}
|
|
186
|
-
class InvalidUsageAllocationsException extends MarketplaceMeteringServiceException {
|
|
184
|
+
};
|
|
185
|
+
let InvalidUsageAllocationsException$1 = class InvalidUsageAllocationsException extends MarketplaceMeteringServiceException$1 {
|
|
187
186
|
name = "InvalidUsageAllocationsException";
|
|
188
187
|
$fault = "client";
|
|
189
188
|
constructor(opts) {
|
|
@@ -194,8 +193,8 @@ class InvalidUsageAllocationsException extends MarketplaceMeteringServiceExcepti
|
|
|
194
193
|
});
|
|
195
194
|
Object.setPrototypeOf(this, InvalidUsageAllocationsException.prototype);
|
|
196
195
|
}
|
|
197
|
-
}
|
|
198
|
-
class InvalidUsageDimensionException extends MarketplaceMeteringServiceException {
|
|
196
|
+
};
|
|
197
|
+
let InvalidUsageDimensionException$1 = class InvalidUsageDimensionException extends MarketplaceMeteringServiceException$1 {
|
|
199
198
|
name = "InvalidUsageDimensionException";
|
|
200
199
|
$fault = "client";
|
|
201
200
|
constructor(opts) {
|
|
@@ -206,8 +205,8 @@ class InvalidUsageDimensionException extends MarketplaceMeteringServiceException
|
|
|
206
205
|
});
|
|
207
206
|
Object.setPrototypeOf(this, InvalidUsageDimensionException.prototype);
|
|
208
207
|
}
|
|
209
|
-
}
|
|
210
|
-
class ThrottlingException extends MarketplaceMeteringServiceException {
|
|
208
|
+
};
|
|
209
|
+
let ThrottlingException$1 = class ThrottlingException extends MarketplaceMeteringServiceException$1 {
|
|
211
210
|
name = "ThrottlingException";
|
|
212
211
|
$fault = "client";
|
|
213
212
|
constructor(opts) {
|
|
@@ -218,8 +217,8 @@ class ThrottlingException extends MarketplaceMeteringServiceException {
|
|
|
218
217
|
});
|
|
219
218
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
220
219
|
}
|
|
221
|
-
}
|
|
222
|
-
class TimestampOutOfBoundsException extends MarketplaceMeteringServiceException {
|
|
220
|
+
};
|
|
221
|
+
let TimestampOutOfBoundsException$1 = class TimestampOutOfBoundsException extends MarketplaceMeteringServiceException$1 {
|
|
223
222
|
name = "TimestampOutOfBoundsException";
|
|
224
223
|
$fault = "client";
|
|
225
224
|
constructor(opts) {
|
|
@@ -230,8 +229,8 @@ class TimestampOutOfBoundsException extends MarketplaceMeteringServiceException
|
|
|
230
229
|
});
|
|
231
230
|
Object.setPrototypeOf(this, TimestampOutOfBoundsException.prototype);
|
|
232
231
|
}
|
|
233
|
-
}
|
|
234
|
-
class CustomerNotEntitledException extends MarketplaceMeteringServiceException {
|
|
232
|
+
};
|
|
233
|
+
let CustomerNotEntitledException$1 = class CustomerNotEntitledException extends MarketplaceMeteringServiceException$1 {
|
|
235
234
|
name = "CustomerNotEntitledException";
|
|
236
235
|
$fault = "client";
|
|
237
236
|
constructor(opts) {
|
|
@@ -242,8 +241,8 @@ class CustomerNotEntitledException extends MarketplaceMeteringServiceException {
|
|
|
242
241
|
});
|
|
243
242
|
Object.setPrototypeOf(this, CustomerNotEntitledException.prototype);
|
|
244
243
|
}
|
|
245
|
-
}
|
|
246
|
-
class DuplicateRequestException extends MarketplaceMeteringServiceException {
|
|
244
|
+
};
|
|
245
|
+
let DuplicateRequestException$1 = class DuplicateRequestException extends MarketplaceMeteringServiceException$1 {
|
|
247
246
|
name = "DuplicateRequestException";
|
|
248
247
|
$fault = "client";
|
|
249
248
|
constructor(opts) {
|
|
@@ -254,8 +253,8 @@ class DuplicateRequestException extends MarketplaceMeteringServiceException {
|
|
|
254
253
|
});
|
|
255
254
|
Object.setPrototypeOf(this, DuplicateRequestException.prototype);
|
|
256
255
|
}
|
|
257
|
-
}
|
|
258
|
-
class IdempotencyConflictException extends MarketplaceMeteringServiceException {
|
|
256
|
+
};
|
|
257
|
+
let IdempotencyConflictException$1 = class IdempotencyConflictException extends MarketplaceMeteringServiceException$1 {
|
|
259
258
|
name = "IdempotencyConflictException";
|
|
260
259
|
$fault = "client";
|
|
261
260
|
constructor(opts) {
|
|
@@ -266,8 +265,8 @@ class IdempotencyConflictException extends MarketplaceMeteringServiceException {
|
|
|
266
265
|
});
|
|
267
266
|
Object.setPrototypeOf(this, IdempotencyConflictException.prototype);
|
|
268
267
|
}
|
|
269
|
-
}
|
|
270
|
-
class InvalidEndpointRegionException extends MarketplaceMeteringServiceException {
|
|
268
|
+
};
|
|
269
|
+
let InvalidEndpointRegionException$1 = class InvalidEndpointRegionException extends MarketplaceMeteringServiceException$1 {
|
|
271
270
|
name = "InvalidEndpointRegionException";
|
|
272
271
|
$fault = "client";
|
|
273
272
|
constructor(opts) {
|
|
@@ -278,8 +277,8 @@ class InvalidEndpointRegionException extends MarketplaceMeteringServiceException
|
|
|
278
277
|
});
|
|
279
278
|
Object.setPrototypeOf(this, InvalidEndpointRegionException.prototype);
|
|
280
279
|
}
|
|
281
|
-
}
|
|
282
|
-
class InvalidPublicKeyVersionException extends MarketplaceMeteringServiceException {
|
|
280
|
+
};
|
|
281
|
+
let InvalidPublicKeyVersionException$1 = class InvalidPublicKeyVersionException extends MarketplaceMeteringServiceException$1 {
|
|
283
282
|
name = "InvalidPublicKeyVersionException";
|
|
284
283
|
$fault = "client";
|
|
285
284
|
constructor(opts) {
|
|
@@ -290,8 +289,8 @@ class InvalidPublicKeyVersionException extends MarketplaceMeteringServiceExcepti
|
|
|
290
289
|
});
|
|
291
290
|
Object.setPrototypeOf(this, InvalidPublicKeyVersionException.prototype);
|
|
292
291
|
}
|
|
293
|
-
}
|
|
294
|
-
class InvalidRegionException extends MarketplaceMeteringServiceException {
|
|
292
|
+
};
|
|
293
|
+
let InvalidRegionException$1 = class InvalidRegionException extends MarketplaceMeteringServiceException$1 {
|
|
295
294
|
name = "InvalidRegionException";
|
|
296
295
|
$fault = "client";
|
|
297
296
|
constructor(opts) {
|
|
@@ -302,8 +301,8 @@ class InvalidRegionException extends MarketplaceMeteringServiceException {
|
|
|
302
301
|
});
|
|
303
302
|
Object.setPrototypeOf(this, InvalidRegionException.prototype);
|
|
304
303
|
}
|
|
305
|
-
}
|
|
306
|
-
class PlatformNotSupportedException extends MarketplaceMeteringServiceException {
|
|
304
|
+
};
|
|
305
|
+
let PlatformNotSupportedException$1 = class PlatformNotSupportedException extends MarketplaceMeteringServiceException$1 {
|
|
307
306
|
name = "PlatformNotSupportedException";
|
|
308
307
|
$fault = "client";
|
|
309
308
|
constructor(opts) {
|
|
@@ -314,8 +313,8 @@ class PlatformNotSupportedException extends MarketplaceMeteringServiceException
|
|
|
314
313
|
});
|
|
315
314
|
Object.setPrototypeOf(this, PlatformNotSupportedException.prototype);
|
|
316
315
|
}
|
|
317
|
-
}
|
|
318
|
-
class ExpiredTokenException extends MarketplaceMeteringServiceException {
|
|
316
|
+
};
|
|
317
|
+
let ExpiredTokenException$1 = class ExpiredTokenException extends MarketplaceMeteringServiceException$1 {
|
|
319
318
|
name = "ExpiredTokenException";
|
|
320
319
|
$fault = "client";
|
|
321
320
|
constructor(opts) {
|
|
@@ -326,8 +325,8 @@ class ExpiredTokenException extends MarketplaceMeteringServiceException {
|
|
|
326
325
|
});
|
|
327
326
|
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
328
327
|
}
|
|
329
|
-
}
|
|
330
|
-
class InvalidTokenException extends MarketplaceMeteringServiceException {
|
|
328
|
+
};
|
|
329
|
+
let InvalidTokenException$1 = class InvalidTokenException extends MarketplaceMeteringServiceException$1 {
|
|
331
330
|
name = "InvalidTokenException";
|
|
332
331
|
$fault = "client";
|
|
333
332
|
constructor(opts) {
|
|
@@ -338,438 +337,357 @@ class InvalidTokenException extends MarketplaceMeteringServiceException {
|
|
|
338
337
|
});
|
|
339
338
|
Object.setPrototypeOf(this, InvalidTokenException.prototype);
|
|
340
339
|
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
const se_BatchMeterUsageCommand = async (input, context) => {
|
|
344
|
-
const headers = sharedHeaders("BatchMeterUsage");
|
|
345
|
-
let body;
|
|
346
|
-
body = JSON.stringify(se_BatchMeterUsageRequest(input));
|
|
347
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
|
-
};
|
|
349
|
-
const se_MeterUsageCommand = async (input, context) => {
|
|
350
|
-
const headers = sharedHeaders("MeterUsage");
|
|
351
|
-
let body;
|
|
352
|
-
body = JSON.stringify(se_MeterUsageRequest(input));
|
|
353
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
354
|
-
};
|
|
355
|
-
const se_RegisterUsageCommand = async (input, context) => {
|
|
356
|
-
const headers = sharedHeaders("RegisterUsage");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
const se_ResolveCustomerCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("ResolveCustomer");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
const de_BatchMeterUsageCommand = async (output, context) => {
|
|
368
|
-
if (output.statusCode >= 300) {
|
|
369
|
-
return de_CommandError(output, context);
|
|
370
|
-
}
|
|
371
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
372
|
-
let contents = {};
|
|
373
|
-
contents = de_BatchMeterUsageResult(data);
|
|
374
|
-
const response = {
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
...contents,
|
|
377
|
-
};
|
|
378
|
-
return response;
|
|
379
|
-
};
|
|
380
|
-
const de_MeterUsageCommand = async (output, context) => {
|
|
381
|
-
if (output.statusCode >= 300) {
|
|
382
|
-
return de_CommandError(output, context);
|
|
383
|
-
}
|
|
384
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
385
|
-
let contents = {};
|
|
386
|
-
contents = smithyClient._json(data);
|
|
387
|
-
const response = {
|
|
388
|
-
$metadata: deserializeMetadata(output),
|
|
389
|
-
...contents,
|
|
390
|
-
};
|
|
391
|
-
return response;
|
|
392
|
-
};
|
|
393
|
-
const de_RegisterUsageCommand = async (output, context) => {
|
|
394
|
-
if (output.statusCode >= 300) {
|
|
395
|
-
return de_CommandError(output, context);
|
|
396
|
-
}
|
|
397
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
398
|
-
let contents = {};
|
|
399
|
-
contents = de_RegisterUsageResult(data);
|
|
400
|
-
const response = {
|
|
401
|
-
$metadata: deserializeMetadata(output),
|
|
402
|
-
...contents,
|
|
403
|
-
};
|
|
404
|
-
return response;
|
|
405
|
-
};
|
|
406
|
-
const de_ResolveCustomerCommand = async (output, context) => {
|
|
407
|
-
if (output.statusCode >= 300) {
|
|
408
|
-
return de_CommandError(output, context);
|
|
409
|
-
}
|
|
410
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
411
|
-
let contents = {};
|
|
412
|
-
contents = smithyClient._json(data);
|
|
413
|
-
const response = {
|
|
414
|
-
$metadata: deserializeMetadata(output),
|
|
415
|
-
...contents,
|
|
416
|
-
};
|
|
417
|
-
return response;
|
|
418
|
-
};
|
|
419
|
-
const de_CommandError = async (output, context) => {
|
|
420
|
-
const parsedOutput = {
|
|
421
|
-
...output,
|
|
422
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
423
|
-
};
|
|
424
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
|
-
switch (errorCode) {
|
|
426
|
-
case "DisabledApiException":
|
|
427
|
-
case "com.amazonaws.marketplacemetering#DisabledApiException":
|
|
428
|
-
throw await de_DisabledApiExceptionRes(parsedOutput);
|
|
429
|
-
case "InternalServiceErrorException":
|
|
430
|
-
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
431
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput);
|
|
432
|
-
case "InvalidCustomerIdentifierException":
|
|
433
|
-
case "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException":
|
|
434
|
-
throw await de_InvalidCustomerIdentifierExceptionRes(parsedOutput);
|
|
435
|
-
case "InvalidProductCodeException":
|
|
436
|
-
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
437
|
-
throw await de_InvalidProductCodeExceptionRes(parsedOutput);
|
|
438
|
-
case "InvalidTagException":
|
|
439
|
-
case "com.amazonaws.marketplacemetering#InvalidTagException":
|
|
440
|
-
throw await de_InvalidTagExceptionRes(parsedOutput);
|
|
441
|
-
case "InvalidUsageAllocationsException":
|
|
442
|
-
case "com.amazonaws.marketplacemetering#InvalidUsageAllocationsException":
|
|
443
|
-
throw await de_InvalidUsageAllocationsExceptionRes(parsedOutput);
|
|
444
|
-
case "InvalidUsageDimensionException":
|
|
445
|
-
case "com.amazonaws.marketplacemetering#InvalidUsageDimensionException":
|
|
446
|
-
throw await de_InvalidUsageDimensionExceptionRes(parsedOutput);
|
|
447
|
-
case "ThrottlingException":
|
|
448
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
449
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
450
|
-
case "TimestampOutOfBoundsException":
|
|
451
|
-
case "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException":
|
|
452
|
-
throw await de_TimestampOutOfBoundsExceptionRes(parsedOutput);
|
|
453
|
-
case "CustomerNotEntitledException":
|
|
454
|
-
case "com.amazonaws.marketplacemetering#CustomerNotEntitledException":
|
|
455
|
-
throw await de_CustomerNotEntitledExceptionRes(parsedOutput);
|
|
456
|
-
case "DuplicateRequestException":
|
|
457
|
-
case "com.amazonaws.marketplacemetering#DuplicateRequestException":
|
|
458
|
-
throw await de_DuplicateRequestExceptionRes(parsedOutput);
|
|
459
|
-
case "IdempotencyConflictException":
|
|
460
|
-
case "com.amazonaws.marketplacemetering#IdempotencyConflictException":
|
|
461
|
-
throw await de_IdempotencyConflictExceptionRes(parsedOutput);
|
|
462
|
-
case "InvalidEndpointRegionException":
|
|
463
|
-
case "com.amazonaws.marketplacemetering#InvalidEndpointRegionException":
|
|
464
|
-
throw await de_InvalidEndpointRegionExceptionRes(parsedOutput);
|
|
465
|
-
case "InvalidPublicKeyVersionException":
|
|
466
|
-
case "com.amazonaws.marketplacemetering#InvalidPublicKeyVersionException":
|
|
467
|
-
throw await de_InvalidPublicKeyVersionExceptionRes(parsedOutput);
|
|
468
|
-
case "InvalidRegionException":
|
|
469
|
-
case "com.amazonaws.marketplacemetering#InvalidRegionException":
|
|
470
|
-
throw await de_InvalidRegionExceptionRes(parsedOutput);
|
|
471
|
-
case "PlatformNotSupportedException":
|
|
472
|
-
case "com.amazonaws.marketplacemetering#PlatformNotSupportedException":
|
|
473
|
-
throw await de_PlatformNotSupportedExceptionRes(parsedOutput);
|
|
474
|
-
case "ExpiredTokenException":
|
|
475
|
-
case "com.amazonaws.marketplacemetering#ExpiredTokenException":
|
|
476
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput);
|
|
477
|
-
case "InvalidTokenException":
|
|
478
|
-
case "com.amazonaws.marketplacemetering#InvalidTokenException":
|
|
479
|
-
throw await de_InvalidTokenExceptionRes(parsedOutput);
|
|
480
|
-
default:
|
|
481
|
-
const parsedBody = parsedOutput.body;
|
|
482
|
-
return throwDefaultError({
|
|
483
|
-
output,
|
|
484
|
-
parsedBody,
|
|
485
|
-
errorCode,
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
const de_CustomerNotEntitledExceptionRes = async (parsedOutput, context) => {
|
|
490
|
-
const body = parsedOutput.body;
|
|
491
|
-
const deserialized = smithyClient._json(body);
|
|
492
|
-
const exception = new CustomerNotEntitledException({
|
|
493
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
494
|
-
...deserialized,
|
|
495
|
-
});
|
|
496
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
497
|
-
};
|
|
498
|
-
const de_DisabledApiExceptionRes = async (parsedOutput, context) => {
|
|
499
|
-
const body = parsedOutput.body;
|
|
500
|
-
const deserialized = smithyClient._json(body);
|
|
501
|
-
const exception = new DisabledApiException({
|
|
502
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
503
|
-
...deserialized,
|
|
504
|
-
});
|
|
505
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
506
|
-
};
|
|
507
|
-
const de_DuplicateRequestExceptionRes = async (parsedOutput, context) => {
|
|
508
|
-
const body = parsedOutput.body;
|
|
509
|
-
const deserialized = smithyClient._json(body);
|
|
510
|
-
const exception = new DuplicateRequestException({
|
|
511
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
512
|
-
...deserialized,
|
|
513
|
-
});
|
|
514
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
515
|
-
};
|
|
516
|
-
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
517
|
-
const body = parsedOutput.body;
|
|
518
|
-
const deserialized = smithyClient._json(body);
|
|
519
|
-
const exception = new ExpiredTokenException({
|
|
520
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
521
|
-
...deserialized,
|
|
522
|
-
});
|
|
523
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
524
|
-
};
|
|
525
|
-
const de_IdempotencyConflictExceptionRes = async (parsedOutput, context) => {
|
|
526
|
-
const body = parsedOutput.body;
|
|
527
|
-
const deserialized = smithyClient._json(body);
|
|
528
|
-
const exception = new IdempotencyConflictException({
|
|
529
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
530
|
-
...deserialized,
|
|
531
|
-
});
|
|
532
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
533
|
-
};
|
|
534
|
-
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
535
|
-
const body = parsedOutput.body;
|
|
536
|
-
const deserialized = smithyClient._json(body);
|
|
537
|
-
const exception = new InternalServiceErrorException({
|
|
538
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
539
|
-
...deserialized,
|
|
540
|
-
});
|
|
541
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
542
|
-
};
|
|
543
|
-
const de_InvalidCustomerIdentifierExceptionRes = async (parsedOutput, context) => {
|
|
544
|
-
const body = parsedOutput.body;
|
|
545
|
-
const deserialized = smithyClient._json(body);
|
|
546
|
-
const exception = new InvalidCustomerIdentifierException({
|
|
547
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
548
|
-
...deserialized,
|
|
549
|
-
});
|
|
550
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
551
|
-
};
|
|
552
|
-
const de_InvalidEndpointRegionExceptionRes = async (parsedOutput, context) => {
|
|
553
|
-
const body = parsedOutput.body;
|
|
554
|
-
const deserialized = smithyClient._json(body);
|
|
555
|
-
const exception = new InvalidEndpointRegionException({
|
|
556
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
557
|
-
...deserialized,
|
|
558
|
-
});
|
|
559
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
560
|
-
};
|
|
561
|
-
const de_InvalidProductCodeExceptionRes = async (parsedOutput, context) => {
|
|
562
|
-
const body = parsedOutput.body;
|
|
563
|
-
const deserialized = smithyClient._json(body);
|
|
564
|
-
const exception = new InvalidProductCodeException({
|
|
565
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
566
|
-
...deserialized,
|
|
567
|
-
});
|
|
568
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
569
|
-
};
|
|
570
|
-
const de_InvalidPublicKeyVersionExceptionRes = async (parsedOutput, context) => {
|
|
571
|
-
const body = parsedOutput.body;
|
|
572
|
-
const deserialized = smithyClient._json(body);
|
|
573
|
-
const exception = new InvalidPublicKeyVersionException({
|
|
574
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
575
|
-
...deserialized,
|
|
576
|
-
});
|
|
577
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
578
|
-
};
|
|
579
|
-
const de_InvalidRegionExceptionRes = async (parsedOutput, context) => {
|
|
580
|
-
const body = parsedOutput.body;
|
|
581
|
-
const deserialized = smithyClient._json(body);
|
|
582
|
-
const exception = new InvalidRegionException({
|
|
583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
584
|
-
...deserialized,
|
|
585
|
-
});
|
|
586
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
587
|
-
};
|
|
588
|
-
const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
|
|
589
|
-
const body = parsedOutput.body;
|
|
590
|
-
const deserialized = smithyClient._json(body);
|
|
591
|
-
const exception = new InvalidTagException({
|
|
592
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
593
|
-
...deserialized,
|
|
594
|
-
});
|
|
595
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
596
|
-
};
|
|
597
|
-
const de_InvalidTokenExceptionRes = async (parsedOutput, context) => {
|
|
598
|
-
const body = parsedOutput.body;
|
|
599
|
-
const deserialized = smithyClient._json(body);
|
|
600
|
-
const exception = new InvalidTokenException({
|
|
601
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
602
|
-
...deserialized,
|
|
603
|
-
});
|
|
604
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
605
|
-
};
|
|
606
|
-
const de_InvalidUsageAllocationsExceptionRes = async (parsedOutput, context) => {
|
|
607
|
-
const body = parsedOutput.body;
|
|
608
|
-
const deserialized = smithyClient._json(body);
|
|
609
|
-
const exception = new InvalidUsageAllocationsException({
|
|
610
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
611
|
-
...deserialized,
|
|
612
|
-
});
|
|
613
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
614
|
-
};
|
|
615
|
-
const de_InvalidUsageDimensionExceptionRes = async (parsedOutput, context) => {
|
|
616
|
-
const body = parsedOutput.body;
|
|
617
|
-
const deserialized = smithyClient._json(body);
|
|
618
|
-
const exception = new InvalidUsageDimensionException({
|
|
619
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
620
|
-
...deserialized,
|
|
621
|
-
});
|
|
622
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
623
|
-
};
|
|
624
|
-
const de_PlatformNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
625
|
-
const body = parsedOutput.body;
|
|
626
|
-
const deserialized = smithyClient._json(body);
|
|
627
|
-
const exception = new PlatformNotSupportedException({
|
|
628
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
629
|
-
...deserialized,
|
|
630
|
-
});
|
|
631
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
632
|
-
};
|
|
633
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
634
|
-
const body = parsedOutput.body;
|
|
635
|
-
const deserialized = smithyClient._json(body);
|
|
636
|
-
const exception = new ThrottlingException({
|
|
637
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
638
|
-
...deserialized,
|
|
639
|
-
});
|
|
640
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
641
|
-
};
|
|
642
|
-
const de_TimestampOutOfBoundsExceptionRes = async (parsedOutput, context) => {
|
|
643
|
-
const body = parsedOutput.body;
|
|
644
|
-
const deserialized = smithyClient._json(body);
|
|
645
|
-
const exception = new TimestampOutOfBoundsException({
|
|
646
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
647
|
-
...deserialized,
|
|
648
|
-
});
|
|
649
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
650
|
-
};
|
|
651
|
-
const se_BatchMeterUsageRequest = (input, context) => {
|
|
652
|
-
return smithyClient.take(input, {
|
|
653
|
-
ProductCode: [],
|
|
654
|
-
UsageRecords: (_) => se_UsageRecordList(_),
|
|
655
|
-
});
|
|
656
|
-
};
|
|
657
|
-
const se_MeterUsageRequest = (input, context) => {
|
|
658
|
-
return smithyClient.take(input, {
|
|
659
|
-
ClientToken: [true, (_) => _ ?? uuid.v4()],
|
|
660
|
-
DryRun: [],
|
|
661
|
-
ProductCode: [],
|
|
662
|
-
Timestamp: (_) => _.getTime() / 1_000,
|
|
663
|
-
UsageAllocations: smithyClient._json,
|
|
664
|
-
UsageDimension: [],
|
|
665
|
-
UsageQuantity: [],
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
const se_UsageRecord = (input, context) => {
|
|
669
|
-
return smithyClient.take(input, {
|
|
670
|
-
CustomerAWSAccountId: [],
|
|
671
|
-
CustomerIdentifier: [],
|
|
672
|
-
Dimension: [],
|
|
673
|
-
Quantity: [],
|
|
674
|
-
Timestamp: (_) => _.getTime() / 1_000,
|
|
675
|
-
UsageAllocations: smithyClient._json,
|
|
676
|
-
});
|
|
677
|
-
};
|
|
678
|
-
const se_UsageRecordList = (input, context) => {
|
|
679
|
-
return input
|
|
680
|
-
.filter((e) => e != null)
|
|
681
|
-
.map((entry) => {
|
|
682
|
-
return se_UsageRecord(entry);
|
|
683
|
-
});
|
|
684
|
-
};
|
|
685
|
-
const de_BatchMeterUsageResult = (output, context) => {
|
|
686
|
-
return smithyClient.take(output, {
|
|
687
|
-
Results: (_) => de_UsageRecordResultList(_),
|
|
688
|
-
UnprocessedRecords: (_) => de_UsageRecordList(_),
|
|
689
|
-
});
|
|
690
|
-
};
|
|
691
|
-
const de_RegisterUsageResult = (output, context) => {
|
|
692
|
-
return smithyClient.take(output, {
|
|
693
|
-
PublicKeyRotationTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
694
|
-
Signature: smithyClient.expectString,
|
|
695
|
-
});
|
|
696
|
-
};
|
|
697
|
-
const de_UsageRecord = (output, context) => {
|
|
698
|
-
return smithyClient.take(output, {
|
|
699
|
-
CustomerAWSAccountId: smithyClient.expectString,
|
|
700
|
-
CustomerIdentifier: smithyClient.expectString,
|
|
701
|
-
Dimension: smithyClient.expectString,
|
|
702
|
-
Quantity: smithyClient.expectInt32,
|
|
703
|
-
Timestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
704
|
-
UsageAllocations: smithyClient._json,
|
|
705
|
-
});
|
|
706
|
-
};
|
|
707
|
-
const de_UsageRecordList = (output, context) => {
|
|
708
|
-
const retVal = (output || [])
|
|
709
|
-
.filter((e) => e != null)
|
|
710
|
-
.map((entry) => {
|
|
711
|
-
return de_UsageRecord(entry);
|
|
712
|
-
});
|
|
713
|
-
return retVal;
|
|
714
|
-
};
|
|
715
|
-
const de_UsageRecordResult = (output, context) => {
|
|
716
|
-
return smithyClient.take(output, {
|
|
717
|
-
MeteringRecordId: smithyClient.expectString,
|
|
718
|
-
Status: smithyClient.expectString,
|
|
719
|
-
UsageRecord: (_) => de_UsageRecord(_),
|
|
720
|
-
});
|
|
721
|
-
};
|
|
722
|
-
const de_UsageRecordResultList = (output, context) => {
|
|
723
|
-
const retVal = (output || [])
|
|
724
|
-
.filter((e) => e != null)
|
|
725
|
-
.map((entry) => {
|
|
726
|
-
return de_UsageRecordResult(entry);
|
|
727
|
-
});
|
|
728
|
-
return retVal;
|
|
729
|
-
};
|
|
730
|
-
const deserializeMetadata = (output) => ({
|
|
731
|
-
httpStatusCode: output.statusCode,
|
|
732
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
733
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
734
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
735
|
-
});
|
|
736
|
-
const throwDefaultError = smithyClient.withBaseException(MarketplaceMeteringServiceException);
|
|
737
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
738
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
739
|
-
const contents = {
|
|
740
|
-
protocol,
|
|
741
|
-
hostname,
|
|
742
|
-
port,
|
|
743
|
-
method: "POST",
|
|
744
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
745
|
-
headers,
|
|
746
|
-
};
|
|
747
|
-
if (body !== undefined) {
|
|
748
|
-
contents.body = body;
|
|
749
|
-
}
|
|
750
|
-
return new protocolHttp.HttpRequest(contents);
|
|
751
340
|
};
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
341
|
+
|
|
342
|
+
const _AUQ = "AllocatedUsageQuantity";
|
|
343
|
+
const _BMU = "BatchMeterUsage";
|
|
344
|
+
const _BMUR = "BatchMeterUsageRequest";
|
|
345
|
+
const _BMURa = "BatchMeterUsageResult";
|
|
346
|
+
const _CAWSAI = "CustomerAWSAccountId";
|
|
347
|
+
const _CI = "CustomerIdentifier";
|
|
348
|
+
const _CNEE = "CustomerNotEntitledException";
|
|
349
|
+
const _CT = "ClientToken";
|
|
350
|
+
const _D = "Dimension";
|
|
351
|
+
const _DAE = "DisabledApiException";
|
|
352
|
+
const _DR = "DryRun";
|
|
353
|
+
const _DRE = "DuplicateRequestException";
|
|
354
|
+
const _ETE = "ExpiredTokenException";
|
|
355
|
+
const _ICE = "IdempotencyConflictException";
|
|
356
|
+
const _ICIE = "InvalidCustomerIdentifierException";
|
|
357
|
+
const _IERE = "InvalidEndpointRegionException";
|
|
358
|
+
const _IPCE = "InvalidProductCodeException";
|
|
359
|
+
const _IPKVE = "InvalidPublicKeyVersionException";
|
|
360
|
+
const _IRE = "InvalidRegionException";
|
|
361
|
+
const _ISEE = "InternalServiceErrorException";
|
|
362
|
+
const _ITE = "InvalidTagException";
|
|
363
|
+
const _ITEn = "InvalidTokenException";
|
|
364
|
+
const _IUAE = "InvalidUsageAllocationsException";
|
|
365
|
+
const _IUDE = "InvalidUsageDimensionException";
|
|
366
|
+
const _K = "Key";
|
|
367
|
+
const _MRI = "MeteringRecordId";
|
|
368
|
+
const _MU = "MeterUsage";
|
|
369
|
+
const _MUR = "MeterUsageRequest";
|
|
370
|
+
const _MURe = "MeterUsageResult";
|
|
371
|
+
const _N = "Nonce";
|
|
372
|
+
const _PC = "ProductCode";
|
|
373
|
+
const _PKRT = "PublicKeyRotationTimestamp";
|
|
374
|
+
const _PKV = "PublicKeyVersion";
|
|
375
|
+
const _PNSE = "PlatformNotSupportedException";
|
|
376
|
+
const _Q = "Quantity";
|
|
377
|
+
const _R = "Results";
|
|
378
|
+
const _RC = "ResolveCustomer";
|
|
379
|
+
const _RCR = "ResolveCustomerRequest";
|
|
380
|
+
const _RCRe = "ResolveCustomerResult";
|
|
381
|
+
const _RT = "RegistrationToken";
|
|
382
|
+
const _RU = "RegisterUsage";
|
|
383
|
+
const _RUR = "RegisterUsageRequest";
|
|
384
|
+
const _RURe = "RegisterUsageResult";
|
|
385
|
+
const _S = "Signature";
|
|
386
|
+
const _St = "Status";
|
|
387
|
+
const _T = "Timestamp";
|
|
388
|
+
const _TE = "ThrottlingException";
|
|
389
|
+
const _TL = "TagList";
|
|
390
|
+
const _TOOBE = "TimestampOutOfBoundsException";
|
|
391
|
+
const _Ta = "Tag";
|
|
392
|
+
const _Tag = "Tags";
|
|
393
|
+
const _UA = "UsageAllocations";
|
|
394
|
+
const _UAs = "UsageAllocation";
|
|
395
|
+
const _UD = "UsageDimension";
|
|
396
|
+
const _UQ = "UsageQuantity";
|
|
397
|
+
const _UR = "UsageRecords";
|
|
398
|
+
const _URL = "UsageRecordList";
|
|
399
|
+
const _URR = "UsageRecordResult";
|
|
400
|
+
const _URRL = "UsageRecordResultList";
|
|
401
|
+
const _URn = "UnprocessedRecords";
|
|
402
|
+
const _URs = "UsageRecord";
|
|
403
|
+
const _V = "Value";
|
|
404
|
+
const _c = "client";
|
|
405
|
+
const _e = "error";
|
|
406
|
+
const _hE = "httpError";
|
|
407
|
+
const _m = "message";
|
|
408
|
+
const _s = "server";
|
|
409
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacemetering";
|
|
410
|
+
const n0 = "com.amazonaws.marketplacemetering";
|
|
411
|
+
var BatchMeterUsageRequest = [3, n0, _BMUR, 0, [_UR, _PC], [() => UsageRecordList, 0]];
|
|
412
|
+
var BatchMeterUsageResult = [
|
|
413
|
+
3,
|
|
414
|
+
n0,
|
|
415
|
+
_BMURa,
|
|
416
|
+
0,
|
|
417
|
+
[_R, _URn],
|
|
418
|
+
[() => UsageRecordResultList, () => UsageRecordList],
|
|
419
|
+
];
|
|
420
|
+
var CustomerNotEntitledException = [
|
|
421
|
+
-3,
|
|
422
|
+
n0,
|
|
423
|
+
_CNEE,
|
|
424
|
+
{
|
|
425
|
+
[_e]: _c,
|
|
426
|
+
},
|
|
427
|
+
[_m],
|
|
428
|
+
[0],
|
|
429
|
+
];
|
|
430
|
+
schema.TypeRegistry.for(n0).registerError(CustomerNotEntitledException, CustomerNotEntitledException$1);
|
|
431
|
+
var DisabledApiException = [
|
|
432
|
+
-3,
|
|
433
|
+
n0,
|
|
434
|
+
_DAE,
|
|
435
|
+
{
|
|
436
|
+
[_e]: _c,
|
|
437
|
+
},
|
|
438
|
+
[_m],
|
|
439
|
+
[0],
|
|
440
|
+
];
|
|
441
|
+
schema.TypeRegistry.for(n0).registerError(DisabledApiException, DisabledApiException$1);
|
|
442
|
+
var DuplicateRequestException = [
|
|
443
|
+
-3,
|
|
444
|
+
n0,
|
|
445
|
+
_DRE,
|
|
446
|
+
{
|
|
447
|
+
[_e]: _c,
|
|
448
|
+
},
|
|
449
|
+
[_m],
|
|
450
|
+
[0],
|
|
451
|
+
];
|
|
452
|
+
schema.TypeRegistry.for(n0).registerError(DuplicateRequestException, DuplicateRequestException$1);
|
|
453
|
+
var ExpiredTokenException = [
|
|
454
|
+
-3,
|
|
455
|
+
n0,
|
|
456
|
+
_ETE,
|
|
457
|
+
{
|
|
458
|
+
[_e]: _c,
|
|
459
|
+
},
|
|
460
|
+
[_m],
|
|
461
|
+
[0],
|
|
462
|
+
];
|
|
463
|
+
schema.TypeRegistry.for(n0).registerError(ExpiredTokenException, ExpiredTokenException$1);
|
|
464
|
+
var IdempotencyConflictException = [
|
|
465
|
+
-3,
|
|
466
|
+
n0,
|
|
467
|
+
_ICE,
|
|
468
|
+
{
|
|
469
|
+
[_e]: _c,
|
|
470
|
+
[_hE]: 409,
|
|
471
|
+
},
|
|
472
|
+
[_m],
|
|
473
|
+
[0],
|
|
474
|
+
];
|
|
475
|
+
schema.TypeRegistry.for(n0).registerError(IdempotencyConflictException, IdempotencyConflictException$1);
|
|
476
|
+
var InternalServiceErrorException = [
|
|
477
|
+
-3,
|
|
478
|
+
n0,
|
|
479
|
+
_ISEE,
|
|
480
|
+
{
|
|
481
|
+
[_e]: _s,
|
|
482
|
+
},
|
|
483
|
+
[_m],
|
|
484
|
+
[0],
|
|
485
|
+
];
|
|
486
|
+
schema.TypeRegistry.for(n0).registerError(InternalServiceErrorException, InternalServiceErrorException$1);
|
|
487
|
+
var InvalidCustomerIdentifierException = [
|
|
488
|
+
-3,
|
|
489
|
+
n0,
|
|
490
|
+
_ICIE,
|
|
491
|
+
{
|
|
492
|
+
[_e]: _c,
|
|
493
|
+
},
|
|
494
|
+
[_m],
|
|
495
|
+
[0],
|
|
496
|
+
];
|
|
497
|
+
schema.TypeRegistry.for(n0).registerError(InvalidCustomerIdentifierException, InvalidCustomerIdentifierException$1);
|
|
498
|
+
var InvalidEndpointRegionException = [
|
|
499
|
+
-3,
|
|
500
|
+
n0,
|
|
501
|
+
_IERE,
|
|
502
|
+
{
|
|
503
|
+
[_e]: _c,
|
|
504
|
+
},
|
|
505
|
+
[_m],
|
|
506
|
+
[0],
|
|
507
|
+
];
|
|
508
|
+
schema.TypeRegistry.for(n0).registerError(InvalidEndpointRegionException, InvalidEndpointRegionException$1);
|
|
509
|
+
var InvalidProductCodeException = [
|
|
510
|
+
-3,
|
|
511
|
+
n0,
|
|
512
|
+
_IPCE,
|
|
513
|
+
{
|
|
514
|
+
[_e]: _c,
|
|
515
|
+
},
|
|
516
|
+
[_m],
|
|
517
|
+
[0],
|
|
518
|
+
];
|
|
519
|
+
schema.TypeRegistry.for(n0).registerError(InvalidProductCodeException, InvalidProductCodeException$1);
|
|
520
|
+
var InvalidPublicKeyVersionException = [
|
|
521
|
+
-3,
|
|
522
|
+
n0,
|
|
523
|
+
_IPKVE,
|
|
524
|
+
{
|
|
525
|
+
[_e]: _c,
|
|
526
|
+
},
|
|
527
|
+
[_m],
|
|
528
|
+
[0],
|
|
529
|
+
];
|
|
530
|
+
schema.TypeRegistry.for(n0).registerError(InvalidPublicKeyVersionException, InvalidPublicKeyVersionException$1);
|
|
531
|
+
var InvalidRegionException = [
|
|
532
|
+
-3,
|
|
533
|
+
n0,
|
|
534
|
+
_IRE,
|
|
535
|
+
{
|
|
536
|
+
[_e]: _c,
|
|
537
|
+
},
|
|
538
|
+
[_m],
|
|
539
|
+
[0],
|
|
540
|
+
];
|
|
541
|
+
schema.TypeRegistry.for(n0).registerError(InvalidRegionException, InvalidRegionException$1);
|
|
542
|
+
var InvalidTagException = [
|
|
543
|
+
-3,
|
|
544
|
+
n0,
|
|
545
|
+
_ITE,
|
|
546
|
+
{
|
|
547
|
+
[_e]: _c,
|
|
548
|
+
},
|
|
549
|
+
[_m],
|
|
550
|
+
[0],
|
|
551
|
+
];
|
|
552
|
+
schema.TypeRegistry.for(n0).registerError(InvalidTagException, InvalidTagException$1);
|
|
553
|
+
var InvalidTokenException = [
|
|
554
|
+
-3,
|
|
555
|
+
n0,
|
|
556
|
+
_ITEn,
|
|
557
|
+
{
|
|
558
|
+
[_e]: _c,
|
|
559
|
+
},
|
|
560
|
+
[_m],
|
|
561
|
+
[0],
|
|
562
|
+
];
|
|
563
|
+
schema.TypeRegistry.for(n0).registerError(InvalidTokenException, InvalidTokenException$1);
|
|
564
|
+
var InvalidUsageAllocationsException = [
|
|
565
|
+
-3,
|
|
566
|
+
n0,
|
|
567
|
+
_IUAE,
|
|
568
|
+
{
|
|
569
|
+
[_e]: _c,
|
|
570
|
+
},
|
|
571
|
+
[_m],
|
|
572
|
+
[0],
|
|
573
|
+
];
|
|
574
|
+
schema.TypeRegistry.for(n0).registerError(InvalidUsageAllocationsException, InvalidUsageAllocationsException$1);
|
|
575
|
+
var InvalidUsageDimensionException = [
|
|
576
|
+
-3,
|
|
577
|
+
n0,
|
|
578
|
+
_IUDE,
|
|
579
|
+
{
|
|
580
|
+
[_e]: _c,
|
|
581
|
+
},
|
|
582
|
+
[_m],
|
|
583
|
+
[0],
|
|
584
|
+
];
|
|
585
|
+
schema.TypeRegistry.for(n0).registerError(InvalidUsageDimensionException, InvalidUsageDimensionException$1);
|
|
586
|
+
var MeterUsageRequest = [
|
|
587
|
+
3,
|
|
588
|
+
n0,
|
|
589
|
+
_MUR,
|
|
590
|
+
0,
|
|
591
|
+
[_PC, _T, _UD, _UQ, _DR, _UA, _CT],
|
|
592
|
+
[0, 4, 0, 1, 2, () => UsageAllocations, [0, 4]],
|
|
593
|
+
];
|
|
594
|
+
var MeterUsageResult = [3, n0, _MURe, 0, [_MRI], [0]];
|
|
595
|
+
var PlatformNotSupportedException = [
|
|
596
|
+
-3,
|
|
597
|
+
n0,
|
|
598
|
+
_PNSE,
|
|
599
|
+
{
|
|
600
|
+
[_e]: _c,
|
|
601
|
+
},
|
|
602
|
+
[_m],
|
|
603
|
+
[0],
|
|
604
|
+
];
|
|
605
|
+
schema.TypeRegistry.for(n0).registerError(PlatformNotSupportedException, PlatformNotSupportedException$1);
|
|
606
|
+
var RegisterUsageRequest = [3, n0, _RUR, 0, [_PC, _PKV, _N], [0, 1, 0]];
|
|
607
|
+
var RegisterUsageResult = [3, n0, _RURe, 0, [_PKRT, _S], [4, 0]];
|
|
608
|
+
var ResolveCustomerRequest = [3, n0, _RCR, 0, [_RT], [0]];
|
|
609
|
+
var ResolveCustomerResult = [3, n0, _RCRe, 0, [_CI, _PC, _CAWSAI], [0, 0, 0]];
|
|
610
|
+
var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]];
|
|
611
|
+
var ThrottlingException = [
|
|
612
|
+
-3,
|
|
613
|
+
n0,
|
|
614
|
+
_TE,
|
|
615
|
+
{
|
|
616
|
+
[_e]: _c,
|
|
617
|
+
},
|
|
618
|
+
[_m],
|
|
619
|
+
[0],
|
|
620
|
+
];
|
|
621
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
622
|
+
var TimestampOutOfBoundsException = [
|
|
623
|
+
-3,
|
|
624
|
+
n0,
|
|
625
|
+
_TOOBE,
|
|
626
|
+
{
|
|
627
|
+
[_e]: _c,
|
|
628
|
+
},
|
|
629
|
+
[_m],
|
|
630
|
+
[0],
|
|
631
|
+
];
|
|
632
|
+
schema.TypeRegistry.for(n0).registerError(TimestampOutOfBoundsException, TimestampOutOfBoundsException$1);
|
|
633
|
+
var UsageAllocation = [3, n0, _UAs, 0, [_AUQ, _Tag], [1, () => TagList]];
|
|
634
|
+
var UsageRecord = [
|
|
635
|
+
3,
|
|
636
|
+
n0,
|
|
637
|
+
_URs,
|
|
638
|
+
0,
|
|
639
|
+
[_T, _CI, _D, _Q, _UA, _CAWSAI],
|
|
640
|
+
[4, 0, 0, 1, () => UsageAllocations, 0],
|
|
641
|
+
];
|
|
642
|
+
var UsageRecordResult = [3, n0, _URR, 0, [_URs, _MRI, _St], [() => UsageRecord, 0, 0]];
|
|
643
|
+
var MarketplaceMeteringServiceException = [
|
|
644
|
+
-3,
|
|
645
|
+
_sm,
|
|
646
|
+
"MarketplaceMeteringServiceException",
|
|
647
|
+
0,
|
|
648
|
+
[],
|
|
649
|
+
[],
|
|
650
|
+
];
|
|
651
|
+
schema.TypeRegistry.for(_sm).registerError(MarketplaceMeteringServiceException, MarketplaceMeteringServiceException$1);
|
|
652
|
+
var TagList = [1, n0, _TL, 0, () => Tag];
|
|
653
|
+
var UsageAllocations = [1, n0, _UA, 0, () => UsageAllocation];
|
|
654
|
+
var UsageRecordList = [1, n0, _URL, 0, () => UsageRecord];
|
|
655
|
+
var UsageRecordResultList = [1, n0, _URRL, 0, () => UsageRecordResult];
|
|
656
|
+
var BatchMeterUsage = [
|
|
657
|
+
9,
|
|
658
|
+
n0,
|
|
659
|
+
_BMU,
|
|
660
|
+
0,
|
|
661
|
+
() => BatchMeterUsageRequest,
|
|
662
|
+
() => BatchMeterUsageResult,
|
|
663
|
+
];
|
|
664
|
+
var MeterUsage = [9, n0, _MU, 0, () => MeterUsageRequest, () => MeterUsageResult];
|
|
665
|
+
var RegisterUsage = [
|
|
666
|
+
9,
|
|
667
|
+
n0,
|
|
668
|
+
_RU,
|
|
669
|
+
0,
|
|
670
|
+
() => RegisterUsageRequest,
|
|
671
|
+
() => RegisterUsageResult,
|
|
672
|
+
];
|
|
673
|
+
var ResolveCustomer = [
|
|
674
|
+
9,
|
|
675
|
+
n0,
|
|
676
|
+
_RC,
|
|
677
|
+
0,
|
|
678
|
+
() => ResolveCustomerRequest,
|
|
679
|
+
() => ResolveCustomerResult,
|
|
680
|
+
];
|
|
758
681
|
|
|
759
682
|
class BatchMeterUsageCommand extends smithyClient.Command
|
|
760
683
|
.classBuilder()
|
|
761
684
|
.ep(commonParams)
|
|
762
685
|
.m(function (Command, cs, config, o) {
|
|
763
|
-
return [
|
|
764
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
765
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
766
|
-
];
|
|
686
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
767
687
|
})
|
|
768
688
|
.s("AWSMPMeteringService", "BatchMeterUsage", {})
|
|
769
689
|
.n("MarketplaceMeteringClient", "BatchMeterUsageCommand")
|
|
770
|
-
.
|
|
771
|
-
.ser(se_BatchMeterUsageCommand)
|
|
772
|
-
.de(de_BatchMeterUsageCommand)
|
|
690
|
+
.sc(BatchMeterUsage)
|
|
773
691
|
.build() {
|
|
774
692
|
}
|
|
775
693
|
|
|
@@ -777,16 +695,11 @@ class MeterUsageCommand extends smithyClient.Command
|
|
|
777
695
|
.classBuilder()
|
|
778
696
|
.ep(commonParams)
|
|
779
697
|
.m(function (Command, cs, config, o) {
|
|
780
|
-
return [
|
|
781
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
782
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
783
|
-
];
|
|
698
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
784
699
|
})
|
|
785
700
|
.s("AWSMPMeteringService", "MeterUsage", {})
|
|
786
701
|
.n("MarketplaceMeteringClient", "MeterUsageCommand")
|
|
787
|
-
.
|
|
788
|
-
.ser(se_MeterUsageCommand)
|
|
789
|
-
.de(de_MeterUsageCommand)
|
|
702
|
+
.sc(MeterUsage)
|
|
790
703
|
.build() {
|
|
791
704
|
}
|
|
792
705
|
|
|
@@ -794,16 +707,11 @@ class RegisterUsageCommand extends smithyClient.Command
|
|
|
794
707
|
.classBuilder()
|
|
795
708
|
.ep(commonParams)
|
|
796
709
|
.m(function (Command, cs, config, o) {
|
|
797
|
-
return [
|
|
798
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
799
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
800
|
-
];
|
|
710
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
801
711
|
})
|
|
802
712
|
.s("AWSMPMeteringService", "RegisterUsage", {})
|
|
803
713
|
.n("MarketplaceMeteringClient", "RegisterUsageCommand")
|
|
804
|
-
.
|
|
805
|
-
.ser(se_RegisterUsageCommand)
|
|
806
|
-
.de(de_RegisterUsageCommand)
|
|
714
|
+
.sc(RegisterUsage)
|
|
807
715
|
.build() {
|
|
808
716
|
}
|
|
809
717
|
|
|
@@ -811,16 +719,11 @@ class ResolveCustomerCommand extends smithyClient.Command
|
|
|
811
719
|
.classBuilder()
|
|
812
720
|
.ep(commonParams)
|
|
813
721
|
.m(function (Command, cs, config, o) {
|
|
814
|
-
return [
|
|
815
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
816
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
817
|
-
];
|
|
722
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
818
723
|
})
|
|
819
724
|
.s("AWSMPMeteringService", "ResolveCustomer", {})
|
|
820
725
|
.n("MarketplaceMeteringClient", "ResolveCustomerCommand")
|
|
821
|
-
.
|
|
822
|
-
.ser(se_ResolveCustomerCommand)
|
|
823
|
-
.de(de_ResolveCustomerCommand)
|
|
726
|
+
.sc(ResolveCustomer)
|
|
824
727
|
.build() {
|
|
825
728
|
}
|
|
826
729
|
|
|
@@ -843,28 +746,28 @@ Object.defineProperty(exports, "__Client", {
|
|
|
843
746
|
get: function () { return smithyClient.Client; }
|
|
844
747
|
});
|
|
845
748
|
exports.BatchMeterUsageCommand = BatchMeterUsageCommand;
|
|
846
|
-
exports.CustomerNotEntitledException = CustomerNotEntitledException;
|
|
847
|
-
exports.DisabledApiException = DisabledApiException;
|
|
848
|
-
exports.DuplicateRequestException = DuplicateRequestException;
|
|
849
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
850
|
-
exports.IdempotencyConflictException = IdempotencyConflictException;
|
|
851
|
-
exports.InternalServiceErrorException = InternalServiceErrorException;
|
|
852
|
-
exports.InvalidCustomerIdentifierException = InvalidCustomerIdentifierException;
|
|
853
|
-
exports.InvalidEndpointRegionException = InvalidEndpointRegionException;
|
|
854
|
-
exports.InvalidProductCodeException = InvalidProductCodeException;
|
|
855
|
-
exports.InvalidPublicKeyVersionException = InvalidPublicKeyVersionException;
|
|
856
|
-
exports.InvalidRegionException = InvalidRegionException;
|
|
857
|
-
exports.InvalidTagException = InvalidTagException;
|
|
858
|
-
exports.InvalidTokenException = InvalidTokenException;
|
|
859
|
-
exports.InvalidUsageAllocationsException = InvalidUsageAllocationsException;
|
|
860
|
-
exports.InvalidUsageDimensionException = InvalidUsageDimensionException;
|
|
749
|
+
exports.CustomerNotEntitledException = CustomerNotEntitledException$1;
|
|
750
|
+
exports.DisabledApiException = DisabledApiException$1;
|
|
751
|
+
exports.DuplicateRequestException = DuplicateRequestException$1;
|
|
752
|
+
exports.ExpiredTokenException = ExpiredTokenException$1;
|
|
753
|
+
exports.IdempotencyConflictException = IdempotencyConflictException$1;
|
|
754
|
+
exports.InternalServiceErrorException = InternalServiceErrorException$1;
|
|
755
|
+
exports.InvalidCustomerIdentifierException = InvalidCustomerIdentifierException$1;
|
|
756
|
+
exports.InvalidEndpointRegionException = InvalidEndpointRegionException$1;
|
|
757
|
+
exports.InvalidProductCodeException = InvalidProductCodeException$1;
|
|
758
|
+
exports.InvalidPublicKeyVersionException = InvalidPublicKeyVersionException$1;
|
|
759
|
+
exports.InvalidRegionException = InvalidRegionException$1;
|
|
760
|
+
exports.InvalidTagException = InvalidTagException$1;
|
|
761
|
+
exports.InvalidTokenException = InvalidTokenException$1;
|
|
762
|
+
exports.InvalidUsageAllocationsException = InvalidUsageAllocationsException$1;
|
|
763
|
+
exports.InvalidUsageDimensionException = InvalidUsageDimensionException$1;
|
|
861
764
|
exports.MarketplaceMetering = MarketplaceMetering;
|
|
862
765
|
exports.MarketplaceMeteringClient = MarketplaceMeteringClient;
|
|
863
|
-
exports.MarketplaceMeteringServiceException = MarketplaceMeteringServiceException;
|
|
766
|
+
exports.MarketplaceMeteringServiceException = MarketplaceMeteringServiceException$1;
|
|
864
767
|
exports.MeterUsageCommand = MeterUsageCommand;
|
|
865
|
-
exports.PlatformNotSupportedException = PlatformNotSupportedException;
|
|
768
|
+
exports.PlatformNotSupportedException = PlatformNotSupportedException$1;
|
|
866
769
|
exports.RegisterUsageCommand = RegisterUsageCommand;
|
|
867
770
|
exports.ResolveCustomerCommand = ResolveCustomerCommand;
|
|
868
|
-
exports.ThrottlingException = ThrottlingException;
|
|
869
|
-
exports.TimestampOutOfBoundsException = TimestampOutOfBoundsException;
|
|
771
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
772
|
+
exports.TimestampOutOfBoundsException = TimestampOutOfBoundsException$1;
|
|
870
773
|
exports.UsageRecordResultStatus = UsageRecordResultStatus;
|