All Downloads are FREE. Search and download functionalities are using the official Maven repository.

awscala.Statement.scala Maven / Gradle / Ivy

package awscala

import scala.collection.JavaConverters._
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