io.burkard.cdk.services.dax.CfnClusterProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.dax
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnClusterProps {
def apply(
iamRoleArn: String,
nodeType: String,
replicationFactor: Number,
subnetGroupName: Option[String] = None,
description: Option[String] = None,
tags: Option[AnyRef] = None,
clusterEndpointEncryptionType: Option[String] = None,
securityGroupIds: Option[List[String]] = None,
preferredMaintenanceWindow: Option[String] = None,
notificationTopicArn: Option[String] = None,
parameterGroupName: Option[String] = None,
sseSpecification: Option[software.amazon.awscdk.services.dax.CfnCluster.SSESpecificationProperty] = None,
clusterName: Option[String] = None,
availabilityZones: Option[List[String]] = None
): software.amazon.awscdk.services.dax.CfnClusterProps =
(new software.amazon.awscdk.services.dax.CfnClusterProps.Builder)
.iamRoleArn(iamRoleArn)
.nodeType(nodeType)
.replicationFactor(replicationFactor)
.subnetGroupName(subnetGroupName.orNull)
.description(description.orNull)
.tags(tags.orNull)
.clusterEndpointEncryptionType(clusterEndpointEncryptionType.orNull)
.securityGroupIds(securityGroupIds.map(_.asJava).orNull)
.preferredMaintenanceWindow(preferredMaintenanceWindow.orNull)
.notificationTopicArn(notificationTopicArn.orNull)
.parameterGroupName(parameterGroupName.orNull)
.sseSpecification(sseSpecification.orNull)
.clusterName(clusterName.orNull)
.availabilityZones(availabilityZones.map(_.asJava).orNull)
.build()
}