@aws-sdk/client-marketplace-metering 3.504.0 → 3.509.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 +42 -135
- package/dist-es/protocols/Aws_json1_1.js +39 -132
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -485,7 +485,7 @@ var se_ResolveCustomerCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
485
485
|
}, "se_ResolveCustomerCommand");
|
|
486
486
|
var de_BatchMeterUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
487
487
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
488
|
+
return de_CommandError(output, context);
|
|
489
489
|
}
|
|
490
490
|
const data = await parseBody(output.body, context);
|
|
491
491
|
let contents = {};
|
|
@@ -496,52 +496,9 @@ var de_BatchMeterUsageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
496
496
|
};
|
|
497
497
|
return response;
|
|
498
498
|
}, "de_BatchMeterUsageCommand");
|
|
499
|
-
var de_BatchMeterUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
500
|
-
const parsedOutput = {
|
|
501
|
-
...output,
|
|
502
|
-
body: await parseErrorBody(output.body, context)
|
|
503
|
-
};
|
|
504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
-
switch (errorCode) {
|
|
506
|
-
case "DisabledApiException":
|
|
507
|
-
case "com.amazonaws.marketplacemetering#DisabledApiException":
|
|
508
|
-
throw await de_DisabledApiExceptionRes(parsedOutput, context);
|
|
509
|
-
case "InternalServiceErrorException":
|
|
510
|
-
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
511
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
512
|
-
case "InvalidCustomerIdentifierException":
|
|
513
|
-
case "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException":
|
|
514
|
-
throw await de_InvalidCustomerIdentifierExceptionRes(parsedOutput, context);
|
|
515
|
-
case "InvalidProductCodeException":
|
|
516
|
-
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
517
|
-
throw await de_InvalidProductCodeExceptionRes(parsedOutput, context);
|
|
518
|
-
case "InvalidTagException":
|
|
519
|
-
case "com.amazonaws.marketplacemetering#InvalidTagException":
|
|
520
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
521
|
-
case "InvalidUsageAllocationsException":
|
|
522
|
-
case "com.amazonaws.marketplacemetering#InvalidUsageAllocationsException":
|
|
523
|
-
throw await de_InvalidUsageAllocationsExceptionRes(parsedOutput, context);
|
|
524
|
-
case "InvalidUsageDimensionException":
|
|
525
|
-
case "com.amazonaws.marketplacemetering#InvalidUsageDimensionException":
|
|
526
|
-
throw await de_InvalidUsageDimensionExceptionRes(parsedOutput, context);
|
|
527
|
-
case "ThrottlingException":
|
|
528
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
529
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
530
|
-
case "TimestampOutOfBoundsException":
|
|
531
|
-
case "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException":
|
|
532
|
-
throw await de_TimestampOutOfBoundsExceptionRes(parsedOutput, context);
|
|
533
|
-
default:
|
|
534
|
-
const parsedBody = parsedOutput.body;
|
|
535
|
-
return throwDefaultError({
|
|
536
|
-
output,
|
|
537
|
-
parsedBody,
|
|
538
|
-
errorCode
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
}, "de_BatchMeterUsageCommandError");
|
|
542
499
|
var de_MeterUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
543
500
|
if (output.statusCode >= 300) {
|
|
544
|
-
return
|
|
501
|
+
return de_CommandError(output, context);
|
|
545
502
|
}
|
|
546
503
|
const data = await parseBody(output.body, context);
|
|
547
504
|
let contents = {};
|
|
@@ -552,25 +509,48 @@ var de_MeterUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
552
509
|
};
|
|
553
510
|
return response;
|
|
554
511
|
}, "de_MeterUsageCommand");
|
|
555
|
-
var
|
|
512
|
+
var de_RegisterUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
513
|
+
if (output.statusCode >= 300) {
|
|
514
|
+
return de_CommandError(output, context);
|
|
515
|
+
}
|
|
516
|
+
const data = await parseBody(output.body, context);
|
|
517
|
+
let contents = {};
|
|
518
|
+
contents = de_RegisterUsageResult(data, context);
|
|
519
|
+
const response = {
|
|
520
|
+
$metadata: deserializeMetadata(output),
|
|
521
|
+
...contents
|
|
522
|
+
};
|
|
523
|
+
return response;
|
|
524
|
+
}, "de_RegisterUsageCommand");
|
|
525
|
+
var de_ResolveCustomerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
526
|
+
if (output.statusCode >= 300) {
|
|
527
|
+
return de_CommandError(output, context);
|
|
528
|
+
}
|
|
529
|
+
const data = await parseBody(output.body, context);
|
|
530
|
+
let contents = {};
|
|
531
|
+
contents = (0, import_smithy_client._json)(data);
|
|
532
|
+
const response = {
|
|
533
|
+
$metadata: deserializeMetadata(output),
|
|
534
|
+
...contents
|
|
535
|
+
};
|
|
536
|
+
return response;
|
|
537
|
+
}, "de_ResolveCustomerCommand");
|
|
538
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
556
539
|
const parsedOutput = {
|
|
557
540
|
...output,
|
|
558
541
|
body: await parseErrorBody(output.body, context)
|
|
559
542
|
};
|
|
560
543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
544
|
switch (errorCode) {
|
|
562
|
-
case "
|
|
563
|
-
case "com.amazonaws.marketplacemetering#
|
|
564
|
-
throw await
|
|
565
|
-
case "DuplicateRequestException":
|
|
566
|
-
case "com.amazonaws.marketplacemetering#DuplicateRequestException":
|
|
567
|
-
throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
|
|
545
|
+
case "DisabledApiException":
|
|
546
|
+
case "com.amazonaws.marketplacemetering#DisabledApiException":
|
|
547
|
+
throw await de_DisabledApiExceptionRes(parsedOutput, context);
|
|
568
548
|
case "InternalServiceErrorException":
|
|
569
549
|
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
570
550
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
571
|
-
case "
|
|
572
|
-
case "com.amazonaws.marketplacemetering#
|
|
573
|
-
throw await
|
|
551
|
+
case "InvalidCustomerIdentifierException":
|
|
552
|
+
case "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException":
|
|
553
|
+
throw await de_InvalidCustomerIdentifierExceptionRes(parsedOutput, context);
|
|
574
554
|
case "InvalidProductCodeException":
|
|
575
555
|
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
576
556
|
throw await de_InvalidProductCodeExceptionRes(parsedOutput, context);
|
|
@@ -589,47 +569,15 @@ var de_MeterUsageCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
589
569
|
case "TimestampOutOfBoundsException":
|
|
590
570
|
case "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException":
|
|
591
571
|
throw await de_TimestampOutOfBoundsExceptionRes(parsedOutput, context);
|
|
592
|
-
default:
|
|
593
|
-
const parsedBody = parsedOutput.body;
|
|
594
|
-
return throwDefaultError({
|
|
595
|
-
output,
|
|
596
|
-
parsedBody,
|
|
597
|
-
errorCode
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
}, "de_MeterUsageCommandError");
|
|
601
|
-
var de_RegisterUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
602
|
-
if (output.statusCode >= 300) {
|
|
603
|
-
return de_RegisterUsageCommandError(output, context);
|
|
604
|
-
}
|
|
605
|
-
const data = await parseBody(output.body, context);
|
|
606
|
-
let contents = {};
|
|
607
|
-
contents = de_RegisterUsageResult(data, context);
|
|
608
|
-
const response = {
|
|
609
|
-
$metadata: deserializeMetadata(output),
|
|
610
|
-
...contents
|
|
611
|
-
};
|
|
612
|
-
return response;
|
|
613
|
-
}, "de_RegisterUsageCommand");
|
|
614
|
-
var de_RegisterUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
615
|
-
const parsedOutput = {
|
|
616
|
-
...output,
|
|
617
|
-
body: await parseErrorBody(output.body, context)
|
|
618
|
-
};
|
|
619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
|
-
switch (errorCode) {
|
|
621
572
|
case "CustomerNotEntitledException":
|
|
622
573
|
case "com.amazonaws.marketplacemetering#CustomerNotEntitledException":
|
|
623
574
|
throw await de_CustomerNotEntitledExceptionRes(parsedOutput, context);
|
|
624
|
-
case "
|
|
625
|
-
case "com.amazonaws.marketplacemetering#
|
|
626
|
-
throw await
|
|
627
|
-
case "
|
|
628
|
-
case "com.amazonaws.marketplacemetering#
|
|
629
|
-
throw await
|
|
630
|
-
case "InvalidProductCodeException":
|
|
631
|
-
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
632
|
-
throw await de_InvalidProductCodeExceptionRes(parsedOutput, context);
|
|
575
|
+
case "DuplicateRequestException":
|
|
576
|
+
case "com.amazonaws.marketplacemetering#DuplicateRequestException":
|
|
577
|
+
throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
|
|
578
|
+
case "InvalidEndpointRegionException":
|
|
579
|
+
case "com.amazonaws.marketplacemetering#InvalidEndpointRegionException":
|
|
580
|
+
throw await de_InvalidEndpointRegionExceptionRes(parsedOutput, context);
|
|
633
581
|
case "InvalidPublicKeyVersionException":
|
|
634
582
|
case "com.amazonaws.marketplacemetering#InvalidPublicKeyVersionException":
|
|
635
583
|
throw await de_InvalidPublicKeyVersionExceptionRes(parsedOutput, context);
|
|
@@ -639,53 +587,12 @@ var de_RegisterUsageCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
639
587
|
case "PlatformNotSupportedException":
|
|
640
588
|
case "com.amazonaws.marketplacemetering#PlatformNotSupportedException":
|
|
641
589
|
throw await de_PlatformNotSupportedExceptionRes(parsedOutput, context);
|
|
642
|
-
case "ThrottlingException":
|
|
643
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
644
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
645
|
-
default:
|
|
646
|
-
const parsedBody = parsedOutput.body;
|
|
647
|
-
return throwDefaultError({
|
|
648
|
-
output,
|
|
649
|
-
parsedBody,
|
|
650
|
-
errorCode
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
}, "de_RegisterUsageCommandError");
|
|
654
|
-
var de_ResolveCustomerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_ResolveCustomerCommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await parseBody(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = (0, import_smithy_client._json)(data);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
}, "de_ResolveCustomerCommand");
|
|
667
|
-
var de_ResolveCustomerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
-
const parsedOutput = {
|
|
669
|
-
...output,
|
|
670
|
-
body: await parseErrorBody(output.body, context)
|
|
671
|
-
};
|
|
672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
-
switch (errorCode) {
|
|
674
|
-
case "DisabledApiException":
|
|
675
|
-
case "com.amazonaws.marketplacemetering#DisabledApiException":
|
|
676
|
-
throw await de_DisabledApiExceptionRes(parsedOutput, context);
|
|
677
590
|
case "ExpiredTokenException":
|
|
678
591
|
case "com.amazonaws.marketplacemetering#ExpiredTokenException":
|
|
679
592
|
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
680
|
-
case "InternalServiceErrorException":
|
|
681
|
-
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
682
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
683
593
|
case "InvalidTokenException":
|
|
684
594
|
case "com.amazonaws.marketplacemetering#InvalidTokenException":
|
|
685
595
|
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
686
|
-
case "ThrottlingException":
|
|
687
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
688
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
689
596
|
default:
|
|
690
597
|
const parsedBody = parsedOutput.body;
|
|
691
598
|
return throwDefaultError({
|
|
@@ -694,7 +601,7 @@ var de_ResolveCustomerCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
694
601
|
errorCode
|
|
695
602
|
});
|
|
696
603
|
}
|
|
697
|
-
}, "
|
|
604
|
+
}, "de_CommandError");
|
|
698
605
|
var de_CustomerNotEntitledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
699
606
|
const body = parsedOutput.body;
|
|
700
607
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -28,7 +28,7 @@ export const se_ResolveCustomerCommand = async (input, context) => {
|
|
|
28
28
|
};
|
|
29
29
|
export const de_BatchMeterUsageCommand = async (output, context) => {
|
|
30
30
|
if (output.statusCode >= 300) {
|
|
31
|
-
return
|
|
31
|
+
return de_CommandError(output, context);
|
|
32
32
|
}
|
|
33
33
|
const data = await parseBody(output.body, context);
|
|
34
34
|
let contents = {};
|
|
@@ -39,52 +39,35 @@ export const de_BatchMeterUsageCommand = async (output, context) => {
|
|
|
39
39
|
};
|
|
40
40
|
return response;
|
|
41
41
|
};
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
export const de_MeterUsageCommand = async (output, context) => {
|
|
43
|
+
if (output.statusCode >= 300) {
|
|
44
|
+
return de_CommandError(output, context);
|
|
45
|
+
}
|
|
46
|
+
const data = await parseBody(output.body, context);
|
|
47
|
+
let contents = {};
|
|
48
|
+
contents = _json(data);
|
|
49
|
+
const response = {
|
|
50
|
+
$metadata: deserializeMetadata(output),
|
|
51
|
+
...contents,
|
|
46
52
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
case "InternalServiceErrorException":
|
|
53
|
-
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
54
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
55
|
-
case "InvalidCustomerIdentifierException":
|
|
56
|
-
case "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException":
|
|
57
|
-
throw await de_InvalidCustomerIdentifierExceptionRes(parsedOutput, context);
|
|
58
|
-
case "InvalidProductCodeException":
|
|
59
|
-
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
60
|
-
throw await de_InvalidProductCodeExceptionRes(parsedOutput, context);
|
|
61
|
-
case "InvalidTagException":
|
|
62
|
-
case "com.amazonaws.marketplacemetering#InvalidTagException":
|
|
63
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
64
|
-
case "InvalidUsageAllocationsException":
|
|
65
|
-
case "com.amazonaws.marketplacemetering#InvalidUsageAllocationsException":
|
|
66
|
-
throw await de_InvalidUsageAllocationsExceptionRes(parsedOutput, context);
|
|
67
|
-
case "InvalidUsageDimensionException":
|
|
68
|
-
case "com.amazonaws.marketplacemetering#InvalidUsageDimensionException":
|
|
69
|
-
throw await de_InvalidUsageDimensionExceptionRes(parsedOutput, context);
|
|
70
|
-
case "ThrottlingException":
|
|
71
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
72
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
73
|
-
case "TimestampOutOfBoundsException":
|
|
74
|
-
case "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException":
|
|
75
|
-
throw await de_TimestampOutOfBoundsExceptionRes(parsedOutput, context);
|
|
76
|
-
default:
|
|
77
|
-
const parsedBody = parsedOutput.body;
|
|
78
|
-
return throwDefaultError({
|
|
79
|
-
output,
|
|
80
|
-
parsedBody,
|
|
81
|
-
errorCode,
|
|
82
|
-
});
|
|
53
|
+
return response;
|
|
54
|
+
};
|
|
55
|
+
export const de_RegisterUsageCommand = async (output, context) => {
|
|
56
|
+
if (output.statusCode >= 300) {
|
|
57
|
+
return de_CommandError(output, context);
|
|
83
58
|
}
|
|
59
|
+
const data = await parseBody(output.body, context);
|
|
60
|
+
let contents = {};
|
|
61
|
+
contents = de_RegisterUsageResult(data, context);
|
|
62
|
+
const response = {
|
|
63
|
+
$metadata: deserializeMetadata(output),
|
|
64
|
+
...contents,
|
|
65
|
+
};
|
|
66
|
+
return response;
|
|
84
67
|
};
|
|
85
|
-
export const
|
|
68
|
+
export const de_ResolveCustomerCommand = async (output, context) => {
|
|
86
69
|
if (output.statusCode >= 300) {
|
|
87
|
-
return
|
|
70
|
+
return de_CommandError(output, context);
|
|
88
71
|
}
|
|
89
72
|
const data = await parseBody(output.body, context);
|
|
90
73
|
let contents = {};
|
|
@@ -95,25 +78,22 @@ export const de_MeterUsageCommand = async (output, context) => {
|
|
|
95
78
|
};
|
|
96
79
|
return response;
|
|
97
80
|
};
|
|
98
|
-
const
|
|
81
|
+
const de_CommandError = async (output, context) => {
|
|
99
82
|
const parsedOutput = {
|
|
100
83
|
...output,
|
|
101
84
|
body: await parseErrorBody(output.body, context),
|
|
102
85
|
};
|
|
103
86
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
104
87
|
switch (errorCode) {
|
|
105
|
-
case "
|
|
106
|
-
case "com.amazonaws.marketplacemetering#
|
|
107
|
-
throw await
|
|
108
|
-
case "DuplicateRequestException":
|
|
109
|
-
case "com.amazonaws.marketplacemetering#DuplicateRequestException":
|
|
110
|
-
throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
|
|
88
|
+
case "DisabledApiException":
|
|
89
|
+
case "com.amazonaws.marketplacemetering#DisabledApiException":
|
|
90
|
+
throw await de_DisabledApiExceptionRes(parsedOutput, context);
|
|
111
91
|
case "InternalServiceErrorException":
|
|
112
92
|
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
113
93
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
114
|
-
case "
|
|
115
|
-
case "com.amazonaws.marketplacemetering#
|
|
116
|
-
throw await
|
|
94
|
+
case "InvalidCustomerIdentifierException":
|
|
95
|
+
case "com.amazonaws.marketplacemetering#InvalidCustomerIdentifierException":
|
|
96
|
+
throw await de_InvalidCustomerIdentifierExceptionRes(parsedOutput, context);
|
|
117
97
|
case "InvalidProductCodeException":
|
|
118
98
|
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
119
99
|
throw await de_InvalidProductCodeExceptionRes(parsedOutput, context);
|
|
@@ -132,47 +112,15 @@ const de_MeterUsageCommandError = async (output, context) => {
|
|
|
132
112
|
case "TimestampOutOfBoundsException":
|
|
133
113
|
case "com.amazonaws.marketplacemetering#TimestampOutOfBoundsException":
|
|
134
114
|
throw await de_TimestampOutOfBoundsExceptionRes(parsedOutput, context);
|
|
135
|
-
default:
|
|
136
|
-
const parsedBody = parsedOutput.body;
|
|
137
|
-
return throwDefaultError({
|
|
138
|
-
output,
|
|
139
|
-
parsedBody,
|
|
140
|
-
errorCode,
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
export const de_RegisterUsageCommand = async (output, context) => {
|
|
145
|
-
if (output.statusCode >= 300) {
|
|
146
|
-
return de_RegisterUsageCommandError(output, context);
|
|
147
|
-
}
|
|
148
|
-
const data = await parseBody(output.body, context);
|
|
149
|
-
let contents = {};
|
|
150
|
-
contents = de_RegisterUsageResult(data, context);
|
|
151
|
-
const response = {
|
|
152
|
-
$metadata: deserializeMetadata(output),
|
|
153
|
-
...contents,
|
|
154
|
-
};
|
|
155
|
-
return response;
|
|
156
|
-
};
|
|
157
|
-
const de_RegisterUsageCommandError = async (output, context) => {
|
|
158
|
-
const parsedOutput = {
|
|
159
|
-
...output,
|
|
160
|
-
body: await parseErrorBody(output.body, context),
|
|
161
|
-
};
|
|
162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
163
|
-
switch (errorCode) {
|
|
164
115
|
case "CustomerNotEntitledException":
|
|
165
116
|
case "com.amazonaws.marketplacemetering#CustomerNotEntitledException":
|
|
166
117
|
throw await de_CustomerNotEntitledExceptionRes(parsedOutput, context);
|
|
167
|
-
case "
|
|
168
|
-
case "com.amazonaws.marketplacemetering#
|
|
169
|
-
throw await
|
|
170
|
-
case "
|
|
171
|
-
case "com.amazonaws.marketplacemetering#
|
|
172
|
-
throw await
|
|
173
|
-
case "InvalidProductCodeException":
|
|
174
|
-
case "com.amazonaws.marketplacemetering#InvalidProductCodeException":
|
|
175
|
-
throw await de_InvalidProductCodeExceptionRes(parsedOutput, context);
|
|
118
|
+
case "DuplicateRequestException":
|
|
119
|
+
case "com.amazonaws.marketplacemetering#DuplicateRequestException":
|
|
120
|
+
throw await de_DuplicateRequestExceptionRes(parsedOutput, context);
|
|
121
|
+
case "InvalidEndpointRegionException":
|
|
122
|
+
case "com.amazonaws.marketplacemetering#InvalidEndpointRegionException":
|
|
123
|
+
throw await de_InvalidEndpointRegionExceptionRes(parsedOutput, context);
|
|
176
124
|
case "InvalidPublicKeyVersionException":
|
|
177
125
|
case "com.amazonaws.marketplacemetering#InvalidPublicKeyVersionException":
|
|
178
126
|
throw await de_InvalidPublicKeyVersionExceptionRes(parsedOutput, context);
|
|
@@ -182,53 +130,12 @@ const de_RegisterUsageCommandError = async (output, context) => {
|
|
|
182
130
|
case "PlatformNotSupportedException":
|
|
183
131
|
case "com.amazonaws.marketplacemetering#PlatformNotSupportedException":
|
|
184
132
|
throw await de_PlatformNotSupportedExceptionRes(parsedOutput, context);
|
|
185
|
-
case "ThrottlingException":
|
|
186
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
187
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
188
|
-
default:
|
|
189
|
-
const parsedBody = parsedOutput.body;
|
|
190
|
-
return throwDefaultError({
|
|
191
|
-
output,
|
|
192
|
-
parsedBody,
|
|
193
|
-
errorCode,
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
export const de_ResolveCustomerCommand = async (output, context) => {
|
|
198
|
-
if (output.statusCode >= 300) {
|
|
199
|
-
return de_ResolveCustomerCommandError(output, context);
|
|
200
|
-
}
|
|
201
|
-
const data = await parseBody(output.body, context);
|
|
202
|
-
let contents = {};
|
|
203
|
-
contents = _json(data);
|
|
204
|
-
const response = {
|
|
205
|
-
$metadata: deserializeMetadata(output),
|
|
206
|
-
...contents,
|
|
207
|
-
};
|
|
208
|
-
return response;
|
|
209
|
-
};
|
|
210
|
-
const de_ResolveCustomerCommandError = async (output, context) => {
|
|
211
|
-
const parsedOutput = {
|
|
212
|
-
...output,
|
|
213
|
-
body: await parseErrorBody(output.body, context),
|
|
214
|
-
};
|
|
215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
216
|
-
switch (errorCode) {
|
|
217
|
-
case "DisabledApiException":
|
|
218
|
-
case "com.amazonaws.marketplacemetering#DisabledApiException":
|
|
219
|
-
throw await de_DisabledApiExceptionRes(parsedOutput, context);
|
|
220
133
|
case "ExpiredTokenException":
|
|
221
134
|
case "com.amazonaws.marketplacemetering#ExpiredTokenException":
|
|
222
135
|
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
223
|
-
case "InternalServiceErrorException":
|
|
224
|
-
case "com.amazonaws.marketplacemetering#InternalServiceErrorException":
|
|
225
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
226
136
|
case "InvalidTokenException":
|
|
227
137
|
case "com.amazonaws.marketplacemetering#InvalidTokenException":
|
|
228
138
|
throw await de_InvalidTokenExceptionRes(parsedOutput, context);
|
|
229
|
-
case "ThrottlingException":
|
|
230
|
-
case "com.amazonaws.marketplacemetering#ThrottlingException":
|
|
231
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
232
139
|
default:
|
|
233
140
|
const parsedBody = parsedOutput.body;
|
|
234
141
|
return throwDefaultError({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-metering",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Metering Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-metering",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|