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_pubsub_lite_subscription" {
source="./modules/google-beta/r/google_pubsub_lite_subscription"# name - (required) is a type of stringname=null# project - (optional) is a type of stringproject=null# region - (optional) is a type of stringregion=null# topic - (required) is a type of stringtopic=null# zone - (optional) is a type of stringzone=nulldelivery_config=[{
delivery_requirement =null
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
variable"name" {
description="(required) - Name of the subscription."type=string
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"region" {
description="(optional) - The region of the pubsub lite topic."type=stringdefault=null
}
variable"topic" {
description="(required) - A reference to a Topic resource."type=string
}
variable"zone" {
description="(optional) - The zone of the pubsub lite topic."type=stringdefault=null
}
variable"delivery_config" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
delivery_requirement =string
}
))
default=[]
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_pubsub_lite_subscription""this" {
# name - (required) is a type of stringname=var.name# project - (optional) is a type of stringproject=var.project# region - (optional) is a type of stringregion=var.region# topic - (required) is a type of stringtopic=var.topic# zone - (optional) is a type of stringzone=var.zonedynamic"delivery_config" {
for_each=var.delivery_configcontent {
# delivery_requirement - (required) is a type of stringdelivery_requirement=delivery_config.value["delivery_requirement"]
}
}
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"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}