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

io.atlassian.aws.rds.package.scala Maven / Gradle / Ivy

package io.atlassian.aws

import com.amazonaws.services.rds.AmazonRDS
import com.amazonaws.services.rds.model.CreateDBInstanceRequest

package object rds extends rds.Types {
  type RDSAction[A] = AwsAction[AmazonRDS, MetaData, A]

  implicit class AvailabilityZoneSyntax(val a: AvailabilityZone) extends AnyVal {
    def aws(request: CreateDBInstanceRequest): CreateDBInstanceRequest =
      a.fold(
        { request.withMultiAZ(true).withAvailabilityZone(null) },
        { zone => request.withMultiAZ(false).withAvailabilityZone(zone) })
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy