File tree Expand file tree Collapse file tree 4 files changed +31
-5
lines changed
core/lib/analytics-data-source Expand file tree Collapse file tree 4 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -623,14 +623,20 @@ function isAnomalyDetectionMetric(metric: IMetric): boolean {
623
623
* This alarm type is specifically designed for use with anomaly detection operators
624
624
* like LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD.
625
625
*/
626
+ @propertyInjectable
626
627
export class AnomalyDetectionAlarm extends Alarm {
628
+ /** Uniquely identifies this class. */
629
+ public static readonly PROPERTY_INJECTION_ID : string = 'aws-cdk-lib.aws-cloudwatch.AnomalyDetectionAlarm' ;
630
+
627
631
constructor ( scope : Construct , id : string , props : AnomalyDetectionAlarmProps ) {
628
632
super ( scope , id , {
629
633
...props ,
630
634
comparisonOperator : props . comparisonOperator ?? ComparisonOperator . LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD ,
631
635
metric : Metric . anomalyDetectionFor ( props ) ,
632
636
threshold : Alarm . ANOMALY_DETECTION_NO_THRESHOLD ,
633
637
} ) ;
638
+ // Enhanced CDK Analytics Telemetry
639
+ addConstructMetadata ( this , props ) ;
634
640
635
641
if ( props . comparisonOperator && ! isAnomalyDetectionOperator ( props . comparisonOperator ) ) {
636
642
throw new ValidationError ( `Must use one of the anomaly detection operators, got ${ props . comparisonOperator } ` , this ) ;
Original file line number Diff line number Diff line change @@ -11045,12 +11045,12 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
11045
11045
'warnings': '*',
11046
11046
'warningsV2': '*'
11047
11047
},
11048
+ 'comparisonOperator': 'ComparisonOperator',
11049
+ 'threshold': '*',
11048
11050
'period': '*',
11049
11051
'statistic': '*',
11050
11052
'alarmName': '*',
11051
11053
'alarmDescription': '*',
11052
- 'comparisonOperator': 'ComparisonOperator',
11053
- 'threshold': '*',
11054
11054
'evaluationPeriods': '*',
11055
11055
'evaluateLowSampleCountPercentile': '*',
11056
11056
'treatMissingData': 'TreatMissingData',
@@ -11061,6 +11061,23 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
11061
11061
'*'
11062
11062
]
11063
11063
},
11064
+ 'AnomalyDetectionAlarm': {
11065
+ 'metric': {
11066
+ 'warnings': '*',
11067
+ 'warningsV2': '*'
11068
+ },
11069
+ 'stdDevs': '*',
11070
+ 'comparisonOperator': 'ComparisonOperator',
11071
+ 'period': '*',
11072
+ 'statistic': '*',
11073
+ 'alarmName': '*',
11074
+ 'alarmDescription': '*',
11075
+ 'evaluationPeriods': '*',
11076
+ 'evaluateLowSampleCountPercentile': '*',
11077
+ 'treatMissingData': 'TreatMissingData',
11078
+ 'actionsEnabled': 'boolean',
11079
+ 'datapointsToAlarm': '*'
11080
+ },
11064
11081
'CompositeAlarm': {
11065
11082
'actionsEnabled': 'boolean',
11066
11083
'alarmDescription': '*',
Original file line number Diff line number Diff line change @@ -870,7 +870,8 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
870
870
'nodejs14.x' ,
871
871
'nodejs16.x' ,
872
872
'nodejs18.x' ,
873
- 'nodejs20.x'
873
+ 'nodejs20.x' ,
874
+ 'nodejs22.x'
874
875
] ,
875
876
'CustomThreatProtectionMode' : [
876
877
'ENFORCED' ,
Original file line number Diff line number Diff line change 5303
5303
" nodejs14.x" ,
5304
5304
" nodejs16.x" ,
5305
5305
" nodejs18.x" ,
5306
- " nodejs20.x"
5306
+ " nodejs20.x" ,
5307
+ " nodejs22.x"
5307
5308
]
5308
5309
},
5309
5310
"aws-cdk/packages/aws-cdk-lib/core/lib/deps.ts" : {
5440
5441
],
5441
5442
"Runtime" : [
5442
5443
" nodejs18.x" ,
5443
- " nodejs20.x"
5444
+ " nodejs20.x" ,
5445
+ " nodejs22.x"
5444
5446
]
5445
5447
},
5446
5448
"aws-cdk/packages/aws-cdk-lib/triggers/lib/trigger.ts" : {
You can’t perform that action at this time.
0 commit comments