cdk-real-drift 0.13.4 → 0.13.5

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
@@ -5573,6 +5573,7 @@ const ELB_ATTRIBUTE_BAGS = {
5573
5573
  "AWS::ElasticLoadBalancingV2::TargetGroup": "TargetGroupAttributes",
5574
5574
  "AWS::ElasticLoadBalancingV2::Listener": "ListenerAttributes"
5575
5575
  };
5576
+ const notRestored = (...restoreSourceKeys) => ({ declared }) => restoreSourceKeys.every((k) => declared[k] === void 0);
5576
5577
  const MEANINGFUL_WHEN_OFF = {
5577
5578
  "AWS::KMS::Key": { Enabled: () => true },
5578
5579
  "AWS::SQS::Queue": { SqsManagedSseEnabled: ({ declared, live }) => declared["KmsMasterKeyId"] === void 0 && live["KmsMasterKeyId"] === void 0 },
@@ -5585,8 +5586,17 @@ const MEANINGFUL_WHEN_OFF = {
5585
5586
  "AWS::GuardDuty::Detector": { DataSources: () => true },
5586
5587
  "AWS::Lambda::EventSourceMapping": { Enabled: () => true },
5587
5588
  "AWS::ElasticLoadBalancingV2::TargetGroup": { HealthCheckEnabled: ({ declared }) => declared["TargetType"] !== "lambda" },
5588
- "AWS::MemoryDB::Cluster": { TLSEnabled: () => true },
5589
- "AWS::Redshift::ScheduledAction": { Enable: () => true }
5589
+ "AWS::MemoryDB::Cluster": {
5590
+ TLSEnabled: () => true,
5591
+ AutoMinorVersionUpgrade: notRestored("SnapshotName", "SnapshotArns")
5592
+ },
5593
+ "AWS::Redshift::ScheduledAction": { Enable: () => true },
5594
+ "AWS::RDS::DBInstance": { AutoMinorVersionUpgrade: notRestored("DBSnapshotIdentifier") },
5595
+ "AWS::RDS::DBCluster": { AutoMinorVersionUpgrade: notRestored("SnapshotIdentifier", "SourceDBClusterIdentifier") },
5596
+ "AWS::Neptune::DBInstance": { AutoMinorVersionUpgrade: () => true },
5597
+ "AWS::ElastiCache::CacheCluster": { AutoMinorVersionUpgrade: notRestored("SnapshotName", "SnapshotArns") },
5598
+ "AWS::ElastiCache::ReplicationGroup": { AutoMinorVersionUpgrade: notRestored("SnapshotName", "SnapshotArns") },
5599
+ "AWS::Redshift::Cluster": { AllowVersionUpgrade: notRestored("SnapshotIdentifier") }
5590
5600
  };
5591
5601
  const MEANINGFUL_WHEN_OFF_NESTED = {
5592
5602
  "AWS::CloudFront::Distribution": { "DistributionConfig.IPV6Enabled": () => true },