io.burkard.cdk.services.elasticache.CfnGlobalReplicationGroup.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.elasticache
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnGlobalReplicationGroup {
def apply(
internalResourceId: String,
members: List[_],
cacheParameterGroupName: Option[String] = None,
globalReplicationGroupDescription: Option[String] = None,
automaticFailoverEnabled: Option[Boolean] = None,
globalReplicationGroupIdSuffix: Option[String] = None,
regionalConfigurations: Option[List[_]] = None,
globalNodeGroupCount: Option[Number] = None,
cacheNodeType: Option[String] = None,
engineVersion: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup =
software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.Builder
.create(stackCtx, internalResourceId)
.members(members.asJava)
.cacheParameterGroupName(cacheParameterGroupName.orNull)
.globalReplicationGroupDescription(globalReplicationGroupDescription.orNull)
.automaticFailoverEnabled(automaticFailoverEnabled.map(Boolean.box).orNull)
.globalReplicationGroupIdSuffix(globalReplicationGroupIdSuffix.orNull)
.regionalConfigurations(regionalConfigurations.map(_.asJava).orNull)
.globalNodeGroupCount(globalNodeGroupCount.orNull)
.cacheNodeType(cacheNodeType.orNull)
.engineVersion(engineVersion.orNull)
.build()
}