github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/website/source/docs/providers/bitbucket/r/hook.html.markdown (about)

     1  ---
     2  layout: "bitbucket"
     3  page_title: "Bitbucket: bitbucket_hook"
     4  sidebar_current: "docs-bitbucket-resource-hook"
     5  description: |-
     6    Provides a Bitbucket Webhook
     7  ---
     8  
     9  # bitbucket\_hook
    10  
    11  Provides a Bitbucket hook resource.
    12  
    13  This allows you to manage your webhooks on a repository.
    14  
    15  ## Example Usage
    16  
    17  ```
    18  # Manage your respositories hooks
    19  resource "bitbucket_hook" "deploy_on_push" {
    20      owner = "myteam"
    21      repository = "terraform-code"
    22      url = "https://mywebhookservice.mycompany.com/deploy-on-push"
    23      description = "Deploy the code via my webhook"
    24      events = [
    25          "repo:push"
    26      ]
    27  }
    28  ```
    29  
    30  ## Argument Reference
    31  
    32  The following arguments are supported:
    33  
    34  * `owner` - (Required) The owner of this repository. Can be you or any team you
    35    have write access to.
    36  * `repository` - (Required) The name of the repository.
    37  * `url` - (Required) Where to POST to.
    38  * `description` - (Required) The name / description to show in the UI.
    39  * `events` - (Required) The event you want to react on.