@granite-js/pulumi-aws 0.1.34 → 1.0.2

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 +6 -112
  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,19 +1,106 @@
1
+ import {
2
+ chain
3
+ } from "./chunk-6KRYZP6R.js";
1
4
  import {
2
5
  getProfileName,
3
6
  loadSharedConfigFiles
4
- } from "./chunk-TJ744C2T.js";
7
+ } from "./chunk-WDFKVCPC.js";
5
8
  import {
6
- CredentialsProviderError,
7
- chain,
8
- fromStatic,
9
- init_esm_shims,
10
- memoize
11
- } from "./chunk-JBVMOFGH.js";
9
+ CredentialsProviderError
10
+ } from "./chunk-S4LJWEXU.js";
11
+
12
+ // ../../.yarn/cache/@smithy-querystring-parser-npm-4.2.5-a8a8419733-83c4200282.zip/node_modules/@smithy/querystring-parser/dist-es/index.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
+
35
+ // ../../.yarn/cache/@smithy-url-parser-npm-4.2.5-08c3714dab-1d8241eeaa.zip/node_modules/@smithy/url-parser/dist-es/index.js
36
+ var parseUrl = (url) => {
37
+ if (typeof url === "string") {
38
+ return parseUrl(new URL(url));
39
+ }
40
+ const { hostname, pathname, port, protocol, search } = url;
41
+ let query;
42
+ if (search) {
43
+ query = parseQueryString(search);
44
+ }
45
+ return {
46
+ hostname,
47
+ port: port ? parseInt(port) : void 0,
48
+ protocol,
49
+ path: pathname,
50
+ query
51
+ };
52
+ };
53
+
54
+ // ../../.yarn/cache/@smithy-property-provider-npm-4.2.5-86dfaa488e-bea8cf1758.zip/node_modules/@smithy/property-provider/dist-es/fromStatic.js
55
+ var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
56
+
57
+ // ../../.yarn/cache/@smithy-property-provider-npm-4.2.5-86dfaa488e-bea8cf1758.zip/node_modules/@smithy/property-provider/dist-es/memoize.js
58
+ var memoize = (provider, isExpired, requiresRefresh) => {
59
+ let resolved;
60
+ let pending;
61
+ let hasResult;
62
+ let isConstant = false;
63
+ const coalesceProvider = async () => {
64
+ if (!pending) {
65
+ pending = provider();
66
+ }
67
+ try {
68
+ resolved = await pending;
69
+ hasResult = true;
70
+ isConstant = false;
71
+ } finally {
72
+ pending = void 0;
73
+ }
74
+ return resolved;
75
+ };
76
+ if (isExpired === void 0) {
77
+ return async (options) => {
78
+ if (!hasResult || options?.forceRefresh) {
79
+ resolved = await coalesceProvider();
80
+ }
81
+ return resolved;
82
+ };
83
+ }
84
+ return async (options) => {
85
+ if (!hasResult || options?.forceRefresh) {
86
+ resolved = await coalesceProvider();
87
+ }
88
+ if (isConstant) {
89
+ return resolved;
90
+ }
91
+ if (requiresRefresh && !requiresRefresh(resolved)) {
92
+ isConstant = true;
93
+ return resolved;
94
+ }
95
+ if (isExpired(resolved)) {
96
+ await coalesceProvider();
97
+ return resolved;
98
+ }
99
+ return resolved;
100
+ };
101
+ };
12
102
 
13
- // ../deployment-manager/dist/chunk-JVNGEJAQ.js
14
- init_esm_shims();
15
- init_esm_shims();
16
- init_esm_shims();
103
+ // ../../.yarn/cache/@smithy-node-config-provider-npm-4.3.5-1354eb57c8-433eb6cab0.zip/node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
17
104
  function getSelectorName(functionString) {
18
105
  try {
19
106
  const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
@@ -25,6 +112,8 @@ function getSelectorName(functionString) {
25
112
  return functionString;
26
113
  }
27
114
  }
115
+
116
+ // ../../.yarn/cache/@smithy-node-config-provider-npm-4.3.5-1354eb57c8-433eb6cab0.zip/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
28
117
  var fromEnv = (envVarSelector, options) => async () => {
29
118
  try {
30
119
  const config = envVarSelector(process.env, options);
@@ -36,7 +125,8 @@ var fromEnv = (envVarSelector, options) => async () => {
36
125
  throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger });
37
126
  }
38
127
  };
39
- init_esm_shims();
128
+
129
+ // ../../.yarn/cache/@smithy-node-config-provider-npm-4.3.5-1354eb57c8-433eb6cab0.zip/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
40
130
  var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
41
131
  const profile = getProfileName(init);
42
132
  const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
@@ -54,57 +144,20 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
54
144
  throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
55
145
  }
56
146
  };
57
- init_esm_shims();
147
+
148
+ // ../../.yarn/cache/@smithy-node-config-provider-npm-4.3.5-1354eb57c8-433eb6cab0.zip/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
58
149
  var isFunction = (func) => typeof func === "function";
59
150
  var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
151
+
152
+ // ../../.yarn/cache/@smithy-node-config-provider-npm-4.3.5-1354eb57c8-433eb6cab0.zip/node_modules/@smithy/node-config-provider/dist-es/configLoader.js
60
153
  var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
61
154
  const { signingName, logger } = configuration;
62
155
  const envOptions = { signingName, logger };
63
156
  return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
64
157
  };
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
158
 
107
159
  export {
108
- loadConfig,
109
- parseUrl
160
+ parseUrl,
161
+ memoize,
162
+ loadConfig
110
163
  };
@@ -0,0 +1,60 @@
1
+ // ../../.yarn/cache/@smithy-protocol-http-npm-5.3.5-49ab1bf413-15e6bfbf39.zip/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
2
+ var HttpRequest = class _HttpRequest {
3
+ method;
4
+ protocol;
5
+ hostname;
6
+ port;
7
+ path;
8
+ query;
9
+ headers;
10
+ username;
11
+ password;
12
+ fragment;
13
+ body;
14
+ constructor(options) {
15
+ this.method = options.method || "GET";
16
+ this.hostname = options.hostname || "localhost";
17
+ this.port = options.port;
18
+ this.query = options.query || {};
19
+ this.headers = options.headers || {};
20
+ this.body = options.body;
21
+ this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
22
+ this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
23
+ this.username = options.username;
24
+ this.password = options.password;
25
+ this.fragment = options.fragment;
26
+ }
27
+ static clone(request) {
28
+ const cloned = new _HttpRequest({
29
+ ...request,
30
+ headers: { ...request.headers }
31
+ });
32
+ if (cloned.query) {
33
+ cloned.query = cloneQuery(cloned.query);
34
+ }
35
+ return cloned;
36
+ }
37
+ static isInstance(request) {
38
+ if (!request) {
39
+ return false;
40
+ }
41
+ const req = request;
42
+ return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
43
+ }
44
+ clone() {
45
+ return _HttpRequest.clone(this);
46
+ }
47
+ };
48
+ function cloneQuery(query) {
49
+ return Object.keys(query).reduce((carry, paramName) => {
50
+ const param = query[paramName];
51
+ return {
52
+ ...carry,
53
+ [paramName]: Array.isArray(param) ? [...param] : param
54
+ };
55
+ }, {});
56
+ }
57
+
58
+ export {
59
+ HttpRequest
60
+ };
@@ -0,0 +1,28 @@
1
+ import {
2
+ ProviderError
3
+ } from "./chunk-THUA35UY.js";
4
+
5
+ // ../deployment-manager/dist/chunk-WJHOHQOX.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
+ };