You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_compute_disk_resource_policy_attachment" {
source="./modules/google-beta/r/google_compute_disk_resource_policy_attachment"# disk - (required) is a type of stringdisk=null# name - (required) is a type of stringname=null# project - (optional) is a type of stringproject=null# zone - (optional) is a type of stringzone=nulltimeouts=[{
create =null
delete =null
}]
}
variable"disk" {
description="(required) - The name of the disk in which the resource policies are attached to."type=string
}
variable"name" {
description="(required) - The resource policy to be attached to the disk for scheduling snapshot\ncreation. Do not specify the self link."type=string
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"zone" {
description="(optional) - A reference to the zone where the disk resides."type=stringdefault=null
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
}
))
default=[]
}
resource"google_compute_disk_resource_policy_attachment""this" {
# disk - (required) is a type of stringdisk=var.disk# name - (required) is a type of stringname=var.name# project - (optional) is a type of stringproject=var.project# zone - (optional) is a type of stringzone=var.zonedynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
}
}
}