Skip to content

Commit 5ca4239

Browse files
add documentation for ws_db_event_categories
1 parent 278a497 commit 5ca4239

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

website/aws.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
<li<%= sidebar_current("docs-aws-datasource-db-cluster-snapshot") %>>
117117
<a href="/docs/providers/aws/d/db_cluster_snapshot.html">aws_db_cluster_snapshot</a>
118118
</li>
119+
<li<%= sidebar_current("docs-aws-datasource-db-event-categories") %>>
120+
<a href="/docs/providers/aws/d/db_event_categories.html">aws_db_event_categories</a>
121+
</li>
119122
<li<%= sidebar_current("docs-aws-datasource-db-instance") %>>
120123
<a href="/docs/providers/aws/d/db_instance.html">aws_db_instance</a>
121124
</li>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: "aws"
3+
page_title: "AWS: aws_db_event_categories"
4+
sidebar_current: "docs-aws-datasource-db-event-categories"
5+
description: |-
6+
Provides a list of DB Event Categories which can be used to pass values into DB Event Subscription.
7+
---
8+
9+
# Data Source: aws_db_event_categories
10+
11+
## Example Usage
12+
13+
List the event categories of all the RDS resources.
14+
15+
```hcl
16+
data "aws_db_event_categories" "example" {}
17+
18+
output "example" {
19+
value = "${data.aws_db_event_categories.example.event_categories}"
20+
}
21+
```
22+
23+
List the event categories specific to the RDS resource `db-snapshot`.
24+
25+
```hcl
26+
data "aws_db_event_categories" "example" {
27+
source_type = "db-snapshot"
28+
}
29+
30+
output "example" {
31+
value = "${data.aws_db_event_categories.example.event_categories}"
32+
}
33+
```
34+
35+
## Argument Reference
36+
37+
The following arguments are supported:
38+
39+
* `source_type` - (Optional) 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.
40+
41+
## Attributes Reference
42+
43+
In addition to all arguments above, the following attributes are exported:
44+
45+
* `event_categories` - A list of the event categories.

0 commit comments

Comments
 (0)