backend v4 half
This commit is contained in:
+30
@@ -46,8 +46,10 @@ __export(index_exports, {
|
||||
getUserAgentPrefix: () => getUserAgentPrefix,
|
||||
isIpAddress: () => import_util_endpoints.isIpAddress,
|
||||
partition: () => partition,
|
||||
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
||||
resolveEndpoint: () => import_util_endpoints.resolveEndpoint,
|
||||
setPartitionInfo: () => setPartitionInfo,
|
||||
toEndpointV1: () => toEndpointV1,
|
||||
useDefaultPartitionInfo: () => useDefaultPartitionInfo
|
||||
});
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
@@ -418,6 +420,32 @@ var awsEndpointFunctions = {
|
||||
};
|
||||
import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
|
||||
// src/resolveDefaultAwsRegionalEndpointsConfig.ts
|
||||
var import_url_parser = require("@smithy/url-parser");
|
||||
var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input) => {
|
||||
if (typeof input.endpointProvider !== "function") {
|
||||
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
||||
}
|
||||
const { endpoint } = input;
|
||||
if (endpoint === void 0) {
|
||||
input.endpoint = async () => {
|
||||
return toEndpointV1(
|
||||
input.endpointProvider(
|
||||
{
|
||||
Region: typeof input.region === "function" ? await input.region() : input.region,
|
||||
UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
|
||||
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
||||
Endpoint: void 0
|
||||
},
|
||||
{ logger: input.logger }
|
||||
)
|
||||
);
|
||||
};
|
||||
}
|
||||
return input;
|
||||
}, "resolveDefaultAwsRegionalEndpointsConfig");
|
||||
var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => (0, import_url_parser.parseUrl)(endpoint.url), "toEndpointV1");
|
||||
|
||||
// src/resolveEndpoint.ts
|
||||
|
||||
|
||||
@@ -447,6 +475,8 @@ import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
||||
useDefaultPartitionInfo,
|
||||
getUserAgentPrefix,
|
||||
isIpAddress,
|
||||
resolveDefaultAwsRegionalEndpointsConfig,
|
||||
toEndpointV1,
|
||||
resolveEndpoint,
|
||||
EndpointError
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user