Skip to main content
FuseFuse
IntegrationsAwsActions

List CloudWatch alarms

List metric, composite, and log CloudWatch alarms. alarm_names and alarm_name_prefix are mutually exclusive. Requires cloudwatch:DescribeAlarms (composite enumeration needs Resource: *).

Agent markdown

cloudwatch.alarms.list · AWS · v1

Details

Risk
Read
Idempotency
Safe
Availability
Default
Exposure
REST, SDK, MCP
MCP hints
readOnly=true, destructive=false, idempotent=true, openWorld=true

Scopes

  • cloudwatch:DescribeAlarms

Input

Input schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
regionstringNoenum us-east-1 | us-east-2 | us-west-1 | us-west-2 | af-south-1 | ap-east-1 | ap-east-2 | ap-south-1 | ap-south-2 | ap-southeast-1 | ap-southeast-2 | ap-southeast-3 | ap-southeast-4 | ap-southeast-5 | ap-southeast-6 | ap-southeast-7 | ap-northeast-1 | ap-northeast-2 | ap-northeast-3 | ca-central-1 | ca-west-1 | eu-central-1 | eu-central-2 | eu-west-1 | eu-west-2 | eu-west-3 | eu-north-1 | eu-south-1 | eu-south-2 | il-central-1 | me-central-1 | me-south-1 | mx-central-1 | sa-east-1
alarm_namesarray<string>NominItems 1; maxItems 100
alarm_names[]stringYesminLength 1; maxLength 255
alarm_name_prefixstringNominLength 1; maxLength 255
state_valuestringNoenum OK | ALARM | INSUFFICIENT_DATA
page_sizeintegerNominimum 1; maximum 100
cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Output

Output schema
NameTypeRequiredConstraints
(root)objectYesadditionalProperties false
alarmsarray<object>YesmaxItems 100
alarms[]objectYesadditionalProperties false; oneOf branch 1: required type, metric; type=metric / branch 2: required type, alarm_rule; type=composite / branch 3: required type, log; type=log
alarms[].typestringYesenum metric | composite | log
alarms[].namestringYesminLength 1; maxLength 255
alarms[].arnstringYesminLength 20; maxLength 2048; pattern ^arn:aws:.+$
alarms[].descriptionstringNomaxLength 1024
alarms[].statestringYesenum OK | ALARM | INSUFFICIENT_DATA
alarms[].state_updated_atstringYesminLength 1; maxLength 64
alarms[].actions_enabledbooleanYes
alarms[].metricobjectNoadditionalProperties false
alarms[].metric.namespacestringNominLength 1; maxLength 255
alarms[].metric.metric_namestringNominLength 1; maxLength 255
alarms[].metric.statisticstringNominLength 1; maxLength 64
alarms[].metric.extended_statisticstringNominLength 1; maxLength 64
alarms[].metric.dimensionsarray<object>NomaxItems 30
alarms[].metric.dimensions[]objectYesadditionalProperties false
alarms[].metric.dimensions[].namestringYesminLength 1; maxLength 255
alarms[].metric.dimensions[].valuestringYesminLength 1; maxLength 1024
alarms[].metric.period_secondsintegerNominimum 1
alarms[].metric.unitstringNominLength 1; maxLength 64
alarms[].metric.thresholdnumberNo
alarms[].metric.comparison_operatorstringNominLength 1; maxLength 64
alarms[].metric.evaluation_periodsintegerNominimum 1
alarms[].metric.datapoints_to_alarmintegerNominimum 1
alarms[].metric.treat_missing_datastringNominLength 1; maxLength 64
alarms[].alarm_rulestringNominLength 1; maxLength 10240
alarms[].logobjectNoadditionalProperties false
alarms[].log.query_stringstringNominLength 1; maxLength 10000
alarms[].log.query_arnstringNominLength 20; maxLength 2048; pattern ^arn:aws:.+$
alarms[].log.aggregation_expressionstringNominLength 1; maxLength 2048
alarms[].log.log_group_identifiersarray<string>NomaxItems 50
alarms[].log.log_group_identifiers[]stringYesminLength 1; maxLength 2048
alarms[].log.thresholdnumberNo
alarms[].log.comparison_operatorstringNominLength 1; maxLength 64
next_cursorstringNominLength 1; maxLength 16384; pattern ^(?!.*://)[^\x00-\x1f\x7f]+$

Raw schema

Input
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "region": {
      "type": "string",
      "enum": [
        "us-east-1",
        "us-east-2",
        "us-west-1",
        "us-west-2",
        "af-south-1",
        "ap-east-1",
        "ap-east-2",
        "ap-south-1",
        "ap-south-2",
        "ap-southeast-1",
        "ap-southeast-2",
        "ap-southeast-3",
        "ap-southeast-4",
        "ap-southeast-5",
        "ap-southeast-6",
        "ap-southeast-7",
        "ap-northeast-1",
        "ap-northeast-2",
        "ap-northeast-3",
        "ca-central-1",
        "ca-west-1",
        "eu-central-1",
        "eu-central-2",
        "eu-west-1",
        "eu-west-2",
        "eu-west-3",
        "eu-north-1",
        "eu-south-1",
        "eu-south-2",
        "il-central-1",
        "me-central-1",
        "me-south-1",
        "mx-central-1",
        "sa-east-1"
      ]
    },
    "alarm_names": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "minItems": 1,
      "maxItems": 100
    },
    "alarm_name_prefix": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "state_value": {
      "type": "string",
      "enum": [
        "OK",
        "ALARM",
        "INSUFFICIENT_DATA"
      ]
    },
    "page_size": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  }
}
Output
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "alarms": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "metric",
              "composite",
              "log"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "arn": {
            "type": "string",
            "minLength": 20,
            "maxLength": 2048,
            "pattern": "^arn:aws:.+$"
          },
          "description": {
            "type": "string",
            "maxLength": 1024
          },
          "state": {
            "type": "string",
            "enum": [
              "OK",
              "ALARM",
              "INSUFFICIENT_DATA"
            ]
          },
          "state_updated_at": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "actions_enabled": {
            "type": "boolean"
          },
          "metric": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "namespace": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "metric_name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "statistic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "extended_statistic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "dimensions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1024
                    }
                  },
                  "required": [
                    "name",
                    "value"
                  ]
                },
                "maxItems": 30
              },
              "period_seconds": {
                "type": "integer",
                "minimum": 1
              },
              "unit": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "threshold": {
                "type": "number"
              },
              "comparison_operator": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "evaluation_periods": {
                "type": "integer",
                "minimum": 1
              },
              "datapoints_to_alarm": {
                "type": "integer",
                "minimum": 1
              },
              "treat_missing_data": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            }
          },
          "alarm_rule": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10240
          },
          "log": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "query_string": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              },
              "query_arn": {
                "type": "string",
                "minLength": 20,
                "maxLength": 2048,
                "pattern": "^arn:aws:.+$"
              },
              "aggregation_expression": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              },
              "log_group_identifiers": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048
                },
                "maxItems": 50
              },
              "threshold": {
                "type": "number"
              },
              "comparison_operator": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              }
            }
          }
        },
        "required": [
          "type",
          "name",
          "arn",
          "state",
          "state_updated_at",
          "actions_enabled"
        ],
        "oneOf": [
          {
            "required": [
              "type",
              "metric"
            ],
            "properties": {
              "type": {
                "enum": [
                  "metric"
                ]
              }
            }
          },
          {
            "required": [
              "type",
              "alarm_rule"
            ],
            "properties": {
              "type": {
                "enum": [
                  "composite"
                ]
              }
            }
          },
          {
            "required": [
              "type",
              "log"
            ],
            "properties": {
              "type": {
                "enum": [
                  "log"
                ]
              }
            }
          }
        ]
      },
      "maxItems": 100
    },
    "next_cursor": {
      "type": "string",
      "minLength": 1,
      "maxLength": 16384,
      "pattern": "^(?!.*://)[^\\x00-\\x1f\\x7f]+$"
    }
  },
  "required": [
    "alarms"
  ]
}