cdk-real-drift 0.12.24 → 0.12.26
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/dist/cli.js +8 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4668,14 +4668,15 @@ function shouldPrioritizeEnv() {
|
|
|
4668
4668
|
const key = process.env.AWS_SECRET_ACCESS_KEY || process.env.AMAZON_SECRET_ACCESS_KEY;
|
|
4669
4669
|
return !!id && !!key;
|
|
4670
4670
|
}
|
|
4671
|
-
const
|
|
4671
|
+
const CLIENT_REQUEST_HANDLER = {
|
|
4672
|
+
connectionTimeout: 6e3,
|
|
4673
|
+
requestTimeout: 6e4,
|
|
4674
|
+
throwOnRequestTimeout: true
|
|
4675
|
+
};
|
|
4676
|
+
const CLIENT_CREDENTIALS = (awsIdentityProperties) => (shouldPrioritizeEnv() ? createCredentialChain(fromEnv(), fromNodeProviderChain({ clientConfig: { requestHandler: CLIENT_REQUEST_HANDLER } })) : fromNodeProviderChain({ clientConfig: { requestHandler: CLIENT_REQUEST_HANDLER } }))(awsIdentityProperties);
|
|
4672
4677
|
const CLIENT_TIMEOUTS = {
|
|
4673
4678
|
credentials: CLIENT_CREDENTIALS,
|
|
4674
|
-
requestHandler:
|
|
4675
|
-
connectionTimeout: 6e3,
|
|
4676
|
-
requestTimeout: 6e4,
|
|
4677
|
-
throwOnRequestTimeout: true
|
|
4678
|
-
}
|
|
4679
|
+
requestHandler: CLIENT_REQUEST_HANDLER
|
|
4679
4680
|
};
|
|
4680
4681
|
const READ_RETRY = {
|
|
4681
4682
|
maxAttempts: 10,
|
|
@@ -6054,7 +6055,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
6054
6055
|
if (!isObjectForm || /tags$/i.test(parentKey)) return;
|
|
6055
6056
|
}
|
|
6056
6057
|
const schemaPath = path.replace(/\[[^\]]*\]/g, ".*");
|
|
6057
|
-
const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) && (!(schemaPath in (MANAGED_KEY_ALIAS_PATHS[resourceType] ?? {})) || shouldFoldManagedServiceKey(resourceType, schemaPath, value, opts.kmsAliasTargets)) ? "generated" : "undeclared";
|
|
6058
|
+
const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) || resourceType === "AWS::Events::EventBusPolicy" && schemaPath === "Statement.*.Sid" && typeof value === "string" && value === declared["StatementId"] ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) && (!(schemaPath in (MANAGED_KEY_ALIAS_PATHS[resourceType] ?? {})) || shouldFoldManagedServiceKey(resourceType, schemaPath, value, opts.kmsAliasTargets)) ? "generated" : "undeclared";
|
|
6058
6059
|
const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);
|
|
6059
6060
|
findings.push({
|
|
6060
6061
|
tier,
|