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

Amazonka.Lightsail.DeleteAlarm

Description

Deletes an alarm.

An alarm is used to monitor a single metric for one of your resources. When a metric condition is met, the alarm can notify you by email, SMS text message, and a banner displayed on the Amazon Lightsail console. For more information, see Alarms in Amazon Lightsail.

Synopsis

Creating a Request

data DeleteAlarm Source #

See: newDeleteAlarm smart constructor.

Constructors

DeleteAlarm' 

Fields

Instances

Instances details
Eq DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Read DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Show DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Generic DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Associated Types

type Rep DeleteAlarm :: Type -> Type #

NFData DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Methods

rnf :: DeleteAlarm -> () #

Hashable DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

ToJSON DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

AWSRequest DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Associated Types

type AWSResponse DeleteAlarm #

ToHeaders DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Methods

toHeaders :: DeleteAlarm -> [Header] #

ToPath DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

ToQuery DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

type Rep DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

type Rep DeleteAlarm = D1 ('MetaData "DeleteAlarm" "Amazonka.Lightsail.DeleteAlarm" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteAlarm'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alarmName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteAlarm Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

newDeleteAlarm Source #

Create a value of DeleteAlarm 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:alarmName:DeleteAlarm', deleteAlarm_alarmName - The name of the alarm to delete.

Request Lenses

deleteAlarm_alarmName :: Lens' DeleteAlarm Text Source #

The name of the alarm to delete.

Destructuring the Response

data DeleteAlarmResponse Source #

See: newDeleteAlarmResponse smart constructor.

Constructors

DeleteAlarmResponse' 

Fields

  • operations :: Maybe [Operation]

    An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteAlarmResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Read DeleteAlarmResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Show DeleteAlarmResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Generic DeleteAlarmResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Associated Types

type Rep DeleteAlarmResponse :: Type -> Type #

NFData DeleteAlarmResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

Methods

rnf :: DeleteAlarmResponse -> () #

type Rep DeleteAlarmResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteAlarm

type Rep DeleteAlarmResponse = D1 ('MetaData "DeleteAlarmResponse" "Amazonka.Lightsail.DeleteAlarm" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "DeleteAlarmResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteAlarmResponse Source #

Create a value of DeleteAlarmResponse 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:operations:DeleteAlarmResponse', deleteAlarmResponse_operations - An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

$sel:httpStatus:DeleteAlarmResponse', deleteAlarmResponse_httpStatus - The response's http status code.

Response Lenses

deleteAlarmResponse_operations :: Lens' DeleteAlarmResponse (Maybe [Operation]) Source #

An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.