awscala.Statement.scala Maven / Gradle / Ivy
The newest version!
package awscala
import scala.jdk.CollectionConverters._
import com.amazonaws.auth.{ policy => aws }
case class Statement(
effect: aws.Statement.Effect,
actions: Seq[Action],
resources: Seq[Resource],
id: Option[String] = None,
conditions: Seq[Condition] = Nil,
principals: Seq[aws.Principal] = Nil) extends aws.Statement(effect) {
id.foreach(i => setId(i))
setEffect(effect)
setActions(actions.map(_.asInstanceOf[aws.Action]).asJava)
setConditions(conditions.map(_.asInstanceOf[aws.Condition]).asJava)
setPrincipals(principals.asJava)
setResources(resources.map(_.asInstanceOf[aws.Resource]).asJava)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy