Skip to content

Commit

Permalink
documentation update: include bigquery_dataset resource in examples t…
Browse files Browse the repository at this point in the history
…o show how dataset_id attribute is used (#9927)
  • Loading branch information
Bjorn248 authored Aug 27, 2021
1 parent 20691e7 commit 251019e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions website/docs/r/bigquery_dataset_iam.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,44 @@ data "google_iam_policy" "owner" {
}
resource "google_bigquery_dataset_iam_policy" "dataset" {
dataset_id = "your-dataset-id"
dataset_id = google_bigquery_dataset.dataset.dataset_id
policy_data = data.google_iam_policy.owner.policy_data
}
resource "google_bigquery_dataset" "dataset" {
dataset_id = "example_dataset"
}
```

## google\_bigquery\_dataset\_iam\_binding

```hcl
resource "google_bigquery_dataset_iam_binding" "reader" {
dataset_id = "your-dataset-id"
dataset_id = google_bigquery_dataset.dataset.dataset_id
role = "roles/bigquery.dataViewer"
members = [
"user:[email protected]",
]
}
resource "google_bigquery_dataset" "dataset" {
dataset_id = "example_dataset"
}
```

## google\_bigquery\_dataset\_iam\_member

```hcl
resource "google_bigquery_dataset_iam_member" "editor" {
dataset_id = "your-dataset-id"
dataset_id = google_bigquery_dataset.dataset.dataset_id
role = "roles/bigquery.dataEditor"
member = "user:[email protected]"
}
resource "google_bigquery_dataset" "dataset" {
dataset_id = "example_dataset"
}
```

## Argument Reference
Expand Down

0 comments on commit 251019e

Please sign in to comment.