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:
val policy = Policy(
Seq(
Statement(Effect.Allow,
Seq(
Action("s3:ListAllMyBuckets"),
Action("s3:GetBucketLocation")
),
Seq(
Resource("arn:aws:s3:::*"),
Resource(s"arn:aws:s3:::${bucketName}")
)
),
Statement(Effect.Allow,
Seq(
Action("s3:ListBucket")
),
Seq(
Resource(s"arn:aws:s3:::${bucketName}")
),
conditions = Seq(
new awscala.Condition(
"StringLike",
"s3:prefix",
Seq("", s"${keyToAllow}")
)
)
)
)
)