@aws-sdk/client-freetier 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
@@ -127,39 +127,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends FreeTierServic
127
127
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
128
  }
129
129
  };
130
- const AccountPlanStatus = {
131
- ACTIVE: "ACTIVE",
132
- EXPIRED: "EXPIRED",
133
- NOT_STARTED: "NOT_STARTED",
134
- };
135
- const AccountPlanType = {
136
- FREE: "FREE",
137
- PAID: "PAID",
138
- };
139
- const CurrencyCode = {
140
- USD: "USD",
141
- };
142
- const ActivityStatus = {
143
- COMPLETED: "COMPLETED",
144
- EXPIRING: "EXPIRING",
145
- IN_PROGRESS: "IN_PROGRESS",
146
- NOT_STARTED: "NOT_STARTED",
147
- };
148
- const LanguageCode = {
149
- DE_DE: "de-DE",
150
- EN_GB: "en-GB",
151
- EN_US: "en-US",
152
- ES_ES: "es-ES",
153
- FR_FR: "fr-FR",
154
- ID_ID: "id-ID",
155
- IT_IT: "it-IT",
156
- JA_JP: "ja-JP",
157
- KO_KR: "ko-KR",
158
- PT_PT: "pt-PT",
159
- TR_TR: "tr-TR",
160
- ZH_CN: "zh-CN",
161
- ZH_TW: "zh-TW",
162
- };
163
130
  let InternalServerException$1 = class InternalServerException extends FreeTierServiceException$1 {
164
131
  name = "InternalServerException";
165
132
  $fault = "server";
@@ -208,22 +175,6 @@ let ValidationException$1 = class ValidationException extends FreeTierServiceExc
208
175
  Object.setPrototypeOf(this, ValidationException.prototype);
209
176
  }
210
177
  };
211
- const Dimension = {
212
- DESCRIPTION: "DESCRIPTION",
213
- FREE_TIER_TYPE: "FREE_TIER_TYPE",
214
- OPERATION: "OPERATION",
215
- REGION: "REGION",
216
- SERVICE: "SERVICE",
217
- USAGE_PERCENTAGE: "USAGE_PERCENTAGE",
218
- USAGE_TYPE: "USAGE_TYPE",
219
- };
220
- const MatchOption = {
221
- CONTAINS: "CONTAINS",
222
- ENDS_WITH: "ENDS_WITH",
223
- EQUALS: "EQUALS",
224
- GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL",
225
- STARTS_WITH: "STARTS_WITH",
226
- };
227
178
 
228
179
  const _A = "And";
229
180
  const _ADE = "AccessDeniedException";
@@ -547,6 +498,56 @@ const paginateGetFreeTierUsage = core.createPaginator(FreeTierClient, GetFreeTie
547
498
 
548
499
  const paginateListAccountActivities = core.createPaginator(FreeTierClient, ListAccountActivitiesCommand, "nextToken", "nextToken", "maxResults");
549
500
 
501
+ const AccountPlanStatus = {
502
+ ACTIVE: "ACTIVE",
503
+ EXPIRED: "EXPIRED",
504
+ NOT_STARTED: "NOT_STARTED",
505
+ };
506
+ const AccountPlanType = {
507
+ FREE: "FREE",
508
+ PAID: "PAID",
509
+ };
510
+ const CurrencyCode = {
511
+ USD: "USD",
512
+ };
513
+ const ActivityStatus = {
514
+ COMPLETED: "COMPLETED",
515
+ EXPIRING: "EXPIRING",
516
+ IN_PROGRESS: "IN_PROGRESS",
517
+ NOT_STARTED: "NOT_STARTED",
518
+ };
519
+ const LanguageCode = {
520
+ DE_DE: "de-DE",
521
+ EN_GB: "en-GB",
522
+ EN_US: "en-US",
523
+ ES_ES: "es-ES",
524
+ FR_FR: "fr-FR",
525
+ ID_ID: "id-ID",
526
+ IT_IT: "it-IT",
527
+ JA_JP: "ja-JP",
528
+ KO_KR: "ko-KR",
529
+ PT_PT: "pt-PT",
530
+ TR_TR: "tr-TR",
531
+ ZH_CN: "zh-CN",
532
+ ZH_TW: "zh-TW",
533
+ };
534
+ const Dimension = {
535
+ DESCRIPTION: "DESCRIPTION",
536
+ FREE_TIER_TYPE: "FREE_TIER_TYPE",
537
+ OPERATION: "OPERATION",
538
+ REGION: "REGION",
539
+ SERVICE: "SERVICE",
540
+ USAGE_PERCENTAGE: "USAGE_PERCENTAGE",
541
+ USAGE_TYPE: "USAGE_TYPE",
542
+ };
543
+ const MatchOption = {
544
+ CONTAINS: "CONTAINS",
545
+ ENDS_WITH: "ENDS_WITH",
546
+ EQUALS: "EQUALS",
547
+ GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL",
548
+ STARTS_WITH: "STARTS_WITH",
549
+ };
550
+
550
551
  Object.defineProperty(exports, "$Command", {
551
552
  enumerable: true,
552
553
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./FreeTierClient";
2
2
  export * from "./FreeTier";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { FreeTierServiceException } from "./models/FreeTierServiceException";
@@ -0,0 +1,49 @@
1
+ export const AccountPlanStatus = {
2
+ ACTIVE: "ACTIVE",
3
+ EXPIRED: "EXPIRED",
4
+ NOT_STARTED: "NOT_STARTED",
5
+ };
6
+ export const AccountPlanType = {
7
+ FREE: "FREE",
8
+ PAID: "PAID",
9
+ };
10
+ export const CurrencyCode = {
11
+ USD: "USD",
12
+ };
13
+ export const ActivityStatus = {
14
+ COMPLETED: "COMPLETED",
15
+ EXPIRING: "EXPIRING",
16
+ IN_PROGRESS: "IN_PROGRESS",
17
+ NOT_STARTED: "NOT_STARTED",
18
+ };
19
+ export const LanguageCode = {
20
+ DE_DE: "de-DE",
21
+ EN_GB: "en-GB",
22
+ EN_US: "en-US",
23
+ ES_ES: "es-ES",
24
+ FR_FR: "fr-FR",
25
+ ID_ID: "id-ID",
26
+ IT_IT: "it-IT",
27
+ JA_JP: "ja-JP",
28
+ KO_KR: "ko-KR",
29
+ PT_PT: "pt-PT",
30
+ TR_TR: "tr-TR",
31
+ ZH_CN: "zh-CN",
32
+ ZH_TW: "zh-TW",
33
+ };
34
+ export const Dimension = {
35
+ DESCRIPTION: "DESCRIPTION",
36
+ FREE_TIER_TYPE: "FREE_TIER_TYPE",
37
+ OPERATION: "OPERATION",
38
+ REGION: "REGION",
39
+ SERVICE: "SERVICE",
40
+ USAGE_PERCENTAGE: "USAGE_PERCENTAGE",
41
+ USAGE_TYPE: "USAGE_TYPE",
42
+ };
43
+ export const MatchOption = {
44
+ CONTAINS: "CONTAINS",
45
+ ENDS_WITH: "ENDS_WITH",
46
+ EQUALS: "EQUALS",
47
+ GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL",
48
+ STARTS_WITH: "STARTS_WITH",
49
+ };
@@ -0,0 +1,61 @@
1
+ import { FreeTierServiceException as __BaseException } from "./FreeTierServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class InternalServerException extends __BaseException {
15
+ name = "InternalServerException";
16
+ $fault = "server";
17
+ constructor(opts) {
18
+ super({
19
+ name: "InternalServerException",
20
+ $fault: "server",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, InternalServerException.prototype);
24
+ }
25
+ }
26
+ export class ResourceNotFoundException extends __BaseException {
27
+ name = "ResourceNotFoundException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "ResourceNotFoundException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
36
+ }
37
+ }
38
+ export class ThrottlingException extends __BaseException {
39
+ name = "ThrottlingException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "ThrottlingException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
48
+ }
49
+ }
50
+ export class ValidationException extends __BaseException {
51
+ name = "ValidationException";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "ValidationException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, ValidationException.prototype);
60
+ }
61
+ }
@@ -1,110 +1 @@
1
- import { FreeTierServiceException as __BaseException } from "./FreeTierServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export const AccountPlanStatus = {
15
- ACTIVE: "ACTIVE",
16
- EXPIRED: "EXPIRED",
17
- NOT_STARTED: "NOT_STARTED",
18
- };
19
- export const AccountPlanType = {
20
- FREE: "FREE",
21
- PAID: "PAID",
22
- };
23
- export const CurrencyCode = {
24
- USD: "USD",
25
- };
26
- export const ActivityStatus = {
27
- COMPLETED: "COMPLETED",
28
- EXPIRING: "EXPIRING",
29
- IN_PROGRESS: "IN_PROGRESS",
30
- NOT_STARTED: "NOT_STARTED",
31
- };
32
- export const LanguageCode = {
33
- DE_DE: "de-DE",
34
- EN_GB: "en-GB",
35
- EN_US: "en-US",
36
- ES_ES: "es-ES",
37
- FR_FR: "fr-FR",
38
- ID_ID: "id-ID",
39
- IT_IT: "it-IT",
40
- JA_JP: "ja-JP",
41
- KO_KR: "ko-KR",
42
- PT_PT: "pt-PT",
43
- TR_TR: "tr-TR",
44
- ZH_CN: "zh-CN",
45
- ZH_TW: "zh-TW",
46
- };
47
- export class InternalServerException extends __BaseException {
48
- name = "InternalServerException";
49
- $fault = "server";
50
- constructor(opts) {
51
- super({
52
- name: "InternalServerException",
53
- $fault: "server",
54
- ...opts,
55
- });
56
- Object.setPrototypeOf(this, InternalServerException.prototype);
57
- }
58
- }
59
- export class ResourceNotFoundException extends __BaseException {
60
- name = "ResourceNotFoundException";
61
- $fault = "client";
62
- constructor(opts) {
63
- super({
64
- name: "ResourceNotFoundException",
65
- $fault: "client",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
69
- }
70
- }
71
- export class ThrottlingException extends __BaseException {
72
- name = "ThrottlingException";
73
- $fault = "client";
74
- constructor(opts) {
75
- super({
76
- name: "ThrottlingException",
77
- $fault: "client",
78
- ...opts,
79
- });
80
- Object.setPrototypeOf(this, ThrottlingException.prototype);
81
- }
82
- }
83
- export class ValidationException extends __BaseException {
84
- name = "ValidationException";
85
- $fault = "client";
86
- constructor(opts) {
87
- super({
88
- name: "ValidationException",
89
- $fault: "client",
90
- ...opts,
91
- });
92
- Object.setPrototypeOf(this, ValidationException.prototype);
93
- }
94
- }
95
- export const Dimension = {
96
- DESCRIPTION: "DESCRIPTION",
97
- FREE_TIER_TYPE: "FREE_TIER_TYPE",
98
- OPERATION: "OPERATION",
99
- REGION: "REGION",
100
- SERVICE: "SERVICE",
101
- USAGE_PERCENTAGE: "USAGE_PERCENTAGE",
102
- USAGE_TYPE: "USAGE_TYPE",
103
- };
104
- export const MatchOption = {
105
- CONTAINS: "CONTAINS",
106
- ENDS_WITH: "ENDS_WITH",
107
- EQUALS: "EQUALS",
108
- GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL",
109
- STARTS_WITH: "STARTS_WITH",
110
- };
1
+ export {};
@@ -75,8 +75,8 @@ const _u = "unit";
75
75
  const _uT = "usageType";
76
76
  const n0 = "com.amazonaws.freetier";
77
77
  import { TypeRegistry } from "@smithy/core/schema";
78
+ import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
78
79
  import { FreeTierServiceException as __FreeTierServiceException } from "../models/FreeTierServiceException";
79
- import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
80
80
  export var AccessDeniedException = [
81
81
  -3,
82
82
  n0,
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { FreeTierExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/enums";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
14
16
  export { FreeTierServiceException } from "./models/FreeTierServiceException";
@@ -0,0 +1,105 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const AccountPlanStatus: {
6
+ readonly ACTIVE: "ACTIVE";
7
+ readonly EXPIRED: "EXPIRED";
8
+ readonly NOT_STARTED: "NOT_STARTED";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type AccountPlanStatus = (typeof AccountPlanStatus)[keyof typeof AccountPlanStatus];
14
+ /**
15
+ * @public
16
+ * @enum
17
+ */
18
+ export declare const AccountPlanType: {
19
+ readonly FREE: "FREE";
20
+ readonly PAID: "PAID";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type AccountPlanType = (typeof AccountPlanType)[keyof typeof AccountPlanType];
26
+ /**
27
+ * @public
28
+ * @enum
29
+ */
30
+ export declare const CurrencyCode: {
31
+ readonly USD: "USD";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const ActivityStatus: {
42
+ readonly COMPLETED: "COMPLETED";
43
+ readonly EXPIRING: "EXPIRING";
44
+ readonly IN_PROGRESS: "IN_PROGRESS";
45
+ readonly NOT_STARTED: "NOT_STARTED";
46
+ };
47
+ /**
48
+ * @public
49
+ */
50
+ export type ActivityStatus = (typeof ActivityStatus)[keyof typeof ActivityStatus];
51
+ /**
52
+ * @public
53
+ * @enum
54
+ */
55
+ export declare const LanguageCode: {
56
+ readonly DE_DE: "de-DE";
57
+ readonly EN_GB: "en-GB";
58
+ readonly EN_US: "en-US";
59
+ readonly ES_ES: "es-ES";
60
+ readonly FR_FR: "fr-FR";
61
+ readonly ID_ID: "id-ID";
62
+ readonly IT_IT: "it-IT";
63
+ readonly JA_JP: "ja-JP";
64
+ readonly KO_KR: "ko-KR";
65
+ readonly PT_PT: "pt-PT";
66
+ readonly TR_TR: "tr-TR";
67
+ readonly ZH_CN: "zh-CN";
68
+ readonly ZH_TW: "zh-TW";
69
+ };
70
+ /**
71
+ * @public
72
+ */
73
+ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
74
+ /**
75
+ * @public
76
+ * @enum
77
+ */
78
+ export declare const Dimension: {
79
+ readonly DESCRIPTION: "DESCRIPTION";
80
+ readonly FREE_TIER_TYPE: "FREE_TIER_TYPE";
81
+ readonly OPERATION: "OPERATION";
82
+ readonly REGION: "REGION";
83
+ readonly SERVICE: "SERVICE";
84
+ readonly USAGE_PERCENTAGE: "USAGE_PERCENTAGE";
85
+ readonly USAGE_TYPE: "USAGE_TYPE";
86
+ };
87
+ /**
88
+ * @public
89
+ */
90
+ export type Dimension = (typeof Dimension)[keyof typeof Dimension];
91
+ /**
92
+ * @public
93
+ * @enum
94
+ */
95
+ export declare const MatchOption: {
96
+ readonly CONTAINS: "CONTAINS";
97
+ readonly ENDS_WITH: "ENDS_WITH";
98
+ readonly EQUALS: "EQUALS";
99
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
100
+ readonly STARTS_WITH: "STARTS_WITH";
101
+ };
102
+ /**
103
+ * @public
104
+ */
105
+ export type MatchOption = (typeof MatchOption)[keyof typeof MatchOption];
@@ -0,0 +1,62 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { FreeTierServiceException as __BaseException } from "./FreeTierServiceException";
3
+ /**
4
+ * <p> You don't have sufficient access to perform this action. </p>
5
+ * @public
6
+ */
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>An unexpected error occurred during the processing of your request.</p>
17
+ * @public
18
+ */
19
+ export declare class InternalServerException extends __BaseException {
20
+ readonly name: "InternalServerException";
21
+ readonly $fault: "server";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
26
+ }
27
+ /**
28
+ * <p> This exception is thrown when the requested resource cannot be found. </p>
29
+ * @public
30
+ */
31
+ export declare class ResourceNotFoundException extends __BaseException {
32
+ readonly name: "ResourceNotFoundException";
33
+ readonly $fault: "client";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>The request was denied due to request throttling.</p>
41
+ * @public
42
+ */
43
+ export declare class ThrottlingException extends __BaseException {
44
+ readonly name: "ThrottlingException";
45
+ readonly $fault: "client";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
50
+ }
51
+ /**
52
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
53
+ * @public
54
+ */
55
+ export declare class ValidationException extends __BaseException {
56
+ readonly name: "ValidationException";
57
+ readonly $fault: "client";
58
+ /**
59
+ * @internal
60
+ */
61
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
62
+ }
@@ -1,53 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { FreeTierServiceException as __BaseException } from "./FreeTierServiceException";
3
- /**
4
- * <p> You don't have sufficient access to perform this action. </p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
15
- /**
16
- * @public
17
- * @enum
18
- */
19
- export declare const AccountPlanStatus: {
20
- readonly ACTIVE: "ACTIVE";
21
- readonly EXPIRED: "EXPIRED";
22
- readonly NOT_STARTED: "NOT_STARTED";
23
- };
24
- /**
25
- * @public
26
- */
27
- export type AccountPlanStatus = (typeof AccountPlanStatus)[keyof typeof AccountPlanStatus];
28
- /**
29
- * @public
30
- * @enum
31
- */
32
- export declare const AccountPlanType: {
33
- readonly FREE: "FREE";
34
- readonly PAID: "PAID";
35
- };
36
- /**
37
- * @public
38
- */
39
- export type AccountPlanType = (typeof AccountPlanType)[keyof typeof AccountPlanType];
40
- /**
41
- * @public
42
- * @enum
43
- */
44
- export declare const CurrencyCode: {
45
- readonly USD: "USD";
46
- };
47
- /**
48
- * @public
49
- */
50
- export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
1
+ import { AccountPlanStatus, AccountPlanType, ActivityStatus, CurrencyCode, Dimension, LanguageCode, MatchOption } from "./enums";
51
2
  /**
52
3
  * <p> The monetary amount of the credit. </p>
53
4
  * @public
@@ -97,20 +48,6 @@ export declare namespace ActivityReward {
97
48
  _: (name: string, value: any) => T;
98
49
  }
99
50
  }
100
- /**
101
- * @public
102
- * @enum
103
- */
104
- export declare const ActivityStatus: {
105
- readonly COMPLETED: "COMPLETED";
106
- readonly EXPIRING: "EXPIRING";
107
- readonly IN_PROGRESS: "IN_PROGRESS";
108
- readonly NOT_STARTED: "NOT_STARTED";
109
- };
110
- /**
111
- * @public
112
- */
113
- export type ActivityStatus = (typeof ActivityStatus)[keyof typeof ActivityStatus];
114
51
  /**
115
52
  * <p> The summary of activities. </p>
116
53
  * @public
@@ -137,29 +74,6 @@ export interface ActivitySummary {
137
74
  */
138
75
  status: ActivityStatus | undefined;
139
76
  }
140
- /**
141
- * @public
142
- * @enum
143
- */
144
- export declare const LanguageCode: {
145
- readonly DE_DE: "de-DE";
146
- readonly EN_GB: "en-GB";
147
- readonly EN_US: "en-US";
148
- readonly ES_ES: "es-ES";
149
- readonly FR_FR: "fr-FR";
150
- readonly ID_ID: "id-ID";
151
- readonly IT_IT: "it-IT";
152
- readonly JA_JP: "ja-JP";
153
- readonly KO_KR: "ko-KR";
154
- readonly PT_PT: "pt-PT";
155
- readonly TR_TR: "tr-TR";
156
- readonly ZH_CN: "zh-CN";
157
- readonly ZH_TW: "zh-TW";
158
- };
159
- /**
160
- * @public
161
- */
162
- export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
163
77
  /**
164
78
  * @public
165
79
  */
@@ -230,54 +144,6 @@ export interface GetAccountActivityResponse {
230
144
  */
231
145
  completedAt?: Date | undefined;
232
146
  }
233
- /**
234
- * <p>An unexpected error occurred during the processing of your request.</p>
235
- * @public
236
- */
237
- export declare class InternalServerException extends __BaseException {
238
- readonly name: "InternalServerException";
239
- readonly $fault: "server";
240
- /**
241
- * @internal
242
- */
243
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
244
- }
245
- /**
246
- * <p> This exception is thrown when the requested resource cannot be found. </p>
247
- * @public
248
- */
249
- export declare class ResourceNotFoundException extends __BaseException {
250
- readonly name: "ResourceNotFoundException";
251
- readonly $fault: "client";
252
- /**
253
- * @internal
254
- */
255
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
256
- }
257
- /**
258
- * <p>The request was denied due to request throttling.</p>
259
- * @public
260
- */
261
- export declare class ThrottlingException extends __BaseException {
262
- readonly name: "ThrottlingException";
263
- readonly $fault: "client";
264
- /**
265
- * @internal
266
- */
267
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
268
- }
269
- /**
270
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
271
- * @public
272
- */
273
- export declare class ValidationException extends __BaseException {
274
- readonly name: "ValidationException";
275
- readonly $fault: "client";
276
- /**
277
- * @internal
278
- */
279
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
280
- }
281
147
  /**
282
148
  * @public
283
149
  */
@@ -313,38 +179,6 @@ export interface GetAccountPlanStateResponse {
313
179
  */
314
180
  accountPlanExpirationDate?: Date | undefined;
315
181
  }
316
- /**
317
- * @public
318
- * @enum
319
- */
320
- export declare const Dimension: {
321
- readonly DESCRIPTION: "DESCRIPTION";
322
- readonly FREE_TIER_TYPE: "FREE_TIER_TYPE";
323
- readonly OPERATION: "OPERATION";
324
- readonly REGION: "REGION";
325
- readonly SERVICE: "SERVICE";
326
- readonly USAGE_PERCENTAGE: "USAGE_PERCENTAGE";
327
- readonly USAGE_TYPE: "USAGE_TYPE";
328
- };
329
- /**
330
- * @public
331
- */
332
- export type Dimension = (typeof Dimension)[keyof typeof Dimension];
333
- /**
334
- * @public
335
- * @enum
336
- */
337
- export declare const MatchOption: {
338
- readonly CONTAINS: "CONTAINS";
339
- readonly ENDS_WITH: "ENDS_WITH";
340
- readonly EQUALS: "EQUALS";
341
- readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
342
- readonly STARTS_WITH: "STARTS_WITH";
343
- };
344
- /**
345
- * @public
346
- */
347
- export type MatchOption = (typeof MatchOption)[keyof typeof MatchOption];
348
182
  /**
349
183
  * <p>Contains the specifications for the filters to use for your request.</p>
350
184
  * @public
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { FreeTierExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { FreeTierServiceException } from "./models/FreeTierServiceException";
@@ -0,0 +1,59 @@
1
+ export declare const AccountPlanStatus: {
2
+ readonly ACTIVE: "ACTIVE";
3
+ readonly EXPIRED: "EXPIRED";
4
+ readonly NOT_STARTED: "NOT_STARTED";
5
+ };
6
+ export type AccountPlanStatus =
7
+ (typeof AccountPlanStatus)[keyof typeof AccountPlanStatus];
8
+ export declare const AccountPlanType: {
9
+ readonly FREE: "FREE";
10
+ readonly PAID: "PAID";
11
+ };
12
+ export type AccountPlanType =
13
+ (typeof AccountPlanType)[keyof typeof AccountPlanType];
14
+ export declare const CurrencyCode: {
15
+ readonly USD: "USD";
16
+ };
17
+ export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
18
+ export declare const ActivityStatus: {
19
+ readonly COMPLETED: "COMPLETED";
20
+ readonly EXPIRING: "EXPIRING";
21
+ readonly IN_PROGRESS: "IN_PROGRESS";
22
+ readonly NOT_STARTED: "NOT_STARTED";
23
+ };
24
+ export type ActivityStatus =
25
+ (typeof ActivityStatus)[keyof typeof ActivityStatus];
26
+ export declare const LanguageCode: {
27
+ readonly DE_DE: "de-DE";
28
+ readonly EN_GB: "en-GB";
29
+ readonly EN_US: "en-US";
30
+ readonly ES_ES: "es-ES";
31
+ readonly FR_FR: "fr-FR";
32
+ readonly ID_ID: "id-ID";
33
+ readonly IT_IT: "it-IT";
34
+ readonly JA_JP: "ja-JP";
35
+ readonly KO_KR: "ko-KR";
36
+ readonly PT_PT: "pt-PT";
37
+ readonly TR_TR: "tr-TR";
38
+ readonly ZH_CN: "zh-CN";
39
+ readonly ZH_TW: "zh-TW";
40
+ };
41
+ export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
42
+ export declare const Dimension: {
43
+ readonly DESCRIPTION: "DESCRIPTION";
44
+ readonly FREE_TIER_TYPE: "FREE_TIER_TYPE";
45
+ readonly OPERATION: "OPERATION";
46
+ readonly REGION: "REGION";
47
+ readonly SERVICE: "SERVICE";
48
+ readonly USAGE_PERCENTAGE: "USAGE_PERCENTAGE";
49
+ readonly USAGE_TYPE: "USAGE_TYPE";
50
+ };
51
+ export type Dimension = (typeof Dimension)[keyof typeof Dimension];
52
+ export declare const MatchOption: {
53
+ readonly CONTAINS: "CONTAINS";
54
+ readonly ENDS_WITH: "ENDS_WITH";
55
+ readonly EQUALS: "EQUALS";
56
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
57
+ readonly STARTS_WITH: "STARTS_WITH";
58
+ };
59
+ export type MatchOption = (typeof MatchOption)[keyof typeof MatchOption];
@@ -0,0 +1,37 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { FreeTierServiceException as __BaseException } from "./FreeTierServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
10
+ export declare class InternalServerException extends __BaseException {
11
+ readonly name: "InternalServerException";
12
+ readonly $fault: "server";
13
+ constructor(
14
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
15
+ );
16
+ }
17
+ export declare class ResourceNotFoundException extends __BaseException {
18
+ readonly name: "ResourceNotFoundException";
19
+ readonly $fault: "client";
20
+ constructor(
21
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
22
+ );
23
+ }
24
+ export declare class ThrottlingException extends __BaseException {
25
+ readonly name: "ThrottlingException";
26
+ readonly $fault: "client";
27
+ constructor(
28
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
29
+ );
30
+ }
31
+ export declare class ValidationException extends __BaseException {
32
+ readonly name: "ValidationException";
33
+ readonly $fault: "client";
34
+ constructor(
35
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
36
+ );
37
+ }
@@ -1,29 +1,12 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { FreeTierServiceException as __BaseException } from "./FreeTierServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- constructor(
7
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
- );
9
- }
10
- export declare const AccountPlanStatus: {
11
- readonly ACTIVE: "ACTIVE";
12
- readonly EXPIRED: "EXPIRED";
13
- readonly NOT_STARTED: "NOT_STARTED";
14
- };
15
- export type AccountPlanStatus =
16
- (typeof AccountPlanStatus)[keyof typeof AccountPlanStatus];
17
- export declare const AccountPlanType: {
18
- readonly FREE: "FREE";
19
- readonly PAID: "PAID";
20
- };
21
- export type AccountPlanType =
22
- (typeof AccountPlanType)[keyof typeof AccountPlanType];
23
- export declare const CurrencyCode: {
24
- readonly USD: "USD";
25
- };
26
- export type CurrencyCode = (typeof CurrencyCode)[keyof typeof CurrencyCode];
1
+ import {
2
+ AccountPlanStatus,
3
+ AccountPlanType,
4
+ ActivityStatus,
5
+ CurrencyCode,
6
+ Dimension,
7
+ LanguageCode,
8
+ MatchOption,
9
+ } from "./enums";
27
10
  export interface MonetaryAmount {
28
11
  amount: number | undefined;
29
12
  unit: CurrencyCode | undefined;
@@ -45,36 +28,12 @@ export declare namespace ActivityReward {
45
28
  _: (name: string, value: any) => T;
46
29
  }
47
30
  }
48
- export declare const ActivityStatus: {
49
- readonly COMPLETED: "COMPLETED";
50
- readonly EXPIRING: "EXPIRING";
51
- readonly IN_PROGRESS: "IN_PROGRESS";
52
- readonly NOT_STARTED: "NOT_STARTED";
53
- };
54
- export type ActivityStatus =
55
- (typeof ActivityStatus)[keyof typeof ActivityStatus];
56
31
  export interface ActivitySummary {
57
32
  activityId: string | undefined;
58
33
  title: string | undefined;
59
34
  reward: ActivityReward | undefined;
60
35
  status: ActivityStatus | undefined;
61
36
  }
62
- export declare const LanguageCode: {
63
- readonly DE_DE: "de-DE";
64
- readonly EN_GB: "en-GB";
65
- readonly EN_US: "en-US";
66
- readonly ES_ES: "es-ES";
67
- readonly FR_FR: "fr-FR";
68
- readonly ID_ID: "id-ID";
69
- readonly IT_IT: "it-IT";
70
- readonly JA_JP: "ja-JP";
71
- readonly KO_KR: "ko-KR";
72
- readonly PT_PT: "pt-PT";
73
- readonly TR_TR: "tr-TR";
74
- readonly ZH_CN: "zh-CN";
75
- readonly ZH_TW: "zh-TW";
76
- };
77
- export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
78
37
  export interface GetAccountActivityRequest {
79
38
  activityId: string | undefined;
80
39
  languageCode?: LanguageCode | undefined;
@@ -91,34 +50,6 @@ export interface GetAccountActivityResponse {
91
50
  startedAt?: Date | undefined;
92
51
  completedAt?: Date | undefined;
93
52
  }
94
- export declare class InternalServerException extends __BaseException {
95
- readonly name: "InternalServerException";
96
- readonly $fault: "server";
97
- constructor(
98
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
99
- );
100
- }
101
- export declare class ResourceNotFoundException extends __BaseException {
102
- readonly name: "ResourceNotFoundException";
103
- readonly $fault: "client";
104
- constructor(
105
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
106
- );
107
- }
108
- export declare class ThrottlingException extends __BaseException {
109
- readonly name: "ThrottlingException";
110
- readonly $fault: "client";
111
- constructor(
112
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
113
- );
114
- }
115
- export declare class ValidationException extends __BaseException {
116
- readonly name: "ValidationException";
117
- readonly $fault: "client";
118
- constructor(
119
- opts: __ExceptionOptionType<ValidationException, __BaseException>
120
- );
121
- }
122
53
  export interface GetAccountPlanStateRequest {}
123
54
  export interface GetAccountPlanStateResponse {
124
55
  accountId: string | undefined;
@@ -127,24 +58,6 @@ export interface GetAccountPlanStateResponse {
127
58
  accountPlanRemainingCredits?: MonetaryAmount | undefined;
128
59
  accountPlanExpirationDate?: Date | undefined;
129
60
  }
130
- export declare const Dimension: {
131
- readonly DESCRIPTION: "DESCRIPTION";
132
- readonly FREE_TIER_TYPE: "FREE_TIER_TYPE";
133
- readonly OPERATION: "OPERATION";
134
- readonly REGION: "REGION";
135
- readonly SERVICE: "SERVICE";
136
- readonly USAGE_PERCENTAGE: "USAGE_PERCENTAGE";
137
- readonly USAGE_TYPE: "USAGE_TYPE";
138
- };
139
- export type Dimension = (typeof Dimension)[keyof typeof Dimension];
140
- export declare const MatchOption: {
141
- readonly CONTAINS: "CONTAINS";
142
- readonly ENDS_WITH: "ENDS_WITH";
143
- readonly EQUALS: "EQUALS";
144
- readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
145
- readonly STARTS_WITH: "STARTS_WITH";
146
- };
147
- export type MatchOption = (typeof MatchOption)[keyof typeof MatchOption];
148
61
  export interface DimensionValues {
149
62
  Key: Dimension | undefined;
150
63
  Values: string[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-freetier",
3
3
  "description": "AWS SDK for JavaScript Freetier Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.935.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-freetier",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";