io.burkard.cdk.services.datasync.CfnAgent.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.datasync
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnAgent {
def apply(
internalResourceId: String,
activationKey: String,
subnetArns: Option[List[String]] = None,
securityGroupArns: Option[List[String]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
agentName: Option[String] = None,
vpcEndpointId: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.datasync.CfnAgent =
software.amazon.awscdk.services.datasync.CfnAgent.Builder
.create(stackCtx, internalResourceId)
.activationKey(activationKey)
.subnetArns(subnetArns.map(_.asJava).orNull)
.securityGroupArns(securityGroupArns.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.agentName(agentName.orNull)
.vpcEndpointId(vpcEndpointId.orNull)
.build()
}