
com.pulumi.awsnative.ecs.kotlin.inputs.TaskDefinitionRuntimePlatformArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.ecs.kotlin.inputs
import com.pulumi.awsnative.ecs.inputs.TaskDefinitionRuntimePlatformArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Information about the platform for the Amazon ECS service or task.
* For more information about ``RuntimePlatform``, see [RuntimePlatform](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#runtime-platform) in the *Amazon Elastic Container Service Developer Guide*.
* @property cpuArchitecture The CPU architecture.
* You can run your Linux tasks on an ARM-based platform by setting the value to ``ARM64``. This option is available for tasks that run on Linux Amazon EC2 instance or Linux containers on Fargate.
* @property operatingSystemFamily The operating system.
*/
public data class TaskDefinitionRuntimePlatformArgs(
public val cpuArchitecture: Output? = null,
public val operatingSystemFamily: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskDefinitionRuntimePlatformArgs =
com.pulumi.awsnative.ecs.inputs.TaskDefinitionRuntimePlatformArgs.builder()
.cpuArchitecture(cpuArchitecture?.applyValue({ args0 -> args0 }))
.operatingSystemFamily(operatingSystemFamily?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TaskDefinitionRuntimePlatformArgs].
*/
@PulumiTagMarker
public class TaskDefinitionRuntimePlatformArgsBuilder internal constructor() {
private var cpuArchitecture: Output? = null
private var operatingSystemFamily: Output? = null
/**
* @param value The CPU architecture.
* You can run your Linux tasks on an ARM-based platform by setting the value to ``ARM64``. This option is available for tasks that run on Linux Amazon EC2 instance or Linux containers on Fargate.
*/
@JvmName("adfnngemrvvbghkp")
public suspend fun cpuArchitecture(`value`: Output) {
this.cpuArchitecture = value
}
/**
* @param value The operating system.
*/
@JvmName("qheiwtuvrofedvrp")
public suspend fun operatingSystemFamily(`value`: Output) {
this.operatingSystemFamily = value
}
/**
* @param value The CPU architecture.
* You can run your Linux tasks on an ARM-based platform by setting the value to ``ARM64``. This option is available for tasks that run on Linux Amazon EC2 instance or Linux containers on Fargate.
*/
@JvmName("sdrdupmlleyympff")
public suspend fun cpuArchitecture(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpuArchitecture = mapped
}
/**
* @param value The operating system.
*/
@JvmName("ychqxemdsdfwiowj")
public suspend fun operatingSystemFamily(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.operatingSystemFamily = mapped
}
internal fun build(): TaskDefinitionRuntimePlatformArgs = TaskDefinitionRuntimePlatformArgs(
cpuArchitecture = cpuArchitecture,
operatingSystemFamily = operatingSystemFamily,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy