amazonka-cloudwatch-1.0.1: Amazon CloudWatch SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatch.DescribeAlarms

Contents

Description

Retrieves alarms with the specified names. If no name is specified, all alarms for the user are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

See: AWS API Reference for DescribeAlarms.

This operation returns paginated results.

Synopsis

Creating a Request

describeAlarms :: DescribeAlarms Source

Creates a value of DescribeAlarms with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text) Source

The alarm name prefix. AlarmNames cannot be specified if this parameter is specified.

daActionPrefix :: Lens' DescribeAlarms (Maybe Text) Source

The action name prefix.

daNextToken :: Lens' DescribeAlarms (Maybe Text) Source

The token returned by a previous call to indicate that there is more data available.

daStateValue :: Lens' DescribeAlarms (Maybe StateValue) Source

The state value to be used in matching alarms.

daAlarmNames :: Lens' DescribeAlarms [Text] Source

A list of alarm names to retrieve information for.

daMaxRecords :: Lens' DescribeAlarms (Maybe Natural) Source

The maximum number of alarm descriptions to retrieve.

Destructuring the Response

describeAlarmsResponse Source

Creates a value of DescribeAlarmsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

darsMetricAlarms :: Lens' DescribeAlarmsResponse [MetricAlarm] Source

A list of information for the specified alarms.

darsNextToken :: Lens' DescribeAlarmsResponse (Maybe Text) Source

A string that marks the start of the next batch of returned results.

darsStatus :: Lens' DescribeAlarmsResponse Int Source

The response status code.