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

variable region {
    default = "us-east-1"
}

variable vpc_security_group_ids {
    type        = list
    description = "Security group IDs for the VPC where the lambdas will execute"
}

variable vpc_subnet_ids {
    type        = list
    description = "VPC subnet IDs where the lambdas will execute"
}

variable lambda_default_timeout {
    description = "Default value for timeout"
    default     = "300"
}

variable lambda_memory_size {
    description = "Memory size for the lambda function"
    default     = "512"
}

variable lambda_concurrent_executions {
    description = "Number of reserved concurrent executions for lambda function"
    default     = 1
}

variable iam_policy_file_location {
    default = "../modules/lambdas/ar-to-ddb-sync/policies"
}

variable logger_dsn {
    description = "DSN for logging."
    default     = "udp://qa-fluentd-applications-udp.theorchard.io:5160"
}

variable ar_mysql_database {
    description = "Art_relations database name"
}

variable ar_mysql_host {
    description = "Art_relations database host address"
}

variable ar_mysql_port {
    description = "Art_relations database host port"
}

variable ar_mysql_user {
    description = "Art_relations database user"
}

variable ddb_write_max_attempts {
    description = "DynamoDB max write attempts"
}

variable elasticsearch_use_auth {
    description = "Toggle for elastic search auth"
}

variable orders_ddb_table {
    description = "Table name for DynamoDB orders table"
}

variable orders_s3_bucket {
    description = "Bucket name for this lambda"
}

variable order_encoder_id_list {
    description = "Order encoder id list"
}

variable cloudwatch_event_enabled {
    description = "Toggle for cloudwatch events"
}

variable cloudwatch_event_schedule {
    description = "Schedule for triggering lambda"
}

variable datadog_function_destination_arn {
    description = "ARN of datadog function for shipping cloudwatch logs"
    default = "arn:aws:lambda:us-east-1:437795906767:function:DatadogLambdaFunction"
}

variable "use_custom_table_name" {
  description = "Whether to use a custom table name; if so specify a name in var.custom_table_name"
  default     = true
}

variable "custom_table_name" {
  description = "User-provided table name if var.use_custom_table_name is set to true"
  default     = "dev-vector-orders"
}
