@aws-sdk/client-storage-gateway 3.645.0 → 3.650.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/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +90 -270
- package/dist-es/commands/ActivateGatewayCommand.js +1 -3
- package/dist-es/commands/AddCacheCommand.js +1 -3
- package/dist-es/commands/AddTagsToResourceCommand.js +1 -3
- package/dist-es/commands/AddUploadBufferCommand.js +1 -3
- package/dist-es/commands/AddWorkingStorageCommand.js +1 -3
- package/dist-es/commands/AssignTapePoolCommand.js +1 -3
- package/dist-es/commands/AssociateFileSystemCommand.js +1 -3
- package/dist-es/commands/AttachVolumeCommand.js +1 -3
- package/dist-es/commands/CancelArchivalCommand.js +1 -3
- package/dist-es/commands/CancelRetrievalCommand.js +1 -3
- package/dist-es/commands/CreateCachediSCSIVolumeCommand.js +1 -3
- package/dist-es/commands/CreateNFSFileShareCommand.js +1 -3
- package/dist-es/commands/CreateSMBFileShareCommand.js +1 -3
- package/dist-es/commands/CreateSnapshotCommand.js +1 -3
- package/dist-es/commands/CreateSnapshotFromVolumeRecoveryPointCommand.js +1 -3
- package/dist-es/commands/CreateStorediSCSIVolumeCommand.js +1 -3
- package/dist-es/commands/CreateTapePoolCommand.js +1 -3
- package/dist-es/commands/CreateTapeWithBarcodeCommand.js +1 -3
- package/dist-es/commands/CreateTapesCommand.js +1 -3
- package/dist-es/commands/DeleteAutomaticTapeCreationPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteBandwidthRateLimitCommand.js +1 -3
- package/dist-es/commands/DeleteChapCredentialsCommand.js +1 -3
- package/dist-es/commands/DeleteFileShareCommand.js +1 -3
- package/dist-es/commands/DeleteGatewayCommand.js +1 -3
- package/dist-es/commands/DeleteSnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/DeleteTapeArchiveCommand.js +1 -3
- package/dist-es/commands/DeleteTapeCommand.js +1 -3
- package/dist-es/commands/DeleteTapePoolCommand.js +1 -3
- package/dist-es/commands/DeleteVolumeCommand.js +1 -3
- package/dist-es/commands/DescribeAvailabilityMonitorTestCommand.js +1 -3
- package/dist-es/commands/DescribeBandwidthRateLimitCommand.js +1 -3
- package/dist-es/commands/DescribeBandwidthRateLimitScheduleCommand.js +1 -3
- package/dist-es/commands/DescribeCacheCommand.js +1 -3
- package/dist-es/commands/DescribeCachediSCSIVolumesCommand.js +1 -3
- package/dist-es/commands/DescribeChapCredentialsCommand.js +1 -3
- package/dist-es/commands/DescribeFileSystemAssociationsCommand.js +1 -3
- package/dist-es/commands/DescribeGatewayInformationCommand.js +1 -3
- package/dist-es/commands/DescribeMaintenanceStartTimeCommand.js +1 -3
- package/dist-es/commands/DescribeNFSFileSharesCommand.js +1 -3
- package/dist-es/commands/DescribeSMBFileSharesCommand.js +1 -3
- package/dist-es/commands/DescribeSMBSettingsCommand.js +1 -3
- package/dist-es/commands/DescribeSnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/DescribeStorediSCSIVolumesCommand.js +1 -3
- package/dist-es/commands/DescribeTapeArchivesCommand.js +1 -3
- package/dist-es/commands/DescribeTapeRecoveryPointsCommand.js +1 -3
- package/dist-es/commands/DescribeTapesCommand.js +1 -3
- package/dist-es/commands/DescribeUploadBufferCommand.js +1 -3
- package/dist-es/commands/DescribeVTLDevicesCommand.js +1 -3
- package/dist-es/commands/DescribeWorkingStorageCommand.js +1 -3
- package/dist-es/commands/DetachVolumeCommand.js +1 -3
- package/dist-es/commands/DisableGatewayCommand.js +1 -3
- package/dist-es/commands/DisassociateFileSystemCommand.js +1 -3
- package/dist-es/commands/JoinDomainCommand.js +1 -3
- package/dist-es/commands/ListAutomaticTapeCreationPoliciesCommand.js +1 -3
- package/dist-es/commands/ListFileSharesCommand.js +1 -3
- package/dist-es/commands/ListFileSystemAssociationsCommand.js +1 -3
- package/dist-es/commands/ListGatewaysCommand.js +1 -3
- package/dist-es/commands/ListLocalDisksCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ListTapePoolsCommand.js +1 -3
- package/dist-es/commands/ListTapesCommand.js +1 -3
- package/dist-es/commands/ListVolumeInitiatorsCommand.js +1 -3
- package/dist-es/commands/ListVolumeRecoveryPointsCommand.js +1 -3
- package/dist-es/commands/ListVolumesCommand.js +1 -3
- package/dist-es/commands/NotifyWhenUploadedCommand.js +1 -3
- package/dist-es/commands/RefreshCacheCommand.js +1 -3
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +1 -3
- package/dist-es/commands/ResetCacheCommand.js +1 -3
- package/dist-es/commands/RetrieveTapeArchiveCommand.js +1 -3
- package/dist-es/commands/RetrieveTapeRecoveryPointCommand.js +1 -3
- package/dist-es/commands/SetLocalConsolePasswordCommand.js +1 -3
- package/dist-es/commands/SetSMBGuestPasswordCommand.js +1 -3
- package/dist-es/commands/ShutdownGatewayCommand.js +1 -3
- package/dist-es/commands/StartAvailabilityMonitorTestCommand.js +1 -3
- package/dist-es/commands/StartGatewayCommand.js +1 -3
- package/dist-es/commands/UpdateAutomaticTapeCreationPolicyCommand.js +1 -3
- package/dist-es/commands/UpdateBandwidthRateLimitCommand.js +1 -3
- package/dist-es/commands/UpdateBandwidthRateLimitScheduleCommand.js +1 -3
- package/dist-es/commands/UpdateChapCredentialsCommand.js +1 -3
- package/dist-es/commands/UpdateFileSystemAssociationCommand.js +1 -3
- package/dist-es/commands/UpdateGatewayInformationCommand.js +1 -3
- package/dist-es/commands/UpdateGatewaySoftwareNowCommand.js +1 -3
- package/dist-es/commands/UpdateMaintenanceStartTimeCommand.js +1 -3
- package/dist-es/commands/UpdateNFSFileShareCommand.js +1 -3
- package/dist-es/commands/UpdateSMBFileShareCommand.js +1 -3
- package/dist-es/commands/UpdateSMBFileShareVisibilityCommand.js +1 -3
- package/dist-es/commands/UpdateSMBLocalGroupsCommand.js +1 -3
- package/dist-es/commands/UpdateSMBSecurityStrategyCommand.js +1 -3
- package/dist-es/commands/UpdateSnapshotScheduleCommand.js +1 -3
- package/dist-es/commands/UpdateVTLDeviceTypeCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +35 -35
|
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
|
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
7
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
13
|
endpointParams: endpointParams,
|
|
10
14
|
logger: context.logger,
|
|
11
|
-
});
|
|
15
|
+
}));
|
|
12
16
|
};
|
|
13
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
18
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|