How to set retention limit for AWS MQ General and Connection CloudWatch Logs for RabbitMQ

I am using below code to create the General and Connection logs. The general and connection logs are created with expiration as Never - I need to set it to 14 days.
resource “aws_mq_broker” “broker” {
count = var.enabled ? 1 : 0
broker_name = var.broker_name

logs {
general = true
}
}