io.burkard.cdk.services.neptune.CfnDBInstance.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.neptune
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDBInstance {
def apply(
internalResourceId: String,
dbInstanceClass: String,
dbParameterGroupName: Option[String] = None,
dbClusterIdentifier: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
availabilityZone: Option[String] = None,
dbSnapshotIdentifier: Option[String] = None,
preferredMaintenanceWindow: Option[String] = None,
autoMinorVersionUpgrade: Option[Boolean] = None,
allowMajorVersionUpgrade: Option[Boolean] = None,
dbInstanceIdentifier: Option[String] = None,
dbSubnetGroupName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.neptune.CfnDBInstance =
software.amazon.awscdk.services.neptune.CfnDBInstance.Builder
.create(stackCtx, internalResourceId)
.dbInstanceClass(dbInstanceClass)
.dbParameterGroupName(dbParameterGroupName.orNull)
.dbClusterIdentifier(dbClusterIdentifier.orNull)
.tags(tags.map(_.asJava).orNull)
.availabilityZone(availabilityZone.orNull)
.dbSnapshotIdentifier(dbSnapshotIdentifier.orNull)
.preferredMaintenanceWindow(preferredMaintenanceWindow.orNull)
.autoMinorVersionUpgrade(autoMinorVersionUpgrade.map(Boolean.box).orNull)
.allowMajorVersionUpgrade(allowMajorVersionUpgrade.map(Boolean.box).orNull)
.dbInstanceIdentifier(dbInstanceIdentifier.orNull)
.dbSubnetGroupName(dbSubnetGroupName.orNull)
.build()
}