You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
Hello! Your library is really useful and saving me a lot of time, but something tripped me up today.
I was defining a Policy that had conditions, Something like this:
Something that really threw me off was that Resource, Statement and Action are all case classes, so they have the companion object's apply method to Simply state Action(...) instead of new Action(...). While it's not a huge deal, you'll notice that Condition is not a case class and therefore needs to be instantiated with new.
This puzzled me for a while because I was doing the import awscala.Condition fine, but was getting the error not found: value Condition when trying to make my policy. I figure'd it out as you can tell from the above. But is there a reason why Condition is not a case class?
The text was updated successfully, but these errors were encountered:
Hello! Your library is really useful and saving me a lot of time, but something tripped me up today.
I was defining a Policy that had conditions, Something like this:
Something that really threw me off was that
Resource
,Statement
andAction
are all case classes, so they have the companion object's apply method to Simply stateAction(...)
instead ofnew Action(...)
. While it's not a huge deal, you'll notice thatCondition
is not a case class and therefore needs to be instantiated withnew
.This puzzled me for a while because I was doing the
import awscala.Condition
fine, but was getting the errornot found: value Condition
when trying to make my policy. I figure'd it out as you can tell from the above. But is there a reason whyCondition
is not a case class?The text was updated successfully, but these errors were encountered: