@aws-sdk/client-marketplace-metering 3.934.0 → 3.935.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -117,11 +117,6 @@ let MarketplaceMeteringServiceException$1 = class MarketplaceMeteringServiceExce
117
117
  }
118
118
  };
119
119
 
120
- const UsageRecordResultStatus = {
121
- CUSTOMER_NOT_SUBSCRIBED: "CustomerNotSubscribed",
122
- DUPLICATE_RECORD: "DuplicateRecord",
123
- SUCCESS: "Success",
124
- };
125
120
  let DisabledApiException$1 = class DisabledApiException extends MarketplaceMeteringServiceException$1 {
126
121
  name = "DisabledApiException";
127
122
  $fault = "client";
@@ -737,6 +732,12 @@ class MarketplaceMetering extends MarketplaceMeteringClient {
737
732
  }
738
733
  smithyClient.createAggregatedClient(commands, MarketplaceMetering);
739
734
 
735
+ const UsageRecordResultStatus = {
736
+ CUSTOMER_NOT_SUBSCRIBED: "CustomerNotSubscribed",
737
+ DUPLICATE_RECORD: "DuplicateRecord",
738
+ SUCCESS: "Success",
739
+ };
740
+
740
741
  Object.defineProperty(exports, "$Command", {
741
742
  enumerable: true,
742
743
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./MarketplaceMeteringClient";
2
2
  export * from "./MarketplaceMetering";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { MarketplaceMeteringServiceException } from "./models/MarketplaceMeteringServiceException";
@@ -0,0 +1,5 @@
1
+ export const UsageRecordResultStatus = {
2
+ CUSTOMER_NOT_SUBSCRIBED: "CustomerNotSubscribed",
3
+ DUPLICATE_RECORD: "DuplicateRecord",
4
+ SUCCESS: "Success",
5
+ };
@@ -0,0 +1,217 @@
1
+ import { MarketplaceMeteringServiceException as __BaseException } from "./MarketplaceMeteringServiceException";
2
+ export class DisabledApiException extends __BaseException {
3
+ name = "DisabledApiException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "DisabledApiException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, DisabledApiException.prototype);
12
+ }
13
+ }
14
+ export class InternalServiceErrorException extends __BaseException {
15
+ name = "InternalServiceErrorException";
16
+ $fault = "server";
17
+ constructor(opts) {
18
+ super({
19
+ name: "InternalServiceErrorException",
20
+ $fault: "server",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
24
+ }
25
+ }
26
+ export class InvalidCustomerIdentifierException extends __BaseException {
27
+ name = "InvalidCustomerIdentifierException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "InvalidCustomerIdentifierException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, InvalidCustomerIdentifierException.prototype);
36
+ }
37
+ }
38
+ export class InvalidProductCodeException extends __BaseException {
39
+ name = "InvalidProductCodeException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "InvalidProductCodeException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, InvalidProductCodeException.prototype);
48
+ }
49
+ }
50
+ export class InvalidTagException extends __BaseException {
51
+ name = "InvalidTagException";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "InvalidTagException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, InvalidTagException.prototype);
60
+ }
61
+ }
62
+ export class InvalidUsageAllocationsException extends __BaseException {
63
+ name = "InvalidUsageAllocationsException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "InvalidUsageAllocationsException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, InvalidUsageAllocationsException.prototype);
72
+ }
73
+ }
74
+ export class InvalidUsageDimensionException extends __BaseException {
75
+ name = "InvalidUsageDimensionException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "InvalidUsageDimensionException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, InvalidUsageDimensionException.prototype);
84
+ }
85
+ }
86
+ export class ThrottlingException extends __BaseException {
87
+ name = "ThrottlingException";
88
+ $fault = "client";
89
+ constructor(opts) {
90
+ super({
91
+ name: "ThrottlingException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
96
+ }
97
+ }
98
+ export class TimestampOutOfBoundsException extends __BaseException {
99
+ name = "TimestampOutOfBoundsException";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "TimestampOutOfBoundsException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, TimestampOutOfBoundsException.prototype);
108
+ }
109
+ }
110
+ export class CustomerNotEntitledException extends __BaseException {
111
+ name = "CustomerNotEntitledException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "CustomerNotEntitledException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, CustomerNotEntitledException.prototype);
120
+ }
121
+ }
122
+ export class DuplicateRequestException extends __BaseException {
123
+ name = "DuplicateRequestException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "DuplicateRequestException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, DuplicateRequestException.prototype);
132
+ }
133
+ }
134
+ export class IdempotencyConflictException extends __BaseException {
135
+ name = "IdempotencyConflictException";
136
+ $fault = "client";
137
+ constructor(opts) {
138
+ super({
139
+ name: "IdempotencyConflictException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, IdempotencyConflictException.prototype);
144
+ }
145
+ }
146
+ export class InvalidEndpointRegionException extends __BaseException {
147
+ name = "InvalidEndpointRegionException";
148
+ $fault = "client";
149
+ constructor(opts) {
150
+ super({
151
+ name: "InvalidEndpointRegionException",
152
+ $fault: "client",
153
+ ...opts,
154
+ });
155
+ Object.setPrototypeOf(this, InvalidEndpointRegionException.prototype);
156
+ }
157
+ }
158
+ export class InvalidPublicKeyVersionException extends __BaseException {
159
+ name = "InvalidPublicKeyVersionException";
160
+ $fault = "client";
161
+ constructor(opts) {
162
+ super({
163
+ name: "InvalidPublicKeyVersionException",
164
+ $fault: "client",
165
+ ...opts,
166
+ });
167
+ Object.setPrototypeOf(this, InvalidPublicKeyVersionException.prototype);
168
+ }
169
+ }
170
+ export class InvalidRegionException extends __BaseException {
171
+ name = "InvalidRegionException";
172
+ $fault = "client";
173
+ constructor(opts) {
174
+ super({
175
+ name: "InvalidRegionException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, InvalidRegionException.prototype);
180
+ }
181
+ }
182
+ export class PlatformNotSupportedException extends __BaseException {
183
+ name = "PlatformNotSupportedException";
184
+ $fault = "client";
185
+ constructor(opts) {
186
+ super({
187
+ name: "PlatformNotSupportedException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, PlatformNotSupportedException.prototype);
192
+ }
193
+ }
194
+ export class ExpiredTokenException extends __BaseException {
195
+ name = "ExpiredTokenException";
196
+ $fault = "client";
197
+ constructor(opts) {
198
+ super({
199
+ name: "ExpiredTokenException",
200
+ $fault: "client",
201
+ ...opts,
202
+ });
203
+ Object.setPrototypeOf(this, ExpiredTokenException.prototype);
204
+ }
205
+ }
206
+ export class InvalidTokenException extends __BaseException {
207
+ name = "InvalidTokenException";
208
+ $fault = "client";
209
+ constructor(opts) {
210
+ super({
211
+ name: "InvalidTokenException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ Object.setPrototypeOf(this, InvalidTokenException.prototype);
216
+ }
217
+ }
@@ -1,222 +1 @@
1
- import { MarketplaceMeteringServiceException as __BaseException } from "./MarketplaceMeteringServiceException";
2
- export const UsageRecordResultStatus = {
3
- CUSTOMER_NOT_SUBSCRIBED: "CustomerNotSubscribed",
4
- DUPLICATE_RECORD: "DuplicateRecord",
5
- SUCCESS: "Success",
6
- };
7
- export class DisabledApiException extends __BaseException {
8
- name = "DisabledApiException";
9
- $fault = "client";
10
- constructor(opts) {
11
- super({
12
- name: "DisabledApiException",
13
- $fault: "client",
14
- ...opts,
15
- });
16
- Object.setPrototypeOf(this, DisabledApiException.prototype);
17
- }
18
- }
19
- export class InternalServiceErrorException extends __BaseException {
20
- name = "InternalServiceErrorException";
21
- $fault = "server";
22
- constructor(opts) {
23
- super({
24
- name: "InternalServiceErrorException",
25
- $fault: "server",
26
- ...opts,
27
- });
28
- Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
29
- }
30
- }
31
- export class InvalidCustomerIdentifierException extends __BaseException {
32
- name = "InvalidCustomerIdentifierException";
33
- $fault = "client";
34
- constructor(opts) {
35
- super({
36
- name: "InvalidCustomerIdentifierException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, InvalidCustomerIdentifierException.prototype);
41
- }
42
- }
43
- export class InvalidProductCodeException extends __BaseException {
44
- name = "InvalidProductCodeException";
45
- $fault = "client";
46
- constructor(opts) {
47
- super({
48
- name: "InvalidProductCodeException",
49
- $fault: "client",
50
- ...opts,
51
- });
52
- Object.setPrototypeOf(this, InvalidProductCodeException.prototype);
53
- }
54
- }
55
- export class InvalidTagException extends __BaseException {
56
- name = "InvalidTagException";
57
- $fault = "client";
58
- constructor(opts) {
59
- super({
60
- name: "InvalidTagException",
61
- $fault: "client",
62
- ...opts,
63
- });
64
- Object.setPrototypeOf(this, InvalidTagException.prototype);
65
- }
66
- }
67
- export class InvalidUsageAllocationsException extends __BaseException {
68
- name = "InvalidUsageAllocationsException";
69
- $fault = "client";
70
- constructor(opts) {
71
- super({
72
- name: "InvalidUsageAllocationsException",
73
- $fault: "client",
74
- ...opts,
75
- });
76
- Object.setPrototypeOf(this, InvalidUsageAllocationsException.prototype);
77
- }
78
- }
79
- export class InvalidUsageDimensionException extends __BaseException {
80
- name = "InvalidUsageDimensionException";
81
- $fault = "client";
82
- constructor(opts) {
83
- super({
84
- name: "InvalidUsageDimensionException",
85
- $fault: "client",
86
- ...opts,
87
- });
88
- Object.setPrototypeOf(this, InvalidUsageDimensionException.prototype);
89
- }
90
- }
91
- export class ThrottlingException extends __BaseException {
92
- name = "ThrottlingException";
93
- $fault = "client";
94
- constructor(opts) {
95
- super({
96
- name: "ThrottlingException",
97
- $fault: "client",
98
- ...opts,
99
- });
100
- Object.setPrototypeOf(this, ThrottlingException.prototype);
101
- }
102
- }
103
- export class TimestampOutOfBoundsException extends __BaseException {
104
- name = "TimestampOutOfBoundsException";
105
- $fault = "client";
106
- constructor(opts) {
107
- super({
108
- name: "TimestampOutOfBoundsException",
109
- $fault: "client",
110
- ...opts,
111
- });
112
- Object.setPrototypeOf(this, TimestampOutOfBoundsException.prototype);
113
- }
114
- }
115
- export class CustomerNotEntitledException extends __BaseException {
116
- name = "CustomerNotEntitledException";
117
- $fault = "client";
118
- constructor(opts) {
119
- super({
120
- name: "CustomerNotEntitledException",
121
- $fault: "client",
122
- ...opts,
123
- });
124
- Object.setPrototypeOf(this, CustomerNotEntitledException.prototype);
125
- }
126
- }
127
- export class DuplicateRequestException extends __BaseException {
128
- name = "DuplicateRequestException";
129
- $fault = "client";
130
- constructor(opts) {
131
- super({
132
- name: "DuplicateRequestException",
133
- $fault: "client",
134
- ...opts,
135
- });
136
- Object.setPrototypeOf(this, DuplicateRequestException.prototype);
137
- }
138
- }
139
- export class IdempotencyConflictException extends __BaseException {
140
- name = "IdempotencyConflictException";
141
- $fault = "client";
142
- constructor(opts) {
143
- super({
144
- name: "IdempotencyConflictException",
145
- $fault: "client",
146
- ...opts,
147
- });
148
- Object.setPrototypeOf(this, IdempotencyConflictException.prototype);
149
- }
150
- }
151
- export class InvalidEndpointRegionException extends __BaseException {
152
- name = "InvalidEndpointRegionException";
153
- $fault = "client";
154
- constructor(opts) {
155
- super({
156
- name: "InvalidEndpointRegionException",
157
- $fault: "client",
158
- ...opts,
159
- });
160
- Object.setPrototypeOf(this, InvalidEndpointRegionException.prototype);
161
- }
162
- }
163
- export class InvalidPublicKeyVersionException extends __BaseException {
164
- name = "InvalidPublicKeyVersionException";
165
- $fault = "client";
166
- constructor(opts) {
167
- super({
168
- name: "InvalidPublicKeyVersionException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, InvalidPublicKeyVersionException.prototype);
173
- }
174
- }
175
- export class InvalidRegionException extends __BaseException {
176
- name = "InvalidRegionException";
177
- $fault = "client";
178
- constructor(opts) {
179
- super({
180
- name: "InvalidRegionException",
181
- $fault: "client",
182
- ...opts,
183
- });
184
- Object.setPrototypeOf(this, InvalidRegionException.prototype);
185
- }
186
- }
187
- export class PlatformNotSupportedException extends __BaseException {
188
- name = "PlatformNotSupportedException";
189
- $fault = "client";
190
- constructor(opts) {
191
- super({
192
- name: "PlatformNotSupportedException",
193
- $fault: "client",
194
- ...opts,
195
- });
196
- Object.setPrototypeOf(this, PlatformNotSupportedException.prototype);
197
- }
198
- }
199
- export class ExpiredTokenException extends __BaseException {
200
- name = "ExpiredTokenException";
201
- $fault = "client";
202
- constructor(opts) {
203
- super({
204
- name: "ExpiredTokenException",
205
- $fault: "client",
206
- ...opts,
207
- });
208
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
209
- }
210
- }
211
- export class InvalidTokenException extends __BaseException {
212
- name = "InvalidTokenException";
213
- $fault = "client";
214
- constructor(opts) {
215
- super({
216
- name: "InvalidTokenException",
217
- $fault: "client",
218
- ...opts,
219
- });
220
- Object.setPrototypeOf(this, InvalidTokenException.prototype);
221
- }
222
- }
1
+ export {};
@@ -68,7 +68,7 @@ const _s = "server";
68
68
  const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplacemetering";
69
69
  const n0 = "com.amazonaws.marketplacemetering";
70
70
  import { TypeRegistry } from "@smithy/core/schema";
71
- import { CustomerNotEntitledException as __CustomerNotEntitledException, DisabledApiException as __DisabledApiException, DuplicateRequestException as __DuplicateRequestException, ExpiredTokenException as __ExpiredTokenException, IdempotencyConflictException as __IdempotencyConflictException, InternalServiceErrorException as __InternalServiceErrorException, InvalidCustomerIdentifierException as __InvalidCustomerIdentifierException, InvalidEndpointRegionException as __InvalidEndpointRegionException, InvalidProductCodeException as __InvalidProductCodeException, InvalidPublicKeyVersionException as __InvalidPublicKeyVersionException, InvalidRegionException as __InvalidRegionException, InvalidTagException as __InvalidTagException, InvalidTokenException as __InvalidTokenException, InvalidUsageAllocationsException as __InvalidUsageAllocationsException, InvalidUsageDimensionException as __InvalidUsageDimensionException, PlatformNotSupportedException as __PlatformNotSupportedException, ThrottlingException as __ThrottlingException, TimestampOutOfBoundsException as __TimestampOutOfBoundsException, } from "../models/index";
71
+ import { CustomerNotEntitledException as __CustomerNotEntitledException, DisabledApiException as __DisabledApiException, DuplicateRequestException as __DuplicateRequestException, ExpiredTokenException as __ExpiredTokenException, IdempotencyConflictException as __IdempotencyConflictException, InternalServiceErrorException as __InternalServiceErrorException, InvalidCustomerIdentifierException as __InvalidCustomerIdentifierException, InvalidEndpointRegionException as __InvalidEndpointRegionException, InvalidProductCodeException as __InvalidProductCodeException, InvalidPublicKeyVersionException as __InvalidPublicKeyVersionException, InvalidRegionException as __InvalidRegionException, InvalidTagException as __InvalidTagException, InvalidTokenException as __InvalidTokenException, InvalidUsageAllocationsException as __InvalidUsageAllocationsException, InvalidUsageDimensionException as __InvalidUsageDimensionException, PlatformNotSupportedException as __PlatformNotSupportedException, ThrottlingException as __ThrottlingException, TimestampOutOfBoundsException as __TimestampOutOfBoundsException, } from "../models/errors";
72
72
  import { MarketplaceMeteringServiceException as __MarketplaceMeteringServiceException } from "../models/MarketplaceMeteringServiceException";
73
73
  export var BatchMeterUsageRequest = [3, n0, _BMUR, 0, [_UR, _PC], [() => UsageRecordList, 0]];
74
74
  export var BatchMeterUsageResult = [
@@ -147,5 +147,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
147
147
  export type { RuntimeExtension } from "./runtimeExtensions";
148
148
  export type { MarketplaceMeteringExtensionConfiguration } from "./extensionConfiguration";
149
149
  export * from "./commands";
150
- export * from "./models";
150
+ export * from "./models/enums";
151
+ export * from "./models/errors";
152
+ export type * from "./models/models_0";
151
153
  export { MarketplaceMeteringServiceException } from "./models/MarketplaceMeteringServiceException";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const UsageRecordResultStatus: {
6
+ readonly CUSTOMER_NOT_SUBSCRIBED: "CustomerNotSubscribed";
7
+ readonly DUPLICATE_RECORD: "DuplicateRecord";
8
+ readonly SUCCESS: "Success";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type UsageRecordResultStatus = (typeof UsageRecordResultStatus)[keyof typeof UsageRecordResultStatus];