lib/plugins/aws/customResources/resources/eventBridge/lib/eventBridge.js/updateRuleConfiguration
function updateRuleConfiguration(config) {
  const { ruleName, eventBus, pattern, schedule, region } = config;
  const eventBridge = new EventBridge({ region });

  const EventBusName = getEventBusName(eventBus);

  return eventBridge
    .putRule({
      Name: ruleName,
      EventBusName,
      EventPattern: JSON.stringify(pattern),
      ScheduleExpression: schedule,
      State: 'ENABLED',
    })
    .promise();
}