libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.FraudDetector.SendEvent

Description

Stores events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use SendEvent to upload a historical dataset, which you can then later use to train a model.

Synopsis

Creating a Request

data SendEvent Source #

See: newSendEvent smart constructor.

Constructors

SendEvent' 

Fields

Instances

Instances details
Eq SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Show SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Generic SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Associated Types

type Rep SendEvent :: Type -> Type #

NFData SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Methods

rnf :: SendEvent -> () #

Hashable SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

ToJSON SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

AWSRequest SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Associated Types

type AWSResponse SendEvent #

ToHeaders SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Methods

toHeaders :: SendEvent -> [Header] #

ToPath SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

ToQuery SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

type Rep SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

type Rep SendEvent = D1 ('MetaData "SendEvent" "Amazonka.FraudDetector.SendEvent" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "SendEvent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "labelTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "assignedLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "eventTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "eventVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text (Sensitive Text))) :*: S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Sensitive Entity])))))
type AWSResponse SendEvent Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

newSendEvent Source #

Create a value of SendEvent 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:labelTimestamp:SendEvent', sendEvent_labelTimestamp - The timestamp associated with the label. Required if specifying assignedLabel.

$sel:assignedLabel:SendEvent', sendEvent_assignedLabel - The label to associate with the event. Required if specifying labelTimestamp.

$sel:eventId:SendEvent', sendEvent_eventId - The event ID to upload.

$sel:eventTypeName:SendEvent', sendEvent_eventTypeName - The event type name of the event.

$sel:eventTimestamp:SendEvent', sendEvent_eventTimestamp - The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.

$sel:eventVariables:SendEvent', sendEvent_eventVariables - Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

$sel:entities:SendEvent', sendEvent_entities - An array of entities.

Request Lenses

sendEvent_labelTimestamp :: Lens' SendEvent (Maybe Text) Source #

The timestamp associated with the label. Required if specifying assignedLabel.

sendEvent_assignedLabel :: Lens' SendEvent (Maybe Text) Source #

The label to associate with the event. Required if specifying labelTimestamp.

sendEvent_eventId :: Lens' SendEvent Text Source #

The event ID to upload.

sendEvent_eventTypeName :: Lens' SendEvent Text Source #

The event type name of the event.

sendEvent_eventTimestamp :: Lens' SendEvent Text Source #

The timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.

sendEvent_eventVariables :: Lens' SendEvent (HashMap Text Text) Source #

Names of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.

sendEvent_entities :: Lens' SendEvent [Entity] Source #

An array of entities.

Destructuring the Response

data SendEventResponse Source #

See: newSendEventResponse smart constructor.

Constructors

SendEventResponse' 

Fields

Instances

Instances details
Eq SendEventResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Read SendEventResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Show SendEventResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Generic SendEventResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Associated Types

type Rep SendEventResponse :: Type -> Type #

NFData SendEventResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

Methods

rnf :: SendEventResponse -> () #

type Rep SendEventResponse Source # 
Instance details

Defined in Amazonka.FraudDetector.SendEvent

type Rep SendEventResponse = D1 ('MetaData "SendEventResponse" "Amazonka.FraudDetector.SendEvent" "libZSservicesZSamazonka-frauddetectorZSamazonka-frauddetector" 'False) (C1 ('MetaCons "SendEventResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSendEventResponse Source #

Create a value of SendEventResponse 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:SendEventResponse', sendEventResponse_httpStatus - The response's http status code.

Response Lenses

sendEventResponse_httpStatus :: Lens' SendEventResponse Int Source #

The response's http status code.