@aws-sdk/client-efs 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.
@@ -1,517 +0,0 @@
1
- const { EFSServiceException: __BaseException } = require("./EFSServiceException");
2
- exports.AccessPointAlreadyExists = class AccessPointAlreadyExists extends __BaseException {
3
- name = "AccessPointAlreadyExists";
4
- $fault = "client";
5
- ErrorCode;
6
- Message;
7
- AccessPointId;
8
- constructor(opts) {
9
- super({
10
- name: "AccessPointAlreadyExists",
11
- $fault: "client",
12
- ...opts,
13
- });
14
- Object.setPrototypeOf(this, AccessPointAlreadyExists.prototype);
15
- this.ErrorCode = opts.ErrorCode;
16
- this.Message = opts.Message;
17
- this.AccessPointId = opts.AccessPointId;
18
- }
19
- };
20
- exports.AccessPointLimitExceeded = class AccessPointLimitExceeded extends __BaseException {
21
- name = "AccessPointLimitExceeded";
22
- $fault = "client";
23
- ErrorCode;
24
- Message;
25
- constructor(opts) {
26
- super({
27
- name: "AccessPointLimitExceeded",
28
- $fault: "client",
29
- ...opts,
30
- });
31
- Object.setPrototypeOf(this, AccessPointLimitExceeded.prototype);
32
- this.ErrorCode = opts.ErrorCode;
33
- this.Message = opts.Message;
34
- }
35
- };
36
- exports.AccessPointNotFound = class AccessPointNotFound extends __BaseException {
37
- name = "AccessPointNotFound";
38
- $fault = "client";
39
- ErrorCode;
40
- Message;
41
- constructor(opts) {
42
- super({
43
- name: "AccessPointNotFound",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, AccessPointNotFound.prototype);
48
- this.ErrorCode = opts.ErrorCode;
49
- this.Message = opts.Message;
50
- }
51
- };
52
- exports.AvailabilityZonesMismatch = class AvailabilityZonesMismatch extends __BaseException {
53
- name = "AvailabilityZonesMismatch";
54
- $fault = "client";
55
- ErrorCode;
56
- Message;
57
- constructor(opts) {
58
- super({
59
- name: "AvailabilityZonesMismatch",
60
- $fault: "client",
61
- ...opts,
62
- });
63
- Object.setPrototypeOf(this, AvailabilityZonesMismatch.prototype);
64
- this.ErrorCode = opts.ErrorCode;
65
- this.Message = opts.Message;
66
- }
67
- };
68
- exports.BadRequest = class BadRequest extends __BaseException {
69
- name = "BadRequest";
70
- $fault = "client";
71
- ErrorCode;
72
- Message;
73
- constructor(opts) {
74
- super({
75
- name: "BadRequest",
76
- $fault: "client",
77
- ...opts,
78
- });
79
- Object.setPrototypeOf(this, BadRequest.prototype);
80
- this.ErrorCode = opts.ErrorCode;
81
- this.Message = opts.Message;
82
- }
83
- };
84
- exports.ConflictException = class ConflictException extends __BaseException {
85
- name = "ConflictException";
86
- $fault = "client";
87
- ErrorCode;
88
- Message;
89
- constructor(opts) {
90
- super({
91
- name: "ConflictException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, ConflictException.prototype);
96
- this.ErrorCode = opts.ErrorCode;
97
- this.Message = opts.Message;
98
- }
99
- };
100
- exports.FileSystemNotFound = class FileSystemNotFound extends __BaseException {
101
- name = "FileSystemNotFound";
102
- $fault = "client";
103
- ErrorCode;
104
- Message;
105
- constructor(opts) {
106
- super({
107
- name: "FileSystemNotFound",
108
- $fault: "client",
109
- ...opts,
110
- });
111
- Object.setPrototypeOf(this, FileSystemNotFound.prototype);
112
- this.ErrorCode = opts.ErrorCode;
113
- this.Message = opts.Message;
114
- }
115
- };
116
- exports.IncorrectFileSystemLifeCycleState = class IncorrectFileSystemLifeCycleState extends __BaseException {
117
- name = "IncorrectFileSystemLifeCycleState";
118
- $fault = "client";
119
- ErrorCode;
120
- Message;
121
- constructor(opts) {
122
- super({
123
- name: "IncorrectFileSystemLifeCycleState",
124
- $fault: "client",
125
- ...opts,
126
- });
127
- Object.setPrototypeOf(this, IncorrectFileSystemLifeCycleState.prototype);
128
- this.ErrorCode = opts.ErrorCode;
129
- this.Message = opts.Message;
130
- }
131
- };
132
- exports.InternalServerError = class InternalServerError extends __BaseException {
133
- name = "InternalServerError";
134
- $fault = "server";
135
- ErrorCode;
136
- Message;
137
- constructor(opts) {
138
- super({
139
- name: "InternalServerError",
140
- $fault: "server",
141
- ...opts,
142
- });
143
- Object.setPrototypeOf(this, InternalServerError.prototype);
144
- this.ErrorCode = opts.ErrorCode;
145
- this.Message = opts.Message;
146
- }
147
- };
148
- exports.ThrottlingException = class ThrottlingException extends __BaseException {
149
- name = "ThrottlingException";
150
- $fault = "client";
151
- ErrorCode;
152
- Message;
153
- constructor(opts) {
154
- super({
155
- name: "ThrottlingException",
156
- $fault: "client",
157
- ...opts,
158
- });
159
- Object.setPrototypeOf(this, ThrottlingException.prototype);
160
- this.ErrorCode = opts.ErrorCode;
161
- this.Message = opts.Message;
162
- }
163
- };
164
- exports.FileSystemAlreadyExists = class FileSystemAlreadyExists extends __BaseException {
165
- name = "FileSystemAlreadyExists";
166
- $fault = "client";
167
- ErrorCode;
168
- Message;
169
- FileSystemId;
170
- constructor(opts) {
171
- super({
172
- name: "FileSystemAlreadyExists",
173
- $fault: "client",
174
- ...opts,
175
- });
176
- Object.setPrototypeOf(this, FileSystemAlreadyExists.prototype);
177
- this.ErrorCode = opts.ErrorCode;
178
- this.Message = opts.Message;
179
- this.FileSystemId = opts.FileSystemId;
180
- }
181
- };
182
- exports.FileSystemLimitExceeded = class FileSystemLimitExceeded extends __BaseException {
183
- name = "FileSystemLimitExceeded";
184
- $fault = "client";
185
- ErrorCode;
186
- Message;
187
- constructor(opts) {
188
- super({
189
- name: "FileSystemLimitExceeded",
190
- $fault: "client",
191
- ...opts,
192
- });
193
- Object.setPrototypeOf(this, FileSystemLimitExceeded.prototype);
194
- this.ErrorCode = opts.ErrorCode;
195
- this.Message = opts.Message;
196
- }
197
- };
198
- exports.InsufficientThroughputCapacity = class InsufficientThroughputCapacity extends __BaseException {
199
- name = "InsufficientThroughputCapacity";
200
- $fault = "server";
201
- ErrorCode;
202
- Message;
203
- constructor(opts) {
204
- super({
205
- name: "InsufficientThroughputCapacity",
206
- $fault: "server",
207
- ...opts,
208
- });
209
- Object.setPrototypeOf(this, InsufficientThroughputCapacity.prototype);
210
- this.ErrorCode = opts.ErrorCode;
211
- this.Message = opts.Message;
212
- }
213
- };
214
- exports.ThroughputLimitExceeded = class ThroughputLimitExceeded extends __BaseException {
215
- name = "ThroughputLimitExceeded";
216
- $fault = "client";
217
- ErrorCode;
218
- Message;
219
- constructor(opts) {
220
- super({
221
- name: "ThroughputLimitExceeded",
222
- $fault: "client",
223
- ...opts,
224
- });
225
- Object.setPrototypeOf(this, ThroughputLimitExceeded.prototype);
226
- this.ErrorCode = opts.ErrorCode;
227
- this.Message = opts.Message;
228
- }
229
- };
230
- exports.UnsupportedAvailabilityZone = class UnsupportedAvailabilityZone extends __BaseException {
231
- name = "UnsupportedAvailabilityZone";
232
- $fault = "client";
233
- ErrorCode;
234
- Message;
235
- constructor(opts) {
236
- super({
237
- name: "UnsupportedAvailabilityZone",
238
- $fault: "client",
239
- ...opts,
240
- });
241
- Object.setPrototypeOf(this, UnsupportedAvailabilityZone.prototype);
242
- this.ErrorCode = opts.ErrorCode;
243
- this.Message = opts.Message;
244
- }
245
- };
246
- exports.IpAddressInUse = class IpAddressInUse extends __BaseException {
247
- name = "IpAddressInUse";
248
- $fault = "client";
249
- ErrorCode;
250
- Message;
251
- constructor(opts) {
252
- super({
253
- name: "IpAddressInUse",
254
- $fault: "client",
255
- ...opts,
256
- });
257
- Object.setPrototypeOf(this, IpAddressInUse.prototype);
258
- this.ErrorCode = opts.ErrorCode;
259
- this.Message = opts.Message;
260
- }
261
- };
262
- exports.MountTargetConflict = class MountTargetConflict extends __BaseException {
263
- name = "MountTargetConflict";
264
- $fault = "client";
265
- ErrorCode;
266
- Message;
267
- constructor(opts) {
268
- super({
269
- name: "MountTargetConflict",
270
- $fault: "client",
271
- ...opts,
272
- });
273
- Object.setPrototypeOf(this, MountTargetConflict.prototype);
274
- this.ErrorCode = opts.ErrorCode;
275
- this.Message = opts.Message;
276
- }
277
- };
278
- exports.NetworkInterfaceLimitExceeded = class NetworkInterfaceLimitExceeded extends __BaseException {
279
- name = "NetworkInterfaceLimitExceeded";
280
- $fault = "client";
281
- ErrorCode;
282
- Message;
283
- constructor(opts) {
284
- super({
285
- name: "NetworkInterfaceLimitExceeded",
286
- $fault: "client",
287
- ...opts,
288
- });
289
- Object.setPrototypeOf(this, NetworkInterfaceLimitExceeded.prototype);
290
- this.ErrorCode = opts.ErrorCode;
291
- this.Message = opts.Message;
292
- }
293
- };
294
- exports.NoFreeAddressesInSubnet = class NoFreeAddressesInSubnet extends __BaseException {
295
- name = "NoFreeAddressesInSubnet";
296
- $fault = "client";
297
- ErrorCode;
298
- Message;
299
- constructor(opts) {
300
- super({
301
- name: "NoFreeAddressesInSubnet",
302
- $fault: "client",
303
- ...opts,
304
- });
305
- Object.setPrototypeOf(this, NoFreeAddressesInSubnet.prototype);
306
- this.ErrorCode = opts.ErrorCode;
307
- this.Message = opts.Message;
308
- }
309
- };
310
- exports.SecurityGroupLimitExceeded = class SecurityGroupLimitExceeded extends __BaseException {
311
- name = "SecurityGroupLimitExceeded";
312
- $fault = "client";
313
- ErrorCode;
314
- Message;
315
- constructor(opts) {
316
- super({
317
- name: "SecurityGroupLimitExceeded",
318
- $fault: "client",
319
- ...opts,
320
- });
321
- Object.setPrototypeOf(this, SecurityGroupLimitExceeded.prototype);
322
- this.ErrorCode = opts.ErrorCode;
323
- this.Message = opts.Message;
324
- }
325
- };
326
- exports.SecurityGroupNotFound = class SecurityGroupNotFound extends __BaseException {
327
- name = "SecurityGroupNotFound";
328
- $fault = "client";
329
- ErrorCode;
330
- Message;
331
- constructor(opts) {
332
- super({
333
- name: "SecurityGroupNotFound",
334
- $fault: "client",
335
- ...opts,
336
- });
337
- Object.setPrototypeOf(this, SecurityGroupNotFound.prototype);
338
- this.ErrorCode = opts.ErrorCode;
339
- this.Message = opts.Message;
340
- }
341
- };
342
- exports.SubnetNotFound = class SubnetNotFound extends __BaseException {
343
- name = "SubnetNotFound";
344
- $fault = "client";
345
- ErrorCode;
346
- Message;
347
- constructor(opts) {
348
- super({
349
- name: "SubnetNotFound",
350
- $fault: "client",
351
- ...opts,
352
- });
353
- Object.setPrototypeOf(this, SubnetNotFound.prototype);
354
- this.ErrorCode = opts.ErrorCode;
355
- this.Message = opts.Message;
356
- }
357
- };
358
- exports.ReplicationNotFound = class ReplicationNotFound extends __BaseException {
359
- name = "ReplicationNotFound";
360
- $fault = "client";
361
- ErrorCode;
362
- Message;
363
- constructor(opts) {
364
- super({
365
- name: "ReplicationNotFound",
366
- $fault: "client",
367
- ...opts,
368
- });
369
- Object.setPrototypeOf(this, ReplicationNotFound.prototype);
370
- this.ErrorCode = opts.ErrorCode;
371
- this.Message = opts.Message;
372
- }
373
- };
374
- exports.ValidationException = class ValidationException extends __BaseException {
375
- name = "ValidationException";
376
- $fault = "client";
377
- ErrorCode;
378
- Message;
379
- constructor(opts) {
380
- super({
381
- name: "ValidationException",
382
- $fault: "client",
383
- ...opts,
384
- });
385
- Object.setPrototypeOf(this, ValidationException.prototype);
386
- this.ErrorCode = opts.ErrorCode;
387
- this.Message = opts.Message;
388
- }
389
- };
390
- exports.FileSystemInUse = class FileSystemInUse extends __BaseException {
391
- name = "FileSystemInUse";
392
- $fault = "client";
393
- ErrorCode;
394
- Message;
395
- constructor(opts) {
396
- super({
397
- name: "FileSystemInUse",
398
- $fault: "client",
399
- ...opts,
400
- });
401
- Object.setPrototypeOf(this, FileSystemInUse.prototype);
402
- this.ErrorCode = opts.ErrorCode;
403
- this.Message = opts.Message;
404
- }
405
- };
406
- exports.DependencyTimeout = class DependencyTimeout extends __BaseException {
407
- name = "DependencyTimeout";
408
- $fault = "server";
409
- ErrorCode;
410
- Message;
411
- constructor(opts) {
412
- super({
413
- name: "DependencyTimeout",
414
- $fault: "server",
415
- ...opts,
416
- });
417
- Object.setPrototypeOf(this, DependencyTimeout.prototype);
418
- this.ErrorCode = opts.ErrorCode;
419
- this.Message = opts.Message;
420
- }
421
- };
422
- exports.MountTargetNotFound = class MountTargetNotFound extends __BaseException {
423
- name = "MountTargetNotFound";
424
- $fault = "client";
425
- ErrorCode;
426
- Message;
427
- constructor(opts) {
428
- super({
429
- name: "MountTargetNotFound",
430
- $fault: "client",
431
- ...opts,
432
- });
433
- Object.setPrototypeOf(this, MountTargetNotFound.prototype);
434
- this.ErrorCode = opts.ErrorCode;
435
- this.Message = opts.Message;
436
- }
437
- };
438
- exports.PolicyNotFound = class PolicyNotFound extends __BaseException {
439
- name = "PolicyNotFound";
440
- $fault = "client";
441
- ErrorCode;
442
- Message;
443
- constructor(opts) {
444
- super({
445
- name: "PolicyNotFound",
446
- $fault: "client",
447
- ...opts,
448
- });
449
- Object.setPrototypeOf(this, PolicyNotFound.prototype);
450
- this.ErrorCode = opts.ErrorCode;
451
- this.Message = opts.Message;
452
- }
453
- };
454
- exports.IncorrectMountTargetState = class IncorrectMountTargetState extends __BaseException {
455
- name = "IncorrectMountTargetState";
456
- $fault = "client";
457
- ErrorCode;
458
- Message;
459
- constructor(opts) {
460
- super({
461
- name: "IncorrectMountTargetState",
462
- $fault: "client",
463
- ...opts,
464
- });
465
- Object.setPrototypeOf(this, IncorrectMountTargetState.prototype);
466
- this.ErrorCode = opts.ErrorCode;
467
- this.Message = opts.Message;
468
- }
469
- };
470
- exports.InvalidPolicyException = class InvalidPolicyException extends __BaseException {
471
- name = "InvalidPolicyException";
472
- $fault = "client";
473
- ErrorCode;
474
- Message;
475
- constructor(opts) {
476
- super({
477
- name: "InvalidPolicyException",
478
- $fault: "client",
479
- ...opts,
480
- });
481
- Object.setPrototypeOf(this, InvalidPolicyException.prototype);
482
- this.ErrorCode = opts.ErrorCode;
483
- this.Message = opts.Message;
484
- }
485
- };
486
- exports.TooManyRequests = class TooManyRequests extends __BaseException {
487
- name = "TooManyRequests";
488
- $fault = "client";
489
- ErrorCode;
490
- Message;
491
- constructor(opts) {
492
- super({
493
- name: "TooManyRequests",
494
- $fault: "client",
495
- ...opts,
496
- });
497
- Object.setPrototypeOf(this, TooManyRequests.prototype);
498
- this.ErrorCode = opts.ErrorCode;
499
- this.Message = opts.Message;
500
- }
501
- };
502
- exports.ReplicationAlreadyExists = class ReplicationAlreadyExists extends __BaseException {
503
- name = "ReplicationAlreadyExists";
504
- $fault = "client";
505
- ErrorCode;
506
- Message;
507
- constructor(opts) {
508
- super({
509
- name: "ReplicationAlreadyExists",
510
- $fault: "client",
511
- ...opts,
512
- });
513
- Object.setPrototypeOf(this, ReplicationAlreadyExists.prototype);
514
- this.ErrorCode = opts.ErrorCode;
515
- this.Message = opts.Message;
516
- }
517
- };
@@ -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 { AwsRestJsonProtocol } = 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 { defaultEFSHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2015-02-01",
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 ?? defaultEFSHttpAuthSchemeProvider,
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 ?? AwsRestJsonProtocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.efs",
29
- errorTypeRegistries,
30
- version: "2015-02-01",
31
- serviceTarget: "MagnolioAPIService_v20150201",
32
- },
33
- serviceId: config?.serviceId ?? "EFS",
34
- urlParser: config?.urlParser ?? parseUrl,
35
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
37
- };
38
- };