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_service_directory_endpoint" {
source="./modules/google-beta/r/google_service_directory_endpoint"# address - (optional) is a type of stringaddress=null# endpoint_id - (required) is a type of stringendpoint_id=null# metadata - (optional) is a type of map of stringmetadata={}
# port - (optional) is a type of numberport=null# service - (required) is a type of stringservice=nulltimeouts=[{
create =null
delete =null
update =null
}]
}
variable"address" {
description="(optional) - IPv4 or IPv6 address of the endpoint."type=stringdefault=null
}
variable"endpoint_id" {
description="(required) - The Resource ID must be 1-63 characters long, including digits,\nlowercase letters or the hyphen character."type=string
}
variable"metadata" {
description="(optional) - Metadata for the endpoint. This data can be consumed\nby service clients. The entire metadata dictionary may contain\nup to 512 characters, spread across all key-value pairs.\nMetadata that goes beyond any these limits will be rejected."type=map(string)
default=null
}
variable"port" {
description="(optional) - Port that the endpoint is running on, must be in the\nrange of [0, 65535]. If unspecified, the default is 0."type=numberdefault=null
}
variable"service" {
description="(required) - The resource name of the service that this endpoint provides."type=string
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_service_directory_endpoint""this" {
# address - (optional) is a type of stringaddress=var.address# endpoint_id - (required) is a type of stringendpoint_id=var.endpoint_id# metadata - (optional) is a type of map of stringmetadata=var.metadata# port - (optional) is a type of numberport=var.port# service - (required) is a type of stringservice=var.servicedynamic"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"]
}
}
}