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_bigtable_gc_policy" {
source="./modules/google-beta/r/google_bigtable_gc_policy"# column_family - (required) is a type of stringcolumn_family=null# instance_name - (required) is a type of stringinstance_name=null# mode - (optional) is a type of stringmode=null# project - (optional) is a type of stringproject=null# table - (required) is a type of stringtable=nullmax_age=[{
days =null
duration =null
}]
max_version=[{
number =null
}]
}
variable"column_family" {
description="(required) - The name of the column family."type=string
}
variable"instance_name" {
description="(required) - The name of the Bigtable instance."type=string
}
variable"mode" {
description="(optional) - If multiple policies are set, you should choose between UNION OR INTERSECTION."type=stringdefault=null
}
variable"project" {
description="(optional) - The ID of the project in which the resource belongs. If it is not provided, the provider project is used."type=stringdefault=null
}
variable"table" {
description="(required) - The name of the table."type=string
}
variable"max_age" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
days =number
duration =string
}
))
default=[]
}
variable"max_version" {
description="nested block: NestingList, min items: 0, max items: 0"type=set(object(
{
number =number
}
))
default=[]
}
resource"google_bigtable_gc_policy""this" {
# column_family - (required) is a type of stringcolumn_family=var.column_family# instance_name - (required) is a type of stringinstance_name=var.instance_name# mode - (optional) is a type of stringmode=var.mode# project - (optional) is a type of stringproject=var.project# table - (required) is a type of stringtable=var.tabledynamic"max_age" {
for_each=var.max_agecontent {
# days - (optional) is a type of numberdays=max_age.value["days"]
# duration - (optional) is a type of stringduration=max_age.value["duration"]
}
}
dynamic"max_version" {
for_each=var.max_versioncontent {
# number - (required) is a type of numbernumber=max_version.value["number"]
}
}
}