| --- |
| # ---------------------------------------------------------------------------- |
| # |
| # *** 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 Storage" |
| description: |- |
| A datasource to retrieve the IAM policy state for Cloud Storage Bucket |
| --- |
| |
| |
| # `google_storage_bucket_iam_policy` |
| Retrieves the current IAM policy data for bucket |
| |
| |
| |
| ## example |
| |
| ```hcl |
| data "google_storage_bucket_iam_policy" "policy" { |
| bucket = google_storage_bucket.default.name |
| } |
| ``` |
| |
| ## Argument Reference |
| |
| The following arguments are supported: |
| |
| * `bucket` - (Required) 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_storage_bucket_iam_policy`) The policy data generated by |
| a `google_iam_policy` data source. |