@granite-js/pulumi-aws 0.1.19 → 0.1.21
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/CHANGELOG.md +8 -0
- package/dist/chunk-5W7B34BN.js +3307 -0
- package/dist/chunk-64IS37V6.js +17 -0
- package/dist/chunk-AEOST5WF.js +63 -0
- package/dist/chunk-B7OAPHPY.js +46 -0
- package/dist/chunk-FO7L563E.js +13695 -0
- package/dist/chunk-FRWSD3YQ.js +1722 -0
- package/dist/chunk-IEZY5C3G.js +120 -0
- package/dist/chunk-ITI6QA2Q.js +12 -0
- package/dist/chunk-IUKLHJNE.js +49 -0
- package/dist/chunk-JBVMOFGH.js +152 -0
- package/dist/chunk-JSBRDJBE.js +30 -0
- package/dist/chunk-KGNTV362.js +209 -0
- package/dist/chunk-KRJS4RAS.js +1732 -0
- package/dist/chunk-M5GUUX64.js +63 -0
- package/dist/chunk-QAE2S7MG.js +3351 -0
- package/dist/chunk-SX6SVQKS.js +67 -0
- package/dist/chunk-TJ744C2T.js +198 -0
- package/dist/chunk-UNXXS5FM.js +120 -0
- package/dist/chunk-UT2RMOJS.js +2447 -0
- package/dist/chunk-VOTRVWIB.js +1965 -0
- package/dist/chunk-W3VXP3A3.js +119 -0
- package/dist/chunk-WCHHWTND.js +113 -0
- package/dist/chunk-X6XO7USX.js +110 -0
- package/dist/chunk-XLUI7RQ4.js +115 -0
- package/dist/dist-es-2M7RLZ5O.js +200 -0
- package/dist/dist-es-ADTONJUN-RVFWNZHO.js +67 -0
- package/dist/dist-es-CDFIYJVE.js +163 -0
- package/dist/dist-es-GHYMLBON.js +379 -0
- package/dist/dist-es-HJVOMDYC-PIAMWMAL.js +87 -0
- package/dist/dist-es-IDBDK36G-Y6TQMRO5.js +299 -0
- package/dist/dist-es-OCQVKISC-TNAJ62WG.js +161 -0
- package/dist/dist-es-OZGLUDWT.js +305 -0
- package/dist/dist-es-PRWCVZGQ-HTTVI42T.js +21 -0
- package/dist/dist-es-S75EKWRJ.js +88 -0
- package/dist/dist-es-SUPEA6VE-3B5JSW5C.js +368 -0
- package/dist/dist-es-WQHDOVD7.js +21 -0
- package/dist/dist-es-XQME5F6W.js +67 -0
- package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +196 -0
- package/dist/lambda/auto-cache-removal.d.cts +17 -0
- package/dist/lambda/auto-cache-removal.d.ts +17 -0
- package/dist/lambda/auto-cache-removal.js +5313 -0
- package/dist/lambda/origin-request.d.cts +14 -0
- package/dist/lambda/origin-request.d.ts +14 -0
- package/dist/lambda/origin-request.js +113 -0
- package/dist/lambda/origin-response.d.cts +6 -0
- package/dist/lambda/origin-response.d.ts +6 -0
- package/dist/lambda/origin-response.js +52 -0
- package/dist/loadSso-CZSSLFH6-SA5HOQAX.js +645 -0
- package/dist/loadSso-T7GJVVO2.js +655 -0
- package/dist/sso-oidc-55SJ27II.js +827 -0
- package/dist/sso-oidc-PKO5GYK5-LC65L46O.js +820 -0
- package/dist/sts-OPF4H3GL.js +1162 -0
- package/dist/sts-P7Q3MYTS-BKGWHQE4.js +1152 -0
- package/lambda/auto-cache-removal.d.ts +1 -0
- package/lambda/origin-request.d.ts +1 -0
- package/lambda/origin-response.d.ts +1 -0
- package/package.json +37 -10
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/ProviderError.js
|
|
2
|
+
var ProviderError = class _ProviderError extends Error {
|
|
3
|
+
constructor(message, options = true) {
|
|
4
|
+
let logger;
|
|
5
|
+
let tryNextLink = true;
|
|
6
|
+
if (typeof options === "boolean") {
|
|
7
|
+
logger = void 0;
|
|
8
|
+
tryNextLink = options;
|
|
9
|
+
} else if (options != null && typeof options === "object") {
|
|
10
|
+
logger = options.logger;
|
|
11
|
+
tryNextLink = options.tryNextLink ?? true;
|
|
12
|
+
}
|
|
13
|
+
super(message);
|
|
14
|
+
this.name = "ProviderError";
|
|
15
|
+
this.tryNextLink = tryNextLink;
|
|
16
|
+
Object.setPrototypeOf(this, _ProviderError.prototype);
|
|
17
|
+
logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
|
|
18
|
+
}
|
|
19
|
+
static from(error, options = true) {
|
|
20
|
+
return Object.assign(new this(error.message, options), error);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
|
|
25
|
+
var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
|
|
26
|
+
constructor(message, options = true) {
|
|
27
|
+
super(message, options);
|
|
28
|
+
this.name = "CredentialsProviderError";
|
|
29
|
+
Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js
|
|
34
|
+
var TokenProviderError = class _TokenProviderError extends ProviderError {
|
|
35
|
+
constructor(message, options = true) {
|
|
36
|
+
super(message, options);
|
|
37
|
+
this.name = "TokenProviderError";
|
|
38
|
+
Object.setPrototypeOf(this, _TokenProviderError.prototype);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/chain.js
|
|
43
|
+
var chain = (...providers) => async () => {
|
|
44
|
+
if (providers.length === 0) {
|
|
45
|
+
throw new ProviderError("No providers in chain");
|
|
46
|
+
}
|
|
47
|
+
let lastProviderError;
|
|
48
|
+
for (const provider of providers) {
|
|
49
|
+
try {
|
|
50
|
+
const credentials = await provider();
|
|
51
|
+
return credentials;
|
|
52
|
+
} catch (err) {
|
|
53
|
+
lastProviderError = err;
|
|
54
|
+
if (err?.tryNextLink) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
throw err;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
throw lastProviderError;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/fromStatic.js
|
|
64
|
+
var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
|
|
65
|
+
|
|
66
|
+
// ../../.yarn/cache/@smithy-property-provider-npm-4.0.3-45ca722f21-e1e04ce272.zip/node_modules/@smithy/property-provider/dist-es/memoize.js
|
|
67
|
+
var memoize = (provider, isExpired, requiresRefresh) => {
|
|
68
|
+
let resolved;
|
|
69
|
+
let pending;
|
|
70
|
+
let hasResult;
|
|
71
|
+
let isConstant = false;
|
|
72
|
+
const coalesceProvider = async () => {
|
|
73
|
+
if (!pending) {
|
|
74
|
+
pending = provider();
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
resolved = await pending;
|
|
78
|
+
hasResult = true;
|
|
79
|
+
isConstant = false;
|
|
80
|
+
} finally {
|
|
81
|
+
pending = void 0;
|
|
82
|
+
}
|
|
83
|
+
return resolved;
|
|
84
|
+
};
|
|
85
|
+
if (isExpired === void 0) {
|
|
86
|
+
return async (options) => {
|
|
87
|
+
if (!hasResult || options?.forceRefresh) {
|
|
88
|
+
resolved = await coalesceProvider();
|
|
89
|
+
}
|
|
90
|
+
return resolved;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return async (options) => {
|
|
94
|
+
if (!hasResult || options?.forceRefresh) {
|
|
95
|
+
resolved = await coalesceProvider();
|
|
96
|
+
}
|
|
97
|
+
if (isConstant) {
|
|
98
|
+
return resolved;
|
|
99
|
+
}
|
|
100
|
+
if (requiresRefresh && !requiresRefresh(resolved)) {
|
|
101
|
+
isConstant = true;
|
|
102
|
+
return resolved;
|
|
103
|
+
}
|
|
104
|
+
if (isExpired(resolved)) {
|
|
105
|
+
await coalesceProvider();
|
|
106
|
+
return resolved;
|
|
107
|
+
}
|
|
108
|
+
return resolved;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
ProviderError,
|
|
114
|
+
CredentialsProviderError,
|
|
115
|
+
TokenProviderError,
|
|
116
|
+
chain,
|
|
117
|
+
fromStatic,
|
|
118
|
+
memoize
|
|
119
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getProfileName,
|
|
3
|
+
loadSharedConfigFiles
|
|
4
|
+
} from "./chunk-KGNTV362.js";
|
|
5
|
+
import {
|
|
6
|
+
CredentialsProviderError,
|
|
7
|
+
chain,
|
|
8
|
+
fromStatic,
|
|
9
|
+
memoize
|
|
10
|
+
} from "./chunk-W3VXP3A3.js";
|
|
11
|
+
|
|
12
|
+
// ../../.yarn/cache/@smithy-node-config-provider-npm-4.1.2-85a40004c6-7b0ebec360.zip/node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
13
|
+
function getSelectorName(functionString) {
|
|
14
|
+
try {
|
|
15
|
+
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
16
|
+
constants.delete("CONFIG");
|
|
17
|
+
constants.delete("CONFIG_PREFIX_SEPARATOR");
|
|
18
|
+
constants.delete("ENV");
|
|
19
|
+
return [...constants].join(", ");
|
|
20
|
+
} catch (e) {
|
|
21
|
+
return functionString;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// ../../.yarn/cache/@smithy-node-config-provider-npm-4.1.2-85a40004c6-7b0ebec360.zip/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
|
|
26
|
+
var fromEnv = (envVarSelector, options) => async () => {
|
|
27
|
+
try {
|
|
28
|
+
const config = envVarSelector(process.env, options);
|
|
29
|
+
if (config === void 0) {
|
|
30
|
+
throw new Error();
|
|
31
|
+
}
|
|
32
|
+
return config;
|
|
33
|
+
} catch (e) {
|
|
34
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
// ../../.yarn/cache/@smithy-node-config-provider-npm-4.1.2-85a40004c6-7b0ebec360.zip/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
39
|
+
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
40
|
+
const profile = getProfileName(init);
|
|
41
|
+
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
42
|
+
const profileFromCredentials = credentialsFile[profile] || {};
|
|
43
|
+
const profileFromConfig = configFile[profile] || {};
|
|
44
|
+
const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
|
|
45
|
+
try {
|
|
46
|
+
const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
|
|
47
|
+
const configValue = configSelector(mergedProfile, cfgFile);
|
|
48
|
+
if (configValue === void 0) {
|
|
49
|
+
throw new Error();
|
|
50
|
+
}
|
|
51
|
+
return configValue;
|
|
52
|
+
} catch (e) {
|
|
53
|
+
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// ../../.yarn/cache/@smithy-node-config-provider-npm-4.1.2-85a40004c6-7b0ebec360.zip/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
58
|
+
var isFunction = (func) => typeof func === "function";
|
|
59
|
+
var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
|
|
60
|
+
|
|
61
|
+
// ../../.yarn/cache/@smithy-node-config-provider-npm-4.1.2-85a40004c6-7b0ebec360.zip/node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
62
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
63
|
+
const { signingName, logger } = configuration;
|
|
64
|
+
const envOptions = { signingName, logger };
|
|
65
|
+
return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// ../../.yarn/cache/@smithy-querystring-parser-npm-4.0.3-a7cc77c78c-b45819fda7.zip/node_modules/@smithy/querystring-parser/dist-es/index.js
|
|
69
|
+
function parseQueryString(querystring) {
|
|
70
|
+
const query = {};
|
|
71
|
+
querystring = querystring.replace(/^\?/, "");
|
|
72
|
+
if (querystring) {
|
|
73
|
+
for (const pair of querystring.split("&")) {
|
|
74
|
+
let [key, value = null] = pair.split("=");
|
|
75
|
+
key = decodeURIComponent(key);
|
|
76
|
+
if (value) {
|
|
77
|
+
value = decodeURIComponent(value);
|
|
78
|
+
}
|
|
79
|
+
if (!(key in query)) {
|
|
80
|
+
query[key] = value;
|
|
81
|
+
} else if (Array.isArray(query[key])) {
|
|
82
|
+
query[key].push(value);
|
|
83
|
+
} else {
|
|
84
|
+
query[key] = [query[key], value];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return query;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ../../.yarn/cache/@smithy-url-parser-npm-4.0.3-7518e67462-e515d3e1f6.zip/node_modules/@smithy/url-parser/dist-es/index.js
|
|
92
|
+
var parseUrl = (url) => {
|
|
93
|
+
if (typeof url === "string") {
|
|
94
|
+
return parseUrl(new URL(url));
|
|
95
|
+
}
|
|
96
|
+
const { hostname, pathname, port, protocol, search } = url;
|
|
97
|
+
let query;
|
|
98
|
+
if (search) {
|
|
99
|
+
query = parseQueryString(search);
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
hostname,
|
|
103
|
+
port: port ? parseInt(port) : void 0,
|
|
104
|
+
protocol,
|
|
105
|
+
path: pathname,
|
|
106
|
+
query
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
loadConfig,
|
|
112
|
+
parseUrl
|
|
113
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getProfileName,
|
|
3
|
+
loadSharedConfigFiles
|
|
4
|
+
} from "./chunk-TJ744C2T.js";
|
|
5
|
+
import {
|
|
6
|
+
CredentialsProviderError,
|
|
7
|
+
chain,
|
|
8
|
+
fromStatic,
|
|
9
|
+
init_esm_shims,
|
|
10
|
+
memoize
|
|
11
|
+
} from "./chunk-JBVMOFGH.js";
|
|
12
|
+
|
|
13
|
+
// ../deployment-manager/dist/chunk-JVNGEJAQ.js
|
|
14
|
+
init_esm_shims();
|
|
15
|
+
init_esm_shims();
|
|
16
|
+
init_esm_shims();
|
|
17
|
+
function getSelectorName(functionString) {
|
|
18
|
+
try {
|
|
19
|
+
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
20
|
+
constants.delete("CONFIG");
|
|
21
|
+
constants.delete("CONFIG_PREFIX_SEPARATOR");
|
|
22
|
+
constants.delete("ENV");
|
|
23
|
+
return [...constants].join(", ");
|
|
24
|
+
} catch (e) {
|
|
25
|
+
return functionString;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
var fromEnv = (envVarSelector, options) => async () => {
|
|
29
|
+
try {
|
|
30
|
+
const config = envVarSelector(process.env, options);
|
|
31
|
+
if (config === void 0) {
|
|
32
|
+
throw new Error();
|
|
33
|
+
}
|
|
34
|
+
return config;
|
|
35
|
+
} catch (e) {
|
|
36
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
init_esm_shims();
|
|
40
|
+
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
41
|
+
const profile = getProfileName(init);
|
|
42
|
+
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
43
|
+
const profileFromCredentials = credentialsFile[profile] || {};
|
|
44
|
+
const profileFromConfig = configFile[profile] || {};
|
|
45
|
+
const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
|
|
46
|
+
try {
|
|
47
|
+
const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
|
|
48
|
+
const configValue = configSelector(mergedProfile, cfgFile);
|
|
49
|
+
if (configValue === void 0) {
|
|
50
|
+
throw new Error();
|
|
51
|
+
}
|
|
52
|
+
return configValue;
|
|
53
|
+
} catch (e) {
|
|
54
|
+
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
init_esm_shims();
|
|
58
|
+
var isFunction = (func) => typeof func === "function";
|
|
59
|
+
var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
|
|
60
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
61
|
+
const { signingName, logger } = configuration;
|
|
62
|
+
const envOptions = { signingName, logger };
|
|
63
|
+
return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
|
|
64
|
+
};
|
|
65
|
+
init_esm_shims();
|
|
66
|
+
init_esm_shims();
|
|
67
|
+
init_esm_shims();
|
|
68
|
+
function parseQueryString(querystring) {
|
|
69
|
+
const query = {};
|
|
70
|
+
querystring = querystring.replace(/^\?/, "");
|
|
71
|
+
if (querystring) {
|
|
72
|
+
for (const pair of querystring.split("&")) {
|
|
73
|
+
let [key, value = null] = pair.split("=");
|
|
74
|
+
key = decodeURIComponent(key);
|
|
75
|
+
if (value) {
|
|
76
|
+
value = decodeURIComponent(value);
|
|
77
|
+
}
|
|
78
|
+
if (!(key in query)) {
|
|
79
|
+
query[key] = value;
|
|
80
|
+
} else if (Array.isArray(query[key])) {
|
|
81
|
+
query[key].push(value);
|
|
82
|
+
} else {
|
|
83
|
+
query[key] = [query[key], value];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return query;
|
|
88
|
+
}
|
|
89
|
+
var parseUrl = (url) => {
|
|
90
|
+
if (typeof url === "string") {
|
|
91
|
+
return parseUrl(new URL(url));
|
|
92
|
+
}
|
|
93
|
+
const { hostname, pathname, port, protocol, search } = url;
|
|
94
|
+
let query;
|
|
95
|
+
if (search) {
|
|
96
|
+
query = parseQueryString(search);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
hostname,
|
|
100
|
+
port: port ? parseInt(port) : void 0,
|
|
101
|
+
protocol,
|
|
102
|
+
path: pathname,
|
|
103
|
+
query
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export {
|
|
108
|
+
loadConfig,
|
|
109
|
+
parseUrl
|
|
110
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_esm_shims
|
|
3
|
+
} from "./chunk-JBVMOFGH.js";
|
|
4
|
+
|
|
5
|
+
// ../deployment-manager/dist/chunk-MBBVBARO.js
|
|
6
|
+
init_esm_shims();
|
|
7
|
+
var SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
8
|
+
init_esm_shims();
|
|
9
|
+
init_esm_shims();
|
|
10
|
+
init_esm_shims();
|
|
11
|
+
init_esm_shims();
|
|
12
|
+
var HttpAuthLocation;
|
|
13
|
+
(function(HttpAuthLocation2) {
|
|
14
|
+
HttpAuthLocation2["HEADER"] = "header";
|
|
15
|
+
HttpAuthLocation2["QUERY"] = "query";
|
|
16
|
+
})(HttpAuthLocation || (HttpAuthLocation = {}));
|
|
17
|
+
init_esm_shims();
|
|
18
|
+
var HttpApiKeyAuthLocation;
|
|
19
|
+
(function(HttpApiKeyAuthLocation2) {
|
|
20
|
+
HttpApiKeyAuthLocation2["HEADER"] = "header";
|
|
21
|
+
HttpApiKeyAuthLocation2["QUERY"] = "query";
|
|
22
|
+
})(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {}));
|
|
23
|
+
init_esm_shims();
|
|
24
|
+
init_esm_shims();
|
|
25
|
+
init_esm_shims();
|
|
26
|
+
init_esm_shims();
|
|
27
|
+
init_esm_shims();
|
|
28
|
+
init_esm_shims();
|
|
29
|
+
init_esm_shims();
|
|
30
|
+
init_esm_shims();
|
|
31
|
+
init_esm_shims();
|
|
32
|
+
init_esm_shims();
|
|
33
|
+
init_esm_shims();
|
|
34
|
+
init_esm_shims();
|
|
35
|
+
init_esm_shims();
|
|
36
|
+
init_esm_shims();
|
|
37
|
+
init_esm_shims();
|
|
38
|
+
var EndpointURLScheme;
|
|
39
|
+
(function(EndpointURLScheme2) {
|
|
40
|
+
EndpointURLScheme2["HTTP"] = "http";
|
|
41
|
+
EndpointURLScheme2["HTTPS"] = "https";
|
|
42
|
+
})(EndpointURLScheme || (EndpointURLScheme = {}));
|
|
43
|
+
init_esm_shims();
|
|
44
|
+
init_esm_shims();
|
|
45
|
+
init_esm_shims();
|
|
46
|
+
init_esm_shims();
|
|
47
|
+
init_esm_shims();
|
|
48
|
+
init_esm_shims();
|
|
49
|
+
init_esm_shims();
|
|
50
|
+
init_esm_shims();
|
|
51
|
+
init_esm_shims();
|
|
52
|
+
init_esm_shims();
|
|
53
|
+
var AlgorithmId;
|
|
54
|
+
(function(AlgorithmId2) {
|
|
55
|
+
AlgorithmId2["MD5"] = "md5";
|
|
56
|
+
AlgorithmId2["CRC32"] = "crc32";
|
|
57
|
+
AlgorithmId2["CRC32C"] = "crc32c";
|
|
58
|
+
AlgorithmId2["SHA1"] = "sha1";
|
|
59
|
+
AlgorithmId2["SHA256"] = "sha256";
|
|
60
|
+
})(AlgorithmId || (AlgorithmId = {}));
|
|
61
|
+
init_esm_shims();
|
|
62
|
+
init_esm_shims();
|
|
63
|
+
init_esm_shims();
|
|
64
|
+
var FieldPosition;
|
|
65
|
+
(function(FieldPosition2) {
|
|
66
|
+
FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
|
|
67
|
+
FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
|
|
68
|
+
})(FieldPosition || (FieldPosition = {}));
|
|
69
|
+
init_esm_shims();
|
|
70
|
+
init_esm_shims();
|
|
71
|
+
init_esm_shims();
|
|
72
|
+
init_esm_shims();
|
|
73
|
+
init_esm_shims();
|
|
74
|
+
init_esm_shims();
|
|
75
|
+
init_esm_shims();
|
|
76
|
+
init_esm_shims();
|
|
77
|
+
init_esm_shims();
|
|
78
|
+
var IniSectionType;
|
|
79
|
+
(function(IniSectionType2) {
|
|
80
|
+
IniSectionType2["PROFILE"] = "profile";
|
|
81
|
+
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
82
|
+
IniSectionType2["SERVICES"] = "services";
|
|
83
|
+
})(IniSectionType || (IniSectionType = {}));
|
|
84
|
+
init_esm_shims();
|
|
85
|
+
init_esm_shims();
|
|
86
|
+
init_esm_shims();
|
|
87
|
+
init_esm_shims();
|
|
88
|
+
init_esm_shims();
|
|
89
|
+
init_esm_shims();
|
|
90
|
+
init_esm_shims();
|
|
91
|
+
init_esm_shims();
|
|
92
|
+
init_esm_shims();
|
|
93
|
+
init_esm_shims();
|
|
94
|
+
init_esm_shims();
|
|
95
|
+
init_esm_shims();
|
|
96
|
+
var RequestHandlerProtocol;
|
|
97
|
+
(function(RequestHandlerProtocol2) {
|
|
98
|
+
RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
|
|
99
|
+
RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
|
|
100
|
+
RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
|
|
101
|
+
})(RequestHandlerProtocol || (RequestHandlerProtocol = {}));
|
|
102
|
+
init_esm_shims();
|
|
103
|
+
init_esm_shims();
|
|
104
|
+
init_esm_shims();
|
|
105
|
+
init_esm_shims();
|
|
106
|
+
init_esm_shims();
|
|
107
|
+
init_esm_shims();
|
|
108
|
+
init_esm_shims();
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
SMITHY_CONTEXT_KEY,
|
|
112
|
+
EndpointURLScheme,
|
|
113
|
+
AlgorithmId,
|
|
114
|
+
IniSectionType
|
|
115
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getProfileName,
|
|
3
|
+
parseKnownFiles
|
|
4
|
+
} from "./chunk-KGNTV362.js";
|
|
5
|
+
import {
|
|
6
|
+
setCredentialFeature
|
|
7
|
+
} from "./chunk-ITI6QA2Q.js";
|
|
8
|
+
import "./chunk-M5GUUX64.js";
|
|
9
|
+
import {
|
|
10
|
+
CredentialsProviderError,
|
|
11
|
+
chain
|
|
12
|
+
} from "./chunk-W3VXP3A3.js";
|
|
13
|
+
import "./chunk-JSBRDJBE.js";
|
|
14
|
+
|
|
15
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
16
|
+
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
17
|
+
const sourceProvidersMap = {
|
|
18
|
+
EcsContainer: async (options) => {
|
|
19
|
+
const { fromHttp } = await import("./dist-es-CDFIYJVE.js");
|
|
20
|
+
const { fromContainerMetadata } = await import("./dist-es-GHYMLBON.js");
|
|
21
|
+
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
22
|
+
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
23
|
+
},
|
|
24
|
+
Ec2InstanceMetadata: async (options) => {
|
|
25
|
+
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
26
|
+
const { fromInstanceMetadata } = await import("./dist-es-GHYMLBON.js");
|
|
27
|
+
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
28
|
+
},
|
|
29
|
+
Environment: async (options) => {
|
|
30
|
+
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
31
|
+
const { fromEnv } = await import("./dist-es-WQHDOVD7.js");
|
|
32
|
+
return async () => fromEnv(options)().then(setNamedProvider);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
if (credentialSource in sourceProvidersMap) {
|
|
36
|
+
return sourceProvidersMap[credentialSource];
|
|
37
|
+
} else {
|
|
38
|
+
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
42
|
+
|
|
43
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
44
|
+
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
45
|
+
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
46
|
+
};
|
|
47
|
+
var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
|
|
48
|
+
const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
|
|
49
|
+
if (withSourceProfile) {
|
|
50
|
+
logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
|
|
51
|
+
}
|
|
52
|
+
return withSourceProfile;
|
|
53
|
+
};
|
|
54
|
+
var isCredentialSourceProfile = (arg, { profile, logger }) => {
|
|
55
|
+
const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
|
|
56
|
+
if (withProviderProfile) {
|
|
57
|
+
logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
|
|
58
|
+
}
|
|
59
|
+
return withProviderProfile;
|
|
60
|
+
};
|
|
61
|
+
var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
|
62
|
+
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
|
63
|
+
const profileData = profiles[profileName];
|
|
64
|
+
const { source_profile, region } = profileData;
|
|
65
|
+
if (!options.roleAssumer) {
|
|
66
|
+
const { getDefaultRoleAssumer } = await import("./sts-OPF4H3GL.js");
|
|
67
|
+
options.roleAssumer = getDefaultRoleAssumer({
|
|
68
|
+
...options.clientConfig,
|
|
69
|
+
credentialProviderLogger: options.logger,
|
|
70
|
+
parentClientConfig: {
|
|
71
|
+
...options?.parentClientConfig,
|
|
72
|
+
region: region ?? options?.parentClientConfig?.region
|
|
73
|
+
}
|
|
74
|
+
}, options.clientPlugins);
|
|
75
|
+
}
|
|
76
|
+
if (source_profile && source_profile in visitedProfiles) {
|
|
77
|
+
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
78
|
+
}
|
|
79
|
+
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
80
|
+
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
81
|
+
...visitedProfiles,
|
|
82
|
+
[source_profile]: true
|
|
83
|
+
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
|
84
|
+
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
|
85
|
+
return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
86
|
+
} else {
|
|
87
|
+
const params = {
|
|
88
|
+
RoleArn: profileData.role_arn,
|
|
89
|
+
RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
|
|
90
|
+
ExternalId: profileData.external_id,
|
|
91
|
+
DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
|
|
92
|
+
};
|
|
93
|
+
const { mfa_serial } = profileData;
|
|
94
|
+
if (mfa_serial) {
|
|
95
|
+
if (!options.mfaCodeProvider) {
|
|
96
|
+
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
97
|
+
}
|
|
98
|
+
params.SerialNumber = mfa_serial;
|
|
99
|
+
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
100
|
+
}
|
|
101
|
+
const sourceCreds = await sourceCredsProvider;
|
|
102
|
+
return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var isCredentialSourceWithoutRoleArn = (section) => {
|
|
106
|
+
return !section.role_arn && !!section.credential_source;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
110
|
+
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
111
|
+
var resolveProcessCredentials = async (options, profile) => import("./dist-es-S75EKWRJ.js").then(({ fromProcess }) => fromProcess({
|
|
112
|
+
...options,
|
|
113
|
+
profile
|
|
114
|
+
})().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
115
|
+
|
|
116
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
117
|
+
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
118
|
+
const { fromSSO } = await import("./dist-es-OZGLUDWT.js");
|
|
119
|
+
return fromSSO({
|
|
120
|
+
profile,
|
|
121
|
+
logger: options.logger,
|
|
122
|
+
parentClientConfig: options.parentClientConfig,
|
|
123
|
+
clientConfig: options.clientConfig
|
|
124
|
+
})().then((creds) => {
|
|
125
|
+
if (profileData.sso_session) {
|
|
126
|
+
return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
|
|
127
|
+
} else {
|
|
128
|
+
return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
133
|
+
|
|
134
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
135
|
+
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
136
|
+
var resolveStaticCredentials = async (profile, options) => {
|
|
137
|
+
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
138
|
+
const credentials = {
|
|
139
|
+
accessKeyId: profile.aws_access_key_id,
|
|
140
|
+
secretAccessKey: profile.aws_secret_access_key,
|
|
141
|
+
sessionToken: profile.aws_session_token,
|
|
142
|
+
...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
|
|
143
|
+
...profile.aws_account_id && { accountId: profile.aws_account_id }
|
|
144
|
+
};
|
|
145
|
+
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
149
|
+
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
150
|
+
var resolveWebIdentityCredentials = async (profile, options) => import("./dist-es-XQME5F6W.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
151
|
+
webIdentityTokenFile: profile.web_identity_token_file,
|
|
152
|
+
roleArn: profile.role_arn,
|
|
153
|
+
roleSessionName: profile.role_session_name,
|
|
154
|
+
roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
|
|
155
|
+
logger: options.logger,
|
|
156
|
+
parentClientConfig: options.parentClientConfig
|
|
157
|
+
})().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
|
|
158
|
+
|
|
159
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
160
|
+
var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
161
|
+
const data = profiles[profileName];
|
|
162
|
+
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
163
|
+
return resolveStaticCredentials(data, options);
|
|
164
|
+
}
|
|
165
|
+
if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
|
|
166
|
+
return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
|
|
167
|
+
}
|
|
168
|
+
if (isStaticCredsProfile(data)) {
|
|
169
|
+
return resolveStaticCredentials(data, options);
|
|
170
|
+
}
|
|
171
|
+
if (isWebIdentityProfile(data)) {
|
|
172
|
+
return resolveWebIdentityCredentials(data, options);
|
|
173
|
+
}
|
|
174
|
+
if (isProcessProfile(data)) {
|
|
175
|
+
return resolveProcessCredentials(options, profileName);
|
|
176
|
+
}
|
|
177
|
+
if (isSsoProfile(data)) {
|
|
178
|
+
return await resolveSsoCredentials(profileName, data, options);
|
|
179
|
+
}
|
|
180
|
+
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
// ../../.yarn/cache/@aws-sdk-credential-provider-ini-npm-3.817.0-1036c5630b-9d4d264b6a.zip/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
184
|
+
var fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
185
|
+
const init = {
|
|
186
|
+
..._init,
|
|
187
|
+
parentClientConfig: {
|
|
188
|
+
...callerClientConfig,
|
|
189
|
+
..._init.parentClientConfig
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
193
|
+
const profiles = await parseKnownFiles(init);
|
|
194
|
+
return resolveProfileData(getProfileName({
|
|
195
|
+
profile: _init.profile ?? callerClientConfig?.profile
|
|
196
|
+
}), profiles, init);
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
fromIni
|
|
200
|
+
};
|