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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault retention period of 7 days.Long term retention period of 2 years. -
Method Summary
Modifier and TypeMethodDescriptionstatic PerformanceInsightRetention
Returns the enum constant of this type with the specified name.static PerformanceInsightRetention[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default retention period of 7 days. -
MONTHS_1
-
MONTHS_2
-
MONTHS_3
-
MONTHS_4
-
MONTHS_5
-
MONTHS_6
-
MONTHS_7
-
MONTHS_8
-
MONTHS_9
-
MONTHS_10
-
MONTHS_11
-
MONTHS_12
-
MONTHS_13
-
MONTHS_14
-
MONTHS_15
-
MONTHS_16
-
MONTHS_17
-
MONTHS_18
-
MONTHS_19
-
MONTHS_20
-
MONTHS_21
-
MONTHS_22
-
MONTHS_23
-
LONG_TERM
Long term retention period of 2 years.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-