blob: 50a0814263480db11884240e7beaad467755ddf3 [file] [log] [blame]
---
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** Type: MMv1 ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in
# .github/CONTRIBUTING.md.
#
# ----------------------------------------------------------------------------
subcategory: "Cloud (Stackdriver) Logging"
description: |-
A datasource to retrieve the IAM policy state for Cloud (Stackdriver) Logging LogView
---
# `google_logging_log_view_iam_policy`
Retrieves the current IAM policy data for logview
## example
```hcl
data "google_logging_log_view_iam_policy" "policy" {
parent = google_logging_log_view.logging_log_view.parent
location = google_logging_log_view.logging_log_view.location
bucket = google_logging_log_view.logging_log_view.bucket
name = google_logging_log_view.logging_log_view.name
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) Used to find the parent resource to bind the IAM policy to
* `parent` - (Required) The parent of the resource. Used to find the parent resource to bind the IAM policy to
* `location` - (Optional) The location of the resource. The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1. Used to find the parent resource to bind the IAM policy to. If not specified,
the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
location is specified, it is taken from the provider configuration.
* `bucket` - (Required) The bucket of the resource Used to find the parent resource to bind the IAM policy to
## Attributes Reference
The attributes are exported:
* `etag` - (Computed) The etag of the IAM policy.
* `policy_data` - (Required only by `google_logging_log_view_iam_policy`) The policy data generated by
a `google_iam_policy` data source.