def isOriginRegionType()

in app/agent/model.scala [90:102]


  def isOriginRegionType(
      regionType: Option[AwsRegionType]
  )(origin: Origin): Boolean = {
    (origin, regionType) match {
      case (AmazonOrigin(_, region, _, _, _, _, _, _), Some(Global))
          if region != Region.AWS_GLOBAL.id =>
        false
      case (AmazonOrigin(_, region, _, _, _, _, _, _), Some(Regional))
          if region == Region.AWS_GLOBAL.id =>
        false
      case _ => true
    }
  }