Get information about a Google Cloud Pub/Sub Topic. For more information see the official documentation and API.
data "google_pubsub_topic" "my-pubsub-topic" {
name = "my-pubsub-topic"
}
The following arguments are supported:
name
- (Required) The name of the Cloud Pub/Sub Topic.project
- (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.See google_pubsub_topic resource for details of the available attributes.