io.burkard.cdk.services.imagebuilder.CfnInfrastructureConfiguration.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.imagebuilder
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnInfrastructureConfiguration {
def apply(
internalResourceId: String,
name: String,
instanceProfileName: String,
keyPair: Option[String] = None,
logging: Option[software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.LoggingProperty] = None,
description: Option[String] = None,
tags: Option[Map[String, String]] = None,
securityGroupIds: Option[List[String]] = None,
instanceTypes: Option[List[String]] = None,
resourceTags: Option[Map[String, String]] = None,
subnetId: Option[String] = None,
terminateInstanceOnFailure: Option[Boolean] = None,
instanceMetadataOptions: Option[software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty] = None,
snsTopicArn: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration =
software.amazon.awscdk.services.imagebuilder.CfnInfrastructureConfiguration.Builder
.create(stackCtx, internalResourceId)
.name(name)
.instanceProfileName(instanceProfileName)
.keyPair(keyPair.orNull)
.logging(logging.orNull)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.securityGroupIds(securityGroupIds.map(_.asJava).orNull)
.instanceTypes(instanceTypes.map(_.asJava).orNull)
.resourceTags(resourceTags.map(_.asJava).orNull)
.subnetId(subnetId.orNull)
.terminateInstanceOnFailure(terminateInstanceOnFailure.map(Boolean.box).orNull)
.instanceMetadataOptions(instanceMetadataOptions.orNull)
.snsTopicArn(snsTopicArn.orNull)
.build()
}