locals {
  message_amount_threshold_lambdas   = 20
  message_amount_threshold_processor = 300
  old_message_threshold              = 3600 # 1 hour

  lambdas_sqs_queues = {
    "Media Extraction" = {
      queue_prefix             = "amp-asset-metadata-extract-request",
      message_amount_threshold = local.message_amount_threshold_lambdas
      old_message_threshold    = local.old_message_threshold
    },
    "Media Conversion" = {
      queue_prefix             = "amp-asset-media-convert-request"
      message_amount_threshold = local.message_amount_threshold_lambdas
      old_message_threshold    = local.old_message_threshold
    },
    "File Info Extraction" = {
      queue_prefix             = "amp-asset-file-info-extract-request"
      message_amount_threshold = local.message_amount_threshold_lambdas
      old_message_threshold    = local.old_message_threshold
    },
    "Asset Processor" = {
      queue_prefix             = "amp-asset-proc"
      message_amount_threshold = local.message_amount_threshold_processor
      old_message_threshold    = 18000 # 5 hours
    },
    "Batch Result" = {
      queue_prefix             = "amp-asset-batch-result"
      message_amount_threshold = local.message_amount_threshold_processor
      old_message_threshold    = local.old_message_threshold
    }
  }

  # This tag is cosmetic, to let people know that any changes made outside of terraform might be lost
  managed_by_terraform_datadog_tag = "managedBy:amp-terraform"

  email_notifications_datadog_tag     = "notificationChannel:email"
  pagerduty_notifications_datadog_tag = "notificationChannel:PagerDuty"
}
