resource "aws_lb_target_group" "maxp3-private-api-forwarder-target-group" {
  connection_termination            = false
  deregistration_delay              = 300
  ip_address_type                   = "ipv4"
  load_balancing_cross_zone_enabled = "use_load_balancer_configuration"
  name                              = "maxp3-apgw-tg"
  port                              = 443
  preserve_client_ip                = false
  protocol                          = "TLS"
  proxy_protocol_v2                 = false
  tags                              = {}
  tags_all                          = {}
  target_type                       = "ip"
  vpc_id                            = aws_vpc.MAX-P3.id
  health_check {
    enabled             = true
    healthy_threshold   = 5
    interval            = 30
    port                = "traffic-port"
    protocol            = "TCP"
    timeout             = 10
    unhealthy_threshold = 2
  }
  stickiness {
    cookie_duration = 0

    enabled = false
    type    = "source_ip"
  }
}