resource "aws_lambda_function" "maxp-ohproc-new-blocked-notifications-count" {
  #checkov:skip=CKV_AWS_116: Ensure that AWS Lambda function is configured for a Dead Letter Queue(DLQ). Migrated existing Lambda function as-is.
  #checkov:skip=CKV_AWS_50: Ensure X-Ray tracing is enabled for Lambda. Migrated existing Lambda function as-is.
  #checkov:skip=CKV_AWS_115: Ensure that AWS Lambda function is configured for function-level concurrent execution limit. Migrated existing Lambda function as-is.
  function_name    = "maxp-ohproc-new-blocked-notifications-count"
  filename         = "lambda_zips/maxp-ohproc-new-blocked-notifications-count.zip"
  source_code_hash = filebase64sha256("lambda_zips/maxp-ohproc-new-blocked-notifications-count.zip")
  handler          = "lambda_function.lambda_handler"
  role             = "arn:aws:iam::504436705349:role/maxp-ohproc-new-blocked-notifications-count-role"
  runtime          = "python3.10"
  vpc_config {
    subnet_ids         = ["subnet-0da235fc7a7c20dc1"]
    security_group_ids = ["sg-09415e85d36bdfb5b"]
  }
  tags = {
    "Name"          = "maxp-ohproc-new-blocked-notifications-count"
    "Business-Unit" = "EOM"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0590E"
    "Project-Name"  = "Max-Dev"
    "Jira"          = "CLOUDOPS-14940"
  }
  timeout = 5
}
