You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"aws_cloudwatch_metric_alarm" {
source="./modules/aws/r/aws_cloudwatch_metric_alarm"# actions_enabled - (optional) is a type of boolactions_enabled=null# alarm_actions - (optional) is a type of set of stringalarm_actions=[]
# alarm_description - (optional) is a type of stringalarm_description=null# alarm_name - (required) is a type of stringalarm_name=null# comparison_operator - (required) is a type of stringcomparison_operator=null# datapoints_to_alarm - (optional) is a type of numberdatapoints_to_alarm=null# dimensions - (optional) is a type of map of stringdimensions={}
# evaluate_low_sample_count_percentiles - (optional) is a type of stringevaluate_low_sample_count_percentiles=null# evaluation_periods - (required) is a type of numberevaluation_periods=null# extended_statistic - (optional) is a type of stringextended_statistic=null# insufficient_data_actions - (optional) is a type of set of stringinsufficient_data_actions=[]
# metric_name - (optional) is a type of stringmetric_name=null# namespace - (optional) is a type of stringnamespace=null# ok_actions - (optional) is a type of set of stringok_actions=[]
# period - (optional) is a type of numberperiod=null# statistic - (optional) is a type of stringstatistic=null# tags - (optional) is a type of map of stringtags={}
# threshold - (optional) is a type of numberthreshold=null# threshold_metric_id - (optional) is a type of stringthreshold_metric_id=null# treat_missing_data - (optional) is a type of stringtreat_missing_data=null# unit - (optional) is a type of stringunit=nullmetric_query=[{
expression =null
id =null
label =null
metric = [{
dimensions = {}
metric_name =null
namespace =null
period =null
stat =null
unit =null
}]
return_data =null
}]
}
resource"aws_cloudwatch_metric_alarm""this" {
# actions_enabled - (optional) is a type of boolactions_enabled=var.actions_enabled# alarm_actions - (optional) is a type of set of stringalarm_actions=var.alarm_actions# alarm_description - (optional) is a type of stringalarm_description=var.alarm_description# alarm_name - (required) is a type of stringalarm_name=var.alarm_name# comparison_operator - (required) is a type of stringcomparison_operator=var.comparison_operator# datapoints_to_alarm - (optional) is a type of numberdatapoints_to_alarm=var.datapoints_to_alarm# dimensions - (optional) is a type of map of stringdimensions=var.dimensions# evaluate_low_sample_count_percentiles - (optional) is a type of stringevaluate_low_sample_count_percentiles=var.evaluate_low_sample_count_percentiles# evaluation_periods - (required) is a type of numberevaluation_periods=var.evaluation_periods# extended_statistic - (optional) is a type of stringextended_statistic=var.extended_statistic# insufficient_data_actions - (optional) is a type of set of stringinsufficient_data_actions=var.insufficient_data_actions# metric_name - (optional) is a type of stringmetric_name=var.metric_name# namespace - (optional) is a type of stringnamespace=var.namespace# ok_actions - (optional) is a type of set of stringok_actions=var.ok_actions# period - (optional) is a type of numberperiod=var.period# statistic - (optional) is a type of stringstatistic=var.statistic# tags - (optional) is a type of map of stringtags=var.tags# threshold - (optional) is a type of numberthreshold=var.threshold# threshold_metric_id - (optional) is a type of stringthreshold_metric_id=var.threshold_metric_id# treat_missing_data - (optional) is a type of stringtreat_missing_data=var.treat_missing_data# unit - (optional) is a type of stringunit=var.unitdynamic"metric_query" {
for_each=var.metric_querycontent {
# expression - (optional) is a type of stringexpression=metric_query.value["expression"]
# id - (required) is a type of stringid=metric_query.value["id"]
# label - (optional) is a type of stringlabel=metric_query.value["label"]
# return_data - (optional) is a type of boolreturn_data=metric_query.value["return_data"]
dynamic"metric" {
for_each=metric_query.value.metriccontent {
# dimensions - (optional) is a type of map of stringdimensions=metric.value["dimensions"]
# metric_name - (required) is a type of stringmetric_name=metric.value["metric_name"]
# namespace - (optional) is a type of stringnamespace=metric.value["namespace"]
# period - (required) is a type of numberperiod=metric.value["period"]
# stat - (required) is a type of stringstat=metric.value["stat"]
# unit - (optional) is a type of stringunit=metric.value["unit"]
}
}
}
}
}