1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0;
|
4 | exports.REGION_ENV_NAME = "AWS_REGION";
|
5 | exports.REGION_INI_NAME = "region";
|
6 | exports.NODE_REGION_CONFIG_OPTIONS = {
|
7 | environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME],
|
8 | configFileSelector: (profile) => profile[exports.REGION_INI_NAME],
|
9 | default: () => {
|
10 | throw new Error("Region is missing");
|
11 | },
|
12 | };
|
13 | exports.NODE_REGION_CONFIG_FILE_OPTIONS = {
|
14 | preferredFile: "credentials",
|
15 | };
|