New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-athena

Package Overview
Dependencies
Maintainers
7
Versions
448
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-athena - npm Package Compare versions

Comparing version 3.27.0 to 3.28.0

5

AthenaClient.ts

@@ -259,6 +259,5 @@ import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

@@ -265,0 +264,0 @@ /**

351

dist/cjs/endpoints.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultRegionInfoProvider = void 0;
// Partition default templates
const AWS_TEMPLATE = "athena.{region}.amazonaws.com";
const AWS_CN_TEMPLATE = "athena.{region}.amazonaws.com.cn";
const AWS_ISO_TEMPLATE = "athena.{region}.c2s.ic.gov";
const AWS_ISO_B_TEMPLATE = "athena.{region}.sc2s.sgov.gov";
const AWS_US_GOV_TEMPLATE = "athena.{region}.amazonaws.com";
// Partition regions
const AWS_REGIONS = new Set([
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
]);
const AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
const AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
const AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
const AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
const defaultRegionInfoProvider = (region, options) => {
let regionInfo = undefined;
switch (region) {
// First, try to match exact region names.
case "af-south-1":
regionInfo = {
hostname: "athena.af-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-east-1":
regionInfo = {
hostname: "athena.ap-east-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-1":
regionInfo = {
hostname: "athena.ap-northeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-2":
regionInfo = {
hostname: "athena.ap-northeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "athena.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "athena.ap-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-1":
regionInfo = {
hostname: "athena.ap-southeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-2":
regionInfo = {
hostname: "athena.ap-southeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ca-central-1":
regionInfo = {
hostname: "athena.ca-central-1.amazonaws.com",
partition: "aws",
};
break;
case "cn-north-1":
regionInfo = {
hostname: "athena.cn-north-1.amazonaws.com.cn",
partition: "aws-cn",
};
break;
case "cn-northwest-1":
regionInfo = {
hostname: "athena.cn-northwest-1.amazonaws.com.cn",
partition: "aws-cn",
};
break;
case "eu-central-1":
regionInfo = {
hostname: "athena.eu-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-north-1":
regionInfo = {
hostname: "athena.eu-north-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-south-1":
regionInfo = {
hostname: "athena.eu-south-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-1":
regionInfo = {
hostname: "athena.eu-west-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-2":
regionInfo = {
hostname: "athena.eu-west-2.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-3":
regionInfo = {
hostname: "athena.eu-west-3.amazonaws.com",
partition: "aws",
};
break;
case "fips-us-east-1":
regionInfo = {
hostname: "athena-fips.us-east-1.amazonaws.com",
partition: "aws",
signingRegion: "us-east-1",
};
break;
case "fips-us-east-2":
regionInfo = {
hostname: "athena-fips.us-east-2.amazonaws.com",
partition: "aws",
signingRegion: "us-east-2",
};
break;
case "fips-us-gov-east-1":
regionInfo = {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
partition: "aws-us-gov",
signingRegion: "us-gov-east-1",
};
break;
case "fips-us-gov-west-1":
regionInfo = {
hostname: "athena-fips.us-gov-west-1.amazonaws.com",
partition: "aws-us-gov",
signingRegion: "us-gov-west-1",
};
break;
case "fips-us-west-1":
regionInfo = {
hostname: "athena-fips.us-west-1.amazonaws.com",
partition: "aws",
signingRegion: "us-west-1",
};
break;
case "fips-us-west-2":
regionInfo = {
hostname: "athena-fips.us-west-2.amazonaws.com",
partition: "aws",
signingRegion: "us-west-2",
};
break;
case "me-south-1":
regionInfo = {
hostname: "athena.me-south-1.amazonaws.com",
partition: "aws",
};
break;
case "sa-east-1":
regionInfo = {
hostname: "athena.sa-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-1":
regionInfo = {
hostname: "athena.us-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-2":
regionInfo = {
hostname: "athena.us-east-2.amazonaws.com",
partition: "aws",
};
break;
case "us-gov-east-1":
regionInfo = {
hostname: "athena.us-gov-east-1.amazonaws.com",
partition: "aws-us-gov",
};
break;
case "us-gov-west-1":
regionInfo = {
hostname: "athena.us-gov-west-1.amazonaws.com",
partition: "aws-us-gov",
};
break;
case "us-west-1":
regionInfo = {
hostname: "athena.us-west-1.amazonaws.com",
partition: "aws",
};
break;
case "us-west-2":
regionInfo = {
hostname: "athena.us-west-2.amazonaws.com",
partition: "aws",
};
break;
// Next, try to match partition endpoints.
default:
if (AWS_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_TEMPLATE.replace("{region}", region),
partition: "aws",
};
}
if (AWS_CN_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_CN_TEMPLATE.replace("{region}", region),
partition: "aws-cn",
};
}
if (AWS_ISO_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
partition: "aws-iso",
};
}
if (AWS_ISO_B_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
partition: "aws-iso-b",
};
}
if (AWS_US_GOV_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
partition: "aws-us-gov",
};
}
// Finally, assume it's an AWS partition endpoint.
if (regionInfo === undefined) {
regionInfo = {
hostname: AWS_TEMPLATE.replace("{region}", region),
partition: "aws",
};
}
}
return Promise.resolve({ signingService: "athena", ...regionInfo });
const config_resolver_1 = require("@aws-sdk/config-resolver");
const regionHash = {
"fips-us-east-1": {
hostname: "athena-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"fips-us-east-2": {
hostname: "athena-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"fips-us-gov-east-1": {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"fips-us-gov-west-1": {
hostname: "athena-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"fips-us-west-1": {
hostname: "athena-fips.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"fips-us-west-2": {
hostname: "athena-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};
const partitionHash = {
aws: {
regions: [
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"fips-us-east-1",
"fips-us-east-2",
"fips-us-west-1",
"fips-us-west-2",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
],
hostname: "athena.{region}.amazonaws.com",
},
"aws-cn": {
regions: ["cn-north-1", "cn-northwest-1"],
hostname: "athena.{region}.amazonaws.com.cn",
},
"aws-iso": {
regions: ["us-iso-east-1"],
hostname: "athena.{region}.c2s.ic.gov",
},
"aws-iso-b": {
regions: ["us-isob-east-1"],
hostname: "athena.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
hostname: "athena.{region}.amazonaws.com",
},
};
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
...options,
signingService: "athena",
regionHash,
partitionHash,
});
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
//# sourceMappingURL=endpoints.js.map
{
"name": "@aws-sdk/client-athena",
"description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
"version": "3.27.0",
"version": "3.28.0",
"scripts": {

@@ -30,5 +30,5 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.27.0",
"@aws-sdk/config-resolver": "3.27.0",
"@aws-sdk/credential-provider-node": "3.27.0",
"@aws-sdk/client-sts": "3.28.0",
"@aws-sdk/config-resolver": "3.28.0",
"@aws-sdk/credential-provider-node": "3.28.0",
"@aws-sdk/fetch-http-handler": "3.25.0",

@@ -40,11 +40,11 @@ "@aws-sdk/hash-node": "3.25.0",

"@aws-sdk/middleware-logger": "3.25.0",
"@aws-sdk/middleware-retry": "3.27.0",
"@aws-sdk/middleware-retry": "3.28.0",
"@aws-sdk/middleware-serde": "3.25.0",
"@aws-sdk/middleware-signing": "3.27.0",
"@aws-sdk/middleware-signing": "3.28.0",
"@aws-sdk/middleware-stack": "3.25.0",
"@aws-sdk/middleware-user-agent": "3.25.0",
"@aws-sdk/node-config-provider": "3.27.0",
"@aws-sdk/node-config-provider": "3.28.0",
"@aws-sdk/node-http-handler": "3.25.0",
"@aws-sdk/protocol-http": "3.25.0",
"@aws-sdk/smithy-client": "3.27.0",
"@aws-sdk/smithy-client": "3.28.0",
"@aws-sdk/types": "3.25.0",

@@ -57,3 +57,3 @@ "@aws-sdk/url-parser": "3.25.0",

"@aws-sdk/util-user-agent-browser": "3.25.0",
"@aws-sdk/util-user-agent-node": "3.27.0",
"@aws-sdk/util-user-agent-node": "3.28.0",
"@aws-sdk/util-utf8-browser": "3.23.0",

@@ -60,0 +60,0 @@ "@aws-sdk/util-utf8-node": "3.23.0",

@@ -18,3 +18,3 @@ "use strict";

*/
const getRuntimeConfig = (config = {}) => {
const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;

@@ -26,15 +26,15 @@ const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);

runtime: "browser",
base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
region: (_g = config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
};

@@ -41,0 +41,0 @@ };

@@ -22,3 +22,3 @@ "use strict";

*/
const getRuntimeConfig = (config = {}) => {
const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;

@@ -31,15 +31,15 @@ smithy_client_1.emitWarningIfUnsupportedVersion(process.version);

runtime: "node",
base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: (_g = config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
};

@@ -46,0 +46,0 @@ };

@@ -9,3 +9,3 @@ "use strict";

*/
const getRuntimeConfig = (config = {}) => {
const getRuntimeConfig = (config) => {
var _a;

@@ -17,3 +17,3 @@ const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);

runtime: "react-native",
sha256: (_a = config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
};

@@ -20,0 +20,0 @@ };

@@ -9,11 +9,11 @@ "use strict";

*/
const getRuntimeConfig = (config = {}) => {
const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e;
return ({
apiVersion: "2017-05-18",
disableHostPrefix: (_a = config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
logger: (_b = config.logger) !== null && _b !== void 0 ? _b : {},
regionInfoProvider: (_c = config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
serviceId: (_d = config.serviceId) !== null && _d !== void 0 ? _d : "Athena",
urlParser: (_e = config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Athena",
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
});

@@ -20,0 +20,0 @@ };

@@ -1,274 +0,83 @@

import { __assign } from "tslib";
// Partition default templates
var AWS_TEMPLATE = "athena.{region}.amazonaws.com";
var AWS_CN_TEMPLATE = "athena.{region}.amazonaws.com.cn";
var AWS_ISO_TEMPLATE = "athena.{region}.c2s.ic.gov";
var AWS_ISO_B_TEMPLATE = "athena.{region}.sc2s.sgov.gov";
var AWS_US_GOV_TEMPLATE = "athena.{region}.amazonaws.com";
// Partition regions
var AWS_REGIONS = new Set([
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
]);
var AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
var AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
var AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
var AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
export var defaultRegionInfoProvider = function (region, options) {
var regionInfo = undefined;
switch (region) {
// First, try to match exact region names.
case "af-south-1":
regionInfo = {
hostname: "athena.af-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-east-1":
regionInfo = {
hostname: "athena.ap-east-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-1":
regionInfo = {
hostname: "athena.ap-northeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-2":
regionInfo = {
hostname: "athena.ap-northeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "athena.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "athena.ap-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-1":
regionInfo = {
hostname: "athena.ap-southeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-2":
regionInfo = {
hostname: "athena.ap-southeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ca-central-1":
regionInfo = {
hostname: "athena.ca-central-1.amazonaws.com",
partition: "aws",
};
break;
case "cn-north-1":
regionInfo = {
hostname: "athena.cn-north-1.amazonaws.com.cn",
partition: "aws-cn",
};
break;
case "cn-northwest-1":
regionInfo = {
hostname: "athena.cn-northwest-1.amazonaws.com.cn",
partition: "aws-cn",
};
break;
case "eu-central-1":
regionInfo = {
hostname: "athena.eu-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-north-1":
regionInfo = {
hostname: "athena.eu-north-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-south-1":
regionInfo = {
hostname: "athena.eu-south-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-1":
regionInfo = {
hostname: "athena.eu-west-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-2":
regionInfo = {
hostname: "athena.eu-west-2.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-3":
regionInfo = {
hostname: "athena.eu-west-3.amazonaws.com",
partition: "aws",
};
break;
case "fips-us-east-1":
regionInfo = {
hostname: "athena-fips.us-east-1.amazonaws.com",
partition: "aws",
signingRegion: "us-east-1",
};
break;
case "fips-us-east-2":
regionInfo = {
hostname: "athena-fips.us-east-2.amazonaws.com",
partition: "aws",
signingRegion: "us-east-2",
};
break;
case "fips-us-gov-east-1":
regionInfo = {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
partition: "aws-us-gov",
signingRegion: "us-gov-east-1",
};
break;
case "fips-us-gov-west-1":
regionInfo = {
hostname: "athena-fips.us-gov-west-1.amazonaws.com",
partition: "aws-us-gov",
signingRegion: "us-gov-west-1",
};
break;
case "fips-us-west-1":
regionInfo = {
hostname: "athena-fips.us-west-1.amazonaws.com",
partition: "aws",
signingRegion: "us-west-1",
};
break;
case "fips-us-west-2":
regionInfo = {
hostname: "athena-fips.us-west-2.amazonaws.com",
partition: "aws",
signingRegion: "us-west-2",
};
break;
case "me-south-1":
regionInfo = {
hostname: "athena.me-south-1.amazonaws.com",
partition: "aws",
};
break;
case "sa-east-1":
regionInfo = {
hostname: "athena.sa-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-1":
regionInfo = {
hostname: "athena.us-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-2":
regionInfo = {
hostname: "athena.us-east-2.amazonaws.com",
partition: "aws",
};
break;
case "us-gov-east-1":
regionInfo = {
hostname: "athena.us-gov-east-1.amazonaws.com",
partition: "aws-us-gov",
};
break;
case "us-gov-west-1":
regionInfo = {
hostname: "athena.us-gov-west-1.amazonaws.com",
partition: "aws-us-gov",
};
break;
case "us-west-1":
regionInfo = {
hostname: "athena.us-west-1.amazonaws.com",
partition: "aws",
};
break;
case "us-west-2":
regionInfo = {
hostname: "athena.us-west-2.amazonaws.com",
partition: "aws",
};
break;
// Next, try to match partition endpoints.
default:
if (AWS_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_TEMPLATE.replace("{region}", region),
partition: "aws",
};
}
if (AWS_CN_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_CN_TEMPLATE.replace("{region}", region),
partition: "aws-cn",
};
}
if (AWS_ISO_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
partition: "aws-iso",
};
}
if (AWS_ISO_B_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
partition: "aws-iso-b",
};
}
if (AWS_US_GOV_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
partition: "aws-us-gov",
};
}
// Finally, assume it's an AWS partition endpoint.
if (regionInfo === undefined) {
regionInfo = {
hostname: AWS_TEMPLATE.replace("{region}", region),
partition: "aws",
};
}
}
return Promise.resolve(__assign({ signingService: "athena" }, regionInfo));
import { __assign, __awaiter, __generator } from "tslib";
import { getRegionInfo } from "@aws-sdk/config-resolver";
var regionHash = {
"fips-us-east-1": {
hostname: "athena-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"fips-us-east-2": {
hostname: "athena-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"fips-us-gov-east-1": {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"fips-us-gov-west-1": {
hostname: "athena-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"fips-us-west-1": {
hostname: "athena-fips.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"fips-us-west-2": {
hostname: "athena-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};
var partitionHash = {
aws: {
regions: [
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"fips-us-east-1",
"fips-us-east-2",
"fips-us-west-1",
"fips-us-west-2",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
],
hostname: "athena.{region}.amazonaws.com",
},
"aws-cn": {
regions: ["cn-north-1", "cn-northwest-1"],
hostname: "athena.{region}.amazonaws.com.cn",
},
"aws-iso": {
regions: ["us-iso-east-1"],
hostname: "athena.{region}.c2s.ic.gov",
},
"aws-iso-b": {
regions: ["us-isob-east-1"],
hostname: "athena.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
hostname: "athena.{region}.amazonaws.com",
},
};
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "athena", regionHash: regionHash,
partitionHash: partitionHash }))];
});
}); };
//# sourceMappingURL=endpoints.js.map
{
"name": "@aws-sdk/client-athena",
"description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
"version": "3.27.0",
"version": "3.28.0",
"scripts": {

@@ -30,5 +30,5 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.27.0",
"@aws-sdk/config-resolver": "3.27.0",
"@aws-sdk/credential-provider-node": "3.27.0",
"@aws-sdk/client-sts": "3.28.0",
"@aws-sdk/config-resolver": "3.28.0",
"@aws-sdk/credential-provider-node": "3.28.0",
"@aws-sdk/fetch-http-handler": "3.25.0",

@@ -40,11 +40,11 @@ "@aws-sdk/hash-node": "3.25.0",

"@aws-sdk/middleware-logger": "3.25.0",
"@aws-sdk/middleware-retry": "3.27.0",
"@aws-sdk/middleware-retry": "3.28.0",
"@aws-sdk/middleware-serde": "3.25.0",
"@aws-sdk/middleware-signing": "3.27.0",
"@aws-sdk/middleware-signing": "3.28.0",
"@aws-sdk/middleware-stack": "3.25.0",
"@aws-sdk/middleware-user-agent": "3.25.0",
"@aws-sdk/node-config-provider": "3.27.0",
"@aws-sdk/node-config-provider": "3.28.0",
"@aws-sdk/node-http-handler": "3.25.0",
"@aws-sdk/protocol-http": "3.25.0",
"@aws-sdk/smithy-client": "3.27.0",
"@aws-sdk/smithy-client": "3.28.0",
"@aws-sdk/types": "3.25.0",

@@ -57,3 +57,3 @@ "@aws-sdk/url-parser": "3.25.0",

"@aws-sdk/util-user-agent-browser": "3.25.0",
"@aws-sdk/util-user-agent-node": "3.27.0",
"@aws-sdk/util-user-agent-node": "3.28.0",
"@aws-sdk/util-utf8-browser": "3.23.0",

@@ -60,0 +60,0 @@ "@aws-sdk/util-utf8-node": "3.23.0",

@@ -17,6 +17,5 @@ import { __assign } from "tslib";

var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
if (config === void 0) { config = {}; }
var clientSharedValues = getSharedRuntimeConfig(config);
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
};
//# sourceMappingURL=runtimeConfig.browser.js.map

@@ -21,7 +21,6 @@ import { __assign } from "tslib";

var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
if (config === void 0) { config = {}; }
emitWarningIfUnsupportedVersion(process.version);
var clientSharedValues = getSharedRuntimeConfig(config);
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
};
//# sourceMappingURL=runtimeConfig.js.map

@@ -9,6 +9,5 @@ import { __assign } from "tslib";

var _a;
if (config === void 0) { config = {}; }
var browserDefaults = getBrowserRuntimeConfig(config);
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
};
//# sourceMappingURL=runtimeConfig.native.js.map

@@ -8,12 +8,11 @@ import { defaultRegionInfoProvider } from "./endpoints";

var _a, _b, _c, _d, _e;
if (config === void 0) { config = {}; }
return ({
apiVersion: "2017-05-18",
disableHostPrefix: (_a = config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
logger: (_b = config.logger) !== null && _b !== void 0 ? _b : {},
regionInfoProvider: (_c = config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
serviceId: (_d = config.serviceId) !== null && _d !== void 0 ? _d : "Athena",
urlParser: (_e = config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Athena",
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
});
};
//# sourceMappingURL=runtimeConfig.shared.js.map

@@ -106,6 +106,5 @@ import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;
/**

@@ -112,0 +111,0 @@ * Optional logger for logging debug/info/warn/error.

@@ -6,3 +6,3 @@ import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
runtime: string;

@@ -17,3 +17,3 @@ base64Decoder: import("@aws-sdk/types").Decoder;

requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
retryModeProvider: import("@aws-sdk/types").Provider<string>;
retryMode: string | import("@aws-sdk/types").Provider<string>;
sha256: import("@aws-sdk/types").HashConstructor;

@@ -32,3 +32,2 @@ streamCollector: import("@aws-sdk/types").StreamCollector;

retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
retryMode?: string | undefined;
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;

@@ -35,0 +34,0 @@ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;

@@ -6,3 +6,3 @@ import { NodeHttpHandler } from "@aws-sdk/node-http-handler";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
runtime: string;

@@ -17,3 +17,3 @@ base64Decoder: import("@aws-sdk/types").Decoder;

requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
retryModeProvider: import("@aws-sdk/types").Provider<string>;
retryMode: string | import("@aws-sdk/types").Provider<string>;
sha256: import("@aws-sdk/types").HashConstructor;

@@ -32,3 +32,2 @@ streamCollector: import("@aws-sdk/types").StreamCollector;

retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
retryMode?: string | undefined;
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;

@@ -35,0 +34,0 @@ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;

@@ -5,3 +5,3 @@ import { AthenaClientConfig } from "./AthenaClient";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
runtime: string;

@@ -20,3 +20,3 @@ sha256: import("@aws-sdk/types").HashConstructor;

maxAttempts: number | import("@aws-sdk/types").Provider<number>;
retryModeProvider: import("@aws-sdk/types").Provider<string>;
retryMode: string | import("@aws-sdk/types").Provider<string>;
logger: import("@aws-sdk/types").Logger;

@@ -31,3 +31,2 @@ serviceId: string;

retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
retryMode?: string | undefined;
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;

@@ -34,0 +33,0 @@ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;

@@ -6,3 +6,3 @@ import { Logger as __Logger } from "@aws-sdk/types";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
apiVersion: string;

@@ -9,0 +9,0 @@ disableHostPrefix: boolean;

@@ -106,6 +106,5 @@ import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;
/**

@@ -112,0 +111,0 @@ * Optional logger for logging debug/info/warn/error.

@@ -6,3 +6,3 @@ import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
runtime: string;

@@ -17,3 +17,3 @@ base64Decoder: import("@aws-sdk/types").Decoder;

requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
retryModeProvider: import("@aws-sdk/types").Provider<string>;
retryMode: string | import("@aws-sdk/types").Provider<string>;
sha256: import("@aws-sdk/types").HashConstructor;

@@ -32,3 +32,2 @@ streamCollector: import("@aws-sdk/types").StreamCollector;

retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
retryMode?: string | undefined;
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;

@@ -35,0 +34,0 @@ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;

@@ -6,3 +6,3 @@ import { NodeHttpHandler } from "@aws-sdk/node-http-handler";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
runtime: string;

@@ -17,3 +17,3 @@ base64Decoder: import("@aws-sdk/types").Decoder;

requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
retryModeProvider: import("@aws-sdk/types").Provider<string>;
retryMode: string | import("@aws-sdk/types").Provider<string>;
sha256: import("@aws-sdk/types").HashConstructor;

@@ -32,3 +32,2 @@ streamCollector: import("@aws-sdk/types").StreamCollector;

retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
retryMode?: string | undefined;
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;

@@ -35,0 +34,0 @@ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;

@@ -5,3 +5,3 @@ import { AthenaClientConfig } from "./AthenaClient";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
runtime: string;

@@ -20,3 +20,3 @@ sha256: import("@aws-sdk/types").HashConstructor;

maxAttempts: number | import("@aws-sdk/types").Provider<number>;
retryModeProvider: import("@aws-sdk/types").Provider<string>;
retryMode: string | import("@aws-sdk/types").Provider<string>;
logger: import("@aws-sdk/types").Logger;

@@ -31,3 +31,2 @@ serviceId: string;

retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
retryMode?: string | undefined;
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined;

@@ -34,0 +33,0 @@ signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;

@@ -6,3 +6,3 @@ import { Logger as __Logger } from "@aws-sdk/types";

*/
export declare const getRuntimeConfig: (config?: AthenaClientConfig) => {
export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
apiVersion: string;

@@ -9,0 +9,0 @@ disableHostPrefix: boolean;

@@ -1,276 +0,86 @@

import { RegionInfo, RegionInfoProvider } from "@aws-sdk/types";
import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";
// Partition default templates
const AWS_TEMPLATE = "athena.{region}.amazonaws.com";
const AWS_CN_TEMPLATE = "athena.{region}.amazonaws.com.cn";
const AWS_ISO_TEMPLATE = "athena.{region}.c2s.ic.gov";
const AWS_ISO_B_TEMPLATE = "athena.{region}.sc2s.sgov.gov";
const AWS_US_GOV_TEMPLATE = "athena.{region}.amazonaws.com";
const regionHash: RegionHash = {
"fips-us-east-1": {
hostname: "athena-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"fips-us-east-2": {
hostname: "athena-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"fips-us-gov-east-1": {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"fips-us-gov-west-1": {
hostname: "athena-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"fips-us-west-1": {
hostname: "athena-fips.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"fips-us-west-2": {
hostname: "athena-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};
// Partition regions
const AWS_REGIONS = new Set([
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
]);
const AWS_CN_REGIONS = new Set(["cn-north-1", "cn-northwest-1"]);
const AWS_ISO_REGIONS = new Set(["us-iso-east-1"]);
const AWS_ISO_B_REGIONS = new Set(["us-isob-east-1"]);
const AWS_US_GOV_REGIONS = new Set(["us-gov-east-1", "us-gov-west-1"]);
const partitionHash: PartitionHash = {
aws: {
regions: [
"af-south-1",
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"eu-central-1",
"eu-north-1",
"eu-south-1",
"eu-west-1",
"eu-west-2",
"eu-west-3",
"fips-us-east-1",
"fips-us-east-2",
"fips-us-west-1",
"fips-us-west-2",
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
],
hostname: "athena.{region}.amazonaws.com",
},
"aws-cn": {
regions: ["cn-north-1", "cn-northwest-1"],
hostname: "athena.{region}.amazonaws.com.cn",
},
"aws-iso": {
regions: ["us-iso-east-1"],
hostname: "athena.{region}.c2s.ic.gov",
},
"aws-iso-b": {
regions: ["us-isob-east-1"],
hostname: "athena.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
hostname: "athena.{region}.amazonaws.com",
},
};
export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, options?: any) => {
let regionInfo: RegionInfo | undefined = undefined;
switch (region) {
// First, try to match exact region names.
case "af-south-1":
regionInfo = {
hostname: "athena.af-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-east-1":
regionInfo = {
hostname: "athena.ap-east-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-1":
regionInfo = {
hostname: "athena.ap-northeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-2":
regionInfo = {
hostname: "athena.ap-northeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "athena.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "athena.ap-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-1":
regionInfo = {
hostname: "athena.ap-southeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-2":
regionInfo = {
hostname: "athena.ap-southeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ca-central-1":
regionInfo = {
hostname: "athena.ca-central-1.amazonaws.com",
partition: "aws",
};
break;
case "cn-north-1":
regionInfo = {
hostname: "athena.cn-north-1.amazonaws.com.cn",
partition: "aws-cn",
};
break;
case "cn-northwest-1":
regionInfo = {
hostname: "athena.cn-northwest-1.amazonaws.com.cn",
partition: "aws-cn",
};
break;
case "eu-central-1":
regionInfo = {
hostname: "athena.eu-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-north-1":
regionInfo = {
hostname: "athena.eu-north-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-south-1":
regionInfo = {
hostname: "athena.eu-south-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-1":
regionInfo = {
hostname: "athena.eu-west-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-2":
regionInfo = {
hostname: "athena.eu-west-2.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-3":
regionInfo = {
hostname: "athena.eu-west-3.amazonaws.com",
partition: "aws",
};
break;
case "fips-us-east-1":
regionInfo = {
hostname: "athena-fips.us-east-1.amazonaws.com",
partition: "aws",
signingRegion: "us-east-1",
};
break;
case "fips-us-east-2":
regionInfo = {
hostname: "athena-fips.us-east-2.amazonaws.com",
partition: "aws",
signingRegion: "us-east-2",
};
break;
case "fips-us-gov-east-1":
regionInfo = {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
partition: "aws-us-gov",
signingRegion: "us-gov-east-1",
};
break;
case "fips-us-gov-west-1":
regionInfo = {
hostname: "athena-fips.us-gov-west-1.amazonaws.com",
partition: "aws-us-gov",
signingRegion: "us-gov-west-1",
};
break;
case "fips-us-west-1":
regionInfo = {
hostname: "athena-fips.us-west-1.amazonaws.com",
partition: "aws",
signingRegion: "us-west-1",
};
break;
case "fips-us-west-2":
regionInfo = {
hostname: "athena-fips.us-west-2.amazonaws.com",
partition: "aws",
signingRegion: "us-west-2",
};
break;
case "me-south-1":
regionInfo = {
hostname: "athena.me-south-1.amazonaws.com",
partition: "aws",
};
break;
case "sa-east-1":
regionInfo = {
hostname: "athena.sa-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-1":
regionInfo = {
hostname: "athena.us-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-2":
regionInfo = {
hostname: "athena.us-east-2.amazonaws.com",
partition: "aws",
};
break;
case "us-gov-east-1":
regionInfo = {
hostname: "athena.us-gov-east-1.amazonaws.com",
partition: "aws-us-gov",
};
break;
case "us-gov-west-1":
regionInfo = {
hostname: "athena.us-gov-west-1.amazonaws.com",
partition: "aws-us-gov",
};
break;
case "us-west-1":
regionInfo = {
hostname: "athena.us-west-1.amazonaws.com",
partition: "aws",
};
break;
case "us-west-2":
regionInfo = {
hostname: "athena.us-west-2.amazonaws.com",
partition: "aws",
};
break;
// Next, try to match partition endpoints.
default:
if (AWS_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_TEMPLATE.replace("{region}", region),
partition: "aws",
};
}
if (AWS_CN_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_CN_TEMPLATE.replace("{region}", region),
partition: "aws-cn",
};
}
if (AWS_ISO_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_ISO_TEMPLATE.replace("{region}", region),
partition: "aws-iso",
};
}
if (AWS_ISO_B_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region),
partition: "aws-iso-b",
};
}
if (AWS_US_GOV_REGIONS.has(region)) {
regionInfo = {
hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region),
partition: "aws-us-gov",
};
}
// Finally, assume it's an AWS partition endpoint.
if (regionInfo === undefined) {
regionInfo = {
hostname: AWS_TEMPLATE.replace("{region}", region),
partition: "aws",
};
}
}
return Promise.resolve({ signingService: "athena", ...regionInfo });
};
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
getRegionInfo(region, {
...options,
signingService: "athena",
regionHash,
partitionHash,
});
{
"name": "@aws-sdk/client-athena",
"description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
"version": "3.27.0",
"version": "3.28.0",
"scripts": {

@@ -30,5 +30,5 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.27.0",
"@aws-sdk/config-resolver": "3.27.0",
"@aws-sdk/credential-provider-node": "3.27.0",
"@aws-sdk/client-sts": "3.28.0",
"@aws-sdk/config-resolver": "3.28.0",
"@aws-sdk/credential-provider-node": "3.28.0",
"@aws-sdk/fetch-http-handler": "3.25.0",

@@ -40,11 +40,11 @@ "@aws-sdk/hash-node": "3.25.0",

"@aws-sdk/middleware-logger": "3.25.0",
"@aws-sdk/middleware-retry": "3.27.0",
"@aws-sdk/middleware-retry": "3.28.0",
"@aws-sdk/middleware-serde": "3.25.0",
"@aws-sdk/middleware-signing": "3.27.0",
"@aws-sdk/middleware-signing": "3.28.0",
"@aws-sdk/middleware-stack": "3.25.0",
"@aws-sdk/middleware-user-agent": "3.25.0",
"@aws-sdk/node-config-provider": "3.27.0",
"@aws-sdk/node-config-provider": "3.28.0",
"@aws-sdk/node-http-handler": "3.25.0",
"@aws-sdk/protocol-http": "3.25.0",
"@aws-sdk/smithy-client": "3.27.0",
"@aws-sdk/smithy-client": "3.28.0",
"@aws-sdk/types": "3.25.0",

@@ -57,3 +57,3 @@ "@aws-sdk/url-parser": "3.25.0",

"@aws-sdk/util-user-agent-browser": "3.25.0",
"@aws-sdk/util-user-agent-node": "3.27.0",
"@aws-sdk/util-user-agent-node": "3.28.0",
"@aws-sdk/util-utf8-browser": "3.23.0",

@@ -60,0 +60,0 @@ "@aws-sdk/util-utf8-node": "3.23.0",

@@ -17,3 +17,3 @@ import packageInfo from "./package.json";

*/
export const getRuntimeConfig = (config: AthenaClientConfig = {}) => {
export const getRuntimeConfig = (config: AthenaClientConfig) => {
const clientSharedValues = getSharedRuntimeConfig(config);

@@ -24,19 +24,19 @@ return {

runtime: "browser",
base64Decoder: config.base64Decoder ?? fromBase64,
base64Encoder: config.base64Encoder ?? toBase64,
bodyLengthChecker: config.bodyLengthChecker ?? calculateBodyLength,
base64Decoder: config?.base64Decoder ?? fromBase64,
base64Encoder: config?.base64Encoder ?? toBase64,
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
credentialDefaultProvider:
config.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))),
defaultUserAgentProvider:
config.defaultUserAgentProvider ??
config?.defaultUserAgentProvider ??
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config.region ?? invalidProvider("Region is missing"),
requestHandler: config.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config.sha256 ?? Sha256,
streamCollector: config.streamCollector ?? streamCollector,
utf8Decoder: config.utf8Decoder ?? fromUtf8,
utf8Encoder: config.utf8Encoder ?? toUtf8,
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
utf8Encoder: config?.utf8Encoder ?? toUtf8,
};
};

@@ -8,3 +8,3 @@ import { Sha256 } from "@aws-crypto/sha256-js";

*/
export const getRuntimeConfig = (config: AthenaClientConfig = {}) => {
export const getRuntimeConfig = (config: AthenaClientConfig) => {
const browserDefaults = getBrowserRuntimeConfig(config);

@@ -15,4 +15,4 @@ return {

runtime: "react-native",
sha256: config.sha256 ?? Sha256,
sha256: config?.sha256 ?? Sha256,
};
};

@@ -9,9 +9,9 @@ import { defaultRegionInfoProvider } from "./endpoints";

*/
export const getRuntimeConfig = (config: AthenaClientConfig = {}) => ({
export const getRuntimeConfig = (config: AthenaClientConfig) => ({
apiVersion: "2017-05-18",
disableHostPrefix: config.disableHostPrefix ?? false,
logger: config.logger ?? ({} as __Logger),
regionInfoProvider: config.regionInfoProvider ?? defaultRegionInfoProvider,
serviceId: config.serviceId ?? "Athena",
urlParser: config.urlParser ?? parseUrl,
disableHostPrefix: config?.disableHostPrefix ?? false,
logger: config?.logger ?? ({} as __Logger),
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
serviceId: config?.serviceId ?? "Athena",
urlParser: config?.urlParser ?? parseUrl,
});

@@ -21,3 +21,3 @@ import packageInfo from "./package.json";

*/
export const getRuntimeConfig = (config: AthenaClientConfig = {}) => {
export const getRuntimeConfig = (config: AthenaClientConfig) => {
emitWarningIfUnsupportedVersion(process.version);

@@ -29,19 +29,19 @@ const clientSharedValues = getSharedRuntimeConfig(config);

runtime: "node",
base64Decoder: config.base64Decoder ?? fromBase64,
base64Encoder: config.base64Encoder ?? toBase64,
bodyLengthChecker: config.bodyLengthChecker ?? calculateBodyLength,
base64Decoder: config?.base64Decoder ?? fromBase64,
base64Encoder: config?.base64Encoder ?? toBase64,
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
credentialDefaultProvider:
config.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider:
config.defaultUserAgentProvider ??
config?.defaultUserAgentProvider ??
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config.streamCollector ?? streamCollector,
utf8Decoder: config.utf8Decoder ?? fromUtf8,
utf8Encoder: config.utf8Encoder ?? toUtf8,
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
utf8Encoder: config?.utf8Encoder ?? toUtf8,
};
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc