def METHOD_NAME(source_type: Optional[str] = None,
                         opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetEventCategoriesResult:
    """
    ## Example Usage
    List the event categories of all the RDS resources.
    ```python
    import pulumi
    import pulumi_aws as aws
    example_event_categories = aws.rds.get_event_categories()
    pulumi.export("example", example_event_categories.event_categories)
    ```
    List the event categories specific to the RDS resource `db-snapshot`.
    ```python
    import pulumi
    import pulumi_aws as aws
    example_event_categories = aws.rds.get_event_categories(source_type="db-snapshot")
    pulumi.export("example", example_event_categories.event_categories)
    ```
    :param str source_type: Type of source that will be generating the events. Valid options are db-instance, db-security-group, db-parameter-group, db-snapshot, db-cluster or db-cluster-snapshot.
    """
    __args__ = dict()
    __args__['sourceType'] = source_type
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('aws:rds/getEventCategories:getEventCategories', __args__, opts=opts, typ=GetEventCategoriesResult).value
    return AwaitableGetEventCategoriesResult(
        event_categories=pulumi.get(__ret__, 'event_categories'),
        id=pulumi.get(__ret__, 'id'),
        source_type=pulumi.get(__ret__, 'source_type'))