@granite-js/pulumi-aws 0.1.34 → 1.0.1

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 (82) hide show
  1. package/CHANGELOG.md +4 -116
  2. package/dist/chunk-23MVQUOJ.js +1630 -0
  3. package/dist/chunk-24XYHOWM.js +171 -0
  4. package/dist/chunk-3AVBP57V.js +1598 -0
  5. package/dist/chunk-3JKQPIJ2.js +460 -0
  6. package/dist/{chunk-ITI6QA2Q.js → chunk-3OYGHA4S.js} +1 -1
  7. package/dist/{chunk-IEZY5C3G.js → chunk-46DIC54Q.js} +49 -37
  8. package/dist/chunk-57WYIP4I.js +808 -0
  9. package/dist/{chunk-WCHHWTND.js → chunk-63Q3RLAK.js} +93 -59
  10. package/dist/chunk-6KRYZP6R.js +28 -0
  11. package/dist/{chunk-QAE2S7MG.js → chunk-7NN7DVGK.js} +2050 -552
  12. package/dist/{chunk-5W7B34BN.js → chunk-ASGFIK4A.js} +2231 -464
  13. package/dist/chunk-BTBQTDRJ.js +174 -0
  14. package/dist/chunk-DDZTWBHZ.js +154 -0
  15. package/dist/chunk-G3FWLTNJ.js +10 -0
  16. package/dist/{chunk-TJ744C2T.js → chunk-GJFKL6XM.js} +43 -38
  17. package/dist/chunk-H4QJ5O4E.js +36 -0
  18. package/dist/{chunk-X6XO7USX.js → chunk-LCO5F3JB.js} +109 -56
  19. package/dist/chunk-NDDYFDCU.js +60 -0
  20. package/dist/chunk-OCHPLE5N.js +28 -0
  21. package/dist/chunk-OSJA4YYQ.js +846 -0
  22. package/dist/chunk-PIT3K3NC.js +464 -0
  23. package/dist/chunk-QCKAO4UT.js +476 -0
  24. package/dist/{chunk-64IS37V6.js → chunk-RYIGWCGK.js} +1 -6
  25. package/dist/chunk-S4LJWEXU.js +37 -0
  26. package/dist/chunk-SJ26Y3GW.js +472 -0
  27. package/dist/chunk-TDZTH7TL.js +60 -0
  28. package/dist/chunk-THUA35UY.js +35 -0
  29. package/dist/{chunk-IUKLHJNE.js → chunk-V7TRGEV6.js} +4 -7
  30. package/dist/{chunk-KGNTV362.js → chunk-WDFKVCPC.js} +66 -34
  31. package/dist/{chunk-B7OAPHPY.js → chunk-YWWEFWFD.js} +3 -3
  32. package/dist/chunk-Z4UYYQ4J.js +42 -0
  33. package/dist/chunk-ZBT5SDIQ.js +16528 -0
  34. package/dist/chunk-ZIHRRTTA.js +24 -0
  35. package/dist/{dist-es-CDFIYJVE.js → dist-es-3VZ2IGGJ.js} +18 -15
  36. package/dist/{dist-es-SUPEA6VE-3B5JSW5C.js → dist-es-BQW4ETQH-C7ZSD5EG.js} +8 -25
  37. package/dist/{dist-es-GHYMLBON.js → dist-es-HSWXMGNC.js} +21 -21
  38. package/dist/{dist-es-OCQVKISC-TNAJ62WG.js → dist-es-IDBNBAO5-H3TO63FG.js} +15 -18
  39. package/dist/{dist-es-S75EKWRJ.js → dist-es-KPJNIAPT.js} +9 -10
  40. package/dist/{dist-es-PRWCVZGQ-HTTVI42T.js → dist-es-LZDRG6RP-SP2FWWEO.js} +3 -4
  41. package/dist/{dist-es-OZGLUDWT.js → dist-es-PIWY5TOR.js} +49 -26
  42. package/dist/{dist-es-ADTONJUN-RVFWNZHO.js → dist-es-R4LD2OHZ-B5MB6BR2.js} +11 -13
  43. package/dist/dist-es-S2KJK4L2-5GDBXJIO.js +470 -0
  44. package/dist/{dist-es-XQME5F6W.js → dist-es-THYWPEKB.js} +12 -10
  45. package/dist/{dist-es-HJVOMDYC-PIAMWMAL.js → dist-es-TIYLKN6W-BAHZRZH5.js} +7 -13
  46. package/dist/{dist-es-IDBDK36G-Y6TQMRO5.js → dist-es-VORPMM2F-WOMP2FYQ.js} +37 -30
  47. package/dist/{dist-es-WQHDOVD7.js → dist-es-WESJCADT.js} +3 -4
  48. package/dist/dist-es-XMOG24OT.js +490 -0
  49. package/dist/event-streams-L7RH32OW-AFMBEYJJ.js +237 -0
  50. package/dist/event-streams-NGUY2RWE.js +237 -0
  51. package/dist/index.cjs +2 -2
  52. package/dist/index.js +2 -2
  53. package/dist/lambda/auto-cache-removal.cjs +28894 -16488
  54. package/dist/lambda/auto-cache-removal.js +11574 -2713
  55. package/dist/lambda/origin-request.cjs +22351 -17619
  56. package/dist/lambda/origin-request.js +21 -17
  57. package/dist/lambda/origin-response.cjs +22219 -17387
  58. package/dist/lambda/origin-response.js +17 -13
  59. package/dist/{loadSso-CZSSLFH6-SA5HOQAX.js → loadSso-F4PTCHDN-YR3RRUYW.js} +330 -227
  60. package/dist/{loadSso-T7GJVVO2.js → loadSso-LG7MFP7N.js} +344 -223
  61. package/dist/signin-P7DNG43W.js +658 -0
  62. package/dist/signin-XWTOVLF3-4ENWNEF7.js +630 -0
  63. package/dist/{sso-oidc-PKO5GYK5-LC65L46O.js → sso-oidc-FQQGUOJL.js} +293 -332
  64. package/dist/{sso-oidc-55SJ27II.js → sso-oidc-RRDYLOJY-FK3AUTOI.js} +263 -337
  65. package/dist/{sts-OPF4H3GL.js → sts-7FBOVTCN.js} +674 -601
  66. package/dist/{sts-P7Q3MYTS-BKGWHQE4.js → sts-TBWJ374A-DHXXCVJJ.js} +651 -608
  67. package/package.json +5 -5
  68. package/dist/chunk-AEOST5WF.js +0 -63
  69. package/dist/chunk-FO7L563E.js +0 -13695
  70. package/dist/chunk-FRWSD3YQ.js +0 -1722
  71. package/dist/chunk-JBVMOFGH.js +0 -152
  72. package/dist/chunk-JSBRDJBE.js +0 -30
  73. package/dist/chunk-KRJS4RAS.js +0 -1732
  74. package/dist/chunk-M5GUUX64.js +0 -63
  75. package/dist/chunk-SX6SVQKS.js +0 -67
  76. package/dist/chunk-UNXXS5FM.js +0 -120
  77. package/dist/chunk-UT2RMOJS.js +0 -2447
  78. package/dist/chunk-VOTRVWIB.js +0 -1965
  79. package/dist/chunk-W3VXP3A3.js +0 -119
  80. package/dist/chunk-XLUI7RQ4.js +0 -115
  81. package/dist/dist-es-2M7RLZ5O.js +0 -200
  82. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +0 -196
@@ -1,15 +1,98 @@
1
+ import {
2
+ chain
3
+ } from "./chunk-OCHPLE5N.js";
1
4
  import {
2
5
  getProfileName,
3
6
  loadSharedConfigFiles
4
- } from "./chunk-KGNTV362.js";
7
+ } from "./chunk-GJFKL6XM.js";
5
8
  import {
6
- CredentialsProviderError,
7
- chain,
8
- fromStatic,
9
- memoize
10
- } from "./chunk-W3VXP3A3.js";
9
+ CredentialsProviderError
10
+ } from "./chunk-THUA35UY.js";
11
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
12
+ // ../deployment-manager/dist/chunk-3CH6GUTR.js
13
+ function parseQueryString(querystring) {
14
+ const query = {};
15
+ querystring = querystring.replace(/^\?/, "");
16
+ if (querystring) {
17
+ for (const pair of querystring.split("&")) {
18
+ let [key, value = null] = pair.split("=");
19
+ key = decodeURIComponent(key);
20
+ if (value) {
21
+ value = decodeURIComponent(value);
22
+ }
23
+ if (!(key in query)) {
24
+ query[key] = value;
25
+ } else if (Array.isArray(query[key])) {
26
+ query[key].push(value);
27
+ } else {
28
+ query[key] = [query[key], value];
29
+ }
30
+ }
31
+ }
32
+ return query;
33
+ }
34
+ var parseUrl = (url) => {
35
+ if (typeof url === "string") {
36
+ return parseUrl(new URL(url));
37
+ }
38
+ const { hostname, pathname, port, protocol, search } = url;
39
+ let query;
40
+ if (search) {
41
+ query = parseQueryString(search);
42
+ }
43
+ return {
44
+ hostname,
45
+ port: port ? parseInt(port) : void 0,
46
+ protocol,
47
+ path: pathname,
48
+ query
49
+ };
50
+ };
51
+ var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
52
+ var memoize = (provider, isExpired, requiresRefresh) => {
53
+ let resolved;
54
+ let pending;
55
+ let hasResult;
56
+ let isConstant = false;
57
+ const coalesceProvider = async () => {
58
+ if (!pending) {
59
+ pending = provider();
60
+ }
61
+ try {
62
+ resolved = await pending;
63
+ hasResult = true;
64
+ isConstant = false;
65
+ } finally {
66
+ pending = void 0;
67
+ }
68
+ return resolved;
69
+ };
70
+ if (isExpired === void 0) {
71
+ return async (options) => {
72
+ if (!hasResult || options?.forceRefresh) {
73
+ resolved = await coalesceProvider();
74
+ }
75
+ return resolved;
76
+ };
77
+ }
78
+ return async (options) => {
79
+ if (!hasResult || options?.forceRefresh) {
80
+ resolved = await coalesceProvider();
81
+ }
82
+ if (isConstant) {
83
+ return resolved;
84
+ }
85
+ if (requiresRefresh && !requiresRefresh(resolved)) {
86
+ isConstant = true;
87
+ return resolved;
88
+ }
89
+ if (isExpired(resolved)) {
90
+ await coalesceProvider();
91
+ return resolved;
92
+ }
93
+ return resolved;
94
+ };
95
+ };
13
96
  function getSelectorName(functionString) {
14
97
  try {
15
98
  const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
@@ -21,8 +104,6 @@ function getSelectorName(functionString) {
21
104
  return functionString;
22
105
  }
23
106
  }
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
107
  var fromEnv = (envVarSelector, options) => async () => {
27
108
  try {
28
109
  const config = envVarSelector(process.env, options);
@@ -34,8 +115,6 @@ var fromEnv = (envVarSelector, options) => async () => {
34
115
  throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
35
116
  }
36
117
  };
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
118
  var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
40
119
  const profile = getProfileName(init);
41
120
  const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
@@ -53,61 +132,16 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
53
132
  throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
54
133
  }
55
134
  };
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
135
  var isFunction = (func) => typeof func === "function";
59
136
  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
137
  var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
63
138
  const { signingName, logger } = configuration;
64
139
  const envOptions = { signingName, logger };
65
140
  return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
66
141
  };
67
142
 
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
143
  export {
111
- loadConfig,
112
- parseUrl
144
+ parseUrl,
145
+ memoize,
146
+ loadConfig
113
147
  };
@@ -0,0 +1,28 @@
1
+ import {
2
+ ProviderError
3
+ } from "./chunk-S4LJWEXU.js";
4
+
5
+ // ../../.yarn/cache/@smithy-property-provider-npm-4.2.5-86dfaa488e-bea8cf1758.zip/node_modules/@smithy/property-provider/dist-es/chain.js
6
+ var chain = (...providers) => async () => {
7
+ if (providers.length === 0) {
8
+ throw new ProviderError("No providers in chain");
9
+ }
10
+ let lastProviderError;
11
+ for (const provider of providers) {
12
+ try {
13
+ const credentials = await provider();
14
+ return credentials;
15
+ } catch (err) {
16
+ lastProviderError = err;
17
+ if (err?.tryNextLink) {
18
+ continue;
19
+ }
20
+ throw err;
21
+ }
22
+ }
23
+ throw lastProviderError;
24
+ };
25
+
26
+ export {
27
+ chain
28
+ };