@aws-sdk/client-marketplace-metering 3.533.0 → 3.540.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -993,9 +993,6 @@ var _MarketplaceMetering = class _MarketplaceMetering extends MarketplaceMeterin
993
993
  __name(_MarketplaceMetering, "MarketplaceMetering");
994
994
  var MarketplaceMetering = _MarketplaceMetering;
995
995
  (0, import_smithy_client.createAggregatedClient)(commands, MarketplaceMetering);
996
-
997
- // src/index.ts
998
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
999
996
  // Annotate the CommonJS export names for ESM import in node:
1000
997
 
1001
998
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -2,5 +2,4 @@ export * from "./MarketplaceMeteringClient";
2
2
  export * from "./MarketplaceMetering";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
- import "@aws-sdk/util-endpoints";
6
5
  export { MarketplaceMeteringServiceException } from "./models/MarketplaceMeteringServiceException";
@@ -31,7 +31,6 @@ export interface MarketplaceMetering {
31
31
  resolveCustomer(args: ResolveCustomerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResolveCustomerCommandOutput) => void): void;
32
32
  }
33
33
  /**
34
- * @public
35
34
  * <fullname>AWS Marketplace Metering Service</fullname>
36
35
  * <p>This reference provides descriptions of the low-level AWS Marketplace Metering Service
37
36
  * API.</p>
@@ -95,6 +94,7 @@ export interface MarketplaceMetering {
95
94
  * <i>
96
95
  * <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html">AWS CloudTrail User Guide</a>.</i>
97
96
  * </p>
97
+ * @public
98
98
  */
99
99
  export declare class MarketplaceMetering extends MarketplaceMeteringClient implements MarketplaceMetering {
100
100
  }
@@ -155,7 +155,6 @@ export type MarketplaceMeteringClientResolvedConfigType = __SmithyResolvedConfig
155
155
  export interface MarketplaceMeteringClientResolvedConfig extends MarketplaceMeteringClientResolvedConfigType {
156
156
  }
157
157
  /**
158
- * @public
159
158
  * <fullname>AWS Marketplace Metering Service</fullname>
160
159
  * <p>This reference provides descriptions of the low-level AWS Marketplace Metering Service
161
160
  * API.</p>
@@ -219,6 +218,7 @@ export interface MarketplaceMeteringClientResolvedConfig extends MarketplaceMete
219
218
  * <i>
220
219
  * <a href="http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html">AWS CloudTrail User Guide</a>.</i>
221
220
  * </p>
221
+ * @public
222
222
  */
223
223
  export declare class MarketplaceMeteringClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MarketplaceMeteringClientResolvedConfig> {
224
224
  /**
@@ -22,10 +22,10 @@ export interface BatchMeterUsageCommandOutput extends BatchMeterUsageResult, __M
22
22
  }
23
23
  declare const BatchMeterUsageCommand_base: {
24
24
  new (input: BatchMeterUsageCommandInput): import("@smithy/smithy-client").CommandImpl<BatchMeterUsageCommandInput, BatchMeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: BatchMeterUsageCommandInput): import("@smithy/smithy-client").CommandImpl<BatchMeterUsageCommandInput, BatchMeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>
30
30
  * <code>BatchMeterUsage</code> is called from a SaaS application listed on AWS
31
31
  * Marketplace to post metering records for a set of customers.</p>
@@ -175,6 +175,7 @@ declare const BatchMeterUsageCommand_base: {
175
175
  * @throws {@link MarketplaceMeteringServiceException}
176
176
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
177
177
  *
178
+ * @public
178
179
  */
179
180
  export declare class BatchMeterUsageCommand extends BatchMeterUsageCommand_base {
180
181
  }
@@ -22,10 +22,10 @@ export interface MeterUsageCommandOutput extends MeterUsageResult, __MetadataBea
22
22
  }
23
23
  declare const MeterUsageCommand_base: {
24
24
  new (input: MeterUsageCommandInput): import("@smithy/smithy-client").CommandImpl<MeterUsageCommandInput, MeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: MeterUsageCommandInput): import("@smithy/smithy-client").CommandImpl<MeterUsageCommandInput, MeterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>API to emit metering records. For identical requests, the API is idempotent. It simply
30
30
  * returns the metering record ID.</p>
31
31
  * <p>
@@ -121,6 +121,7 @@ declare const MeterUsageCommand_base: {
121
121
  * @throws {@link MarketplaceMeteringServiceException}
122
122
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
123
123
  *
124
+ * @public
124
125
  */
125
126
  export declare class MeterUsageCommand extends MeterUsageCommand_base {
126
127
  }
@@ -22,10 +22,10 @@ export interface RegisterUsageCommandOutput extends RegisterUsageResult, __Metad
22
22
  }
23
23
  declare const RegisterUsageCommand_base: {
24
24
  new (input: RegisterUsageCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterUsageCommandInput, RegisterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: RegisterUsageCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterUsageCommandInput, RegisterUsageCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Paid container software products sold through AWS Marketplace must integrate with the
30
30
  * AWS Marketplace Metering Service and call the <code>RegisterUsage</code> operation for
31
31
  * software entitlement and metering. Free and BYOL products for Amazon ECS or Amazon EKS
@@ -126,6 +126,7 @@ declare const RegisterUsageCommand_base: {
126
126
  * @throws {@link MarketplaceMeteringServiceException}
127
127
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
128
128
  *
129
+ * @public
129
130
  */
130
131
  export declare class RegisterUsageCommand extends RegisterUsageCommand_base {
131
132
  }
@@ -22,10 +22,10 @@ export interface ResolveCustomerCommandOutput extends ResolveCustomerResult, __M
22
22
  }
23
23
  declare const ResolveCustomerCommand_base: {
24
24
  new (input: ResolveCustomerCommandInput): import("@smithy/smithy-client").CommandImpl<ResolveCustomerCommandInput, ResolveCustomerCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ResolveCustomerCommandInput): import("@smithy/smithy-client").CommandImpl<ResolveCustomerCommandInput, ResolveCustomerCommandOutput, MarketplaceMeteringClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>
30
30
  * <code>ResolveCustomer</code> is called by a SaaS application during the registration
31
31
  * process. When a buyer visits your website during the registration process, the buyer
@@ -88,6 +88,7 @@ declare const ResolveCustomerCommand_base: {
88
88
  * @throws {@link MarketplaceMeteringServiceException}
89
89
  * <p>Base exception class for all service exceptions from MarketplaceMetering service.</p>
90
90
  *
91
+ * @public
91
92
  */
92
93
  export declare class ResolveCustomerCommand extends ResolveCustomerCommand_base {
93
94
  }
@@ -72,5 +72,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
72
72
  export { MarketplaceMeteringExtensionConfiguration } from "./extensionConfiguration";
73
73
  export * from "./commands";
74
74
  export * from "./models";
75
- import "@aws-sdk/util-endpoints";
76
75
  export { MarketplaceMeteringServiceException } from "./models/MarketplaceMeteringServiceException";
@@ -1,101 +1,101 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { MarketplaceMeteringServiceException as __BaseException } from "./MarketplaceMeteringServiceException";
3
3
  /**
4
- * @public
5
4
  * <p>Metadata assigned to an allocation. Each tag is made up of a <code>key</code> and a
6
5
  * <code>value</code>.</p>
6
+ * @public
7
7
  */
8
8
  export interface Tag {
9
9
  /**
10
- * @public
11
10
  * <p>One part of a key-value pair that makes up a <code>tag</code>. A <code>key</code> is a
12
11
  * label that acts like a category for the specific tag values.</p>
12
+ * @public
13
13
  */
14
14
  Key: string | undefined;
15
15
  /**
16
- * @public
17
16
  * <p>One part of a key-value pair that makes up a <code>tag</code>. A <code>value</code>
18
17
  * acts as a descriptor within a tag category (key). The value can be empty or null.</p>
18
+ * @public
19
19
  */
20
20
  Value: string | undefined;
21
21
  }
22
22
  /**
23
- * @public
24
23
  * <p>Usage allocations allow you to split usage into buckets by tags.</p>
25
24
  * <p>Each <code>UsageAllocation</code> indicates the usage quantity for a specific set of
26
25
  * tags.</p>
26
+ * @public
27
27
  */
28
28
  export interface UsageAllocation {
29
29
  /**
30
- * @public
31
30
  * <p>The total quantity allocated to this bucket of usage.</p>
31
+ * @public
32
32
  */
33
33
  AllocatedUsageQuantity: number | undefined;
34
34
  /**
35
- * @public
36
35
  * <p>The set of tags that define the bucket of usage. For the bucket of items with no tags,
37
36
  * this parameter can be left out.</p>
37
+ * @public
38
38
  */
39
39
  Tags?: Tag[];
40
40
  }
41
41
  /**
42
- * @public
43
42
  * <p>A <code>UsageRecord</code> indicates a quantity of usage for a given product,
44
43
  * customer, dimension and time.</p>
45
44
  * <p>Multiple requests with the same <code>UsageRecords</code> as input will be
46
45
  * de-duplicated to prevent double charges.</p>
46
+ * @public
47
47
  */
48
48
  export interface UsageRecord {
49
49
  /**
50
- * @public
51
50
  * <p>Timestamp, in UTC, for which the usage is being reported.</p>
52
51
  * <p>Your application can meter usage for up to one hour in the past. Make sure the
53
52
  * <code>timestamp</code> value is not before the start of the software usage.</p>
53
+ * @public
54
54
  */
55
55
  Timestamp: Date | undefined;
56
56
  /**
57
- * @public
58
57
  * <p>The <code>CustomerIdentifier</code> is obtained through the
59
58
  * <code>ResolveCustomer</code> operation and represents an individual buyer in your
60
59
  * application.</p>
60
+ * @public
61
61
  */
62
62
  CustomerIdentifier: string | undefined;
63
63
  /**
64
- * @public
65
64
  * <p>During the process of registering a product on AWS Marketplace, dimensions are
66
65
  * specified. These represent different units of value in your application.</p>
66
+ * @public
67
67
  */
68
68
  Dimension: string | undefined;
69
69
  /**
70
- * @public
71
70
  * <p>The quantity of usage consumed by the customer for the given dimension and time.
72
71
  * Defaults to <code>0</code> if not specified.</p>
72
+ * @public
73
73
  */
74
74
  Quantity?: number;
75
75
  /**
76
- * @public
77
76
  * <p>The set of <code>UsageAllocations</code> to submit. The sum of all
78
77
  * <code>UsageAllocation</code> quantities must equal the Quantity of the
79
78
  * <code>UsageRecord</code>.</p>
79
+ * @public
80
80
  */
81
81
  UsageAllocations?: UsageAllocation[];
82
82
  }
83
83
  /**
84
- * @public
85
84
  * <p>A <code>BatchMeterUsageRequest</code> contains <code>UsageRecords</code>, which
86
85
  * indicate quantities of usage within your application.</p>
86
+ * @public
87
87
  */
88
88
  export interface BatchMeterUsageRequest {
89
89
  /**
90
- * @public
91
90
  * <p>The set of <code>UsageRecords</code> to submit. <code>BatchMeterUsage</code> accepts
92
91
  * up to 25 <code>UsageRecords</code> at a time.</p>
92
+ * @public
93
93
  */
94
94
  UsageRecords: UsageRecord[] | undefined;
95
95
  /**
96
- * @public
97
96
  * <p>Product code is used to uniquely identify a product in AWS Marketplace. The product
98
97
  * code should be the same as the one used during the publishing of a new product.</p>
98
+ * @public
99
99
  */
100
100
  ProductCode: string | undefined;
101
101
  }
@@ -113,25 +113,24 @@ export declare const UsageRecordResultStatus: {
113
113
  */
114
114
  export type UsageRecordResultStatus = (typeof UsageRecordResultStatus)[keyof typeof UsageRecordResultStatus];
115
115
  /**
116
- * @public
117
116
  * <p>A <code>UsageRecordResult</code> indicates the status of a given
118
117
  * <code>UsageRecord</code> processed by <code>BatchMeterUsage</code>.</p>
118
+ * @public
119
119
  */
120
120
  export interface UsageRecordResult {
121
121
  /**
122
- * @public
123
122
  * <p>The <code>UsageRecord</code> that was part of the <code>BatchMeterUsage</code>
124
123
  * request.</p>
124
+ * @public
125
125
  */
126
126
  UsageRecord?: UsageRecord;
127
127
  /**
128
- * @public
129
128
  * <p>The <code>MeteringRecordId</code> is a unique identifier for this metering
130
129
  * event.</p>
130
+ * @public
131
131
  */
132
132
  MeteringRecordId?: string;
133
133
  /**
134
- * @public
135
134
  * <p>The <code>UsageRecordResult</code>
136
135
  * <code>Status</code> indicates the status of an individual <code>UsageRecord</code>
137
136
  * processed by <code>BatchMeterUsage</code>.</p>
@@ -169,34 +168,35 @@ export interface UsageRecordResult {
169
168
  * different quantity.</p>
170
169
  * </li>
171
170
  * </ul>
171
+ * @public
172
172
  */
173
173
  Status?: UsageRecordResultStatus;
174
174
  }
175
175
  /**
176
- * @public
177
176
  * <p>Contains the <code>UsageRecords</code> processed by <code>BatchMeterUsage</code> and
178
177
  * any records that have failed due to transient error.</p>
178
+ * @public
179
179
  */
180
180
  export interface BatchMeterUsageResult {
181
181
  /**
182
- * @public
183
182
  * <p>Contains all <code>UsageRecords</code> processed by <code>BatchMeterUsage</code>.
184
183
  * These records were either honored by AWS Marketplace Metering Service or were invalid.
185
184
  * Invalid records should be fixed before being resubmitted.</p>
185
+ * @public
186
186
  */
187
187
  Results?: UsageRecordResult[];
188
188
  /**
189
- * @public
190
189
  * <p>Contains all <code>UsageRecords</code> that were not processed by
191
190
  * <code>BatchMeterUsage</code>. This is a list of <code>UsageRecords</code>. You can
192
191
  * retry the failed request by making another <code>BatchMeterUsage</code> call with this
193
192
  * list as input in the <code>BatchMeterUsageRequest</code>.</p>
193
+ * @public
194
194
  */
195
195
  UnprocessedRecords?: UsageRecord[];
196
196
  }
197
197
  /**
198
- * @public
199
198
  * <p>The API is disabled in the Region.</p>
199
+ * @public
200
200
  */
201
201
  export declare class DisabledApiException extends __BaseException {
202
202
  readonly name: "DisabledApiException";
@@ -207,9 +207,9 @@ export declare class DisabledApiException extends __BaseException {
207
207
  constructor(opts: __ExceptionOptionType<DisabledApiException, __BaseException>);
208
208
  }
209
209
  /**
210
- * @public
211
210
  * <p>An internal error has occurred. Retry your request. If the problem persists, post a
212
211
  * message with details on the AWS forums.</p>
212
+ * @public
213
213
  */
214
214
  export declare class InternalServiceErrorException extends __BaseException {
215
215
  readonly name: "InternalServiceErrorException";
@@ -220,9 +220,9 @@ export declare class InternalServiceErrorException extends __BaseException {
220
220
  constructor(opts: __ExceptionOptionType<InternalServiceErrorException, __BaseException>);
221
221
  }
222
222
  /**
223
- * @public
224
223
  * <p>You have metered usage for a <code>CustomerIdentifier</code> that does not
225
224
  * exist.</p>
225
+ * @public
226
226
  */
227
227
  export declare class InvalidCustomerIdentifierException extends __BaseException {
228
228
  readonly name: "InvalidCustomerIdentifierException";
@@ -233,9 +233,9 @@ export declare class InvalidCustomerIdentifierException extends __BaseException
233
233
  constructor(opts: __ExceptionOptionType<InvalidCustomerIdentifierException, __BaseException>);
234
234
  }
235
235
  /**
236
- * @public
237
236
  * <p>The product code passed does not match the product code used for publishing the
238
237
  * product.</p>
238
+ * @public
239
239
  */
240
240
  export declare class InvalidProductCodeException extends __BaseException {
241
241
  readonly name: "InvalidProductCodeException";
@@ -246,8 +246,8 @@ export declare class InvalidProductCodeException extends __BaseException {
246
246
  constructor(opts: __ExceptionOptionType<InvalidProductCodeException, __BaseException>);
247
247
  }
248
248
  /**
249
- * @public
250
249
  * <p>The tag is invalid, or the number of tags is greater than 5.</p>
250
+ * @public
251
251
  */
252
252
  export declare class InvalidTagException extends __BaseException {
253
253
  readonly name: "InvalidTagException";
@@ -258,9 +258,9 @@ export declare class InvalidTagException extends __BaseException {
258
258
  constructor(opts: __ExceptionOptionType<InvalidTagException, __BaseException>);
259
259
  }
260
260
  /**
261
- * @public
262
261
  * <p>The usage allocation objects are invalid, or the number of allocations is greater than
263
262
  * 500 for a single usage record.</p>
263
+ * @public
264
264
  */
265
265
  export declare class InvalidUsageAllocationsException extends __BaseException {
266
266
  readonly name: "InvalidUsageAllocationsException";
@@ -271,9 +271,9 @@ export declare class InvalidUsageAllocationsException extends __BaseException {
271
271
  constructor(opts: __ExceptionOptionType<InvalidUsageAllocationsException, __BaseException>);
272
272
  }
273
273
  /**
274
- * @public
275
274
  * <p>The usage dimension does not match one of the <code>UsageDimensions</code> associated
276
275
  * with products.</p>
276
+ * @public
277
277
  */
278
278
  export declare class InvalidUsageDimensionException extends __BaseException {
279
279
  readonly name: "InvalidUsageDimensionException";
@@ -284,8 +284,8 @@ export declare class InvalidUsageDimensionException extends __BaseException {
284
284
  constructor(opts: __ExceptionOptionType<InvalidUsageDimensionException, __BaseException>);
285
285
  }
286
286
  /**
287
- * @public
288
287
  * <p>The calls to the API are throttled.</p>
288
+ * @public
289
289
  */
290
290
  export declare class ThrottlingException extends __BaseException {
291
291
  readonly name: "ThrottlingException";
@@ -296,12 +296,12 @@ export declare class ThrottlingException extends __BaseException {
296
296
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
297
297
  }
298
298
  /**
299
- * @public
300
299
  * <p>The <code>timestamp</code> value passed in the <code>UsageRecord</code> is out of
301
300
  * allowed range.</p>
302
301
  * <p>For <code>BatchMeterUsage</code>, if any of the records are outside of the allowed
303
302
  * range, the entire batch is not processed. You must remove invalid records and try
304
303
  * again.</p>
304
+ * @public
305
305
  */
306
306
  export declare class TimestampOutOfBoundsException extends __BaseException {
307
307
  readonly name: "TimestampOutOfBoundsException";
@@ -312,9 +312,9 @@ export declare class TimestampOutOfBoundsException extends __BaseException {
312
312
  constructor(opts: __ExceptionOptionType<TimestampOutOfBoundsException, __BaseException>);
313
313
  }
314
314
  /**
315
- * @public
316
315
  * <p>Exception thrown when the customer does not have a valid subscription for the
317
316
  * product.</p>
317
+ * @public
318
318
  */
319
319
  export declare class CustomerNotEntitledException extends __BaseException {
320
320
  readonly name: "CustomerNotEntitledException";
@@ -325,10 +325,10 @@ export declare class CustomerNotEntitledException extends __BaseException {
325
325
  constructor(opts: __ExceptionOptionType<CustomerNotEntitledException, __BaseException>);
326
326
  }
327
327
  /**
328
- * @public
329
328
  * <p>A metering record has already been emitted by the same EC2 instance, ECS task, or EKS
330
329
  * pod for the given \{<code>usageDimension</code>, <code>timestamp</code>\} with a different
331
330
  * <code>usageQuantity</code>.</p>
331
+ * @public
332
332
  */
333
333
  export declare class DuplicateRequestException extends __BaseException {
334
334
  readonly name: "DuplicateRequestException";
@@ -339,10 +339,10 @@ export declare class DuplicateRequestException extends __BaseException {
339
339
  constructor(opts: __ExceptionOptionType<DuplicateRequestException, __BaseException>);
340
340
  }
341
341
  /**
342
- * @public
343
342
  * <p>The endpoint being called is in a AWS Region different from your EC2 instance, ECS
344
343
  * task, or EKS pod. The Region of the Metering Service endpoint and the AWS Region of the
345
344
  * resource must match.</p>
345
+ * @public
346
346
  */
347
347
  export declare class InvalidEndpointRegionException extends __BaseException {
348
348
  readonly name: "InvalidEndpointRegionException";
@@ -357,44 +357,44 @@ export declare class InvalidEndpointRegionException extends __BaseException {
357
357
  */
358
358
  export interface MeterUsageRequest {
359
359
  /**
360
- * @public
361
360
  * <p>Product code is used to uniquely identify a product in AWS Marketplace. The product
362
361
  * code should be the same as the one used during the publishing of a new product.</p>
362
+ * @public
363
363
  */
364
364
  ProductCode: string | undefined;
365
365
  /**
366
- * @public
367
366
  * <p>Timestamp, in UTC, for which the usage is being reported. Your application can meter
368
367
  * usage for up to one hour in the past. Make sure the <code>timestamp</code> value is not
369
368
  * before the start of the software usage.</p>
369
+ * @public
370
370
  */
371
371
  Timestamp: Date | undefined;
372
372
  /**
373
- * @public
374
373
  * <p>It will be one of the fcp dimension name provided during the publishing of the
375
374
  * product.</p>
375
+ * @public
376
376
  */
377
377
  UsageDimension: string | undefined;
378
378
  /**
379
- * @public
380
379
  * <p>Consumption value for the hour. Defaults to <code>0</code> if not specified.</p>
380
+ * @public
381
381
  */
382
382
  UsageQuantity?: number;
383
383
  /**
384
- * @public
385
384
  * <p>Checks whether you have the permissions required for the action, but does not make the
386
385
  * request. If you have the permissions, the request returns <code>DryRunOperation</code>;
387
386
  * otherwise, it returns <code>UnauthorizedException</code>. Defaults to <code>false</code>
388
387
  * if not specified.</p>
388
+ * @public
389
389
  */
390
390
  DryRun?: boolean;
391
391
  /**
392
- * @public
393
392
  * <p>The set of <code>UsageAllocations</code> to submit.</p>
394
393
  * <p>The sum of all <code>UsageAllocation</code> quantities must equal the
395
394
  * <code>UsageQuantity</code> of the <code>MeterUsage</code> request, and each
396
395
  * <code>UsageAllocation</code> must have a unique set of tags (include no
397
396
  * tags).</p>
397
+ * @public
398
398
  */
399
399
  UsageAllocations?: UsageAllocation[];
400
400
  }
@@ -403,14 +403,14 @@ export interface MeterUsageRequest {
403
403
  */
404
404
  export interface MeterUsageResult {
405
405
  /**
406
- * @public
407
406
  * <p>Metering record id.</p>
407
+ * @public
408
408
  */
409
409
  MeteringRecordId?: string;
410
410
  }
411
411
  /**
412
- * @public
413
412
  * <p>Public Key version is invalid.</p>
413
+ * @public
414
414
  */
415
415
  export declare class InvalidPublicKeyVersionException extends __BaseException {
416
416
  readonly name: "InvalidPublicKeyVersionException";
@@ -421,11 +421,11 @@ export declare class InvalidPublicKeyVersionException extends __BaseException {
421
421
  constructor(opts: __ExceptionOptionType<InvalidPublicKeyVersionException, __BaseException>);
422
422
  }
423
423
  /**
424
- * @public
425
424
  * <p>
426
425
  * <code>RegisterUsage</code> must be called in the same AWS Region the ECS task was
427
426
  * launched in. This prevents a container from hardcoding a Region (e.g.
428
427
  * withRegion(“us-east-1”) when calling <code>RegisterUsage</code>.</p>
428
+ * @public
429
429
  */
430
430
  export declare class InvalidRegionException extends __BaseException {
431
431
  readonly name: "InvalidRegionException";
@@ -436,9 +436,9 @@ export declare class InvalidRegionException extends __BaseException {
436
436
  constructor(opts: __ExceptionOptionType<InvalidRegionException, __BaseException>);
437
437
  }
438
438
  /**
439
- * @public
440
439
  * <p>AWS Marketplace does not support metering usage from the underlying platform.
441
440
  * Currently, Amazon ECS, Amazon EKS, and AWS Fargate are supported.</p>
441
+ * @public
442
442
  */
443
443
  export declare class PlatformNotSupportedException extends __BaseException {
444
444
  readonly name: "PlatformNotSupportedException";
@@ -453,20 +453,20 @@ export declare class PlatformNotSupportedException extends __BaseException {
453
453
  */
454
454
  export interface RegisterUsageRequest {
455
455
  /**
456
- * @public
457
456
  * <p>Product code is used to uniquely identify a product in AWS Marketplace. The product
458
457
  * code should be the same as the one used during the publishing of a new product.</p>
458
+ * @public
459
459
  */
460
460
  ProductCode: string | undefined;
461
461
  /**
462
- * @public
463
462
  * <p>Public Key Version provided by AWS Marketplace</p>
463
+ * @public
464
464
  */
465
465
  PublicKeyVersion: number | undefined;
466
466
  /**
467
- * @public
468
467
  * <p>(Optional) To scope down the registration to a specific running software instance and
469
468
  * guard against replay attacks.</p>
469
+ * @public
470
470
  */
471
471
  Nonce?: string;
472
472
  }
@@ -475,23 +475,23 @@ export interface RegisterUsageRequest {
475
475
  */
476
476
  export interface RegisterUsageResult {
477
477
  /**
478
- * @public
479
478
  * <p>(Optional) Only included when public key version has expired</p>
479
+ * @public
480
480
  */
481
481
  PublicKeyRotationTimestamp?: Date;
482
482
  /**
483
- * @public
484
483
  * <p>JWT Token</p>
484
+ * @public
485
485
  */
486
486
  Signature?: string;
487
487
  }
488
488
  /**
489
- * @public
490
489
  * <p>The submitted registration token has expired. This can happen if the buyer's browser
491
490
  * takes too long to redirect to your page, the buyer has resubmitted the registration
492
491
  * token, or your application has held on to the registration token for too long. Your SaaS
493
492
  * registration website should redeem this token as soon as it is submitted by the buyer's
494
493
  * browser.</p>
494
+ * @public
495
495
  */
496
496
  export declare class ExpiredTokenException extends __BaseException {
497
497
  readonly name: "ExpiredTokenException";
@@ -502,8 +502,8 @@ export declare class ExpiredTokenException extends __BaseException {
502
502
  constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
503
503
  }
504
504
  /**
505
- * @public
506
505
  * <p>Registration token is invalid.</p>
506
+ * @public
507
507
  */
508
508
  export declare class InvalidTokenException extends __BaseException {
509
509
  readonly name: "InvalidTokenException";
@@ -514,12 +514,11 @@ export declare class InvalidTokenException extends __BaseException {
514
514
  constructor(opts: __ExceptionOptionType<InvalidTokenException, __BaseException>);
515
515
  }
516
516
  /**
517
- * @public
518
517
  * <p>Contains input to the <code>ResolveCustomer</code> operation.</p>
518
+ * @public
519
519
  */
520
520
  export interface ResolveCustomerRequest {
521
521
  /**
522
- * @public
523
522
  * <p>When a buyer visits your website during the registration process, the buyer submits a
524
523
  * registration token through the browser. The registration token is resolved to obtain a
525
524
  * <code>CustomerIdentifier</code>
@@ -527,36 +526,37 @@ export interface ResolveCustomerRequest {
527
526
  * <code>CustomerAWSAccountId</code>
528
527
  * and
529
528
  * <code>ProductCode</code>.</p>
529
+ * @public
530
530
  */
531
531
  RegistrationToken: string | undefined;
532
532
  }
533
533
  /**
534
- * @public
535
534
  * <p>The result of the <code>ResolveCustomer</code> operation. Contains the
536
535
  * <code>CustomerIdentifier</code>
537
536
  *
538
537
  * along with the <code>CustomerAWSAccountId</code> and
539
538
  * <code>ProductCode</code>.</p>
539
+ * @public
540
540
  */
541
541
  export interface ResolveCustomerResult {
542
542
  /**
543
- * @public
544
543
  * <p>The <code>CustomerIdentifier</code> is used to identify an individual customer in your
545
544
  * application. Calls to <code>BatchMeterUsage</code> require
546
545
  * <code>CustomerIdentifiers</code> for each <code>UsageRecord</code>.</p>
546
+ * @public
547
547
  */
548
548
  CustomerIdentifier?: string;
549
549
  /**
550
- * @public
551
550
  * <p>The product code is returned to confirm that the buyer is registering for your
552
551
  * product. Subsequent <code>BatchMeterUsage</code> calls should be made using this product
553
552
  * code.</p>
553
+ * @public
554
554
  */
555
555
  ProductCode?: string;
556
556
  /**
557
- * @public
558
557
  * <p>The <code>CustomerAWSAccountId</code> provides the AWS account ID associated with the
559
558
  * <code>CustomerIdentifier</code> for the individual customer.</p>
559
+ * @public
560
560
  */
561
561
  CustomerAWSAccountId?: string;
562
562
  }
@@ -24,6 +24,15 @@ declare const BatchMeterUsageCommand_base: {
24
24
  ServiceInputTypes,
25
25
  ServiceOutputTypes
26
26
  >;
27
+ new (
28
+ __0_0: BatchMeterUsageCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ BatchMeterUsageCommandInput,
31
+ BatchMeterUsageCommandOutput,
32
+ MarketplaceMeteringClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
27
36
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
37
  };
29
38
  export declare class BatchMeterUsageCommand extends BatchMeterUsageCommand_base {}
@@ -21,6 +21,15 @@ declare const MeterUsageCommand_base: {
21
21
  ServiceInputTypes,
22
22
  ServiceOutputTypes
23
23
  >;
24
+ new (
25
+ __0_0: MeterUsageCommandInput
26
+ ): import("@smithy/smithy-client").CommandImpl<
27
+ MeterUsageCommandInput,
28
+ MeterUsageCommandOutput,
29
+ MarketplaceMeteringClientResolvedConfig,
30
+ ServiceInputTypes,
31
+ ServiceOutputTypes
32
+ >;
24
33
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
34
  };
26
35
  export declare class MeterUsageCommand extends MeterUsageCommand_base {}
@@ -21,6 +21,15 @@ declare const RegisterUsageCommand_base: {
21
21
  ServiceInputTypes,
22
22
  ServiceOutputTypes
23
23
  >;
24
+ new (
25
+ __0_0: RegisterUsageCommandInput
26
+ ): import("@smithy/smithy-client").CommandImpl<
27
+ RegisterUsageCommandInput,
28
+ RegisterUsageCommandOutput,
29
+ MarketplaceMeteringClientResolvedConfig,
30
+ ServiceInputTypes,
31
+ ServiceOutputTypes
32
+ >;
24
33
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
34
  };
26
35
  export declare class RegisterUsageCommand extends RegisterUsageCommand_base {}
@@ -24,6 +24,15 @@ declare const ResolveCustomerCommand_base: {
24
24
  ServiceInputTypes,
25
25
  ServiceOutputTypes
26
26
  >;
27
+ new (
28
+ __0_0: ResolveCustomerCommandInput
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ ResolveCustomerCommandInput,
31
+ ResolveCustomerCommandOutput,
32
+ MarketplaceMeteringClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
27
36
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
37
  };
29
38
  export declare class ResolveCustomerCommand extends ResolveCustomerCommand_base {}
@@ -5,5 +5,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { MarketplaceMeteringExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./models";
8
- import "@aws-sdk/util-endpoints";
9
8
  export { MarketplaceMeteringServiceException } from "./models/MarketplaceMeteringServiceException";
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.533.0",
4
+ "version": "3.540.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,47 +20,47 @@
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.533.0",
24
- "@aws-sdk/core": "3.533.0",
25
- "@aws-sdk/credential-provider-node": "3.533.0",
26
- "@aws-sdk/middleware-host-header": "3.533.0",
27
- "@aws-sdk/middleware-logger": "3.533.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.533.0",
29
- "@aws-sdk/middleware-user-agent": "3.533.0",
30
- "@aws-sdk/region-config-resolver": "3.533.0",
31
- "@aws-sdk/types": "3.533.0",
32
- "@aws-sdk/util-endpoints": "3.533.0",
33
- "@aws-sdk/util-user-agent-browser": "3.533.0",
34
- "@aws-sdk/util-user-agent-node": "3.533.0",
35
- "@smithy/config-resolver": "^2.1.5",
36
- "@smithy/core": "^1.3.8",
37
- "@smithy/fetch-http-handler": "^2.4.5",
38
- "@smithy/hash-node": "^2.1.4",
39
- "@smithy/invalid-dependency": "^2.1.4",
40
- "@smithy/middleware-content-length": "^2.1.4",
41
- "@smithy/middleware-endpoint": "^2.4.6",
42
- "@smithy/middleware-retry": "^2.1.7",
43
- "@smithy/middleware-serde": "^2.2.1",
44
- "@smithy/middleware-stack": "^2.1.4",
45
- "@smithy/node-config-provider": "^2.2.5",
46
- "@smithy/node-http-handler": "^2.4.3",
47
- "@smithy/protocol-http": "^3.2.2",
48
- "@smithy/smithy-client": "^2.4.5",
49
- "@smithy/types": "^2.11.0",
50
- "@smithy/url-parser": "^2.1.4",
51
- "@smithy/util-base64": "^2.2.1",
52
- "@smithy/util-body-length-browser": "^2.1.1",
53
- "@smithy/util-body-length-node": "^2.2.2",
54
- "@smithy/util-defaults-mode-browser": "^2.1.7",
55
- "@smithy/util-defaults-mode-node": "^2.2.7",
56
- "@smithy/util-endpoints": "^1.1.5",
57
- "@smithy/util-middleware": "^2.1.4",
58
- "@smithy/util-retry": "^2.1.4",
59
- "@smithy/util-utf8": "^2.2.0",
60
- "tslib": "^2.5.0"
23
+ "@aws-sdk/client-sts": "3.540.0",
24
+ "@aws-sdk/core": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/fetch-http-handler": "^2.5.0",
38
+ "@smithy/hash-node": "^2.2.0",
39
+ "@smithy/invalid-dependency": "^2.2.0",
40
+ "@smithy/middleware-content-length": "^2.2.0",
41
+ "@smithy/middleware-endpoint": "^2.5.0",
42
+ "@smithy/middleware-retry": "^2.2.0",
43
+ "@smithy/middleware-serde": "^2.3.0",
44
+ "@smithy/middleware-stack": "^2.2.0",
45
+ "@smithy/node-config-provider": "^2.3.0",
46
+ "@smithy/node-http-handler": "^2.5.0",
47
+ "@smithy/protocol-http": "^3.3.0",
48
+ "@smithy/smithy-client": "^2.5.0",
49
+ "@smithy/types": "^2.12.0",
50
+ "@smithy/url-parser": "^2.2.0",
51
+ "@smithy/util-base64": "^2.3.0",
52
+ "@smithy/util-body-length-browser": "^2.2.0",
53
+ "@smithy/util-body-length-node": "^2.3.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
55
+ "@smithy/util-defaults-mode-node": "^2.3.0",
56
+ "@smithy/util-endpoints": "^1.2.0",
57
+ "@smithy/util-middleware": "^2.2.0",
58
+ "@smithy/util-retry": "^2.2.0",
59
+ "@smithy/util-utf8": "^2.3.0",
60
+ "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^2.1.1",
63
+ "@smithy/service-client-documentation-generator": "^2.2.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/node": "^14.14.31",
66
66
  "concurrently": "7.0.0",