@aws-sdk/client-marketplace-metering 3.1166.0 → 3.1167.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 +10 -7
- package/dist-es/schemas/schemas_0.js +9 -6
- package/dist-types/commands/BatchMeterUsageCommand.d.ts +14 -4
- package/dist-types/commands/MeterUsageCommand.d.ts +11 -3
- package/dist-types/models/errors.d.ts +6 -2
- package/dist-types/models/models_0.d.ts +73 -11
- package/dist-types/ts3.4/models/models_0.d.ts +4 -1
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1166.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -399,6 +399,7 @@ class InvalidTokenException extends MarketplaceMeteringServiceException {
|
|
|
399
399
|
|
|
400
400
|
const _AI = "AgreementId";
|
|
401
401
|
const _AUQ = "AllocatedUsageQuantity";
|
|
402
|
+
const _AUQAD = "AllocatedUsageQuantityAsDecimal";
|
|
402
403
|
const _BMU = "BatchMeterUsage";
|
|
403
404
|
const _BMUR = "BatchMeterUsageRequest";
|
|
404
405
|
const _BMURa = "BatchMeterUsageResult";
|
|
@@ -436,6 +437,7 @@ const _PKRT = "PublicKeyRotationTimestamp";
|
|
|
436
437
|
const _PKV = "PublicKeyVersion";
|
|
437
438
|
const _PNSE = "PlatformNotSupportedException";
|
|
438
439
|
const _Q = "Quantity";
|
|
440
|
+
const _QAD = "QuantityAsDecimal";
|
|
439
441
|
const _R = "Results";
|
|
440
442
|
const _RC = "ResolveCustomer";
|
|
441
443
|
const _RCR = "ResolveCustomerRequest";
|
|
@@ -456,6 +458,7 @@ const _UA = "UsageAllocations";
|
|
|
456
458
|
const _UAs = "UsageAllocation";
|
|
457
459
|
const _UD = "UsageDimension";
|
|
458
460
|
const _UQ = "UsageQuantity";
|
|
461
|
+
const _UQAD = "UsageQuantityAsDecimal";
|
|
459
462
|
const _UR = "UsageRecords";
|
|
460
463
|
const _URL = "UsageRecordList";
|
|
461
464
|
const _URR = "UsageRecordResult";
|
|
@@ -609,8 +612,8 @@ var Metadata$ = [3, n0, _M,
|
|
|
609
612
|
];
|
|
610
613
|
var MeterUsageRequest$ = [3, n0, _MUR,
|
|
611
614
|
0,
|
|
612
|
-
[_PC, _T, _UD, _UQ, _DR, _UA, _CT],
|
|
613
|
-
[0, 4, 0, 1, 2, () => UsageAllocations, [0, 4]], 3
|
|
615
|
+
[_PC, _T, _UD, _UQ, _UQAD, _DR, _UA, _CT],
|
|
616
|
+
[0, 4, 0, 1, 0, 2, () => UsageAllocations, [0, 4]], 3
|
|
614
617
|
];
|
|
615
618
|
var MeterUsageResult$ = [3, n0, _MURe,
|
|
616
619
|
0,
|
|
@@ -644,13 +647,13 @@ var Tag$ = [3, n0, _Ta,
|
|
|
644
647
|
];
|
|
645
648
|
var UsageAllocation$ = [3, n0, _UAs,
|
|
646
649
|
0,
|
|
647
|
-
[_AUQ, _Tag],
|
|
648
|
-
[1, () => TagList]
|
|
650
|
+
[_AUQ, _AUQAD, _Tag],
|
|
651
|
+
[1, 0, () => TagList]
|
|
649
652
|
];
|
|
650
653
|
var UsageRecord$ = [3, n0, _URs,
|
|
651
654
|
0,
|
|
652
|
-
[_T, _D, _CI, _Q, _UA, _CAWSAI, _LA],
|
|
653
|
-
[4, 0, 0, 1, () => UsageAllocations, 0, 0], 2
|
|
655
|
+
[_T, _D, _CI, _Q, _QAD, _UA, _CAWSAI, _LA],
|
|
656
|
+
[4, 0, 0, 1, 0, () => UsageAllocations, 0, 0], 2
|
|
654
657
|
];
|
|
655
658
|
var UsageRecordResult$ = [3, n0, _URR,
|
|
656
659
|
0,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const _AI = "AgreementId";
|
|
2
2
|
const _AUQ = "AllocatedUsageQuantity";
|
|
3
|
+
const _AUQAD = "AllocatedUsageQuantityAsDecimal";
|
|
3
4
|
const _BMU = "BatchMeterUsage";
|
|
4
5
|
const _BMUR = "BatchMeterUsageRequest";
|
|
5
6
|
const _BMURa = "BatchMeterUsageResult";
|
|
@@ -37,6 +38,7 @@ const _PKRT = "PublicKeyRotationTimestamp";
|
|
|
37
38
|
const _PKV = "PublicKeyVersion";
|
|
38
39
|
const _PNSE = "PlatformNotSupportedException";
|
|
39
40
|
const _Q = "Quantity";
|
|
41
|
+
const _QAD = "QuantityAsDecimal";
|
|
40
42
|
const _R = "Results";
|
|
41
43
|
const _RC = "ResolveCustomer";
|
|
42
44
|
const _RCR = "ResolveCustomerRequest";
|
|
@@ -57,6 +59,7 @@ const _UA = "UsageAllocations";
|
|
|
57
59
|
const _UAs = "UsageAllocation";
|
|
58
60
|
const _UD = "UsageDimension";
|
|
59
61
|
const _UQ = "UsageQuantity";
|
|
62
|
+
const _UQAD = "UsageQuantityAsDecimal";
|
|
60
63
|
const _UR = "UsageRecords";
|
|
61
64
|
const _URL = "UsageRecordList";
|
|
62
65
|
const _URR = "UsageRecordResult";
|
|
@@ -213,8 +216,8 @@ export var Metadata$ = [3, n0, _M,
|
|
|
213
216
|
];
|
|
214
217
|
export var MeterUsageRequest$ = [3, n0, _MUR,
|
|
215
218
|
0,
|
|
216
|
-
[_PC, _T, _UD, _UQ, _DR, _UA, _CT],
|
|
217
|
-
[0, 4, 0, 1, 2, () => UsageAllocations, [0, 4]], 3
|
|
219
|
+
[_PC, _T, _UD, _UQ, _UQAD, _DR, _UA, _CT],
|
|
220
|
+
[0, 4, 0, 1, 0, 2, () => UsageAllocations, [0, 4]], 3
|
|
218
221
|
];
|
|
219
222
|
export var MeterUsageResult$ = [3, n0, _MURe,
|
|
220
223
|
0,
|
|
@@ -248,13 +251,13 @@ export var Tag$ = [3, n0, _Ta,
|
|
|
248
251
|
];
|
|
249
252
|
export var UsageAllocation$ = [3, n0, _UAs,
|
|
250
253
|
0,
|
|
251
|
-
[_AUQ, _Tag],
|
|
252
|
-
[1, () => TagList]
|
|
254
|
+
[_AUQ, _AUQAD, _Tag],
|
|
255
|
+
[1, 0, () => TagList]
|
|
253
256
|
];
|
|
254
257
|
export var UsageRecord$ = [3, n0, _URs,
|
|
255
258
|
0,
|
|
256
|
-
[_T, _D, _CI, _Q, _UA, _CAWSAI, _LA],
|
|
257
|
-
[4, 0, 0, 1, () => UsageAllocations, 0, 0], 2
|
|
259
|
+
[_T, _D, _CI, _Q, _QAD, _UA, _CAWSAI, _LA],
|
|
260
|
+
[4, 0, 0, 1, 0, () => UsageAllocations, 0, 0], 2
|
|
258
261
|
];
|
|
259
262
|
export var UsageRecordResult$ = [3, n0, _URR,
|
|
260
263
|
0,
|
|
@@ -66,6 +66,8 @@ declare const BatchMeterUsageCommand_base: {
|
|
|
66
66
|
* their usage of your product so they can perform cost allocation in the Amazon Web Services Billing and
|
|
67
67
|
* Cost Management console. For more information, see <a href="https://docs.aws.amazon.com/marketplace/latest/userguide/metering-for-usage.html#saas-vendor-metered-tagging">Vendor-metered tagging</a> and <a href="https://docs.aws.amazon.com/marketplace/latest/userguide/saas-code-examples.html#saas-batchmeterusage-tagging">BatchMeterUsage with usage allocation tagging code example</a> in the
|
|
68
68
|
* <i>Amazon Web Services Marketplace Seller Guide</i>.</p>
|
|
69
|
+
* <p>To report fractional usage, use <code>QuantityAsDecimal</code> instead of
|
|
70
|
+
* <code>Quantity</code> in each <code>UsageRecord</code>.</p>
|
|
69
71
|
* <p>
|
|
70
72
|
* <code>BatchMeterUsage</code> returns a list of
|
|
71
73
|
* <code>UsageRecordResult</code> objects, which have each
|
|
@@ -93,9 +95,11 @@ declare const BatchMeterUsageCommand_base: {
|
|
|
93
95
|
* CustomerIdentifier: "STRING_VALUE",
|
|
94
96
|
* Dimension: "STRING_VALUE", // required
|
|
95
97
|
* Quantity: Number("int"),
|
|
98
|
+
* QuantityAsDecimal: "STRING_VALUE",
|
|
96
99
|
* UsageAllocations: [ // UsageAllocations
|
|
97
100
|
* { // UsageAllocation
|
|
98
|
-
* AllocatedUsageQuantity: Number("int"),
|
|
101
|
+
* AllocatedUsageQuantity: Number("int"),
|
|
102
|
+
* AllocatedUsageQuantityAsDecimal: "STRING_VALUE",
|
|
99
103
|
* Tags: [ // TagList
|
|
100
104
|
* { // Tag
|
|
101
105
|
* Key: "STRING_VALUE", // required
|
|
@@ -120,9 +124,11 @@ declare const BatchMeterUsageCommand_base: {
|
|
|
120
124
|
* // CustomerIdentifier: "STRING_VALUE",
|
|
121
125
|
* // Dimension: "STRING_VALUE", // required
|
|
122
126
|
* // Quantity: Number("int"),
|
|
127
|
+
* // QuantityAsDecimal: "STRING_VALUE",
|
|
123
128
|
* // UsageAllocations: [ // UsageAllocations
|
|
124
129
|
* // { // UsageAllocation
|
|
125
|
-
* // AllocatedUsageQuantity: Number("int"),
|
|
130
|
+
* // AllocatedUsageQuantity: Number("int"),
|
|
131
|
+
* // AllocatedUsageQuantityAsDecimal: "STRING_VALUE",
|
|
126
132
|
* // Tags: [ // TagList
|
|
127
133
|
* // { // Tag
|
|
128
134
|
* // Key: "STRING_VALUE", // required
|
|
@@ -144,9 +150,11 @@ declare const BatchMeterUsageCommand_base: {
|
|
|
144
150
|
* // CustomerIdentifier: "STRING_VALUE",
|
|
145
151
|
* // Dimension: "STRING_VALUE", // required
|
|
146
152
|
* // Quantity: Number("int"),
|
|
153
|
+
* // QuantityAsDecimal: "STRING_VALUE",
|
|
147
154
|
* // UsageAllocations: [
|
|
148
155
|
* // {
|
|
149
|
-
* // AllocatedUsageQuantity: Number("int"),
|
|
156
|
+
* // AllocatedUsageQuantity: Number("int"),
|
|
157
|
+
* // AllocatedUsageQuantityAsDecimal: "STRING_VALUE",
|
|
150
158
|
* // Tags: [
|
|
151
159
|
* // {
|
|
152
160
|
* // Key: "STRING_VALUE", // required
|
|
@@ -191,7 +199,9 @@ declare const BatchMeterUsageCommand_base: {
|
|
|
191
199
|
* <p>The tag is invalid, or the number of tags is greater than 5.</p>
|
|
192
200
|
*
|
|
193
201
|
* @throws {@link InvalidUsageAllocationsException} (client fault)
|
|
194
|
-
* <p>Sum of allocated usage quantities is not equal to the usage quantity
|
|
202
|
+
* <p>Sum of allocated usage quantities is not equal to the usage quantity, or the
|
|
203
|
+
* allocations don't use the same type of quantity (whole number or decimal) as the usage
|
|
204
|
+
* quantity.</p>
|
|
195
205
|
*
|
|
196
206
|
* @throws {@link InvalidUsageDimensionException} (client fault)
|
|
197
207
|
* <p>The usage dimension does not match one of the <code>UsageDimensions</code> associated
|
|
@@ -67,6 +67,8 @@ declare const MeterUsageCommand_base: {
|
|
|
67
67
|
* </li>
|
|
68
68
|
* </ul>
|
|
69
69
|
* <p>If you submit records more than six hours after events occur, the records won't be accepted. The timestamp in your request determines when an event is recorded.</p>
|
|
70
|
+
* <p>To report fractional usage, use <code>UsageQuantityAsDecimal</code> instead of
|
|
71
|
+
* <code>UsageQuantity</code>.</p>
|
|
70
72
|
* <p>You can optionally include multiple usage allocations, to provide customers with usage data split into buckets by tags that you define or allow the customer to define.</p>
|
|
71
73
|
* <p>For Amazon Web Services Regions that support <code>MeterUsage</code>, see <a href="https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#meterusage-region-support-ec2">MeterUsage Region support for Amazon EC2</a> and <a href="https://docs.aws.amazon.com/marketplace/latest/APIReference/metering-regions.html#meterusage-region-support-ecs-eks">MeterUsage Region support for Amazon ECS and Amazon EKS</a>. </p>
|
|
72
74
|
* @example
|
|
@@ -82,10 +84,12 @@ declare const MeterUsageCommand_base: {
|
|
|
82
84
|
* Timestamp: new Date("TIMESTAMP"), // required
|
|
83
85
|
* UsageDimension: "STRING_VALUE", // required
|
|
84
86
|
* UsageQuantity: Number("int"),
|
|
87
|
+
* UsageQuantityAsDecimal: "STRING_VALUE",
|
|
85
88
|
* DryRun: true || false,
|
|
86
89
|
* UsageAllocations: [ // UsageAllocations
|
|
87
90
|
* { // UsageAllocation
|
|
88
|
-
* AllocatedUsageQuantity: Number("int"),
|
|
91
|
+
* AllocatedUsageQuantity: Number("int"),
|
|
92
|
+
* AllocatedUsageQuantityAsDecimal: "STRING_VALUE",
|
|
89
93
|
* Tags: [ // TagList
|
|
90
94
|
* { // Tag
|
|
91
95
|
* Key: "STRING_VALUE", // required
|
|
@@ -117,7 +121,9 @@ declare const MeterUsageCommand_base: {
|
|
|
117
121
|
* @throws {@link DuplicateRequestException} (client fault)
|
|
118
122
|
* <p>A metering record has already been emitted by the same EC2 instance, ECS task, or EKS
|
|
119
123
|
* pod for the given {<code>usageDimension</code>, <code>timestamp</code>} with a different
|
|
120
|
-
* <code>usageQuantity</code
|
|
124
|
+
* <code>usageQuantity</code>. Quantities are compared by value, so a whole-number and a
|
|
125
|
+
* decimal quantity with the same value (for example, <code>17</code> and
|
|
126
|
+
* <code>17.00</code>) are not different.</p>
|
|
121
127
|
*
|
|
122
128
|
* @throws {@link IdempotencyConflictException} (client fault)
|
|
123
129
|
* <p>The <code>ClientToken</code> is being used for multiple requests.</p>
|
|
@@ -139,7 +145,9 @@ declare const MeterUsageCommand_base: {
|
|
|
139
145
|
* <p>The tag is invalid, or the number of tags is greater than 5.</p>
|
|
140
146
|
*
|
|
141
147
|
* @throws {@link InvalidUsageAllocationsException} (client fault)
|
|
142
|
-
* <p>Sum of allocated usage quantities is not equal to the usage quantity
|
|
148
|
+
* <p>Sum of allocated usage quantities is not equal to the usage quantity, or the
|
|
149
|
+
* allocations don't use the same type of quantity (whole number or decimal) as the usage
|
|
150
|
+
* quantity.</p>
|
|
143
151
|
*
|
|
144
152
|
* @throws {@link InvalidUsageDimensionException} (client fault)
|
|
145
153
|
* <p>The usage dimension does not match one of the <code>UsageDimensions</code> associated
|
|
@@ -82,7 +82,9 @@ export declare class InvalidTagException extends __BaseException {
|
|
|
82
82
|
constructor(opts: __ExceptionOptionType<InvalidTagException, __BaseException>);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* <p>Sum of allocated usage quantities is not equal to the usage quantity
|
|
85
|
+
* <p>Sum of allocated usage quantities is not equal to the usage quantity, or the
|
|
86
|
+
* allocations don't use the same type of quantity (whole number or decimal) as the usage
|
|
87
|
+
* quantity.</p>
|
|
86
88
|
* @public
|
|
87
89
|
*/
|
|
88
90
|
export declare class InvalidUsageAllocationsException extends __BaseException {
|
|
@@ -155,7 +157,9 @@ export declare class CustomerNotEntitledException extends __BaseException {
|
|
|
155
157
|
/**
|
|
156
158
|
* <p>A metering record has already been emitted by the same EC2 instance, ECS task, or EKS
|
|
157
159
|
* pod for the given \{<code>usageDimension</code>, <code>timestamp</code>\} with a different
|
|
158
|
-
* <code>usageQuantity</code
|
|
160
|
+
* <code>usageQuantity</code>. Quantities are compared by value, so a whole-number and a
|
|
161
|
+
* decimal quantity with the same value (for example, <code>17</code> and
|
|
162
|
+
* <code>17.00</code>) are not different.</p>
|
|
159
163
|
* @public
|
|
160
164
|
*/
|
|
161
165
|
export declare class DuplicateRequestException extends __BaseException {
|
|
@@ -26,10 +26,25 @@ export interface Tag {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface UsageAllocation {
|
|
28
28
|
/**
|
|
29
|
-
* <p>The total quantity allocated to this bucket of usage.</p>
|
|
29
|
+
* <p>The total quantity allocated to this bucket of usage, as a whole number.</p>
|
|
30
|
+
* <p>Use <code>AllocatedUsageQuantityAsDecimal</code> instead. Each allocation must specify
|
|
31
|
+
* exactly one of <code>AllocatedUsageQuantity</code> or
|
|
32
|
+
* <code>AllocatedUsageQuantityAsDecimal</code>.</p>
|
|
33
|
+
*
|
|
34
|
+
* @deprecated (since 2026-10-20) Use AllocatedUsageQuantityAsDecimal instead.
|
|
30
35
|
* @public
|
|
31
36
|
*/
|
|
32
|
-
AllocatedUsageQuantity
|
|
37
|
+
AllocatedUsageQuantity?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* <p>The total quantity allocated to this bucket of usage, as a decimal string. Use this
|
|
40
|
+
* when the usage quantity of the request or usage record is specified as a decimal
|
|
41
|
+
* (<code>UsageQuantityAsDecimal</code> or <code>QuantityAsDecimal</code>).</p>
|
|
42
|
+
* <p>A non-negative decimal number, for example <code>17.42</code>.</p>
|
|
43
|
+
* <p>Each allocation must specify exactly one of <code>AllocatedUsageQuantity</code> or
|
|
44
|
+
* <code>AllocatedUsageQuantityAsDecimal</code>.</p>
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
AllocatedUsageQuantityAsDecimal?: string | undefined;
|
|
33
48
|
/**
|
|
34
49
|
* <p>The set of tags that define the bucket of usage. For the bucket of items with no tags,
|
|
35
50
|
* this parameter can be left out.</p>
|
|
@@ -72,15 +87,40 @@ export interface UsageRecord {
|
|
|
72
87
|
*/
|
|
73
88
|
Dimension: string | undefined;
|
|
74
89
|
/**
|
|
75
|
-
* <p>The quantity of usage consumed by the customer for the given dimension and time
|
|
76
|
-
* Defaults to <code>0</code> if
|
|
90
|
+
* <p>The quantity of usage consumed by the customer for the given dimension and time, as a
|
|
91
|
+
* whole number. Defaults to <code>0</code> if neither <code>Quantity</code> nor
|
|
92
|
+
* <code>QuantityAsDecimal</code> is specified.</p>
|
|
93
|
+
* <p>Use <code>QuantityAsDecimal</code> instead. You can't specify both
|
|
94
|
+
* <code>Quantity</code> and <code>QuantityAsDecimal</code> in a usage record.</p>
|
|
95
|
+
*
|
|
96
|
+
* @deprecated (since 2026-10-20) Use QuantityAsDecimal instead.
|
|
77
97
|
* @public
|
|
78
98
|
*/
|
|
79
99
|
Quantity?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* <p>The quantity of usage consumed by the customer for the given dimension and time, as a
|
|
102
|
+
* decimal string. Use this instead of <code>Quantity</code> to report fractional
|
|
103
|
+
* usage.</p>
|
|
104
|
+
* <p>A non-negative decimal number, for example <code>17.42</code>.</p>
|
|
105
|
+
* <p>You can't specify both <code>Quantity</code> and <code>QuantityAsDecimal</code> in a
|
|
106
|
+
* usage record. If you provide <code>UsageAllocations</code>, each allocation must use
|
|
107
|
+
* <code>AllocatedUsageQuantityAsDecimal</code>. If any usage record fails these checks,
|
|
108
|
+
* the entire <code>BatchMeterUsage</code> request fails and no records are
|
|
109
|
+
* processed.</p>
|
|
110
|
+
* <p>Quantities are compared by value when checking for duplicate records, so
|
|
111
|
+
* <code>17</code>, <code>17.0</code>, and <code>17.00</code> are the same quantity,
|
|
112
|
+
* whether you send it in <code>Quantity</code> or <code>QuantityAsDecimal</code>.</p>
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
QuantityAsDecimal?: string | undefined;
|
|
80
116
|
/**
|
|
81
117
|
* <p>The set of <code>UsageAllocations</code> to submit. The sum of all
|
|
82
|
-
* <code>UsageAllocation</code> quantities must equal the
|
|
83
|
-
* <code>UsageRecord</code
|
|
118
|
+
* <code>UsageAllocation</code> quantities must equal the quantity of the
|
|
119
|
+
* <code>UsageRecord</code> (<code>Quantity</code> or <code>QuantityAsDecimal</code>).
|
|
120
|
+
* Allocations must use the same type of quantity as the usage record:
|
|
121
|
+
* <code>AllocatedUsageQuantity</code> with <code>Quantity</code>, or
|
|
122
|
+
* <code>AllocatedUsageQuantityAsDecimal</code> with
|
|
123
|
+
* <code>QuantityAsDecimal</code>.</p>
|
|
84
124
|
* @public
|
|
85
125
|
*/
|
|
86
126
|
UsageAllocations?: UsageAllocation[] | undefined;
|
|
@@ -231,10 +271,29 @@ export interface MeterUsageRequest {
|
|
|
231
271
|
*/
|
|
232
272
|
UsageDimension: string | undefined;
|
|
233
273
|
/**
|
|
234
|
-
* <p>
|
|
274
|
+
* <p>The consumption value for the hour, as a whole number. Defaults to <code>0</code> if neither
|
|
275
|
+
* <code>UsageQuantity</code> nor <code>UsageQuantityAsDecimal</code> is specified.</p>
|
|
276
|
+
* <p>Use <code>UsageQuantityAsDecimal</code> instead. You can't specify both
|
|
277
|
+
* <code>UsageQuantity</code> and <code>UsageQuantityAsDecimal</code>.</p>
|
|
278
|
+
*
|
|
279
|
+
* @deprecated (since 2026-10-20) Use UsageQuantityAsDecimal instead.
|
|
235
280
|
* @public
|
|
236
281
|
*/
|
|
237
282
|
UsageQuantity?: number | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* <p>The consumption value for the hour, as a decimal string. Use this instead of
|
|
285
|
+
* <code>UsageQuantity</code> to report fractional usage.</p>
|
|
286
|
+
* <p>A non-negative decimal number, for example <code>17.42</code>.</p>
|
|
287
|
+
* <p>You can't specify both <code>UsageQuantity</code> and
|
|
288
|
+
* <code>UsageQuantityAsDecimal</code>. If you provide <code>UsageAllocations</code>,
|
|
289
|
+
* each allocation must use <code>AllocatedUsageQuantityAsDecimal</code>.</p>
|
|
290
|
+
* <p>Quantities are compared by value when checking for duplicate or retried requests, so
|
|
291
|
+
* <code>17</code>, <code>17.0</code>, and <code>17.00</code> are the same quantity,
|
|
292
|
+
* whether you send it in <code>UsageQuantity</code> or
|
|
293
|
+
* <code>UsageQuantityAsDecimal</code>.</p>
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
UsageQuantityAsDecimal?: string | undefined;
|
|
238
297
|
/**
|
|
239
298
|
* <p>Checks whether you have the permissions required for the action, but does not make the
|
|
240
299
|
* request. If you have the permissions, the request returns <code>DryRunOperation</code>;
|
|
@@ -245,10 +304,13 @@ export interface MeterUsageRequest {
|
|
|
245
304
|
DryRun?: boolean | undefined;
|
|
246
305
|
/**
|
|
247
306
|
* <p>The set of <code>UsageAllocations</code> to submit.</p>
|
|
248
|
-
* <p>The sum of all <code>UsageAllocation</code> quantities must equal the
|
|
249
|
-
*
|
|
250
|
-
* <code>UsageAllocation</code> must have a
|
|
251
|
-
* tags)
|
|
307
|
+
* <p>The sum of all <code>UsageAllocation</code> quantities must equal the usage quantity
|
|
308
|
+
* of the <code>MeterUsage</code> request (<code>UsageQuantity</code> or
|
|
309
|
+
* <code>UsageQuantityAsDecimal</code>), and each <code>UsageAllocation</code> must have a
|
|
310
|
+
* unique set of tags (include no tags). Allocations must use the same type of quantity as
|
|
311
|
+
* the request: <code>AllocatedUsageQuantity</code> with <code>UsageQuantity</code>, or
|
|
312
|
+
* <code>AllocatedUsageQuantityAsDecimal</code> with
|
|
313
|
+
* <code>UsageQuantityAsDecimal</code>.</p>
|
|
252
314
|
* @public
|
|
253
315
|
*/
|
|
254
316
|
UsageAllocations?: UsageAllocation[] | undefined;
|
|
@@ -4,7 +4,8 @@ export interface Tag {
|
|
|
4
4
|
Value: string | undefined;
|
|
5
5
|
}
|
|
6
6
|
export interface UsageAllocation {
|
|
7
|
-
AllocatedUsageQuantity
|
|
7
|
+
AllocatedUsageQuantity?: number | undefined;
|
|
8
|
+
AllocatedUsageQuantityAsDecimal?: string | undefined;
|
|
8
9
|
Tags?: Tag[] | undefined;
|
|
9
10
|
}
|
|
10
11
|
export interface UsageRecord {
|
|
@@ -12,6 +13,7 @@ export interface UsageRecord {
|
|
|
12
13
|
CustomerIdentifier?: string | undefined;
|
|
13
14
|
Dimension: string | undefined;
|
|
14
15
|
Quantity?: number | undefined;
|
|
16
|
+
QuantityAsDecimal?: string | undefined;
|
|
15
17
|
UsageAllocations?: UsageAllocation[] | undefined;
|
|
16
18
|
CustomerAWSAccountId?: string | undefined;
|
|
17
19
|
LicenseArn?: string | undefined;
|
|
@@ -34,6 +36,7 @@ export interface MeterUsageRequest {
|
|
|
34
36
|
Timestamp: Date | undefined;
|
|
35
37
|
UsageDimension: string | undefined;
|
|
36
38
|
UsageQuantity?: number | undefined;
|
|
39
|
+
UsageQuantityAsDecimal?: string | undefined;
|
|
37
40
|
DryRun?: boolean | undefined;
|
|
38
41
|
UsageAllocations?: UsageAllocation[] | undefined;
|
|
39
42
|
ClientToken?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-metering",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1167.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Marketplace Metering Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-marketplace-metering",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@aws-sdk/core": "^3.981.0",
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.97",
|
|
51
51
|
"@aws-sdk/types": "^3.975.1",
|
|
52
52
|
"@smithy/core": "^3.40.0",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.1",
|