io.burkard.cdk.services.ec2.CfnInstanceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnInstanceProps {
def apply(
ebsOptimized: Option[Boolean] = None,
propagateTagsToVolumeOnCreation: Option[Boolean] = None,
cpuOptions: Option[software.amazon.awscdk.services.ec2.CfnInstance.CpuOptionsProperty] = None,
disableApiTermination: Option[Boolean] = None,
networkInterfaces: Option[List[_]] = None,
monitoring: Option[Boolean] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
affinity: Option[String] = None,
userData: Option[String] = None,
securityGroupIds: Option[List[String]] = None,
availabilityZone: Option[String] = None,
launchTemplate: Option[software.amazon.awscdk.services.ec2.CfnInstance.LaunchTemplateSpecificationProperty] = None,
iamInstanceProfile: Option[String] = None,
subnetId: Option[String] = None,
ramdiskId: Option[String] = None,
instanceType: Option[String] = None,
volumes: Option[List[_]] = None,
creditSpecification: Option[software.amazon.awscdk.services.ec2.CfnInstance.CreditSpecificationProperty] = None,
elasticGpuSpecifications: Option[List[_]] = None,
elasticInferenceAccelerators: Option[List[_]] = None,
ssmAssociations: Option[List[_]] = None,
ipv6Addresses: Option[List[_]] = None,
hibernationOptions: Option[software.amazon.awscdk.services.ec2.CfnInstance.HibernationOptionsProperty] = None,
tenancy: Option[String] = None,
imageId: Option[String] = None,
enclaveOptions: Option[software.amazon.awscdk.services.ec2.CfnInstance.EnclaveOptionsProperty] = None,
ipv6AddressCount: Option[Number] = None,
privateDnsNameOptions: Option[software.amazon.awscdk.services.ec2.CfnInstance.PrivateDnsNameOptionsProperty] = None,
hostId: Option[String] = None,
securityGroups: Option[List[String]] = None,
keyName: Option[String] = None,
additionalInfo: Option[String] = None,
placementGroupName: Option[String] = None,
sourceDestCheck: Option[Boolean] = None,
instanceInitiatedShutdownBehavior: Option[String] = None,
privateIpAddress: Option[String] = None,
kernelId: Option[String] = None,
hostResourceGroupArn: Option[String] = None,
licenseSpecifications: Option[List[_]] = None,
blockDeviceMappings: Option[List[_]] = None
): software.amazon.awscdk.services.ec2.CfnInstanceProps =
(new software.amazon.awscdk.services.ec2.CfnInstanceProps.Builder)
.ebsOptimized(ebsOptimized.map(Boolean.box).orNull)
.propagateTagsToVolumeOnCreation(propagateTagsToVolumeOnCreation.map(Boolean.box).orNull)
.cpuOptions(cpuOptions.orNull)
.disableApiTermination(disableApiTermination.map(Boolean.box).orNull)
.networkInterfaces(networkInterfaces.map(_.asJava).orNull)
.monitoring(monitoring.map(Boolean.box).orNull)
.tags(tags.map(_.asJava).orNull)
.affinity(affinity.orNull)
.userData(userData.orNull)
.securityGroupIds(securityGroupIds.map(_.asJava).orNull)
.availabilityZone(availabilityZone.orNull)
.launchTemplate(launchTemplate.orNull)
.iamInstanceProfile(iamInstanceProfile.orNull)
.subnetId(subnetId.orNull)
.ramdiskId(ramdiskId.orNull)
.instanceType(instanceType.orNull)
.volumes(volumes.map(_.asJava).orNull)
.creditSpecification(creditSpecification.orNull)
.elasticGpuSpecifications(elasticGpuSpecifications.map(_.asJava).orNull)
.elasticInferenceAccelerators(elasticInferenceAccelerators.map(_.asJava).orNull)
.ssmAssociations(ssmAssociations.map(_.asJava).orNull)
.ipv6Addresses(ipv6Addresses.map(_.asJava).orNull)
.hibernationOptions(hibernationOptions.orNull)
.tenancy(tenancy.orNull)
.imageId(imageId.orNull)
.enclaveOptions(enclaveOptions.orNull)
.ipv6AddressCount(ipv6AddressCount.orNull)
.privateDnsNameOptions(privateDnsNameOptions.orNull)
.hostId(hostId.orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.keyName(keyName.orNull)
.additionalInfo(additionalInfo.orNull)
.placementGroupName(placementGroupName.orNull)
.sourceDestCheck(sourceDestCheck.map(Boolean.box).orNull)
.instanceInitiatedShutdownBehavior(instanceInitiatedShutdownBehavior.orNull)
.privateIpAddress(privateIpAddress.orNull)
.kernelId(kernelId.orNull)
.hostResourceGroupArn(hostResourceGroupArn.orNull)
.licenseSpecifications(licenseSpecifications.map(_.asJava).orNull)
.blockDeviceMappings(blockDeviceMappings.map(_.asJava).orNull)
.build()
}