google_pubsub_subscription_iam_policy
Retrieves the current IAM policy data for a Pubsub subscription.
data "google_pubsub_subscription_iam_policy" "policy" {
subscription = google_pubsub_subscription.subscription.id
}
The following arguments are supported:
subscription
- (Required) The subscription name or id to bind to attach IAM policy to.
project
- (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.
The attributes are exported:
etag
- (Computed) The etag of the IAM policy.
policy_data
- (Computed) The policy data