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

  const EventBusName = getEventBusName(eventBus);

  return eventBridge
    .removeTargets({
      Ids: [`${ruleName}-target`],
      Rule: ruleName,
      EventBusName,
    })
    .promise();
}