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 |
Synopsis
- data Alert = Alert' {
- resourceArn :: Text
- alertCode :: Text
- lastModifiedTime :: POSIX
- relatedResourceArns :: [Text]
- alertMessage :: Text
- newAlert :: Text -> Text -> UTCTime -> Text -> Alert
- alert_resourceArn :: Lens' Alert Text
- alert_alertCode :: Lens' Alert Text
- alert_lastModifiedTime :: Lens' Alert UTCTime
- alert_relatedResourceArns :: Lens' Alert [Text]
- alert_alertMessage :: Lens' Alert Text
Documentation
Alert configuration parameters.
See: newAlert
smart constructor.
Alert' | |
|
Instances
Create a value of Alert
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:resourceArn:Alert'
, alert_resourceArn
- The Amazon Resource Name (ARN) of the resource.
$sel:alertCode:Alert'
, alert_alertCode
- The code for the alert. For example, NOT_PROCESSED.
$sel:lastModifiedTime:Alert'
, alert_lastModifiedTime
- The timestamp when the alert was last modified.
$sel:relatedResourceArns:Alert'
, alert_relatedResourceArns
- The Amazon Resource Names (ARNs) related to this alert.
$sel:alertMessage:Alert'
, alert_alertMessage
- If an alert is generated for a resource, an explanation of the reason
for the alert.
alert_lastModifiedTime :: Lens' Alert UTCTime Source #
The timestamp when the alert was last modified.