:doc:`FraudDetector <../../frauddetector>` / Client / put_event_type

**************
put_event_type
**************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutEventType>`_  


  **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
        }
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name.

    

  
  :type description: string
  :param description: 

    The description of the event type.

    

  
  :type eventVariables: list
  :param eventVariables: **[REQUIRED]** 

    The event type variables.

    

  
    - *(string) --* 

    

  :type labels: list
  :param labels: 

    The event type labels.

    

  
    - *(string) --* 

    

  :type entityTypes: list
  :param entityTypes: **[REQUIRED]** 

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

    

  
    - *(string) --* 

    

  :type eventIngestion: string
  :param eventIngestion: 

    Specifies if ingestion is enabled or disabled.

    

  
  :type tags: list
  :param tags: 

    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.

        

      
    

  :type eventOrchestration: dict
  :param eventOrchestration: 

    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.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

  
  *   :py:class:`FraudDetector.Client.exceptions.InternalServerException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ThrottlingException`

  
  *   :py:class:`FraudDetector.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`FraudDetector.Client.exceptions.ConflictException`

  