io.burkard.cdk.services.rds.CfnDBProxy.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.rds
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDBProxy {
def apply(
internalResourceId: String,
auth: List[_],
vpcSubnetIds: List[String],
engineFamily: String,
roleArn: String,
dbProxyName: String,
vpcSecurityGroupIds: Option[List[String]] = None,
tags: Option[List[_ <: software.amazon.awscdk.services.rds.CfnDBProxy.TagFormatProperty]] = None,
debugLogging: Option[Boolean] = None,
requireTls: Option[Boolean] = None,
idleClientTimeout: Option[Number] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.rds.CfnDBProxy =
software.amazon.awscdk.services.rds.CfnDBProxy.Builder
.create(stackCtx, internalResourceId)
.auth(auth.asJava)
.vpcSubnetIds(vpcSubnetIds.asJava)
.engineFamily(engineFamily)
.roleArn(roleArn)
.dbProxyName(dbProxyName)
.vpcSecurityGroupIds(vpcSecurityGroupIds.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.debugLogging(debugLogging.map(Boolean.box).orNull)
.requireTls(requireTls.map(Boolean.box).orNull)
.idleClientTimeout(idleClientTimeout.orNull)
.build()
}