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

io.burkard.cdk.services.rds.ServerlessClusterAttributes.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 ServerlessClusterAttributes {

  def apply(
    clusterIdentifier: String,
    secret: Option[software.amazon.awscdk.services.secretsmanager.ISecret] = None,
    clusterEndpointAddress: Option[String] = None,
    port: Option[Number] = None,
    securityGroups: Option[List[_ <: software.amazon.awscdk.services.ec2.ISecurityGroup]] = None,
    readerEndpointAddress: Option[String] = None
  ): software.amazon.awscdk.services.rds.ServerlessClusterAttributes =
    (new software.amazon.awscdk.services.rds.ServerlessClusterAttributes.Builder)
      .clusterIdentifier(clusterIdentifier)
      .secret(secret.orNull)
      .clusterEndpointAddress(clusterEndpointAddress.orNull)
      .port(port.orNull)
      .securityGroups(securityGroups.map(_.asJava).orNull)
      .readerEndpointAddress(readerEndpointAddress.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy