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

awscala.Policy.scala Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
package awscala

import scala.collection.JavaConverters._
import com.amazonaws.auth.{ policy => aws }

case class Policy(statements: Seq[Statement], id: Option[String] = None) extends aws.Policy {
  id.foreach(i => setId(i))
  setStatements(statements.map(_.asInstanceOf[aws.Statement]).asJava)

  def version = getVersion

  def toJSON = toJson
  def asJson = toJson
  def asJSON = toJson
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy