github.com/ves/terraform@v0.8.0-beta2/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  ```
    20  resource "aws_codecommit_trigger" "test" {
    21     depends_on = ["aws_codecommit_repository.test"]
    22     repository_name = "my_test_repository"
    23      trigger {
    24        name = "noname"
    25        events = ["all"]
    26        destination_arn = "${aws_sns_topic.test.arn}"
    27    }
    28   }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `repository_name` - (Required) The name for the repository. This needs to be less than 100 characters.
    36  * `name` - (Required) The name of the trigger.
    37  * `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).
    38  * `custom_data` - (Optional) Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
    39  * `branches` - (Optional) The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
    40  * `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`.