---
type: resource-type
title: DocDBEventSubscription
description: aws resource type AWS::DocDB::EventSubscription
name: DocDBEventSubscription
lexicon: aws
resource_type: AWS::DocDB::EventSubscription
---
`AWS::DocDB::EventSubscription`, a resource type of the aws lexicon.

## Properties

- `SnsTopicArn` (`string`, required): The Amazon Resource Name (ARN) of the SNS topic created for event notification. Amazon SNS creates the ARN when you create a topic and subscribe to it.
- `Enabled` (`boolean`, optional): A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.
- `EventCategories` (`string[]`, optional): A list of event categories for a SourceType that you want to subscribe to.
- `SourceIds` (`string[]`, optional): The list of identifiers of the event sources for which events are returned
- `SourceType` (`"db-cluster" | "db-cluster-snapshot" | "db-instance" | "db-parameter-group" | "db-security-group"`, optional): The type of source that is generating the events.
- `SubscriptionName` (`string`, optional): The name of the subscription.
