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

d4s.config.DynamoMeta.scala Maven / Gradle / Ivy

The newest version!
package d4s.config

import net.playq.aws.tagging.AwsNameSpace

final case class DynamoMeta(
  provisioningConfig: ProvisioningConfig,
  nameSpace: AwsNameSpace,
  backupEnabled: Option[Boolean],
) {
  def getProvisioning(tableName: String): TableProvisionedThroughputConfig = {
    provisioningConfig.tables
      .find(_.tableName.contains(tableName))
      .getOrElse(TableProvisionedThroughputConfig(tableName, provisioningConfig.default, perIndex = Nil))
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy