cdk-monitoring-constructs icon indicating copy to clipboard operation
cdk-monitoring-constructs copied to clipboard

addMaxServerlessDatabaseCapacityAlarm requires deprecated UsageCountThreshold use

Open niqo01 opened this issue 1 year ago • 1 comments

Version

9.1.1

Steps and/or minimal code example to reproduce

  1. import monitoring cdk library version 9.1.1 using java
  2. Create an AuroraClusterMonitoringProps builder and call addMaxServerlessDatabaseCapacityAlarm

Notice that addMaxServerlessDatabaseCapacityAlarm java method signature uses UsageCountThreshold: public Builder addMaxServerlessDatabaseCapacityAlarm(Map<String, ? extends UsageCountThreshold> addMaxServerlessDatabaseCapacityAlarm) {

Expected behavior

addMaxServerlessDatabaseCapacityAlarm should not require uses of deprecated classes or it should be a deprecated method as well.

Actual behavior

addMaxServerlessDatabaseCapacityAlarm uses deprecated class

Other details

No response

niqo01 avatar Dec 07 '24 21:12 niqo01

We'll have to replace this with MaxUsageCountThreshold as part of a breaking change since it'll change the API.

ghost avatar Feb 05 '25 16:02 ghost