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_api_gateway_gateway" {
source="./modules/google-beta/r/google_api_gateway_gateway"# api_config - (required) is a type of stringapi_config=null# display_name - (optional) is a type of stringdisplay_name=null# gateway_id - (required) is a type of stringgateway_id=null# labels - (optional) is a type of map of stringlabels={}
# project - (optional) is a type of stringproject=null# region - (optional) is a type of stringregion=nulltimeouts=[{
create =null
delete =null
update =null
}]
}
variable"api_config" {
description="(required) - Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}"type=string
}
variable"display_name" {
description="(optional) - A user-visible name for the API."type=stringdefault=null
}
variable"gateway_id" {
description="(required) - Identifier to assign to the Gateway. Must be unique within scope of the parent resource(project)."type=string
}
variable"labels" {
description="(optional) - Resource labels to represent user-provided metadata."type=map(string)
default=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"region" {
description="(optional) - The region of the gateway for the API."type=stringdefault=null
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_api_gateway_gateway""this" {
# api_config - (required) is a type of stringapi_config=var.api_config# display_name - (optional) is a type of stringdisplay_name=var.display_name# gateway_id - (required) is a type of stringgateway_id=var.gateway_id# labels - (optional) is a type of map of stringlabels=var.labels# project - (optional) is a type of stringproject=var.project# region - (optional) is a type of stringregion=var.regiondynamic"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"]
}
}
}