google_logging_linked_dataset

Describes a BigQuery linked dataset

To get more information about LinkedDataset, see:

Example Usage - Logging Linked Dataset Basic

resource "google_logging_project_bucket_config" "logging_linked_dataset" {
  location         = "global"
  project          = "my-project-name"
  enable_analytics = true
  bucket_id        = "my-bucket"
}

resource "google_logging_linked_dataset" "logging_linked_dataset" {
  link_id     = "mylink"
  bucket      = google_logging_project_bucket_config.logging_linked_dataset.id
  description = "Linked dataset test"
}

Example Usage - Logging Linked Dataset All Params

resource "google_logging_project_bucket_config" "logging_linked_dataset" {
  location         = "global"
  project          = "my-project-name"
  enable_analytics = true
  bucket_id        = "my-bucket"
}

resource "google_logging_linked_dataset" "logging_linked_dataset" {
  link_id     = "mylink"
  bucket      = "my-bucket"
  parent      = "projects/my-project-name"
  location    = "global"
  description = "Linked dataset test"

  depends_on = ["google_logging_project_bucket_config.logging_linked_dataset"]
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

The bigquery_dataset block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

LinkedDataset can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import LinkedDataset using one of the formats above. For example:

import {
  id = "{{parent}}/locations/{{location}}/buckets/{{bucket}}/links/{{link_id}}"
  to = google_logging_linked_dataset.default
}

When using the terraform import command, LinkedDataset can be imported using one of the formats above. For example:

$ terraform import google_logging_linked_dataset.default {{parent}}/locations/{{location}}/buckets/{{bucket}}/links/{{link_id}}