FraudDetector / Client / put_event_type

put_event_type#

FraudDetector.Client.put_event_type(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.put_event_type(
    name='string',
    description='string',
    eventVariables=[
        'string',
    ],
    labels=[
        'string',
    ],
    entityTypes=[
        'string',
    ],
    eventIngestion='ENABLED'|'DISABLED',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    eventOrchestration={
        'eventBridgeEnabled': True|False
    }
)
Parameters:
  • name (string) –

    [REQUIRED]

    The name.

  • description (string) – The description of the event type.

  • eventVariables (list) –

    [REQUIRED]

    The event type variables.

    • (string) –

  • labels (list) –

    The event type labels.

    • (string) –

  • entityTypes (list) –

    [REQUIRED]

    The entity type for the event type. Example entity types: customer, merchant, account.

    • (string) –

  • eventIngestion (string) – Specifies if ingestion is enabled or disabled.

  • tags (list) –

    A collection of key and value pairs.

    • (dict) –

      A key and value pair.

      • key (string) – [REQUIRED]

        A tag key.

      • value (string) – [REQUIRED]

        A value assigned to a tag key.

  • eventOrchestration (dict) –

    Enables or disables event orchestration. If enabled, you can send event predictions to select AWS services for downstream processing of the events.

    • eventBridgeEnabled (boolean) – [REQUIRED]

      Specifies if event orchestration is enabled through Amazon EventBridge.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • FraudDetector.Client.exceptions.ValidationException

  • FraudDetector.Client.exceptions.InternalServerException

  • FraudDetector.Client.exceptions.ThrottlingException

  • FraudDetector.Client.exceptions.AccessDeniedException

  • FraudDetector.Client.exceptions.ConflictException