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 |
Creates or updates an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.
Synopsis
- data PutEventType = PutEventType' {
- labels :: Maybe [Text]
- eventIngestion :: Maybe EventIngestion
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- eventVariables :: NonEmpty Text
- entityTypes :: NonEmpty Text
- newPutEventType :: Text -> NonEmpty Text -> NonEmpty Text -> PutEventType
- putEventType_labels :: Lens' PutEventType (Maybe [Text])
- putEventType_eventIngestion :: Lens' PutEventType (Maybe EventIngestion)
- putEventType_description :: Lens' PutEventType (Maybe Text)
- putEventType_tags :: Lens' PutEventType (Maybe [Tag])
- putEventType_name :: Lens' PutEventType Text
- putEventType_eventVariables :: Lens' PutEventType (NonEmpty Text)
- putEventType_entityTypes :: Lens' PutEventType (NonEmpty Text)
- data PutEventTypeResponse = PutEventTypeResponse' {
- httpStatus :: Int
- newPutEventTypeResponse :: Int -> PutEventTypeResponse
- putEventTypeResponse_httpStatus :: Lens' PutEventTypeResponse Int
Creating a Request
data PutEventType Source #
See: newPutEventType
smart constructor.
PutEventType' | |
|
Instances
Create a value of PutEventType
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:labels:PutEventType'
, putEventType_labels
- The event type labels.
$sel:eventIngestion:PutEventType'
, putEventType_eventIngestion
- Specifies if ingenstion is enabled or disabled.
$sel:description:PutEventType'
, putEventType_description
- The description of the event type.
$sel:tags:PutEventType'
, putEventType_tags
- A collection of key and value pairs.
$sel:name:PutEventType'
, putEventType_name
- The name.
$sel:eventVariables:PutEventType'
, putEventType_eventVariables
- The event type variables.
$sel:entityTypes:PutEventType'
, putEventType_entityTypes
- The entity type for the event type. Example entity types: customer,
merchant, account.
Request Lenses
putEventType_labels :: Lens' PutEventType (Maybe [Text]) Source #
The event type labels.
putEventType_eventIngestion :: Lens' PutEventType (Maybe EventIngestion) Source #
Specifies if ingenstion is enabled or disabled.
putEventType_description :: Lens' PutEventType (Maybe Text) Source #
The description of the event type.
putEventType_tags :: Lens' PutEventType (Maybe [Tag]) Source #
A collection of key and value pairs.
putEventType_name :: Lens' PutEventType Text Source #
The name.
putEventType_eventVariables :: Lens' PutEventType (NonEmpty Text) Source #
The event type variables.
putEventType_entityTypes :: Lens' PutEventType (NonEmpty Text) Source #
The entity type for the event type. Example entity types: customer, merchant, account.
Destructuring the Response
data PutEventTypeResponse Source #
See: newPutEventTypeResponse
smart constructor.
PutEventTypeResponse' | |
|
Instances
newPutEventTypeResponse Source #
Create a value of PutEventTypeResponse
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:PutEventTypeResponse'
, putEventTypeResponse_httpStatus
- The response's http status code.
Response Lenses
putEventTypeResponse_httpStatus :: Lens' PutEventTypeResponse Int Source #
The response's http status code.