cdk-cost-analyzer 0.1.46 → 0.1.48
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/.cdk-cost-analyzer-cache/metadata.json +8 -8
- package/dist/action/136.index.js +1040 -172
- package/dist/action/443.index.js +99 -124
- package/dist/action/579.index.js +16 -8
- package/dist/action/762.index.js +110 -152
- package/dist/action/998.index.js +100 -439
- package/dist/action/index.js +3 -3
- package/dist/releasetag.txt +1 -1
- package/package.json +35 -29
package/dist/action/998.index.js
CHANGED
|
@@ -3,320 +3,6 @@ exports.id = 998;
|
|
|
3
3
|
exports.ids = [998];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
-
/***/ 7523:
|
|
7
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var protocolHttp = __webpack_require__(2356);
|
|
12
|
-
var core = __webpack_require__(402);
|
|
13
|
-
var propertyProvider = __webpack_require__(1238);
|
|
14
|
-
var client = __webpack_require__(5152);
|
|
15
|
-
var signatureV4 = __webpack_require__(5118);
|
|
16
|
-
|
|
17
|
-
const getDateHeader = (response) => protocolHttp.HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
|
|
18
|
-
|
|
19
|
-
const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
|
|
20
|
-
|
|
21
|
-
const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
|
|
22
|
-
|
|
23
|
-
const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
|
|
24
|
-
const clockTimeInMs = Date.parse(clockTime);
|
|
25
|
-
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
|
|
26
|
-
return clockTimeInMs - Date.now();
|
|
27
|
-
}
|
|
28
|
-
return currentSystemClockOffset;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const throwSigningPropertyError = (name, property) => {
|
|
32
|
-
if (!property) {
|
|
33
|
-
throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
|
|
34
|
-
}
|
|
35
|
-
return property;
|
|
36
|
-
};
|
|
37
|
-
const validateSigningProperties = async (signingProperties) => {
|
|
38
|
-
const context = throwSigningPropertyError("context", signingProperties.context);
|
|
39
|
-
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
40
|
-
const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
|
|
41
|
-
const signerFunction = throwSigningPropertyError("signer", config.signer);
|
|
42
|
-
const signer = await signerFunction(authScheme);
|
|
43
|
-
const signingRegion = signingProperties?.signingRegion;
|
|
44
|
-
const signingRegionSet = signingProperties?.signingRegionSet;
|
|
45
|
-
const signingName = signingProperties?.signingName;
|
|
46
|
-
return {
|
|
47
|
-
config,
|
|
48
|
-
signer,
|
|
49
|
-
signingRegion,
|
|
50
|
-
signingRegionSet,
|
|
51
|
-
signingName,
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
class AwsSdkSigV4Signer {
|
|
55
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
56
|
-
if (!protocolHttp.HttpRequest.isInstance(httpRequest)) {
|
|
57
|
-
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
58
|
-
}
|
|
59
|
-
const validatedProps = await validateSigningProperties(signingProperties);
|
|
60
|
-
const { config, signer } = validatedProps;
|
|
61
|
-
let { signingRegion, signingName } = validatedProps;
|
|
62
|
-
const handlerExecutionContext = signingProperties.context;
|
|
63
|
-
if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) {
|
|
64
|
-
const [first, second] = handlerExecutionContext.authSchemes;
|
|
65
|
-
if (first?.name === "sigv4a" && second?.name === "sigv4") {
|
|
66
|
-
signingRegion = second?.signingRegion ?? signingRegion;
|
|
67
|
-
signingName = second?.signingName ?? signingName;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const signedRequest = await signer.sign(httpRequest, {
|
|
71
|
-
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
72
|
-
signingRegion: signingRegion,
|
|
73
|
-
signingService: signingName,
|
|
74
|
-
});
|
|
75
|
-
return signedRequest;
|
|
76
|
-
}
|
|
77
|
-
errorHandler(signingProperties) {
|
|
78
|
-
return (error) => {
|
|
79
|
-
const serverTime = error.ServerTime ?? getDateHeader(error.$response);
|
|
80
|
-
if (serverTime) {
|
|
81
|
-
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
82
|
-
const initialSystemClockOffset = config.systemClockOffset;
|
|
83
|
-
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
|
84
|
-
const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
|
|
85
|
-
if (clockSkewCorrected && error.$metadata) {
|
|
86
|
-
error.$metadata.clockSkewCorrected = true;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
throw error;
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
successHandler(httpResponse, signingProperties) {
|
|
93
|
-
const dateHeader = getDateHeader(httpResponse);
|
|
94
|
-
if (dateHeader) {
|
|
95
|
-
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
96
|
-
config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
const AWSSDKSigV4Signer = AwsSdkSigV4Signer;
|
|
101
|
-
|
|
102
|
-
class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
103
|
-
async sign(httpRequest, identity, signingProperties) {
|
|
104
|
-
if (!protocolHttp.HttpRequest.isInstance(httpRequest)) {
|
|
105
|
-
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
106
|
-
}
|
|
107
|
-
const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
|
|
108
|
-
const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
|
|
109
|
-
const multiRegionOverride = (configResolvedSigningRegionSet ??
|
|
110
|
-
signingRegionSet ?? [signingRegion]).join(",");
|
|
111
|
-
const signedRequest = await signer.sign(httpRequest, {
|
|
112
|
-
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
113
|
-
signingRegion: multiRegionOverride,
|
|
114
|
-
signingService: signingName,
|
|
115
|
-
});
|
|
116
|
-
return signedRequest;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
const getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
|
|
121
|
-
|
|
122
|
-
const getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
|
|
123
|
-
|
|
124
|
-
const NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
|
|
125
|
-
const NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
|
|
126
|
-
const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
|
|
127
|
-
environmentVariableSelector: (env, options) => {
|
|
128
|
-
if (options?.signingName) {
|
|
129
|
-
const bearerTokenKey = getBearerTokenEnvKey(options.signingName);
|
|
130
|
-
if (bearerTokenKey in env)
|
|
131
|
-
return ["httpBearerAuth"];
|
|
132
|
-
}
|
|
133
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env))
|
|
134
|
-
return undefined;
|
|
135
|
-
return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]);
|
|
136
|
-
},
|
|
137
|
-
configFileSelector: (profile) => {
|
|
138
|
-
if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile))
|
|
139
|
-
return undefined;
|
|
140
|
-
return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]);
|
|
141
|
-
},
|
|
142
|
-
default: [],
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
const resolveAwsSdkSigV4AConfig = (config) => {
|
|
146
|
-
config.sigv4aSigningRegionSet = core.normalizeProvider(config.sigv4aSigningRegionSet);
|
|
147
|
-
return config;
|
|
148
|
-
};
|
|
149
|
-
const NODE_SIGV4A_CONFIG_OPTIONS = {
|
|
150
|
-
environmentVariableSelector(env) {
|
|
151
|
-
if (env.AWS_SIGV4A_SIGNING_REGION_SET) {
|
|
152
|
-
return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
|
|
153
|
-
}
|
|
154
|
-
throw new propertyProvider.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
|
|
155
|
-
tryNextLink: true,
|
|
156
|
-
});
|
|
157
|
-
},
|
|
158
|
-
configFileSelector(profile) {
|
|
159
|
-
if (profile.sigv4a_signing_region_set) {
|
|
160
|
-
return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
|
|
161
|
-
}
|
|
162
|
-
throw new propertyProvider.ProviderError("sigv4a_signing_region_set not set in profile.", {
|
|
163
|
-
tryNextLink: true,
|
|
164
|
-
});
|
|
165
|
-
},
|
|
166
|
-
default: undefined,
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
const resolveAwsSdkSigV4Config = (config) => {
|
|
170
|
-
let inputCredentials = config.credentials;
|
|
171
|
-
let isUserSupplied = !!config.credentials;
|
|
172
|
-
let resolvedCredentials = undefined;
|
|
173
|
-
Object.defineProperty(config, "credentials", {
|
|
174
|
-
set(credentials) {
|
|
175
|
-
if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) {
|
|
176
|
-
isUserSupplied = true;
|
|
177
|
-
}
|
|
178
|
-
inputCredentials = credentials;
|
|
179
|
-
const memoizedProvider = normalizeCredentialProvider(config, {
|
|
180
|
-
credentials: inputCredentials,
|
|
181
|
-
credentialDefaultProvider: config.credentialDefaultProvider,
|
|
182
|
-
});
|
|
183
|
-
const boundProvider = bindCallerConfig(config, memoizedProvider);
|
|
184
|
-
if (isUserSupplied && !boundProvider.attributed) {
|
|
185
|
-
const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null;
|
|
186
|
-
resolvedCredentials = async (options) => {
|
|
187
|
-
const creds = await boundProvider(options);
|
|
188
|
-
const attributedCreds = creds;
|
|
189
|
-
if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) {
|
|
190
|
-
return client.setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e");
|
|
191
|
-
}
|
|
192
|
-
return attributedCreds;
|
|
193
|
-
};
|
|
194
|
-
resolvedCredentials.memoized = boundProvider.memoized;
|
|
195
|
-
resolvedCredentials.configBound = boundProvider.configBound;
|
|
196
|
-
resolvedCredentials.attributed = true;
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
resolvedCredentials = boundProvider;
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
get() {
|
|
203
|
-
return resolvedCredentials;
|
|
204
|
-
},
|
|
205
|
-
enumerable: true,
|
|
206
|
-
configurable: true,
|
|
207
|
-
});
|
|
208
|
-
config.credentials = inputCredentials;
|
|
209
|
-
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
|
|
210
|
-
let signer;
|
|
211
|
-
if (config.signer) {
|
|
212
|
-
signer = core.normalizeProvider(config.signer);
|
|
213
|
-
}
|
|
214
|
-
else if (config.regionInfoProvider) {
|
|
215
|
-
signer = () => core.normalizeProvider(config.region)()
|
|
216
|
-
.then(async (region) => [
|
|
217
|
-
(await config.regionInfoProvider(region, {
|
|
218
|
-
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
219
|
-
useDualstackEndpoint: await config.useDualstackEndpoint(),
|
|
220
|
-
})) || {},
|
|
221
|
-
region,
|
|
222
|
-
])
|
|
223
|
-
.then(([regionInfo, region]) => {
|
|
224
|
-
const { signingRegion, signingService } = regionInfo;
|
|
225
|
-
config.signingRegion = config.signingRegion || signingRegion || region;
|
|
226
|
-
config.signingName = config.signingName || signingService || config.serviceId;
|
|
227
|
-
const params = {
|
|
228
|
-
...config,
|
|
229
|
-
credentials: config.credentials,
|
|
230
|
-
region: config.signingRegion,
|
|
231
|
-
service: config.signingName,
|
|
232
|
-
sha256,
|
|
233
|
-
uriEscapePath: signingEscapePath,
|
|
234
|
-
};
|
|
235
|
-
const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;
|
|
236
|
-
return new SignerCtor(params);
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
signer = async (authScheme) => {
|
|
241
|
-
authScheme = Object.assign({}, {
|
|
242
|
-
name: "sigv4",
|
|
243
|
-
signingName: config.signingName || config.defaultSigningName,
|
|
244
|
-
signingRegion: await core.normalizeProvider(config.region)(),
|
|
245
|
-
properties: {},
|
|
246
|
-
}, authScheme);
|
|
247
|
-
const signingRegion = authScheme.signingRegion;
|
|
248
|
-
const signingService = authScheme.signingName;
|
|
249
|
-
config.signingRegion = config.signingRegion || signingRegion;
|
|
250
|
-
config.signingName = config.signingName || signingService || config.serviceId;
|
|
251
|
-
const params = {
|
|
252
|
-
...config,
|
|
253
|
-
credentials: config.credentials,
|
|
254
|
-
region: config.signingRegion,
|
|
255
|
-
service: config.signingName,
|
|
256
|
-
sha256,
|
|
257
|
-
uriEscapePath: signingEscapePath,
|
|
258
|
-
};
|
|
259
|
-
const SignerCtor = config.signerConstructor || signatureV4.SignatureV4;
|
|
260
|
-
return new SignerCtor(params);
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
const resolvedConfig = Object.assign(config, {
|
|
264
|
-
systemClockOffset,
|
|
265
|
-
signingEscapePath,
|
|
266
|
-
signer,
|
|
267
|
-
});
|
|
268
|
-
return resolvedConfig;
|
|
269
|
-
};
|
|
270
|
-
const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
|
|
271
|
-
function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {
|
|
272
|
-
let credentialsProvider;
|
|
273
|
-
if (credentials) {
|
|
274
|
-
if (!credentials?.memoized) {
|
|
275
|
-
credentialsProvider = core.memoizeIdentityProvider(credentials, core.isIdentityExpired, core.doesIdentityRequireRefresh);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
credentialsProvider = credentials;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
if (credentialDefaultProvider) {
|
|
283
|
-
credentialsProvider = core.normalizeProvider(credentialDefaultProvider(Object.assign({}, config, {
|
|
284
|
-
parentClientConfig: config,
|
|
285
|
-
})));
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
credentialsProvider = async () => {
|
|
289
|
-
throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.");
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
credentialsProvider.memoized = true;
|
|
294
|
-
return credentialsProvider;
|
|
295
|
-
}
|
|
296
|
-
function bindCallerConfig(config, credentialsProvider) {
|
|
297
|
-
if (credentialsProvider.configBound) {
|
|
298
|
-
return credentialsProvider;
|
|
299
|
-
}
|
|
300
|
-
const fn = async (options) => credentialsProvider({ ...options, callerClientConfig: config });
|
|
301
|
-
fn.memoized = credentialsProvider.memoized;
|
|
302
|
-
fn.configBound = true;
|
|
303
|
-
return fn;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
exports.AWSSDKSigV4Signer = AWSSDKSigV4Signer;
|
|
307
|
-
exports.AwsSdkSigV4ASigner = AwsSdkSigV4ASigner;
|
|
308
|
-
exports.AwsSdkSigV4Signer = AwsSdkSigV4Signer;
|
|
309
|
-
exports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = NODE_AUTH_SCHEME_PREFERENCE_OPTIONS;
|
|
310
|
-
exports.NODE_SIGV4A_CONFIG_OPTIONS = NODE_SIGV4A_CONFIG_OPTIONS;
|
|
311
|
-
exports.getBearerTokenEnvKey = getBearerTokenEnvKey;
|
|
312
|
-
exports.resolveAWSSDKSigV4Config = resolveAWSSDKSigV4Config;
|
|
313
|
-
exports.resolveAwsSdkSigV4AConfig = resolveAwsSdkSigV4AConfig;
|
|
314
|
-
exports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config;
|
|
315
|
-
exports.validateSigningProperties = validateSigningProperties;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
/***/ }),
|
|
319
|
-
|
|
320
6
|
/***/ 998:
|
|
321
7
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
322
8
|
|
|
@@ -538,7 +224,7 @@ exports.SSOClient = sso.SSOClient;
|
|
|
538
224
|
|
|
539
225
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
540
226
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSSOHttpAuthSchemeProvider = exports.defaultSSOHttpAuthSchemeParametersProvider = void 0;
|
|
541
|
-
const
|
|
227
|
+
const httpAuthSchemes_1 = __webpack_require__(7523);
|
|
542
228
|
const util_middleware_1 = __webpack_require__(6324);
|
|
543
229
|
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
544
230
|
return {
|
|
@@ -585,7 +271,7 @@ const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
|
585
271
|
};
|
|
586
272
|
exports.defaultSSOHttpAuthSchemeProvider = defaultSSOHttpAuthSchemeProvider;
|
|
587
273
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
588
|
-
const config_0 = (0,
|
|
274
|
+
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
589
275
|
return Object.assign(config_0, {
|
|
590
276
|
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
591
277
|
});
|
|
@@ -593,6 +279,93 @@ const resolveHttpAuthSchemeConfig = (config) => {
|
|
|
593
279
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
594
280
|
|
|
595
281
|
|
|
282
|
+
/***/ }),
|
|
283
|
+
|
|
284
|
+
/***/ 9239:
|
|
285
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
289
|
+
exports.bdd = void 0;
|
|
290
|
+
const util_endpoints_1 = __webpack_require__(9674);
|
|
291
|
+
const k = "ref";
|
|
292
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
293
|
+
const _data = {
|
|
294
|
+
conditions: [
|
|
295
|
+
[c, [g]],
|
|
296
|
+
[c, j],
|
|
297
|
+
["aws.partition", j, d],
|
|
298
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
299
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
300
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
301
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
|
|
302
|
+
["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
|
|
303
|
+
],
|
|
304
|
+
results: [
|
|
305
|
+
[a],
|
|
306
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
307
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
308
|
+
[g, i],
|
|
309
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
310
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
311
|
+
["https://portal.sso.{Region}.amazonaws.com", i],
|
|
312
|
+
["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
313
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
314
|
+
["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
315
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
316
|
+
["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
317
|
+
[a, "Invalid Configuration: Missing Region"],
|
|
318
|
+
],
|
|
319
|
+
};
|
|
320
|
+
const root = 2;
|
|
321
|
+
const r = 100_000_000;
|
|
322
|
+
const nodes = new Int32Array([
|
|
323
|
+
-1,
|
|
324
|
+
1,
|
|
325
|
+
-1,
|
|
326
|
+
0,
|
|
327
|
+
13,
|
|
328
|
+
3,
|
|
329
|
+
1,
|
|
330
|
+
4,
|
|
331
|
+
r + 12,
|
|
332
|
+
2,
|
|
333
|
+
5,
|
|
334
|
+
r + 12,
|
|
335
|
+
3,
|
|
336
|
+
8,
|
|
337
|
+
6,
|
|
338
|
+
4,
|
|
339
|
+
7,
|
|
340
|
+
r + 11,
|
|
341
|
+
5,
|
|
342
|
+
r + 9,
|
|
343
|
+
r + 10,
|
|
344
|
+
4,
|
|
345
|
+
11,
|
|
346
|
+
9,
|
|
347
|
+
6,
|
|
348
|
+
10,
|
|
349
|
+
r + 8,
|
|
350
|
+
7,
|
|
351
|
+
r + 6,
|
|
352
|
+
r + 7,
|
|
353
|
+
5,
|
|
354
|
+
12,
|
|
355
|
+
r + 5,
|
|
356
|
+
6,
|
|
357
|
+
r + 4,
|
|
358
|
+
r + 5,
|
|
359
|
+
3,
|
|
360
|
+
r + 1,
|
|
361
|
+
14,
|
|
362
|
+
4,
|
|
363
|
+
r + 2,
|
|
364
|
+
r + 3,
|
|
365
|
+
]);
|
|
366
|
+
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
367
|
+
|
|
368
|
+
|
|
596
369
|
/***/ }),
|
|
597
370
|
|
|
598
371
|
/***/ 5074:
|
|
@@ -603,13 +376,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
603
376
|
exports.defaultEndpointResolver = void 0;
|
|
604
377
|
const util_endpoints_1 = __webpack_require__(3068);
|
|
605
378
|
const util_endpoints_2 = __webpack_require__(9674);
|
|
606
|
-
const
|
|
379
|
+
const bdd_1 = __webpack_require__(9239);
|
|
607
380
|
const cache = new util_endpoints_2.EndpointCache({
|
|
608
381
|
size: 50,
|
|
609
382
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
610
383
|
});
|
|
611
384
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
612
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.
|
|
385
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
613
386
|
endpointParams: endpointParams,
|
|
614
387
|
logger: context.logger,
|
|
615
388
|
}));
|
|
@@ -618,119 +391,6 @@ exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
|
618
391
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
619
392
|
|
|
620
393
|
|
|
621
|
-
/***/ }),
|
|
622
|
-
|
|
623
|
-
/***/ 203:
|
|
624
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
628
|
-
exports.ruleSet = void 0;
|
|
629
|
-
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
630
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, type: "string" }, j = { [u]: true, default: false, type: "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
|
631
|
-
const _data = {
|
|
632
|
-
version: "1.0",
|
|
633
|
-
parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
|
|
634
|
-
rules: [
|
|
635
|
-
{
|
|
636
|
-
conditions: [{ [v]: b, [w]: [k] }],
|
|
637
|
-
rules: [
|
|
638
|
-
{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
639
|
-
{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
|
640
|
-
{ endpoint: { url: k, properties: n, headers: n }, type: e },
|
|
641
|
-
],
|
|
642
|
-
type: f,
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
conditions: [{ [v]: b, [w]: t }],
|
|
646
|
-
rules: [
|
|
647
|
-
{
|
|
648
|
-
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
|
649
|
-
rules: [
|
|
650
|
-
{
|
|
651
|
-
conditions: [l, m],
|
|
652
|
-
rules: [
|
|
653
|
-
{
|
|
654
|
-
conditions: [{ [v]: c, [w]: [a, o] }, q],
|
|
655
|
-
rules: [
|
|
656
|
-
{
|
|
657
|
-
endpoint: {
|
|
658
|
-
url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
659
|
-
properties: n,
|
|
660
|
-
headers: n,
|
|
661
|
-
},
|
|
662
|
-
type: e,
|
|
663
|
-
},
|
|
664
|
-
],
|
|
665
|
-
type: f,
|
|
666
|
-
},
|
|
667
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
|
|
668
|
-
],
|
|
669
|
-
type: f,
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
conditions: r,
|
|
673
|
-
rules: [
|
|
674
|
-
{
|
|
675
|
-
conditions: [{ [v]: c, [w]: [o, a] }],
|
|
676
|
-
rules: [
|
|
677
|
-
{
|
|
678
|
-
conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
|
|
679
|
-
endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n },
|
|
680
|
-
type: e,
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
endpoint: {
|
|
684
|
-
url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
685
|
-
properties: n,
|
|
686
|
-
headers: n,
|
|
687
|
-
},
|
|
688
|
-
type: e,
|
|
689
|
-
},
|
|
690
|
-
],
|
|
691
|
-
type: f,
|
|
692
|
-
},
|
|
693
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
|
694
|
-
],
|
|
695
|
-
type: f,
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
conditions: s,
|
|
699
|
-
rules: [
|
|
700
|
-
{
|
|
701
|
-
conditions: [q],
|
|
702
|
-
rules: [
|
|
703
|
-
{
|
|
704
|
-
endpoint: {
|
|
705
|
-
url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
706
|
-
properties: n,
|
|
707
|
-
headers: n,
|
|
708
|
-
},
|
|
709
|
-
type: e,
|
|
710
|
-
},
|
|
711
|
-
],
|
|
712
|
-
type: f,
|
|
713
|
-
},
|
|
714
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
|
715
|
-
],
|
|
716
|
-
type: f,
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
|
720
|
-
type: e,
|
|
721
|
-
},
|
|
722
|
-
],
|
|
723
|
-
type: f,
|
|
724
|
-
},
|
|
725
|
-
],
|
|
726
|
-
type: f,
|
|
727
|
-
},
|
|
728
|
-
{ error: "Invalid Configuration: Missing Region", type: d },
|
|
729
|
-
],
|
|
730
|
-
};
|
|
731
|
-
exports.ruleSet = _data;
|
|
732
|
-
|
|
733
|
-
|
|
734
394
|
/***/ }),
|
|
735
395
|
|
|
736
396
|
/***/ 2579:
|
|
@@ -990,7 +650,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
990
650
|
exports.getRuntimeConfig = void 0;
|
|
991
651
|
const tslib_1 = __webpack_require__(1860);
|
|
992
652
|
const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
|
|
993
|
-
const
|
|
653
|
+
const client_1 = __webpack_require__(5152);
|
|
654
|
+
const httpAuthSchemes_1 = __webpack_require__(7523);
|
|
994
655
|
const util_user_agent_node_1 = __webpack_require__(1656);
|
|
995
656
|
const config_resolver_1 = __webpack_require__(9316);
|
|
996
657
|
const hash_node_1 = __webpack_require__(5092);
|
|
@@ -1007,7 +668,7 @@ const getRuntimeConfig = (config) => {
|
|
|
1007
668
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
1008
669
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
1009
670
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
1010
|
-
(0,
|
|
671
|
+
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
1011
672
|
const loaderConfig = {
|
|
1012
673
|
profile: config?.profile,
|
|
1013
674
|
logger: clientSharedValues.logger,
|
|
@@ -1017,7 +678,7 @@ const getRuntimeConfig = (config) => {
|
|
|
1017
678
|
...config,
|
|
1018
679
|
runtime: "node",
|
|
1019
680
|
defaultsMode,
|
|
1020
|
-
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(
|
|
681
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
1021
682
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
1022
683
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
1023
684
|
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
@@ -1048,9 +709,9 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
|
|
1048
709
|
|
|
1049
710
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1050
711
|
exports.getRuntimeConfig = void 0;
|
|
1051
|
-
const
|
|
712
|
+
const httpAuthSchemes_1 = __webpack_require__(7523);
|
|
1052
713
|
const protocols_1 = __webpack_require__(7288);
|
|
1053
|
-
const
|
|
714
|
+
const core_1 = __webpack_require__(402);
|
|
1054
715
|
const smithy_client_1 = __webpack_require__(1411);
|
|
1055
716
|
const url_parser_1 = __webpack_require__(4494);
|
|
1056
717
|
const util_base64_1 = __webpack_require__(8385);
|
|
@@ -1071,12 +732,12 @@ const getRuntimeConfig = (config) => {
|
|
|
1071
732
|
{
|
|
1072
733
|
schemeId: "aws.auth#sigv4",
|
|
1073
734
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
1074
|
-
signer: new
|
|
735
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
1075
736
|
},
|
|
1076
737
|
{
|
|
1077
738
|
schemeId: "smithy.api#noAuth",
|
|
1078
739
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
1079
|
-
signer: new
|
|
740
|
+
signer: new core_1.NoAuthSigner(),
|
|
1080
741
|
},
|
|
1081
742
|
],
|
|
1082
743
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
@@ -1362,7 +1023,7 @@ exports.nodeProvider = nodeProvider;
|
|
|
1362
1023
|
/***/ 9955:
|
|
1363
1024
|
/***/ ((module) => {
|
|
1364
1025
|
|
|
1365
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.
|
|
1026
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.997.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=20.0.0"},"sideEffects":false,"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.2","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-user-agent":"^3.972.32","@aws-sdk/region-config-resolver":"^3.972.12","@aws-sdk/signature-v4-multi-region":"^3.996.19","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.7","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.18","@smithy/config-resolver":"^4.4.16","@smithy/core":"^3.23.15","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.30","@smithy/middleware-retry":"^4.5.3","@smithy/middleware-serde":"^4.2.18","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.5.3","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.11","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.47","@smithy/util-defaults-mode-node":"^4.2.52","@smithy/util-endpoints":"^3.4.1","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.2","@smithy/util-utf8":"^4.2.2","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./package.json":"./package.json","./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"},"./signin":{"types":"./dist-types/submodules/signin/index.d.ts","module":"./dist-es/submodules/signin/index.js","node":"./dist-cjs/submodules/signin/index.js","import":"./dist-es/submodules/signin/index.js","require":"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{"types":"./dist-types/submodules/cognito-identity/index.d.ts","module":"./dist-es/submodules/cognito-identity/index.js","node":"./dist-cjs/submodules/cognito-identity/index.js","import":"./dist-es/submodules/cognito-identity/index.js","require":"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{"types":"./dist-types/submodules/sso/index.d.ts","module":"./dist-es/submodules/sso/index.js","node":"./dist-cjs/submodules/sso/index.js","import":"./dist-es/submodules/sso/index.js","require":"./dist-cjs/submodules/sso/index.js"}}}');
|
|
1366
1027
|
|
|
1367
1028
|
/***/ })
|
|
1368
1029
|
|