@aws-sdk/client-fsx 3.46.0 → 3.48.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.
@@ -11,10 +11,6 @@ export var ActiveDirectoryErrorType;
11
11
  ActiveDirectoryErrorType["INVALID_DOMAIN_STAGE"] = "INVALID_DOMAIN_STAGE";
12
12
  ActiveDirectoryErrorType["WRONG_VPC"] = "WRONG_VPC";
13
13
  })(ActiveDirectoryErrorType || (ActiveDirectoryErrorType = {}));
14
- export var ActiveDirectoryError;
15
- (function (ActiveDirectoryError) {
16
- ActiveDirectoryError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
- })(ActiveDirectoryError || (ActiveDirectoryError = {}));
18
14
  export var AdministrativeActionType;
19
15
  (function (AdministrativeActionType) {
20
16
  AdministrativeActionType["FILE_SYSTEM_ALIAS_ASSOCIATION"] = "FILE_SYSTEM_ALIAS_ASSOCIATION";
@@ -299,18 +295,6 @@ export var AssociateFileSystemAliasesResponse;
299
295
  (function (AssociateFileSystemAliasesResponse) {
300
296
  AssociateFileSystemAliasesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
301
297
  })(AssociateFileSystemAliasesResponse || (AssociateFileSystemAliasesResponse = {}));
302
- export var BadRequest;
303
- (function (BadRequest) {
304
- BadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
305
- })(BadRequest || (BadRequest = {}));
306
- export var FileSystemNotFound;
307
- (function (FileSystemNotFound) {
308
- FileSystemNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
309
- })(FileSystemNotFound || (FileSystemNotFound = {}));
310
- export var InternalServerError;
311
- (function (InternalServerError) {
312
- InternalServerError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
313
- })(InternalServerError || (InternalServerError = {}));
314
298
  export var EventType;
315
299
  (function (EventType) {
316
300
  EventType["CHANGED"] = "CHANGED";
@@ -342,22 +326,6 @@ export var CancelDataRepositoryTaskResponse;
342
326
  (function (CancelDataRepositoryTaskResponse) {
343
327
  CancelDataRepositoryTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
344
328
  })(CancelDataRepositoryTaskResponse || (CancelDataRepositoryTaskResponse = {}));
345
- export var DataRepositoryTaskEnded;
346
- (function (DataRepositoryTaskEnded) {
347
- DataRepositoryTaskEnded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
348
- })(DataRepositoryTaskEnded || (DataRepositoryTaskEnded = {}));
349
- export var DataRepositoryTaskNotFound;
350
- (function (DataRepositoryTaskNotFound) {
351
- DataRepositoryTaskNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
352
- })(DataRepositoryTaskNotFound || (DataRepositoryTaskNotFound = {}));
353
- export var UnsupportedOperation;
354
- (function (UnsupportedOperation) {
355
- UnsupportedOperation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
356
- })(UnsupportedOperation || (UnsupportedOperation = {}));
357
- export var BackupNotFound;
358
- (function (BackupNotFound) {
359
- BackupNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
360
- })(BackupNotFound || (BackupNotFound = {}));
361
329
  export var CopyBackupRequest;
362
330
  (function (CopyBackupRequest) {
363
331
  CopyBackupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -387,26 +355,6 @@ export var BackupType;
387
355
  BackupType["AWS_BACKUP"] = "AWS_BACKUP";
388
356
  BackupType["USER_INITIATED"] = "USER_INITIATED";
389
357
  })(BackupType || (BackupType = {}));
390
- export var IncompatibleParameterError;
391
- (function (IncompatibleParameterError) {
392
- IncompatibleParameterError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
- })(IncompatibleParameterError || (IncompatibleParameterError = {}));
394
- export var IncompatibleRegionForMultiAZ;
395
- (function (IncompatibleRegionForMultiAZ) {
396
- IncompatibleRegionForMultiAZ.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
397
- })(IncompatibleRegionForMultiAZ || (IncompatibleRegionForMultiAZ = {}));
398
- export var InvalidDestinationKmsKey;
399
- (function (InvalidDestinationKmsKey) {
400
- InvalidDestinationKmsKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
401
- })(InvalidDestinationKmsKey || (InvalidDestinationKmsKey = {}));
402
- export var InvalidRegion;
403
- (function (InvalidRegion) {
404
- InvalidRegion.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
405
- })(InvalidRegion || (InvalidRegion = {}));
406
- export var InvalidSourceKmsKey;
407
- (function (InvalidSourceKmsKey) {
408
- InvalidSourceKmsKey.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
409
- })(InvalidSourceKmsKey || (InvalidSourceKmsKey = {}));
410
358
  export var ServiceLimit;
411
359
  (function (ServiceLimit) {
412
360
  ServiceLimit["FILE_SYSTEM_COUNT"] = "FILE_SYSTEM_COUNT";
@@ -419,26 +367,10 @@ export var ServiceLimit;
419
367
  ServiceLimit["TOTAL_USER_TAGS"] = "TOTAL_USER_TAGS";
420
368
  ServiceLimit["VOLUMES_PER_FILE_SYSTEM"] = "VOLUMES_PER_FILE_SYSTEM";
421
369
  })(ServiceLimit || (ServiceLimit = {}));
422
- export var ServiceLimitExceeded;
423
- (function (ServiceLimitExceeded) {
424
- ServiceLimitExceeded.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
425
- })(ServiceLimitExceeded || (ServiceLimitExceeded = {}));
426
- export var SourceBackupUnavailable;
427
- (function (SourceBackupUnavailable) {
428
- SourceBackupUnavailable.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
429
- })(SourceBackupUnavailable || (SourceBackupUnavailable = {}));
430
- export var BackupInProgress;
431
- (function (BackupInProgress) {
432
- BackupInProgress.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
433
- })(BackupInProgress || (BackupInProgress = {}));
434
370
  export var CreateBackupRequest;
435
371
  (function (CreateBackupRequest) {
436
372
  CreateBackupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
437
373
  })(CreateBackupRequest || (CreateBackupRequest = {}));
438
- export var VolumeNotFound;
439
- (function (VolumeNotFound) {
440
- VolumeNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
441
- })(VolumeNotFound || (VolumeNotFound = {}));
442
374
  export var S3DataRepositoryConfiguration;
443
375
  (function (S3DataRepositoryConfiguration) {
444
376
  S3DataRepositoryConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -492,10 +424,6 @@ export var CreateDataRepositoryTaskResponse;
492
424
  (function (CreateDataRepositoryTaskResponse) {
493
425
  CreateDataRepositoryTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
494
426
  })(CreateDataRepositoryTaskResponse || (CreateDataRepositoryTaskResponse = {}));
495
- export var DataRepositoryTaskExecuting;
496
- (function (DataRepositoryTaskExecuting) {
497
- DataRepositoryTaskExecuting.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
498
- })(DataRepositoryTaskExecuting || (DataRepositoryTaskExecuting = {}));
499
427
  export var LustreLogCreateConfiguration;
500
428
  (function (LustreLogCreateConfiguration) {
501
429
  LustreLogCreateConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -538,26 +466,6 @@ export var CreateFileSystemRequest;
538
466
  OntapConfiguration: CreateFileSystemOntapConfiguration.filterSensitiveLog(obj.OntapConfiguration),
539
467
  }))); };
540
468
  })(CreateFileSystemRequest || (CreateFileSystemRequest = {}));
541
- export var InvalidExportPath;
542
- (function (InvalidExportPath) {
543
- InvalidExportPath.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
544
- })(InvalidExportPath || (InvalidExportPath = {}));
545
- export var InvalidImportPath;
546
- (function (InvalidImportPath) {
547
- InvalidImportPath.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
548
- })(InvalidImportPath || (InvalidImportPath = {}));
549
- export var InvalidNetworkSettings;
550
- (function (InvalidNetworkSettings) {
551
- InvalidNetworkSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
552
- })(InvalidNetworkSettings || (InvalidNetworkSettings = {}));
553
- export var InvalidPerUnitStorageThroughput;
554
- (function (InvalidPerUnitStorageThroughput) {
555
- InvalidPerUnitStorageThroughput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
556
- })(InvalidPerUnitStorageThroughput || (InvalidPerUnitStorageThroughput = {}));
557
- export var MissingFileSystemConfiguration;
558
- (function (MissingFileSystemConfiguration) {
559
- MissingFileSystemConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
560
- })(MissingFileSystemConfiguration || (MissingFileSystemConfiguration = {}));
561
469
  export var CreateFileSystemFromBackupRequest;
562
470
  (function (CreateFileSystemFromBackupRequest) {
563
471
  CreateFileSystemFromBackupRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.WindowsConfiguration && {
@@ -638,26 +546,10 @@ export var CreateVolumeRequest;
638
546
  (function (CreateVolumeRequest) {
639
547
  CreateVolumeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
640
548
  })(CreateVolumeRequest || (CreateVolumeRequest = {}));
641
- export var MissingVolumeConfiguration;
642
- (function (MissingVolumeConfiguration) {
643
- MissingVolumeConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
644
- })(MissingVolumeConfiguration || (MissingVolumeConfiguration = {}));
645
- export var StorageVirtualMachineNotFound;
646
- (function (StorageVirtualMachineNotFound) {
647
- StorageVirtualMachineNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
648
- })(StorageVirtualMachineNotFound || (StorageVirtualMachineNotFound = {}));
649
549
  export var CreateVolumeFromBackupRequest;
650
550
  (function (CreateVolumeFromBackupRequest) {
651
551
  CreateVolumeFromBackupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
652
552
  })(CreateVolumeFromBackupRequest || (CreateVolumeFromBackupRequest = {}));
653
- export var BackupBeingCopied;
654
- (function (BackupBeingCopied) {
655
- BackupBeingCopied.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
656
- })(BackupBeingCopied || (BackupBeingCopied = {}));
657
- export var BackupRestoring;
658
- (function (BackupRestoring) {
659
- BackupRestoring.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
660
- })(BackupRestoring || (BackupRestoring = {}));
661
553
  export var DeleteBackupRequest;
662
554
  (function (DeleteBackupRequest) {
663
555
  DeleteBackupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -666,10 +558,6 @@ export var DeleteBackupResponse;
666
558
  (function (DeleteBackupResponse) {
667
559
  DeleteBackupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
668
560
  })(DeleteBackupResponse || (DeleteBackupResponse = {}));
669
- export var DataRepositoryAssociationNotFound;
670
- (function (DataRepositoryAssociationNotFound) {
671
- DataRepositoryAssociationNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
672
- })(DataRepositoryAssociationNotFound || (DataRepositoryAssociationNotFound = {}));
673
561
  export var DeleteDataRepositoryAssociationRequest;
674
562
  (function (DeleteDataRepositoryAssociationRequest) {
675
563
  DeleteDataRepositoryAssociationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -718,10 +606,6 @@ export var DeleteSnapshotResponse;
718
606
  (function (DeleteSnapshotResponse) {
719
607
  DeleteSnapshotResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
720
608
  })(DeleteSnapshotResponse || (DeleteSnapshotResponse = {}));
721
- export var SnapshotNotFound;
722
- (function (SnapshotNotFound) {
723
- SnapshotNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
724
- })(SnapshotNotFound || (SnapshotNotFound = {}));
725
609
  export var DeleteStorageVirtualMachineRequest;
726
610
  (function (DeleteStorageVirtualMachineRequest) {
727
611
  DeleteStorageVirtualMachineRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -778,10 +662,6 @@ export var DescribeDataRepositoryAssociationsResponse;
778
662
  (function (DescribeDataRepositoryAssociationsResponse) {
779
663
  DescribeDataRepositoryAssociationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
780
664
  })(DescribeDataRepositoryAssociationsResponse || (DescribeDataRepositoryAssociationsResponse = {}));
781
- export var InvalidDataRepositoryType;
782
- (function (InvalidDataRepositoryType) {
783
- InvalidDataRepositoryType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
784
- })(InvalidDataRepositoryType || (InvalidDataRepositoryType = {}));
785
665
  export var DataRepositoryTaskFilterName;
786
666
  (function (DataRepositoryTaskFilterName) {
787
667
  DataRepositoryTaskFilterName["DATA_REPO_ASSOCIATION_ID"] = "data-repository-association-id";
@@ -870,18 +750,6 @@ export var ListTagsForResourceResponse;
870
750
  (function (ListTagsForResourceResponse) {
871
751
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
872
752
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
873
- export var NotServiceResourceError;
874
- (function (NotServiceResourceError) {
875
- NotServiceResourceError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
876
- })(NotServiceResourceError || (NotServiceResourceError = {}));
877
- export var ResourceDoesNotSupportTagging;
878
- (function (ResourceDoesNotSupportTagging) {
879
- ResourceDoesNotSupportTagging.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
880
- })(ResourceDoesNotSupportTagging || (ResourceDoesNotSupportTagging = {}));
881
- export var ResourceNotFound;
882
- (function (ResourceNotFound) {
883
- ResourceNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
884
- })(ResourceNotFound || (ResourceNotFound = {}));
885
753
  export var ReleaseFileSystemNfsV3LocksRequest;
886
754
  (function (ReleaseFileSystemNfsV3LocksRequest) {
887
755
  ReleaseFileSystemNfsV3LocksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AssociateFileSystemAliasesCommandInput, AssociateFileSystemAliasesCommandOutput } from "./commands/AssociateFileSystemAliasesCommand";
10
10
  import { CancelDataRepositoryTaskCommandInput, CancelDataRepositoryTaskCommandOutput } from "./commands/CancelDataRepositoryTaskCommand";
@@ -145,6 +145,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
145
145
  * @internal
146
146
  */
147
147
  defaultUserAgentProvider?: Provider<__UserAgent>;
148
+ /**
149
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
150
+ */
151
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
148
152
  }
149
153
  declare type FSxClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
150
154
  /**