@@ -13,14 +13,14 @@ class CloudWatchAlarmTrigger(GenericDataClass):
1313 Namespace : InitVar [str ] = field (repr = False )
1414 StatisticType : InitVar [str ] = field (repr = False )
1515 Statistic : InitVar [str ] = field (repr = False )
16- Unit : InitVar [str ] = field (repr = False )
1716 Dimensions : InitVar [List [Dict ]] = field (repr = False )
1817 Period : InitVar [int ] = field (repr = False )
1918 EvaluationPeriods : InitVar [int ] = field (repr = False )
2019 ComparisonOperator : InitVar [str ] = field (repr = False )
2120 Threshold : InitVar [float ] = field (repr = False )
2221 TreatMissingData : InitVar [str ] = field (repr = False )
23- EvaluateLowSampleCountPercentile : InitVar [str ] = field (repr = False )
22+ EvaluateLowSampleCountPercentile : InitVar [str ] = field (repr = False , default = None )
23+ Unit : InitVar [str ] = field (repr = False , default = None )
2424 metric_name : str = field (init = False )
2525 namespace : str = field (init = False )
2626 statistic_type : str = field (init = False )
@@ -34,9 +34,10 @@ class CloudWatchAlarmTrigger(GenericDataClass):
3434 treat_missing_data : str = field (init = False )
3535 evaluate_low_samplecount_percentile : str = field (init = False )
3636
37- def __post_init__ (self , MetricName : str , Namespace : str , StatisticType : str , Statistic : str , Unit : str ,
38- Dimensions : List [Dict ], Period : int , EvaluationPeriods : int , ComparisonOperator : str ,
39- Threshold : float , TreatMissingData : str , EvaluateLowSampleCountPercentile : str ):
37+
38+ def __post_init__ (self , MetricName : str , Namespace : str , StatisticType : str , Statistic : str , Dimensions : List [Dict ],
39+ Period : int , EvaluationPeriods : int , ComparisonOperator : str , Threshold : float ,
40+ TreatMissingData : str , EvaluateLowSampleCountPercentile : str , Unit : str ):
4041 self .metric_name = MetricName
4142 self .namespace = Namespace
4243 self .statistic_type = StatisticType
0 commit comments