com.pulumi.aws.emr.kotlin.inputs.ClusterMasterInstanceGroupEbsConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.emr.kotlin.inputs
import com.pulumi.aws.emr.inputs.ClusterMasterInstanceGroupEbsConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property iops Number of I/O operations per second (IOPS) that the volume supports.
* @property size Volume size, in gibibytes (GiB).
* @property throughput The throughput, in mebibyte per second (MiB/s).
* @property type Volume type. Valid options are `gp3`, `gp2`, `io1`, `io2`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
* @property volumesPerInstance Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1).
*/
public data class ClusterMasterInstanceGroupEbsConfigArgs(
public val iops: Output? = null,
public val size: Output,
public val throughput: Output? = null,
public val type: Output,
public val volumesPerInstance: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.emr.inputs.ClusterMasterInstanceGroupEbsConfigArgs =
com.pulumi.aws.emr.inputs.ClusterMasterInstanceGroupEbsConfigArgs.builder()
.iops(iops?.applyValue({ args0 -> args0 }))
.size(size.applyValue({ args0 -> args0 }))
.throughput(throughput?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.volumesPerInstance(volumesPerInstance?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterMasterInstanceGroupEbsConfigArgs].
*/
@PulumiTagMarker
public class ClusterMasterInstanceGroupEbsConfigArgsBuilder internal constructor() {
private var iops: Output? = null
private var size: Output? = null
private var throughput: Output? = null
private var type: Output? = null
private var volumesPerInstance: Output? = null
/**
* @param value Number of I/O operations per second (IOPS) that the volume supports.
*/
@JvmName("llttwatngirptdxj")
public suspend fun iops(`value`: Output) {
this.iops = value
}
/**
* @param value Volume size, in gibibytes (GiB).
*/
@JvmName("ehrqfdfvlemwxefb")
public suspend fun size(`value`: Output) {
this.size = value
}
/**
* @param value The throughput, in mebibyte per second (MiB/s).
*/
@JvmName("pwjvpxetlcpktimw")
public suspend fun throughput(`value`: Output) {
this.throughput = value
}
/**
* @param value Volume type. Valid options are `gp3`, `gp2`, `io1`, `io2`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
*/
@JvmName("gcvruefdaleodhbd")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1).
*/
@JvmName("voaarltgpqcxgfvh")
public suspend fun volumesPerInstance(`value`: Output) {
this.volumesPerInstance = value
}
/**
* @param value Number of I/O operations per second (IOPS) that the volume supports.
*/
@JvmName("cnmjsmkgdaqkltas")
public suspend fun iops(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iops = mapped
}
/**
* @param value Volume size, in gibibytes (GiB).
*/
@JvmName("vefvlhqswdxvwjoo")
public suspend fun size(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.size = mapped
}
/**
* @param value The throughput, in mebibyte per second (MiB/s).
*/
@JvmName("gidccudgdbrlmbgc")
public suspend fun throughput(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.throughput = mapped
}
/**
* @param value Volume type. Valid options are `gp3`, `gp2`, `io1`, `io2`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
*/
@JvmName("vjnmthtvcjsbjmfj")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1).
*/
@JvmName("vjxabtfrkufcrcmy")
public suspend fun volumesPerInstance(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.volumesPerInstance = mapped
}
internal fun build(): ClusterMasterInstanceGroupEbsConfigArgs =
ClusterMasterInstanceGroupEbsConfigArgs(
iops = iops,
size = size ?: throw PulumiNullFieldException("size"),
throughput = throughput,
type = type ?: throw PulumiNullFieldException("type"),
volumesPerInstance = volumesPerInstance,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy