{
  "CloudWatchEventsRuleResource": {
    "Type": "AWS::Events::Rule",
    "Properties": {
      "Description": { "Ref": "serviceDescription" },
      "Name": {
        "Fn::Join": [
          "-",
          [
            { "Ref": "serviceName" },
            "Queue",
            "prod"
          ]
        ]
      },
      "ScheduleExpression": "cron(0 15 ? * MON *)",
      "State": "ENABLED",
      "Targets": [
        {
          "Arn": { "Ref": "ProductionAlias" },
          "Id": "QueueEventTargetId"
        }
      ]
    }
  },
  "PermissionForCloudWatchToInvokeLambda": {
    "Type": "AWS::Lambda::Permission",
    "Properties": {
      "FunctionName": { "Ref": "ProductionAlias" },
      "Action": "lambda:InvokeFunction",
      "Principal": "events.amazonaws.com",
      "SourceArn": { "Fn::GetAtt": [ "CloudWatchEventsRuleResource", "Arn" ] }
    }
  }
}
