variable "aws_region" {
  description = "AWS region."
  type        = string
  default     = "us-east-1"
}

variable "environment" {
  description = "Available values: dev, qa, prod."
  type        = string
  default     = "qa"
}

variable "application_family" {
  description = "Application family to which this service belongs."
  type        = string
  default     = "devops"
}

variable "service_name" {
  description = "Name of service."
  type        = string
  default     = "s3restore"
}

variable "bucket_name" {
  description = "Bucket to scan for deleted objects."
  type        = string
  default     = "cucumbers"
}

variable "object_prefix" {
  description = "Object key prefix to scan a particular part of the bucket."
  type        = string
  default     = ""
}

variable "object_filter" {
  description = "Object key regex to restore only a subset of objects."
  type        = string
  default     = ""
}

variable "object_deleted_since" {
  description = "Objects deletion time was at this point or later."
  type        = string
  default     = "2023-03-30T10:00:00.000Z"
}

variable "object_deleted_till" {
  description = "Objects deletion time was at this point or earlier."
  type        = string
  default     = "2023-03-31T10:00:00.000Z"
}

variable "sqs_batch_size" {
  description = "Number of SQS messages to be sent and fetched in a batch."
  type        = number
  default     = 10
}

variable "sqs_message_size" {
  description = "Number of objects to be sent in a single SQS message."
  type        = number
  default     = 50
}

variable "log_level" {
  description = "Application verbosity level: ERROR, WARNING or INFO."
  type        = string
  default     = "WARNING"
}

variable "lambda_concurrency" {
  description = "Lambda function concurrent execution limit."
  type        = number
  default     = 20
}

variable "vpc_id" {
  description = "VPC for Fargate service and Lambda functions."
  type        = string
  default     = "vpc-7f0e841a"
}

variable "vpc_subnet_ids" {
  description = "VPC subnets for Fargate service and Lambda functions."
  type        = list(string)
  default     = ["subnet-073c5ca5affc267b5", "subnet-098b89d0c58c5693a"]
}
