| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.FraudDetector.UpdateEventLabel
Description
Updates the specified event with a new label.
Synopsis
- data UpdateEventLabel = UpdateEventLabel' {
- eventId :: Text
- eventTypeName :: Text
- assignedLabel :: Text
- labelTimestamp :: Text
- newUpdateEventLabel :: Text -> Text -> Text -> Text -> UpdateEventLabel
- updateEventLabel_eventId :: Lens' UpdateEventLabel Text
- updateEventLabel_eventTypeName :: Lens' UpdateEventLabel Text
- updateEventLabel_assignedLabel :: Lens' UpdateEventLabel Text
- updateEventLabel_labelTimestamp :: Lens' UpdateEventLabel Text
- data UpdateEventLabelResponse = UpdateEventLabelResponse' {
- httpStatus :: Int
- newUpdateEventLabelResponse :: Int -> UpdateEventLabelResponse
- updateEventLabelResponse_httpStatus :: Lens' UpdateEventLabelResponse Int
Creating a Request
data UpdateEventLabel Source #
See: newUpdateEventLabel smart constructor.
Constructors
| UpdateEventLabel' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> UpdateEventLabel |
Create a value of UpdateEventLabel 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:
UpdateEventLabel, updateEventLabel_eventId - The ID of the event associated with the label to update.
UpdateEventLabel, updateEventLabel_eventTypeName - The event type of the event associated with the label to update.
$sel:assignedLabel:UpdateEventLabel', updateEventLabel_assignedLabel - The new label to assign to the event.
UpdateEventLabel, updateEventLabel_labelTimestamp - The timestamp associated with the label. The timestamp must be specified
using ISO 8601 standard in UTC.
Request Lenses
updateEventLabel_eventId :: Lens' UpdateEventLabel Text Source #
The ID of the event associated with the label to update.
updateEventLabel_eventTypeName :: Lens' UpdateEventLabel Text Source #
The event type of the event associated with the label to update.
updateEventLabel_assignedLabel :: Lens' UpdateEventLabel Text Source #
The new label to assign to the event.
updateEventLabel_labelTimestamp :: Lens' UpdateEventLabel Text Source #
The timestamp associated with the label. The timestamp must be specified using ISO 8601 standard in UTC.
Destructuring the Response
data UpdateEventLabelResponse Source #
See: newUpdateEventLabelResponse smart constructor.
Constructors
| UpdateEventLabelResponse' | |
Fields
| |
Instances
newUpdateEventLabelResponse Source #
Create a value of UpdateEventLabelResponse 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:httpStatus:UpdateEventLabelResponse', updateEventLabelResponse_httpStatus - The response's http status code.
Response Lenses
updateEventLabelResponse_httpStatus :: Lens' UpdateEventLabelResponse Int Source #
The response's http status code.