@aws-sdk/client-backup 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 +91 -273
- package/dist-es/commands/CancelLegalHoldCommand.js +1 -3
- package/dist-es/commands/CreateBackupPlanCommand.js +1 -3
- package/dist-es/commands/CreateBackupSelectionCommand.js +1 -3
- package/dist-es/commands/CreateBackupVaultCommand.js +1 -3
- package/dist-es/commands/CreateFrameworkCommand.js +1 -3
- package/dist-es/commands/CreateLegalHoldCommand.js +1 -3
- package/dist-es/commands/CreateLogicallyAirGappedBackupVaultCommand.js +1 -3
- package/dist-es/commands/CreateReportPlanCommand.js +1 -3
- package/dist-es/commands/CreateRestoreTestingPlanCommand.js +1 -3
- package/dist-es/commands/CreateRestoreTestingSelectionCommand.js +1 -3
- package/dist-es/commands/DeleteBackupPlanCommand.js +1 -3
- package/dist-es/commands/DeleteBackupSelectionCommand.js +1 -3
- package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteBackupVaultCommand.js +1 -3
- package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +1 -3
- package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +1 -3
- package/dist-es/commands/DeleteFrameworkCommand.js +1 -3
- package/dist-es/commands/DeleteRecoveryPointCommand.js +1 -3
- package/dist-es/commands/DeleteReportPlanCommand.js +1 -3
- package/dist-es/commands/DeleteRestoreTestingPlanCommand.js +1 -3
- package/dist-es/commands/DeleteRestoreTestingSelectionCommand.js +1 -3
- package/dist-es/commands/DescribeBackupJobCommand.js +1 -3
- package/dist-es/commands/DescribeBackupVaultCommand.js +1 -3
- package/dist-es/commands/DescribeCopyJobCommand.js +1 -3
- package/dist-es/commands/DescribeFrameworkCommand.js +1 -3
- package/dist-es/commands/DescribeGlobalSettingsCommand.js +1 -3
- package/dist-es/commands/DescribeProtectedResourceCommand.js +1 -3
- package/dist-es/commands/DescribeRecoveryPointCommand.js +1 -3
- package/dist-es/commands/DescribeRegionSettingsCommand.js +1 -3
- package/dist-es/commands/DescribeReportJobCommand.js +1 -3
- package/dist-es/commands/DescribeReportPlanCommand.js +1 -3
- package/dist-es/commands/DescribeRestoreJobCommand.js +1 -3
- package/dist-es/commands/DisassociateRecoveryPointCommand.js +1 -3
- package/dist-es/commands/DisassociateRecoveryPointFromParentCommand.js +1 -3
- package/dist-es/commands/ExportBackupPlanTemplateCommand.js +1 -3
- package/dist-es/commands/GetBackupPlanCommand.js +1 -3
- package/dist-es/commands/GetBackupPlanFromJSONCommand.js +1 -3
- package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +1 -3
- package/dist-es/commands/GetBackupSelectionCommand.js +1 -3
- package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +1 -3
- package/dist-es/commands/GetBackupVaultNotificationsCommand.js +1 -3
- package/dist-es/commands/GetLegalHoldCommand.js +1 -3
- package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +1 -3
- package/dist-es/commands/GetRestoreJobMetadataCommand.js +1 -3
- package/dist-es/commands/GetRestoreTestingInferredMetadataCommand.js +1 -3
- package/dist-es/commands/GetRestoreTestingPlanCommand.js +1 -3
- package/dist-es/commands/GetRestoreTestingSelectionCommand.js +1 -3
- package/dist-es/commands/GetSupportedResourceTypesCommand.js +1 -3
- package/dist-es/commands/ListBackupJobSummariesCommand.js +1 -3
- package/dist-es/commands/ListBackupJobsCommand.js +1 -3
- package/dist-es/commands/ListBackupPlanTemplatesCommand.js +1 -3
- package/dist-es/commands/ListBackupPlanVersionsCommand.js +1 -3
- package/dist-es/commands/ListBackupPlansCommand.js +1 -3
- package/dist-es/commands/ListBackupSelectionsCommand.js +1 -3
- package/dist-es/commands/ListBackupVaultsCommand.js +1 -3
- package/dist-es/commands/ListCopyJobSummariesCommand.js +1 -3
- package/dist-es/commands/ListCopyJobsCommand.js +1 -3
- package/dist-es/commands/ListFrameworksCommand.js +1 -3
- package/dist-es/commands/ListLegalHoldsCommand.js +1 -3
- package/dist-es/commands/ListProtectedResourcesByBackupVaultCommand.js +1 -3
- package/dist-es/commands/ListProtectedResourcesCommand.js +1 -3
- package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +1 -3
- package/dist-es/commands/ListRecoveryPointsByLegalHoldCommand.js +1 -3
- package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +1 -3
- package/dist-es/commands/ListReportJobsCommand.js +1 -3
- package/dist-es/commands/ListReportPlansCommand.js +1 -3
- package/dist-es/commands/ListRestoreJobSummariesCommand.js +1 -3
- package/dist-es/commands/ListRestoreJobsByProtectedResourceCommand.js +1 -3
- package/dist-es/commands/ListRestoreJobsCommand.js +1 -3
- package/dist-es/commands/ListRestoreTestingPlansCommand.js +1 -3
- package/dist-es/commands/ListRestoreTestingSelectionsCommand.js +1 -3
- package/dist-es/commands/ListTagsCommand.js +1 -3
- package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +1 -3
- package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +1 -3
- package/dist-es/commands/PutBackupVaultNotificationsCommand.js +1 -3
- package/dist-es/commands/PutRestoreValidationResultCommand.js +1 -3
- package/dist-es/commands/StartBackupJobCommand.js +1 -3
- package/dist-es/commands/StartCopyJobCommand.js +1 -3
- package/dist-es/commands/StartReportJobCommand.js +1 -3
- package/dist-es/commands/StartRestoreJobCommand.js +1 -3
- package/dist-es/commands/StopBackupJobCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateBackupPlanCommand.js +1 -3
- package/dist-es/commands/UpdateFrameworkCommand.js +1 -3
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +1 -3
- package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +1 -3
- package/dist-es/commands/UpdateRegionSettingsCommand.js +1 -3
- package/dist-es/commands/UpdateReportPlanCommand.js +1 -3
- package/dist-es/commands/UpdateRestoreTestingPlanCommand.js +1 -3
- package/dist-es/commands/UpdateRestoreTestingSelectionCommand.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;
|