@aws-sdk/client-freetier 3.987.0 → 3.989.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 +24 -319
- package/dist-cjs/models/FreeTierServiceException.js +12 -0
- package/dist-cjs/models/errors.js +69 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +227 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +40 -34
- package/dist-types/schemas/schemas_0.d.ts +12 -5
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var FreeTierServiceException = require('./models/FreeTierServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -108,287 +111,6 @@ class FreeTierClient extends smithyClient.Client {
|
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class FreeTierServiceException extends smithyClient.ServiceException {
|
|
112
|
-
constructor(options) {
|
|
113
|
-
super(options);
|
|
114
|
-
Object.setPrototypeOf(this, FreeTierServiceException.prototype);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
class AccessDeniedException extends FreeTierServiceException {
|
|
119
|
-
name = "AccessDeniedException";
|
|
120
|
-
$fault = "client";
|
|
121
|
-
constructor(opts) {
|
|
122
|
-
super({
|
|
123
|
-
name: "AccessDeniedException",
|
|
124
|
-
$fault: "client",
|
|
125
|
-
...opts,
|
|
126
|
-
});
|
|
127
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
class InternalServerException extends FreeTierServiceException {
|
|
131
|
-
name = "InternalServerException";
|
|
132
|
-
$fault = "server";
|
|
133
|
-
constructor(opts) {
|
|
134
|
-
super({
|
|
135
|
-
name: "InternalServerException",
|
|
136
|
-
$fault: "server",
|
|
137
|
-
...opts,
|
|
138
|
-
});
|
|
139
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
class ResourceNotFoundException extends FreeTierServiceException {
|
|
143
|
-
name = "ResourceNotFoundException";
|
|
144
|
-
$fault = "client";
|
|
145
|
-
constructor(opts) {
|
|
146
|
-
super({
|
|
147
|
-
name: "ResourceNotFoundException",
|
|
148
|
-
$fault: "client",
|
|
149
|
-
...opts,
|
|
150
|
-
});
|
|
151
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
class ThrottlingException extends FreeTierServiceException {
|
|
155
|
-
name = "ThrottlingException";
|
|
156
|
-
$fault = "client";
|
|
157
|
-
constructor(opts) {
|
|
158
|
-
super({
|
|
159
|
-
name: "ThrottlingException",
|
|
160
|
-
$fault: "client",
|
|
161
|
-
...opts,
|
|
162
|
-
});
|
|
163
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
class ValidationException extends FreeTierServiceException {
|
|
167
|
-
name = "ValidationException";
|
|
168
|
-
$fault = "client";
|
|
169
|
-
constructor(opts) {
|
|
170
|
-
super({
|
|
171
|
-
name: "ValidationException",
|
|
172
|
-
$fault: "client",
|
|
173
|
-
...opts,
|
|
174
|
-
});
|
|
175
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
const _A = "And";
|
|
180
|
-
const _ADE = "AccessDeniedException";
|
|
181
|
-
const _AR = "ActivityReward";
|
|
182
|
-
const _AS = "ActivitySummary";
|
|
183
|
-
const _Ac = "Activities";
|
|
184
|
-
const _D = "Dimensions";
|
|
185
|
-
const _DV = "DimensionValues";
|
|
186
|
-
const _E = "Expression";
|
|
187
|
-
const _Ex = "Expressions";
|
|
188
|
-
const _FTU = "FreeTierUsage";
|
|
189
|
-
const _FTUr = "FreeTierUsages";
|
|
190
|
-
const _GAA = "GetAccountActivity";
|
|
191
|
-
const _GAAR = "GetAccountActivityRequest";
|
|
192
|
-
const _GAARe = "GetAccountActivityResponse";
|
|
193
|
-
const _GAPS = "GetAccountPlanState";
|
|
194
|
-
const _GAPSR = "GetAccountPlanStateRequest";
|
|
195
|
-
const _GAPSRe = "GetAccountPlanStateResponse";
|
|
196
|
-
const _GFTU = "GetFreeTierUsage";
|
|
197
|
-
const _GFTUR = "GetFreeTierUsageRequest";
|
|
198
|
-
const _GFTURe = "GetFreeTierUsageResponse";
|
|
199
|
-
const _ISE = "InternalServerException";
|
|
200
|
-
const _K = "Key";
|
|
201
|
-
const _LAA = "ListAccountActivities";
|
|
202
|
-
const _LAAR = "ListAccountActivitiesRequest";
|
|
203
|
-
const _LAARi = "ListAccountActivitiesResponse";
|
|
204
|
-
const _MA = "MonetaryAmount";
|
|
205
|
-
const _MO = "MatchOptions";
|
|
206
|
-
const _N = "Not";
|
|
207
|
-
const _O = "Or";
|
|
208
|
-
const _RNFE = "ResourceNotFoundException";
|
|
209
|
-
const _TE = "ThrottlingException";
|
|
210
|
-
const _UAP = "UpgradeAccountPlan";
|
|
211
|
-
const _UAPR = "UpgradeAccountPlanRequest";
|
|
212
|
-
const _UAPRp = "UpgradeAccountPlanResponse";
|
|
213
|
-
const _V = "Values";
|
|
214
|
-
const _VE = "ValidationException";
|
|
215
|
-
const _a = "activities";
|
|
216
|
-
const _aI = "activityId";
|
|
217
|
-
const _aIc = "accountId";
|
|
218
|
-
const _aPED = "accountPlanExpirationDate";
|
|
219
|
-
const _aPRC = "accountPlanRemainingCredits";
|
|
220
|
-
const _aPS = "accountPlanStatus";
|
|
221
|
-
const _aPT = "accountPlanType";
|
|
222
|
-
const _aUA = "actualUsageAmount";
|
|
223
|
-
const _am = "amount";
|
|
224
|
-
const _c = "client";
|
|
225
|
-
const _cA = "completedAt";
|
|
226
|
-
const _cr = "credit";
|
|
227
|
-
const _d = "description";
|
|
228
|
-
const _e = "error";
|
|
229
|
-
const _eA = "expiresAt";
|
|
230
|
-
const _eTTCIM = "estimatedTimeToCompleteInMinutes";
|
|
231
|
-
const _f = "filter";
|
|
232
|
-
const _fAS = "filterActivityStatuses";
|
|
233
|
-
const _fTT = "freeTierType";
|
|
234
|
-
const _fTU = "freeTierUsages";
|
|
235
|
-
const _fUA = "forecastedUsageAmount";
|
|
236
|
-
const _hE = "httpError";
|
|
237
|
-
const _iU = "instructionsUrl";
|
|
238
|
-
const _l = "limit";
|
|
239
|
-
const _lC = "languageCode";
|
|
240
|
-
const _m = "message";
|
|
241
|
-
const _mR = "maxResults";
|
|
242
|
-
const _nT = "nextToken";
|
|
243
|
-
const _o = "operation";
|
|
244
|
-
const _r = "reward";
|
|
245
|
-
const _re = "region";
|
|
246
|
-
const _s = "status";
|
|
247
|
-
const _sA = "startedAt";
|
|
248
|
-
const _se = "service";
|
|
249
|
-
const _ser = "server";
|
|
250
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.freetier";
|
|
251
|
-
const _t = "title";
|
|
252
|
-
const _u = "unit";
|
|
253
|
-
const _uT = "usageType";
|
|
254
|
-
const n0 = "com.amazonaws.freetier";
|
|
255
|
-
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
256
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
257
|
-
[_m],
|
|
258
|
-
[0], 1
|
|
259
|
-
];
|
|
260
|
-
schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
|
|
261
|
-
var ActivitySummary$ = [3, n0, _AS,
|
|
262
|
-
0,
|
|
263
|
-
[_aI, _t, _r, _s],
|
|
264
|
-
[0, 0, () => ActivityReward$, 0], 4
|
|
265
|
-
];
|
|
266
|
-
var DimensionValues$ = [3, n0, _DV,
|
|
267
|
-
0,
|
|
268
|
-
[_K, _V, _MO],
|
|
269
|
-
[0, 64 | 0, 64 | 0], 3
|
|
270
|
-
];
|
|
271
|
-
var Expression$ = [3, n0, _E,
|
|
272
|
-
0,
|
|
273
|
-
[_O, _A, _N, _D],
|
|
274
|
-
[() => Expressions, () => Expressions, () => Expression$, () => DimensionValues$]
|
|
275
|
-
];
|
|
276
|
-
var FreeTierUsage$ = [3, n0, _FTU,
|
|
277
|
-
0,
|
|
278
|
-
[_se, _o, _uT, _re, _aUA, _fUA, _l, _u, _d, _fTT],
|
|
279
|
-
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0]
|
|
280
|
-
];
|
|
281
|
-
var GetAccountActivityRequest$ = [3, n0, _GAAR,
|
|
282
|
-
0,
|
|
283
|
-
[_aI, _lC],
|
|
284
|
-
[0, 0], 1
|
|
285
|
-
];
|
|
286
|
-
var GetAccountActivityResponse$ = [3, n0, _GAARe,
|
|
287
|
-
0,
|
|
288
|
-
[_aI, _t, _d, _s, _iU, _r, _eTTCIM, _eA, _sA, _cA],
|
|
289
|
-
[0, 0, 0, 0, 0, () => ActivityReward$, 1, 5, 5, 5], 6
|
|
290
|
-
];
|
|
291
|
-
var GetAccountPlanStateRequest$ = [3, n0, _GAPSR,
|
|
292
|
-
0,
|
|
293
|
-
[],
|
|
294
|
-
[]
|
|
295
|
-
];
|
|
296
|
-
var GetAccountPlanStateResponse$ = [3, n0, _GAPSRe,
|
|
297
|
-
0,
|
|
298
|
-
[_aIc, _aPT, _aPS, _aPRC, _aPED],
|
|
299
|
-
[0, 0, 0, () => MonetaryAmount$, 5], 3
|
|
300
|
-
];
|
|
301
|
-
var GetFreeTierUsageRequest$ = [3, n0, _GFTUR,
|
|
302
|
-
0,
|
|
303
|
-
[_f, _mR, _nT],
|
|
304
|
-
[() => Expression$, 1, 0]
|
|
305
|
-
];
|
|
306
|
-
var GetFreeTierUsageResponse$ = [3, n0, _GFTURe,
|
|
307
|
-
0,
|
|
308
|
-
[_fTU, _nT],
|
|
309
|
-
[() => FreeTierUsages, 0], 1
|
|
310
|
-
];
|
|
311
|
-
var InternalServerException$ = [-3, n0, _ISE,
|
|
312
|
-
{ [_e]: _ser, [_hE]: 500 },
|
|
313
|
-
[_m],
|
|
314
|
-
[0], 1
|
|
315
|
-
];
|
|
316
|
-
schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
317
|
-
var ListAccountActivitiesRequest$ = [3, n0, _LAAR,
|
|
318
|
-
0,
|
|
319
|
-
[_fAS, _nT, _mR, _lC],
|
|
320
|
-
[64 | 0, 0, 1, 0]
|
|
321
|
-
];
|
|
322
|
-
var ListAccountActivitiesResponse$ = [3, n0, _LAARi,
|
|
323
|
-
0,
|
|
324
|
-
[_a, _nT],
|
|
325
|
-
[() => Activities, 0], 1
|
|
326
|
-
];
|
|
327
|
-
var MonetaryAmount$ = [3, n0, _MA,
|
|
328
|
-
0,
|
|
329
|
-
[_am, _u],
|
|
330
|
-
[1, 0], 2
|
|
331
|
-
];
|
|
332
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
333
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
334
|
-
[_m],
|
|
335
|
-
[0], 1
|
|
336
|
-
];
|
|
337
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
338
|
-
var ThrottlingException$ = [-3, n0, _TE,
|
|
339
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
340
|
-
[_m],
|
|
341
|
-
[0], 1
|
|
342
|
-
];
|
|
343
|
-
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
344
|
-
var UpgradeAccountPlanRequest$ = [3, n0, _UAPR,
|
|
345
|
-
0,
|
|
346
|
-
[_aPT],
|
|
347
|
-
[0], 1
|
|
348
|
-
];
|
|
349
|
-
var UpgradeAccountPlanResponse$ = [3, n0, _UAPRp,
|
|
350
|
-
0,
|
|
351
|
-
[_aIc, _aPT, _aPS],
|
|
352
|
-
[0, 0, 0], 3
|
|
353
|
-
];
|
|
354
|
-
var ValidationException$ = [-3, n0, _VE,
|
|
355
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
356
|
-
[_m],
|
|
357
|
-
[0], 1
|
|
358
|
-
];
|
|
359
|
-
schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
360
|
-
var FreeTierServiceException$ = [-3, _sm, "FreeTierServiceException", 0, [], []];
|
|
361
|
-
schema.TypeRegistry.for(_sm).registerError(FreeTierServiceException$, FreeTierServiceException);
|
|
362
|
-
var Activities = [1, n0, _Ac,
|
|
363
|
-
0, () => ActivitySummary$
|
|
364
|
-
];
|
|
365
|
-
var Expressions = [1, n0, _Ex,
|
|
366
|
-
0, () => Expression$
|
|
367
|
-
];
|
|
368
|
-
var FreeTierUsages = [1, n0, _FTUr,
|
|
369
|
-
0, () => FreeTierUsage$
|
|
370
|
-
];
|
|
371
|
-
var ActivityReward$ = [4, n0, _AR,
|
|
372
|
-
0,
|
|
373
|
-
[_cr],
|
|
374
|
-
[() => MonetaryAmount$]
|
|
375
|
-
];
|
|
376
|
-
var GetAccountActivity$ = [9, n0, _GAA,
|
|
377
|
-
0, () => GetAccountActivityRequest$, () => GetAccountActivityResponse$
|
|
378
|
-
];
|
|
379
|
-
var GetAccountPlanState$ = [9, n0, _GAPS,
|
|
380
|
-
0, () => GetAccountPlanStateRequest$, () => GetAccountPlanStateResponse$
|
|
381
|
-
];
|
|
382
|
-
var GetFreeTierUsage$ = [9, n0, _GFTU,
|
|
383
|
-
0, () => GetFreeTierUsageRequest$, () => GetFreeTierUsageResponse$
|
|
384
|
-
];
|
|
385
|
-
var ListAccountActivities$ = [9, n0, _LAA,
|
|
386
|
-
0, () => ListAccountActivitiesRequest$, () => ListAccountActivitiesResponse$
|
|
387
|
-
];
|
|
388
|
-
var UpgradeAccountPlan$ = [9, n0, _UAP,
|
|
389
|
-
0, () => UpgradeAccountPlanRequest$, () => UpgradeAccountPlanResponse$
|
|
390
|
-
];
|
|
391
|
-
|
|
392
114
|
class GetAccountActivityCommand extends smithyClient.Command
|
|
393
115
|
.classBuilder()
|
|
394
116
|
.ep(commonParams)
|
|
@@ -397,7 +119,7 @@ class GetAccountActivityCommand extends smithyClient.Command
|
|
|
397
119
|
})
|
|
398
120
|
.s("AWSFreeTierService", "GetAccountActivity", {})
|
|
399
121
|
.n("FreeTierClient", "GetAccountActivityCommand")
|
|
400
|
-
.sc(GetAccountActivity$)
|
|
122
|
+
.sc(schemas_0.GetAccountActivity$)
|
|
401
123
|
.build() {
|
|
402
124
|
}
|
|
403
125
|
|
|
@@ -409,7 +131,7 @@ class GetAccountPlanStateCommand extends smithyClient.Command
|
|
|
409
131
|
})
|
|
410
132
|
.s("AWSFreeTierService", "GetAccountPlanState", {})
|
|
411
133
|
.n("FreeTierClient", "GetAccountPlanStateCommand")
|
|
412
|
-
.sc(GetAccountPlanState$)
|
|
134
|
+
.sc(schemas_0.GetAccountPlanState$)
|
|
413
135
|
.build() {
|
|
414
136
|
}
|
|
415
137
|
|
|
@@ -421,7 +143,7 @@ class GetFreeTierUsageCommand extends smithyClient.Command
|
|
|
421
143
|
})
|
|
422
144
|
.s("AWSFreeTierService", "GetFreeTierUsage", {})
|
|
423
145
|
.n("FreeTierClient", "GetFreeTierUsageCommand")
|
|
424
|
-
.sc(GetFreeTierUsage$)
|
|
146
|
+
.sc(schemas_0.GetFreeTierUsage$)
|
|
425
147
|
.build() {
|
|
426
148
|
}
|
|
427
149
|
|
|
@@ -433,7 +155,7 @@ class ListAccountActivitiesCommand extends smithyClient.Command
|
|
|
433
155
|
})
|
|
434
156
|
.s("AWSFreeTierService", "ListAccountActivities", {})
|
|
435
157
|
.n("FreeTierClient", "ListAccountActivitiesCommand")
|
|
436
|
-
.sc(ListAccountActivities$)
|
|
158
|
+
.sc(schemas_0.ListAccountActivities$)
|
|
437
159
|
.build() {
|
|
438
160
|
}
|
|
439
161
|
|
|
@@ -445,7 +167,7 @@ class UpgradeAccountPlanCommand extends smithyClient.Command
|
|
|
445
167
|
})
|
|
446
168
|
.s("AWSFreeTierService", "UpgradeAccountPlan", {})
|
|
447
169
|
.n("FreeTierClient", "UpgradeAccountPlanCommand")
|
|
448
|
-
.sc(UpgradeAccountPlan$)
|
|
170
|
+
.sc(schemas_0.UpgradeAccountPlan$)
|
|
449
171
|
.build() {
|
|
450
172
|
}
|
|
451
173
|
|
|
@@ -526,52 +248,35 @@ Object.defineProperty(exports, "__Client", {
|
|
|
526
248
|
enumerable: true,
|
|
527
249
|
get: function () { return smithyClient.Client; }
|
|
528
250
|
});
|
|
529
|
-
exports
|
|
530
|
-
|
|
251
|
+
Object.defineProperty(exports, "FreeTierServiceException", {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
get: function () { return FreeTierServiceException.FreeTierServiceException; }
|
|
254
|
+
});
|
|
531
255
|
exports.AccountPlanStatus = AccountPlanStatus;
|
|
532
256
|
exports.AccountPlanType = AccountPlanType;
|
|
533
|
-
exports.ActivityReward$ = ActivityReward$;
|
|
534
257
|
exports.ActivityStatus = ActivityStatus;
|
|
535
|
-
exports.ActivitySummary$ = ActivitySummary$;
|
|
536
258
|
exports.CurrencyCode = CurrencyCode;
|
|
537
259
|
exports.Dimension = Dimension;
|
|
538
|
-
exports.DimensionValues$ = DimensionValues$;
|
|
539
|
-
exports.Expression$ = Expression$;
|
|
540
260
|
exports.FreeTier = FreeTier;
|
|
541
261
|
exports.FreeTierClient = FreeTierClient;
|
|
542
|
-
exports.FreeTierServiceException = FreeTierServiceException;
|
|
543
|
-
exports.FreeTierServiceException$ = FreeTierServiceException$;
|
|
544
|
-
exports.FreeTierUsage$ = FreeTierUsage$;
|
|
545
|
-
exports.GetAccountActivity$ = GetAccountActivity$;
|
|
546
262
|
exports.GetAccountActivityCommand = GetAccountActivityCommand;
|
|
547
|
-
exports.GetAccountActivityRequest$ = GetAccountActivityRequest$;
|
|
548
|
-
exports.GetAccountActivityResponse$ = GetAccountActivityResponse$;
|
|
549
|
-
exports.GetAccountPlanState$ = GetAccountPlanState$;
|
|
550
263
|
exports.GetAccountPlanStateCommand = GetAccountPlanStateCommand;
|
|
551
|
-
exports.GetAccountPlanStateRequest$ = GetAccountPlanStateRequest$;
|
|
552
|
-
exports.GetAccountPlanStateResponse$ = GetAccountPlanStateResponse$;
|
|
553
|
-
exports.GetFreeTierUsage$ = GetFreeTierUsage$;
|
|
554
264
|
exports.GetFreeTierUsageCommand = GetFreeTierUsageCommand;
|
|
555
|
-
exports.GetFreeTierUsageRequest$ = GetFreeTierUsageRequest$;
|
|
556
|
-
exports.GetFreeTierUsageResponse$ = GetFreeTierUsageResponse$;
|
|
557
|
-
exports.InternalServerException = InternalServerException;
|
|
558
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
559
265
|
exports.LanguageCode = LanguageCode;
|
|
560
|
-
exports.ListAccountActivities$ = ListAccountActivities$;
|
|
561
266
|
exports.ListAccountActivitiesCommand = ListAccountActivitiesCommand;
|
|
562
|
-
exports.ListAccountActivitiesRequest$ = ListAccountActivitiesRequest$;
|
|
563
|
-
exports.ListAccountActivitiesResponse$ = ListAccountActivitiesResponse$;
|
|
564
267
|
exports.MatchOption = MatchOption;
|
|
565
|
-
exports.MonetaryAmount$ = MonetaryAmount$;
|
|
566
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
567
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
568
|
-
exports.ThrottlingException = ThrottlingException;
|
|
569
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
570
|
-
exports.UpgradeAccountPlan$ = UpgradeAccountPlan$;
|
|
571
268
|
exports.UpgradeAccountPlanCommand = UpgradeAccountPlanCommand;
|
|
572
|
-
exports.UpgradeAccountPlanRequest$ = UpgradeAccountPlanRequest$;
|
|
573
|
-
exports.UpgradeAccountPlanResponse$ = UpgradeAccountPlanResponse$;
|
|
574
|
-
exports.ValidationException = ValidationException;
|
|
575
|
-
exports.ValidationException$ = ValidationException$;
|
|
576
269
|
exports.paginateGetFreeTierUsage = paginateGetFreeTierUsage;
|
|
577
270
|
exports.paginateListAccountActivities = paginateListAccountActivities;
|
|
271
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
272
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
273
|
+
enumerable: true,
|
|
274
|
+
get: function () { return schemas_0[k]; }
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
Object.keys(errors).forEach(function (k) {
|
|
278
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
279
|
+
enumerable: true,
|
|
280
|
+
get: function () { return errors[k]; }
|
|
281
|
+
});
|
|
282
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FreeTierServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class FreeTierServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, FreeTierServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.FreeTierServiceException = FreeTierServiceException;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const FreeTierServiceException_1 = require("./FreeTierServiceException");
|
|
5
|
+
class AccessDeniedException extends FreeTierServiceException_1.FreeTierServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class InternalServerException extends FreeTierServiceException_1.FreeTierServiceException {
|
|
19
|
+
name = "InternalServerException";
|
|
20
|
+
$fault = "server";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "InternalServerException",
|
|
24
|
+
$fault: "server",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.InternalServerException = InternalServerException;
|
|
31
|
+
class ResourceNotFoundException extends FreeTierServiceException_1.FreeTierServiceException {
|
|
32
|
+
name = "ResourceNotFoundException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ResourceNotFoundException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
44
|
+
class ThrottlingException extends FreeTierServiceException_1.FreeTierServiceException {
|
|
45
|
+
name = "ThrottlingException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "ThrottlingException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ThrottlingException = ThrottlingException;
|
|
57
|
+
class ValidationException extends FreeTierServiceException_1.FreeTierServiceException {
|
|
58
|
+
name = "ValidationException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "ValidationException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.ValidationException = ValidationException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2023-09-07",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.freetier",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2023-09-07",
|
|
33
35
|
serviceTarget: "AWSFreeTierService",
|
|
34
36
|
},
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpgradeAccountPlan$ = exports.ListAccountActivities$ = exports.GetFreeTierUsage$ = exports.GetAccountPlanState$ = exports.GetAccountActivity$ = exports.ActivityReward$ = exports.UpgradeAccountPlanResponse$ = exports.UpgradeAccountPlanRequest$ = exports.MonetaryAmount$ = exports.ListAccountActivitiesResponse$ = exports.ListAccountActivitiesRequest$ = exports.GetFreeTierUsageResponse$ = exports.GetFreeTierUsageRequest$ = exports.GetAccountPlanStateResponse$ = exports.GetAccountPlanStateRequest$ = exports.GetAccountActivityResponse$ = exports.GetAccountActivityRequest$ = exports.FreeTierUsage$ = exports.Expression$ = exports.DimensionValues$ = exports.ActivitySummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.FreeTierServiceException$ = void 0;
|
|
4
|
+
const _A = "And";
|
|
5
|
+
const _ADE = "AccessDeniedException";
|
|
6
|
+
const _AR = "ActivityReward";
|
|
7
|
+
const _AS = "ActivitySummary";
|
|
8
|
+
const _Ac = "Activities";
|
|
9
|
+
const _D = "Dimensions";
|
|
10
|
+
const _DV = "DimensionValues";
|
|
11
|
+
const _E = "Expression";
|
|
12
|
+
const _Ex = "Expressions";
|
|
13
|
+
const _FTU = "FreeTierUsage";
|
|
14
|
+
const _FTUr = "FreeTierUsages";
|
|
15
|
+
const _GAA = "GetAccountActivity";
|
|
16
|
+
const _GAAR = "GetAccountActivityRequest";
|
|
17
|
+
const _GAARe = "GetAccountActivityResponse";
|
|
18
|
+
const _GAPS = "GetAccountPlanState";
|
|
19
|
+
const _GAPSR = "GetAccountPlanStateRequest";
|
|
20
|
+
const _GAPSRe = "GetAccountPlanStateResponse";
|
|
21
|
+
const _GFTU = "GetFreeTierUsage";
|
|
22
|
+
const _GFTUR = "GetFreeTierUsageRequest";
|
|
23
|
+
const _GFTURe = "GetFreeTierUsageResponse";
|
|
24
|
+
const _ISE = "InternalServerException";
|
|
25
|
+
const _K = "Key";
|
|
26
|
+
const _LAA = "ListAccountActivities";
|
|
27
|
+
const _LAAR = "ListAccountActivitiesRequest";
|
|
28
|
+
const _LAARi = "ListAccountActivitiesResponse";
|
|
29
|
+
const _MA = "MonetaryAmount";
|
|
30
|
+
const _MO = "MatchOptions";
|
|
31
|
+
const _N = "Not";
|
|
32
|
+
const _O = "Or";
|
|
33
|
+
const _RNFE = "ResourceNotFoundException";
|
|
34
|
+
const _TE = "ThrottlingException";
|
|
35
|
+
const _UAP = "UpgradeAccountPlan";
|
|
36
|
+
const _UAPR = "UpgradeAccountPlanRequest";
|
|
37
|
+
const _UAPRp = "UpgradeAccountPlanResponse";
|
|
38
|
+
const _V = "Values";
|
|
39
|
+
const _VE = "ValidationException";
|
|
40
|
+
const _a = "activities";
|
|
41
|
+
const _aI = "activityId";
|
|
42
|
+
const _aIc = "accountId";
|
|
43
|
+
const _aPED = "accountPlanExpirationDate";
|
|
44
|
+
const _aPRC = "accountPlanRemainingCredits";
|
|
45
|
+
const _aPS = "accountPlanStatus";
|
|
46
|
+
const _aPT = "accountPlanType";
|
|
47
|
+
const _aUA = "actualUsageAmount";
|
|
48
|
+
const _am = "amount";
|
|
49
|
+
const _c = "client";
|
|
50
|
+
const _cA = "completedAt";
|
|
51
|
+
const _cr = "credit";
|
|
52
|
+
const _d = "description";
|
|
53
|
+
const _e = "error";
|
|
54
|
+
const _eA = "expiresAt";
|
|
55
|
+
const _eTTCIM = "estimatedTimeToCompleteInMinutes";
|
|
56
|
+
const _f = "filter";
|
|
57
|
+
const _fAS = "filterActivityStatuses";
|
|
58
|
+
const _fTT = "freeTierType";
|
|
59
|
+
const _fTU = "freeTierUsages";
|
|
60
|
+
const _fUA = "forecastedUsageAmount";
|
|
61
|
+
const _hE = "httpError";
|
|
62
|
+
const _iU = "instructionsUrl";
|
|
63
|
+
const _l = "limit";
|
|
64
|
+
const _lC = "languageCode";
|
|
65
|
+
const _m = "message";
|
|
66
|
+
const _mR = "maxResults";
|
|
67
|
+
const _nT = "nextToken";
|
|
68
|
+
const _o = "operation";
|
|
69
|
+
const _r = "reward";
|
|
70
|
+
const _re = "region";
|
|
71
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.freetier";
|
|
72
|
+
const _sA = "startedAt";
|
|
73
|
+
const _se = "server";
|
|
74
|
+
const _ser = "service";
|
|
75
|
+
const _st = "status";
|
|
76
|
+
const _t = "title";
|
|
77
|
+
const _u = "unit";
|
|
78
|
+
const _uT = "usageType";
|
|
79
|
+
const n0 = "com.amazonaws.freetier";
|
|
80
|
+
const schema_1 = require("@smithy/core/schema");
|
|
81
|
+
const errors_1 = require("../models/errors");
|
|
82
|
+
const FreeTierServiceException_1 = require("../models/FreeTierServiceException");
|
|
83
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
84
|
+
exports.FreeTierServiceException$ = [-3, _s, "FreeTierServiceException", 0, [], []];
|
|
85
|
+
_s_registry.registerError(exports.FreeTierServiceException$, FreeTierServiceException_1.FreeTierServiceException);
|
|
86
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
87
|
+
exports.AccessDeniedException$ = [-3, n0, _ADE,
|
|
88
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
89
|
+
[_m],
|
|
90
|
+
[0], 1
|
|
91
|
+
];
|
|
92
|
+
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
93
|
+
exports.InternalServerException$ = [-3, n0, _ISE,
|
|
94
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
95
|
+
[_m],
|
|
96
|
+
[0], 1
|
|
97
|
+
];
|
|
98
|
+
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
99
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
100
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
101
|
+
[_m],
|
|
102
|
+
[0], 1
|
|
103
|
+
];
|
|
104
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
105
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
106
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
107
|
+
[_m],
|
|
108
|
+
[0], 1
|
|
109
|
+
];
|
|
110
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
111
|
+
exports.ValidationException$ = [-3, n0, _VE,
|
|
112
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
113
|
+
[_m],
|
|
114
|
+
[0], 1
|
|
115
|
+
];
|
|
116
|
+
n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
|
|
117
|
+
exports.errorTypeRegistries = [
|
|
118
|
+
_s_registry,
|
|
119
|
+
n0_registry,
|
|
120
|
+
];
|
|
121
|
+
exports.ActivitySummary$ = [3, n0, _AS,
|
|
122
|
+
0,
|
|
123
|
+
[_aI, _t, _r, _st],
|
|
124
|
+
[0, 0, () => exports.ActivityReward$, 0], 4
|
|
125
|
+
];
|
|
126
|
+
exports.DimensionValues$ = [3, n0, _DV,
|
|
127
|
+
0,
|
|
128
|
+
[_K, _V, _MO],
|
|
129
|
+
[0, 64 | 0, 64 | 0], 3
|
|
130
|
+
];
|
|
131
|
+
exports.Expression$ = [3, n0, _E,
|
|
132
|
+
0,
|
|
133
|
+
[_O, _A, _N, _D],
|
|
134
|
+
[() => Expressions, () => Expressions, () => exports.Expression$, () => exports.DimensionValues$]
|
|
135
|
+
];
|
|
136
|
+
exports.FreeTierUsage$ = [3, n0, _FTU,
|
|
137
|
+
0,
|
|
138
|
+
[_ser, _o, _uT, _re, _aUA, _fUA, _l, _u, _d, _fTT],
|
|
139
|
+
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0]
|
|
140
|
+
];
|
|
141
|
+
exports.GetAccountActivityRequest$ = [3, n0, _GAAR,
|
|
142
|
+
0,
|
|
143
|
+
[_aI, _lC],
|
|
144
|
+
[0, 0], 1
|
|
145
|
+
];
|
|
146
|
+
exports.GetAccountActivityResponse$ = [3, n0, _GAARe,
|
|
147
|
+
0,
|
|
148
|
+
[_aI, _t, _d, _st, _iU, _r, _eTTCIM, _eA, _sA, _cA],
|
|
149
|
+
[0, 0, 0, 0, 0, () => exports.ActivityReward$, 1, 5, 5, 5], 6
|
|
150
|
+
];
|
|
151
|
+
exports.GetAccountPlanStateRequest$ = [3, n0, _GAPSR,
|
|
152
|
+
0,
|
|
153
|
+
[],
|
|
154
|
+
[]
|
|
155
|
+
];
|
|
156
|
+
exports.GetAccountPlanStateResponse$ = [3, n0, _GAPSRe,
|
|
157
|
+
0,
|
|
158
|
+
[_aIc, _aPT, _aPS, _aPRC, _aPED],
|
|
159
|
+
[0, 0, 0, () => exports.MonetaryAmount$, 5], 3
|
|
160
|
+
];
|
|
161
|
+
exports.GetFreeTierUsageRequest$ = [3, n0, _GFTUR,
|
|
162
|
+
0,
|
|
163
|
+
[_f, _mR, _nT],
|
|
164
|
+
[() => exports.Expression$, 1, 0]
|
|
165
|
+
];
|
|
166
|
+
exports.GetFreeTierUsageResponse$ = [3, n0, _GFTURe,
|
|
167
|
+
0,
|
|
168
|
+
[_fTU, _nT],
|
|
169
|
+
[() => FreeTierUsages, 0], 1
|
|
170
|
+
];
|
|
171
|
+
exports.ListAccountActivitiesRequest$ = [3, n0, _LAAR,
|
|
172
|
+
0,
|
|
173
|
+
[_fAS, _nT, _mR, _lC],
|
|
174
|
+
[64 | 0, 0, 1, 0]
|
|
175
|
+
];
|
|
176
|
+
exports.ListAccountActivitiesResponse$ = [3, n0, _LAARi,
|
|
177
|
+
0,
|
|
178
|
+
[_a, _nT],
|
|
179
|
+
[() => Activities, 0], 1
|
|
180
|
+
];
|
|
181
|
+
exports.MonetaryAmount$ = [3, n0, _MA,
|
|
182
|
+
0,
|
|
183
|
+
[_am, _u],
|
|
184
|
+
[1, 0], 2
|
|
185
|
+
];
|
|
186
|
+
exports.UpgradeAccountPlanRequest$ = [3, n0, _UAPR,
|
|
187
|
+
0,
|
|
188
|
+
[_aPT],
|
|
189
|
+
[0], 1
|
|
190
|
+
];
|
|
191
|
+
exports.UpgradeAccountPlanResponse$ = [3, n0, _UAPRp,
|
|
192
|
+
0,
|
|
193
|
+
[_aIc, _aPT, _aPS],
|
|
194
|
+
[0, 0, 0], 3
|
|
195
|
+
];
|
|
196
|
+
var Activities = [1, n0, _Ac,
|
|
197
|
+
0, () => exports.ActivitySummary$
|
|
198
|
+
];
|
|
199
|
+
var Expressions = [1, n0, _Ex,
|
|
200
|
+
0, () => exports.Expression$
|
|
201
|
+
];
|
|
202
|
+
var FilterActivityStatuses = 64 | 0;
|
|
203
|
+
var FreeTierUsages = [1, n0, _FTUr,
|
|
204
|
+
0, () => exports.FreeTierUsage$
|
|
205
|
+
];
|
|
206
|
+
var MatchOptions = 64 | 0;
|
|
207
|
+
var Values = 64 | 0;
|
|
208
|
+
exports.ActivityReward$ = [4, n0, _AR,
|
|
209
|
+
0,
|
|
210
|
+
[_cr],
|
|
211
|
+
[() => exports.MonetaryAmount$]
|
|
212
|
+
];
|
|
213
|
+
exports.GetAccountActivity$ = [9, n0, _GAA,
|
|
214
|
+
0, () => exports.GetAccountActivityRequest$, () => exports.GetAccountActivityResponse$
|
|
215
|
+
];
|
|
216
|
+
exports.GetAccountPlanState$ = [9, n0, _GAPS,
|
|
217
|
+
0, () => exports.GetAccountPlanStateRequest$, () => exports.GetAccountPlanStateResponse$
|
|
218
|
+
];
|
|
219
|
+
exports.GetFreeTierUsage$ = [9, n0, _GFTU,
|
|
220
|
+
0, () => exports.GetFreeTierUsageRequest$, () => exports.GetFreeTierUsageResponse$
|
|
221
|
+
];
|
|
222
|
+
exports.ListAccountActivities$ = [9, n0, _LAA,
|
|
223
|
+
0, () => exports.ListAccountActivitiesRequest$, () => exports.ListAccountActivitiesResponse$
|
|
224
|
+
];
|
|
225
|
+
exports.UpgradeAccountPlan$ = [9, n0, _UAP,
|
|
226
|
+
0, () => exports.UpgradeAccountPlanRequest$, () => exports.UpgradeAccountPlanResponse$
|
|
227
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultFreeTierHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2023-09-07",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.freetier",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2023-09-07",
|
|
30
32
|
serviceTarget: "AWSFreeTierService",
|
|
31
33
|
},
|
|
@@ -65,11 +65,11 @@ const _nT = "nextToken";
|
|
|
65
65
|
const _o = "operation";
|
|
66
66
|
const _r = "reward";
|
|
67
67
|
const _re = "region";
|
|
68
|
-
const _s = "
|
|
68
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.freetier";
|
|
69
69
|
const _sA = "startedAt";
|
|
70
|
-
const _se = "
|
|
71
|
-
const _ser = "
|
|
72
|
-
const
|
|
70
|
+
const _se = "server";
|
|
71
|
+
const _ser = "service";
|
|
72
|
+
const _st = "status";
|
|
73
73
|
const _t = "title";
|
|
74
74
|
const _u = "unit";
|
|
75
75
|
const _uT = "usageType";
|
|
@@ -77,15 +77,47 @@ const n0 = "com.amazonaws.freetier";
|
|
|
77
77
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
78
78
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
79
79
|
import { FreeTierServiceException } from "../models/FreeTierServiceException";
|
|
80
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
81
|
+
export var FreeTierServiceException$ = [-3, _s, "FreeTierServiceException", 0, [], []];
|
|
82
|
+
_s_registry.registerError(FreeTierServiceException$, FreeTierServiceException);
|
|
83
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
80
84
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
81
85
|
{ [_e]: _c, [_hE]: 403 },
|
|
82
86
|
[_m],
|
|
83
87
|
[0], 1
|
|
84
88
|
];
|
|
85
|
-
|
|
89
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
90
|
+
export var InternalServerException$ = [-3, n0, _ISE,
|
|
91
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
92
|
+
[_m],
|
|
93
|
+
[0], 1
|
|
94
|
+
];
|
|
95
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
96
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
97
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
98
|
+
[_m],
|
|
99
|
+
[0], 1
|
|
100
|
+
];
|
|
101
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
102
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
103
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
104
|
+
[_m],
|
|
105
|
+
[0], 1
|
|
106
|
+
];
|
|
107
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
108
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
109
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
110
|
+
[_m],
|
|
111
|
+
[0], 1
|
|
112
|
+
];
|
|
113
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
114
|
+
export const errorTypeRegistries = [
|
|
115
|
+
_s_registry,
|
|
116
|
+
n0_registry,
|
|
117
|
+
];
|
|
86
118
|
export var ActivitySummary$ = [3, n0, _AS,
|
|
87
119
|
0,
|
|
88
|
-
[_aI, _t, _r,
|
|
120
|
+
[_aI, _t, _r, _st],
|
|
89
121
|
[0, 0, () => ActivityReward$, 0], 4
|
|
90
122
|
];
|
|
91
123
|
export var DimensionValues$ = [3, n0, _DV,
|
|
@@ -100,7 +132,7 @@ export var Expression$ = [3, n0, _E,
|
|
|
100
132
|
];
|
|
101
133
|
export var FreeTierUsage$ = [3, n0, _FTU,
|
|
102
134
|
0,
|
|
103
|
-
[
|
|
135
|
+
[_ser, _o, _uT, _re, _aUA, _fUA, _l, _u, _d, _fTT],
|
|
104
136
|
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0]
|
|
105
137
|
];
|
|
106
138
|
export var GetAccountActivityRequest$ = [3, n0, _GAAR,
|
|
@@ -110,7 +142,7 @@ export var GetAccountActivityRequest$ = [3, n0, _GAAR,
|
|
|
110
142
|
];
|
|
111
143
|
export var GetAccountActivityResponse$ = [3, n0, _GAARe,
|
|
112
144
|
0,
|
|
113
|
-
[_aI, _t, _d,
|
|
145
|
+
[_aI, _t, _d, _st, _iU, _r, _eTTCIM, _eA, _sA, _cA],
|
|
114
146
|
[0, 0, 0, 0, 0, () => ActivityReward$, 1, 5, 5, 5], 6
|
|
115
147
|
];
|
|
116
148
|
export var GetAccountPlanStateRequest$ = [3, n0, _GAPSR,
|
|
@@ -133,12 +165,6 @@ export var GetFreeTierUsageResponse$ = [3, n0, _GFTURe,
|
|
|
133
165
|
[_fTU, _nT],
|
|
134
166
|
[() => FreeTierUsages, 0], 1
|
|
135
167
|
];
|
|
136
|
-
export var InternalServerException$ = [-3, n0, _ISE,
|
|
137
|
-
{ [_e]: _ser, [_hE]: 500 },
|
|
138
|
-
[_m],
|
|
139
|
-
[0], 1
|
|
140
|
-
];
|
|
141
|
-
TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
|
|
142
168
|
export var ListAccountActivitiesRequest$ = [3, n0, _LAAR,
|
|
143
169
|
0,
|
|
144
170
|
[_fAS, _nT, _mR, _lC],
|
|
@@ -154,18 +180,6 @@ export var MonetaryAmount$ = [3, n0, _MA,
|
|
|
154
180
|
[_am, _u],
|
|
155
181
|
[1, 0], 2
|
|
156
182
|
];
|
|
157
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
158
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
159
|
-
[_m],
|
|
160
|
-
[0], 1
|
|
161
|
-
];
|
|
162
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
163
|
-
export var ThrottlingException$ = [-3, n0, _TE,
|
|
164
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
165
|
-
[_m],
|
|
166
|
-
[0], 1
|
|
167
|
-
];
|
|
168
|
-
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
169
183
|
export var UpgradeAccountPlanRequest$ = [3, n0, _UAPR,
|
|
170
184
|
0,
|
|
171
185
|
[_aPT],
|
|
@@ -176,14 +190,6 @@ export var UpgradeAccountPlanResponse$ = [3, n0, _UAPRp,
|
|
|
176
190
|
[_aIc, _aPT, _aPS],
|
|
177
191
|
[0, 0, 0], 3
|
|
178
192
|
];
|
|
179
|
-
export var ValidationException$ = [-3, n0, _VE,
|
|
180
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
181
|
-
[_m],
|
|
182
|
-
[0], 1
|
|
183
|
-
];
|
|
184
|
-
TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
|
|
185
|
-
export var FreeTierServiceException$ = [-3, _sm, "FreeTierServiceException", 0, [], []];
|
|
186
|
-
TypeRegistry.for(_sm).registerError(FreeTierServiceException$, FreeTierServiceException);
|
|
187
193
|
var Activities = [1, n0, _Ac,
|
|
188
194
|
0, () => ActivitySummary$
|
|
189
195
|
];
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
|
+
export declare var FreeTierServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
6
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
7
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
8
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
9
|
+
/**
|
|
10
|
+
* TypeRegistry instances containing modeled errors.
|
|
11
|
+
* @internal
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
3
15
|
export declare var ActivitySummary$: StaticStructureSchema;
|
|
4
16
|
export declare var DimensionValues$: StaticStructureSchema;
|
|
5
17
|
export declare var Expression$: StaticStructureSchema;
|
|
@@ -10,16 +22,11 @@ export declare var GetAccountPlanStateRequest$: StaticStructureSchema;
|
|
|
10
22
|
export declare var GetAccountPlanStateResponse$: StaticStructureSchema;
|
|
11
23
|
export declare var GetFreeTierUsageRequest$: StaticStructureSchema;
|
|
12
24
|
export declare var GetFreeTierUsageResponse$: StaticStructureSchema;
|
|
13
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
14
25
|
export declare var ListAccountActivitiesRequest$: StaticStructureSchema;
|
|
15
26
|
export declare var ListAccountActivitiesResponse$: StaticStructureSchema;
|
|
16
27
|
export declare var MonetaryAmount$: StaticStructureSchema;
|
|
17
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
18
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
19
28
|
export declare var UpgradeAccountPlanRequest$: StaticStructureSchema;
|
|
20
29
|
export declare var UpgradeAccountPlanResponse$: StaticStructureSchema;
|
|
21
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
22
|
-
export declare var FreeTierServiceException$: StaticErrorSchema;
|
|
23
30
|
export declare var ActivityReward$: StaticUnionSchema;
|
|
24
31
|
export declare var GetAccountActivity$: StaticOperationSchema;
|
|
25
32
|
export declare var GetAccountPlanState$: StaticOperationSchema;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
StaticUnionSchema,
|
|
6
7
|
} from "@smithy/types";
|
|
8
|
+
export declare var FreeTierServiceException$: StaticErrorSchema;
|
|
7
9
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
10
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
11
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
12
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
13
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
8
15
|
export declare var ActivitySummary$: StaticStructureSchema;
|
|
9
16
|
export declare var DimensionValues$: StaticStructureSchema;
|
|
10
17
|
export declare var Expression$: StaticStructureSchema;
|
|
@@ -15,16 +22,11 @@ export declare var GetAccountPlanStateRequest$: StaticStructureSchema;
|
|
|
15
22
|
export declare var GetAccountPlanStateResponse$: StaticStructureSchema;
|
|
16
23
|
export declare var GetFreeTierUsageRequest$: StaticStructureSchema;
|
|
17
24
|
export declare var GetFreeTierUsageResponse$: StaticStructureSchema;
|
|
18
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
19
25
|
export declare var ListAccountActivitiesRequest$: StaticStructureSchema;
|
|
20
26
|
export declare var ListAccountActivitiesResponse$: StaticStructureSchema;
|
|
21
27
|
export declare var MonetaryAmount$: StaticStructureSchema;
|
|
22
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
23
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
24
28
|
export declare var UpgradeAccountPlanRequest$: StaticStructureSchema;
|
|
25
29
|
export declare var UpgradeAccountPlanResponse$: StaticStructureSchema;
|
|
26
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
27
|
-
export declare var FreeTierServiceException$: StaticErrorSchema;
|
|
28
30
|
export declare var ActivityReward$: StaticUnionSchema;
|
|
29
31
|
export declare var GetAccountActivity$: StaticOperationSchema;
|
|
30
32
|
export declare var GetAccountPlanState$: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.989.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-freetier",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.9",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.8",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.9",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.989.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.7",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|