def get_event_categories(source_type: Optional[str]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetEventCategoriesResult:
    '\n    ## Example Usage\n\n    List the event categories of all the RDS resources.\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    example_event_categories = aws.rds.get_event_categories()\n    pulumi.export("example", example_event_categories.event_categories)\n    ```\n\n    List the event categories specific to the RDS resource `db-snapshot`.\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    example_event_categories = aws.rds.get_event_categories(source_type="db-snapshot")\n    pulumi.export("example", example_event_categories.event_categories)\n    ```\n\n\n    :param str source_type: The 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.\n    '
    __args__ = dict()
    __args__['sourceType'] = source_type
    if (opts is None):
        opts = pulumi.InvokeOptions()
    if (opts.version is None):
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('aws:rds/getEventCategories:getEventCategories', __args__, opts=opts, typ=GetEventCategoriesResult).value
    return AwaitableGetEventCategoriesResult(event_categories=__ret__.event_categories, id=__ret__.id, source_type=__ret__.source_type)
## 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: The 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.
def get_event_categories(source_type: Optional[str]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetEventCategoriesResult:
    '\n    ## Example Usage\n\n    List the event categories of all the RDS resources.\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    example_event_categories = aws.rds.get_event_categories()\n    pulumi.export("example", example_event_categories.event_categories)\n    ```\n\n    List the event categories specific to the RDS resource `db-snapshot`.\n\n    ```python\n    import pulumi\n    import pulumi_aws as aws\n\n    example_event_categories = aws.rds.get_event_categories(source_type="db-snapshot")\n    pulumi.export("example", example_event_categories.event_categories)\n    ```\n\n\n    :param str source_type: The 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.\n    '
    __args__ = dict()
    __args__['sourceType'] = source_type
    if (opts is None):
        opts = pulumi.InvokeOptions()
    if (opts.version is None):
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('aws:rds/getEventCategories:getEventCategories', __args__, opts=opts, typ=GetEventCategoriesResult).value
    return AwaitableGetEventCategoriesResult(event_categories=__ret__.event_categories, id=__ret__.id, source_type=__ret__.source_type)