:doc:`DatabaseMigrationService <../../dms>` / Client / describe_event_categories

*************************
describe_event_categories
*************************



.. py:method:: DatabaseMigrationService.Client.describe_event_categories(**kwargs)

  

  Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in `Working with Events and Notifications <https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html>`__ in the *Database Migration Service User Guide.*

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventCategories>`_  


  **Request Syntax**
  ::

    response = client.describe_event_categories(
        SourceType='string',
        Filters=[
            {
                'Name': 'string',
                'Values': [
                    'string',
                ]
            },
        ]
    )
    
  :type SourceType: string
  :param SourceType: 

    The type of DMS resource that generates events.

     

    Valid values: replication-instance | replication-task

    

  
  :type Filters: list
  :param Filters: 

    Filters applied to the event categories.

    

  
    - *(dict) --* 

      Identifies the name and value of a filter object. This filter is used to limit the number and type of DMS objects that are returned for a particular ``Describe*`` call or similar operation. Filters are used as an optional parameter for certain API operations.

      

    
      - **Name** *(string) --* **[REQUIRED]** 

        The name of the filter as specified for a ``Describe*`` or similar operation.

        

      
      - **Values** *(list) --* **[REQUIRED]** 

        The filter value, which can specify one or more values used to narrow the returned results.

        

      
        - *(string) --* 

        
    
    

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

    
    ::

      {
          'EventCategoryGroupList': [
              {
                  'SourceType': 'string',
                  'EventCategories': [
                      'string',
                  ]
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **EventCategoryGroupList** *(list) --* 

        A list of event categories.

        
        

        - *(dict) --* 

          Lists categories of events subscribed to, and generated by, the applicable DMS resource type. This data type appears in response to the `DescribeEventCategories <https://docs.aws.amazon.com/dms/latest/APIReference/API_EventCategoryGroup.html>`__ action.

          
          

          - **SourceType** *(string) --* 

            The type of DMS resource that generates events.

             

            Valid values: replication-instance | replication-server | security-group | replication-task

            
          

          - **EventCategories** *(list) --* 

            A list of event categories from a source type that you've chosen.

            
            

            - *(string) --* 
        
      
    
  