|
| 1 | +--- |
| 2 | +# ---------------------------------------------------------------------------- |
| 3 | +# |
| 4 | +# *** AUTO GENERATED CODE *** Type: MMv1 *** |
| 5 | +# |
| 6 | +# ---------------------------------------------------------------------------- |
| 7 | +# |
| 8 | +# This code is generated by Magic Modules using the following: |
| 9 | +# |
| 10 | +# Configuration: https:#github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/products/iambeta/WorkloadIdentityPool.yaml |
| 11 | +# Template: https:#github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/templates/terraform/datasource_iam.html.markdown.tmpl |
| 12 | +# |
| 13 | +# DO NOT EDIT this file directly. Any changes made to this file will be |
| 14 | +# overwritten during the next generation cycle. |
| 15 | +# |
| 16 | +# ---------------------------------------------------------------------------- |
| 17 | +subcategory: "Cloud IAM" |
| 18 | +description: |- |
| 19 | + A datasource to retrieve the IAM policy state for Cloud IAM WorkloadIdentityPool |
| 20 | +--- |
| 21 | + |
| 22 | + |
| 23 | +# google_iam_workload_identity_pool_iam_policy |
| 24 | + |
| 25 | +Retrieves the current IAM policy data for workloadidentitypool |
| 26 | +~> **Warning:** This datasource is in beta, and should be used with the terraform-provider-google-beta provider. |
| 27 | +See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources. |
| 28 | + |
| 29 | + |
| 30 | +## Example Usage |
| 31 | + |
| 32 | + |
| 33 | +```hcl |
| 34 | +data "google_iam_workload_identity_pool_iam_policy" "policy" { |
| 35 | + project = google_iam_workload_identity_pool.example.project |
| 36 | + workload_identity_pool_id = google_iam_workload_identity_pool.example.workload_identity_pool_id |
| 37 | +} |
| 38 | +``` |
| 39 | + |
| 40 | +## Argument Reference |
| 41 | + |
| 42 | +The following arguments are supported: |
| 43 | + |
| 44 | + |
| 45 | +* `project` - (Optional) The ID of the project in which the resource belongs. |
| 46 | + If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. |
| 47 | + |
| 48 | +## Attributes Reference |
| 49 | + |
| 50 | +The attributes are exported: |
| 51 | + |
| 52 | +* `etag` - (Computed) The etag of the IAM policy. |
| 53 | + |
| 54 | +* `policy_data` - (Required only by `google_iam_workload_identity_pool_iam_policy`) The policy data generated by |
| 55 | + a `google_iam_policy` data source. |
0 commit comments