From e288b161d78f4facc3e0e81326c1f23de8ce2331 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 4 Feb 2016 23:19:30 +0000 Subject: [PATCH] provider/aws: Document CloudWatch Events --- .../aws/r/cloudwatch_event_rule.html.markdown | 57 +++++++++++++++++++ .../r/cloudwatch_event_target.html.markdown | 57 +++++++++++++++++++ website/source/layouts/aws.erb | 7 +++ 3 files changed, 121 insertions(+) create mode 100644 website/source/docs/providers/aws/r/cloudwatch_event_rule.html.markdown create mode 100644 website/source/docs/providers/aws/r/cloudwatch_event_target.html.markdown 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