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

io.burkard.cdk.services.dynamodb.cfnGlobalTable.ReplicaSpecificationProperty.scala Maven / Gradle / Ivy

package io.burkard.cdk.services.dynamodb.cfnGlobalTable

import scala.collection.JavaConverters._

@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object ReplicaSpecificationProperty {

  def apply(
    region: String,
    tableClass: Option[String] = None,
    globalSecondaryIndexes: Option[List[_]] = None,
    pointInTimeRecoverySpecification: Option[software.amazon.awscdk.services.dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty] = None,
    tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
    sseSpecification: Option[software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaSSESpecificationProperty] = None,
    contributorInsightsSpecification: Option[software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ContributorInsightsSpecificationProperty] = None,
    readProvisionedThroughputSettings: Option[software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReadProvisionedThroughputSettingsProperty] = None
  ): software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaSpecificationProperty =
    (new software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ReplicaSpecificationProperty.Builder)
      .region(region)
      .tableClass(tableClass.orNull)
      .globalSecondaryIndexes(globalSecondaryIndexes.map(_.asJava).orNull)
      .pointInTimeRecoverySpecification(pointInTimeRecoverySpecification.orNull)
      .tags(tags.map(_.asJava).orNull)
      .sseSpecification(sseSpecification.orNull)
      .contributorInsightsSpecification(contributorInsightsSpecification.orNull)
      .readProvisionedThroughputSettings(readProvisionedThroughputSettings.orNull)
      .build()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy