2015-10-28 18:55:50 +01:00
|
|
|
---
|
|
|
|
layout: "google"
|
|
|
|
page_title: "Google: google_pubsub_topic"
|
|
|
|
sidebar_current: "docs-google-pubsub-topic"
|
|
|
|
description: |-
|
|
|
|
Creates a topic in Google's pubsub queueing system
|
|
|
|
---
|
|
|
|
|
|
|
|
# google\_pubsub\_topic
|
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
Creates a topic in Google's pubsub queueing system. For more information see
|
2015-10-28 18:55:50 +01:00
|
|
|
[the official documentation](https://cloud.google.com/pubsub/docs) and
|
2016-12-13 11:12:49 +01:00
|
|
|
[API](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics).
|
2015-10-28 18:55:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
```js
|
2015-10-28 18:55:50 +01:00
|
|
|
resource "google_pubsub_topic" "default" {
|
2016-04-10 23:34:15 +02:00
|
|
|
name = "default-topic"
|
2015-10-28 18:55:50 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) A unique name for the resource, required by pubsub.
|
|
|
|
Changing this forces a new resource to be created.
|
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
- - -
|
2015-10-28 18:55:50 +01:00
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
* `project` - (Optional) The project in which the resource belongs. If it
|
|
|
|
is not provided, the provider project is used.
|
|
|
|
|
|
|
|
## Attributes Reference
|
2015-10-28 18:55:50 +01:00
|
|
|
|
2016-04-10 23:34:15 +02:00
|
|
|
Only the arguments listed above are exposed as attributes.
|