diff --git a/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown b/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown new file mode 100644 index 000000000..f3ed87cb7 --- /dev/null +++ b/website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown @@ -0,0 +1,57 @@ +--- +layout: "aws" +page_title: "AWS: aws_cloudwatch_event_rule" +sidebar_current: "docs-aws-resource-cloudwatch-event-rule" +description: |- + Provides a CloudWatch Event Rule resource. +--- + +# aws\_cloudwatch\_event\_rule + +Provides a CloudWatch Event Rule resource. + +## Example Usage + +``` +resource "aws_cloudwatch_event_rule" "console" { + name = "capture-aws-sign-in" + description = "Capture each AWS Console Sign In" + event_pattern = < **Note:** `input` and `input_path` are mutually exclusive options. + +The following arguments are supported: + +* `rule` - (Required) The name of the rule you want to add targets to. +* `target_id` - (Required) The unique target assignment ID. +* `arn` - (Required) The Amazon Resource Name (ARN) associated of the target. +* `input` - (Optional) Valid JSON text passed to the target. +* `input_path` - (Optional) The value of the [JSONPath](http://goessner.net/articles/JsonPath/) + that is used for extracting part of the matched event when passing it to the target. diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index 4f1319dda..c9298f34a 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -31,6 +31,13 @@ > CloudWatch Resources