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 MessageData = MessageData' {}
- newMessageData :: MessageData
- messageData_value :: Lens' MessageData (Maybe Text)
- messageData_code :: Lens' MessageData (Maybe Text)
Documentation
data MessageData Source #
A message returned by the GetMetricData
API, including a code and a
description.
If a cross-Region GetMetricData
operation fails with a code of
Forbidden
and a value of
Authentication too complex to retrieve cross region data
, you can
correct the problem by running the GetMetricData
operation in the same
Region where the metric data is.
See: newMessageData
smart constructor.
Instances
newMessageData :: MessageData Source #
Create a value of MessageData
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:value:MessageData'
, messageData_value
- The message text.
$sel:code:MessageData'
, messageData_code
- The error code or status code associated with the message.
messageData_value :: Lens' MessageData (Maybe Text) Source #
The message text.
messageData_code :: Lens' MessageData (Maybe Text) Source #
The error code or status code associated with the message.