@cloudnux/aws-cloud-provider 0.10.0 → 0.12.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/index.js +821 -234
- package/dist/index.js.map +1 -1
- package/dist/router/index.js +590 -5
- package/dist/router/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4640,15 +4640,15 @@ var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = __esm({
|
|
|
4640
4640
|
NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
4641
4641
|
NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
|
|
4642
4642
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
4643
|
-
environmentVariableSelector: (
|
|
4643
|
+
environmentVariableSelector: (env13, options) => {
|
|
4644
4644
|
if (options?.signingName) {
|
|
4645
4645
|
const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
|
|
4646
|
-
if (bearerTokenKey in
|
|
4646
|
+
if (bearerTokenKey in env13)
|
|
4647
4647
|
return ["httpBearerAuth"];
|
|
4648
4648
|
}
|
|
4649
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in
|
|
4649
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env13))
|
|
4650
4650
|
return void 0;
|
|
4651
|
-
return getArrayForCommaSeparatedString(
|
|
4651
|
+
return getArrayForCommaSeparatedString(env13[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
4652
4652
|
},
|
|
4653
4653
|
configFileSelector: (profile) => {
|
|
4654
4654
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
|
|
@@ -7455,7 +7455,7 @@ var require_OptionsBuilder = __commonJS({
|
|
|
7455
7455
|
|
|
7456
7456
|
// ../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js
|
|
7457
7457
|
var require_xmlNode = __commonJS({
|
|
7458
|
-
"../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports2,
|
|
7458
|
+
"../../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"(exports2, module2) {
|
|
7459
7459
|
"use strict";
|
|
7460
7460
|
init_esm_shims();
|
|
7461
7461
|
var XmlNode4 = class {
|
|
@@ -7477,13 +7477,13 @@ var require_xmlNode = __commonJS({
|
|
|
7477
7477
|
}
|
|
7478
7478
|
}
|
|
7479
7479
|
};
|
|
7480
|
-
|
|
7480
|
+
module2.exports = XmlNode4;
|
|
7481
7481
|
}
|
|
7482
7482
|
});
|
|
7483
7483
|
|
|
7484
7484
|
// ../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js
|
|
7485
7485
|
var require_DocTypeReader = __commonJS({
|
|
7486
|
-
"../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2,
|
|
7486
|
+
"../../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"(exports2, module2) {
|
|
7487
7487
|
"use strict";
|
|
7488
7488
|
init_esm_shims();
|
|
7489
7489
|
var util = require_util();
|
|
@@ -7577,13 +7577,13 @@ var require_DocTypeReader = __commonJS({
|
|
|
7577
7577
|
else
|
|
7578
7578
|
throw new Error(`Invalid entity name ${name}`);
|
|
7579
7579
|
}
|
|
7580
|
-
|
|
7580
|
+
module2.exports = readDocType2;
|
|
7581
7581
|
}
|
|
7582
7582
|
});
|
|
7583
7583
|
|
|
7584
7584
|
// ../../../node_modules/fast-xml-parser/node_modules/strnum/strnum.js
|
|
7585
7585
|
var require_strnum = __commonJS({
|
|
7586
|
-
"../../../node_modules/fast-xml-parser/node_modules/strnum/strnum.js"(exports2,
|
|
7586
|
+
"../../../node_modules/fast-xml-parser/node_modules/strnum/strnum.js"(exports2, module2) {
|
|
7587
7587
|
"use strict";
|
|
7588
7588
|
init_esm_shims();
|
|
7589
7589
|
var hexRegex2 = /^[-+]?0x[a-fA-F0-9]+$/;
|
|
@@ -7656,13 +7656,13 @@ var require_strnum = __commonJS({
|
|
|
7656
7656
|
}
|
|
7657
7657
|
return numStr;
|
|
7658
7658
|
}
|
|
7659
|
-
|
|
7659
|
+
module2.exports = toNumber2;
|
|
7660
7660
|
}
|
|
7661
7661
|
});
|
|
7662
7662
|
|
|
7663
7663
|
// ../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
7664
7664
|
var require_OrderedObjParser = __commonJS({
|
|
7665
|
-
"../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports2,
|
|
7665
|
+
"../../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"(exports2, module2) {
|
|
7666
7666
|
"use strict";
|
|
7667
7667
|
init_esm_shims();
|
|
7668
7668
|
var util = require_util();
|
|
@@ -8147,7 +8147,7 @@ var require_OrderedObjParser = __commonJS({
|
|
|
8147
8147
|
}
|
|
8148
8148
|
}
|
|
8149
8149
|
}
|
|
8150
|
-
|
|
8150
|
+
module2.exports = OrderedObjParser3;
|
|
8151
8151
|
}
|
|
8152
8152
|
});
|
|
8153
8153
|
|
|
@@ -8241,7 +8241,7 @@ var require_node2json = __commonJS({
|
|
|
8241
8241
|
|
|
8242
8242
|
// ../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
8243
8243
|
var require_XMLParser = __commonJS({
|
|
8244
|
-
"../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports2,
|
|
8244
|
+
"../../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"(exports2, module2) {
|
|
8245
8245
|
"use strict";
|
|
8246
8246
|
init_esm_shims();
|
|
8247
8247
|
var { buildOptions: buildOptions3 } = require_OptionsBuilder();
|
|
@@ -8295,20 +8295,20 @@ var require_XMLParser = __commonJS({
|
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
8297
|
};
|
|
8298
|
-
|
|
8298
|
+
module2.exports = XMLParser10;
|
|
8299
8299
|
}
|
|
8300
8300
|
});
|
|
8301
8301
|
|
|
8302
8302
|
// ../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js
|
|
8303
8303
|
var require_orderedJs2Xml = __commonJS({
|
|
8304
|
-
"../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports2,
|
|
8304
|
+
"../../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"(exports2, module2) {
|
|
8305
8305
|
"use strict";
|
|
8306
8306
|
init_esm_shims();
|
|
8307
|
-
var
|
|
8307
|
+
var EOL2 = "\n";
|
|
8308
8308
|
function toXml(jArray, options) {
|
|
8309
8309
|
let indentation = "";
|
|
8310
8310
|
if (options.format && options.indentBy.length > 0) {
|
|
8311
|
-
indentation =
|
|
8311
|
+
indentation = EOL2;
|
|
8312
8312
|
}
|
|
8313
8313
|
return arrToStr(jArray, options, "", indentation);
|
|
8314
8314
|
}
|
|
@@ -8422,13 +8422,13 @@ var require_orderedJs2Xml = __commonJS({
|
|
|
8422
8422
|
}
|
|
8423
8423
|
return textValue;
|
|
8424
8424
|
}
|
|
8425
|
-
|
|
8425
|
+
module2.exports = toXml;
|
|
8426
8426
|
}
|
|
8427
8427
|
});
|
|
8428
8428
|
|
|
8429
8429
|
// ../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
8430
8430
|
var require_json2xml = __commonJS({
|
|
8431
|
-
"../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports2,
|
|
8431
|
+
"../../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"(exports2, module2) {
|
|
8432
8432
|
"use strict";
|
|
8433
8433
|
init_esm_shims();
|
|
8434
8434
|
var buildFromOrderedJs = require_orderedJs2Xml();
|
|
@@ -8664,19 +8664,19 @@ var require_json2xml = __commonJS({
|
|
|
8664
8664
|
return false;
|
|
8665
8665
|
}
|
|
8666
8666
|
}
|
|
8667
|
-
|
|
8667
|
+
module2.exports = Builder;
|
|
8668
8668
|
}
|
|
8669
8669
|
});
|
|
8670
8670
|
|
|
8671
8671
|
// ../../../node_modules/fast-xml-parser/src/fxp.js
|
|
8672
8672
|
var require_fxp = __commonJS({
|
|
8673
|
-
"../../../node_modules/fast-xml-parser/src/fxp.js"(exports2,
|
|
8673
|
+
"../../../node_modules/fast-xml-parser/src/fxp.js"(exports2, module2) {
|
|
8674
8674
|
"use strict";
|
|
8675
8675
|
init_esm_shims();
|
|
8676
8676
|
var validator = require_validator();
|
|
8677
8677
|
var XMLParser10 = require_XMLParser();
|
|
8678
8678
|
var XMLBuilder = require_json2xml();
|
|
8679
|
-
|
|
8679
|
+
module2.exports = {
|
|
8680
8680
|
XMLParser: XMLParser10,
|
|
8681
8681
|
XMLValidator: validator,
|
|
8682
8682
|
XMLBuilder
|
|
@@ -9010,7 +9010,7 @@ var init_NodeUseDualstackEndpointConfigOptions = __esm({
|
|
|
9010
9010
|
ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
9011
9011
|
CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
9012
9012
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
9013
|
-
environmentVariableSelector: (
|
|
9013
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
|
|
9014
9014
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
|
|
9015
9015
|
default: false
|
|
9016
9016
|
};
|
|
@@ -9027,7 +9027,7 @@ var init_NodeUseFipsEndpointConfigOptions = __esm({
|
|
|
9027
9027
|
ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
9028
9028
|
CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
9029
9029
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
9030
|
-
environmentVariableSelector: (
|
|
9030
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
|
|
9031
9031
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
|
|
9032
9032
|
default: false
|
|
9033
9033
|
};
|
|
@@ -9082,7 +9082,7 @@ var init_config2 = __esm({
|
|
|
9082
9082
|
REGION_ENV_NAME = "AWS_REGION";
|
|
9083
9083
|
REGION_INI_NAME = "region";
|
|
9084
9084
|
NODE_REGION_CONFIG_OPTIONS = {
|
|
9085
|
-
environmentVariableSelector: (
|
|
9085
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME],
|
|
9086
9086
|
configFileSelector: (profile) => profile[REGION_INI_NAME],
|
|
9087
9087
|
default: () => {
|
|
9088
9088
|
throw new Error("Region is missing");
|
|
@@ -9835,12 +9835,12 @@ var init_getEndpointUrlConfig = __esm({
|
|
|
9835
9835
|
ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
|
|
9836
9836
|
CONFIG_ENDPOINT_URL = "endpoint_url";
|
|
9837
9837
|
getEndpointUrlConfig = (serviceId) => ({
|
|
9838
|
-
environmentVariableSelector: (
|
|
9838
|
+
environmentVariableSelector: (env13) => {
|
|
9839
9839
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
9840
|
-
const serviceEndpointUrl =
|
|
9840
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")];
|
|
9841
9841
|
if (serviceEndpointUrl)
|
|
9842
9842
|
return serviceEndpointUrl;
|
|
9843
|
-
const endpointUrl =
|
|
9843
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL];
|
|
9844
9844
|
if (endpointUrl)
|
|
9845
9845
|
return endpointUrl;
|
|
9846
9846
|
return void 0;
|
|
@@ -10702,8 +10702,8 @@ var init_configurations2 = __esm({
|
|
|
10702
10702
|
ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
|
|
10703
10703
|
CONFIG_MAX_ATTEMPTS = "max_attempts";
|
|
10704
10704
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
10705
|
-
environmentVariableSelector: (
|
|
10706
|
-
const value =
|
|
10705
|
+
environmentVariableSelector: (env13) => {
|
|
10706
|
+
const value = env13[ENV_MAX_ATTEMPTS];
|
|
10707
10707
|
if (!value)
|
|
10708
10708
|
return void 0;
|
|
10709
10709
|
const maxAttempt = parseInt(value);
|
|
@@ -10744,7 +10744,7 @@ var init_configurations2 = __esm({
|
|
|
10744
10744
|
ENV_RETRY_MODE = "AWS_RETRY_MODE";
|
|
10745
10745
|
CONFIG_RETRY_MODE = "retry_mode";
|
|
10746
10746
|
NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
|
10747
|
-
environmentVariableSelector: (
|
|
10747
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE],
|
|
10748
10748
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],
|
|
10749
10749
|
default: DEFAULT_RETRY_MODE
|
|
10750
10750
|
};
|
|
@@ -11174,7 +11174,7 @@ var init_EndpointConfigOptions = __esm({
|
|
|
11174
11174
|
ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
11175
11175
|
CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
|
|
11176
11176
|
ENDPOINT_CONFIG_OPTIONS = {
|
|
11177
|
-
environmentVariableSelector: (
|
|
11177
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME],
|
|
11178
11178
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
|
|
11179
11179
|
default: void 0
|
|
11180
11180
|
};
|
|
@@ -11204,7 +11204,7 @@ var init_EndpointModeConfigOptions = __esm({
|
|
|
11204
11204
|
ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
11205
11205
|
CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
|
|
11206
11206
|
ENDPOINT_MODE_CONFIG_OPTIONS = {
|
|
11207
|
-
environmentVariableSelector: (
|
|
11207
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME],
|
|
11208
11208
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
|
|
11209
11209
|
default: EndpointMode.IPv4
|
|
11210
11210
|
};
|
|
@@ -11326,8 +11326,8 @@ var init_fromInstanceMetadata = __esm({
|
|
|
11326
11326
|
let fallbackBlockedFromProfile = false;
|
|
11327
11327
|
let fallbackBlockedFromProcessEnv = false;
|
|
11328
11328
|
const configValue = await loadConfig({
|
|
11329
|
-
environmentVariableSelector: (
|
|
11330
|
-
const envValue =
|
|
11329
|
+
environmentVariableSelector: (env13) => {
|
|
11330
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED];
|
|
11331
11331
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
11332
11332
|
if (envValue === void 0) {
|
|
11333
11333
|
throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -11973,7 +11973,7 @@ var init_nodeAppIdConfigOptions = __esm({
|
|
|
11973
11973
|
UA_APP_ID_INI_NAME = "sdk_ua_app_id";
|
|
11974
11974
|
UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
|
|
11975
11975
|
NODE_APP_ID_CONFIG_OPTIONS = {
|
|
11976
|
-
environmentVariableSelector: (
|
|
11976
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME],
|
|
11977
11977
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
11978
11978
|
default: DEFAULT_UA_APP_ID
|
|
11979
11979
|
};
|
|
@@ -12196,8 +12196,8 @@ var init_defaultsModeConfig = __esm({
|
|
|
12196
12196
|
AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
12197
12197
|
AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
12198
12198
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
12199
|
-
environmentVariableSelector: (
|
|
12200
|
-
return
|
|
12199
|
+
environmentVariableSelector: (env13) => {
|
|
12200
|
+
return env13[AWS_DEFAULTS_MODE_ENV];
|
|
12201
12201
|
},
|
|
12202
12202
|
configFileSelector: (profile) => {
|
|
12203
12203
|
return profile[AWS_DEFAULTS_MODE_CONFIG];
|
|
@@ -20592,15 +20592,15 @@ var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2 = __esm({
|
|
|
20592
20592
|
NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY2 = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
20593
20593
|
NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY2 = "auth_scheme_preference";
|
|
20594
20594
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS2 = {
|
|
20595
|
-
environmentVariableSelector: (
|
|
20595
|
+
environmentVariableSelector: (env13, options) => {
|
|
20596
20596
|
if (options?.signingName) {
|
|
20597
20597
|
const bearerTokenKey = getBearerTokenEnvKey2(options.signingName);
|
|
20598
|
-
if (bearerTokenKey in
|
|
20598
|
+
if (bearerTokenKey in env13)
|
|
20599
20599
|
return ["httpBearerAuth"];
|
|
20600
20600
|
}
|
|
20601
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY2 in
|
|
20601
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY2 in env13))
|
|
20602
20602
|
return void 0;
|
|
20603
|
-
return getArrayForCommaSeparatedString2(
|
|
20603
|
+
return getArrayForCommaSeparatedString2(env13[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY2]);
|
|
20604
20604
|
},
|
|
20605
20605
|
configFileSelector: (profile) => {
|
|
20606
20606
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY2 in profile))
|
|
@@ -23214,7 +23214,7 @@ var init_NodeUseDualstackEndpointConfigOptions2 = __esm({
|
|
|
23214
23214
|
ENV_USE_DUALSTACK_ENDPOINT2 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
23215
23215
|
CONFIG_USE_DUALSTACK_ENDPOINT2 = "use_dualstack_endpoint";
|
|
23216
23216
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS2 = {
|
|
23217
|
-
environmentVariableSelector: (
|
|
23217
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_DUALSTACK_ENDPOINT2, SelectorType.ENV),
|
|
23218
23218
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT2, SelectorType.CONFIG),
|
|
23219
23219
|
default: false
|
|
23220
23220
|
};
|
|
@@ -23231,7 +23231,7 @@ var init_NodeUseFipsEndpointConfigOptions2 = __esm({
|
|
|
23231
23231
|
ENV_USE_FIPS_ENDPOINT2 = "AWS_USE_FIPS_ENDPOINT";
|
|
23232
23232
|
CONFIG_USE_FIPS_ENDPOINT2 = "use_fips_endpoint";
|
|
23233
23233
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS2 = {
|
|
23234
|
-
environmentVariableSelector: (
|
|
23234
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_FIPS_ENDPOINT2, SelectorType.ENV),
|
|
23235
23235
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT2, SelectorType.CONFIG),
|
|
23236
23236
|
default: false
|
|
23237
23237
|
};
|
|
@@ -23286,7 +23286,7 @@ var init_config6 = __esm({
|
|
|
23286
23286
|
REGION_ENV_NAME2 = "AWS_REGION";
|
|
23287
23287
|
REGION_INI_NAME2 = "region";
|
|
23288
23288
|
NODE_REGION_CONFIG_OPTIONS2 = {
|
|
23289
|
-
environmentVariableSelector: (
|
|
23289
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME2],
|
|
23290
23290
|
configFileSelector: (profile) => profile[REGION_INI_NAME2],
|
|
23291
23291
|
default: () => {
|
|
23292
23292
|
throw new Error("Region is missing");
|
|
@@ -24039,12 +24039,12 @@ var init_getEndpointUrlConfig2 = __esm({
|
|
|
24039
24039
|
ENV_ENDPOINT_URL2 = "AWS_ENDPOINT_URL";
|
|
24040
24040
|
CONFIG_ENDPOINT_URL2 = "endpoint_url";
|
|
24041
24041
|
getEndpointUrlConfig2 = (serviceId) => ({
|
|
24042
|
-
environmentVariableSelector: (
|
|
24042
|
+
environmentVariableSelector: (env13) => {
|
|
24043
24043
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
24044
|
-
const serviceEndpointUrl =
|
|
24044
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL2, ...serviceSuffixParts].join("_")];
|
|
24045
24045
|
if (serviceEndpointUrl)
|
|
24046
24046
|
return serviceEndpointUrl;
|
|
24047
|
-
const endpointUrl =
|
|
24047
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL2];
|
|
24048
24048
|
if (endpointUrl)
|
|
24049
24049
|
return endpointUrl;
|
|
24050
24050
|
return void 0;
|
|
@@ -24819,8 +24819,8 @@ var init_configurations4 = __esm({
|
|
|
24819
24819
|
ENV_MAX_ATTEMPTS2 = "AWS_MAX_ATTEMPTS";
|
|
24820
24820
|
CONFIG_MAX_ATTEMPTS2 = "max_attempts";
|
|
24821
24821
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS2 = {
|
|
24822
|
-
environmentVariableSelector: (
|
|
24823
|
-
const value =
|
|
24822
|
+
environmentVariableSelector: (env13) => {
|
|
24823
|
+
const value = env13[ENV_MAX_ATTEMPTS2];
|
|
24824
24824
|
if (!value)
|
|
24825
24825
|
return void 0;
|
|
24826
24826
|
const maxAttempt = parseInt(value);
|
|
@@ -24861,7 +24861,7 @@ var init_configurations4 = __esm({
|
|
|
24861
24861
|
ENV_RETRY_MODE2 = "AWS_RETRY_MODE";
|
|
24862
24862
|
CONFIG_RETRY_MODE2 = "retry_mode";
|
|
24863
24863
|
NODE_RETRY_MODE_CONFIG_OPTIONS2 = {
|
|
24864
|
-
environmentVariableSelector: (
|
|
24864
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE2],
|
|
24865
24865
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE2],
|
|
24866
24866
|
default: DEFAULT_RETRY_MODE2
|
|
24867
24867
|
};
|
|
@@ -25291,7 +25291,7 @@ var init_EndpointConfigOptions2 = __esm({
|
|
|
25291
25291
|
ENV_ENDPOINT_NAME2 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
25292
25292
|
CONFIG_ENDPOINT_NAME2 = "ec2_metadata_service_endpoint";
|
|
25293
25293
|
ENDPOINT_CONFIG_OPTIONS2 = {
|
|
25294
|
-
environmentVariableSelector: (
|
|
25294
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME2],
|
|
25295
25295
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME2],
|
|
25296
25296
|
default: void 0
|
|
25297
25297
|
};
|
|
@@ -25321,7 +25321,7 @@ var init_EndpointModeConfigOptions2 = __esm({
|
|
|
25321
25321
|
ENV_ENDPOINT_MODE_NAME2 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
25322
25322
|
CONFIG_ENDPOINT_MODE_NAME2 = "ec2_metadata_service_endpoint_mode";
|
|
25323
25323
|
ENDPOINT_MODE_CONFIG_OPTIONS2 = {
|
|
25324
|
-
environmentVariableSelector: (
|
|
25324
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME2],
|
|
25325
25325
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME2],
|
|
25326
25326
|
default: EndpointMode2.IPv4
|
|
25327
25327
|
};
|
|
@@ -25443,8 +25443,8 @@ var init_fromInstanceMetadata2 = __esm({
|
|
|
25443
25443
|
let fallbackBlockedFromProfile = false;
|
|
25444
25444
|
let fallbackBlockedFromProcessEnv = false;
|
|
25445
25445
|
const configValue = await loadConfig2({
|
|
25446
|
-
environmentVariableSelector: (
|
|
25447
|
-
const envValue =
|
|
25446
|
+
environmentVariableSelector: (env13) => {
|
|
25447
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED2];
|
|
25448
25448
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
25449
25449
|
if (envValue === void 0) {
|
|
25450
25450
|
throw new CredentialsProviderError2(`${AWS_EC2_METADATA_V1_DISABLED2} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -26090,7 +26090,7 @@ var init_nodeAppIdConfigOptions2 = __esm({
|
|
|
26090
26090
|
UA_APP_ID_INI_NAME2 = "sdk_ua_app_id";
|
|
26091
26091
|
UA_APP_ID_INI_NAME_DEPRECATED2 = "sdk-ua-app-id";
|
|
26092
26092
|
NODE_APP_ID_CONFIG_OPTIONS2 = {
|
|
26093
|
-
environmentVariableSelector: (
|
|
26093
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME2],
|
|
26094
26094
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME2] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED2],
|
|
26095
26095
|
default: DEFAULT_UA_APP_ID2
|
|
26096
26096
|
};
|
|
@@ -26275,8 +26275,8 @@ var init_defaultsModeConfig2 = __esm({
|
|
|
26275
26275
|
AWS_DEFAULTS_MODE_ENV2 = "AWS_DEFAULTS_MODE";
|
|
26276
26276
|
AWS_DEFAULTS_MODE_CONFIG2 = "defaults_mode";
|
|
26277
26277
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS2 = {
|
|
26278
|
-
environmentVariableSelector: (
|
|
26279
|
-
return
|
|
26278
|
+
environmentVariableSelector: (env13) => {
|
|
26279
|
+
return env13[AWS_DEFAULTS_MODE_ENV2];
|
|
26280
26280
|
},
|
|
26281
26281
|
configFileSelector: (profile) => {
|
|
26282
26282
|
return profile[AWS_DEFAULTS_MODE_CONFIG2];
|
|
@@ -35366,9 +35366,9 @@ var init_resolveAwsSdkSigV4AConfig3 = __esm({
|
|
|
35366
35366
|
return config;
|
|
35367
35367
|
};
|
|
35368
35368
|
NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
35369
|
-
environmentVariableSelector(
|
|
35370
|
-
if (
|
|
35371
|
-
return
|
|
35369
|
+
environmentVariableSelector(env13) {
|
|
35370
|
+
if (env13.AWS_SIGV4A_SIGNING_REGION_SET) {
|
|
35371
|
+
return env13.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_6) => _6.trim());
|
|
35372
35372
|
}
|
|
35373
35373
|
throw new ProviderError3("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
|
|
35374
35374
|
tryNextLink: true
|
|
@@ -37124,7 +37124,7 @@ var init_NodeUseDualstackEndpointConfigOptions3 = __esm({
|
|
|
37124
37124
|
ENV_USE_DUALSTACK_ENDPOINT3 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
37125
37125
|
CONFIG_USE_DUALSTACK_ENDPOINT3 = "use_dualstack_endpoint";
|
|
37126
37126
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS3 = {
|
|
37127
|
-
environmentVariableSelector: (
|
|
37127
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_DUALSTACK_ENDPOINT3, SelectorType.ENV),
|
|
37128
37128
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT3, SelectorType.CONFIG),
|
|
37129
37129
|
default: false
|
|
37130
37130
|
};
|
|
@@ -37141,7 +37141,7 @@ var init_NodeUseFipsEndpointConfigOptions3 = __esm({
|
|
|
37141
37141
|
ENV_USE_FIPS_ENDPOINT3 = "AWS_USE_FIPS_ENDPOINT";
|
|
37142
37142
|
CONFIG_USE_FIPS_ENDPOINT3 = "use_fips_endpoint";
|
|
37143
37143
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS3 = {
|
|
37144
|
-
environmentVariableSelector: (
|
|
37144
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_FIPS_ENDPOINT3, SelectorType.ENV),
|
|
37145
37145
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT3, SelectorType.CONFIG),
|
|
37146
37146
|
default: false
|
|
37147
37147
|
};
|
|
@@ -37196,7 +37196,7 @@ var init_config10 = __esm({
|
|
|
37196
37196
|
REGION_ENV_NAME3 = "AWS_REGION";
|
|
37197
37197
|
REGION_INI_NAME3 = "region";
|
|
37198
37198
|
NODE_REGION_CONFIG_OPTIONS3 = {
|
|
37199
|
-
environmentVariableSelector: (
|
|
37199
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME3],
|
|
37200
37200
|
configFileSelector: (profile) => profile[REGION_INI_NAME3],
|
|
37201
37201
|
default: () => {
|
|
37202
37202
|
throw new Error("Region is missing");
|
|
@@ -37928,12 +37928,12 @@ var init_getEndpointUrlConfig3 = __esm({
|
|
|
37928
37928
|
ENV_ENDPOINT_URL3 = "AWS_ENDPOINT_URL";
|
|
37929
37929
|
CONFIG_ENDPOINT_URL3 = "endpoint_url";
|
|
37930
37930
|
getEndpointUrlConfig3 = (serviceId) => ({
|
|
37931
|
-
environmentVariableSelector: (
|
|
37931
|
+
environmentVariableSelector: (env13) => {
|
|
37932
37932
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
37933
|
-
const serviceEndpointUrl =
|
|
37933
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL3, ...serviceSuffixParts].join("_")];
|
|
37934
37934
|
if (serviceEndpointUrl)
|
|
37935
37935
|
return serviceEndpointUrl;
|
|
37936
|
-
const endpointUrl =
|
|
37936
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL3];
|
|
37937
37937
|
if (endpointUrl)
|
|
37938
37938
|
return endpointUrl;
|
|
37939
37939
|
return void 0;
|
|
@@ -38695,8 +38695,8 @@ var init_configurations6 = __esm({
|
|
|
38695
38695
|
ENV_MAX_ATTEMPTS3 = "AWS_MAX_ATTEMPTS";
|
|
38696
38696
|
CONFIG_MAX_ATTEMPTS3 = "max_attempts";
|
|
38697
38697
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS3 = {
|
|
38698
|
-
environmentVariableSelector: (
|
|
38699
|
-
const value =
|
|
38698
|
+
environmentVariableSelector: (env13) => {
|
|
38699
|
+
const value = env13[ENV_MAX_ATTEMPTS3];
|
|
38700
38700
|
if (!value)
|
|
38701
38701
|
return void 0;
|
|
38702
38702
|
const maxAttempt = parseInt(value);
|
|
@@ -38738,7 +38738,7 @@ var init_configurations6 = __esm({
|
|
|
38738
38738
|
ENV_RETRY_MODE3 = "AWS_RETRY_MODE";
|
|
38739
38739
|
CONFIG_RETRY_MODE3 = "retry_mode";
|
|
38740
38740
|
NODE_RETRY_MODE_CONFIG_OPTIONS3 = {
|
|
38741
|
-
environmentVariableSelector: (
|
|
38741
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE3],
|
|
38742
38742
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE3],
|
|
38743
38743
|
default: DEFAULT_RETRY_MODE3
|
|
38744
38744
|
};
|
|
@@ -39305,7 +39305,7 @@ var init_EndpointConfigOptions3 = __esm({
|
|
|
39305
39305
|
ENV_ENDPOINT_NAME3 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
39306
39306
|
CONFIG_ENDPOINT_NAME3 = "ec2_metadata_service_endpoint";
|
|
39307
39307
|
ENDPOINT_CONFIG_OPTIONS3 = {
|
|
39308
|
-
environmentVariableSelector: (
|
|
39308
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME3],
|
|
39309
39309
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME3],
|
|
39310
39310
|
default: void 0
|
|
39311
39311
|
};
|
|
@@ -39335,7 +39335,7 @@ var init_EndpointModeConfigOptions3 = __esm({
|
|
|
39335
39335
|
ENV_ENDPOINT_MODE_NAME3 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
39336
39336
|
CONFIG_ENDPOINT_MODE_NAME3 = "ec2_metadata_service_endpoint_mode";
|
|
39337
39337
|
ENDPOINT_MODE_CONFIG_OPTIONS3 = {
|
|
39338
|
-
environmentVariableSelector: (
|
|
39338
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME3],
|
|
39339
39339
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME3],
|
|
39340
39340
|
default: EndpointMode3.IPv4
|
|
39341
39341
|
};
|
|
@@ -39457,8 +39457,8 @@ var init_fromInstanceMetadata3 = __esm({
|
|
|
39457
39457
|
let fallbackBlockedFromProfile = false;
|
|
39458
39458
|
let fallbackBlockedFromProcessEnv = false;
|
|
39459
39459
|
const configValue = await loadConfig3({
|
|
39460
|
-
environmentVariableSelector: (
|
|
39461
|
-
const envValue =
|
|
39460
|
+
environmentVariableSelector: (env13) => {
|
|
39461
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED3];
|
|
39462
39462
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
39463
39463
|
if (envValue === void 0) {
|
|
39464
39464
|
throw new CredentialsProviderError3(`${AWS_EC2_METADATA_V1_DISABLED3} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -46119,7 +46119,7 @@ var init_NodeUseDualstackEndpointConfigOptions4 = __esm({
|
|
|
46119
46119
|
ENV_USE_DUALSTACK_ENDPOINT4 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
46120
46120
|
CONFIG_USE_DUALSTACK_ENDPOINT4 = "use_dualstack_endpoint";
|
|
46121
46121
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS4 = {
|
|
46122
|
-
environmentVariableSelector: (
|
|
46122
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_DUALSTACK_ENDPOINT4, SelectorType.ENV),
|
|
46123
46123
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT4, SelectorType.CONFIG),
|
|
46124
46124
|
default: false
|
|
46125
46125
|
};
|
|
@@ -46136,7 +46136,7 @@ var init_NodeUseFipsEndpointConfigOptions4 = __esm({
|
|
|
46136
46136
|
ENV_USE_FIPS_ENDPOINT4 = "AWS_USE_FIPS_ENDPOINT";
|
|
46137
46137
|
CONFIG_USE_FIPS_ENDPOINT4 = "use_fips_endpoint";
|
|
46138
46138
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS4 = {
|
|
46139
|
-
environmentVariableSelector: (
|
|
46139
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_FIPS_ENDPOINT4, SelectorType.ENV),
|
|
46140
46140
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT4, SelectorType.CONFIG),
|
|
46141
46141
|
default: false
|
|
46142
46142
|
};
|
|
@@ -46191,7 +46191,7 @@ var init_config12 = __esm({
|
|
|
46191
46191
|
REGION_ENV_NAME4 = "AWS_REGION";
|
|
46192
46192
|
REGION_INI_NAME4 = "region";
|
|
46193
46193
|
NODE_REGION_CONFIG_OPTIONS4 = {
|
|
46194
|
-
environmentVariableSelector: (
|
|
46194
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME4],
|
|
46195
46195
|
configFileSelector: (profile) => profile[REGION_INI_NAME4],
|
|
46196
46196
|
default: () => {
|
|
46197
46197
|
throw new Error("Region is missing");
|
|
@@ -46606,12 +46606,12 @@ var init_getEndpointUrlConfig4 = __esm({
|
|
|
46606
46606
|
ENV_ENDPOINT_URL4 = "AWS_ENDPOINT_URL";
|
|
46607
46607
|
CONFIG_ENDPOINT_URL4 = "endpoint_url";
|
|
46608
46608
|
getEndpointUrlConfig4 = (serviceId) => ({
|
|
46609
|
-
environmentVariableSelector: (
|
|
46609
|
+
environmentVariableSelector: (env13) => {
|
|
46610
46610
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
46611
|
-
const serviceEndpointUrl =
|
|
46611
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL4, ...serviceSuffixParts].join("_")];
|
|
46612
46612
|
if (serviceEndpointUrl)
|
|
46613
46613
|
return serviceEndpointUrl;
|
|
46614
|
-
const endpointUrl =
|
|
46614
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL4];
|
|
46615
46615
|
if (endpointUrl)
|
|
46616
46616
|
return endpointUrl;
|
|
46617
46617
|
return void 0;
|
|
@@ -47322,8 +47322,8 @@ var init_configurations8 = __esm({
|
|
|
47322
47322
|
ENV_MAX_ATTEMPTS4 = "AWS_MAX_ATTEMPTS";
|
|
47323
47323
|
CONFIG_MAX_ATTEMPTS4 = "max_attempts";
|
|
47324
47324
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS4 = {
|
|
47325
|
-
environmentVariableSelector: (
|
|
47326
|
-
const value =
|
|
47325
|
+
environmentVariableSelector: (env13) => {
|
|
47326
|
+
const value = env13[ENV_MAX_ATTEMPTS4];
|
|
47327
47327
|
if (!value)
|
|
47328
47328
|
return void 0;
|
|
47329
47329
|
const maxAttempt = parseInt(value);
|
|
@@ -47365,7 +47365,7 @@ var init_configurations8 = __esm({
|
|
|
47365
47365
|
ENV_RETRY_MODE4 = "AWS_RETRY_MODE";
|
|
47366
47366
|
CONFIG_RETRY_MODE4 = "retry_mode";
|
|
47367
47367
|
NODE_RETRY_MODE_CONFIG_OPTIONS4 = {
|
|
47368
|
-
environmentVariableSelector: (
|
|
47368
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE4],
|
|
47369
47369
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE4],
|
|
47370
47370
|
default: DEFAULT_RETRY_MODE4
|
|
47371
47371
|
};
|
|
@@ -47757,7 +47757,7 @@ var init_is_crt_available3 = __esm({
|
|
|
47757
47757
|
|
|
47758
47758
|
// ../../../node_modules/@aws-sdk/token-providers/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
47759
47759
|
import { platform as platform3, release as release3 } from "os";
|
|
47760
|
-
import { env as
|
|
47760
|
+
import { env as env5, versions as versions3 } from "process";
|
|
47761
47761
|
var createDefaultUserAgentProvider3;
|
|
47762
47762
|
var init_defaultUserAgent3 = __esm({
|
|
47763
47763
|
"../../../node_modules/@aws-sdk/token-providers/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -47781,8 +47781,8 @@ var init_defaultUserAgent3 = __esm({
|
|
|
47781
47781
|
if (serviceId) {
|
|
47782
47782
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
47783
47783
|
}
|
|
47784
|
-
if (
|
|
47785
|
-
sections.push([`exec-env/${
|
|
47784
|
+
if (env5.AWS_EXECUTION_ENV) {
|
|
47785
|
+
sections.push([`exec-env/${env5.AWS_EXECUTION_ENV}`]);
|
|
47786
47786
|
}
|
|
47787
47787
|
const appId = await config?.userAgentAppId?.();
|
|
47788
47788
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -47803,7 +47803,7 @@ var init_nodeAppIdConfigOptions3 = __esm({
|
|
|
47803
47803
|
UA_APP_ID_INI_NAME3 = "sdk_ua_app_id";
|
|
47804
47804
|
UA_APP_ID_INI_NAME_DEPRECATED3 = "sdk-ua-app-id";
|
|
47805
47805
|
NODE_APP_ID_CONFIG_OPTIONS3 = {
|
|
47806
|
-
environmentVariableSelector: (
|
|
47806
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME3],
|
|
47807
47807
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME3] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED3],
|
|
47808
47808
|
default: DEFAULT_UA_APP_ID4
|
|
47809
47809
|
};
|
|
@@ -48569,8 +48569,8 @@ var init_defaultsModeConfig3 = __esm({
|
|
|
48569
48569
|
AWS_DEFAULTS_MODE_ENV3 = "AWS_DEFAULTS_MODE";
|
|
48570
48570
|
AWS_DEFAULTS_MODE_CONFIG3 = "defaults_mode";
|
|
48571
48571
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS3 = {
|
|
48572
|
-
environmentVariableSelector: (
|
|
48573
|
-
return
|
|
48572
|
+
environmentVariableSelector: (env13) => {
|
|
48573
|
+
return env13[AWS_DEFAULTS_MODE_ENV3];
|
|
48574
48574
|
},
|
|
48575
48575
|
configFileSelector: (profile) => {
|
|
48576
48576
|
return profile[AWS_DEFAULTS_MODE_CONFIG3];
|
|
@@ -48793,7 +48793,7 @@ var init_EndpointConfigOptions4 = __esm({
|
|
|
48793
48793
|
ENV_ENDPOINT_NAME4 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
48794
48794
|
CONFIG_ENDPOINT_NAME4 = "ec2_metadata_service_endpoint";
|
|
48795
48795
|
ENDPOINT_CONFIG_OPTIONS4 = {
|
|
48796
|
-
environmentVariableSelector: (
|
|
48796
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME4],
|
|
48797
48797
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME4],
|
|
48798
48798
|
default: void 0
|
|
48799
48799
|
};
|
|
@@ -48823,7 +48823,7 @@ var init_EndpointModeConfigOptions4 = __esm({
|
|
|
48823
48823
|
ENV_ENDPOINT_MODE_NAME4 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
48824
48824
|
CONFIG_ENDPOINT_MODE_NAME4 = "ec2_metadata_service_endpoint_mode";
|
|
48825
48825
|
ENDPOINT_MODE_CONFIG_OPTIONS4 = {
|
|
48826
|
-
environmentVariableSelector: (
|
|
48826
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME4],
|
|
48827
48827
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME4],
|
|
48828
48828
|
default: EndpointMode4.IPv4
|
|
48829
48829
|
};
|
|
@@ -48945,8 +48945,8 @@ var init_fromInstanceMetadata4 = __esm({
|
|
|
48945
48945
|
let fallbackBlockedFromProfile = false;
|
|
48946
48946
|
let fallbackBlockedFromProcessEnv = false;
|
|
48947
48947
|
const configValue = await loadConfig4({
|
|
48948
|
-
environmentVariableSelector: (
|
|
48949
|
-
const envValue =
|
|
48948
|
+
environmentVariableSelector: (env13) => {
|
|
48949
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED4];
|
|
48950
48950
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
48951
48951
|
if (envValue === void 0) {
|
|
48952
48952
|
throw new CredentialsProviderError7(`${AWS_EC2_METADATA_V1_DISABLED4} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -54438,7 +54438,7 @@ var init_NodeUseDualstackEndpointConfigOptions5 = __esm({
|
|
|
54438
54438
|
ENV_USE_DUALSTACK_ENDPOINT5 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
54439
54439
|
CONFIG_USE_DUALSTACK_ENDPOINT5 = "use_dualstack_endpoint";
|
|
54440
54440
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS5 = {
|
|
54441
|
-
environmentVariableSelector: (
|
|
54441
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_DUALSTACK_ENDPOINT5, SelectorType.ENV),
|
|
54442
54442
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT5, SelectorType.CONFIG),
|
|
54443
54443
|
default: false
|
|
54444
54444
|
};
|
|
@@ -54455,7 +54455,7 @@ var init_NodeUseFipsEndpointConfigOptions5 = __esm({
|
|
|
54455
54455
|
ENV_USE_FIPS_ENDPOINT5 = "AWS_USE_FIPS_ENDPOINT";
|
|
54456
54456
|
CONFIG_USE_FIPS_ENDPOINT5 = "use_fips_endpoint";
|
|
54457
54457
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS5 = {
|
|
54458
|
-
environmentVariableSelector: (
|
|
54458
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_FIPS_ENDPOINT5, SelectorType.ENV),
|
|
54459
54459
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT5, SelectorType.CONFIG),
|
|
54460
54460
|
default: false
|
|
54461
54461
|
};
|
|
@@ -54510,7 +54510,7 @@ var init_config15 = __esm({
|
|
|
54510
54510
|
REGION_ENV_NAME5 = "AWS_REGION";
|
|
54511
54511
|
REGION_INI_NAME5 = "region";
|
|
54512
54512
|
NODE_REGION_CONFIG_OPTIONS5 = {
|
|
54513
|
-
environmentVariableSelector: (
|
|
54513
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME5],
|
|
54514
54514
|
configFileSelector: (profile) => profile[REGION_INI_NAME5],
|
|
54515
54515
|
default: () => {
|
|
54516
54516
|
throw new Error("Region is missing");
|
|
@@ -55223,12 +55223,12 @@ var init_getEndpointUrlConfig5 = __esm({
|
|
|
55223
55223
|
ENV_ENDPOINT_URL5 = "AWS_ENDPOINT_URL";
|
|
55224
55224
|
CONFIG_ENDPOINT_URL5 = "endpoint_url";
|
|
55225
55225
|
getEndpointUrlConfig5 = (serviceId) => ({
|
|
55226
|
-
environmentVariableSelector: (
|
|
55226
|
+
environmentVariableSelector: (env13) => {
|
|
55227
55227
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
55228
|
-
const serviceEndpointUrl =
|
|
55228
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL5, ...serviceSuffixParts].join("_")];
|
|
55229
55229
|
if (serviceEndpointUrl)
|
|
55230
55230
|
return serviceEndpointUrl;
|
|
55231
|
-
const endpointUrl =
|
|
55231
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL5];
|
|
55232
55232
|
if (endpointUrl)
|
|
55233
55233
|
return endpointUrl;
|
|
55234
55234
|
return void 0;
|
|
@@ -55939,8 +55939,8 @@ var init_configurations10 = __esm({
|
|
|
55939
55939
|
ENV_MAX_ATTEMPTS5 = "AWS_MAX_ATTEMPTS";
|
|
55940
55940
|
CONFIG_MAX_ATTEMPTS5 = "max_attempts";
|
|
55941
55941
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS5 = {
|
|
55942
|
-
environmentVariableSelector: (
|
|
55943
|
-
const value =
|
|
55942
|
+
environmentVariableSelector: (env13) => {
|
|
55943
|
+
const value = env13[ENV_MAX_ATTEMPTS5];
|
|
55944
55944
|
if (!value)
|
|
55945
55945
|
return void 0;
|
|
55946
55946
|
const maxAttempt = parseInt(value);
|
|
@@ -55982,7 +55982,7 @@ var init_configurations10 = __esm({
|
|
|
55982
55982
|
ENV_RETRY_MODE5 = "AWS_RETRY_MODE";
|
|
55983
55983
|
CONFIG_RETRY_MODE5 = "retry_mode";
|
|
55984
55984
|
NODE_RETRY_MODE_CONFIG_OPTIONS5 = {
|
|
55985
|
-
environmentVariableSelector: (
|
|
55985
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE5],
|
|
55986
55986
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE5],
|
|
55987
55987
|
default: DEFAULT_RETRY_MODE5
|
|
55988
55988
|
};
|
|
@@ -56369,7 +56369,7 @@ var init_is_crt_available4 = __esm({
|
|
|
56369
56369
|
|
|
56370
56370
|
// ../../../node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
56371
56371
|
import { platform as platform4, release as release4 } from "os";
|
|
56372
|
-
import { env as
|
|
56372
|
+
import { env as env6, versions as versions4 } from "process";
|
|
56373
56373
|
var createDefaultUserAgentProvider4;
|
|
56374
56374
|
var init_defaultUserAgent4 = __esm({
|
|
56375
56375
|
"../../../node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -56393,8 +56393,8 @@ var init_defaultUserAgent4 = __esm({
|
|
|
56393
56393
|
if (serviceId) {
|
|
56394
56394
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
56395
56395
|
}
|
|
56396
|
-
if (
|
|
56397
|
-
sections.push([`exec-env/${
|
|
56396
|
+
if (env6.AWS_EXECUTION_ENV) {
|
|
56397
|
+
sections.push([`exec-env/${env6.AWS_EXECUTION_ENV}`]);
|
|
56398
56398
|
}
|
|
56399
56399
|
const appId = await config?.userAgentAppId?.();
|
|
56400
56400
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -56415,7 +56415,7 @@ var init_nodeAppIdConfigOptions4 = __esm({
|
|
|
56415
56415
|
UA_APP_ID_INI_NAME4 = "sdk_ua_app_id";
|
|
56416
56416
|
UA_APP_ID_INI_NAME_DEPRECATED4 = "sdk-ua-app-id";
|
|
56417
56417
|
NODE_APP_ID_CONFIG_OPTIONS4 = {
|
|
56418
|
-
environmentVariableSelector: (
|
|
56418
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME4],
|
|
56419
56419
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME4] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED4],
|
|
56420
56420
|
default: DEFAULT_UA_APP_ID5
|
|
56421
56421
|
};
|
|
@@ -57181,8 +57181,8 @@ var init_defaultsModeConfig4 = __esm({
|
|
|
57181
57181
|
AWS_DEFAULTS_MODE_ENV4 = "AWS_DEFAULTS_MODE";
|
|
57182
57182
|
AWS_DEFAULTS_MODE_CONFIG4 = "defaults_mode";
|
|
57183
57183
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS4 = {
|
|
57184
|
-
environmentVariableSelector: (
|
|
57185
|
-
return
|
|
57184
|
+
environmentVariableSelector: (env13) => {
|
|
57185
|
+
return env13[AWS_DEFAULTS_MODE_ENV4];
|
|
57186
57186
|
},
|
|
57187
57187
|
configFileSelector: (profile) => {
|
|
57188
57188
|
return profile[AWS_DEFAULTS_MODE_CONFIG4];
|
|
@@ -57405,7 +57405,7 @@ var init_EndpointConfigOptions5 = __esm({
|
|
|
57405
57405
|
ENV_ENDPOINT_NAME5 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
57406
57406
|
CONFIG_ENDPOINT_NAME5 = "ec2_metadata_service_endpoint";
|
|
57407
57407
|
ENDPOINT_CONFIG_OPTIONS5 = {
|
|
57408
|
-
environmentVariableSelector: (
|
|
57408
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME5],
|
|
57409
57409
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME5],
|
|
57410
57410
|
default: void 0
|
|
57411
57411
|
};
|
|
@@ -57435,7 +57435,7 @@ var init_EndpointModeConfigOptions5 = __esm({
|
|
|
57435
57435
|
ENV_ENDPOINT_MODE_NAME5 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
57436
57436
|
CONFIG_ENDPOINT_MODE_NAME5 = "ec2_metadata_service_endpoint_mode";
|
|
57437
57437
|
ENDPOINT_MODE_CONFIG_OPTIONS5 = {
|
|
57438
|
-
environmentVariableSelector: (
|
|
57438
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME5],
|
|
57439
57439
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME5],
|
|
57440
57440
|
default: EndpointMode5.IPv4
|
|
57441
57441
|
};
|
|
@@ -57557,8 +57557,8 @@ var init_fromInstanceMetadata5 = __esm({
|
|
|
57557
57557
|
let fallbackBlockedFromProfile = false;
|
|
57558
57558
|
let fallbackBlockedFromProcessEnv = false;
|
|
57559
57559
|
const configValue = await loadConfig5({
|
|
57560
|
-
environmentVariableSelector: (
|
|
57561
|
-
const envValue =
|
|
57560
|
+
environmentVariableSelector: (env13) => {
|
|
57561
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED5];
|
|
57562
57562
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
57563
57563
|
if (envValue === void 0) {
|
|
57564
57564
|
throw new CredentialsProviderError8(`${AWS_EC2_METADATA_V1_DISABLED5} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -59051,7 +59051,7 @@ var init_is_crt_available5 = __esm({
|
|
|
59051
59051
|
|
|
59052
59052
|
// ../../../node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
59053
59053
|
import { platform as platform5, release as release5 } from "os";
|
|
59054
|
-
import { env as
|
|
59054
|
+
import { env as env7, versions as versions5 } from "process";
|
|
59055
59055
|
var createDefaultUserAgentProvider5;
|
|
59056
59056
|
var init_defaultUserAgent5 = __esm({
|
|
59057
59057
|
"../../../node_modules/@aws-sdk/client-s3/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -59075,8 +59075,8 @@ var init_defaultUserAgent5 = __esm({
|
|
|
59075
59075
|
if (serviceId) {
|
|
59076
59076
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
59077
59077
|
}
|
|
59078
|
-
if (
|
|
59079
|
-
sections.push([`exec-env/${
|
|
59078
|
+
if (env7.AWS_EXECUTION_ENV) {
|
|
59079
|
+
sections.push([`exec-env/${env7.AWS_EXECUTION_ENV}`]);
|
|
59080
59080
|
}
|
|
59081
59081
|
const appId = await config?.userAgentAppId?.();
|
|
59082
59082
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -59097,7 +59097,7 @@ var init_nodeAppIdConfigOptions5 = __esm({
|
|
|
59097
59097
|
UA_APP_ID_INI_NAME5 = "sdk_ua_app_id";
|
|
59098
59098
|
UA_APP_ID_INI_NAME_DEPRECATED5 = "sdk-ua-app-id";
|
|
59099
59099
|
NODE_APP_ID_CONFIG_OPTIONS5 = {
|
|
59100
|
-
environmentVariableSelector: (
|
|
59100
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME5],
|
|
59101
59101
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME5] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED5],
|
|
59102
59102
|
default: DEFAULT_UA_APP_ID3
|
|
59103
59103
|
};
|
|
@@ -59875,8 +59875,8 @@ var init_defaultsModeConfig5 = __esm({
|
|
|
59875
59875
|
AWS_DEFAULTS_MODE_ENV5 = "AWS_DEFAULTS_MODE";
|
|
59876
59876
|
AWS_DEFAULTS_MODE_CONFIG5 = "defaults_mode";
|
|
59877
59877
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS5 = {
|
|
59878
|
-
environmentVariableSelector: (
|
|
59879
|
-
return
|
|
59878
|
+
environmentVariableSelector: (env13) => {
|
|
59879
|
+
return env13[AWS_DEFAULTS_MODE_ENV5];
|
|
59880
59880
|
},
|
|
59881
59881
|
configFileSelector: (profile) => {
|
|
59882
59882
|
return profile[AWS_DEFAULTS_MODE_CONFIG5];
|
|
@@ -66021,7 +66021,7 @@ var init_NodeUseDualstackEndpointConfigOptions6 = __esm({
|
|
|
66021
66021
|
ENV_USE_DUALSTACK_ENDPOINT6 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
66022
66022
|
CONFIG_USE_DUALSTACK_ENDPOINT6 = "use_dualstack_endpoint";
|
|
66023
66023
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS6 = {
|
|
66024
|
-
environmentVariableSelector: (
|
|
66024
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_DUALSTACK_ENDPOINT6, SelectorType.ENV),
|
|
66025
66025
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT6, SelectorType.CONFIG),
|
|
66026
66026
|
default: false
|
|
66027
66027
|
};
|
|
@@ -66038,7 +66038,7 @@ var init_NodeUseFipsEndpointConfigOptions6 = __esm({
|
|
|
66038
66038
|
ENV_USE_FIPS_ENDPOINT6 = "AWS_USE_FIPS_ENDPOINT";
|
|
66039
66039
|
CONFIG_USE_FIPS_ENDPOINT6 = "use_fips_endpoint";
|
|
66040
66040
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS6 = {
|
|
66041
|
-
environmentVariableSelector: (
|
|
66041
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, ENV_USE_FIPS_ENDPOINT6, SelectorType.ENV),
|
|
66042
66042
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT6, SelectorType.CONFIG),
|
|
66043
66043
|
default: false
|
|
66044
66044
|
};
|
|
@@ -66093,7 +66093,7 @@ var init_config19 = __esm({
|
|
|
66093
66093
|
REGION_ENV_NAME6 = "AWS_REGION";
|
|
66094
66094
|
REGION_INI_NAME6 = "region";
|
|
66095
66095
|
NODE_REGION_CONFIG_OPTIONS6 = {
|
|
66096
|
-
environmentVariableSelector: (
|
|
66096
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME6],
|
|
66097
66097
|
configFileSelector: (profile) => profile[REGION_INI_NAME6],
|
|
66098
66098
|
default: () => {
|
|
66099
66099
|
throw new Error("Region is missing");
|
|
@@ -66806,12 +66806,12 @@ var init_getEndpointUrlConfig6 = __esm({
|
|
|
66806
66806
|
ENV_ENDPOINT_URL6 = "AWS_ENDPOINT_URL";
|
|
66807
66807
|
CONFIG_ENDPOINT_URL6 = "endpoint_url";
|
|
66808
66808
|
getEndpointUrlConfig6 = (serviceId) => ({
|
|
66809
|
-
environmentVariableSelector: (
|
|
66809
|
+
environmentVariableSelector: (env13) => {
|
|
66810
66810
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
66811
|
-
const serviceEndpointUrl =
|
|
66811
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL6, ...serviceSuffixParts].join("_")];
|
|
66812
66812
|
if (serviceEndpointUrl)
|
|
66813
66813
|
return serviceEndpointUrl;
|
|
66814
|
-
const endpointUrl =
|
|
66814
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL6];
|
|
66815
66815
|
if (endpointUrl)
|
|
66816
66816
|
return endpointUrl;
|
|
66817
66817
|
return void 0;
|
|
@@ -67522,8 +67522,8 @@ var init_configurations12 = __esm({
|
|
|
67522
67522
|
ENV_MAX_ATTEMPTS6 = "AWS_MAX_ATTEMPTS";
|
|
67523
67523
|
CONFIG_MAX_ATTEMPTS6 = "max_attempts";
|
|
67524
67524
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS6 = {
|
|
67525
|
-
environmentVariableSelector: (
|
|
67526
|
-
const value =
|
|
67525
|
+
environmentVariableSelector: (env13) => {
|
|
67526
|
+
const value = env13[ENV_MAX_ATTEMPTS6];
|
|
67527
67527
|
if (!value)
|
|
67528
67528
|
return void 0;
|
|
67529
67529
|
const maxAttempt = parseInt(value);
|
|
@@ -67565,7 +67565,7 @@ var init_configurations12 = __esm({
|
|
|
67565
67565
|
ENV_RETRY_MODE6 = "AWS_RETRY_MODE";
|
|
67566
67566
|
CONFIG_RETRY_MODE6 = "retry_mode";
|
|
67567
67567
|
NODE_RETRY_MODE_CONFIG_OPTIONS6 = {
|
|
67568
|
-
environmentVariableSelector: (
|
|
67568
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE6],
|
|
67569
67569
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE6],
|
|
67570
67570
|
default: DEFAULT_RETRY_MODE6
|
|
67571
67571
|
};
|
|
@@ -67965,7 +67965,7 @@ var init_is_crt_available6 = __esm({
|
|
|
67965
67965
|
|
|
67966
67966
|
// ../../../node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
67967
67967
|
import { platform as platform6, release as release6 } from "os";
|
|
67968
|
-
import { env as
|
|
67968
|
+
import { env as env8, versions as versions6 } from "process";
|
|
67969
67969
|
var createDefaultUserAgentProvider6;
|
|
67970
67970
|
var init_defaultUserAgent6 = __esm({
|
|
67971
67971
|
"../../../node_modules/@aws-sdk/credential-provider-web-identity/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -67989,8 +67989,8 @@ var init_defaultUserAgent6 = __esm({
|
|
|
67989
67989
|
if (serviceId) {
|
|
67990
67990
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
67991
67991
|
}
|
|
67992
|
-
if (
|
|
67993
|
-
sections.push([`exec-env/${
|
|
67992
|
+
if (env8.AWS_EXECUTION_ENV) {
|
|
67993
|
+
sections.push([`exec-env/${env8.AWS_EXECUTION_ENV}`]);
|
|
67994
67994
|
}
|
|
67995
67995
|
const appId = await config?.userAgentAppId?.();
|
|
67996
67996
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -68011,7 +68011,7 @@ var init_nodeAppIdConfigOptions6 = __esm({
|
|
|
68011
68011
|
UA_APP_ID_INI_NAME6 = "sdk_ua_app_id";
|
|
68012
68012
|
UA_APP_ID_INI_NAME_DEPRECATED6 = "sdk-ua-app-id";
|
|
68013
68013
|
NODE_APP_ID_CONFIG_OPTIONS6 = {
|
|
68014
|
-
environmentVariableSelector: (
|
|
68014
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME6],
|
|
68015
68015
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME6] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED6],
|
|
68016
68016
|
default: DEFAULT_UA_APP_ID6
|
|
68017
68017
|
};
|
|
@@ -68789,8 +68789,8 @@ var init_defaultsModeConfig6 = __esm({
|
|
|
68789
68789
|
AWS_DEFAULTS_MODE_ENV6 = "AWS_DEFAULTS_MODE";
|
|
68790
68790
|
AWS_DEFAULTS_MODE_CONFIG6 = "defaults_mode";
|
|
68791
68791
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS6 = {
|
|
68792
|
-
environmentVariableSelector: (
|
|
68793
|
-
return
|
|
68792
|
+
environmentVariableSelector: (env13) => {
|
|
68793
|
+
return env13[AWS_DEFAULTS_MODE_ENV6];
|
|
68794
68794
|
},
|
|
68795
68795
|
configFileSelector: (profile) => {
|
|
68796
68796
|
return profile[AWS_DEFAULTS_MODE_CONFIG6];
|
|
@@ -69013,7 +69013,7 @@ var init_EndpointConfigOptions6 = __esm({
|
|
|
69013
69013
|
ENV_ENDPOINT_NAME6 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
69014
69014
|
CONFIG_ENDPOINT_NAME6 = "ec2_metadata_service_endpoint";
|
|
69015
69015
|
ENDPOINT_CONFIG_OPTIONS6 = {
|
|
69016
|
-
environmentVariableSelector: (
|
|
69016
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME6],
|
|
69017
69017
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME6],
|
|
69018
69018
|
default: void 0
|
|
69019
69019
|
};
|
|
@@ -69043,7 +69043,7 @@ var init_EndpointModeConfigOptions6 = __esm({
|
|
|
69043
69043
|
ENV_ENDPOINT_MODE_NAME6 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
69044
69044
|
CONFIG_ENDPOINT_MODE_NAME6 = "ec2_metadata_service_endpoint_mode";
|
|
69045
69045
|
ENDPOINT_MODE_CONFIG_OPTIONS6 = {
|
|
69046
|
-
environmentVariableSelector: (
|
|
69046
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME6],
|
|
69047
69047
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME6],
|
|
69048
69048
|
default: EndpointMode6.IPv4
|
|
69049
69049
|
};
|
|
@@ -69165,8 +69165,8 @@ var init_fromInstanceMetadata6 = __esm({
|
|
|
69165
69165
|
let fallbackBlockedFromProfile = false;
|
|
69166
69166
|
let fallbackBlockedFromProcessEnv = false;
|
|
69167
69167
|
const configValue = await loadConfig6({
|
|
69168
|
-
environmentVariableSelector: (
|
|
69169
|
-
const envValue =
|
|
69168
|
+
environmentVariableSelector: (env13) => {
|
|
69169
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED6];
|
|
69170
69170
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
69171
69171
|
if (envValue === void 0) {
|
|
69172
69172
|
throw new CredentialsProviderError10(`${AWS_EC2_METADATA_V1_DISABLED6} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -77490,15 +77490,15 @@ var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS3 = __esm({
|
|
|
77490
77490
|
NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY3 = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
77491
77491
|
NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY3 = "auth_scheme_preference";
|
|
77492
77492
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS3 = {
|
|
77493
|
-
environmentVariableSelector: (
|
|
77493
|
+
environmentVariableSelector: (env13, options) => {
|
|
77494
77494
|
if (options?.signingName) {
|
|
77495
77495
|
const bearerTokenKey = getBearerTokenEnvKey3(options.signingName);
|
|
77496
|
-
if (bearerTokenKey in
|
|
77496
|
+
if (bearerTokenKey in env13)
|
|
77497
77497
|
return ["httpBearerAuth"];
|
|
77498
77498
|
}
|
|
77499
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY3 in
|
|
77499
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY3 in env13))
|
|
77500
77500
|
return void 0;
|
|
77501
|
-
return getArrayForCommaSeparatedString3(
|
|
77501
|
+
return getArrayForCommaSeparatedString3(env13[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY3]);
|
|
77502
77502
|
},
|
|
77503
77503
|
configFileSelector: (profile) => {
|
|
77504
77504
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY3 in profile))
|
|
@@ -80426,7 +80426,7 @@ var init_NodeUseDualstackEndpointConfigOptions7 = __esm({
|
|
|
80426
80426
|
ENV_USE_DUALSTACK_ENDPOINT7 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
80427
80427
|
CONFIG_USE_DUALSTACK_ENDPOINT7 = "use_dualstack_endpoint";
|
|
80428
80428
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS7 = {
|
|
80429
|
-
environmentVariableSelector: (
|
|
80429
|
+
environmentVariableSelector: (env13) => booleanSelector2(env13, ENV_USE_DUALSTACK_ENDPOINT7, SelectorType3.ENV),
|
|
80430
80430
|
configFileSelector: (profile) => booleanSelector2(profile, CONFIG_USE_DUALSTACK_ENDPOINT7, SelectorType3.CONFIG),
|
|
80431
80431
|
default: false
|
|
80432
80432
|
};
|
|
@@ -80443,7 +80443,7 @@ var init_NodeUseFipsEndpointConfigOptions7 = __esm({
|
|
|
80443
80443
|
ENV_USE_FIPS_ENDPOINT7 = "AWS_USE_FIPS_ENDPOINT";
|
|
80444
80444
|
CONFIG_USE_FIPS_ENDPOINT7 = "use_fips_endpoint";
|
|
80445
80445
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS7 = {
|
|
80446
|
-
environmentVariableSelector: (
|
|
80446
|
+
environmentVariableSelector: (env13) => booleanSelector2(env13, ENV_USE_FIPS_ENDPOINT7, SelectorType3.ENV),
|
|
80447
80447
|
configFileSelector: (profile) => booleanSelector2(profile, CONFIG_USE_FIPS_ENDPOINT7, SelectorType3.CONFIG),
|
|
80448
80448
|
default: false
|
|
80449
80449
|
};
|
|
@@ -80487,7 +80487,7 @@ var init_config23 = __esm({
|
|
|
80487
80487
|
REGION_ENV_NAME7 = "AWS_REGION";
|
|
80488
80488
|
REGION_INI_NAME7 = "region";
|
|
80489
80489
|
NODE_REGION_CONFIG_OPTIONS7 = {
|
|
80490
|
-
environmentVariableSelector: (
|
|
80490
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME7],
|
|
80491
80491
|
configFileSelector: (profile) => profile[REGION_INI_NAME7],
|
|
80492
80492
|
default: () => {
|
|
80493
80493
|
throw new Error("Region is missing");
|
|
@@ -81879,12 +81879,12 @@ var init_getEndpointUrlConfig7 = __esm({
|
|
|
81879
81879
|
ENV_ENDPOINT_URL7 = "AWS_ENDPOINT_URL";
|
|
81880
81880
|
CONFIG_ENDPOINT_URL7 = "endpoint_url";
|
|
81881
81881
|
getEndpointUrlConfig7 = (serviceId) => ({
|
|
81882
|
-
environmentVariableSelector: (
|
|
81882
|
+
environmentVariableSelector: (env13) => {
|
|
81883
81883
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
81884
|
-
const serviceEndpointUrl =
|
|
81884
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL7, ...serviceSuffixParts].join("_")];
|
|
81885
81885
|
if (serviceEndpointUrl)
|
|
81886
81886
|
return serviceEndpointUrl;
|
|
81887
|
-
const endpointUrl =
|
|
81887
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL7];
|
|
81888
81888
|
if (endpointUrl)
|
|
81889
81889
|
return endpointUrl;
|
|
81890
81890
|
return void 0;
|
|
@@ -82607,8 +82607,8 @@ var init_configurations14 = __esm({
|
|
|
82607
82607
|
ENV_MAX_ATTEMPTS7 = "AWS_MAX_ATTEMPTS";
|
|
82608
82608
|
CONFIG_MAX_ATTEMPTS7 = "max_attempts";
|
|
82609
82609
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS7 = {
|
|
82610
|
-
environmentVariableSelector: (
|
|
82611
|
-
const value =
|
|
82610
|
+
environmentVariableSelector: (env13) => {
|
|
82611
|
+
const value = env13[ENV_MAX_ATTEMPTS7];
|
|
82612
82612
|
if (!value)
|
|
82613
82613
|
return void 0;
|
|
82614
82614
|
const maxAttempt = parseInt(value);
|
|
@@ -82649,7 +82649,7 @@ var init_configurations14 = __esm({
|
|
|
82649
82649
|
ENV_RETRY_MODE7 = "AWS_RETRY_MODE";
|
|
82650
82650
|
CONFIG_RETRY_MODE7 = "retry_mode";
|
|
82651
82651
|
NODE_RETRY_MODE_CONFIG_OPTIONS7 = {
|
|
82652
|
-
environmentVariableSelector: (
|
|
82652
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE7],
|
|
82653
82653
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE7],
|
|
82654
82654
|
default: DEFAULT_RETRY_MODE7
|
|
82655
82655
|
};
|
|
@@ -83078,7 +83078,7 @@ var init_EndpointConfigOptions7 = __esm({
|
|
|
83078
83078
|
ENV_ENDPOINT_NAME7 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
83079
83079
|
CONFIG_ENDPOINT_NAME7 = "ec2_metadata_service_endpoint";
|
|
83080
83080
|
ENDPOINT_CONFIG_OPTIONS7 = {
|
|
83081
|
-
environmentVariableSelector: (
|
|
83081
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME7],
|
|
83082
83082
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME7],
|
|
83083
83083
|
default: void 0
|
|
83084
83084
|
};
|
|
@@ -83108,7 +83108,7 @@ var init_EndpointModeConfigOptions7 = __esm({
|
|
|
83108
83108
|
ENV_ENDPOINT_MODE_NAME7 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
83109
83109
|
CONFIG_ENDPOINT_MODE_NAME7 = "ec2_metadata_service_endpoint_mode";
|
|
83110
83110
|
ENDPOINT_MODE_CONFIG_OPTIONS7 = {
|
|
83111
|
-
environmentVariableSelector: (
|
|
83111
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME7],
|
|
83112
83112
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME7],
|
|
83113
83113
|
default: EndpointMode7.IPv4
|
|
83114
83114
|
};
|
|
@@ -83230,8 +83230,8 @@ var init_fromInstanceMetadata7 = __esm({
|
|
|
83230
83230
|
let fallbackBlockedFromProfile = false;
|
|
83231
83231
|
let fallbackBlockedFromProcessEnv = false;
|
|
83232
83232
|
const configValue = await loadConfig7({
|
|
83233
|
-
environmentVariableSelector: (
|
|
83234
|
-
const envValue =
|
|
83233
|
+
environmentVariableSelector: (env13) => {
|
|
83234
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED7];
|
|
83235
83235
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
83236
83236
|
if (envValue === void 0) {
|
|
83237
83237
|
throw new CredentialsProviderError11(`${AWS_EC2_METADATA_V1_DISABLED7} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -90199,15 +90199,15 @@ var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS4 = __esm({
|
|
|
90199
90199
|
NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY4 = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
90200
90200
|
NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY4 = "auth_scheme_preference";
|
|
90201
90201
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS4 = {
|
|
90202
|
-
environmentVariableSelector: (
|
|
90202
|
+
environmentVariableSelector: (env13, options) => {
|
|
90203
90203
|
if (options?.signingName) {
|
|
90204
90204
|
const bearerTokenKey = getBearerTokenEnvKey4(options.signingName);
|
|
90205
|
-
if (bearerTokenKey in
|
|
90205
|
+
if (bearerTokenKey in env13)
|
|
90206
90206
|
return ["httpBearerAuth"];
|
|
90207
90207
|
}
|
|
90208
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY4 in
|
|
90208
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY4 in env13))
|
|
90209
90209
|
return void 0;
|
|
90210
|
-
return getArrayForCommaSeparatedString4(
|
|
90210
|
+
return getArrayForCommaSeparatedString4(env13[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY4]);
|
|
90211
90211
|
},
|
|
90212
90212
|
configFileSelector: (profile) => {
|
|
90213
90213
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY4 in profile))
|
|
@@ -93459,7 +93459,7 @@ var init_NodeUseDualstackEndpointConfigOptions8 = __esm({
|
|
|
93459
93459
|
ENV_USE_DUALSTACK_ENDPOINT8 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
93460
93460
|
CONFIG_USE_DUALSTACK_ENDPOINT8 = "use_dualstack_endpoint";
|
|
93461
93461
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS8 = {
|
|
93462
|
-
environmentVariableSelector: (
|
|
93462
|
+
environmentVariableSelector: (env13) => booleanSelector3(env13, ENV_USE_DUALSTACK_ENDPOINT8, SelectorType4.ENV),
|
|
93463
93463
|
configFileSelector: (profile) => booleanSelector3(profile, CONFIG_USE_DUALSTACK_ENDPOINT8, SelectorType4.CONFIG),
|
|
93464
93464
|
default: false
|
|
93465
93465
|
};
|
|
@@ -93476,7 +93476,7 @@ var init_NodeUseFipsEndpointConfigOptions8 = __esm({
|
|
|
93476
93476
|
ENV_USE_FIPS_ENDPOINT8 = "AWS_USE_FIPS_ENDPOINT";
|
|
93477
93477
|
CONFIG_USE_FIPS_ENDPOINT8 = "use_fips_endpoint";
|
|
93478
93478
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS8 = {
|
|
93479
|
-
environmentVariableSelector: (
|
|
93479
|
+
environmentVariableSelector: (env13) => booleanSelector3(env13, ENV_USE_FIPS_ENDPOINT8, SelectorType4.ENV),
|
|
93480
93480
|
configFileSelector: (profile) => booleanSelector3(profile, CONFIG_USE_FIPS_ENDPOINT8, SelectorType4.CONFIG),
|
|
93481
93481
|
default: false
|
|
93482
93482
|
};
|
|
@@ -93520,7 +93520,7 @@ var init_config27 = __esm({
|
|
|
93520
93520
|
REGION_ENV_NAME8 = "AWS_REGION";
|
|
93521
93521
|
REGION_INI_NAME8 = "region";
|
|
93522
93522
|
NODE_REGION_CONFIG_OPTIONS8 = {
|
|
93523
|
-
environmentVariableSelector: (
|
|
93523
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME8],
|
|
93524
93524
|
configFileSelector: (profile) => profile[REGION_INI_NAME8],
|
|
93525
93525
|
default: () => {
|
|
93526
93526
|
throw new Error("Region is missing");
|
|
@@ -93927,12 +93927,12 @@ var init_getEndpointUrlConfig8 = __esm({
|
|
|
93927
93927
|
ENV_ENDPOINT_URL8 = "AWS_ENDPOINT_URL";
|
|
93928
93928
|
CONFIG_ENDPOINT_URL8 = "endpoint_url";
|
|
93929
93929
|
getEndpointUrlConfig8 = (serviceId) => ({
|
|
93930
|
-
environmentVariableSelector: (
|
|
93930
|
+
environmentVariableSelector: (env13) => {
|
|
93931
93931
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
93932
|
-
const serviceEndpointUrl =
|
|
93932
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL8, ...serviceSuffixParts].join("_")];
|
|
93933
93933
|
if (serviceEndpointUrl)
|
|
93934
93934
|
return serviceEndpointUrl;
|
|
93935
|
-
const endpointUrl =
|
|
93935
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL8];
|
|
93936
93936
|
if (endpointUrl)
|
|
93937
93937
|
return endpointUrl;
|
|
93938
93938
|
return void 0;
|
|
@@ -94655,8 +94655,8 @@ var init_configurations16 = __esm({
|
|
|
94655
94655
|
ENV_MAX_ATTEMPTS8 = "AWS_MAX_ATTEMPTS";
|
|
94656
94656
|
CONFIG_MAX_ATTEMPTS8 = "max_attempts";
|
|
94657
94657
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS8 = {
|
|
94658
|
-
environmentVariableSelector: (
|
|
94659
|
-
const value =
|
|
94658
|
+
environmentVariableSelector: (env13) => {
|
|
94659
|
+
const value = env13[ENV_MAX_ATTEMPTS8];
|
|
94660
94660
|
if (!value)
|
|
94661
94661
|
return void 0;
|
|
94662
94662
|
const maxAttempt = parseInt(value);
|
|
@@ -94697,7 +94697,7 @@ var init_configurations16 = __esm({
|
|
|
94697
94697
|
ENV_RETRY_MODE8 = "AWS_RETRY_MODE";
|
|
94698
94698
|
CONFIG_RETRY_MODE8 = "retry_mode";
|
|
94699
94699
|
NODE_RETRY_MODE_CONFIG_OPTIONS8 = {
|
|
94700
|
-
environmentVariableSelector: (
|
|
94700
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE8],
|
|
94701
94701
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE8],
|
|
94702
94702
|
default: DEFAULT_RETRY_MODE8
|
|
94703
94703
|
};
|
|
@@ -95098,7 +95098,7 @@ var init_is_crt_available7 = __esm({
|
|
|
95098
95098
|
|
|
95099
95099
|
// ../../../node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
95100
95100
|
import { platform as platform7, release as release7 } from "os";
|
|
95101
|
-
import { env as
|
|
95101
|
+
import { env as env9, versions as versions7 } from "process";
|
|
95102
95102
|
var createDefaultUserAgentProvider7;
|
|
95103
95103
|
var init_defaultUserAgent7 = __esm({
|
|
95104
95104
|
"../../../node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -95121,8 +95121,8 @@ var init_defaultUserAgent7 = __esm({
|
|
|
95121
95121
|
if (serviceId) {
|
|
95122
95122
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
95123
95123
|
}
|
|
95124
|
-
if (
|
|
95125
|
-
sections.push([`exec-env/${
|
|
95124
|
+
if (env9.AWS_EXECUTION_ENV) {
|
|
95125
|
+
sections.push([`exec-env/${env9.AWS_EXECUTION_ENV}`]);
|
|
95126
95126
|
}
|
|
95127
95127
|
const appId = await config?.userAgentAppId?.();
|
|
95128
95128
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -95143,7 +95143,7 @@ var init_nodeAppIdConfigOptions7 = __esm({
|
|
|
95143
95143
|
UA_APP_ID_INI_NAME7 = "sdk_ua_app_id";
|
|
95144
95144
|
UA_APP_ID_INI_NAME_DEPRECATED7 = "sdk-ua-app-id";
|
|
95145
95145
|
NODE_APP_ID_CONFIG_OPTIONS7 = {
|
|
95146
|
-
environmentVariableSelector: (
|
|
95146
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME7],
|
|
95147
95147
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME7] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED7],
|
|
95148
95148
|
default: DEFAULT_UA_APP_ID8
|
|
95149
95149
|
};
|
|
@@ -95373,8 +95373,8 @@ var init_defaultsModeConfig7 = __esm({
|
|
|
95373
95373
|
AWS_DEFAULTS_MODE_ENV7 = "AWS_DEFAULTS_MODE";
|
|
95374
95374
|
AWS_DEFAULTS_MODE_CONFIG7 = "defaults_mode";
|
|
95375
95375
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS7 = {
|
|
95376
|
-
environmentVariableSelector: (
|
|
95377
|
-
return
|
|
95376
|
+
environmentVariableSelector: (env13) => {
|
|
95377
|
+
return env13[AWS_DEFAULTS_MODE_ENV7];
|
|
95378
95378
|
},
|
|
95379
95379
|
configFileSelector: (profile) => {
|
|
95380
95380
|
return profile[AWS_DEFAULTS_MODE_CONFIG7];
|
|
@@ -95598,7 +95598,7 @@ var init_EndpointConfigOptions8 = __esm({
|
|
|
95598
95598
|
ENV_ENDPOINT_NAME8 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
95599
95599
|
CONFIG_ENDPOINT_NAME8 = "ec2_metadata_service_endpoint";
|
|
95600
95600
|
ENDPOINT_CONFIG_OPTIONS8 = {
|
|
95601
|
-
environmentVariableSelector: (
|
|
95601
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME8],
|
|
95602
95602
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME8],
|
|
95603
95603
|
default: void 0
|
|
95604
95604
|
};
|
|
@@ -95628,7 +95628,7 @@ var init_EndpointModeConfigOptions8 = __esm({
|
|
|
95628
95628
|
ENV_ENDPOINT_MODE_NAME8 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
95629
95629
|
CONFIG_ENDPOINT_MODE_NAME8 = "ec2_metadata_service_endpoint_mode";
|
|
95630
95630
|
ENDPOINT_MODE_CONFIG_OPTIONS8 = {
|
|
95631
|
-
environmentVariableSelector: (
|
|
95631
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME8],
|
|
95632
95632
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME8],
|
|
95633
95633
|
default: EndpointMode8.IPv4
|
|
95634
95634
|
};
|
|
@@ -95750,8 +95750,8 @@ var init_fromInstanceMetadata8 = __esm({
|
|
|
95750
95750
|
let fallbackBlockedFromProfile = false;
|
|
95751
95751
|
let fallbackBlockedFromProcessEnv = false;
|
|
95752
95752
|
const configValue = await loadConfig8({
|
|
95753
|
-
environmentVariableSelector: (
|
|
95754
|
-
const envValue =
|
|
95753
|
+
environmentVariableSelector: (env13) => {
|
|
95754
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED8];
|
|
95755
95755
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
95756
95756
|
if (envValue === void 0) {
|
|
95757
95757
|
throw new CredentialsProviderError11(`${AWS_EC2_METADATA_V1_DISABLED8} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -97166,7 +97166,7 @@ var init_is_crt_available8 = __esm({
|
|
|
97166
97166
|
|
|
97167
97167
|
// ../../../node_modules/@aws-sdk/client-geo-places/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
97168
97168
|
import { platform as platform8, release as release8 } from "os";
|
|
97169
|
-
import { env as
|
|
97169
|
+
import { env as env10, versions as versions8 } from "process";
|
|
97170
97170
|
var createDefaultUserAgentProvider8;
|
|
97171
97171
|
var init_defaultUserAgent8 = __esm({
|
|
97172
97172
|
"../../../node_modules/@aws-sdk/client-geo-places/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -97189,8 +97189,8 @@ var init_defaultUserAgent8 = __esm({
|
|
|
97189
97189
|
if (serviceId) {
|
|
97190
97190
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
97191
97191
|
}
|
|
97192
|
-
if (
|
|
97193
|
-
sections.push([`exec-env/${
|
|
97192
|
+
if (env10.AWS_EXECUTION_ENV) {
|
|
97193
|
+
sections.push([`exec-env/${env10.AWS_EXECUTION_ENV}`]);
|
|
97194
97194
|
}
|
|
97195
97195
|
const appId = await config?.userAgentAppId?.();
|
|
97196
97196
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -97211,7 +97211,7 @@ var init_nodeAppIdConfigOptions8 = __esm({
|
|
|
97211
97211
|
UA_APP_ID_INI_NAME8 = "sdk_ua_app_id";
|
|
97212
97212
|
UA_APP_ID_INI_NAME_DEPRECATED8 = "sdk-ua-app-id";
|
|
97213
97213
|
NODE_APP_ID_CONFIG_OPTIONS8 = {
|
|
97214
|
-
environmentVariableSelector: (
|
|
97214
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME8],
|
|
97215
97215
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME8] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED8],
|
|
97216
97216
|
default: DEFAULT_UA_APP_ID7
|
|
97217
97217
|
};
|
|
@@ -97441,8 +97441,8 @@ var init_defaultsModeConfig8 = __esm({
|
|
|
97441
97441
|
AWS_DEFAULTS_MODE_ENV8 = "AWS_DEFAULTS_MODE";
|
|
97442
97442
|
AWS_DEFAULTS_MODE_CONFIG8 = "defaults_mode";
|
|
97443
97443
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS8 = {
|
|
97444
|
-
environmentVariableSelector: (
|
|
97445
|
-
return
|
|
97444
|
+
environmentVariableSelector: (env13) => {
|
|
97445
|
+
return env13[AWS_DEFAULTS_MODE_ENV8];
|
|
97446
97446
|
},
|
|
97447
97447
|
configFileSelector: (profile) => {
|
|
97448
97448
|
return profile[AWS_DEFAULTS_MODE_CONFIG8];
|
|
@@ -108503,15 +108503,15 @@ var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS5 = __esm({
|
|
|
108503
108503
|
NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY5 = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
108504
108504
|
NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY5 = "auth_scheme_preference";
|
|
108505
108505
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS5 = {
|
|
108506
|
-
environmentVariableSelector: (
|
|
108506
|
+
environmentVariableSelector: (env13, options) => {
|
|
108507
108507
|
if (options?.signingName) {
|
|
108508
108508
|
const bearerTokenKey = getBearerTokenEnvKey5(options.signingName);
|
|
108509
|
-
if (bearerTokenKey in
|
|
108509
|
+
if (bearerTokenKey in env13)
|
|
108510
108510
|
return ["httpBearerAuth"];
|
|
108511
108511
|
}
|
|
108512
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY5 in
|
|
108512
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY5 in env13))
|
|
108513
108513
|
return void 0;
|
|
108514
|
-
return getArrayForCommaSeparatedString5(
|
|
108514
|
+
return getArrayForCommaSeparatedString5(env13[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY5]);
|
|
108515
108515
|
},
|
|
108516
108516
|
configFileSelector: (profile) => {
|
|
108517
108517
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY5 in profile))
|
|
@@ -113232,7 +113232,7 @@ var init_NodeUseDualstackEndpointConfigOptions9 = __esm({
|
|
|
113232
113232
|
ENV_USE_DUALSTACK_ENDPOINT9 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
113233
113233
|
CONFIG_USE_DUALSTACK_ENDPOINT9 = "use_dualstack_endpoint";
|
|
113234
113234
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS9 = {
|
|
113235
|
-
environmentVariableSelector: (
|
|
113235
|
+
environmentVariableSelector: (env13) => booleanSelector4(env13, ENV_USE_DUALSTACK_ENDPOINT9, SelectorType5.ENV),
|
|
113236
113236
|
configFileSelector: (profile) => booleanSelector4(profile, CONFIG_USE_DUALSTACK_ENDPOINT9, SelectorType5.CONFIG),
|
|
113237
113237
|
default: false
|
|
113238
113238
|
};
|
|
@@ -113249,7 +113249,7 @@ var init_NodeUseFipsEndpointConfigOptions9 = __esm({
|
|
|
113249
113249
|
ENV_USE_FIPS_ENDPOINT9 = "AWS_USE_FIPS_ENDPOINT";
|
|
113250
113250
|
CONFIG_USE_FIPS_ENDPOINT9 = "use_fips_endpoint";
|
|
113251
113251
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS9 = {
|
|
113252
|
-
environmentVariableSelector: (
|
|
113252
|
+
environmentVariableSelector: (env13) => booleanSelector4(env13, ENV_USE_FIPS_ENDPOINT9, SelectorType5.ENV),
|
|
113253
113253
|
configFileSelector: (profile) => booleanSelector4(profile, CONFIG_USE_FIPS_ENDPOINT9, SelectorType5.CONFIG),
|
|
113254
113254
|
default: false
|
|
113255
113255
|
};
|
|
@@ -113293,7 +113293,7 @@ var init_config31 = __esm({
|
|
|
113293
113293
|
REGION_ENV_NAME9 = "AWS_REGION";
|
|
113294
113294
|
REGION_INI_NAME9 = "region";
|
|
113295
113295
|
NODE_REGION_CONFIG_OPTIONS9 = {
|
|
113296
|
-
environmentVariableSelector: (
|
|
113296
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME9],
|
|
113297
113297
|
configFileSelector: (profile) => profile[REGION_INI_NAME9],
|
|
113298
113298
|
default: () => {
|
|
113299
113299
|
throw new Error("Region is missing");
|
|
@@ -113700,12 +113700,12 @@ var init_getEndpointUrlConfig9 = __esm({
|
|
|
113700
113700
|
ENV_ENDPOINT_URL9 = "AWS_ENDPOINT_URL";
|
|
113701
113701
|
CONFIG_ENDPOINT_URL9 = "endpoint_url";
|
|
113702
113702
|
getEndpointUrlConfig9 = (serviceId) => ({
|
|
113703
|
-
environmentVariableSelector: (
|
|
113703
|
+
environmentVariableSelector: (env13) => {
|
|
113704
113704
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
113705
|
-
const serviceEndpointUrl =
|
|
113705
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL9, ...serviceSuffixParts].join("_")];
|
|
113706
113706
|
if (serviceEndpointUrl)
|
|
113707
113707
|
return serviceEndpointUrl;
|
|
113708
|
-
const endpointUrl =
|
|
113708
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL9];
|
|
113709
113709
|
if (endpointUrl)
|
|
113710
113710
|
return endpointUrl;
|
|
113711
113711
|
return void 0;
|
|
@@ -114428,8 +114428,8 @@ var init_configurations18 = __esm({
|
|
|
114428
114428
|
ENV_MAX_ATTEMPTS9 = "AWS_MAX_ATTEMPTS";
|
|
114429
114429
|
CONFIG_MAX_ATTEMPTS9 = "max_attempts";
|
|
114430
114430
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS9 = {
|
|
114431
|
-
environmentVariableSelector: (
|
|
114432
|
-
const value =
|
|
114431
|
+
environmentVariableSelector: (env13) => {
|
|
114432
|
+
const value = env13[ENV_MAX_ATTEMPTS9];
|
|
114433
114433
|
if (!value)
|
|
114434
114434
|
return void 0;
|
|
114435
114435
|
const maxAttempt = parseInt(value);
|
|
@@ -114470,7 +114470,7 @@ var init_configurations18 = __esm({
|
|
|
114470
114470
|
ENV_RETRY_MODE9 = "AWS_RETRY_MODE";
|
|
114471
114471
|
CONFIG_RETRY_MODE9 = "retry_mode";
|
|
114472
114472
|
NODE_RETRY_MODE_CONFIG_OPTIONS9 = {
|
|
114473
|
-
environmentVariableSelector: (
|
|
114473
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE9],
|
|
114474
114474
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE9],
|
|
114475
114475
|
default: DEFAULT_RETRY_MODE9
|
|
114476
114476
|
};
|
|
@@ -114899,7 +114899,7 @@ var init_EndpointConfigOptions9 = __esm({
|
|
|
114899
114899
|
ENV_ENDPOINT_NAME9 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
114900
114900
|
CONFIG_ENDPOINT_NAME9 = "ec2_metadata_service_endpoint";
|
|
114901
114901
|
ENDPOINT_CONFIG_OPTIONS9 = {
|
|
114902
|
-
environmentVariableSelector: (
|
|
114902
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME9],
|
|
114903
114903
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME9],
|
|
114904
114904
|
default: void 0
|
|
114905
114905
|
};
|
|
@@ -114929,7 +114929,7 @@ var init_EndpointModeConfigOptions9 = __esm({
|
|
|
114929
114929
|
ENV_ENDPOINT_MODE_NAME9 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
114930
114930
|
CONFIG_ENDPOINT_MODE_NAME9 = "ec2_metadata_service_endpoint_mode";
|
|
114931
114931
|
ENDPOINT_MODE_CONFIG_OPTIONS9 = {
|
|
114932
|
-
environmentVariableSelector: (
|
|
114932
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME9],
|
|
114933
114933
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME9],
|
|
114934
114934
|
default: EndpointMode9.IPv4
|
|
114935
114935
|
};
|
|
@@ -115051,8 +115051,8 @@ var init_fromInstanceMetadata9 = __esm({
|
|
|
115051
115051
|
let fallbackBlockedFromProfile = false;
|
|
115052
115052
|
let fallbackBlockedFromProcessEnv = false;
|
|
115053
115053
|
const configValue = await loadConfig9({
|
|
115054
|
-
environmentVariableSelector: (
|
|
115055
|
-
const envValue =
|
|
115054
|
+
environmentVariableSelector: (env13) => {
|
|
115055
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED9];
|
|
115056
115056
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
115057
115057
|
if (envValue === void 0) {
|
|
115058
115058
|
throw new CredentialsProviderError11(`${AWS_EC2_METADATA_V1_DISABLED9} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -115663,7 +115663,7 @@ var init_is_crt_available9 = __esm({
|
|
|
115663
115663
|
|
|
115664
115664
|
// ../../../node_modules/@aws-sdk/client-geo-routes/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
115665
115665
|
import { platform as platform9, release as release9 } from "os";
|
|
115666
|
-
import { env as
|
|
115666
|
+
import { env as env11, versions as versions9 } from "process";
|
|
115667
115667
|
var createDefaultUserAgentProvider9;
|
|
115668
115668
|
var init_defaultUserAgent9 = __esm({
|
|
115669
115669
|
"../../../node_modules/@aws-sdk/client-geo-routes/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -115686,8 +115686,8 @@ var init_defaultUserAgent9 = __esm({
|
|
|
115686
115686
|
if (serviceId) {
|
|
115687
115687
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
115688
115688
|
}
|
|
115689
|
-
if (
|
|
115690
|
-
sections.push([`exec-env/${
|
|
115689
|
+
if (env11.AWS_EXECUTION_ENV) {
|
|
115690
|
+
sections.push([`exec-env/${env11.AWS_EXECUTION_ENV}`]);
|
|
115691
115691
|
}
|
|
115692
115692
|
const appId = await config?.userAgentAppId?.();
|
|
115693
115693
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -115708,7 +115708,7 @@ var init_nodeAppIdConfigOptions9 = __esm({
|
|
|
115708
115708
|
UA_APP_ID_INI_NAME9 = "sdk_ua_app_id";
|
|
115709
115709
|
UA_APP_ID_INI_NAME_DEPRECATED9 = "sdk-ua-app-id";
|
|
115710
115710
|
NODE_APP_ID_CONFIG_OPTIONS9 = {
|
|
115711
|
-
environmentVariableSelector: (
|
|
115711
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME9],
|
|
115712
115712
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME9] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED9],
|
|
115713
115713
|
default: DEFAULT_UA_APP_ID9
|
|
115714
115714
|
};
|
|
@@ -115938,8 +115938,8 @@ var init_defaultsModeConfig9 = __esm({
|
|
|
115938
115938
|
AWS_DEFAULTS_MODE_ENV9 = "AWS_DEFAULTS_MODE";
|
|
115939
115939
|
AWS_DEFAULTS_MODE_CONFIG9 = "defaults_mode";
|
|
115940
115940
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS9 = {
|
|
115941
|
-
environmentVariableSelector: (
|
|
115942
|
-
return
|
|
115941
|
+
environmentVariableSelector: (env13) => {
|
|
115942
|
+
return env13[AWS_DEFAULTS_MODE_ENV9];
|
|
115943
115943
|
},
|
|
115944
115944
|
configFileSelector: (profile) => {
|
|
115945
115945
|
return profile[AWS_DEFAULTS_MODE_CONFIG9];
|
|
@@ -127552,15 +127552,15 @@ var init_NODE_AUTH_SCHEME_PREFERENCE_OPTIONS6 = __esm({
|
|
|
127552
127552
|
NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY6 = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
127553
127553
|
NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY6 = "auth_scheme_preference";
|
|
127554
127554
|
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS6 = {
|
|
127555
|
-
environmentVariableSelector: (
|
|
127555
|
+
environmentVariableSelector: (env13, options) => {
|
|
127556
127556
|
if (options?.signingName) {
|
|
127557
127557
|
const bearerTokenKey = getBearerTokenEnvKey6(options.signingName);
|
|
127558
|
-
if (bearerTokenKey in
|
|
127558
|
+
if (bearerTokenKey in env13)
|
|
127559
127559
|
return ["httpBearerAuth"];
|
|
127560
127560
|
}
|
|
127561
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY6 in
|
|
127561
|
+
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY6 in env13))
|
|
127562
127562
|
return void 0;
|
|
127563
|
-
return getArrayForCommaSeparatedString6(
|
|
127563
|
+
return getArrayForCommaSeparatedString6(env13[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY6]);
|
|
127564
127564
|
},
|
|
127565
127565
|
configFileSelector: (profile) => {
|
|
127566
127566
|
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY6 in profile))
|
|
@@ -132586,7 +132586,7 @@ var init_NodeUseDualstackEndpointConfigOptions10 = __esm({
|
|
|
132586
132586
|
ENV_USE_DUALSTACK_ENDPOINT10 = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
132587
132587
|
CONFIG_USE_DUALSTACK_ENDPOINT10 = "use_dualstack_endpoint";
|
|
132588
132588
|
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS10 = {
|
|
132589
|
-
environmentVariableSelector: (
|
|
132589
|
+
environmentVariableSelector: (env13) => booleanSelector5(env13, ENV_USE_DUALSTACK_ENDPOINT10, SelectorType6.ENV),
|
|
132590
132590
|
configFileSelector: (profile) => booleanSelector5(profile, CONFIG_USE_DUALSTACK_ENDPOINT10, SelectorType6.CONFIG),
|
|
132591
132591
|
default: false
|
|
132592
132592
|
};
|
|
@@ -132603,7 +132603,7 @@ var init_NodeUseFipsEndpointConfigOptions10 = __esm({
|
|
|
132603
132603
|
ENV_USE_FIPS_ENDPOINT10 = "AWS_USE_FIPS_ENDPOINT";
|
|
132604
132604
|
CONFIG_USE_FIPS_ENDPOINT10 = "use_fips_endpoint";
|
|
132605
132605
|
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS10 = {
|
|
132606
|
-
environmentVariableSelector: (
|
|
132606
|
+
environmentVariableSelector: (env13) => booleanSelector5(env13, ENV_USE_FIPS_ENDPOINT10, SelectorType6.ENV),
|
|
132607
132607
|
configFileSelector: (profile) => booleanSelector5(profile, CONFIG_USE_FIPS_ENDPOINT10, SelectorType6.CONFIG),
|
|
132608
132608
|
default: false
|
|
132609
132609
|
};
|
|
@@ -132647,7 +132647,7 @@ var init_config34 = __esm({
|
|
|
132647
132647
|
REGION_ENV_NAME10 = "AWS_REGION";
|
|
132648
132648
|
REGION_INI_NAME10 = "region";
|
|
132649
132649
|
NODE_REGION_CONFIG_OPTIONS10 = {
|
|
132650
|
-
environmentVariableSelector: (
|
|
132650
|
+
environmentVariableSelector: (env13) => env13[REGION_ENV_NAME10],
|
|
132651
132651
|
configFileSelector: (profile) => profile[REGION_INI_NAME10],
|
|
132652
132652
|
default: () => {
|
|
132653
132653
|
throw new Error("Region is missing");
|
|
@@ -133439,12 +133439,12 @@ var init_getEndpointUrlConfig10 = __esm({
|
|
|
133439
133439
|
ENV_ENDPOINT_URL10 = "AWS_ENDPOINT_URL";
|
|
133440
133440
|
CONFIG_ENDPOINT_URL10 = "endpoint_url";
|
|
133441
133441
|
getEndpointUrlConfig10 = (serviceId) => ({
|
|
133442
|
-
environmentVariableSelector: (
|
|
133442
|
+
environmentVariableSelector: (env13) => {
|
|
133443
133443
|
const serviceSuffixParts = serviceId.split(" ").map((w28) => w28.toUpperCase());
|
|
133444
|
-
const serviceEndpointUrl =
|
|
133444
|
+
const serviceEndpointUrl = env13[[ENV_ENDPOINT_URL10, ...serviceSuffixParts].join("_")];
|
|
133445
133445
|
if (serviceEndpointUrl)
|
|
133446
133446
|
return serviceEndpointUrl;
|
|
133447
|
-
const endpointUrl =
|
|
133447
|
+
const endpointUrl = env13[ENV_ENDPOINT_URL10];
|
|
133448
133448
|
if (endpointUrl)
|
|
133449
133449
|
return endpointUrl;
|
|
133450
133450
|
return void 0;
|
|
@@ -134167,8 +134167,8 @@ var init_configurations20 = __esm({
|
|
|
134167
134167
|
ENV_MAX_ATTEMPTS10 = "AWS_MAX_ATTEMPTS";
|
|
134168
134168
|
CONFIG_MAX_ATTEMPTS10 = "max_attempts";
|
|
134169
134169
|
NODE_MAX_ATTEMPT_CONFIG_OPTIONS10 = {
|
|
134170
|
-
environmentVariableSelector: (
|
|
134171
|
-
const value =
|
|
134170
|
+
environmentVariableSelector: (env13) => {
|
|
134171
|
+
const value = env13[ENV_MAX_ATTEMPTS10];
|
|
134172
134172
|
if (!value)
|
|
134173
134173
|
return void 0;
|
|
134174
134174
|
const maxAttempt = parseInt(value);
|
|
@@ -134209,7 +134209,7 @@ var init_configurations20 = __esm({
|
|
|
134209
134209
|
ENV_RETRY_MODE10 = "AWS_RETRY_MODE";
|
|
134210
134210
|
CONFIG_RETRY_MODE10 = "retry_mode";
|
|
134211
134211
|
NODE_RETRY_MODE_CONFIG_OPTIONS10 = {
|
|
134212
|
-
environmentVariableSelector: (
|
|
134212
|
+
environmentVariableSelector: (env13) => env13[ENV_RETRY_MODE10],
|
|
134213
134213
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE10],
|
|
134214
134214
|
default: DEFAULT_RETRY_MODE10
|
|
134215
134215
|
};
|
|
@@ -134638,7 +134638,7 @@ var init_EndpointConfigOptions10 = __esm({
|
|
|
134638
134638
|
ENV_ENDPOINT_NAME10 = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
134639
134639
|
CONFIG_ENDPOINT_NAME10 = "ec2_metadata_service_endpoint";
|
|
134640
134640
|
ENDPOINT_CONFIG_OPTIONS10 = {
|
|
134641
|
-
environmentVariableSelector: (
|
|
134641
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_NAME10],
|
|
134642
134642
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME10],
|
|
134643
134643
|
default: void 0
|
|
134644
134644
|
};
|
|
@@ -134668,7 +134668,7 @@ var init_EndpointModeConfigOptions10 = __esm({
|
|
|
134668
134668
|
ENV_ENDPOINT_MODE_NAME10 = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
|
|
134669
134669
|
CONFIG_ENDPOINT_MODE_NAME10 = "ec2_metadata_service_endpoint_mode";
|
|
134670
134670
|
ENDPOINT_MODE_CONFIG_OPTIONS10 = {
|
|
134671
|
-
environmentVariableSelector: (
|
|
134671
|
+
environmentVariableSelector: (env13) => env13[ENV_ENDPOINT_MODE_NAME10],
|
|
134672
134672
|
configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME10],
|
|
134673
134673
|
default: EndpointMode10.IPv4
|
|
134674
134674
|
};
|
|
@@ -134790,8 +134790,8 @@ var init_fromInstanceMetadata10 = __esm({
|
|
|
134790
134790
|
let fallbackBlockedFromProfile = false;
|
|
134791
134791
|
let fallbackBlockedFromProcessEnv = false;
|
|
134792
134792
|
const configValue = await loadConfig10({
|
|
134793
|
-
environmentVariableSelector: (
|
|
134794
|
-
const envValue =
|
|
134793
|
+
environmentVariableSelector: (env13) => {
|
|
134794
|
+
const envValue = env13[AWS_EC2_METADATA_V1_DISABLED10];
|
|
134795
134795
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
134796
134796
|
if (envValue === void 0) {
|
|
134797
134797
|
throw new CredentialsProviderError12(`${AWS_EC2_METADATA_V1_DISABLED10} not set in env, checking config file next.`, { logger: init.logger });
|
|
@@ -135402,7 +135402,7 @@ var init_is_crt_available10 = __esm({
|
|
|
135402
135402
|
|
|
135403
135403
|
// ../../../node_modules/@aws-sdk/client-apigatewaymanagementapi/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
135404
135404
|
import { platform as platform10, release as release10 } from "os";
|
|
135405
|
-
import { env as
|
|
135405
|
+
import { env as env12, versions as versions10 } from "process";
|
|
135406
135406
|
var createDefaultUserAgentProvider10;
|
|
135407
135407
|
var init_defaultUserAgent10 = __esm({
|
|
135408
135408
|
"../../../node_modules/@aws-sdk/client-apigatewaymanagementapi/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js"() {
|
|
@@ -135425,8 +135425,8 @@ var init_defaultUserAgent10 = __esm({
|
|
|
135425
135425
|
if (serviceId) {
|
|
135426
135426
|
sections.push([`api/${serviceId}`, clientVersion]);
|
|
135427
135427
|
}
|
|
135428
|
-
if (
|
|
135429
|
-
sections.push([`exec-env/${
|
|
135428
|
+
if (env12.AWS_EXECUTION_ENV) {
|
|
135429
|
+
sections.push([`exec-env/${env12.AWS_EXECUTION_ENV}`]);
|
|
135430
135430
|
}
|
|
135431
135431
|
const appId = await config?.userAgentAppId?.();
|
|
135432
135432
|
const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
|
|
@@ -135447,7 +135447,7 @@ var init_nodeAppIdConfigOptions10 = __esm({
|
|
|
135447
135447
|
UA_APP_ID_INI_NAME10 = "sdk_ua_app_id";
|
|
135448
135448
|
UA_APP_ID_INI_NAME_DEPRECATED10 = "sdk-ua-app-id";
|
|
135449
135449
|
NODE_APP_ID_CONFIG_OPTIONS10 = {
|
|
135450
|
-
environmentVariableSelector: (
|
|
135450
|
+
environmentVariableSelector: (env13) => env13[UA_APP_ID_ENV_NAME10],
|
|
135451
135451
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME10] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED10],
|
|
135452
135452
|
default: DEFAULT_UA_APP_ID10
|
|
135453
135453
|
};
|
|
@@ -135572,8 +135572,8 @@ var init_defaultsModeConfig10 = __esm({
|
|
|
135572
135572
|
AWS_DEFAULTS_MODE_ENV10 = "AWS_DEFAULTS_MODE";
|
|
135573
135573
|
AWS_DEFAULTS_MODE_CONFIG10 = "defaults_mode";
|
|
135574
135574
|
NODE_DEFAULTS_MODE_CONFIG_OPTIONS10 = {
|
|
135575
|
-
environmentVariableSelector: (
|
|
135576
|
-
return
|
|
135575
|
+
environmentVariableSelector: (env13) => {
|
|
135576
|
+
return env13[AWS_DEFAULTS_MODE_ENV10];
|
|
135577
135577
|
},
|
|
135578
135578
|
configFileSelector: (profile) => {
|
|
135579
135579
|
return profile[AWS_DEFAULTS_MODE_CONFIG10];
|
|
@@ -145390,14 +145390,601 @@ var tokenUtils = {
|
|
|
145390
145390
|
// ../../utils/src/logging/index.ts
|
|
145391
145391
|
init_esm_shims();
|
|
145392
145392
|
|
|
145393
|
+
// ../../utils/node_modules/chalk/source/index.js
|
|
145394
|
+
init_esm_shims();
|
|
145395
|
+
|
|
145396
|
+
// ../../utils/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
145397
|
+
init_esm_shims();
|
|
145398
|
+
var ANSI_BACKGROUND_OFFSET = 10;
|
|
145399
|
+
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
145400
|
+
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
145401
|
+
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
145402
|
+
var styles = {
|
|
145403
|
+
modifier: {
|
|
145404
|
+
reset: [0, 0],
|
|
145405
|
+
// 21 isn't widely supported and 22 does the same thing
|
|
145406
|
+
bold: [1, 22],
|
|
145407
|
+
dim: [2, 22],
|
|
145408
|
+
italic: [3, 23],
|
|
145409
|
+
underline: [4, 24],
|
|
145410
|
+
overline: [53, 55],
|
|
145411
|
+
inverse: [7, 27],
|
|
145412
|
+
hidden: [8, 28],
|
|
145413
|
+
strikethrough: [9, 29]
|
|
145414
|
+
},
|
|
145415
|
+
color: {
|
|
145416
|
+
black: [30, 39],
|
|
145417
|
+
red: [31, 39],
|
|
145418
|
+
green: [32, 39],
|
|
145419
|
+
yellow: [33, 39],
|
|
145420
|
+
blue: [34, 39],
|
|
145421
|
+
magenta: [35, 39],
|
|
145422
|
+
cyan: [36, 39],
|
|
145423
|
+
white: [37, 39],
|
|
145424
|
+
// Bright color
|
|
145425
|
+
blackBright: [90, 39],
|
|
145426
|
+
gray: [90, 39],
|
|
145427
|
+
// Alias of `blackBright`
|
|
145428
|
+
grey: [90, 39],
|
|
145429
|
+
// Alias of `blackBright`
|
|
145430
|
+
redBright: [91, 39],
|
|
145431
|
+
greenBright: [92, 39],
|
|
145432
|
+
yellowBright: [93, 39],
|
|
145433
|
+
blueBright: [94, 39],
|
|
145434
|
+
magentaBright: [95, 39],
|
|
145435
|
+
cyanBright: [96, 39],
|
|
145436
|
+
whiteBright: [97, 39]
|
|
145437
|
+
},
|
|
145438
|
+
bgColor: {
|
|
145439
|
+
bgBlack: [40, 49],
|
|
145440
|
+
bgRed: [41, 49],
|
|
145441
|
+
bgGreen: [42, 49],
|
|
145442
|
+
bgYellow: [43, 49],
|
|
145443
|
+
bgBlue: [44, 49],
|
|
145444
|
+
bgMagenta: [45, 49],
|
|
145445
|
+
bgCyan: [46, 49],
|
|
145446
|
+
bgWhite: [47, 49],
|
|
145447
|
+
// Bright color
|
|
145448
|
+
bgBlackBright: [100, 49],
|
|
145449
|
+
bgGray: [100, 49],
|
|
145450
|
+
// Alias of `bgBlackBright`
|
|
145451
|
+
bgGrey: [100, 49],
|
|
145452
|
+
// Alias of `bgBlackBright`
|
|
145453
|
+
bgRedBright: [101, 49],
|
|
145454
|
+
bgGreenBright: [102, 49],
|
|
145455
|
+
bgYellowBright: [103, 49],
|
|
145456
|
+
bgBlueBright: [104, 49],
|
|
145457
|
+
bgMagentaBright: [105, 49],
|
|
145458
|
+
bgCyanBright: [106, 49],
|
|
145459
|
+
bgWhiteBright: [107, 49]
|
|
145460
|
+
}
|
|
145461
|
+
};
|
|
145462
|
+
var modifierNames = Object.keys(styles.modifier);
|
|
145463
|
+
var foregroundColorNames = Object.keys(styles.color);
|
|
145464
|
+
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
145465
|
+
var colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
145466
|
+
function assembleStyles() {
|
|
145467
|
+
const codes = /* @__PURE__ */ new Map();
|
|
145468
|
+
for (const [groupName, group13] of Object.entries(styles)) {
|
|
145469
|
+
for (const [styleName, style] of Object.entries(group13)) {
|
|
145470
|
+
styles[styleName] = {
|
|
145471
|
+
open: `\x1B[${style[0]}m`,
|
|
145472
|
+
close: `\x1B[${style[1]}m`
|
|
145473
|
+
};
|
|
145474
|
+
group13[styleName] = styles[styleName];
|
|
145475
|
+
codes.set(style[0], style[1]);
|
|
145476
|
+
}
|
|
145477
|
+
Object.defineProperty(styles, groupName, {
|
|
145478
|
+
value: group13,
|
|
145479
|
+
enumerable: false
|
|
145480
|
+
});
|
|
145481
|
+
}
|
|
145482
|
+
Object.defineProperty(styles, "codes", {
|
|
145483
|
+
value: codes,
|
|
145484
|
+
enumerable: false
|
|
145485
|
+
});
|
|
145486
|
+
styles.color.close = "\x1B[39m";
|
|
145487
|
+
styles.bgColor.close = "\x1B[49m";
|
|
145488
|
+
styles.color.ansi = wrapAnsi16();
|
|
145489
|
+
styles.color.ansi256 = wrapAnsi256();
|
|
145490
|
+
styles.color.ansi16m = wrapAnsi16m();
|
|
145491
|
+
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
145492
|
+
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
145493
|
+
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
145494
|
+
Object.defineProperties(styles, {
|
|
145495
|
+
rgbToAnsi256: {
|
|
145496
|
+
value(red, green, blue) {
|
|
145497
|
+
if (red === green && green === blue) {
|
|
145498
|
+
if (red < 8) {
|
|
145499
|
+
return 16;
|
|
145500
|
+
}
|
|
145501
|
+
if (red > 248) {
|
|
145502
|
+
return 231;
|
|
145503
|
+
}
|
|
145504
|
+
return Math.round((red - 8) / 247 * 24) + 232;
|
|
145505
|
+
}
|
|
145506
|
+
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
145507
|
+
},
|
|
145508
|
+
enumerable: false
|
|
145509
|
+
},
|
|
145510
|
+
hexToRgb: {
|
|
145511
|
+
value(hex) {
|
|
145512
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
145513
|
+
if (!matches) {
|
|
145514
|
+
return [0, 0, 0];
|
|
145515
|
+
}
|
|
145516
|
+
let [colorString] = matches;
|
|
145517
|
+
if (colorString.length === 3) {
|
|
145518
|
+
colorString = [...colorString].map((character) => character + character).join("");
|
|
145519
|
+
}
|
|
145520
|
+
const integer = Number.parseInt(colorString, 16);
|
|
145521
|
+
return [
|
|
145522
|
+
/* eslint-disable no-bitwise */
|
|
145523
|
+
integer >> 16 & 255,
|
|
145524
|
+
integer >> 8 & 255,
|
|
145525
|
+
integer & 255
|
|
145526
|
+
/* eslint-enable no-bitwise */
|
|
145527
|
+
];
|
|
145528
|
+
},
|
|
145529
|
+
enumerable: false
|
|
145530
|
+
},
|
|
145531
|
+
hexToAnsi256: {
|
|
145532
|
+
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
145533
|
+
enumerable: false
|
|
145534
|
+
},
|
|
145535
|
+
ansi256ToAnsi: {
|
|
145536
|
+
value(code) {
|
|
145537
|
+
if (code < 8) {
|
|
145538
|
+
return 30 + code;
|
|
145539
|
+
}
|
|
145540
|
+
if (code < 16) {
|
|
145541
|
+
return 90 + (code - 8);
|
|
145542
|
+
}
|
|
145543
|
+
let red;
|
|
145544
|
+
let green;
|
|
145545
|
+
let blue;
|
|
145546
|
+
if (code >= 232) {
|
|
145547
|
+
red = ((code - 232) * 10 + 8) / 255;
|
|
145548
|
+
green = red;
|
|
145549
|
+
blue = red;
|
|
145550
|
+
} else {
|
|
145551
|
+
code -= 16;
|
|
145552
|
+
const remainder = code % 36;
|
|
145553
|
+
red = Math.floor(code / 36) / 5;
|
|
145554
|
+
green = Math.floor(remainder / 6) / 5;
|
|
145555
|
+
blue = remainder % 6 / 5;
|
|
145556
|
+
}
|
|
145557
|
+
const value = Math.max(red, green, blue) * 2;
|
|
145558
|
+
if (value === 0) {
|
|
145559
|
+
return 30;
|
|
145560
|
+
}
|
|
145561
|
+
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
145562
|
+
if (value === 2) {
|
|
145563
|
+
result += 60;
|
|
145564
|
+
}
|
|
145565
|
+
return result;
|
|
145566
|
+
},
|
|
145567
|
+
enumerable: false
|
|
145568
|
+
},
|
|
145569
|
+
rgbToAnsi: {
|
|
145570
|
+
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
145571
|
+
enumerable: false
|
|
145572
|
+
},
|
|
145573
|
+
hexToAnsi: {
|
|
145574
|
+
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
145575
|
+
enumerable: false
|
|
145576
|
+
}
|
|
145577
|
+
});
|
|
145578
|
+
return styles;
|
|
145579
|
+
}
|
|
145580
|
+
var ansiStyles = assembleStyles();
|
|
145581
|
+
var ansi_styles_default = ansiStyles;
|
|
145582
|
+
|
|
145583
|
+
// ../../utils/node_modules/chalk/source/vendor/supports-color/index.js
|
|
145584
|
+
init_esm_shims();
|
|
145585
|
+
import process2 from "process";
|
|
145586
|
+
import os from "os";
|
|
145587
|
+
import tty from "tty";
|
|
145588
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
145589
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
145590
|
+
const position = argv.indexOf(prefix + flag);
|
|
145591
|
+
const terminatorPosition = argv.indexOf("--");
|
|
145592
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
145593
|
+
}
|
|
145594
|
+
var { env: env4 } = process2;
|
|
145595
|
+
var flagForceColor;
|
|
145596
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
145597
|
+
flagForceColor = 0;
|
|
145598
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
145599
|
+
flagForceColor = 1;
|
|
145600
|
+
}
|
|
145601
|
+
function envForceColor() {
|
|
145602
|
+
if ("FORCE_COLOR" in env4) {
|
|
145603
|
+
if (env4.FORCE_COLOR === "true") {
|
|
145604
|
+
return 1;
|
|
145605
|
+
}
|
|
145606
|
+
if (env4.FORCE_COLOR === "false") {
|
|
145607
|
+
return 0;
|
|
145608
|
+
}
|
|
145609
|
+
return env4.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env4.FORCE_COLOR, 10), 3);
|
|
145610
|
+
}
|
|
145611
|
+
}
|
|
145612
|
+
function translateLevel(level) {
|
|
145613
|
+
if (level === 0) {
|
|
145614
|
+
return false;
|
|
145615
|
+
}
|
|
145616
|
+
return {
|
|
145617
|
+
level,
|
|
145618
|
+
hasBasic: true,
|
|
145619
|
+
has256: level >= 2,
|
|
145620
|
+
has16m: level >= 3
|
|
145621
|
+
};
|
|
145622
|
+
}
|
|
145623
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
145624
|
+
const noFlagForceColor = envForceColor();
|
|
145625
|
+
if (noFlagForceColor !== void 0) {
|
|
145626
|
+
flagForceColor = noFlagForceColor;
|
|
145627
|
+
}
|
|
145628
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
145629
|
+
if (forceColor === 0) {
|
|
145630
|
+
return 0;
|
|
145631
|
+
}
|
|
145632
|
+
if (sniffFlags) {
|
|
145633
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
145634
|
+
return 3;
|
|
145635
|
+
}
|
|
145636
|
+
if (hasFlag("color=256")) {
|
|
145637
|
+
return 2;
|
|
145638
|
+
}
|
|
145639
|
+
}
|
|
145640
|
+
if ("TF_BUILD" in env4 && "AGENT_NAME" in env4) {
|
|
145641
|
+
return 1;
|
|
145642
|
+
}
|
|
145643
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
145644
|
+
return 0;
|
|
145645
|
+
}
|
|
145646
|
+
const min = forceColor || 0;
|
|
145647
|
+
if (env4.TERM === "dumb") {
|
|
145648
|
+
return min;
|
|
145649
|
+
}
|
|
145650
|
+
if (process2.platform === "win32") {
|
|
145651
|
+
const osRelease = os.release().split(".");
|
|
145652
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
145653
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
145654
|
+
}
|
|
145655
|
+
return 1;
|
|
145656
|
+
}
|
|
145657
|
+
if ("CI" in env4) {
|
|
145658
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env4)) {
|
|
145659
|
+
return 3;
|
|
145660
|
+
}
|
|
145661
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign4) => sign4 in env4) || env4.CI_NAME === "codeship") {
|
|
145662
|
+
return 1;
|
|
145663
|
+
}
|
|
145664
|
+
return min;
|
|
145665
|
+
}
|
|
145666
|
+
if ("TEAMCITY_VERSION" in env4) {
|
|
145667
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env4.TEAMCITY_VERSION) ? 1 : 0;
|
|
145668
|
+
}
|
|
145669
|
+
if (env4.COLORTERM === "truecolor") {
|
|
145670
|
+
return 3;
|
|
145671
|
+
}
|
|
145672
|
+
if (env4.TERM === "xterm-kitty") {
|
|
145673
|
+
return 3;
|
|
145674
|
+
}
|
|
145675
|
+
if (env4.TERM === "xterm-ghostty") {
|
|
145676
|
+
return 3;
|
|
145677
|
+
}
|
|
145678
|
+
if (env4.TERM === "wezterm") {
|
|
145679
|
+
return 3;
|
|
145680
|
+
}
|
|
145681
|
+
if ("TERM_PROGRAM" in env4) {
|
|
145682
|
+
const version = Number.parseInt((env4.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
145683
|
+
switch (env4.TERM_PROGRAM) {
|
|
145684
|
+
case "iTerm.app": {
|
|
145685
|
+
return version >= 3 ? 3 : 2;
|
|
145686
|
+
}
|
|
145687
|
+
case "Apple_Terminal": {
|
|
145688
|
+
return 2;
|
|
145689
|
+
}
|
|
145690
|
+
}
|
|
145691
|
+
}
|
|
145692
|
+
if (/-256(color)?$/i.test(env4.TERM)) {
|
|
145693
|
+
return 2;
|
|
145694
|
+
}
|
|
145695
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env4.TERM)) {
|
|
145696
|
+
return 1;
|
|
145697
|
+
}
|
|
145698
|
+
if ("COLORTERM" in env4) {
|
|
145699
|
+
return 1;
|
|
145700
|
+
}
|
|
145701
|
+
return min;
|
|
145702
|
+
}
|
|
145703
|
+
function createSupportsColor(stream, options = {}) {
|
|
145704
|
+
const level = _supportsColor(stream, {
|
|
145705
|
+
streamIsTTY: stream && stream.isTTY,
|
|
145706
|
+
...options
|
|
145707
|
+
});
|
|
145708
|
+
return translateLevel(level);
|
|
145709
|
+
}
|
|
145710
|
+
var supportsColor = {
|
|
145711
|
+
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
145712
|
+
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
145713
|
+
};
|
|
145714
|
+
var supports_color_default = supportsColor;
|
|
145715
|
+
|
|
145716
|
+
// ../../utils/node_modules/chalk/source/utilities.js
|
|
145717
|
+
init_esm_shims();
|
|
145718
|
+
function stringReplaceAll(string, substring11, replacer) {
|
|
145719
|
+
let index = string.indexOf(substring11);
|
|
145720
|
+
if (index === -1) {
|
|
145721
|
+
return string;
|
|
145722
|
+
}
|
|
145723
|
+
const substringLength = substring11.length;
|
|
145724
|
+
let endIndex = 0;
|
|
145725
|
+
let returnValue = "";
|
|
145726
|
+
do {
|
|
145727
|
+
returnValue += string.slice(endIndex, index) + substring11 + replacer;
|
|
145728
|
+
endIndex = index + substringLength;
|
|
145729
|
+
index = string.indexOf(substring11, endIndex);
|
|
145730
|
+
} while (index !== -1);
|
|
145731
|
+
returnValue += string.slice(endIndex);
|
|
145732
|
+
return returnValue;
|
|
145733
|
+
}
|
|
145734
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
145735
|
+
let endIndex = 0;
|
|
145736
|
+
let returnValue = "";
|
|
145737
|
+
do {
|
|
145738
|
+
const gotCR = string[index - 1] === "\r";
|
|
145739
|
+
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
145740
|
+
endIndex = index + 1;
|
|
145741
|
+
index = string.indexOf("\n", endIndex);
|
|
145742
|
+
} while (index !== -1);
|
|
145743
|
+
returnValue += string.slice(endIndex);
|
|
145744
|
+
return returnValue;
|
|
145745
|
+
}
|
|
145746
|
+
|
|
145747
|
+
// ../../utils/node_modules/chalk/source/index.js
|
|
145748
|
+
var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
|
|
145749
|
+
var GENERATOR = Symbol("GENERATOR");
|
|
145750
|
+
var STYLER = Symbol("STYLER");
|
|
145751
|
+
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
145752
|
+
var levelMapping = [
|
|
145753
|
+
"ansi",
|
|
145754
|
+
"ansi",
|
|
145755
|
+
"ansi256",
|
|
145756
|
+
"ansi16m"
|
|
145757
|
+
];
|
|
145758
|
+
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
145759
|
+
var applyOptions = (object, options = {}) => {
|
|
145760
|
+
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
145761
|
+
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
145762
|
+
}
|
|
145763
|
+
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
145764
|
+
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
145765
|
+
};
|
|
145766
|
+
var chalkFactory = (options) => {
|
|
145767
|
+
const chalk2 = (...strings) => strings.join(" ");
|
|
145768
|
+
applyOptions(chalk2, options);
|
|
145769
|
+
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
145770
|
+
return chalk2;
|
|
145771
|
+
};
|
|
145772
|
+
function createChalk(options) {
|
|
145773
|
+
return chalkFactory(options);
|
|
145774
|
+
}
|
|
145775
|
+
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
145776
|
+
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
145777
|
+
styles2[styleName] = {
|
|
145778
|
+
get() {
|
|
145779
|
+
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
145780
|
+
Object.defineProperty(this, styleName, { value: builder });
|
|
145781
|
+
return builder;
|
|
145782
|
+
}
|
|
145783
|
+
};
|
|
145784
|
+
}
|
|
145785
|
+
styles2.visible = {
|
|
145786
|
+
get() {
|
|
145787
|
+
const builder = createBuilder(this, this[STYLER], true);
|
|
145788
|
+
Object.defineProperty(this, "visible", { value: builder });
|
|
145789
|
+
return builder;
|
|
145790
|
+
}
|
|
145791
|
+
};
|
|
145792
|
+
var getModelAnsi = (model, level, type, ...arguments_) => {
|
|
145793
|
+
if (model === "rgb") {
|
|
145794
|
+
if (level === "ansi16m") {
|
|
145795
|
+
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
145796
|
+
}
|
|
145797
|
+
if (level === "ansi256") {
|
|
145798
|
+
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
145799
|
+
}
|
|
145800
|
+
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
145801
|
+
}
|
|
145802
|
+
if (model === "hex") {
|
|
145803
|
+
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
145804
|
+
}
|
|
145805
|
+
return ansi_styles_default[type][model](...arguments_);
|
|
145806
|
+
};
|
|
145807
|
+
var usedModels = ["rgb", "hex", "ansi256"];
|
|
145808
|
+
for (const model of usedModels) {
|
|
145809
|
+
styles2[model] = {
|
|
145810
|
+
get() {
|
|
145811
|
+
const { level } = this;
|
|
145812
|
+
return function(...arguments_) {
|
|
145813
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
145814
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
145815
|
+
};
|
|
145816
|
+
}
|
|
145817
|
+
};
|
|
145818
|
+
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
145819
|
+
styles2[bgModel] = {
|
|
145820
|
+
get() {
|
|
145821
|
+
const { level } = this;
|
|
145822
|
+
return function(...arguments_) {
|
|
145823
|
+
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
145824
|
+
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
145825
|
+
};
|
|
145826
|
+
}
|
|
145827
|
+
};
|
|
145828
|
+
}
|
|
145829
|
+
var proto = Object.defineProperties(() => {
|
|
145830
|
+
}, {
|
|
145831
|
+
...styles2,
|
|
145832
|
+
level: {
|
|
145833
|
+
enumerable: true,
|
|
145834
|
+
get() {
|
|
145835
|
+
return this[GENERATOR].level;
|
|
145836
|
+
},
|
|
145837
|
+
set(level) {
|
|
145838
|
+
this[GENERATOR].level = level;
|
|
145839
|
+
}
|
|
145840
|
+
}
|
|
145841
|
+
});
|
|
145842
|
+
var createStyler = (open, close, parent) => {
|
|
145843
|
+
let openAll;
|
|
145844
|
+
let closeAll;
|
|
145845
|
+
if (parent === void 0) {
|
|
145846
|
+
openAll = open;
|
|
145847
|
+
closeAll = close;
|
|
145848
|
+
} else {
|
|
145849
|
+
openAll = parent.openAll + open;
|
|
145850
|
+
closeAll = close + parent.closeAll;
|
|
145851
|
+
}
|
|
145852
|
+
return {
|
|
145853
|
+
open,
|
|
145854
|
+
close,
|
|
145855
|
+
openAll,
|
|
145856
|
+
closeAll,
|
|
145857
|
+
parent
|
|
145858
|
+
};
|
|
145859
|
+
};
|
|
145860
|
+
var createBuilder = (self2, _styler, _isEmpty) => {
|
|
145861
|
+
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
145862
|
+
Object.setPrototypeOf(builder, proto);
|
|
145863
|
+
builder[GENERATOR] = self2;
|
|
145864
|
+
builder[STYLER] = _styler;
|
|
145865
|
+
builder[IS_EMPTY] = _isEmpty;
|
|
145866
|
+
return builder;
|
|
145867
|
+
};
|
|
145868
|
+
var applyStyle = (self2, string) => {
|
|
145869
|
+
if (self2.level <= 0 || !string) {
|
|
145870
|
+
return self2[IS_EMPTY] ? "" : string;
|
|
145871
|
+
}
|
|
145872
|
+
let styler = self2[STYLER];
|
|
145873
|
+
if (styler === void 0) {
|
|
145874
|
+
return string;
|
|
145875
|
+
}
|
|
145876
|
+
const { openAll, closeAll } = styler;
|
|
145877
|
+
if (string.includes("\x1B")) {
|
|
145878
|
+
while (styler !== void 0) {
|
|
145879
|
+
string = stringReplaceAll(string, styler.close, styler.open);
|
|
145880
|
+
styler = styler.parent;
|
|
145881
|
+
}
|
|
145882
|
+
}
|
|
145883
|
+
const lfIndex = string.indexOf("\n");
|
|
145884
|
+
if (lfIndex !== -1) {
|
|
145885
|
+
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
145886
|
+
}
|
|
145887
|
+
return openAll + string + closeAll;
|
|
145888
|
+
};
|
|
145889
|
+
Object.defineProperties(createChalk.prototype, styles2);
|
|
145890
|
+
var chalk = createChalk();
|
|
145891
|
+
var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
145892
|
+
var source_default = chalk;
|
|
145893
|
+
|
|
145894
|
+
// ../../utils/src/logging/index.ts
|
|
145895
|
+
import { EOL } from "os";
|
|
145896
|
+
|
|
145393
145897
|
// ../../utils/src/logging/types.ts
|
|
145394
145898
|
init_esm_shims();
|
|
145899
|
+
var logLevels = {
|
|
145900
|
+
fatal: -1,
|
|
145901
|
+
error: 0,
|
|
145902
|
+
warn: 1,
|
|
145903
|
+
info: 2,
|
|
145904
|
+
debug: 3
|
|
145905
|
+
};
|
|
145395
145906
|
|
|
145396
145907
|
// ../../utils/src/logging/error-to-string.ts
|
|
145397
145908
|
init_esm_shims();
|
|
145909
|
+
var errorToString = (error) => {
|
|
145910
|
+
if (error === null) return "Null error";
|
|
145911
|
+
if (error === void 0) return "Undefined error";
|
|
145912
|
+
if (error instanceof Error) {
|
|
145913
|
+
return [
|
|
145914
|
+
`Name: ${error.name}`,
|
|
145915
|
+
`Message: ${error.message}`,
|
|
145916
|
+
`Stack: ${error.stack || "No stack trace available"}`,
|
|
145917
|
+
// Handle additional properties that might exist on custom errors
|
|
145918
|
+
...Object.entries(error).filter(([key]) => !["name", "message", "stack"].includes(key)).map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
|
|
145919
|
+
].join("\n");
|
|
145920
|
+
}
|
|
145921
|
+
if (typeof error === "string") return error;
|
|
145922
|
+
if (typeof error === "object") {
|
|
145923
|
+
try {
|
|
145924
|
+
return JSON.stringify(error, null, 2);
|
|
145925
|
+
} catch {
|
|
145926
|
+
return `[Object that cannot be stringified: ${Object.prototype.toString.call(error)}]`;
|
|
145927
|
+
}
|
|
145928
|
+
}
|
|
145929
|
+
return String(error);
|
|
145930
|
+
};
|
|
145398
145931
|
|
|
145399
145932
|
// ../../utils/src/logging/index.ts
|
|
145400
|
-
var
|
|
145933
|
+
var currentLogLevel = logLevels[env3("LOG_LEVEL")?.toLowerCase()] ?? logLevels.info;
|
|
145934
|
+
var module = "default";
|
|
145935
|
+
var requestId = "";
|
|
145936
|
+
var logger3 = {
|
|
145937
|
+
fatal: (message, meta) => {
|
|
145938
|
+
if (currentLogLevel >= logLevels.fatal) {
|
|
145939
|
+
console.error(
|
|
145940
|
+
`[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
|
|
145941
|
+
`${source_default.bgRed.white(" fatal ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
|
|
145942
|
+
errorToString(message),
|
|
145943
|
+
meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
|
|
145944
|
+
);
|
|
145945
|
+
}
|
|
145946
|
+
},
|
|
145947
|
+
error: (message, meta) => {
|
|
145948
|
+
if (currentLogLevel >= logLevels.error) {
|
|
145949
|
+
console.error(
|
|
145950
|
+
`[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
|
|
145951
|
+
`${source_default.bgRed.white(" error ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
|
|
145952
|
+
errorToString(message),
|
|
145953
|
+
meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
|
|
145954
|
+
);
|
|
145955
|
+
}
|
|
145956
|
+
},
|
|
145957
|
+
warn: (message, meta) => {
|
|
145958
|
+
if (currentLogLevel >= logLevels.warn) {
|
|
145959
|
+
console.warn(
|
|
145960
|
+
`[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
|
|
145961
|
+
`${source_default.bgYellow.black(" warn ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
|
|
145962
|
+
errorToString(message),
|
|
145963
|
+
meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
|
|
145964
|
+
);
|
|
145965
|
+
}
|
|
145966
|
+
},
|
|
145967
|
+
info: (message, meta) => {
|
|
145968
|
+
if (currentLogLevel >= logLevels.info) {
|
|
145969
|
+
console.info(
|
|
145970
|
+
`[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
|
|
145971
|
+
`${source_default.bgBlue.white(" info ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
|
|
145972
|
+
message,
|
|
145973
|
+
meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
|
|
145974
|
+
);
|
|
145975
|
+
}
|
|
145976
|
+
},
|
|
145977
|
+
debug: (message, meta) => {
|
|
145978
|
+
if (currentLogLevel >= logLevels.debug) {
|
|
145979
|
+
console.debug(
|
|
145980
|
+
`[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
|
|
145981
|
+
`${source_default.bgWhite.black(" debug ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
|
|
145982
|
+
message,
|
|
145983
|
+
meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
|
|
145984
|
+
);
|
|
145985
|
+
}
|
|
145986
|
+
}
|
|
145987
|
+
};
|
|
145401
145988
|
|
|
145402
145989
|
// src/services/event-broker.ts
|
|
145403
145990
|
function isSnsTopicArn(target) {
|
|
@@ -145625,7 +146212,7 @@ var stringUnionSelector = (obj, key, union, type) => {
|
|
|
145625
146212
|
var ENV_REQUEST_CHECKSUM_CALCULATION = "AWS_REQUEST_CHECKSUM_CALCULATION";
|
|
145626
146213
|
var CONFIG_REQUEST_CHECKSUM_CALCULATION = "request_checksum_calculation";
|
|
145627
146214
|
var NODE_REQUEST_CHECKSUM_CALCULATION_CONFIG_OPTIONS = {
|
|
145628
|
-
environmentVariableSelector: (
|
|
146215
|
+
environmentVariableSelector: (env13) => stringUnionSelector(env13, ENV_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, SelectorType2.ENV),
|
|
145629
146216
|
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_REQUEST_CHECKSUM_CALCULATION, RequestChecksumCalculation, SelectorType2.CONFIG),
|
|
145630
146217
|
default: DEFAULT_REQUEST_CHECKSUM_CALCULATION
|
|
145631
146218
|
};
|
|
@@ -145635,7 +146222,7 @@ init_esm_shims();
|
|
|
145635
146222
|
var ENV_RESPONSE_CHECKSUM_VALIDATION = "AWS_RESPONSE_CHECKSUM_VALIDATION";
|
|
145636
146223
|
var CONFIG_RESPONSE_CHECKSUM_VALIDATION = "response_checksum_validation";
|
|
145637
146224
|
var NODE_RESPONSE_CHECKSUM_VALIDATION_CONFIG_OPTIONS = {
|
|
145638
|
-
environmentVariableSelector: (
|
|
146225
|
+
environmentVariableSelector: (env13) => stringUnionSelector(env13, ENV_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType2.ENV),
|
|
145639
146226
|
configFileSelector: (profile) => stringUnionSelector(profile, CONFIG_RESPONSE_CHECKSUM_VALIDATION, ResponseChecksumValidation, SelectorType2.CONFIG),
|
|
145640
146227
|
default: DEFAULT_RESPONSE_CHECKSUM_VALIDATION
|
|
145641
146228
|
};
|
|
@@ -147694,7 +148281,7 @@ var SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase();
|
|
|
147694
148281
|
var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH";
|
|
147695
148282
|
var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME = "s3_disable_express_session_auth";
|
|
147696
148283
|
var NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS = {
|
|
147697
|
-
environmentVariableSelector: (
|
|
148284
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_ENV_NAME, SelectorType.ENV),
|
|
147698
148285
|
configFileSelector: (profile) => booleanSelector(profile, NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_INI_NAME, SelectorType.CONFIG),
|
|
147699
148286
|
default: false
|
|
147700
148287
|
};
|
|
@@ -149712,7 +150299,7 @@ init_dist_es31();
|
|
|
149712
150299
|
var NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
|
|
149713
150300
|
var NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
|
|
149714
150301
|
var NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
|
|
149715
|
-
environmentVariableSelector: (
|
|
150302
|
+
environmentVariableSelector: (env13) => booleanSelector(env13, NODE_USE_ARN_REGION_ENV_NAME, SelectorType.ENV),
|
|
149716
150303
|
configFileSelector: (profile) => booleanSelector(profile, NODE_USE_ARN_REGION_INI_NAME, SelectorType.CONFIG),
|
|
149717
150304
|
default: false
|
|
149718
150305
|
};
|