Provide access to a Resource Policy's attributes. For more information see the official documentation or the API.
provider "google-beta" {
region = "us-central1"
zone = "us-central1-a"
}
data "google_compute_resource_policy" "daily" {
provider = google-beta
name = "daily"
region = "us-central1"
}
The following arguments are supported:
name
(Required) - The name of the Resource Policy.project
(Optional) - Project from which to list the Resource Policy. Defaults to project declared in the provider.region
(Required) - Region where the Resource Policy resides.The following attributes are exported:
description
- Description of this Resource Policy.self_link
- The URI of the resource.