cdk-real-drift 0.4.8 → 0.4.10

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
@@ -2555,7 +2555,11 @@ const ENGINE_DEFAULTS = {
2555
2555
  AllocatedStorage: (e) => e.startsWith("aurora") ? 1 : void 0,
2556
2556
  Port: rdsDefaultPort
2557
2557
  },
2558
- "AWS::ElastiCache::CacheCluster": { Port: (e) => /memcached/i.test(e) ? 11211 : /redis|valkey/i.test(e) ? 6379 : void 0 }
2558
+ "AWS::ElastiCache::CacheCluster": { Port: (e) => /memcached/i.test(e) ? 11211 : /redis|valkey/i.test(e) ? 6379 : void 0 },
2559
+ "AWS::ElastiCache::ReplicationGroup": {
2560
+ Port: (e) => /redis|valkey/i.test(e) ? 6379 : void 0,
2561
+ AtRestEncryptionEnabled: (e) => /valkey/i.test(e) ? true : /redis/i.test(e) ? false : void 0
2562
+ }
2559
2563
  };
2560
2564
  function rdsDefaultPort(engine) {
2561
2565
  if (/mysql|maria/.test(engine)) return 3306;
@@ -2778,7 +2782,11 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
2778
2782
  "SnapshotWindow",
2779
2783
  "PreferredAvailabilityZones"
2780
2784
  ]),
2781
- "AWS::ElastiCache::ReplicationGroup": new Set(["PreferredMaintenanceWindow", "SnapshotWindow"]),
2785
+ "AWS::ElastiCache::ReplicationGroup": new Set([
2786
+ "PreferredMaintenanceWindow",
2787
+ "SnapshotWindow",
2788
+ "EngineVersion"
2789
+ ]),
2782
2790
  "AWS::ElastiCache::ServerlessCache": new Set(["DailySnapshotTime"]),
2783
2791
  "AWS::MemoryDB::Cluster": new Set(["MaintenanceWindow", "SnapshotWindow"]),
2784
2792
  "AWS::Redshift::Cluster": new Set([
@@ -4916,7 +4924,12 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
4916
4924
  const freeFormMapPaths = schema.freeFormMapPaths ?? [];
4917
4925
  const underFreeFormMap = (schemaPath) => freeFormMapPaths.some((ff) => schemaPath.startsWith(`${ff}.`));
4918
4926
  const emitNested = (path, value) => {
4919
- if (isAllAwsTags(value) || isTrivialEmpty(value)) return;
4927
+ if (isTrivialEmpty(value)) return;
4928
+ if (isAllAwsTags(value)) {
4929
+ const isObjectForm = value !== null && typeof value === "object" && !Array.isArray(value);
4930
+ const parentKey = (path.split(".").pop() ?? "").replace(/\[.*$/, "");
4931
+ if (!isObjectForm || /tags$/i.test(parentKey)) return;
4932
+ }
4920
4933
  const schemaPath = path.replace(/\[[^\]]*\]/g, ".*");
4921
4934
  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";
4922
4935
  const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);