github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/google/r/pubsub_subscription.html.markdown (about)

     1  ---
     2  layout: "google"
     3  page_title: "Google: google_pubsub_subscription"
     4  sidebar_current: "docs-google-pubsub-subscription"
     5  description: |-
     6    Creates a subscription in Google's pubsub  queueing system
     7  ---
     8  
     9  # google\_pubsub\_subscripion
    10  
    11  Creates a subscription in Google's pubsub queueing system.  For more information see
    12  [the official documentation](https://cloud.google.com/pubsub/docs) and
    13  [API](https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions).
    14  
    15  
    16  ## Example Usage
    17  
    18  ```
    19  resource "google_pubsub_subscription" "default" {
    20  	name = "default-subscription"
    21  	topic = "default-topic"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `name` - (Required) A unique name for the resource, required by pubsub.
    30      Changing this forces a new resource to be created.
    31  * `topic` - (Required) A topic to bind this subscription to, required by pubsub.
    32      Changing this forces a new resource to be created.
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `name` - The name of the resource.
    39  * `topic` - The topic to bind this resource to.