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

*********
get_event
*********



.. py:method:: FraudDetector.Client.get_event(**kwargs)

  

  Retrieves details of events stored with Amazon Fraud Detector. This action does not retrieve prediction results.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetEvent>`_  


  **Request Syntax**
  ::

    response = client.get_event(
        eventId='string',
        eventTypeName='string'
    )
    
  :type eventId: string
  :param eventId: **[REQUIRED]** 

    The ID of the event to retrieve.

    

  
  :type eventTypeName: string
  :param eventTypeName: **[REQUIRED]** 

    The event type of the event to retrieve.

    

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

    
    ::

      {
          'event': {
              'eventId': 'string',
              'eventTypeName': 'string',
              'eventTimestamp': 'string',
              'eventVariables': {
                  'string': 'string'
              },
              'currentLabel': 'string',
              'labelTimestamp': 'string',
              'entities': [
                  {
                      'entityType': 'string',
                      'entityId': 'string'
                  },
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **event** *(dict) --* 

        The details of the event.

        
        

        - **eventId** *(string) --* 

          The event ID.

          
        

        - **eventTypeName** *(string) --* 

          The event type.

          
        

        - **eventTimestamp** *(string) --* 

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

          
        

        - **eventVariables** *(dict) --* 

          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.

          
          

          - *(string) --* 
            

            - *(string) --* 
      
    
        

        - **currentLabel** *(string) --* 

          The label associated with the event.

          
        

        - **labelTimestamp** *(string) --* 

          The timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.

          
        

        - **entities** *(list) --* 

          The event entities.

          
          

          - *(dict) --* 

            The entity details.

            
            

            - **entityType** *(string) --* 

              The entity type.

              
            

            - **entityId** *(string) --* 

              The entity ID. If you do not know the ``entityId``, you can pass ``unknown``, which is areserved string literal.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`FraudDetector.Client.exceptions.ValidationException`

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

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

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

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

  