bot / node_modules /@aws-sdk /config-resolver /dist-es /endpointsConfig /NodeUseDualstackEndpointConfigOptions.js
Download node_modules/@aws-sdk/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@aws-sdk/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
-
curl -L -o NodeUseDualstackEndpointConfigOptions.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40aws-sdk/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
583 Bytes
| import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider"; | |
| export const ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; | |
| export const CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; | |
| export const DEFAULT_USE_DUALSTACK_ENDPOINT = false; | |
| export const NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { | |
| environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV), | |
| configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG), | |
| default: false, | |
| }; | |