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

d4s.models.table.index.GlobalIndexUpdate.scala Maven / Gradle / Ivy

The newest version!
package d4s.models.table.index

import d4s.config.ProvisionedThroughputConfig
import software.amazon.awssdk.services.dynamodb.model.UpdateGlobalSecondaryIndexAction

final case class GlobalIndexUpdate(indexName: String, newProvisioning: ProvisionedThroughputConfig) {

  def asUpdateAction: UpdateGlobalSecondaryIndexAction = {
    newProvisioning.configureThroughput {
      UpdateGlobalSecondaryIndexAction
        .builder()
        .indexName(indexName)
    }.build()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy