github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/code_commit_trigger.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_codecommit_trigger"
     4  sidebar_current: "docs-aws-resource-codecommit-trigger"
     5  description: |-
     6    Provides a CodeCommit Trigger Resource.
     7  ---
     8  
     9  # aws\_codecommit\_trigger
    10  
    11  Provides a CodeCommit Trigger Resource.
    12  
    13  ~> **NOTE on CodeCommit**: The CodeCommit is not yet rolled out
    14  in all regions - available regions are listed
    15  [the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region).
    16  
    17  ## Example Usage
    18  
    19  ```hcl
    20  resource "aws_codecommit_trigger" "test" {
    21    depends_on      = ["aws_codecommit_repository.test"]
    22    repository_name = "my_test_repository"
    23  
    24    trigger {
    25      name            = "noname"
    26      events          = ["all"]
    27      destination_arn = "${aws_sns_topic.test.arn}"
    28    }
    29  }
    30  ```
    31  
    32  ## Argument Reference
    33  
    34  The following arguments are supported:
    35  
    36  * `repository_name` - (Required) The name for the repository. This needs to be less than 100 characters.
    37  * `name` - (Required) The name of the trigger.
    38  * `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).
    39  * `custom_data` - (Optional) Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
    40  * `branches` - (Optional) The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
    41  * `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`.