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_folder_organization_policy" {
source="./modules/google-beta/r/google_folder_organization_policy"# constraint - (required) is a type of stringconstraint=null# folder - (required) is a type of stringfolder=null# version - (optional) is a type of numberversion=nullboolean_policy=[{
enforced =null
}]
list_policy=[{
allow = [{
all =null
values = []
}]
deny = [{
all =null
values = []
}]
inherit_from_parent =null
suggested_value =null
}]
restore_policy=[{
default =null
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
}
variable"constraint" {
description="(required) - The name of the Constraint the Policy is configuring, for example, serviceuser.services."type=string
}
variable"folder" {
description="(required) - The resource name of the folder to set the policy for. Its format is folders/{folder_id}."type=string
}
variable"version" {
description="(optional) - Version of the Policy. Default version is 0."type=numberdefault=null
}
variable"boolean_policy" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
enforced =bool
}
))
default=[]
}
variable"list_policy" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
allow =list(object(
{
all =bool
values =set(string)
}
))
deny =list(object(
{
all =bool
values =set(string)
}
))
inherit_from_parent =bool
suggested_value =string
}
))
default=[]
}
variable"restore_policy" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
default =bool
}
))
default=[]
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
read =string
update =string
}
))
default=[]
}
resource"google_folder_organization_policy""this" {
# constraint - (required) is a type of stringconstraint=var.constraint# folder - (required) is a type of stringfolder=var.folder# version - (optional) is a type of numberversion=var.versiondynamic"boolean_policy" {
for_each=var.boolean_policycontent {
# enforced - (required) is a type of boolenforced=boolean_policy.value["enforced"]
}
}
dynamic"list_policy" {
for_each=var.list_policycontent {
# inherit_from_parent - (optional) is a type of boolinherit_from_parent=list_policy.value["inherit_from_parent"]
# suggested_value - (optional) is a type of stringsuggested_value=list_policy.value["suggested_value"]
dynamic"allow" {
for_each=list_policy.value.allowcontent {
# all - (optional) is a type of boolall=allow.value["all"]
# values - (optional) is a type of set of stringvalues=allow.value["values"]
}
}
dynamic"deny" {
for_each=list_policy.value.denycontent {
# all - (optional) is a type of boolall=deny.value["all"]
# values - (optional) is a type of set of stringvalues=deny.value["values"]
}
}
}
}
dynamic"restore_policy" {
for_each=var.restore_policycontent {
# default - (required) is a type of booldefault=restore_policy.value["default"]
}
}
dynamic"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"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}