amazonka-cloudwatch-2.0: Amazon CloudWatch SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatch.DeleteAlarms

Description

Deletes the specified alarms. You can delete up to 100 alarms in one operation. However, this total can include no more than one composite alarm. For example, you could delete 99 metric alarms and one composite alarms with one operation, but you can't delete two composite alarms with one operation.

In the event of an error, no alarms are deleted.

It is possible to create a loop or cycle of composite alarms, where composite alarm A depends on composite alarm B, and composite alarm B also depends on composite alarm A. In this scenario, you can't delete any composite alarm that is part of the cycle because there is always still a composite alarm that depends on that alarm that you want to delete.

To get out of such a situation, you must break the cycle by changing the rule of one of the composite alarms in the cycle to remove a dependency that creates the cycle. The simplest change to make to break a cycle is to change the AlarmRule of one of the alarms to false.

Additionally, the evaluation of composite alarms stops if CloudWatch detects a cycle in the evaluation path.

Synopsis

Creating a Request

data DeleteAlarms Source #

See: newDeleteAlarms smart constructor.

Constructors

DeleteAlarms' 

Fields

Instances

Instances details
ToHeaders DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

ToPath DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

ToQuery DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

AWSRequest DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Associated Types

type AWSResponse DeleteAlarms #

Generic DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Associated Types

type Rep DeleteAlarms :: Type -> Type #

Read DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Show DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

NFData DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Methods

rnf :: DeleteAlarms -> () #

Eq DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Hashable DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

type AWSResponse DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

type Rep DeleteAlarms Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

type Rep DeleteAlarms = D1 ('MetaData "DeleteAlarms" "Amazonka.CloudWatch.DeleteAlarms" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DeleteAlarms'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alarmNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

newDeleteAlarms :: DeleteAlarms Source #

Create a value of DeleteAlarms with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:alarmNames:DeleteAlarms', deleteAlarms_alarmNames - The alarms to be deleted.

Request Lenses

deleteAlarms_alarmNames :: Lens' DeleteAlarms [Text] Source #

The alarms to be deleted.

Destructuring the Response

data DeleteAlarmsResponse Source #

See: newDeleteAlarmsResponse smart constructor.

Constructors

DeleteAlarmsResponse' 

Instances

Instances details
Generic DeleteAlarmsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Associated Types

type Rep DeleteAlarmsResponse :: Type -> Type #

Read DeleteAlarmsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Show DeleteAlarmsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

NFData DeleteAlarmsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

Methods

rnf :: DeleteAlarmsResponse -> () #

Eq DeleteAlarmsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

type Rep DeleteAlarmsResponse Source # 
Instance details

Defined in Amazonka.CloudWatch.DeleteAlarms

type Rep DeleteAlarmsResponse = D1 ('MetaData "DeleteAlarmsResponse" "Amazonka.CloudWatch.DeleteAlarms" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" 'False) (C1 ('MetaCons "DeleteAlarmsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteAlarmsResponse :: DeleteAlarmsResponse Source #

Create a value of DeleteAlarmsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.