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

     1  ---
     2  layout: "librato"
     3  page_title: "Librato: librato_service"
     4  sidebar_current: "docs-librato-resource-service"
     5  description: |-
     6    Provides a Librato service resource. This can be used to create and manage notification services on Librato.
     7  ---
     8  
     9  # librato\_service
    10  
    11  Provides a Librato Service resource. This can be used to
    12  create and manage notification services on Librato.
    13  
    14  ## Example Usage
    15  
    16  ```hcl
    17  # Create a new Librato service
    18  resource "librato_service" "email" {
    19    title = "Email the admins"
    20    type  = "mail"
    21  
    22    settings = <<EOF
    23  {
    24    "addresses": "admin@example.com"
    25  }
    26  EOF
    27  }
    28  ```
    29  
    30  ## Argument Reference
    31  
    32  The following arguments are supported. Please check the [relevant documentation](https://github.com/librato/librato-services/tree/master/services) for each type of alert.
    33  
    34  * `type` - (Required) The type of notificaion.
    35  * `title` - (Required) The alert title.
    36  * `settings` - (Required) a JSON hash of settings specific to the alert type.
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42  * `id` - The ID of the alert.
    43  * `type` - The type of notificaion.
    44  * `title` - The alert title.
    45  * `settings` - a JSON hash of settings specific to the alert type.