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

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_memory_size {
    description = "Memory size for the lambda function"
}

variable logger_dsn {
    description = "DSN for logging."
}

variable cloudwatch_event_schedule {
    description = "Schedule for running lambda"
    default = "rate(1 minute)"
}

variable cloudwatch_event_enabled {
    description = "Toggle for enabling cloudwatch event triggers"
    default = true
}

variable dynamodb_table_name {
    description = "Table name for dynamodb"
}

variable ar_mysql_database {
    description = "Art_relations database name"
    default = "dev_art_relations"
}

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 (referring to encoder table in art_relations DB)"
}

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     = "qa-vector-orders"
}

variable read_capacity {
  description = "The number of read units for this table."
  default     = "100"
}

variable write_capacity {
  description = "The number of write units for this table."
  default     = "5"
}
