Enum PerformanceInsightRetention

java.lang.Object
java.lang.Enum<PerformanceInsightRetention>
software.amazon.awscdk.services.rds.PerformanceInsightRetention
All Implemented Interfaces:
Serializable, Comparable<PerformanceInsightRetention>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2025-01-07T10:36:13.811Z") @Stability(Stable) public enum PerformanceInsightRetention extends Enum<PerformanceInsightRetention>
The retention period for Performance Insight data, in days.

Per https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-performanceinsightsretentionperiod This must be either

  • 7 days (the default, free tier)
  • month * 31, where month is a number of months from 1-23
  • 731 (2 years)

Example:

 Vpc vpc;
 Key kmsKey;
 DatabaseCluster.Builder.create(this, "Database")
         .engine(DatabaseClusterEngine.AURORA)
         .vpc(vpc)
         .enablePerformanceInsights(true)
         .performanceInsightRetention(PerformanceInsightRetention.LONG_TERM)
         .performanceInsightEncryptionKey(kmsKey)
         .writer(ClusterInstance.provisioned("Writer", ProvisionedClusterInstanceProps.builder()
                 .instanceType(InstanceType.of(InstanceClass.R7G, InstanceSize.LARGE))
                 .build()))
         .build();