cdk-real-drift 0.2.36 → 0.2.37

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 CHANGED
@@ -4076,6 +4076,13 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
4076
4076
  ...knownDefPaths,
4077
4077
  "LoggingConfig.LogFormat": "JSON"
4078
4078
  };
4079
+ if (resourceType === "AWS::Lambda::Function") {
4080
+ const genLogGroup = genDef["LoggingConfig"]?.["LogGroup"];
4081
+ if (typeof genLogGroup === "string") knownDefPaths = {
4082
+ ...knownDefPaths,
4083
+ "LoggingConfig.LogGroup": genLogGroup
4084
+ };
4085
+ }
4079
4086
  if (resourceType === "AWS::Glue::Schema") {
4080
4087
  const arn = declared["Registry"]?.["Arn"];
4081
4088
  if (typeof arn === "string") {
@@ -4154,7 +4161,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
4154
4161
  const emitNested = (path, value) => {
4155
4162
  if (isAllAwsTags(value) || isTrivialEmpty(value)) return;
4156
4163
  const schemaPath = path.replace(/\[[^\]]*\]/g, ".*");
4157
- const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) ? "generated" : "undeclared";
4164
+ const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) ? "generated" : "undeclared";
4158
4165
  const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);
4159
4166
  findings.push({
4160
4167
  tier,
@@ -10829,6 +10836,7 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
10829
10836
  "AWS::Cognito::UserPool\0DeletionProtection",
10830
10837
  "AWS::Cognito::UserPool\0MfaConfiguration",
10831
10838
  "AWS::Cognito::UserPool\0UserPoolTier",
10839
+ "AWS::Cognito::UserPool\0Policies",
10832
10840
  "AWS::SNS::Subscription\0FilterPolicyScope",
10833
10841
  "AWS::InternetMonitor::Monitor\0Status",
10834
10842
  "AWS::RolesAnywhere::Profile\0DurationSeconds",