Added Codecommit Trigger

This commit is contained in:
Anshul Sharma
2016-09-08 14:24:54 +05:30
parent 068585bdba
commit 497063af3e
5 changed files with 365 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
---
layout: "aws"
page_title: "AWS: aws_codecommit_trigger"
sidebar_current: "docs-aws-resource-codecommit-trigger"
description: |-
Provides a CodeCommit Trigger Resource.
---
# aws\_codecommit\_trigger
Provides a CodeCommit Trigger Resource.
~> **NOTE on CodeCommit**: The CodeCommit is not yet rolled out
in all regions - available regions are listed
[the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region).
## Example Usage
```
resource "aws_codecommit_trigger" "test" {
depends_on = ["aws_codecommit_repository.test"]
repository_name = "my_test_repository"
trigger {
name = "noname"
events = ["all"]
destination_arn = "${aws_sns_topic.test.arn}"
}
}
```
## Argument Reference
The following arguments are supported:
* `repository_name` - (Required) The name for the repository. This needs to be less than 100 characters.
* `name` - (Required) The name of the trigger.
* `destination_arn` - (Required) The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
* `custom_data` - (Optional) Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
* `branches` - (Optional) The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
* `events` - (Required) The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: `all`, `updateReference`, `createReference`, `deleteReference`.