def get()

in hq/app/aws/package.scala [12:27]


    def get(account: AwsAccount, region: Region): Attempt[AwsClient[A]] = {
      val maybeClient = clients.find { client =>
        client.account == account && client.region.id == region.id
      }

      val errorString = s"No ${classTag.runtimeClass.getSimpleName} client exists for ${account.id} and $region"
      if (maybeClient.isEmpty) {
        logger.warn(errorString)
      }

      Attempt.fromOption(maybeClient, FailedAttempt(Failure(
        errorString,
        s"Cannot find AWS client",
        500
      )))
    }