| --- |
| # ---------------------------------------------------------------------------- |
| # |
| # *** 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 Endpoints" |
| description: |- |
| A datasource to retrieve the IAM policy state for Cloud Endpoints ServiceConsumers |
| --- |
| |
| |
| # `google_endpoints_service_consumers_iam_policy` |
| Retrieves the current IAM policy data for serviceconsumers |
| |
| |
| |
| ## example |
| |
| ```hcl |
| data "google_endpoints_service_consumers_iam_policy" "policy" { |
| service_name = google_endpoints_service.endpoints_service.service_name |
| consumer_project = "%{consumer_project}" |
| } |
| ``` |
| |
| ## Argument Reference |
| |
| The following arguments are supported: |
| |
| |
| ## Attributes Reference |
| |
| The attributes are exported: |
| |
| * `etag` - (Computed) The etag of the IAM policy. |
| |
| * `policy_data` - (Required only by `google_endpoints_service_consumers_iam_policy`) The policy data generated by |
| a `google_iam_policy` data source. |