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

io.burkard.cdk.services.appsync.cfnDataSource.DynamoDBConfigProperty.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.appsync.cfnDataSource

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object DynamoDBConfigProperty {

  def apply(
    awsRegion: String,
    tableName: String,
    deltaSyncConfig: Option[software.amazon.awscdk.services.appsync.CfnDataSource.DeltaSyncConfigProperty] = None,
    useCallerCredentials: Option[Boolean] = None,
    versioned: Option[Boolean] = None
  ): software.amazon.awscdk.services.appsync.CfnDataSource.DynamoDBConfigProperty =
    (new software.amazon.awscdk.services.appsync.CfnDataSource.DynamoDBConfigProperty.Builder)
      .awsRegion(awsRegion)
      .tableName(tableName)
      .deltaSyncConfig(deltaSyncConfig.orNull)
      .useCallerCredentials(useCallerCredentials.map(Boolean.box).orNull)
      .versioned(versioned.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy