@aws-sdk/client-freetier 3.1075.0 → 3.1076.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 +500 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/FreeTierServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -61
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -246
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultFreeTierHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "freetier",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultFreeTierHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -29,6 +65,421 @@ const commonParams = {
|
|
|
29
65
|
Region: { type: "builtInParams", name: "region" },
|
|
30
66
|
};
|
|
31
67
|
|
|
68
|
+
var version = "3.1075.0";
|
|
69
|
+
var packageInfo = {
|
|
70
|
+
version: version};
|
|
71
|
+
|
|
72
|
+
const n = "ref";
|
|
73
|
+
const a = true, b = "isSet", c = "PartitionResult", d = "booleanEquals", e = "getAttr", f = "stringEquals", g = "sigv4", h = "freetier", i = { [n]: "Endpoint" }, j = { [n]: c }, k = { [n]: "Region" }, l = {}, m = [k];
|
|
74
|
+
const _data = {
|
|
75
|
+
conditions: [
|
|
76
|
+
[b, [i]],
|
|
77
|
+
[b, m],
|
|
78
|
+
["aws.partition", m, c],
|
|
79
|
+
[d, [{ [n]: "UseFIPS" }, a]],
|
|
80
|
+
[d, [{ fn: e, argv: [j, "supportsFIPS"] }, a]],
|
|
81
|
+
[f, [{ fn: e, argv: [j, "name"] }, "aws"]],
|
|
82
|
+
[f, [k, "aws-cn-global"]],
|
|
83
|
+
[d, [{ fn: e, argv: [j, "supportsDualStack"] }, a]]
|
|
84
|
+
],
|
|
85
|
+
results: [
|
|
86
|
+
[-1],
|
|
87
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
88
|
+
[i, l],
|
|
89
|
+
["https://freetier-fips.{Region}.api.aws", l],
|
|
90
|
+
[-1, "FIPS is enabled but this partition does not support FIPS"],
|
|
91
|
+
["https://freetier.us-east-1.api.aws", { authSchemes: [{ name: g, signingName: h, signingRegion: "us-east-1" }] }],
|
|
92
|
+
["https://freetier-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", l],
|
|
93
|
+
["https://freetier.cn-northwest-1.api.amazonwebservices.com.cn", { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-northwest-1" }] }],
|
|
94
|
+
["https://freetier.{Region}.{PartitionResult#dualStackDnsSuffix}", l],
|
|
95
|
+
["https://freetier-fips.{Region}.{PartitionResult#dnsSuffix}", l],
|
|
96
|
+
["https://freetier.{Region}.{PartitionResult#dnsSuffix}", l],
|
|
97
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
98
|
+
]
|
|
99
|
+
};
|
|
100
|
+
const root = 2;
|
|
101
|
+
const r = 100_000_000;
|
|
102
|
+
const nodes = new Int32Array([
|
|
103
|
+
-1, 1, -1,
|
|
104
|
+
0, 12, 3,
|
|
105
|
+
1, 4, r + 11,
|
|
106
|
+
2, 5, r + 11,
|
|
107
|
+
3, 9, 6,
|
|
108
|
+
5, r + 5, 7,
|
|
109
|
+
6, r + 7, 8,
|
|
110
|
+
7, r + 8, r + 10,
|
|
111
|
+
4, 10, r + 4,
|
|
112
|
+
5, r + 3, 11,
|
|
113
|
+
7, r + 6, r + 9,
|
|
114
|
+
3, r + 1, r + 2,
|
|
115
|
+
]);
|
|
116
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
117
|
+
|
|
118
|
+
const cache = new EndpointCache({
|
|
119
|
+
size: 50,
|
|
120
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
121
|
+
});
|
|
122
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
123
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
124
|
+
endpointParams: endpointParams,
|
|
125
|
+
logger: context.logger,
|
|
126
|
+
}));
|
|
127
|
+
};
|
|
128
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
129
|
+
|
|
130
|
+
class FreeTierServiceException extends ServiceException {
|
|
131
|
+
constructor(options) {
|
|
132
|
+
super(options);
|
|
133
|
+
Object.setPrototypeOf(this, FreeTierServiceException.prototype);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
class AccessDeniedException extends FreeTierServiceException {
|
|
138
|
+
name = "AccessDeniedException";
|
|
139
|
+
$fault = "client";
|
|
140
|
+
constructor(opts) {
|
|
141
|
+
super({
|
|
142
|
+
name: "AccessDeniedException",
|
|
143
|
+
$fault: "client",
|
|
144
|
+
...opts,
|
|
145
|
+
});
|
|
146
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
class InternalServerException extends FreeTierServiceException {
|
|
150
|
+
name = "InternalServerException";
|
|
151
|
+
$fault = "server";
|
|
152
|
+
constructor(opts) {
|
|
153
|
+
super({
|
|
154
|
+
name: "InternalServerException",
|
|
155
|
+
$fault: "server",
|
|
156
|
+
...opts,
|
|
157
|
+
});
|
|
158
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
class ResourceNotFoundException extends FreeTierServiceException {
|
|
162
|
+
name = "ResourceNotFoundException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "ResourceNotFoundException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
class ThrottlingException extends FreeTierServiceException {
|
|
174
|
+
name = "ThrottlingException";
|
|
175
|
+
$fault = "client";
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "ThrottlingException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
class ValidationException extends FreeTierServiceException {
|
|
186
|
+
name = "ValidationException";
|
|
187
|
+
$fault = "client";
|
|
188
|
+
constructor(opts) {
|
|
189
|
+
super({
|
|
190
|
+
name: "ValidationException",
|
|
191
|
+
$fault: "client",
|
|
192
|
+
...opts,
|
|
193
|
+
});
|
|
194
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const _A = "And";
|
|
199
|
+
const _ADE = "AccessDeniedException";
|
|
200
|
+
const _AR = "ActivityReward";
|
|
201
|
+
const _AS = "ActivitySummary";
|
|
202
|
+
const _Ac = "Activities";
|
|
203
|
+
const _D = "Dimensions";
|
|
204
|
+
const _DV = "DimensionValues";
|
|
205
|
+
const _E = "Expression";
|
|
206
|
+
const _Ex = "Expressions";
|
|
207
|
+
const _FTU = "FreeTierUsage";
|
|
208
|
+
const _FTUr = "FreeTierUsages";
|
|
209
|
+
const _GAA = "GetAccountActivity";
|
|
210
|
+
const _GAAR = "GetAccountActivityRequest";
|
|
211
|
+
const _GAARe = "GetAccountActivityResponse";
|
|
212
|
+
const _GAPS = "GetAccountPlanState";
|
|
213
|
+
const _GAPSR = "GetAccountPlanStateRequest";
|
|
214
|
+
const _GAPSRe = "GetAccountPlanStateResponse";
|
|
215
|
+
const _GFTU = "GetFreeTierUsage";
|
|
216
|
+
const _GFTUR = "GetFreeTierUsageRequest";
|
|
217
|
+
const _GFTURe = "GetFreeTierUsageResponse";
|
|
218
|
+
const _ISE = "InternalServerException";
|
|
219
|
+
const _K = "Key";
|
|
220
|
+
const _LAA = "ListAccountActivities";
|
|
221
|
+
const _LAAR = "ListAccountActivitiesRequest";
|
|
222
|
+
const _LAARi = "ListAccountActivitiesResponse";
|
|
223
|
+
const _MA = "MonetaryAmount";
|
|
224
|
+
const _MO = "MatchOptions";
|
|
225
|
+
const _N = "Not";
|
|
226
|
+
const _O = "Or";
|
|
227
|
+
const _RNFE = "ResourceNotFoundException";
|
|
228
|
+
const _TE = "ThrottlingException";
|
|
229
|
+
const _UAP = "UpgradeAccountPlan";
|
|
230
|
+
const _UAPR = "UpgradeAccountPlanRequest";
|
|
231
|
+
const _UAPRp = "UpgradeAccountPlanResponse";
|
|
232
|
+
const _V = "Values";
|
|
233
|
+
const _VE = "ValidationException";
|
|
234
|
+
const _a = "activities";
|
|
235
|
+
const _aI = "activityId";
|
|
236
|
+
const _aIc = "accountId";
|
|
237
|
+
const _aPED = "accountPlanExpirationDate";
|
|
238
|
+
const _aPRC = "accountPlanRemainingCredits";
|
|
239
|
+
const _aPS = "accountPlanStatus";
|
|
240
|
+
const _aPT = "accountPlanType";
|
|
241
|
+
const _aUA = "actualUsageAmount";
|
|
242
|
+
const _am = "amount";
|
|
243
|
+
const _c = "client";
|
|
244
|
+
const _cA = "completedAt";
|
|
245
|
+
const _cr = "credit";
|
|
246
|
+
const _d = "description";
|
|
247
|
+
const _e = "error";
|
|
248
|
+
const _eA = "expiresAt";
|
|
249
|
+
const _eTTCIM = "estimatedTimeToCompleteInMinutes";
|
|
250
|
+
const _f = "filter";
|
|
251
|
+
const _fAS = "filterActivityStatuses";
|
|
252
|
+
const _fTT = "freeTierType";
|
|
253
|
+
const _fTU = "freeTierUsages";
|
|
254
|
+
const _fUA = "forecastedUsageAmount";
|
|
255
|
+
const _hE = "httpError";
|
|
256
|
+
const _iU = "instructionsUrl";
|
|
257
|
+
const _l = "limit";
|
|
258
|
+
const _lC = "languageCode";
|
|
259
|
+
const _m = "message";
|
|
260
|
+
const _mR = "maxResults";
|
|
261
|
+
const _nT = "nextToken";
|
|
262
|
+
const _o = "operation";
|
|
263
|
+
const _r = "reward";
|
|
264
|
+
const _re = "region";
|
|
265
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.freetier";
|
|
266
|
+
const _sA = "startedAt";
|
|
267
|
+
const _se = "server";
|
|
268
|
+
const _ser = "service";
|
|
269
|
+
const _st = "status";
|
|
270
|
+
const _t = "title";
|
|
271
|
+
const _u = "unit";
|
|
272
|
+
const _uT = "usageType";
|
|
273
|
+
const n0 = "com.amazonaws.freetier";
|
|
274
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
275
|
+
var FreeTierServiceException$ = [-3, _s, "FreeTierServiceException", 0, [], []];
|
|
276
|
+
_s_registry.registerError(FreeTierServiceException$, FreeTierServiceException);
|
|
277
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
278
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
279
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
280
|
+
[_m],
|
|
281
|
+
[0], 1
|
|
282
|
+
];
|
|
283
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
284
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
285
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
286
|
+
[_m],
|
|
287
|
+
[0], 1
|
|
288
|
+
];
|
|
289
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
290
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
291
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
292
|
+
[_m],
|
|
293
|
+
[0], 1
|
|
294
|
+
];
|
|
295
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
296
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
297
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
298
|
+
[_m],
|
|
299
|
+
[0], 1
|
|
300
|
+
];
|
|
301
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
302
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
303
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
304
|
+
[_m],
|
|
305
|
+
[0], 1
|
|
306
|
+
];
|
|
307
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
308
|
+
const errorTypeRegistries = [
|
|
309
|
+
_s_registry,
|
|
310
|
+
n0_registry,
|
|
311
|
+
];
|
|
312
|
+
var ActivitySummary$ = [3, n0, _AS,
|
|
313
|
+
0,
|
|
314
|
+
[_aI, _t, _r, _st],
|
|
315
|
+
[0, 0, () => ActivityReward$, 0], 4
|
|
316
|
+
];
|
|
317
|
+
var DimensionValues$ = [3, n0, _DV,
|
|
318
|
+
0,
|
|
319
|
+
[_K, _V, _MO],
|
|
320
|
+
[0, 64 | 0, 64 | 0], 3
|
|
321
|
+
];
|
|
322
|
+
var Expression$ = [3, n0, _E,
|
|
323
|
+
0,
|
|
324
|
+
[_O, _A, _N, _D],
|
|
325
|
+
[() => Expressions, () => Expressions, () => Expression$, () => DimensionValues$]
|
|
326
|
+
];
|
|
327
|
+
var FreeTierUsage$ = [3, n0, _FTU,
|
|
328
|
+
0,
|
|
329
|
+
[_ser, _o, _uT, _re, _aUA, _fUA, _l, _u, _d, _fTT],
|
|
330
|
+
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0]
|
|
331
|
+
];
|
|
332
|
+
var GetAccountActivityRequest$ = [3, n0, _GAAR,
|
|
333
|
+
0,
|
|
334
|
+
[_aI, _lC],
|
|
335
|
+
[0, 0], 1
|
|
336
|
+
];
|
|
337
|
+
var GetAccountActivityResponse$ = [3, n0, _GAARe,
|
|
338
|
+
0,
|
|
339
|
+
[_aI, _t, _d, _st, _iU, _r, _eTTCIM, _eA, _sA, _cA],
|
|
340
|
+
[0, 0, 0, 0, 0, () => ActivityReward$, 1, 5, 5, 5], 6
|
|
341
|
+
];
|
|
342
|
+
var GetAccountPlanStateRequest$ = [3, n0, _GAPSR,
|
|
343
|
+
0,
|
|
344
|
+
[],
|
|
345
|
+
[]
|
|
346
|
+
];
|
|
347
|
+
var GetAccountPlanStateResponse$ = [3, n0, _GAPSRe,
|
|
348
|
+
0,
|
|
349
|
+
[_aIc, _aPT, _aPS, _aPRC, _aPED],
|
|
350
|
+
[0, 0, 0, () => MonetaryAmount$, 5], 3
|
|
351
|
+
];
|
|
352
|
+
var GetFreeTierUsageRequest$ = [3, n0, _GFTUR,
|
|
353
|
+
0,
|
|
354
|
+
[_f, _mR, _nT],
|
|
355
|
+
[() => Expression$, 1, 0]
|
|
356
|
+
];
|
|
357
|
+
var GetFreeTierUsageResponse$ = [3, n0, _GFTURe,
|
|
358
|
+
0,
|
|
359
|
+
[_fTU, _nT],
|
|
360
|
+
[() => FreeTierUsages, 0], 1
|
|
361
|
+
];
|
|
362
|
+
var ListAccountActivitiesRequest$ = [3, n0, _LAAR,
|
|
363
|
+
0,
|
|
364
|
+
[_fAS, _nT, _mR, _lC],
|
|
365
|
+
[64 | 0, 0, 1, 0]
|
|
366
|
+
];
|
|
367
|
+
var ListAccountActivitiesResponse$ = [3, n0, _LAARi,
|
|
368
|
+
0,
|
|
369
|
+
[_a, _nT],
|
|
370
|
+
[() => Activities, 0], 1
|
|
371
|
+
];
|
|
372
|
+
var MonetaryAmount$ = [3, n0, _MA,
|
|
373
|
+
0,
|
|
374
|
+
[_am, _u],
|
|
375
|
+
[1, 0], 2
|
|
376
|
+
];
|
|
377
|
+
var UpgradeAccountPlanRequest$ = [3, n0, _UAPR,
|
|
378
|
+
0,
|
|
379
|
+
[_aPT],
|
|
380
|
+
[0], 1
|
|
381
|
+
];
|
|
382
|
+
var UpgradeAccountPlanResponse$ = [3, n0, _UAPRp,
|
|
383
|
+
0,
|
|
384
|
+
[_aIc, _aPT, _aPS],
|
|
385
|
+
[0, 0, 0], 3
|
|
386
|
+
];
|
|
387
|
+
var Activities = [1, n0, _Ac,
|
|
388
|
+
0, () => ActivitySummary$
|
|
389
|
+
];
|
|
390
|
+
var Expressions = [1, n0, _Ex,
|
|
391
|
+
0, () => Expression$
|
|
392
|
+
];
|
|
393
|
+
var FreeTierUsages = [1, n0, _FTUr,
|
|
394
|
+
0, () => FreeTierUsage$
|
|
395
|
+
];
|
|
396
|
+
var ActivityReward$ = [4, n0, _AR,
|
|
397
|
+
0,
|
|
398
|
+
[_cr],
|
|
399
|
+
[() => MonetaryAmount$]
|
|
400
|
+
];
|
|
401
|
+
var GetAccountActivity$ = [9, n0, _GAA,
|
|
402
|
+
0, () => GetAccountActivityRequest$, () => GetAccountActivityResponse$
|
|
403
|
+
];
|
|
404
|
+
var GetAccountPlanState$ = [9, n0, _GAPS,
|
|
405
|
+
0, () => GetAccountPlanStateRequest$, () => GetAccountPlanStateResponse$
|
|
406
|
+
];
|
|
407
|
+
var GetFreeTierUsage$ = [9, n0, _GFTU,
|
|
408
|
+
0, () => GetFreeTierUsageRequest$, () => GetFreeTierUsageResponse$
|
|
409
|
+
];
|
|
410
|
+
var ListAccountActivities$ = [9, n0, _LAA,
|
|
411
|
+
0, () => ListAccountActivitiesRequest$, () => ListAccountActivitiesResponse$
|
|
412
|
+
];
|
|
413
|
+
var UpgradeAccountPlan$ = [9, n0, _UAP,
|
|
414
|
+
0, () => UpgradeAccountPlanRequest$, () => UpgradeAccountPlanResponse$
|
|
415
|
+
];
|
|
416
|
+
|
|
417
|
+
const getRuntimeConfig$1 = (config) => {
|
|
418
|
+
return {
|
|
419
|
+
apiVersion: "2023-09-07",
|
|
420
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
421
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
422
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
423
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
424
|
+
extensions: config?.extensions ?? [],
|
|
425
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultFreeTierHttpAuthSchemeProvider,
|
|
426
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
427
|
+
{
|
|
428
|
+
schemeId: "aws.auth#sigv4",
|
|
429
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
430
|
+
signer: new AwsSdkSigV4Signer(),
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
434
|
+
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
435
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
436
|
+
defaultNamespace: "com.amazonaws.freetier",
|
|
437
|
+
errorTypeRegistries,
|
|
438
|
+
version: "2023-09-07",
|
|
439
|
+
serviceTarget: "AWSFreeTierService",
|
|
440
|
+
},
|
|
441
|
+
serviceId: config?.serviceId ?? "FreeTier",
|
|
442
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
443
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
444
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
const getRuntimeConfig = (config) => {
|
|
449
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
450
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
451
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
452
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
453
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
454
|
+
const loaderConfig = {
|
|
455
|
+
profile: config?.profile,
|
|
456
|
+
logger: clientSharedValues.logger,
|
|
457
|
+
};
|
|
458
|
+
return {
|
|
459
|
+
...clientSharedValues,
|
|
460
|
+
...config,
|
|
461
|
+
runtime: "node",
|
|
462
|
+
defaultsMode,
|
|
463
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
464
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
465
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
466
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
467
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
468
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
469
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
470
|
+
retryMode: config?.retryMode ??
|
|
471
|
+
loadConfig({
|
|
472
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
473
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
474
|
+
}, config),
|
|
475
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
476
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
477
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
478
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
479
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
|
|
32
483
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
484
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
485
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -238,19 +689,53 @@ const MatchOption = {
|
|
|
238
689
|
STARTS_WITH: "STARTS_WITH",
|
|
239
690
|
};
|
|
240
691
|
|
|
692
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
693
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
241
694
|
exports.AccountPlanStatus = AccountPlanStatus;
|
|
242
695
|
exports.AccountPlanType = AccountPlanType;
|
|
696
|
+
exports.ActivityReward$ = ActivityReward$;
|
|
243
697
|
exports.ActivityStatus = ActivityStatus;
|
|
698
|
+
exports.ActivitySummary$ = ActivitySummary$;
|
|
244
699
|
exports.CurrencyCode = CurrencyCode;
|
|
245
700
|
exports.Dimension = Dimension;
|
|
701
|
+
exports.DimensionValues$ = DimensionValues$;
|
|
702
|
+
exports.Expression$ = Expression$;
|
|
246
703
|
exports.FreeTier = FreeTier;
|
|
247
704
|
exports.FreeTierClient = FreeTierClient;
|
|
705
|
+
exports.FreeTierServiceException = FreeTierServiceException;
|
|
706
|
+
exports.FreeTierServiceException$ = FreeTierServiceException$;
|
|
707
|
+
exports.FreeTierUsage$ = FreeTierUsage$;
|
|
708
|
+
exports.GetAccountActivity$ = GetAccountActivity$;
|
|
248
709
|
exports.GetAccountActivityCommand = GetAccountActivityCommand;
|
|
710
|
+
exports.GetAccountActivityRequest$ = GetAccountActivityRequest$;
|
|
711
|
+
exports.GetAccountActivityResponse$ = GetAccountActivityResponse$;
|
|
712
|
+
exports.GetAccountPlanState$ = GetAccountPlanState$;
|
|
249
713
|
exports.GetAccountPlanStateCommand = GetAccountPlanStateCommand;
|
|
714
|
+
exports.GetAccountPlanStateRequest$ = GetAccountPlanStateRequest$;
|
|
715
|
+
exports.GetAccountPlanStateResponse$ = GetAccountPlanStateResponse$;
|
|
716
|
+
exports.GetFreeTierUsage$ = GetFreeTierUsage$;
|
|
250
717
|
exports.GetFreeTierUsageCommand = GetFreeTierUsageCommand;
|
|
718
|
+
exports.GetFreeTierUsageRequest$ = GetFreeTierUsageRequest$;
|
|
719
|
+
exports.GetFreeTierUsageResponse$ = GetFreeTierUsageResponse$;
|
|
720
|
+
exports.InternalServerException = InternalServerException;
|
|
721
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
251
722
|
exports.LanguageCode = LanguageCode;
|
|
723
|
+
exports.ListAccountActivities$ = ListAccountActivities$;
|
|
252
724
|
exports.ListAccountActivitiesCommand = ListAccountActivitiesCommand;
|
|
725
|
+
exports.ListAccountActivitiesRequest$ = ListAccountActivitiesRequest$;
|
|
726
|
+
exports.ListAccountActivitiesResponse$ = ListAccountActivitiesResponse$;
|
|
253
727
|
exports.MatchOption = MatchOption;
|
|
728
|
+
exports.MonetaryAmount$ = MonetaryAmount$;
|
|
729
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
730
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
731
|
+
exports.ThrottlingException = ThrottlingException;
|
|
732
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
733
|
+
exports.UpgradeAccountPlan$ = UpgradeAccountPlan$;
|
|
254
734
|
exports.UpgradeAccountPlanCommand = UpgradeAccountPlanCommand;
|
|
735
|
+
exports.UpgradeAccountPlanRequest$ = UpgradeAccountPlanRequest$;
|
|
736
|
+
exports.UpgradeAccountPlanResponse$ = UpgradeAccountPlanResponse$;
|
|
737
|
+
exports.ValidationException = ValidationException;
|
|
738
|
+
exports.ValidationException$ = ValidationException$;
|
|
739
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
255
740
|
exports.paginateGetFreeTierUsage = paginateGetFreeTierUsage;
|
|
256
741
|
exports.paginateListAccountActivities = paginateListAccountActivities;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: FreeTierClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: FreeTierClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: FreeTierClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: FreeTierClientConfig) => {
|
|
|
21
21
|
| RequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
|
24
|
-
streamCollector:
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
25
31
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
32
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
33
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: FreeTierClientConfig) => {
|
|
|
22
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
24
|
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
34
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: FreeTierClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector:
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
24
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
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.1076.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",
|
|
@@ -21,13 +21,13 @@
|
|
|
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.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultFreeTierHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "freetier",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultFreeTierHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const n = "ref";
|
|
3
|
-
const a = true, b = "isSet", c = "PartitionResult", d = "booleanEquals", e = "getAttr", f = "stringEquals", g = "sigv4", h = "freetier", i = { [n]: "Endpoint" }, j = { [n]: c }, k = { [n]: "Region" }, l = {}, m = [k];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[b, [i]],
|
|
7
|
-
[b, m],
|
|
8
|
-
["aws.partition", m, c],
|
|
9
|
-
[d, [{ [n]: "UseFIPS" }, a]],
|
|
10
|
-
[d, [{ fn: e, argv: [j, "supportsFIPS"] }, a]],
|
|
11
|
-
[f, [{ fn: e, argv: [j, "name"] }, "aws"]],
|
|
12
|
-
[f, [k, "aws-cn-global"]],
|
|
13
|
-
[d, [{ fn: e, argv: [j, "supportsDualStack"] }, a]]
|
|
14
|
-
],
|
|
15
|
-
results: [
|
|
16
|
-
[-1],
|
|
17
|
-
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
18
|
-
[i, l],
|
|
19
|
-
["https://freetier-fips.{Region}.api.aws", l],
|
|
20
|
-
[-1, "FIPS is enabled but this partition does not support FIPS"],
|
|
21
|
-
["https://freetier.us-east-1.api.aws", { authSchemes: [{ name: g, signingName: h, signingRegion: "us-east-1" }] }],
|
|
22
|
-
["https://freetier-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", l],
|
|
23
|
-
["https://freetier.cn-northwest-1.api.amazonwebservices.com.cn", { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-northwest-1" }] }],
|
|
24
|
-
["https://freetier.{Region}.{PartitionResult#dualStackDnsSuffix}", l],
|
|
25
|
-
["https://freetier-fips.{Region}.{PartitionResult#dnsSuffix}", l],
|
|
26
|
-
["https://freetier.{Region}.{PartitionResult#dnsSuffix}", l],
|
|
27
|
-
[-1, "Invalid Configuration: Missing Region"]
|
|
28
|
-
]
|
|
29
|
-
};
|
|
30
|
-
const root = 2;
|
|
31
|
-
const r = 100_000_000;
|
|
32
|
-
const nodes = new Int32Array([
|
|
33
|
-
-1, 1, -1,
|
|
34
|
-
0, 12, 3,
|
|
35
|
-
1, 4, r + 11,
|
|
36
|
-
2, 5, r + 11,
|
|
37
|
-
3, 9, 6,
|
|
38
|
-
5, r + 5, 7,
|
|
39
|
-
6, r + 7, 8,
|
|
40
|
-
7, r + 8, r + 10,
|
|
41
|
-
4, 10, r + 4,
|
|
42
|
-
5, r + 3, 11,
|
|
43
|
-
7, r + 6, r + 9,
|
|
44
|
-
3, r + 1, r + 2,
|
|
45
|
-
]);
|
|
46
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.FreeTierServiceException = class FreeTierServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, FreeTierServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
const { FreeTierServiceException: __BaseException } = require("./FreeTierServiceException");
|
|
2
|
-
exports.AccessDeniedException = 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
|
-
exports.InternalServerException = 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
|
-
exports.ResourceNotFoundException = 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
|
-
exports.ThrottlingException = 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
|
-
exports.ValidationException = 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,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
awsCheckVersion(process.version);
|
|
17
|
-
const loaderConfig = {
|
|
18
|
-
profile: config?.profile,
|
|
19
|
-
logger: clientSharedValues.logger,
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
...clientSharedValues,
|
|
23
|
-
...config,
|
|
24
|
-
runtime: "node",
|
|
25
|
-
defaultsMode,
|
|
26
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ??
|
|
34
|
-
loadNodeConfig({
|
|
35
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
-
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultFreeTierHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2023-09-07",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultFreeTierHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.freetier",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
version: "2023-09-07",
|
|
31
|
-
serviceTarget: "AWSFreeTierService",
|
|
32
|
-
},
|
|
33
|
-
serviceId: config?.serviceId ?? "FreeTier",
|
|
34
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
const _A = "And";
|
|
2
|
-
const _ADE = "AccessDeniedException";
|
|
3
|
-
const _AR = "ActivityReward";
|
|
4
|
-
const _AS = "ActivitySummary";
|
|
5
|
-
const _Ac = "Activities";
|
|
6
|
-
const _D = "Dimensions";
|
|
7
|
-
const _DV = "DimensionValues";
|
|
8
|
-
const _E = "Expression";
|
|
9
|
-
const _Ex = "Expressions";
|
|
10
|
-
const _FTU = "FreeTierUsage";
|
|
11
|
-
const _FTUr = "FreeTierUsages";
|
|
12
|
-
const _GAA = "GetAccountActivity";
|
|
13
|
-
const _GAAR = "GetAccountActivityRequest";
|
|
14
|
-
const _GAARe = "GetAccountActivityResponse";
|
|
15
|
-
const _GAPS = "GetAccountPlanState";
|
|
16
|
-
const _GAPSR = "GetAccountPlanStateRequest";
|
|
17
|
-
const _GAPSRe = "GetAccountPlanStateResponse";
|
|
18
|
-
const _GFTU = "GetFreeTierUsage";
|
|
19
|
-
const _GFTUR = "GetFreeTierUsageRequest";
|
|
20
|
-
const _GFTURe = "GetFreeTierUsageResponse";
|
|
21
|
-
const _ISE = "InternalServerException";
|
|
22
|
-
const _K = "Key";
|
|
23
|
-
const _LAA = "ListAccountActivities";
|
|
24
|
-
const _LAAR = "ListAccountActivitiesRequest";
|
|
25
|
-
const _LAARi = "ListAccountActivitiesResponse";
|
|
26
|
-
const _MA = "MonetaryAmount";
|
|
27
|
-
const _MO = "MatchOptions";
|
|
28
|
-
const _N = "Not";
|
|
29
|
-
const _O = "Or";
|
|
30
|
-
const _RNFE = "ResourceNotFoundException";
|
|
31
|
-
const _TE = "ThrottlingException";
|
|
32
|
-
const _UAP = "UpgradeAccountPlan";
|
|
33
|
-
const _UAPR = "UpgradeAccountPlanRequest";
|
|
34
|
-
const _UAPRp = "UpgradeAccountPlanResponse";
|
|
35
|
-
const _V = "Values";
|
|
36
|
-
const _VE = "ValidationException";
|
|
37
|
-
const _a = "activities";
|
|
38
|
-
const _aI = "activityId";
|
|
39
|
-
const _aIc = "accountId";
|
|
40
|
-
const _aPED = "accountPlanExpirationDate";
|
|
41
|
-
const _aPRC = "accountPlanRemainingCredits";
|
|
42
|
-
const _aPS = "accountPlanStatus";
|
|
43
|
-
const _aPT = "accountPlanType";
|
|
44
|
-
const _aUA = "actualUsageAmount";
|
|
45
|
-
const _am = "amount";
|
|
46
|
-
const _c = "client";
|
|
47
|
-
const _cA = "completedAt";
|
|
48
|
-
const _cr = "credit";
|
|
49
|
-
const _d = "description";
|
|
50
|
-
const _e = "error";
|
|
51
|
-
const _eA = "expiresAt";
|
|
52
|
-
const _eTTCIM = "estimatedTimeToCompleteInMinutes";
|
|
53
|
-
const _f = "filter";
|
|
54
|
-
const _fAS = "filterActivityStatuses";
|
|
55
|
-
const _fTT = "freeTierType";
|
|
56
|
-
const _fTU = "freeTierUsages";
|
|
57
|
-
const _fUA = "forecastedUsageAmount";
|
|
58
|
-
const _hE = "httpError";
|
|
59
|
-
const _iU = "instructionsUrl";
|
|
60
|
-
const _l = "limit";
|
|
61
|
-
const _lC = "languageCode";
|
|
62
|
-
const _m = "message";
|
|
63
|
-
const _mR = "maxResults";
|
|
64
|
-
const _nT = "nextToken";
|
|
65
|
-
const _o = "operation";
|
|
66
|
-
const _r = "reward";
|
|
67
|
-
const _re = "region";
|
|
68
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.freetier";
|
|
69
|
-
const _sA = "startedAt";
|
|
70
|
-
const _se = "server";
|
|
71
|
-
const _ser = "service";
|
|
72
|
-
const _st = "status";
|
|
73
|
-
const _t = "title";
|
|
74
|
-
const _u = "unit";
|
|
75
|
-
const _uT = "usageType";
|
|
76
|
-
const n0 = "com.amazonaws.freetier";
|
|
77
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
78
|
-
const { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException } = require("../models/errors");
|
|
79
|
-
const { FreeTierServiceException } = require("../models/FreeTierServiceException");
|
|
80
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
81
|
-
const FreeTierServiceException$ = [-3, _s, "FreeTierServiceException", 0, [], []];
|
|
82
|
-
exports.FreeTierServiceException$ = FreeTierServiceException$;
|
|
83
|
-
_s_registry.registerError(FreeTierServiceException$, FreeTierServiceException);
|
|
84
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
85
|
-
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
86
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
87
|
-
[_m],
|
|
88
|
-
[0], 1
|
|
89
|
-
];
|
|
90
|
-
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
91
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
92
|
-
const InternalServerException$ = [-3, n0, _ISE,
|
|
93
|
-
{ [_e]: _se, [_hE]: 500 },
|
|
94
|
-
[_m],
|
|
95
|
-
[0], 1
|
|
96
|
-
];
|
|
97
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
98
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
99
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
100
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
101
|
-
[_m],
|
|
102
|
-
[0], 1
|
|
103
|
-
];
|
|
104
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
105
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
106
|
-
const ThrottlingException$ = [-3, n0, _TE,
|
|
107
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
108
|
-
[_m],
|
|
109
|
-
[0], 1
|
|
110
|
-
];
|
|
111
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
112
|
-
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
113
|
-
const ValidationException$ = [-3, n0, _VE,
|
|
114
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
115
|
-
[_m],
|
|
116
|
-
[0], 1
|
|
117
|
-
];
|
|
118
|
-
exports.ValidationException$ = ValidationException$;
|
|
119
|
-
n0_registry.registerError(ValidationException$, ValidationException);
|
|
120
|
-
exports.errorTypeRegistries = [
|
|
121
|
-
_s_registry,
|
|
122
|
-
n0_registry,
|
|
123
|
-
];
|
|
124
|
-
const ActivitySummary$ = [3, n0, _AS,
|
|
125
|
-
0,
|
|
126
|
-
[_aI, _t, _r, _st],
|
|
127
|
-
[0, 0, () => ActivityReward$, 0], 4
|
|
128
|
-
];
|
|
129
|
-
exports.ActivitySummary$ = ActivitySummary$;
|
|
130
|
-
const DimensionValues$ = [3, n0, _DV,
|
|
131
|
-
0,
|
|
132
|
-
[_K, _V, _MO],
|
|
133
|
-
[0, 64 | 0, 64 | 0], 3
|
|
134
|
-
];
|
|
135
|
-
exports.DimensionValues$ = DimensionValues$;
|
|
136
|
-
const Expression$ = [3, n0, _E,
|
|
137
|
-
0,
|
|
138
|
-
[_O, _A, _N, _D],
|
|
139
|
-
[() => Expressions, () => Expressions, () => Expression$, () => DimensionValues$]
|
|
140
|
-
];
|
|
141
|
-
exports.Expression$ = Expression$;
|
|
142
|
-
const FreeTierUsage$ = [3, n0, _FTU,
|
|
143
|
-
0,
|
|
144
|
-
[_ser, _o, _uT, _re, _aUA, _fUA, _l, _u, _d, _fTT],
|
|
145
|
-
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0]
|
|
146
|
-
];
|
|
147
|
-
exports.FreeTierUsage$ = FreeTierUsage$;
|
|
148
|
-
const GetAccountActivityRequest$ = [3, n0, _GAAR,
|
|
149
|
-
0,
|
|
150
|
-
[_aI, _lC],
|
|
151
|
-
[0, 0], 1
|
|
152
|
-
];
|
|
153
|
-
exports.GetAccountActivityRequest$ = GetAccountActivityRequest$;
|
|
154
|
-
const GetAccountActivityResponse$ = [3, n0, _GAARe,
|
|
155
|
-
0,
|
|
156
|
-
[_aI, _t, _d, _st, _iU, _r, _eTTCIM, _eA, _sA, _cA],
|
|
157
|
-
[0, 0, 0, 0, 0, () => ActivityReward$, 1, 5, 5, 5], 6
|
|
158
|
-
];
|
|
159
|
-
exports.GetAccountActivityResponse$ = GetAccountActivityResponse$;
|
|
160
|
-
const GetAccountPlanStateRequest$ = [3, n0, _GAPSR,
|
|
161
|
-
0,
|
|
162
|
-
[],
|
|
163
|
-
[]
|
|
164
|
-
];
|
|
165
|
-
exports.GetAccountPlanStateRequest$ = GetAccountPlanStateRequest$;
|
|
166
|
-
const GetAccountPlanStateResponse$ = [3, n0, _GAPSRe,
|
|
167
|
-
0,
|
|
168
|
-
[_aIc, _aPT, _aPS, _aPRC, _aPED],
|
|
169
|
-
[0, 0, 0, () => MonetaryAmount$, 5], 3
|
|
170
|
-
];
|
|
171
|
-
exports.GetAccountPlanStateResponse$ = GetAccountPlanStateResponse$;
|
|
172
|
-
const GetFreeTierUsageRequest$ = [3, n0, _GFTUR,
|
|
173
|
-
0,
|
|
174
|
-
[_f, _mR, _nT],
|
|
175
|
-
[() => Expression$, 1, 0]
|
|
176
|
-
];
|
|
177
|
-
exports.GetFreeTierUsageRequest$ = GetFreeTierUsageRequest$;
|
|
178
|
-
const GetFreeTierUsageResponse$ = [3, n0, _GFTURe,
|
|
179
|
-
0,
|
|
180
|
-
[_fTU, _nT],
|
|
181
|
-
[() => FreeTierUsages, 0], 1
|
|
182
|
-
];
|
|
183
|
-
exports.GetFreeTierUsageResponse$ = GetFreeTierUsageResponse$;
|
|
184
|
-
const ListAccountActivitiesRequest$ = [3, n0, _LAAR,
|
|
185
|
-
0,
|
|
186
|
-
[_fAS, _nT, _mR, _lC],
|
|
187
|
-
[64 | 0, 0, 1, 0]
|
|
188
|
-
];
|
|
189
|
-
exports.ListAccountActivitiesRequest$ = ListAccountActivitiesRequest$;
|
|
190
|
-
const ListAccountActivitiesResponse$ = [3, n0, _LAARi,
|
|
191
|
-
0,
|
|
192
|
-
[_a, _nT],
|
|
193
|
-
[() => Activities, 0], 1
|
|
194
|
-
];
|
|
195
|
-
exports.ListAccountActivitiesResponse$ = ListAccountActivitiesResponse$;
|
|
196
|
-
const MonetaryAmount$ = [3, n0, _MA,
|
|
197
|
-
0,
|
|
198
|
-
[_am, _u],
|
|
199
|
-
[1, 0], 2
|
|
200
|
-
];
|
|
201
|
-
exports.MonetaryAmount$ = MonetaryAmount$;
|
|
202
|
-
const UpgradeAccountPlanRequest$ = [3, n0, _UAPR,
|
|
203
|
-
0,
|
|
204
|
-
[_aPT],
|
|
205
|
-
[0], 1
|
|
206
|
-
];
|
|
207
|
-
exports.UpgradeAccountPlanRequest$ = UpgradeAccountPlanRequest$;
|
|
208
|
-
const UpgradeAccountPlanResponse$ = [3, n0, _UAPRp,
|
|
209
|
-
0,
|
|
210
|
-
[_aIc, _aPT, _aPS],
|
|
211
|
-
[0, 0, 0], 3
|
|
212
|
-
];
|
|
213
|
-
exports.UpgradeAccountPlanResponse$ = UpgradeAccountPlanResponse$;
|
|
214
|
-
var Activities = [1, n0, _Ac,
|
|
215
|
-
0, () => ActivitySummary$
|
|
216
|
-
];
|
|
217
|
-
var Expressions = [1, n0, _Ex,
|
|
218
|
-
0, () => Expression$
|
|
219
|
-
];
|
|
220
|
-
var FilterActivityStatuses = 64 | 0;
|
|
221
|
-
var FreeTierUsages = [1, n0, _FTUr,
|
|
222
|
-
0, () => FreeTierUsage$
|
|
223
|
-
];
|
|
224
|
-
var MatchOptions = 64 | 0;
|
|
225
|
-
var Values = 64 | 0;
|
|
226
|
-
const ActivityReward$ = [4, n0, _AR,
|
|
227
|
-
0,
|
|
228
|
-
[_cr],
|
|
229
|
-
[() => MonetaryAmount$]
|
|
230
|
-
];
|
|
231
|
-
exports.ActivityReward$ = ActivityReward$;
|
|
232
|
-
exports.GetAccountActivity$ = [9, n0, _GAA,
|
|
233
|
-
0, () => GetAccountActivityRequest$, () => GetAccountActivityResponse$
|
|
234
|
-
];
|
|
235
|
-
exports.GetAccountPlanState$ = [9, n0, _GAPS,
|
|
236
|
-
0, () => GetAccountPlanStateRequest$, () => GetAccountPlanStateResponse$
|
|
237
|
-
];
|
|
238
|
-
exports.GetFreeTierUsage$ = [9, n0, _GFTU,
|
|
239
|
-
0, () => GetFreeTierUsageRequest$, () => GetFreeTierUsageResponse$
|
|
240
|
-
];
|
|
241
|
-
exports.ListAccountActivities$ = [9, n0, _LAA,
|
|
242
|
-
0, () => ListAccountActivitiesRequest$, () => ListAccountActivitiesResponse$
|
|
243
|
-
];
|
|
244
|
-
exports.UpgradeAccountPlan$ = [9, n0, _UAP,
|
|
245
|
-
0, () => UpgradeAccountPlanRequest$, () => UpgradeAccountPlanResponse$
|
|
246
|
-
];
|