@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,655 @@
1
+ import {
2
+ loadRestJsonErrorCode,
3
+ parseJsonBody,
4
+ parseJsonErrorBody
5
+ } from "./chunk-AEOST5WF.js";
6
+ import {
7
+ AwsSdkSigV4Signer,
8
+ DEFAULT_RETRY_MODE,
9
+ DefaultIdentityProviderConfig,
10
+ EndpointCache,
11
+ Hash,
12
+ NODE_APP_ID_CONFIG_OPTIONS,
13
+ NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
14
+ NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
15
+ NODE_REGION_CONFIG_FILE_OPTIONS,
16
+ NODE_REGION_CONFIG_OPTIONS,
17
+ NODE_RETRY_MODE_CONFIG_OPTIONS,
18
+ NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
19
+ NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
20
+ NoAuthSigner,
21
+ awsEndpointFunctions,
22
+ calculateBodyLength,
23
+ createDefaultUserAgentProvider,
24
+ customEndpointFunctions,
25
+ emitWarningIfUnsupportedVersion,
26
+ getAwsRegionExtensionConfiguration,
27
+ getContentLengthPlugin,
28
+ getEndpointPlugin,
29
+ getHostHeaderPlugin,
30
+ getHttpAuthSchemeEndpointRuleSetPlugin,
31
+ getHttpSigningPlugin,
32
+ getLoggerPlugin,
33
+ getRecursionDetectionPlugin,
34
+ getRetryPlugin,
35
+ getSerdePlugin,
36
+ getSmithyContext,
37
+ getUserAgentPlugin,
38
+ normalizeProvider,
39
+ resolveAwsRegionExtensionConfiguration,
40
+ resolveAwsSdkSigV4Config,
41
+ resolveDefaultsModeConfig,
42
+ resolveEndpoint,
43
+ resolveEndpointConfig,
44
+ resolveHostHeaderConfig,
45
+ resolveRegionConfig,
46
+ resolveRetryConfig,
47
+ resolveUserAgentConfig
48
+ } from "./chunk-5W7B34BN.js";
49
+ import {
50
+ loadConfig,
51
+ parseUrl
52
+ } from "./chunk-WCHHWTND.js";
53
+ import "./chunk-KGNTV362.js";
54
+ import {
55
+ Client,
56
+ Command,
57
+ NoOpLogger,
58
+ NodeHttpHandler,
59
+ SENSITIVE_STRING,
60
+ ServiceException,
61
+ _json,
62
+ decorateServiceException,
63
+ emitWarningIfUnsupportedVersion as emitWarningIfUnsupportedVersion2,
64
+ expectNonNull,
65
+ expectObject,
66
+ expectString,
67
+ fromBase64,
68
+ fromUtf8,
69
+ getDefaultExtensionConfiguration,
70
+ getHttpHandlerExtensionConfiguration,
71
+ isSerializableHeaderValue,
72
+ loadConfigsForDefaultMode,
73
+ map,
74
+ requestBuilder,
75
+ resolveDefaultRuntimeConfig,
76
+ resolveHttpHandlerRuntimeConfig,
77
+ streamCollector,
78
+ take,
79
+ toBase64,
80
+ toUtf8,
81
+ withBaseException
82
+ } from "./chunk-VOTRVWIB.js";
83
+ import "./chunk-ITI6QA2Q.js";
84
+ import "./chunk-M5GUUX64.js";
85
+ import "./chunk-W3VXP3A3.js";
86
+ import "./chunk-JSBRDJBE.js";
87
+
88
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
89
+ var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
90
+ return {
91
+ operation: getSmithyContext(context).operation,
92
+ region: await normalizeProvider(config.region)() || (() => {
93
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
94
+ })()
95
+ };
96
+ };
97
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
98
+ return {
99
+ schemeId: "aws.auth#sigv4",
100
+ signingProperties: {
101
+ name: "awsssoportal",
102
+ region: authParameters.region
103
+ },
104
+ propertiesExtractor: (config, context) => ({
105
+ signingProperties: {
106
+ config,
107
+ context
108
+ }
109
+ })
110
+ };
111
+ }
112
+ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
113
+ return {
114
+ schemeId: "smithy.api#noAuth"
115
+ };
116
+ }
117
+ var defaultSSOHttpAuthSchemeProvider = (authParameters) => {
118
+ const options = [];
119
+ switch (authParameters.operation) {
120
+ case "GetRoleCredentials": {
121
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
122
+ break;
123
+ }
124
+ case "ListAccountRoles": {
125
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
126
+ break;
127
+ }
128
+ case "ListAccounts": {
129
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
130
+ break;
131
+ }
132
+ case "Logout": {
133
+ options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
134
+ break;
135
+ }
136
+ default: {
137
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
138
+ }
139
+ }
140
+ return options;
141
+ };
142
+ var resolveHttpAuthSchemeConfig = (config) => {
143
+ const config_0 = resolveAwsSdkSigV4Config(config);
144
+ return Object.assign(config_0, {
145
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? [])
146
+ });
147
+ };
148
+
149
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js
150
+ var resolveClientEndpointParameters = (options) => {
151
+ return Object.assign(options, {
152
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
153
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
154
+ defaultSigningName: "awsssoportal"
155
+ });
156
+ };
157
+ var commonParams = {
158
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
159
+ Endpoint: { type: "builtInParams", name: "endpoint" },
160
+ Region: { type: "builtInParams", name: "region" },
161
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
162
+ };
163
+
164
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/package.json
165
+ var package_default = {
166
+ name: "@aws-sdk/client-sso",
167
+ description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
168
+ version: "3.817.0",
169
+ scripts: {
170
+ build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
171
+ "build:cjs": "node ../../scripts/compilation/inline client-sso",
172
+ "build:es": "tsc -p tsconfig.es.json",
173
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
174
+ "build:types": "tsc -p tsconfig.types.json",
175
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
176
+ clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
177
+ "extract:docs": "api-extractor run --local",
178
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo sso"
179
+ },
180
+ main: "./dist-cjs/index.js",
181
+ types: "./dist-types/index.d.ts",
182
+ module: "./dist-es/index.js",
183
+ sideEffects: false,
184
+ dependencies: {
185
+ "@aws-crypto/sha256-browser": "5.2.0",
186
+ "@aws-crypto/sha256-js": "5.2.0",
187
+ "@aws-sdk/core": "3.816.0",
188
+ "@aws-sdk/middleware-host-header": "3.804.0",
189
+ "@aws-sdk/middleware-logger": "3.804.0",
190
+ "@aws-sdk/middleware-recursion-detection": "3.804.0",
191
+ "@aws-sdk/middleware-user-agent": "3.816.0",
192
+ "@aws-sdk/region-config-resolver": "3.808.0",
193
+ "@aws-sdk/types": "3.804.0",
194
+ "@aws-sdk/util-endpoints": "3.808.0",
195
+ "@aws-sdk/util-user-agent-browser": "3.804.0",
196
+ "@aws-sdk/util-user-agent-node": "3.816.0",
197
+ "@smithy/config-resolver": "^4.1.2",
198
+ "@smithy/core": "^3.3.3",
199
+ "@smithy/fetch-http-handler": "^5.0.2",
200
+ "@smithy/hash-node": "^4.0.2",
201
+ "@smithy/invalid-dependency": "^4.0.2",
202
+ "@smithy/middleware-content-length": "^4.0.2",
203
+ "@smithy/middleware-endpoint": "^4.1.6",
204
+ "@smithy/middleware-retry": "^4.1.7",
205
+ "@smithy/middleware-serde": "^4.0.5",
206
+ "@smithy/middleware-stack": "^4.0.2",
207
+ "@smithy/node-config-provider": "^4.1.1",
208
+ "@smithy/node-http-handler": "^4.0.4",
209
+ "@smithy/protocol-http": "^5.1.0",
210
+ "@smithy/smithy-client": "^4.2.6",
211
+ "@smithy/types": "^4.2.0",
212
+ "@smithy/url-parser": "^4.0.2",
213
+ "@smithy/util-base64": "^4.0.0",
214
+ "@smithy/util-body-length-browser": "^4.0.0",
215
+ "@smithy/util-body-length-node": "^4.0.0",
216
+ "@smithy/util-defaults-mode-browser": "^4.0.14",
217
+ "@smithy/util-defaults-mode-node": "^4.0.14",
218
+ "@smithy/util-endpoints": "^3.0.4",
219
+ "@smithy/util-middleware": "^4.0.2",
220
+ "@smithy/util-retry": "^4.0.3",
221
+ "@smithy/util-utf8": "^4.0.0",
222
+ tslib: "^2.6.2"
223
+ },
224
+ devDependencies: {
225
+ "@tsconfig/node18": "18.2.4",
226
+ "@types/node": "^18.19.69",
227
+ concurrently: "7.0.0",
228
+ "downlevel-dts": "0.10.1",
229
+ rimraf: "3.0.2",
230
+ typescript: "~5.8.3"
231
+ },
232
+ engines: {
233
+ node: ">=18.0.0"
234
+ },
235
+ typesVersions: {
236
+ "<4.0": {
237
+ "dist-types/*": [
238
+ "dist-types/ts3.4/*"
239
+ ]
240
+ }
241
+ },
242
+ files: [
243
+ "dist-*/**"
244
+ ],
245
+ author: {
246
+ name: "AWS SDK for JavaScript Team",
247
+ url: "https://aws.amazon.com/javascript/"
248
+ },
249
+ license: "Apache-2.0",
250
+ browser: {
251
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
252
+ },
253
+ "react-native": {
254
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
255
+ },
256
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",
257
+ repository: {
258
+ type: "git",
259
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
260
+ directory: "clients/client-sso"
261
+ }
262
+ };
263
+
264
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
265
+ var u = "required";
266
+ var v = "fn";
267
+ var w = "argv";
268
+ var x = "ref";
269
+ var a = true;
270
+ var b = "isSet";
271
+ var c = "booleanEquals";
272
+ var d = "error";
273
+ var e = "endpoint";
274
+ var f = "tree";
275
+ var g = "PartitionResult";
276
+ var h = "getAttr";
277
+ var i = { [u]: false, "type": "String" };
278
+ var j = { [u]: true, "default": false, "type": "Boolean" };
279
+ var k = { [x]: "Endpoint" };
280
+ var l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] };
281
+ var m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] };
282
+ var n = {};
283
+ var o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] };
284
+ var p = { [x]: g };
285
+ var q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] };
286
+ var r = [l];
287
+ var s = [m];
288
+ var t = [{ [x]: "Region" }];
289
+ var _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
290
+ var ruleSet = _data;
291
+
292
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js
293
+ var cache = new EndpointCache({
294
+ size: 50,
295
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"]
296
+ });
297
+ var defaultEndpointResolver = (endpointParams, context = {}) => {
298
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
299
+ endpointParams,
300
+ logger: context.logger
301
+ }));
302
+ };
303
+ customEndpointFunctions.aws = awsEndpointFunctions;
304
+
305
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
306
+ var getRuntimeConfig = (config) => {
307
+ return {
308
+ apiVersion: "2019-06-10",
309
+ base64Decoder: config?.base64Decoder ?? fromBase64,
310
+ base64Encoder: config?.base64Encoder ?? toBase64,
311
+ disableHostPrefix: config?.disableHostPrefix ?? false,
312
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
313
+ extensions: config?.extensions ?? [],
314
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider,
315
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
316
+ {
317
+ schemeId: "aws.auth#sigv4",
318
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
319
+ signer: new AwsSdkSigV4Signer()
320
+ },
321
+ {
322
+ schemeId: "smithy.api#noAuth",
323
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
324
+ signer: new NoAuthSigner()
325
+ }
326
+ ],
327
+ logger: config?.logger ?? new NoOpLogger(),
328
+ serviceId: config?.serviceId ?? "SSO",
329
+ urlParser: config?.urlParser ?? parseUrl,
330
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
331
+ utf8Encoder: config?.utf8Encoder ?? toUtf8
332
+ };
333
+ };
334
+
335
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
336
+ var getRuntimeConfig2 = (config) => {
337
+ emitWarningIfUnsupportedVersion2(process.version);
338
+ const defaultsMode = resolveDefaultsModeConfig(config);
339
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
340
+ const clientSharedValues = getRuntimeConfig(config);
341
+ emitWarningIfUnsupportedVersion(process.version);
342
+ const loaderConfig = {
343
+ profile: config?.profile,
344
+ logger: clientSharedValues.logger
345
+ };
346
+ return {
347
+ ...clientSharedValues,
348
+ ...config,
349
+ runtime: "node",
350
+ defaultsMode,
351
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
352
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
353
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }),
354
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
355
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
356
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
357
+ retryMode: config?.retryMode ?? loadConfig({
358
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
359
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE
360
+ }, config),
361
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
362
+ streamCollector: config?.streamCollector ?? streamCollector,
363
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
364
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
365
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig)
366
+ };
367
+ };
368
+
369
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js
370
+ var getHttpAuthExtensionConfiguration = (runtimeConfig) => {
371
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
372
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
373
+ let _credentials = runtimeConfig.credentials;
374
+ return {
375
+ setHttpAuthScheme(httpAuthScheme) {
376
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
377
+ if (index === -1) {
378
+ _httpAuthSchemes.push(httpAuthScheme);
379
+ } else {
380
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
381
+ }
382
+ },
383
+ httpAuthSchemes() {
384
+ return _httpAuthSchemes;
385
+ },
386
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
387
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
388
+ },
389
+ httpAuthSchemeProvider() {
390
+ return _httpAuthSchemeProvider;
391
+ },
392
+ setCredentials(credentials) {
393
+ _credentials = credentials;
394
+ },
395
+ credentials() {
396
+ return _credentials;
397
+ }
398
+ };
399
+ };
400
+ var resolveHttpAuthRuntimeConfig = (config) => {
401
+ return {
402
+ httpAuthSchemes: config.httpAuthSchemes(),
403
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
404
+ credentials: config.credentials()
405
+ };
406
+ };
407
+
408
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js
409
+ var resolveRuntimeExtensions = (runtimeConfig, extensions) => {
410
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
411
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
412
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
413
+ };
414
+
415
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
416
+ var SSOClient = class extends Client {
417
+ config;
418
+ constructor(...[configuration]) {
419
+ const _config_0 = getRuntimeConfig2(configuration || {});
420
+ super(_config_0);
421
+ this.initConfig = _config_0;
422
+ const _config_1 = resolveClientEndpointParameters(_config_0);
423
+ const _config_2 = resolveUserAgentConfig(_config_1);
424
+ const _config_3 = resolveRetryConfig(_config_2);
425
+ const _config_4 = resolveRegionConfig(_config_3);
426
+ const _config_5 = resolveHostHeaderConfig(_config_4);
427
+ const _config_6 = resolveEndpointConfig(_config_5);
428
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
429
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
430
+ this.config = _config_8;
431
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
432
+ this.middlewareStack.use(getRetryPlugin(this.config));
433
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
434
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
435
+ this.middlewareStack.use(getLoggerPlugin(this.config));
436
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
437
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
438
+ httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider,
439
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
440
+ "aws.auth#sigv4": config.credentials
441
+ })
442
+ }));
443
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
444
+ }
445
+ destroy() {
446
+ super.destroy();
447
+ }
448
+ };
449
+
450
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js
451
+ var SSOServiceException = class _SSOServiceException extends ServiceException {
452
+ constructor(options) {
453
+ super(options);
454
+ Object.setPrototypeOf(this, _SSOServiceException.prototype);
455
+ }
456
+ };
457
+
458
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js
459
+ var InvalidRequestException = class _InvalidRequestException extends SSOServiceException {
460
+ name = "InvalidRequestException";
461
+ $fault = "client";
462
+ constructor(opts) {
463
+ super({
464
+ name: "InvalidRequestException",
465
+ $fault: "client",
466
+ ...opts
467
+ });
468
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
469
+ }
470
+ };
471
+ var ResourceNotFoundException = class _ResourceNotFoundException extends SSOServiceException {
472
+ name = "ResourceNotFoundException";
473
+ $fault = "client";
474
+ constructor(opts) {
475
+ super({
476
+ name: "ResourceNotFoundException",
477
+ $fault: "client",
478
+ ...opts
479
+ });
480
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
481
+ }
482
+ };
483
+ var TooManyRequestsException = class _TooManyRequestsException extends SSOServiceException {
484
+ name = "TooManyRequestsException";
485
+ $fault = "client";
486
+ constructor(opts) {
487
+ super({
488
+ name: "TooManyRequestsException",
489
+ $fault: "client",
490
+ ...opts
491
+ });
492
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
493
+ }
494
+ };
495
+ var UnauthorizedException = class _UnauthorizedException extends SSOServiceException {
496
+ name = "UnauthorizedException";
497
+ $fault = "client";
498
+ constructor(opts) {
499
+ super({
500
+ name: "UnauthorizedException",
501
+ $fault: "client",
502
+ ...opts
503
+ });
504
+ Object.setPrototypeOf(this, _UnauthorizedException.prototype);
505
+ }
506
+ };
507
+ var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({
508
+ ...obj,
509
+ ...obj.accessToken && { accessToken: SENSITIVE_STRING }
510
+ });
511
+ var RoleCredentialsFilterSensitiveLog = (obj) => ({
512
+ ...obj,
513
+ ...obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING },
514
+ ...obj.sessionToken && { sessionToken: SENSITIVE_STRING }
515
+ });
516
+ var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
517
+ ...obj,
518
+ ...obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }
519
+ });
520
+
521
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
522
+ var se_GetRoleCredentialsCommand = async (input, context) => {
523
+ const b2 = requestBuilder(input, context);
524
+ const headers = map({}, isSerializableHeaderValue, {
525
+ [_xasbt]: input[_aT]
526
+ });
527
+ b2.bp("/federation/credentials");
528
+ const query = map({
529
+ [_rn]: [, expectNonNull(input[_rN], `roleName`)],
530
+ [_ai]: [, expectNonNull(input[_aI], `accountId`)]
531
+ });
532
+ let body;
533
+ b2.m("GET").h(headers).q(query).b(body);
534
+ return b2.build();
535
+ };
536
+ var de_GetRoleCredentialsCommand = async (output, context) => {
537
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
538
+ return de_CommandError(output, context);
539
+ }
540
+ const contents = map({
541
+ $metadata: deserializeMetadata(output)
542
+ });
543
+ const data = expectNonNull(expectObject(await parseJsonBody(output.body, context)), "body");
544
+ const doc = take(data, {
545
+ roleCredentials: _json
546
+ });
547
+ Object.assign(contents, doc);
548
+ return contents;
549
+ };
550
+ var de_CommandError = async (output, context) => {
551
+ const parsedOutput = {
552
+ ...output,
553
+ body: await parseJsonErrorBody(output.body, context)
554
+ };
555
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
556
+ switch (errorCode) {
557
+ case "InvalidRequestException":
558
+ case "com.amazonaws.sso#InvalidRequestException":
559
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
560
+ case "ResourceNotFoundException":
561
+ case "com.amazonaws.sso#ResourceNotFoundException":
562
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
563
+ case "TooManyRequestsException":
564
+ case "com.amazonaws.sso#TooManyRequestsException":
565
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
566
+ case "UnauthorizedException":
567
+ case "com.amazonaws.sso#UnauthorizedException":
568
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
569
+ default:
570
+ const parsedBody = parsedOutput.body;
571
+ return throwDefaultError({
572
+ output,
573
+ parsedBody,
574
+ errorCode
575
+ });
576
+ }
577
+ };
578
+ var throwDefaultError = withBaseException(SSOServiceException);
579
+ var de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
580
+ const contents = map({});
581
+ const data = parsedOutput.body;
582
+ const doc = take(data, {
583
+ message: expectString
584
+ });
585
+ Object.assign(contents, doc);
586
+ const exception = new InvalidRequestException({
587
+ $metadata: deserializeMetadata(parsedOutput),
588
+ ...contents
589
+ });
590
+ return decorateServiceException(exception, parsedOutput.body);
591
+ };
592
+ var de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
593
+ const contents = map({});
594
+ const data = parsedOutput.body;
595
+ const doc = take(data, {
596
+ message: expectString
597
+ });
598
+ Object.assign(contents, doc);
599
+ const exception = new ResourceNotFoundException({
600
+ $metadata: deserializeMetadata(parsedOutput),
601
+ ...contents
602
+ });
603
+ return decorateServiceException(exception, parsedOutput.body);
604
+ };
605
+ var de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
606
+ const contents = map({});
607
+ const data = parsedOutput.body;
608
+ const doc = take(data, {
609
+ message: expectString
610
+ });
611
+ Object.assign(contents, doc);
612
+ const exception = new TooManyRequestsException({
613
+ $metadata: deserializeMetadata(parsedOutput),
614
+ ...contents
615
+ });
616
+ return decorateServiceException(exception, parsedOutput.body);
617
+ };
618
+ var de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
619
+ const contents = map({});
620
+ const data = parsedOutput.body;
621
+ const doc = take(data, {
622
+ message: expectString
623
+ });
624
+ Object.assign(contents, doc);
625
+ const exception = new UnauthorizedException({
626
+ $metadata: deserializeMetadata(parsedOutput),
627
+ ...contents
628
+ });
629
+ return decorateServiceException(exception, parsedOutput.body);
630
+ };
631
+ var deserializeMetadata = (output) => ({
632
+ httpStatusCode: output.statusCode,
633
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
634
+ extendedRequestId: output.headers["x-amz-id-2"],
635
+ cfId: output.headers["x-amz-cf-id"]
636
+ });
637
+ var _aI = "accountId";
638
+ var _aT = "accessToken";
639
+ var _ai = "account_id";
640
+ var _rN = "roleName";
641
+ var _rn = "role_name";
642
+ var _xasbt = "x-amz-sso_bearer_token";
643
+
644
+ // ../../.yarn/cache/@aws-sdk-client-sso-npm-3.817.0-e8312d2b2b-0ae0b0ab80.zip/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js
645
+ var GetRoleCredentialsCommand = class extends Command.classBuilder().ep(commonParams).m(function(Command2, cs, config, o2) {
646
+ return [
647
+ getSerdePlugin(config, this.serialize, this.deserialize),
648
+ getEndpointPlugin(config, Command2.getEndpointParameterInstructions())
649
+ ];
650
+ }).s("SWBPortalService", "GetRoleCredentials", {}).n("SSOClient", "GetRoleCredentialsCommand").f(GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog).ser(se_GetRoleCredentialsCommand).de(de_GetRoleCredentialsCommand).build() {
651
+ };
652
+ export {
653
+ GetRoleCredentialsCommand,
654
+ SSOClient
655
+ };