Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data DeleteAlarm = DeleteAlarm' {}
- newDeleteAlarm :: Text -> DeleteAlarm
- deleteAlarm_alarmName :: Lens' DeleteAlarm Text
- data DeleteAlarmResponse = DeleteAlarmResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteAlarmResponse :: Int -> DeleteAlarmResponse
- deleteAlarmResponse_operations :: Lens' DeleteAlarmResponse (Maybe [Operation])
- deleteAlarmResponse_httpStatus :: Lens' DeleteAlarmResponse Int
Creating a Request
data DeleteAlarm Source #
See: newDeleteAlarm
smart constructor.
Instances
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.
DeleteAlarmResponse' | |
|
Instances
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.
deleteAlarmResponse_httpStatus :: Lens' DeleteAlarmResponse Int Source #
The response's http status code.