cdk-cost-analyzer 0.1.45 → 0.1.47
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 +14 -13
- package/dist/action/443.index.js +10 -9
- package/dist/action/762.index.js +11 -10
- package/dist/action/998.index.js +11 -324
- package/dist/action/config/types.d.ts +9 -0
- package/dist/action/index.js +3 -3
- package/dist/action/pricing/calculators/CloudWatchCalculator.d.ts +51 -0
- package/dist/config/types.d.ts +9 -0
- package/dist/config/types.js +1 -1
- package/dist/pricing/PricingService.js +5 -1
- package/dist/pricing/calculators/CloudWatchCalculator.d.ts +51 -0
- package/dist/pricing/calculators/CloudWatchCalculator.js +279 -0
- 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
|
});
|
|
@@ -990,7 +676,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
990
676
|
exports.getRuntimeConfig = void 0;
|
|
991
677
|
const tslib_1 = __webpack_require__(1860);
|
|
992
678
|
const package_json_1 = tslib_1.__importDefault(__webpack_require__(9955));
|
|
993
|
-
const
|
|
679
|
+
const client_1 = __webpack_require__(5152);
|
|
680
|
+
const httpAuthSchemes_1 = __webpack_require__(7523);
|
|
994
681
|
const util_user_agent_node_1 = __webpack_require__(1656);
|
|
995
682
|
const config_resolver_1 = __webpack_require__(9316);
|
|
996
683
|
const hash_node_1 = __webpack_require__(5092);
|
|
@@ -1007,7 +694,7 @@ const getRuntimeConfig = (config) => {
|
|
|
1007
694
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
1008
695
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
1009
696
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
1010
|
-
(0,
|
|
697
|
+
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
1011
698
|
const loaderConfig = {
|
|
1012
699
|
profile: config?.profile,
|
|
1013
700
|
logger: clientSharedValues.logger,
|
|
@@ -1017,7 +704,7 @@ const getRuntimeConfig = (config) => {
|
|
|
1017
704
|
...config,
|
|
1018
705
|
runtime: "node",
|
|
1019
706
|
defaultsMode,
|
|
1020
|
-
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(
|
|
707
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
1021
708
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
1022
709
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
1023
710
|
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
@@ -1048,9 +735,9 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
|
|
1048
735
|
|
|
1049
736
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1050
737
|
exports.getRuntimeConfig = void 0;
|
|
1051
|
-
const
|
|
738
|
+
const httpAuthSchemes_1 = __webpack_require__(7523);
|
|
1052
739
|
const protocols_1 = __webpack_require__(7288);
|
|
1053
|
-
const
|
|
740
|
+
const core_1 = __webpack_require__(402);
|
|
1054
741
|
const smithy_client_1 = __webpack_require__(1411);
|
|
1055
742
|
const url_parser_1 = __webpack_require__(4494);
|
|
1056
743
|
const util_base64_1 = __webpack_require__(8385);
|
|
@@ -1071,12 +758,12 @@ const getRuntimeConfig = (config) => {
|
|
|
1071
758
|
{
|
|
1072
759
|
schemeId: "aws.auth#sigv4",
|
|
1073
760
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
1074
|
-
signer: new
|
|
761
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
1075
762
|
},
|
|
1076
763
|
{
|
|
1077
764
|
schemeId: "smithy.api#noAuth",
|
|
1078
765
|
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
1079
|
-
signer: new
|
|
766
|
+
signer: new core_1.NoAuthSigner(),
|
|
1080
767
|
},
|
|
1081
768
|
],
|
|
1082
769
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
@@ -1362,7 +1049,7 @@ exports.nodeProvider = nodeProvider;
|
|
|
1362
1049
|
/***/ 9955:
|
|
1363
1050
|
/***/ ((module) => {
|
|
1364
1051
|
|
|
1365
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.
|
|
1052
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.996.19","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.973.27","@aws-sdk/middleware-host-header":"^3.972.9","@aws-sdk/middleware-logger":"^3.972.9","@aws-sdk/middleware-recursion-detection":"^3.972.10","@aws-sdk/middleware-user-agent":"^3.972.29","@aws-sdk/region-config-resolver":"^3.972.11","@aws-sdk/types":"^3.973.7","@aws-sdk/util-endpoints":"^3.996.6","@aws-sdk/util-user-agent-browser":"^3.972.9","@aws-sdk/util-user-agent-node":"^3.973.15","@smithy/config-resolver":"^4.4.14","@smithy/core":"^3.23.14","@smithy/fetch-http-handler":"^5.3.16","@smithy/hash-node":"^4.2.13","@smithy/invalid-dependency":"^4.2.13","@smithy/middleware-content-length":"^4.2.13","@smithy/middleware-endpoint":"^4.4.29","@smithy/middleware-retry":"^4.5.0","@smithy/middleware-serde":"^4.2.17","@smithy/middleware-stack":"^4.2.13","@smithy/node-config-provider":"^4.3.13","@smithy/node-http-handler":"^4.5.2","@smithy/protocol-http":"^5.3.13","@smithy/smithy-client":"^4.12.9","@smithy/types":"^4.14.0","@smithy/url-parser":"^4.2.13","@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.45","@smithy/util-defaults-mode-node":"^4.2.49","@smithy/util-endpoints":"^3.3.4","@smithy/util-middleware":"^4.2.13","@smithy/util-retry":"^4.3.0","@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
1053
|
|
|
1367
1054
|
/***/ })
|
|
1368
1055
|
|
|
@@ -162,6 +162,15 @@ export interface UsageAssumptionsConfig {
|
|
|
162
162
|
/** Monthly DNS queries (default: 1,000,000) */
|
|
163
163
|
monthlyQueries?: number;
|
|
164
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* CloudWatch usage assumptions for cost estimation.
|
|
167
|
+
*
|
|
168
|
+
* @see https://aws.amazon.com/cloudwatch/pricing/
|
|
169
|
+
*/
|
|
170
|
+
cloudwatch?: {
|
|
171
|
+
/** Monthly log ingestion volume in GB per log group (default: 10) */
|
|
172
|
+
logsIngestionGB?: number;
|
|
173
|
+
};
|
|
165
174
|
/**
|
|
166
175
|
* Kinesis usage assumptions for cost estimation.
|
|
167
176
|
*
|