variable "common_tags" {
  type        = map(string)
  description = "Default tags to be applied"
  default     = {}
}

variable "region" {
  type        = string
  description = "Region name. Defaults to us-east-1"
  default     = "us-east-1"
}

variable "service" {
  type        = string
  description = "The service name."
}

variable "vpc_id" {
  type        = string
  description = "The ID of the VPC in which the endpoint will be used."
}

variable "vpc_endpoint_type" {
  type        = string
  description = "The VPC endpoint type, Gateway or Interface. Defaults to Gateway."
  default     = "Gateway"
}

variable "cidr_second_octet" {
  type        = string
  description = "The second octet of CIDR block for the VPC."
  default     = "10"
}

variable "security_group_ids" {
  type        = list(string)
  description = "The ID of one or more security groups to associate with the network interface. Required for endpoints of type Interface."
  default     = []
}

variable "subnet_ids" {
  type        = list(string)
  description = "The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type Interface."
  default     = []
}

variable "route_tables" {
  type        = list(string)
  description = "One or more route table IDs. Applicable for endpoints of type Gateway."
  default     = []
}

variable "policy" {
  type        = string
  description = "A policy to attach to the endpoint that controls access to the service. Defaults to full access. All Gateway and some Interface endpoints support policies."
  default     = ""
}
