github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/aws/r/db_event_subscription.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_db_event_subscription"
     4  sidebar_current: "docs-aws-resource-db-event-subscription"
     5  ---
     6  
     7  # aws\_db\_event\_subscription
     8  
     9  Provides a DB event subscription resource.
    10  
    11  ## Example Usage
    12  
    13  ```
    14  resource "aws_sns_topic" "default" {
    15    name = "rds-events"
    16  }
    17  
    18  resource "aws_db_event_subscription" "default" {
    19    name = "rds-event-sub"
    20    sns_topic = "${aws_sns_topic.default.arn}"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `name` - (Required) The name of the DB event subscription.
    29  * `sns_topic` - (Required) The SNS topic to send events to.
    30  * `source_ids` - (Optional) A list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. If specified, a source_type must also be specified.
    31  * `source_type` - (Optional) The type of source that will be generating the events.
    32  * `event_categories` - (Optional) A list of event categories for a SourceType that you want to subscribe to.
    33  * `enabled` - (Optional) A boolean flag to enable/disable the subscription. Defaults to true.
    34  * `tags` - (Optional) A mapping of tags to assign to the resource.