@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.
Files changed (58) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/chunk-5W7B34BN.js +3307 -0
  3. package/dist/chunk-64IS37V6.js +17 -0
  4. package/dist/chunk-AEOST5WF.js +63 -0
  5. package/dist/chunk-B7OAPHPY.js +46 -0
  6. package/dist/chunk-FO7L563E.js +13695 -0
  7. package/dist/chunk-FRWSD3YQ.js +1722 -0
  8. package/dist/chunk-IEZY5C3G.js +120 -0
  9. package/dist/chunk-ITI6QA2Q.js +12 -0
  10. package/dist/chunk-IUKLHJNE.js +49 -0
  11. package/dist/chunk-JBVMOFGH.js +152 -0
  12. package/dist/chunk-JSBRDJBE.js +30 -0
  13. package/dist/chunk-KGNTV362.js +209 -0
  14. package/dist/chunk-KRJS4RAS.js +1732 -0
  15. package/dist/chunk-M5GUUX64.js +63 -0
  16. package/dist/chunk-QAE2S7MG.js +3351 -0
  17. package/dist/chunk-SX6SVQKS.js +67 -0
  18. package/dist/chunk-TJ744C2T.js +198 -0
  19. package/dist/chunk-UNXXS5FM.js +120 -0
  20. package/dist/chunk-UT2RMOJS.js +2447 -0
  21. package/dist/chunk-VOTRVWIB.js +1965 -0
  22. package/dist/chunk-W3VXP3A3.js +119 -0
  23. package/dist/chunk-WCHHWTND.js +113 -0
  24. package/dist/chunk-X6XO7USX.js +110 -0
  25. package/dist/chunk-XLUI7RQ4.js +115 -0
  26. package/dist/dist-es-2M7RLZ5O.js +200 -0
  27. package/dist/dist-es-ADTONJUN-RVFWNZHO.js +67 -0
  28. package/dist/dist-es-CDFIYJVE.js +163 -0
  29. package/dist/dist-es-GHYMLBON.js +379 -0
  30. package/dist/dist-es-HJVOMDYC-PIAMWMAL.js +87 -0
  31. package/dist/dist-es-IDBDK36G-Y6TQMRO5.js +299 -0
  32. package/dist/dist-es-OCQVKISC-TNAJ62WG.js +161 -0
  33. package/dist/dist-es-OZGLUDWT.js +305 -0
  34. package/dist/dist-es-PRWCVZGQ-HTTVI42T.js +21 -0
  35. package/dist/dist-es-S75EKWRJ.js +88 -0
  36. package/dist/dist-es-SUPEA6VE-3B5JSW5C.js +368 -0
  37. package/dist/dist-es-WQHDOVD7.js +21 -0
  38. package/dist/dist-es-XQME5F6W.js +67 -0
  39. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +196 -0
  40. package/dist/lambda/auto-cache-removal.d.cts +17 -0
  41. package/dist/lambda/auto-cache-removal.d.ts +17 -0
  42. package/dist/lambda/auto-cache-removal.js +5313 -0
  43. package/dist/lambda/origin-request.d.cts +14 -0
  44. package/dist/lambda/origin-request.d.ts +14 -0
  45. package/dist/lambda/origin-request.js +113 -0
  46. package/dist/lambda/origin-response.d.cts +6 -0
  47. package/dist/lambda/origin-response.d.ts +6 -0
  48. package/dist/lambda/origin-response.js +52 -0
  49. package/dist/loadSso-CZSSLFH6-SA5HOQAX.js +645 -0
  50. package/dist/loadSso-T7GJVVO2.js +655 -0
  51. package/dist/sso-oidc-55SJ27II.js +827 -0
  52. package/dist/sso-oidc-PKO5GYK5-LC65L46O.js +820 -0
  53. package/dist/sts-OPF4H3GL.js +1162 -0
  54. package/dist/sts-P7Q3MYTS-BKGWHQE4.js +1152 -0
  55. package/lambda/auto-cache-removal.d.ts +1 -0
  56. package/lambda/origin-request.d.ts +1 -0
  57. package/lambda/origin-response.d.ts +1 -0
  58. package/package.json +37 -10
@@ -0,0 +1,67 @@
1
+ import {
2
+ collectBodyString
3
+ } from "./chunk-QAE2S7MG.js";
4
+ import {
5
+ init_esm_shims
6
+ } from "./chunk-JBVMOFGH.js";
7
+
8
+ // ../deployment-manager/dist/chunk-ATV4QGCI.js
9
+ init_esm_shims();
10
+ var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
11
+ if (encoded.length) {
12
+ try {
13
+ return JSON.parse(encoded);
14
+ } catch (e) {
15
+ if (e?.name === "SyntaxError") {
16
+ Object.defineProperty(e, "$responseBodyText", {
17
+ value: encoded
18
+ });
19
+ }
20
+ throw e;
21
+ }
22
+ }
23
+ return {};
24
+ });
25
+ var parseJsonErrorBody = async (errorBody, context) => {
26
+ const value = await parseJsonBody(errorBody, context);
27
+ value.message = value.message ?? value.Message;
28
+ return value;
29
+ };
30
+ var loadRestJsonErrorCode = (output, data) => {
31
+ const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
32
+ const sanitizeErrorCode = (rawValue) => {
33
+ let cleanValue = rawValue;
34
+ if (typeof cleanValue === "number") {
35
+ cleanValue = cleanValue.toString();
36
+ }
37
+ if (cleanValue.indexOf(",") >= 0) {
38
+ cleanValue = cleanValue.split(",")[0];
39
+ }
40
+ if (cleanValue.indexOf(":") >= 0) {
41
+ cleanValue = cleanValue.split(":")[0];
42
+ }
43
+ if (cleanValue.indexOf("#") >= 0) {
44
+ cleanValue = cleanValue.split("#")[1];
45
+ }
46
+ return cleanValue;
47
+ };
48
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
49
+ if (headerKey !== void 0) {
50
+ return sanitizeErrorCode(output.headers[headerKey]);
51
+ }
52
+ if (data && typeof data === "object") {
53
+ const codeKey = findKey(data, "code");
54
+ if (codeKey && data[codeKey] !== void 0) {
55
+ return sanitizeErrorCode(data[codeKey]);
56
+ }
57
+ if (data["__type"] !== void 0) {
58
+ return sanitizeErrorCode(data["__type"]);
59
+ }
60
+ }
61
+ };
62
+
63
+ export {
64
+ parseJsonBody,
65
+ parseJsonErrorBody,
66
+ loadRestJsonErrorCode
67
+ };
@@ -0,0 +1,198 @@
1
+ import {
2
+ IniSectionType
3
+ } from "./chunk-XLUI7RQ4.js";
4
+ import {
5
+ init_esm_shims
6
+ } from "./chunk-JBVMOFGH.js";
7
+
8
+ // ../deployment-manager/dist/chunk-XMY5R2F6.js
9
+ import { join } from "path";
10
+ import { homedir } from "os";
11
+ import { sep } from "path";
12
+ import { join as join3 } from "path";
13
+ import { join as join2 } from "path";
14
+ import { promises as fsPromises } from "fs";
15
+ import { createHash } from "crypto";
16
+ import { join as join4 } from "path";
17
+ import { promises as fsPromises2 } from "fs";
18
+ init_esm_shims();
19
+ var ENV_PROFILE = "AWS_PROFILE";
20
+ var DEFAULT_PROFILE = "default";
21
+ var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
22
+ init_esm_shims();
23
+ init_esm_shims();
24
+ init_esm_shims();
25
+ var homeDirCache = {};
26
+ var getHomeDirCacheKey = () => {
27
+ if (process && process.geteuid) {
28
+ return `${process.geteuid()}`;
29
+ }
30
+ return "DEFAULT";
31
+ };
32
+ var getHomeDir = () => {
33
+ const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
34
+ if (HOME)
35
+ return HOME;
36
+ if (USERPROFILE)
37
+ return USERPROFILE;
38
+ if (HOMEPATH)
39
+ return `${HOMEDRIVE}${HOMEPATH}`;
40
+ const homeDirCacheKey = getHomeDirCacheKey();
41
+ if (!homeDirCache[homeDirCacheKey])
42
+ homeDirCache[homeDirCacheKey] = homedir();
43
+ return homeDirCache[homeDirCacheKey];
44
+ };
45
+ var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
46
+ var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
47
+ init_esm_shims();
48
+ init_esm_shims();
49
+ init_esm_shims();
50
+ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
51
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
52
+ if (indexOfSeparator === -1) {
53
+ return false;
54
+ }
55
+ return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
56
+ }).reduce((acc, [key, value]) => {
57
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
58
+ const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
59
+ acc[updatedKey] = value;
60
+ return acc;
61
+ }, {
62
+ ...data.default && { default: data.default }
63
+ });
64
+ init_esm_shims();
65
+ var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
66
+ var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
67
+ init_esm_shims();
68
+ var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
69
+ var profileNameBlockList = ["__proto__", "profile __proto__"];
70
+ var parseIni = (iniData) => {
71
+ const map = {};
72
+ let currentSection;
73
+ let currentSubSection;
74
+ for (const iniLine of iniData.split(/\r?\n/)) {
75
+ const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
76
+ const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
77
+ if (isSection) {
78
+ currentSection = void 0;
79
+ currentSubSection = void 0;
80
+ const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
81
+ const matches = prefixKeyRegex.exec(sectionName);
82
+ if (matches) {
83
+ const [, prefix, , name] = matches;
84
+ if (Object.values(IniSectionType).includes(prefix)) {
85
+ currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
86
+ }
87
+ } else {
88
+ currentSection = sectionName;
89
+ }
90
+ if (profileNameBlockList.includes(sectionName)) {
91
+ throw new Error(`Found invalid profile name "${sectionName}"`);
92
+ }
93
+ } else if (currentSection) {
94
+ const indexOfEqualsSign = trimmedLine.indexOf("=");
95
+ if (![0, -1].includes(indexOfEqualsSign)) {
96
+ const [name, value] = [
97
+ trimmedLine.substring(0, indexOfEqualsSign).trim(),
98
+ trimmedLine.substring(indexOfEqualsSign + 1).trim()
99
+ ];
100
+ if (value === "") {
101
+ currentSubSection = name;
102
+ } else {
103
+ if (currentSubSection && iniLine.trimStart() === iniLine) {
104
+ currentSubSection = void 0;
105
+ }
106
+ map[currentSection] = map[currentSection] || {};
107
+ const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
108
+ map[currentSection][key] = value;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ return map;
114
+ };
115
+ init_esm_shims();
116
+ var { readFile } = fsPromises;
117
+ var filePromisesHash = {};
118
+ var slurpFile = (path, options) => {
119
+ if (!filePromisesHash[path] || options?.ignoreCache) {
120
+ filePromisesHash[path] = readFile(path, "utf8");
121
+ }
122
+ return filePromisesHash[path];
123
+ };
124
+ var swallowError = () => ({});
125
+ var CONFIG_PREFIX_SEPARATOR = ".";
126
+ var loadSharedConfigFiles = async (init = {}) => {
127
+ const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
128
+ const homeDir = getHomeDir();
129
+ const relativeHomeDirPrefix = "~/";
130
+ let resolvedFilepath = filepath;
131
+ if (filepath.startsWith(relativeHomeDirPrefix)) {
132
+ resolvedFilepath = join3(homeDir, filepath.slice(2));
133
+ }
134
+ let resolvedConfigFilepath = configFilepath;
135
+ if (configFilepath.startsWith(relativeHomeDirPrefix)) {
136
+ resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
137
+ }
138
+ const parsedFiles = await Promise.all([
139
+ slurpFile(resolvedConfigFilepath, {
140
+ ignoreCache: init.ignoreCache
141
+ }).then(parseIni).then(getConfigData).catch(swallowError),
142
+ slurpFile(resolvedFilepath, {
143
+ ignoreCache: init.ignoreCache
144
+ }).then(parseIni).catch(swallowError)
145
+ ]);
146
+ return {
147
+ configFile: parsedFiles[0],
148
+ credentialsFile: parsedFiles[1]
149
+ };
150
+ };
151
+ var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
152
+ var swallowError2 = () => ({});
153
+ var loadSsoSessionData = async (init = {}) => slurpFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
154
+ init_esm_shims();
155
+ init_esm_shims();
156
+ var mergeConfigFiles = (...files) => {
157
+ const merged = {};
158
+ for (const file of files) {
159
+ for (const [key, values] of Object.entries(file)) {
160
+ if (merged[key] !== void 0) {
161
+ Object.assign(merged[key], values);
162
+ } else {
163
+ merged[key] = values;
164
+ }
165
+ }
166
+ }
167
+ return merged;
168
+ };
169
+ var parseKnownFiles = async (init) => {
170
+ const parsedFiles = await loadSharedConfigFiles(init);
171
+ return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
172
+ };
173
+ init_esm_shims();
174
+ init_esm_shims();
175
+ var getSSOTokenFilepath = (id) => {
176
+ const hasher = createHash("sha1");
177
+ const cacheName = hasher.update(id).digest("hex");
178
+ return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
179
+ };
180
+ init_esm_shims();
181
+ var { readFile: readFile2 } = fsPromises2;
182
+ var getSSOTokenFromFile = async (id) => {
183
+ const ssoTokenFilepath = getSSOTokenFilepath(id);
184
+ const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
185
+ return JSON.parse(ssoTokenText);
186
+ };
187
+ init_esm_shims();
188
+
189
+ export {
190
+ ENV_PROFILE,
191
+ getProfileName,
192
+ CONFIG_PREFIX_SEPARATOR,
193
+ loadSharedConfigFiles,
194
+ loadSsoSessionData,
195
+ parseKnownFiles,
196
+ getSSOTokenFilepath,
197
+ getSSOTokenFromFile
198
+ };
@@ -0,0 +1,120 @@
1
+ // ../../.yarn/cache/@aws-sdk-nested-clients-npm-3.817.0-7e685fc30b-9829525f45.zip/node_modules/@aws-sdk/nested-clients/package.json
2
+ var package_default = {
3
+ name: "@aws-sdk/nested-clients",
4
+ version: "3.817.0",
5
+ description: "Nested clients for AWS SDK packages.",
6
+ main: "./dist-cjs/index.js",
7
+ module: "./dist-es/index.js",
8
+ types: "./dist-types/index.d.ts",
9
+ scripts: {
10
+ build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
11
+ "build:cjs": "node ../../scripts/compilation/inline nested-clients",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
14
+ "build:types": "tsc -p tsconfig.types.json",
15
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
16
+ clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
17
+ lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
18
+ test: "yarn g:vitest run",
19
+ "test:watch": "yarn g:vitest watch"
20
+ },
21
+ engines: {
22
+ node: ">=18.0.0"
23
+ },
24
+ author: {
25
+ name: "AWS SDK for JavaScript Team",
26
+ url: "https://aws.amazon.com/javascript/"
27
+ },
28
+ license: "Apache-2.0",
29
+ dependencies: {
30
+ "@aws-crypto/sha256-browser": "5.2.0",
31
+ "@aws-crypto/sha256-js": "5.2.0",
32
+ "@aws-sdk/core": "3.816.0",
33
+ "@aws-sdk/middleware-host-header": "3.804.0",
34
+ "@aws-sdk/middleware-logger": "3.804.0",
35
+ "@aws-sdk/middleware-recursion-detection": "3.804.0",
36
+ "@aws-sdk/middleware-user-agent": "3.816.0",
37
+ "@aws-sdk/region-config-resolver": "3.808.0",
38
+ "@aws-sdk/types": "3.804.0",
39
+ "@aws-sdk/util-endpoints": "3.808.0",
40
+ "@aws-sdk/util-user-agent-browser": "3.804.0",
41
+ "@aws-sdk/util-user-agent-node": "3.816.0",
42
+ "@smithy/config-resolver": "^4.1.2",
43
+ "@smithy/core": "^3.3.3",
44
+ "@smithy/fetch-http-handler": "^5.0.2",
45
+ "@smithy/hash-node": "^4.0.2",
46
+ "@smithy/invalid-dependency": "^4.0.2",
47
+ "@smithy/middleware-content-length": "^4.0.2",
48
+ "@smithy/middleware-endpoint": "^4.1.6",
49
+ "@smithy/middleware-retry": "^4.1.7",
50
+ "@smithy/middleware-serde": "^4.0.5",
51
+ "@smithy/middleware-stack": "^4.0.2",
52
+ "@smithy/node-config-provider": "^4.1.1",
53
+ "@smithy/node-http-handler": "^4.0.4",
54
+ "@smithy/protocol-http": "^5.1.0",
55
+ "@smithy/smithy-client": "^4.2.6",
56
+ "@smithy/types": "^4.2.0",
57
+ "@smithy/url-parser": "^4.0.2",
58
+ "@smithy/util-base64": "^4.0.0",
59
+ "@smithy/util-body-length-browser": "^4.0.0",
60
+ "@smithy/util-body-length-node": "^4.0.0",
61
+ "@smithy/util-defaults-mode-browser": "^4.0.14",
62
+ "@smithy/util-defaults-mode-node": "^4.0.14",
63
+ "@smithy/util-endpoints": "^3.0.4",
64
+ "@smithy/util-middleware": "^4.0.2",
65
+ "@smithy/util-retry": "^4.0.3",
66
+ "@smithy/util-utf8": "^4.0.0",
67
+ tslib: "^2.6.2"
68
+ },
69
+ devDependencies: {
70
+ concurrently: "7.0.0",
71
+ "downlevel-dts": "0.10.1",
72
+ rimraf: "3.0.2",
73
+ typescript: "~5.8.3"
74
+ },
75
+ typesVersions: {
76
+ "<4.0": {
77
+ "dist-types/*": [
78
+ "dist-types/ts3.4/*"
79
+ ]
80
+ }
81
+ },
82
+ files: [
83
+ "./sso-oidc.d.ts",
84
+ "./sso-oidc.js",
85
+ "./sts.d.ts",
86
+ "./sts.js",
87
+ "dist-*/**"
88
+ ],
89
+ browser: {
90
+ "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
91
+ "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
92
+ },
93
+ "react-native": {},
94
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
95
+ repository: {
96
+ type: "git",
97
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
98
+ directory: "packages/nested-clients"
99
+ },
100
+ exports: {
101
+ "./sso-oidc": {
102
+ types: "./dist-types/submodules/sso-oidc/index.d.ts",
103
+ module: "./dist-es/submodules/sso-oidc/index.js",
104
+ node: "./dist-cjs/submodules/sso-oidc/index.js",
105
+ import: "./dist-es/submodules/sso-oidc/index.js",
106
+ require: "./dist-cjs/submodules/sso-oidc/index.js"
107
+ },
108
+ "./sts": {
109
+ types: "./dist-types/submodules/sts/index.d.ts",
110
+ module: "./dist-es/submodules/sts/index.js",
111
+ node: "./dist-cjs/submodules/sts/index.js",
112
+ import: "./dist-es/submodules/sts/index.js",
113
+ require: "./dist-cjs/submodules/sts/index.js"
114
+ }
115
+ }
116
+ };
117
+
118
+ export {
119
+ package_default
120
+ };